feat: add new icon names and icon name extraction script

This commit is contained in:
Johannes Millan 2021-12-13 12:38:25 +01:00
parent cde7f00c46
commit c259328ea2
3 changed files with 1119 additions and 70 deletions

View file

@ -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

View 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',
});