Skip to content

Commit 304219a

Browse files
Changed the layout, added sitemap, added robots.txt, extended projects pages, changed URLs.
1 parent 3d216d9 commit 304219a

File tree

16 files changed

+204
-316
lines changed

16 files changed

+204
-316
lines changed

config.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
activate :github
88
activate :syntax
9+
activate :directory_indexes
10+
activate :asset_hash
911

1012
helpers do
1113
def caret_icon(number)
@@ -20,7 +22,6 @@ def caret_icon(number)
2022
set :markdown_engine, :redcarpet
2123
set :markdown, :fenced_code_blocks => true, :smartypants => true
2224

23-
2425
# Build-specific configuration
2526
configure :build do
2627
end

github/project.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Github
22
module Project
3-
[:title, :repo, :homepage, :examples, :language, :technology, :license, :templates, :author, :authorurl, :description].each do |attr|
3+
[:title, :repo, :homepage, :twitter, :examples, :angular, :vue, :react, :webcomponents, :language, :license, :templates, :author, :authorurl, :description].each do |attr|
44
define_method attr do
55
data[attr]
66
end

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "JSpreadsheets",
33
"version": "1.0.0",
44
"private": true,
5-
"description": "Open-Source Spreadsheets and Data Grids",
5+
"description": "Best JavaScript Data Grids and Spreadsheets",
66
"main": "shipitfile.js",
77
"scripts": {
88
"test": "echo \"Error: no test specified\" && exit 1",
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Submit new
2+
title: Contribute
33
layout: page
44
---
55

6-
# Submit new
6+
# <%= current_page.title %>
77

88
To add a new library to our leaderboard, **[fork the GitHub repo](https://github.com/krzysztofspilka/JSpreadsheets)** then add a new file to the **[source/projects](https://github.com/krzysztofspilka/JSpreadsheets/tree/master/source/projects)** directory and make a pull request. We accept most requests as long as they stay relevant and have any sign of community activity (forks, stars, issues etc.).
99

10-
To facilitate the reviewing process, please follow the schema (**[see example](https://raw.githubusercontent.com/krzysztofspilka/JSpreadsheets/master/source/projects/handsontable.md)**).
10+
To facilitate the reviewing process, please follow the schema (**[see example](https://raw.githubusercontent.com/krzysztofspilka/JSpreadsheets/master/source/projects/handsontable.md)**).

source/includes/_disqus.erb

-14
This file was deleted.

source/includes/_navbar.erb

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<% if defined?(controls) && controls %>
44
<div class="dropdown">
55
<select name="sort" class="dropdown-select">
6-
<option value="stars" selected>Sorted by stars</option>
7-
<option value="forks">Sorted by forks</option>
8-
<option value="issues">Sorted by issues</option>
9-
<option value="title">Sorted by title</option>
6+
<option value="stars" selected>Sort by stars</option>
7+
<option value="forks">Sort by forks</option>
8+
<option value="issues">Sort by issues</option>
9+
<option value="title">Sort by title</option>
1010
</select>
1111
</div>
1212
<% end %>
@@ -16,7 +16,7 @@
1616
<div class="right-menu">
1717
<ul>
1818
<li><a href="/about.html">About</a></li>
19-
<li><a href="/submit-new.html">Submit new</a></li>
19+
<li><a href="/contribute.html">Contribute</a></li>
2020
</ul>
2121
</div>
2222
</div>

source/index.html.erb

+22-29
Original file line numberDiff line numberDiff line change
@@ -11,35 +11,28 @@ title: JSpreadsheets
1111
data-issues="<%= project.issues %>"
1212
data-title="<%= project.title %>"
1313
>
14-
<div class="card">
15-
<h4 class="title"><a href="<%= project.url %>"><%= project.title %></a></h4>
16-
<h6 class="url"><a href="<%= project.homepage %>" target="_blank"><%= project.homepage.sub(/^https?:\/\//, '') %></a></small></h6>
17-
<div class="description"><%= project.description.length > 90 ? project.description[0..90] << '...' : project.description %></div>
18-
<dl>
19-
<dt>License:</dt>
20-
<dd><%= project.license %></dd>
21-
22-
<dt>Author:</dt>
23-
<dd><%= project.author %></dd>
24-
25-
<dt>Last update:</dt>
26-
<dd><%= project.last_commit ? project.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %></dd>
27-
</dl>
28-
<ul class="stats">
29-
<li title="Stars">
30-
<i class="fa fa-star"></i>
31-
<span class="stat"><%= project.stars %></span>
32-
</li>
33-
<li title="Forks">
34-
<i class="fa fa-code-fork"></i>
35-
<span class="stat"><%= project.forks %></span>
36-
</li>
37-
<li title="Open Issues">
38-
<i class="fa fa-bug"></i>
39-
<span class="stat"><%= project.issues %></span>
40-
</li>
41-
</ul>
42-
</div>
14+
<a href="<%= project.url %>" class="card">
15+
<h2 class="title"><%= project.title %></h2>
16+
<ul class="stats">
17+
<li title="Stars">
18+
<i class="fa fa-star"></i>
19+
<span class="stat"><%= project.stars %></span>
20+
</li>
21+
<li title="Forks">
22+
<i class="fa fa-code-fork"></i>
23+
<span class="stat"><%= project.forks %></span>
24+
</li>
25+
<li title="Open Issues">
26+
<i class="fa fa-bug"></i>
27+
<span class="stat"><%= project.issues %></span>
28+
</li>
29+
</ul>
30+
<span class="description">
31+
<%= project.description.length > 90 ? project.description[0..90] << '...' : project.description %>
32+
<br><br>
33+
Last update: <%= project.last_commit ? project.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %>
34+
</span>
35+
</a>
4336
</li>
4437
<% end %>
4538
</ul>

source/javascripts/all.js

-4
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ $(function() {
2727
}
2828
});
2929

30-
$("select[name='filter']").change(function(e) {
31-
$(".projects").isotope({filter: $(this).val().replace(/^\.lang-\./, '.lang-')});
32-
});
33-
3430
$("select[name='sort']").change(function(e) {
3531
var val = $(this).val();
3632

source/layouts/layout.erb

+4-6
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
<!-- Font Awesome -->
3030
<link href="/font-awesome/css/font-awesome.css" rel="stylesheet">
3131

32-
<!-- Lato font -->
33-
<link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,900,300italic,400italic,700italic,900italic' rel='stylesheet' type='text/css'>
32+
<!-- Roboto font -->
33+
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">
3434

3535
<!-- StaticGen styles -->
3636
<%= stylesheet_link_tag "normalize", "syntax", "all" %>
@@ -52,15 +52,13 @@
5252
<div class="logo-group">
5353
<a href="/" class="logo">JSpreadsheets</a>
5454
</div>
55-
<h1>JavaScript Open-Source Spreadsheets and Data Grids</h1>
55+
<h1>Best JavaScript Data Grids and Spreadsheets</h1>
5656
</div>
5757
<%= yield %>
5858
<div class="footer">
5959

6060
<div class="postscript">
61-
<p>This project is based on a great piece of code written by
62-
<a href="https://netlify.com" target="_blank">Netlify</a> and
63-
<a href="https://github.com/netlify/staticgen" target="_blank">released on GitHub</p>
61+
<p>This project is based on an open source code written originally by <a href="https://netlify.com" target="_blank">Netlify</a>.
6462
</div>
6563
</div>
6664

source/layouts/making-of.erb

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<div class="main">
44
<div class="sheet">
55
<%= yield %>
6-
<%= partial "includes/disqus" %>
76
</div>
87
</div>
98
<% end %>

source/layouts/page.erb

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
---
2+
3+
---
14
<% wrap_layout :layout do %>
25
<%= partial "includes/navbar" %>
36
<div class="main subpage">

source/layouts/project.erb

+24-20
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,25 @@
22
<%= partial "includes/navbar" %>
33

44
<div class="main subpage">
5-
<h1><%= current_page.title %></h1>
5+
66
<div class="sheet">
77

88
<div class="left-side">
9+
10+
<h2><%= current_page.title %></h2>
911
<div class="links">
1012
<a href="<%= current_page.homepage %>" target="_blank" class="ellipsis"><i class="fa fa-home"></i> <%= current_page.homepage %></a>
1113
<a href="https://github.com/<%= current_page.repo %>" target="_blank" class="ellipsis"><i class="fa fa-github"></i> https://github.com/<%= current_page.repo %></a>
1214
</div>
1315

1416
<%= yield %>
15-
<%= partial "includes/disqus" %>
1617

1718
</div>
19+
1820
<div class="right-side">
21+
1922
<div class="github-stats box">
20-
<h4>GITHUB STATS</h4>
23+
<h4>STATS ON GITHUB</h4>
2124
<ul class="stats">
2225
<li title="Stars">
2326
<i class="fa fa-star"></i>
@@ -33,22 +36,22 @@
3336
</li>
3437
</ul>
3538
</div>
36-
<div class="installation box">
37-
<h4>INSTALLATION</h4>
38-
<div class="buttons">
39-
<a href="https://github.com/<%= current_page.repo %>/releases/latest" target="_blank" class="btn blue">Download on GitHub</a>
40-
<a href="<%= current_page.examples %>" target="_blank" class="btn red">See examples</a>
41-
</div>
42-
<dl>
43-
<dt>License:</dt>
44-
<dd><%= current_page.license %></dd>
45-
46-
<dt>Author:</dt>
47-
<dd><%= current_page.author %></dd>
48-
49-
<dt>Last update:</dt>
50-
<dd><%= current_page.last_commit ? current_page.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %></dd>
51-
</dl>
39+
<div class="installation box clearfix">
40+
<ul>
41+
<li>License: <%= current_page.license %></li>
42+
<li>Author: <%= current_page.author %></li>
43+
<li>Last update: <%= current_page.last_commit ? current_page.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %></li>
44+
</ul>
45+
<ul>
46+
<li>Angular: <% if current_page.angular == true %>Supported<% else %>Not supported<% end %></li>
47+
<li>React: <% if current_page.react == true %>Supported<% else %>Not supported<% end %></li>
48+
<li>Vue: <% if current_page.vue == true %>Supported<% else %>Not supported<% end %></li>
49+
<li>Web Components: <% if current_page.webcomponents == true %>Supported<% else %>Not supported<% end %></li>
50+
</ul>
51+
<div class="buttons">
52+
<a href="https://github.com/<%= current_page.repo %>" target="_blank" class="btn purple">Explore on GitHub</a>
53+
<a href="<%= current_page.examples %>" target="_blank" class="btn lightpurple">Live examples</a>
54+
</div>
5255
</div>
5356
<div class="charts box">
5457
<h4>TRENDS</h4>
@@ -76,7 +79,8 @@
7679
},
7780
xaxis: {
7881
transform: function (v) { return v; },
79-
mode: "time"
82+
mode: "time",
83+
tickColor: "#fff"
8084
}
8185
};
8286
$.plot("#<%= type %>-chart", [chart_<%= type %>] , options_<%= type %>);

source/projects/handsontable.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: Handsontable
33
repo: handsontable/handsontable
4-
homepage: http://handsontable.com
5-
examples: http://handsontable.com/examples.html
6-
license: MIT
7-
bower: handsontable
8-
technology: Vanilla JS
4+
homepage: https://handsontable.com
5+
twitter: handsontable
6+
examples: https://handsontable.com/examples
7+
angular: true
8+
vue: true
9+
react: true
10+
webcomponents: true
11+
license: Non-commercial
912
author: Handsoncode
1013
authorurl: http://handsoncode.net
1114
description: Handsontable is a JavaScript composite spreadsheet component for apps and websites.

source/robots.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User-agent: *
2+
Disallow: /ag-grid.html
3+
4+
Sitemap: https://jspreadsheets.com/sitemap.xml

source/sitemap.xml.erb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
layout: false
3+
---

0 commit comments

Comments
 (0)