From 2c7890e90e1aad371854cfe60ad63eaa88e64fec Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 19 Aug 2023 23:51:58 +0200 Subject: move generated db json files --- resources/js/db.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'resources') diff --git a/resources/js/db.js b/resources/js/db.js index 648c54c..e084818 100644 --- a/resources/js/db.js +++ b/resources/js/db.js @@ -72,9 +72,9 @@ const DB = { }; async function initializeDB () { - DB.allMonsters = await fetch('/db/all-monsters.json').then((response) => response.json()); - DB.allAnimations = await fetch('/db/animations.json').then((response) => response.json()); - DB.allItems = await fetch('/db/all-items.json').then((response) => response.json()); + DB.allMonsters = await fetch('/db/_generated/all-monsters.json').then((response) => response.json()); + DB.allAnimations = await fetch('/db/_generated/animations.json').then((response) => response.json()); + DB.allItems = await fetch('/db/_generated/all-items.json').then((response) => response.json()); DB.shapes = await fetch('/modules/tuxemon/mods/tuxemon/db/shape/shapes.json').then((response) => response.json()); @@ -147,7 +147,7 @@ async function fetchItem (slug) { */ async function fetchTranslation (locale) { if (! DB.translations[locale]) { - DB.translations[locale] = await fetch(`/db/i18n/${locale}.json`).then((response) => response.json()); + DB.translations[locale] = await fetch(`/db/_generated/i18n/${locale}.json`).then((response) => response.json()); } return DB.translations[locale]; -- cgit v1.2.3