Material icon metadata generator
This commit is contained in:
16
tools/material-icon-generator/app/generate-metadata.ts
Normal file
16
tools/material-icon-generator/app/generate-metadata.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { fileIcons } from './material/icons/fileIcons';
|
||||
|
||||
for (var icon of fileIcons.icons!) {
|
||||
if (!icon.enabledFor && icon.fileExtensions) {
|
||||
for (var ext of icon.fileExtensions) {
|
||||
console.log('_iconsByExtension.Add("' + ext + '", "' + icon.name + '");');
|
||||
}
|
||||
}
|
||||
}
|
||||
for (var icon of fileIcons.icons!) {
|
||||
if (!icon.enabledFor && icon.fileNames) {
|
||||
for (var ext of icon.fileNames) {
|
||||
console.log('_iconsByFileName.Add("' + ext + '", "' + icon.name + '");');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user