diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-11 22:54:22 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-11 22:54:22 +0000 |
| commit | b0ab01ef6b715cafb12ecb2aa844a29c59c8a027 (patch) | |
| tree | eaf1f78df067f610e54c2a5a0794f04922653b2e /stores | |
| parent | 27d85f0cda4d6f71a5a8eab8f416f29f01602b38 (diff) | |
Update styles, add task type icons
Diffstat (limited to 'stores')
| -rw-r--r-- | stores/session.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/stores/session.ts b/stores/session.ts index 1938b63..acd2c66 100644 --- a/stores/session.ts +++ b/stores/session.ts @@ -14,7 +14,7 @@ export interface EditorQuest { rewards: string[]; startCommands?: string[]; startString?: string[]; - rewardString?: string[]; + rewardString?: string[]; placeholders?: { [key: string]: string }; options: { category: string; @@ -60,6 +60,10 @@ export interface EditorCategory { export interface TaskDefinition { description: string; + icon: { + style: string; + name: string; + } configuration: { [key: string]: { type: string | string[]; @@ -141,7 +145,7 @@ export const useSessionStore = defineStore('session', { changeQuestId(oldId: string, newId: string) { const quest = this.getQuestById(oldId); if (!quest) return; - + quest.id = newId }, deleteQuest(id: string) { |
