Skip to content

Commit

Permalink
feat(iconpack): upgrade academicons, Heroicons, Octicons, Simple Icon…
Browse files Browse the repository at this point in the history
…s and VSCode Icons

- academicons: 2 updated icons
- Heroicons (v1.0.0): 2 updated icons
- Octicons (v13.0.0): 10 new icons, 3 fixed icons
- Simple Icons (v4.19.0): 7 new icons, 6 updated icons
- VSCode Icons (v11.4.0): 4 new icons, 1 updated icon
  • Loading branch information
Renovamen committed Apr 14, 2021
1 parent b46accc commit 01ed58a
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 37 deletions.
6 changes: 3 additions & 3 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
| [Ionicons](https://ionicons.com/) | `io` | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 1332 |
| [Line Awesome](https://icons8.com/line-awesome) | `la` | [MIT / Good Boy](https://github.com/icons8/line-awesome/blob/master/LICENSE.md) | 1544 |
| [Material Design icons](https://github.com/google/material-design-icons) | `md` | [Apache 2.0](https://github.com/google/material-design-icons/blob/master/LICENSE) | 6911 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 209 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 219 |
| [Pokemon Icons](https://theartificial.github.io/pokemon-icons/) (Colorful)| `pi` | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) | 1453 |
| [PrimeIcons](https://github.com/primefaces/primeicons) | `pr` | [MIT](https://github.com/primefaces/primeicons/blob/master/LICENSE) | 202 |
| [Pixelarticons](https://pixelarticons.com/) | `px` | [MIT](https://github.com/halfmage/pixelarticons/blob/master/LICENSE) | 460 |
| [Remix Icon](https://github.com/Remix-Design/RemixIcon) | `ri` | [Apache 2.0](https://github.com/Remix-Design/RemixIcon/blob/master/License) | 2271 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1872 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1068 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1882 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1072 |
| [Weather Icons](https://erikflowers.github.io/weather-icons/) | `wi` | [SIL OFL 1.1](http://scripts.sil.org/OFL) | 219 |


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ Now the following 20 icon packs are supported:
| [Ionicons](https://ionicons.com/) | `io` | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 1332 |
| [Line Awesome](https://icons8.com/line-awesome) | `la` | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 1544 |
| [Material Design icons](https://github.com/google/material-design-icons) | `md` | [Apache 2.0](https://github.com/google/material-design-icons/blob/master/LICENSE) | 6911 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 209 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 219 |
| [Pokemon Icons](https://theartificial.github.io/pokemon-icons/) (Colorful)| `pi` | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) | 1453 |
| [PrimeIcons](https://github.com/primefaces/primeicons) | `pr` | [MIT](https://github.com/primefaces/primeicons/blob/master/LICENSE) | 202 |
| [Pixelarticons](https://pixelarticons.com/) | `px` | [MIT](https://github.com/halfmage/pixelarticons/blob/master/LICENSE) | 460 |
| [Remix Icon](https://github.com/Remix-Design/RemixIcon) | `ri` | [Apache 2.0](https://github.com/Remix-Design/RemixIcon/blob/master/License) | 2271 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1872 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1068 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1882 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1072 |
| [Weather Icons](https://erikflowers.github.io/weather-icons/) | `wi` | [SIL OFL 1.1](http://scripts.sil.org/OFL) | 219 |


Expand Down
6 changes: 3 additions & 3 deletions docs/content/docs-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ links:
| [Ionicons](https://ionicons.com/) | `io` | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 1332 |
| [Line Awesome](https://icons8.com/line-awesome) | `la` | [MIT / Good Boy](https://github.com/icons8/line-awesome/blob/master/LICENSE.md) | 1544 |
| [Material Design icons](https://github.com/google/material-design-icons) | `md` | [Apache 2.0](https://github.com/google/material-design-icons/blob/master/LICENSE) | 6911 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 209 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 219 |
| [Pokemon Icons](https://theartificial.github.io/pokemon-icons/) (Colorful)| `pi` | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) | 1453 |
| [PrimeIcons](https://github.com/primefaces/primeicons) | `pr` | [MIT](https://github.com/primefaces/primeicons/blob/master/LICENSE) | 202 |
| [Pixelarticons](https://pixelarticons.com/) | `px` | [MIT](https://github.com/halfmage/pixelarticons/blob/master/LICENSE) | 460 |
| [Remix Icon](https://github.com/Remix-Design/RemixIcon) | `ri` | [Apache 2.0](https://github.com/Remix-Design/RemixIcon/blob/master/License) | 2271 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1872 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1068 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1882 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1072 |
| [Weather Icons](https://erikflowers.github.io/weather-icons/) | `wi` | [SIL OFL 1.1](http://scripts.sil.org/OFL) | 219 |


Expand Down
10 changes: 5 additions & 5 deletions docs/content/docs-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ Now the following 20 icon packs are supported:
| ------------------------------------------------------------- | ------ | ------------------------------------------------------------- | ---------- |
| [academicons](https://github.com/jpswalsh/academicons) | `ai` | [SIL OFL 1.1](http://scripts.sil.org/OFL) | 145 |
| [Bootstrap Icons](https://icons.getbootstrap.com/) | `bi` | [MIT](https://github.com/twbs/icons/blob/main/LICENSE.md) | 1325 |
| [Cryptocurrency Icons](https://github.com/spothq/cryptocurrency-icons) (Colorful) | `ci` | [CC0 1.0 Universal](https://github.com/spothq/cryptocurrency-icons/blob/master/LICENSE.md) | 892 |
| [CoreUI Icons Free](https://icons.coreui.io/icons/) (Colorful) | `co` | [CC BY 4.0 License](https://github.com/coreui/coreui-icons/blob/master/LICENSE) | 1583 |
| [Cryptocurrency Icons](https://github.com/spothq/cryptocurrency-icons) (Colorful) | `ci` | [CC0 1.0 Universal](https://github.com/spothq/cryptocurrency-icons/blob/master/LICENSE.md) | 892 |
| [Font Awesome 5 Free](https://fontawesome.com/) | `fa` | [CC BY 4.0](https://github.com/FortAwesome/Font-Awesome/blob/master/LICENSE.txt) | 1609 |
| [Flat Color Icons](https://github.com/icons8/flat-color-icons) (Colorful) | `fc` | [MIT / Good Boy](https://github.com/icons8/flat-color-icons/blob/master/LICENSE.md) | 329 |
| [Flag Icon](https://flagicons.lipis.dev/) (Colorful) | `fi` | [MIT](https://github.com/lipis/flag-icon-css/blob/master/LICENSE) | 516 |
| [gameicons](https://game-icons.net/) | `gi` | [CC BY 3.0](https://github.com/game-icons/icons/blob/master/license.txt) | 3927 |
| [Heroicons](https://heroicons.com/) | `hi` | [MIT](https://github.com/tailwindlabs/heroicons/blob/master/LICENSE) | 452 |
| [Ionicons](https://ionicons.com/) | `io` | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 1332 |
| [Line Awesome](https://icons8.com/line-awesome) | `la` | [MIT / Good Boy](https://github.com/icons8/line-awesome/blob/master/LICENSE.md) | 1544 |
| [Line Awesome](https://icons8.com/line-awesome) | `la` | [MIT](https://github.com/ionic-team/ionicons/blob/master/LICENSE) | 1544 |
| [Material Design icons](https://github.com/google/material-design-icons) | `md` | [Apache 2.0](https://github.com/google/material-design-icons/blob/master/LICENSE) | 6911 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 209 |
| [Octicons](https://primer.style/octicons/) | `oi` | [MIT](https://github.com/primer/octicons/blob/master/LICENSE) | 219 |
| [Pokemon Icons](https://theartificial.github.io/pokemon-icons/) (Colorful)| `pi` | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) | 1453 |
| [PrimeIcons](https://github.com/primefaces/primeicons) | `pr` | [MIT](https://github.com/primefaces/primeicons/blob/master/LICENSE) | 202 |
| [Pixelarticons](https://pixelarticons.com/) | `px` | [MIT](https://github.com/halfmage/pixelarticons/blob/master/LICENSE) | 460 |
| [Remix Icon](https://github.com/Remix-Design/RemixIcon) | `ri` | [Apache 2.0](https://github.com/Remix-Design/RemixIcon/blob/master/License) | 2271 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1872 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1068 |
| [Simple Icons](https://simpleicons.org/) | `si` | [CC0 1.0 Universal](https://github.com/simple-icons/simple-icons/blob/develop/LICENSE.md) | 1882 |
| [VSCode Icons](https://github.com/vscode-icons/vscode-icons) (Colorful) | `vi` | [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/) | 1072 |
| [Weather Icons](https://erikflowers.github.io/weather-icons/) | `wi` | [SIL OFL 1.1](http://scripts.sil.org/OFL) | 219 |


Expand Down
12 changes: 6 additions & 6 deletions docs/plugins/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import * as GiIcons from "../../package/icons/gi";
import * as HiIcons from "../../package/icons/hi";
import * as IoIcons from "../../package/icons/io";
import * as LaIcons from "../../package/icons/la";
// import * as MdIcons from "../../package/icons/md";
import * as MdIcons from "../../package/icons/md";
import * as OiIcons from "../../package/icons/oi";
// import * as PiIcons from "../../package/icons/pi";
import * as PiIcons from "../../package/icons/pi";
import * as PrIcons from "../../package/icons/pr";
import * as PxIcons from "../../package/icons/px";
import * as RiIcons from "../../package/icons/ri";
Expand All @@ -33,9 +33,9 @@ const Ai = Object.values({ ...AiIcons }),
Hi = Object.values({ ...HiIcons }),
Io = Object.values({ ...IoIcons }),
La = Object.values({ ...LaIcons }),
// Md = Object.values({ ...MdIcons }),
Md = Object.values({ ...MdIcons }),
Oi = Object.values({ ...OiIcons }),
// Pi = Object.values({ ...PiIcons }),
Pi = Object.values({ ...PiIcons }),
Pr = Object.values({ ...PrIcons }),
Px = Object.values({ ...PxIcons }),
Ri = Object.values({ ...RiIcons }),
Expand All @@ -54,9 +54,9 @@ OhVueIcon.add(...Gi);
OhVueIcon.add(...Hi);
OhVueIcon.add(...Io);
OhVueIcon.add(...La);
// OhVueIcon.add(...Md);
OhVueIcon.add(...Md);
OhVueIcon.add(...Oi);
// OhVueIcon.add(...Pi);
OhVueIcon.add(...Pi);
OhVueIcon.add(...Pr);
OhVueIcon.add(...Px);
OhVueIcon.add(...Ri);
Expand Down
2 changes: 1 addition & 1 deletion iconpacks/flag-icon
2 changes: 1 addition & 1 deletion iconpacks/material-design-icons
2 changes: 1 addition & 1 deletion iconpacks/octicons
Submodule octicons updated 44 files
+41 −4 CHANGELOG.md
+1,406 −1,022 docs/package-lock.json
+1 −1 docs/package.json
+1 −0 icons/blocked-16.svg
+1 −0 icons/blocked-24.svg
+1 −1 icons/browser-16.svg
+1 −0 icons/browser-24.svg
+1 −1 icons/circle-16.svg
+1 −0 icons/codescan-16.svg
+1 −0 icons/codescan-24.svg
+1 −0 icons/codescan-checkmark-16.svg
+1 −0 icons/codescan-checkmark-24.svg
+1 −0 icons/codespaces-16.svg
+1 −0 icons/codespaces-24.svg
+0 −1 icons/copy-24.svg
+1 −0 icons/dependabot-16.svg
+1 −0 icons/dependabot-24.svg
+1 −0 icons/duplicate-16.svg
+1 −0 icons/duplicate-24.svg
+0 −1 icons/insights-24.svg
+1 −1 icons/megaphone-16.svg
+1 −0 icons/person-add-16.svg
+1 −0 icons/person-add-24.svg
+1 −0 icons/sidebar-collapse-16.svg
+1 −0 icons/sidebar-collapse-24.svg
+1 −0 icons/sidebar-expand-16.svg
+1 −0 icons/sidebar-expand-24.svg
+1 −0 icons/table-16.svg
+1 −0 icons/table-24.svg
+1 −1 lib/octicons_gem/lib/octicons/version.rb
+1 −1 lib/octicons_helper/Gemfile
+1 −1 lib/octicons_helper/lib/octicons_helper/version.rb
+3 −2 lib/octicons_helper/octicons_helper.gemspec
+1 −1 lib/octicons_jekyll/Gemfile
+1 −1 lib/octicons_jekyll/jekyll-octicons.gemspec
+1 −1 lib/octicons_jekyll/lib/jekyll-octicons/version.rb
+1 −1 lib/octicons_node/package-lock.json
+1 −1 lib/octicons_node/package.json
+1 −1 lib/octicons_react/package-lock.json
+1 −1 lib/octicons_react/package.json
+1 −1 lib/octicons_styled/package-lock.json
+1 −1 lib/octicons_styled/package.json
+1 −1 package-lock.json
+1 −1 package.json
18 changes: 9 additions & 9 deletions scripts/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const camelcase = require("camelcase");
const rimraf = require("rimraf");

const { icons } = require("../iconpacks");
const { getIconFiles, convertSVG, writeSVG } = require("./utils");
const { getIconFiles, convertSVG /* writeSVG */ } = require("./utils");
const {
autoGenerateTemplate,
packageJsonTemplate,
Expand All @@ -25,8 +25,8 @@ async function dirInit(DIST, ASSETS) {
rimraf.sync(DIST);
await fs.mkdir(DIST, { recursive: true }).catch(ignore);

rimraf.sync(ASSETS);
await fs.mkdir(ASSETS, { recursive: true }).catch(ignore);
// rimraf.sync(ASSETS);
// await fs.mkdir(ASSETS, { recursive: true }).catch(ignore);

const write = (filePath, str) =>
fs.writeFile(path.resolve(DIST, filePath), str, "utf8").catch(ignore);
Expand All @@ -47,11 +47,11 @@ async function writeIconModule(icon, DIST, ASSETS) {
await fs.appendFile(path.resolve(DIST, "index.js"), entryModule, "utf8");
await fs.appendFile(path.resolve(DIST, "index.d.ts"), entryModule, "utf8");

const svgDir = path.resolve(ASSETS, `${icon.id}`);
rimraf.sync(svgDir);
await fs.mkdir(svgDir, { recursive: true }).catch(ignore);
// const svgDir = path.resolve(ASSETS, `${icon.id}`);
// rimraf.sync(svgDir);
// await fs.mkdir(svgDir, { recursive: true }).catch(ignore);

const exists = new Set(); // for remove duplicate
const exists = new Set(); // for removing duplicate
var iconNum = 0;

for (const content of icon.contents) {
Expand All @@ -76,7 +76,7 @@ async function writeIconModule(icon, DIST, ASSETS) {
const pascalName = camelcase(rawName, { pascalCase: true });
const prefixPascalName =
(content.formatter && content.formatter(pascalName)) || pascalName;
if (exists.has(prefixPascalName)) continue; // for remove duplicate
if (exists.has(prefixPascalName)) continue; // remove duplicate
exists.add(prefixPascalName);

const iconData = await convertSVG(
Expand All @@ -98,7 +98,7 @@ async function writeIconModule(icon, DIST, ASSETS) {
"utf8"
);

await writeSVG(svgDir, iconData);
// await writeSVG(svgDir, iconData);

exists.add(file);
}
Expand Down

0 comments on commit 01ed58a

Please sign in to comment.