diff options
| author | Fuwn <[email protected]> | 2024-02-11 10:25:45 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-02-11 10:25:45 -0800 |
| commit | 6ef2debe3d7aaced48a5cbe4c854f88167c44959 (patch) | |
| tree | 1636b6ea49259c9c106b85705006864919135ec3 /src/lib | |
| parent | feat(tools): update names and descriptions (diff) | |
| download | due.moe-6ef2debe3d7aaced48a5cbe4c854f88167c44959.tar.xz due.moe-6ef2debe3d7aaced48a5cbe4c854f88167c44959.zip | |
refactor(tools): make descriptions dynamic
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/Tools/tools.ts | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/lib/Tools/tools.ts b/src/lib/Tools/tools.ts index de0bc4a2..8cec65a1 100644 --- a/src/lib/Tools/tools.ts +++ b/src/lib/Tools/tools.ts @@ -4,18 +4,18 @@ import { get } from 'svelte/store'; export const tools: { [key: string]: { name: () => string; - description?: string; + description?: () => string; id: string; }; } = { default: { name: () => 'Tools', - description: 'A collection of tools to help you get the most out of AniList.', + description: () => 'A collection of tools to help you get the most out of AniList.', id: 'default' }, wrapped: { name: () => 'AniList Wrapped & Statistics Panel', - description: + description: () => 'Instantly generate an AniList themed Wrapped for your profile, doubling as a statistics panel for your bio', id: 'wrapped' }, @@ -23,38 +23,39 @@ export const tools: { name: () => { return get(locale)().tools.tool.characterBirthdays.long; }, - description: + description: () => 'Find and display the birthdays of all characters for today, or any other day of the year', id: 'birthdays' }, sequel_spy: { name: () => 'Sequel Spy', - description: "Find media with prequels you haven't seen yet for any given simulcast season", + description: () => + "Find media with prequels you haven't seen yet for any given simulcast season", id: 'sequel_spy' }, discussions: { name: () => 'Episode Discussion Collector', - description: 'Find and display all episode discussions created by a given user', + description: () => 'Find and display all episode discussions created by a given user', id: 'discussions' }, random_follower: { name: () => 'Random Follower Finder', - description: "Generate random followers from any user's following list", + description: () => "Generate random followers from any user's following list", id: 'random_follower' }, likes: { name: () => 'Likes', - description: 'Get all likes of an activity or forum thread', + description: () => 'Get all likes of an activity or forum thread', id: 'likes' }, dump_profile: { name: () => 'Dump Profile', - description: "Dump a user's profile to JSON", + description: () => "Dump a user's profile to JSON", id: 'dump_profile' }, activity_history: { name: () => 'Activity History Analyser', id: 'activity_history', - description: 'Activity history utilities & image exporter' + description: () => 'Activity history utilities & image exporter' } }; |