git ssb

30+

cel / git-ssb-web



Commit 9753b3e2eba7aa96d60d11ff8a5685e94b4169b5

add tachyons

mix irving committed on 11/4/2016, 12:33:13 PM
Parent: a9fe03daf5d840abc9878f2330aaec4a12666857

Files changed

index.jschanged
package.jsonchanged
index.jsView
@@ -25,8 +25,9 @@
2525 var mime = require('mime-types')
2626 var moment = require('moment')
2727
2828 var hlCssPath = path.resolve(require.resolve('highlight.js'), '../../styles')
29 +var tachyonsCssPath = path.resolve(require.resolve('tachyons'), '../../css')
2930
3031 function ParamError(msg) {
3132 var err = Error.call(this, msg)
3233 err.name = ParamError.name
@@ -236,8 +237,10 @@
236237 else if (dir == 'static')
237238 return this.serveFile(req, dirs)
238239 else if (dir == 'highlight')
239240 return this.serveFile(req, [hlCssPath].concat(dirs.slice(1)), true)
241 + else if (dir == 'tachyons')
242 + return this.serveFile(req, [tachyonsCssPath].concat(dirs.slice(1)), true)
240243 else
241244 return this.serve404(req)
242245 }
243246
@@ -434,8 +437,9 @@
434437 '<!doctype html><html><head><meta charset=utf-8>',
435438 '<title>' + (title || app) + '</title>',
436439 '<link rel=stylesheet href="/static/styles.css"/>',
437440 '<link rel=stylesheet href="/highlight/foundation.css"/>',
441 + '<link rel=stylesheet href="/tachyons/tachyons.min.css"/>',
438442 '</head>\n',
439443 '<body>',
440444 '<header>'
441445 ]),
package.jsonView
@@ -29,9 +29,10 @@
2929 "ssb-msg-schemas": "^6.1.1",
3030 "ssb-pull-requests": "^0.2.2",
3131 "ssb-reconnect": "^0.1.0",
3232 "ssb-ref": "^2.6.1",
33- "stream-to-pull-stream": "^1.7.2"
33 + "stream-to-pull-stream": "^1.7.2",
34 + "tachyons": "^4.5.4"
3435 },
3536 "homepage": "https://git-ssb.celehner.com/%25q5d5Du%2B9WkaSdjc8aJPZm%2BjMrqgo0tmfR%2BRcX5ZZ6H4%3D.sha256",
3637 "bugs": "https://git-ssb.celehner.com/%25q5d5Du%2B9WkaSdjc8aJPZm%2BjMrqgo0tmfR%2BRcX5ZZ6H4%3D.sha256/issues",
3738 "repository": {

Built with git-ssb-web