diff --git a/libs/icons.js b/libs/icons.js index 6dfea7d..0884466 100644 --- a/libs/icons.js +++ b/libs/icons.js @@ -32,6 +32,6 @@ function whitenSVG (svg, whiten) { } module.exports = { - builtin: genIcons('icons'), - simple: genIcons('../node_modules/simple-icons/icons', true) + builtin: genIcons('icons') + // simple: genIcons('../node_modules/simple-icons/icons', true) } diff --git a/libs/icons/bithound.svg b/libs/icons/bithound.svg deleted file mode 100644 index 7fb554d..0000000 --- a/libs/icons/bithound.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libs/icons/chrome.svg b/libs/icons/chrome.svg new file mode 100644 index 0000000..4afd70b --- /dev/null +++ b/libs/icons/chrome.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/icons/firefox.svg b/libs/icons/firefox.svg new file mode 100644 index 0000000..0046d62 --- /dev/null +++ b/libs/icons/firefox.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/icons/gitter-white.svg b/libs/icons/gitter.svg similarity index 100% rename from libs/icons/gitter-white.svg rename to libs/icons/gitter.svg diff --git a/libs/icons/paypal.svg b/libs/icons/paypal.svg deleted file mode 100644 index 5f2f51e..0000000 --- a/libs/icons/paypal.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libs/icons/serverfault.svg b/libs/icons/serverfault.svg deleted file mode 100644 index 3519238..0000000 --- a/libs/icons/serverfault.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libs/icons/stackexchange.svg b/libs/icons/stackexchange.svg deleted file mode 100644 index 362e4b1..0000000 --- a/libs/icons/stackexchange.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libs/icons/stackoverflow.svg b/libs/icons/stackoverflow.svg deleted file mode 100644 index 60904be..0000000 --- a/libs/icons/stackoverflow.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libs/icons/superuser.svg b/libs/icons/superuser.svg deleted file mode 100644 index 24fa9ea..0000000 --- a/libs/icons/superuser.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/libs/icons/terminal.svg b/libs/icons/terminal.svg new file mode 100644 index 0000000..df8a42e --- /dev/null +++ b/libs/icons/terminal.svg @@ -0,0 +1,3 @@ + + + diff --git a/libs/icons/tfs.svg b/libs/icons/tfs.svg deleted file mode 100644 index fcdc57e..0000000 --- a/libs/icons/tfs.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/libs/icons/twitter.svg b/libs/icons/twitter.svg deleted file mode 100644 index c67c567..0000000 --- a/libs/icons/twitter.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/libs/index.md b/libs/index.md index 762096b..d6cb79c 100644 --- a/libs/index.md +++ b/libs/index.md @@ -44,8 +44,8 @@ Available icons: ![](/badge/icon/circleci?icon=circleci) ![](/badge/icon/github?icon=github) ![](/badge/icon/docker?icon=docker) -![](/badge/icon/mozillafirefox?icon=mozillafirefox) -![](/badge/icon/googlechrome?icon=googlechrome) +![](/badge/icon/firefox?icon=firefox) +![](/badge/icon/chrome?icon=chrome) ## Examples diff --git a/libs/serve-badge.js b/libs/serve-badge.js index 52af0ad..aa167cb 100644 --- a/libs/serve-badge.js +++ b/libs/serve-badge.js @@ -1,6 +1,6 @@ const badgen = require('badgen') const { send } = require('micro') -const { builtin, simple } = require('./icons.js') +const { builtin } = require('./icons.js') module.exports = function serveBadge (req, res, options = {}) { const { code = 200, maxAge = '86400' } = options @@ -15,7 +15,7 @@ module.exports = function serveBadge (req, res, options = {}) { color: color, style: style || hostStyle, emoji: Boolean(emoji), - icon: builtin[icon] || simple[icon] + icon: builtin[icon] } res.setHeader('Content-Type', 'image/svg+xml;charset=utf-8') diff --git a/package-lock.json b/package-lock.json index 9b644a1..72500e2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3634,11 +3634,6 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, - "simple-icons": { - "version": "1.7.1", - "resolved": "https://registry.npmjs.org/simple-icons/-/simple-icons-1.7.1.tgz", - "integrity": "sha1-xoVlvjKsRsq4N7IZrnGuu6T9JVM=" - }, "slice-ansi": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-1.0.0.tgz", diff --git a/package.json b/package.json index ebc1d0f..dcab4ba 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,6 @@ "millify": "^2.0.1", "pretty-bytes": "^5.1.0", "serve-marked": "0.3.0", - "simple-icons": "^1.7.1", "xml2js": "^0.4.19" }, "devDependencies": {