Skip to content

Commit

Permalink
Merge branch 'master' of github.com:krzysztofspilka/staticgen
Browse files Browse the repository at this point in the history
  • Loading branch information
budnix committed Apr 3, 2019
2 parents 9b84da2 + 304219a commit a547af7
Show file tree
Hide file tree
Showing 16 changed files with 204 additions and 316 deletions.
3 changes: 2 additions & 1 deletion config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

activate :github
activate :syntax
activate :directory_indexes
activate :asset_hash

helpers do
def caret_icon(number)
Expand All @@ -20,7 +22,6 @@ def caret_icon(number)
set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true


# Build-specific configuration
configure :build do
end
2 changes: 1 addition & 1 deletion github/project.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Github
module Project
[:title, :repo, :homepage, :examples, :language, :technology, :license, :templates, :author, :authorurl, :description].each do |attr|
[:title, :repo, :homepage, :twitter, :examples, :angular, :vue, :react, :webcomponents, :language, :license, :templates, :author, :authorurl, :description].each do |attr|
define_method attr do
data[attr]
end
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "JSpreadsheets",
"version": "1.0.0",
"private": true,
"description": "Open-Source Spreadsheets and Data Grids",
"description": "Best JavaScript Data Grids and Spreadsheets",
"main": "shipitfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
6 changes: 3 additions & 3 deletions source/submit-new.md → source/contribute.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Submit new
title: Contribute
layout: page
---

# Submit new
# <%= current_page.title %>

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.).

