diff --git a/.github/ISSUE_TEMPLATE/icon_request.md b/.github/ISSUE_TEMPLATE/icon_request.md index a7e39b38c..cff00e350 100644 --- a/.github/ISSUE_TEMPLATE/icon_request.md +++ b/.github/ISSUE_TEMPLATE/icon_request.md @@ -1,6 +1,7 @@ --- name: Icon request about: Request a new icon for SimpleIcons +labels: new icon --- diff --git a/.github/ISSUE_TEMPLATE/icon_update.md b/.github/ISSUE_TEMPLATE/icon_update.md index 559f8f72b..2c0b75d03 100644 --- a/.github/ISSUE_TEMPLATE/icon_update.md +++ b/.github/ISSUE_TEMPLATE/icon_update.md @@ -1,6 +1,7 @@ --- name: Icon update about: Help us improve by reporting outdated icons +labels: icon outdated --- diff --git a/README.md b/README.md index 6b58dad8a..08351461a 100644 --- a/README.md +++ b/README.md @@ -80,5 +80,5 @@ Icons are also available on WordPress through a simple plugin created by [@tjtay ## Status -[![Build Status](https://img.shields.io/travis/simple-icons/simple-icons/develop.svg)](https://travis-ci.org/simple-icons/simple-icons) +[![Build Status](https://travis-ci.com/simple-icons/simple-icons.svg?branch=develop)](https://travis-ci.com/simple-icons/simple-icons) [![npm version](https://img.shields.io/npm/v/simple-icons.svg)](https://www.npmjs.com/package/simple-icons) diff --git a/_data/simple-icons.json b/_data/simple-icons.json index ef03133ec..307daf3e4 100644 --- a/_data/simple-icons.json +++ b/_data/simple-icons.json @@ -145,6 +145,11 @@ "hex": "00ACC1", "source": "https://angular.io/presskit" }, + { + "title": "Ansible", + "hex": "EE0000", + "source": "https://www.ansible.com/logos" + }, { "title": "Apache", "hex": "D22128", @@ -245,6 +250,11 @@ "hex": "2560E0", "source": "https://github.com/vscode-icons/vscode-icons/pull/1741" }, + { + "title": "Babel", + "hex": "F9DC3E", + "source": "https://babeljs.io/" + }, { "title": "Baidu", "hex": "2319DC", @@ -375,6 +385,11 @@ "hex": "509CF6", "source": "https://www.campaignmonitor.com/brand" }, + { + "title": "Canva", + "hex": "00C4CC", + "source": "https://www.canva.com/" + }, { "title": "Cash App", "hex": "00C244", @@ -410,6 +425,11 @@ "hex": "343434", "source": "https://circleci.com/press" }, + { + "title": "Cirrus CI", + "hex": "212121", + "source": "https://cirrus-ci.org" + }, { "title": "CiviCRM", "hex": "81C459", @@ -545,6 +565,11 @@ "hex": "0288D1", "source": "https://www.crunchbase.com/home" }, + { + "title": "Crunchyroll", + "hex": "F47521", + "source": "https://www.crunchyroll.com" + }, { "title": "CSS3", "hex": "1572B6", @@ -775,6 +800,11 @@ "hex": "000000", "source": "https://ello.co" }, + { + "title": "Elsevier", + "hex": "FF6C00", + "source": "https://www.elsevier.com" + }, { "title": "Empire Kred", "hex": "72BE50", @@ -785,6 +815,11 @@ "hex": "81B441", "source": "https://envato.com/" }, + { + "title": "Epic Games", + "hex": "313131", + "source": "https://www.epicgames.com/" + }, { "title": "ESEA", "hex": "0E9648", @@ -1060,6 +1095,11 @@ "hex": "4285F4", "source": "https://blog.google/press/?product_tag=chrome" }, + { + "title": "Google Cloud", + "hex": "4285F4", + "source": "https://cloud.google.com/" + }, { "title": "Google Analytics", "hex": "FFC107", @@ -1325,6 +1365,11 @@ "hex": "0071C5", "source": "https://www.intel.com" }, + { + "title": "IntelliJ IDEA", + "hex": "000000", + "source": "https://www.jetbrains.com/idea/" + }, { "title": "Intercom", "hex": "1F8DED", @@ -1475,6 +1520,11 @@ "hex": "333333", "source": "https://withknown.com/img/logo_k.png" }, + { + "title": "Kodi", + "hex": "17B2E7", + "source": "https://kodi.tv/" + }, { "title": "Koding", "hex": "00B057", @@ -1935,6 +1985,11 @@ "hex": "76B900", "source": "https://www.nvidia.com/etc/designs/nvidiaGDC/clientlibs_base/images/NVIDIA-Logo.svg" }, + { + "title": "OCaml", + "hex": "EC6813", + "source": "http://ocaml.org/img/OCaml_Sticker.svg" + }, { "title": "Octopus Deploy", "hex": "2F93E0", @@ -2010,6 +2065,11 @@ "hex": "005483", "source": "http://blog.pandora.com/us/the-color-of-music-unveiling-a-new-pandora-look-that-reflects-your-music-experience/" }, + { + "title": "Pantheon", + "hex": "EFD01B", + "source": "https://projects.invisionapp.com/boards/8UOJQWW2J3G5#/1145336" + }, { "title": "Patreon", "hex": "F96854", @@ -2125,6 +2185,11 @@ "hex": "5391FE", "source": "https://github.com/PowerShell/PowerShell" }, + { + "title": "Prettier", + "hex": "F7B93E", + "source": "https://github.com/prettier/prettier-logo/tree/master/images" + }, { "title": "Prismic", "hex": "484A7A", @@ -2510,6 +2575,11 @@ "hex": "9266CC", "source": "http://spacemacs.org/" }, + { + "title": "SpaceX", + "hex": "005288", + "source": "https://www.spacex.com/sites/all/themes/spacex2012/images/logo.svg" + }, { "title": "SparkFun", "hex": "E53525", @@ -2958,7 +3028,7 @@ { "title": "Visual Studio Code", "hex": "007ACC", - "source": "https://code.visualstudio.com" + "source": "https://commons.wikimedia.org/wiki/File:Visual_Studio_Code_1.35_icon.svg" }, { "title": "VK", diff --git a/icons/ansible.svg b/icons/ansible.svg new file mode 100644 index 000000000..21847331e --- /dev/null +++ b/icons/ansible.svg @@ -0,0 +1 @@ +Ansible icon \ No newline at end of file diff --git a/icons/babel.svg b/icons/babel.svg new file mode 100644 index 000000000..9eaffe698 --- /dev/null +++ b/icons/babel.svg @@ -0,0 +1 @@ +Babel icon \ No newline at end of file diff --git a/icons/canva.svg b/icons/canva.svg new file mode 100644 index 000000000..4972a5cb7 --- /dev/null +++ b/icons/canva.svg @@ -0,0 +1 @@ +Canva icon \ No newline at end of file diff --git a/icons/cirrusci.svg b/icons/cirrusci.svg new file mode 100644 index 000000000..e7d920fc4 --- /dev/null +++ b/icons/cirrusci.svg @@ -0,0 +1 @@ +Cirrus CI \ No newline at end of file diff --git a/icons/crunchyroll.svg b/icons/crunchyroll.svg new file mode 100644 index 000000000..059127b4c --- /dev/null +++ b/icons/crunchyroll.svg @@ -0,0 +1 @@ +Crunchyroll icon \ No newline at end of file diff --git a/icons/elsevier.svg b/icons/elsevier.svg new file mode 100644 index 000000000..5e0ff9f4a --- /dev/null +++ b/icons/elsevier.svg @@ -0,0 +1 @@ +Elsevier icon \ No newline at end of file diff --git a/icons/epicgames.svg b/icons/epicgames.svg new file mode 100644 index 000000000..fff100e61 --- /dev/null +++ b/icons/epicgames.svg @@ -0,0 +1 @@ +Epic Games icon \ No newline at end of file diff --git a/icons/furrynetwork.svg b/icons/furrynetwork.svg index 78405ef26..1509f6a92 100644 --- a/icons/furrynetwork.svg +++ b/icons/furrynetwork.svg @@ -1 +1 @@ -Furry Network icon \ No newline at end of file +Furry Network icon \ No newline at end of file diff --git a/icons/googlecloud.svg b/icons/googlecloud.svg new file mode 100644 index 000000000..17d6a4f65 --- /dev/null +++ b/icons/googlecloud.svg @@ -0,0 +1 @@ +Google Cloud icon \ No newline at end of file diff --git a/icons/intellijidea.svg b/icons/intellijidea.svg new file mode 100644 index 000000000..691b45d38 --- /dev/null +++ b/icons/intellijidea.svg @@ -0,0 +1 @@ +IntelliJ IDEA icon \ No newline at end of file diff --git a/icons/kodi.svg b/icons/kodi.svg new file mode 100644 index 000000000..7716b8d3a --- /dev/null +++ b/icons/kodi.svg @@ -0,0 +1 @@ +Kodi icon \ No newline at end of file diff --git a/icons/ocaml.svg b/icons/ocaml.svg new file mode 100644 index 000000000..2c3c47e71 --- /dev/null +++ b/icons/ocaml.svg @@ -0,0 +1 @@ +OCaml icon \ No newline at end of file diff --git a/icons/pantheon.svg b/icons/pantheon.svg new file mode 100644 index 000000000..d770cc903 --- /dev/null +++ b/icons/pantheon.svg @@ -0,0 +1 @@ +Pantheon icon \ No newline at end of file diff --git a/icons/prettier.svg b/icons/prettier.svg new file mode 100644 index 000000000..018b38596 --- /dev/null +++ b/icons/prettier.svg @@ -0,0 +1 @@ +Prettier icon \ No newline at end of file diff --git a/icons/spacex.svg b/icons/spacex.svg new file mode 100644 index 000000000..bc85c646b --- /dev/null +++ b/icons/spacex.svg @@ -0,0 +1 @@ +SpaceX icon \ No newline at end of file diff --git a/icons/visualstudiocode.svg b/icons/visualstudiocode.svg index 4e0a35ca0..f091d172f 100644 --- a/icons/visualstudiocode.svg +++ b/icons/visualstudiocode.svg @@ -1 +1 @@ -Visual Studio Code icon \ No newline at end of file +Visual Studio Code icon \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 5e1951ed8..798da9db2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "simple-icons", - "version": "1.9.28", + "version": "1.10.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cd97d5cf0..7a18aa6c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simple-icons", - "version": "1.9.28", + "version": "1.10.0", "description": "SVG icons for popular brands https://simpleicons.org", "homepage": "https://www.simpleicons.org", "keywords": [ diff --git a/scripts/prepublish.js b/scripts/prepublish.js index a767cfac2..db663d7d8 100755 --- a/scripts/prepublish.js +++ b/scripts/prepublish.js @@ -19,6 +19,7 @@ const icons = {}; data.icons.forEach(icon => { const filename = titleToFilename(icon.title); icon.svg = fs.readFileSync(`${iconsDir}/${filename}.svg`, "utf8"); + icon.path = icon.svg.match(/ { ); }); -/* Backwards compatibility */ -// https://github.com/simple-icons/simple-icons/pull/1365 -const adobeLightroom = icons["Adobe Lightroom Classic"]; -adobeLightroom.title = "Adobe Lightroom"; -icons["Adobe Lightroom"] = adobeLightroom; -fs.writeFileSync( - `${iconsDir}/adobelightroom.svg`, - adobeLightroom.svg -); -fs.writeFileSync( - `${iconsDir}/adobelightroom.js`, - `module.exports=${JSON.stringify(adobeLightroom)};` -); - // write our generic index.js fs.writeFileSync(indexFile, `module.exports=${JSON.stringify(icons)};`); diff --git a/tests/icons.test.js b/tests/icons.test.js index 0d91c978e..a0d3bf759 100644 --- a/tests/icons.test.js +++ b/tests/icons.test.js @@ -21,4 +21,9 @@ icons.forEach(icon => { test(`${icon.title} has an "svg"`, () => { expect(typeof subject.svg).toBe('string'); }); + + test(`${icon.title} has a "path"`, () => { + expect(typeof subject.path).toBe('string'); + expect(subject.path).toMatch(/[MmZzLlHhVvCcSsQqTtAa0-9-,.\s]/g); + }); }); diff --git a/tests/index.test.js b/tests/index.test.js index 6900abf9d..2daf82a84 100644 --- a/tests/index.test.js +++ b/tests/index.test.js @@ -20,4 +20,9 @@ icons.forEach(icon => { test(`${icon.title} has an "svg"`, () => { expect(typeof subject.svg).toBe('string'); }); + + test(`${icon.title} has a "path"`, () => { + expect(typeof subject.path).toBe('string'); + expect(subject.path).toMatch(/^[MmZzLlHhVvCcSsQqTtAa0-9-,.\s]+$/g); + }); });