mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 09:23:12 +08:00
Fallback to web search if local search has zero results. Updated packages
This commit is contained in:
9
.dev/getMdi.js
Normal file
9
.dev/getMdi.js
Normal file
@@ -0,0 +1,9 @@
|
||||
// Script to get all icon names from materialdesignicons.com
|
||||
const getMdi = () => {
|
||||
const icons = document.querySelectorAll('#icons div span');
|
||||
const names = [...icons].map((icon) => icon.textContent.replace('mdi-', ''));
|
||||
const output = names.map((name) => ({ name }));
|
||||
output.pop();
|
||||
const json = JSON.stringify(output);
|
||||
console.log(json);
|
||||
};
|
||||
Reference in New Issue
Block a user