To facilitate the reviewing process, please follow the schema (**[see example](https://raw.githubusercontent.com/krzysztofspilka/JSpreadsheets/master/source/projects/handsontable.md)**).
To facilitate the reviewing process, please follow the schema (**[see example](https://raw.githubusercontent.com/krzysztofspilka/JSpreadsheets/master/source/projects/handsontable.md)**).
14 changes: 0 additions & 14 deletions source/includes/_disqus.erb

This file was deleted.

10 changes: 5 additions & 5 deletions source/includes/_navbar.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<% if defined?(controls) && controls %>
<div class="dropdown">
<select name="sort" class="dropdown-select">
<option value="stars" selected>Sorted by stars</option>
<option value="forks">Sorted by forks</option>
<option value="issues">Sorted by issues</option>
<option value="title">Sorted by title</option>
<option value="stars" selected>Sort by stars</option>
<option value="forks">Sort by forks</option>
<option value="issues">Sort by issues</option>
<option value="title">Sort by title</option>
</select>
</div>
<% end %>
Expand All @@ -16,7 +16,7 @@
<div class="right-menu">
<ul>
<li><a href="/about.html">About</a></li>
<li><a href="/submit-new.html">Submit new</a></li>
<li><a href="/contribute.html">Contribute</a></li>
</ul>
</div>
</div>
Expand Down
51 changes: 22 additions & 29 deletions source/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,28 @@ title: JSpreadsheets
data-issues="<%= project.issues %>"
data-title="<%= project.title %>"
>
<div class="card">
<h4 class="title"><a href="<%= project.url %>"><%= project.title %></a></h4>
<h6 class="url"><a href="<%= project.homepage %>" target="_blank"><%= project.homepage.sub(/^https?:\/\//, '') %></a></small></h6>
<div class="description"><%= project.description.length > 90 ? project.description[0..90] << '...' : project.description %></div>
<dl>
<dt>License:</dt>
<dd><%= project.license %></dd>

<dt>Author:</dt>
<dd><%= project.author %></dd>

<dt>Last update:</dt>
<dd><%= project.last_commit ? project.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %></dd>
</dl>
<ul class="stats">
<li title="Stars">
<i class="fa fa-star"></i>
<span class="stat"><%= project.stars %></span>
</li>
<li title="Forks">
<i class="fa fa-code-fork"></i>
<span class="stat"><%= project.forks %></span>
</li>
<li title="Open Issues">
<i class="fa fa-bug"></i>
<span class="stat"><%= project.issues %></span>
</li>
</ul>
</div>
<a href="<%= project.url %>" class="card">
<h2 class="title"><%= project.title %></h2>
<ul class="stats">
<li title="Stars">
<i class="fa fa-star"></i>
<span class="stat"><%= project.stars %></span>
</li>
<li title="Forks">
<i class="fa fa-code-fork"></i>
<span class="stat"><%= project.forks %></span>
</li>
<li title="Open Issues">
<i class="fa fa-bug"></i>
<span class="stat"><%= project.issues %></span>
</li>
</ul>
<span class="description">
<%= project.description.length > 90 ? project.description[0..90] << '...' : project.description %>
<br><br>
Last update: <%= project.last_commit ? project.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %>
</span>
</a>
</li>
<% end %>
</ul>
Expand Down
4 changes: 0 additions & 4 deletions source/javascripts/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ $(function() {
}
});

$("select[name='filter']").change(function(e) {
$(".projects").isotope({filter: $(this).val().replace(/^\.lang-\./, '.lang-')});
});

$("select[name='sort']").change(function(e) {
var val = $(this).val();

Expand Down
10 changes: 4 additions & 6 deletions source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
<!-- Font Awesome -->
<link href="/font-awesome/css/font-awesome.css" rel="stylesheet">

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

<!-- StaticGen styles -->
<%= stylesheet_link_tag "normalize", "syntax", "all" %>
Expand All @@ -52,15 +52,13 @@
<div class="logo-group">
<a href="/" class="logo">JSpreadsheets</a>
</div>
<h1>JavaScript Open-Source Spreadsheets and Data Grids</h1>
<h1>Best JavaScript Data Grids and Spreadsheets</h1>
</div>
<%= yield %>
<div class="footer">

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

Expand Down
1 change: 0 additions & 1 deletion source/layouts/making-of.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<div class="main">
<div class="sheet">
<%= yield %>
<%= partial "includes/disqus" %>
</div>
</div>
<% end %>
3 changes: 3 additions & 0 deletions source/layouts/page.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---

---
<% wrap_layout :layout do %>
<%= partial "includes/navbar" %>
<div class="main subpage">
Expand Down
44 changes: 24 additions & 20 deletions source/layouts/project.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,25 @@
<%= partial "includes/navbar" %>

<div class="main subpage">
<h1><%= current_page.title %></h1>

<div class="sheet">

<div class="left-side">

<h2><%= current_page.title %></h2>
<div class="links">
<a href="<%= current_page.homepage %>" target="_blank" class="ellipsis"><i class="fa fa-home"></i> <%= current_page.homepage %></a>
<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>
</div>

<%= yield %>
<%= partial "includes/disqus" %>

</div>

<div class="right-side">

<div class="github-stats box">
<h4>GITHUB STATS</h4>
<h4>STATS ON GITHUB</h4>
<ul class="stats">
<li title="Stars">
<i class="fa fa-star"></i>
Expand All @@ -33,22 +36,22 @@
</li>
</ul>
</div>
<div class="installation box">
<h4>INSTALLATION</h4>
<div class="buttons">
<a href="https://github.com/<%= current_page.repo %>/releases/latest" target="_blank" class="btn blue">Download on GitHub</a>
<a href="<%= current_page.examples %>" target="_blank" class="btn red">See examples</a>
</div>
<dl>
<dt>License:</dt>
<dd><%= current_page.license %></dd>

<dt>Author:</dt>
<dd><%= current_page.author %></dd>

<dt>Last update:</dt>
<dd><%= current_page.last_commit ? current_page.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %></dd>
</dl>
<div class="installation box clearfix">
<ul>
<li>License: <%= current_page.license %></li>
<li>Author: <%= current_page.author %></li>
<li>Last update: <%= current_page.last_commit ? current_page.last_commit.to_time.strftime('%b %e, %G') : 'N/A' %></li>
</ul>
<ul>
<li>Angular: <% if current_page.angular == true %>Supported<% else %>Not supported<% end %></li>
<li>React: <% if current_page.react == true %>Supported<% else %>Not supported<% end %></li>
<li>Vue: <% if current_page.vue == true %>Supported<% else %>Not supported<% end %></li>
<li>Web Components: <% if current_page.webcomponents == true %>Supported<% else %>Not supported<% end %></li>
</ul>
<div class="buttons">
<a href="https://github.com/<%= current_page.repo %>" target="_blank" class="btn purple">Explore on GitHub</a>
<a href="<%= current_page.examples %>" target="_blank" class="btn lightpurple">Live examples</a>
</div>
</div>
<div class="charts box">
<h4>TRENDS</h4>
Expand Down Expand Up @@ -76,7 +79,8 @@
},
xaxis: {
transform: function (v) { return v; },
mode: "time"
mode: "time",
tickColor: "#fff"
}
};
$.plot("#<%= type %>-chart", [chart_<%= type %>] , options_<%= type %>);
Expand Down
13 changes: 8 additions & 5 deletions source/projects/handsontable.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
---
title: Handsontable
repo: handsontable/handsontable
homepage: http://handsontable.com
examples: http://handsontable.com/examples.html
license: MIT
bower: handsontable
technology: Vanilla JS
homepage: https://handsontable.com
twitter: handsontable
examples: https://handsontable.com/examples
angular: true
vue: true
react: true
webcomponents: true
license: Non-commercial
author: Handsoncode
authorurl: http://handsoncode.net
description: Handsontable is a JavaScript composite spreadsheet component for apps and websites.
Expand Down
4 changes: 4 additions & 0 deletions source/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *
Disallow: /ag-grid.html

Sitemap: https://jspreadsheets.com/sitemap.xml
3 changes: 3 additions & 0 deletions source/sitemap.xml.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
layout: false
---
Loading

0 comments on commit a547af7

Please sign in to comment.