mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-22 18:30:09 +00:00
feat: add new icon names and icon name extraction script
This commit is contained in:
parent
cde7f00c46
commit
c259328ea2
3 changed files with 1119 additions and 70 deletions
|
|
@ -203,7 +203,7 @@
|
|||
routerLink="config"
|
||||
routerLinkActive="isActiveRoute"
|
||||
>
|
||||
<mat-icon>settings_applications</mat-icon>
|
||||
<mat-icon>settings</mat-icon>
|
||||
<span class="text">{{T.MH.SETTINGS|translate}}</span>
|
||||
</button>
|
||||
</section>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
15
tools/extract-material-icon-names.js
Normal file
15
tools/extract-material-icon-names.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
const fs = require('fs');
|
||||
|
||||
// download from https://fonts.google.com/metadata/icons
|
||||
const SRC = __dirname + '/../json.txt';
|
||||
const OUT = __dirname + '/../icon-names.json';
|
||||
|
||||
const ic = fs.readFileSync(SRC, { encoding: 'utf8' });
|
||||
|
||||
const icons = JSON.parse(ic).icons;
|
||||
const iconNames = icons.map((icon) => icon.name);
|
||||
|
||||
fs.writeFileSync(OUT, JSON.stringify(iconNames), {
|
||||
overwrite: true,
|
||||
flag: 'w',
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue