diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..034e8480 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. diff --git a/site/assets/styles/atelier-forest.light.css b/assets/atelier-forest.light.css similarity index 100% rename from site/assets/styles/atelier-forest.light.css rename to assets/atelier-forest.light.css diff --git a/site/assets/styles/highlight.css b/assets/highlight.css similarity index 100% rename from site/assets/styles/highlight.css rename to assets/highlight.css diff --git a/site/js/highlight.js b/assets/highlight.js similarity index 100% rename from site/js/highlight.js rename to assets/highlight.js diff --git a/site/assets/sss.css b/assets/sss.css similarity index 100% rename from site/assets/sss.css rename to assets/sss.css diff --git a/site/assets/style.css b/assets/style.css similarity index 73% rename from site/assets/style.css rename to assets/style.css index 58034575..e588e16a 100644 --- a/site/assets/style.css +++ b/assets/style.css @@ -22,15 +22,24 @@ footer a {border: none;} .half {max-width: 50%; display: inline-block; vertical-align: top;} .half:nth-child(odd) {padding-left: 20px;} +img[alt=sheetseeimg] { + width: 400px; +} + +.index p:first-of-type { + text-align: center; +} + /* older css */ -body {font-family: 'Source Sans Pro'; font-size: 18px; background: #fff; color: #535353; border: 10px #47CCFC solid; margin: 0px; padding: 20px 20px 100px 20px; overflow: auto; } +body {font-family: 'Source Sans Pro'; background: #fff; color: #535353; border: 10px #47CCFC solid; margin: 0px; padding: 20px 20px 100px 20px; overflow: auto; } h1, h2, h3, h4, h5, h6 {font-family: Source Sans Pro, Arial, sans-serif;} h2 {margin-top: 40px;} img {width: 100%;} hr {border: 2px solid #CCF4FF;} +p {font-size: 18px;} p a, a {color: #535353; text-decoration: none; padding-bottom: 0px; border-bottom: 2px #CCF4FF solid;} a:hover {color: #47CCFC;} a:active {color: #47CCFC;} @@ -44,8 +53,20 @@ body.index table {border: 4px solid #CCF4FF; padding: 18px;} pre {word-wrap: break-word; padding: 10px; background: #F8F8F8;} pre code {padding: 0;} -code {font-family: "Source Code Pro", monospace; font-size: 14px; line-height: 1; background: #F8F8F8; color: #636363; font-weight: 400; padding: 2px 6px; border-radius: 2px;} -.hljs { background: #F8F8F8; color: #494949; line-height: 1.4em; } +code {font-family: "Source Code Pro", monospace; line-height: 1; font-size: 14px; background: #F8F8F8; color: #636363; font-weight: 400; padding: 2px 6px; border-radius: 2px;} +h3 code {font-weight: bold; background: #CCF4FF; font-size: 19px;} +.hljs {background: #F8F8F8; color: #494949; line-height: 1.4em;} + +.new-news { + color: #47CCFC; + font-size: 30px; + font-weight: bold; + border: 8px solid #47CCFC; + /*border-radius: 3px;*/ + display: inline-block; + padding: 6px 16px; + margin-top: 40px; +} /* funsies */ ::selection {background: #44FFB4;} @@ -53,7 +74,7 @@ code {font-family: "Source Code Pro", monospace; font-size: 14px; line-height: 1 /* Table */ .ssExample table {min-width: 600px;} -.tHeader::after {content: " \2193 \2191 "; font-size: 10px; padding-left: 3px; cursor: hand;} +.tHeader::after {content: " \2193 \2191 "; font-size: 10px; padding-left: 3px; cursor: pointer;} /* Map Popup Style */ .leaflet-popup-content h2 {margin-bottom: 4px; margin-top: auto;} diff --git a/bower.json b/bower.json index 26d9145a..52c2a7db 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,5 @@ { "name": "sheetsee", - "version": "1.0.0", "main": [ "js/sheetsee.js", "css/sss.css" diff --git a/buildpage.js b/buildpage.js deleted file mode 100644 index e71d4073..00000000 --- a/buildpage.js +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env node - -var glob = require('glob') -var fs = require('fs') -var marked = require('marked') -var hbs = require('handlebars') -var mkdirp = require('mkdirp') -var path = require('path') -var cpr = require('cpr') - -cpr('./demos', './site/demos', function(err, files) { - if (err) return console.log(err) - cpr('./js', './site/js', function(err, files) { - if (err) return console.log(err) - }) -}) - -fs.readFile('readme.md', function(err, file) { - if (err) return console.log(err) - var name = "index" - var content = file.toString() - var html = changeExtensions(marked(content)) - applyTemplate(html, name) -}) - -glob("docs/*.md", function (err, files) { - if (err) return console.log(err) - var filenames = files.map(function(name) { - return path.basename(name) - }) - filenames.forEach(function (file) { - var name = file.split('.md')[0] - var filePath = "./docs/" - var content = fs.readFileSync(filePath + file).toString() - var html = changeExtensions(marked(content)) - applyTemplate(html, name) - }) -}) - -function applyTemplate(html, name) { - var content = {content: html, name: name} - if (name === "index") { - content.rootstyle = "." - content.rootdoc = "docs" - content.rootdemo = "." - } else { - content.rootstyle = ".." - content.rootdoc = "." - content.rootdemo = ".." - } - var file = "template.hbs" - var rawTemplate = fs.readFileSync(file).toString() - var template = hbs.compile(rawTemplate) - var page = template(content) - writeFile(page, name) -} - -function writeFile(page, name) { - if (name === "index") { - return fs.writeFileSync('./site/' + name + '.html' , page) - } - mkdirp('./site/docs', function (err) { - if (err) return console.error(err) - fs.writeFileSync('./site/docs/' + name + '.html' , page) - }) -} - -function changeExtensions(html, name) { - if (name === "index") { - html = html.replace('/\./\.\/', '') - } - var re = /.md$/ - var newHtml = html.replace(/\.md/g, '.html') - return newHtml -} diff --git a/css/sss.css b/css/sss.css deleted file mode 100644 index db232d59..00000000 --- a/css/sss.css +++ /dev/null @@ -1,53 +0,0 @@ -/* SHEETSEE STYLES */ -/* These are styles that you'll need to handle for certain elements, -/* or are available to you through elements sheetsee.js generates */ - -/* Table */ - -table {text-align: left; width: 100%} -th {padding: 10px 0px;} -td, text {padding: 3px 20px 3px 0px; font-size: 14px;} -input {background-color: transparent; padding: 0px;} -.tHeader {/* table column header style */} -.tHeader::after {content: " \2193 \2191 "; font-size: 10px; padding-left: 3px;} -.noMatches {margin-left: 20px; font-size: 11px; visibility: hidden;} -#Pagination {background: #eee;} -.pagination-next, .pagination-pre {cursor: hand;} -.no-pag {color: #acacac;} - -/* Overflow for large tables and chart */ - -.container {overflow-x: auto;} -#yourDiv {min-width: 600px} - -/* Bar Chart */ - -.labels text {text-align: right;} -.bar .labels text {fill: #333;} -.bar rect {fill: #e6e6e6;} -.axis {shape-rendering: crispEdges;} -.x.axis line {stroke: #fff; fill: none;} -.x.axis path {fill: none;} -.x.axis text {fill: #333;} -.xLabel {font-family: sans-serif; font-size: 9px;} - -/* Pie Chart */ - -.arc path { stroke: #fff;} - -/* Line Chart */ - -.axis {shape-rendering: crispEdges;} -.x.axis .minor, .y.axis .minor {stroke-opacity: .5;} -.x.axis {stroke-opacity: 1;} -.y.axis line, .y.axis path {fill: none; stroke: #acacac; stroke-width: 1;} -.bigg {-webkit-transition: all .2s ease-in-out; -webkit-transform: scale(2);} -path.chartLine {stroke: #333; stroke-width: 3; fill: none;} -div.tooltip {position: absolute; text-align: left; padding: 4px 8px; width: auto; font-size: 10px; height: auto; background: #fff; border: 0px; pointer-events: none;} -circle {fill: #e6e6e6;} - -/* Map */ - -.leaflet-popup-content li {list-style:none;} - -@media only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px) and (max-width: 1024px) {} diff --git a/demos/demo-chart.html b/demos/demo-chart.html deleted file mode 100644 index 69fcb5cd..00000000 --- a/demos/demo-chart.html +++ /dev/null @@ -1,93 +0,0 @@ - - -
- --
+View Source // View Documentation
-