From 766cd5fb7327943f3e354032bfbd05914cf4c9f5 Mon Sep 17 00:00:00 2001 From: Kyle Kemp Date: Mon, 19 Aug 2024 13:15:19 -0500 Subject: [PATCH] closes #56 --- app/handlers/resources.ts | 6 ------ .../components/input-effect/input-effect.component.ts | 2 -- .../components/input-holiday/input-holiday.component.ts | 4 ---- .../shared/components/input-spell/input-spell.component.ts | 4 ---- .../shared/components/input-trait/input-trait.component.ts | 4 ---- src/app/tabs/npcs/npcs-editor/npcs-editor.component.ts | 1 - 6 files changed, 21 deletions(-) diff --git a/app/handlers/resources.ts b/app/handlers/resources.ts index 28edff0..167a814 100644 --- a/app/handlers/resources.ts +++ b/app/handlers/resources.ts @@ -65,12 +65,6 @@ export async function updateResources(sendToUI: SendToUI) { 'challenge', 'effect-data', 'holidaydescs', - 'items', - 'npc-scripts', - 'npcs', - 'quests', - 'recipes', - 'spawners', 'spells', 'traits', 'trait-trees', diff --git a/src/app/shared/components/input-effect/input-effect.component.ts b/src/app/shared/components/input-effect/input-effect.component.ts index 161ed3e..c86890d 100644 --- a/src/app/shared/components/input-effect/input-effect.component.ts +++ b/src/app/shared/components/input-effect/input-effect.component.ts @@ -51,8 +51,6 @@ export class InputEffectComponent { }); constructor() { - this.electronService.requestJSON('effect-data'); - effect( () => { this.modService.json(); diff --git a/src/app/shared/components/input-holiday/input-holiday.component.ts b/src/app/shared/components/input-holiday/input-holiday.component.ts index 3c1bbb5..7557546 100644 --- a/src/app/shared/components/input-holiday/input-holiday.component.ts +++ b/src/app/shared/components/input-holiday/input-holiday.component.ts @@ -35,10 +35,6 @@ export class InputHolidayComponent { })); }); - constructor() { - this.electronService.requestJSON('holidaydescs'); - } - public search(term: string, item: { value: string }) { return item.value.toLowerCase().includes(term.toLowerCase()); } diff --git a/src/app/shared/components/input-spell/input-spell.component.ts b/src/app/shared/components/input-spell/input-spell.component.ts index 8407dff..6897ea9 100644 --- a/src/app/shared/components/input-spell/input-spell.component.ts +++ b/src/app/shared/components/input-spell/input-spell.component.ts @@ -27,10 +27,6 @@ export class InputSpellComponent { return Object.keys(spellObj ?? {}).sort(); }); - constructor() { - this.electronService.requestJSON('spells'); - } - public search(term: string, item: { value: string }) { return item.value.toLowerCase().includes(term.toLowerCase()); } diff --git a/src/app/shared/components/input-trait/input-trait.component.ts b/src/app/shared/components/input-trait/input-trait.component.ts index c318953..497e881 100644 --- a/src/app/shared/components/input-trait/input-trait.component.ts +++ b/src/app/shared/components/input-trait/input-trait.component.ts @@ -30,8 +30,4 @@ export class InputTraitComponent { .sort() .map((t) => ({ value: t, desc: traitObj[t].desc ?? 'No description' })); }); - - constructor() { - this.electronService.requestJSON('traits'); - } } diff --git a/src/app/tabs/npcs/npcs-editor/npcs-editor.component.ts b/src/app/tabs/npcs/npcs-editor/npcs-editor.component.ts index 70e551a..0ce9850 100644 --- a/src/app/tabs/npcs/npcs-editor/npcs-editor.component.ts +++ b/src/app/tabs/npcs/npcs-editor/npcs-editor.component.ts @@ -120,7 +120,6 @@ export class NpcsEditorComponent constructor() { super(); - this.electronService.requestJSON('challenge'); effect(() => { const data = this.challengeData();