diff --git a/package-lock.json b/package-lock.json index 2b73f9f..4475cb8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4640,6 +4640,25 @@ } } }, + "serve-favicon": { + "version": "2.4.3", + "resolved": "https://registry.npmjs.org/serve-favicon/-/serve-favicon-2.4.3.tgz", + "integrity": "sha1-WYaxewUCZCtkHCH4GLGszjICXSM=", + "requires": { + "etag": "https://registry.npmjs.org/etag/-/etag-1.8.0.tgz", + "fresh": "https://registry.npmjs.org/fresh/-/fresh-0.5.0.tgz", + "ms": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "parseurl": "1.3.1", + "safe-buffer": "5.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.0.1.tgz", + "integrity": "sha1-0mPKVGls2KMGtcplUekt5XkY++c=" + } + } + }, "serve-static": { "version": "https://registry.npmjs.org/serve-static/-/serve-static-1.12.3.tgz", "integrity": "sha1-n0uhni8wMMVH+K+ZEHg47DjVseI=", diff --git a/package.json b/package.json index 29af1c8..06296f1 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "oauth-libre": "^0.9.17", "objection": "^0.8.4", "pug": "^2.0.0-rc.3", + "serve-favicon": "^2.4.3", "stylus": "^0.54.5", "thirty-two": "^1.0.2", "toml": "^2.3.2", diff --git a/server/server.js b/server/server.js index 83927db..440311b 100644 --- a/server/server.js +++ b/server/server.js @@ -1,9 +1,10 @@ -import express from 'express' -import session from 'express-session' -import bodyParser from 'body-parser' import connectSession from 'connect-redis' -import path from 'path' +import session from 'express-session' +import favicon from 'serve-favicon' +import bodyParser from 'body-parser' +import express from 'express' import crypto from 'crypto' +import path from 'path' import routes from './routes' import flash from '../scripts/flash' @@ -59,6 +60,8 @@ app.use((req, res, next) => { next() }) +app.use(favicon(path.join(__dirname, '..', 'static', 'image', 'icynet.ico'))) + module.exports = (args) => { app.set('view options', {layout: false}) app.set('view engine', 'pug') diff --git a/static/image/icynet-icon-large.png b/static/image/icynet-icon-large.png new file mode 100644 index 0000000..69c4eb0 Binary files /dev/null and b/static/image/icynet-icon-large.png differ diff --git a/static/image/icynet-icon.png b/static/image/icynet-icon.png new file mode 100644 index 0000000..0fa1c85 Binary files /dev/null and b/static/image/icynet-icon.png differ diff --git a/static/image/icynet-icon.svg b/static/image/icynet-icon.svg new file mode 100644 index 0000000..7c21d99 --- /dev/null +++ b/static/image/icynet-icon.svg @@ -0,0 +1,134 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + ICYnet + ICYnet + + diff --git a/static/image/icynet-highres.png b/static/image/icynet-large.png similarity index 100% rename from static/image/icynet-highres.png rename to static/image/icynet-large.png diff --git a/static/image/icynet.ico b/static/image/icynet.ico new file mode 100644 index 0000000..6e135cf Binary files /dev/null and b/static/image/icynet.ico differ diff --git a/static/image/icynet.svg b/static/image/icynet.svg new file mode 100644 index 0000000..a4ae9c8 --- /dev/null +++ b/static/image/icynet.svg @@ -0,0 +1,152 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + NETWORK + + + + ICY + + diff --git a/static/image/icynet.svgz b/static/image/icynet.svgz deleted file mode 100644 index ecaefb4..0000000 Binary files a/static/image/icynet.svgz and /dev/null differ