diff options
| author | Fuwn <[email protected]> | 2024-03-03 00:43:11 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-03-03 00:43:11 -0800 |
| commit | 3d45e946bf22a682cafa16e945d74b2553ae91ad (patch) | |
| tree | d3a13b0e6cfbbd8855bd114141147d652fadefb9 /src/lib/Tools/Picker.svelte | |
| parent | feat(tools): senpy shortcut (diff) | |
| download | due.moe-3d45e946bf22a682cafa16e945d74b2553ae91ad.tar.xz due.moe-3d45e946bf22a682cafa16e945d74b2553ae91ad.zip | |
feat(tools): auto-populate picker
Diffstat (limited to 'src/lib/Tools/Picker.svelte')
| -rw-r--r-- | src/lib/Tools/Picker.svelte | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/lib/Tools/Picker.svelte b/src/lib/Tools/Picker.svelte index 75005efb..8b2d183f 100644 --- a/src/lib/Tools/Picker.svelte +++ b/src/lib/Tools/Picker.svelte @@ -2,7 +2,7 @@ import { browser } from '$app/environment'; import { goto } from '$app/navigation'; import root from '$lib/Utility/root'; - import locale from '$stores/locale'; + import { tools } from './tools'; export let tool: string; </script> @@ -15,14 +15,9 @@ }} > <option value="default" selected disabled hidden>Select a tool to continue</option> - <option value="wrapped">AniList Wrapped</option> - <option value="birthdays">{$locale().tools.tool.characterBirthdays.long}</option> - <option value="sequel_spy">Sequel Spy</option> - <option value="discussions">Episode Discussion Collector</option> - <option value="random_follower">Random Follower Finder</option> - <option value="dump_profile">Dump Profile</option> - <option value="likes">Likes</option> - <option value="activity_history">Activity History Analyser</option> - <option value="girls">Anime Girls Holding Programming Books</option> + + {#each Object.keys(tools).filter((t) => t !== 'default') as t} + <option value={t}>{tools[t].short || tools[t].name()}</option> + {/each} </select> </blockquote> |