mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-03 01:45:17 +02:00
Fallback to web search if local search has zero results. Updated packages
This commit is contained in:
parent
bce51bb2c4
commit
2485f4ff33
9 changed files with 645 additions and 658 deletions
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);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue