mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 01:13:11 +08:00
Fallback to web search if local search has zero results. Updated packages
This commit is contained in:
10
.dev/DEV_GUIDELINES.md
Normal file
10
.dev/DEV_GUIDELINES.md
Normal file
@@ -0,0 +1,10 @@
|
||||
## Adding new config key
|
||||
|
||||
1. Edit utils/init/initialConfig.json
|
||||
2. Edit client/src/interfaces/Config.ts
|
||||
3. Edit client/src/utility/templateObjects/configTemplate.ts
|
||||
|
||||
If config value will be used in a form:
|
||||
|
||||
4. Edit client/src/interfaces/Forms.ts
|
||||
5. Edit client/src/utility/templateObjects/settingsTemplate.ts
|
||||
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