diff options
-rw-r--r-- | db/_generated/all-items.json (renamed from db/all-items.json) | 0 | ||||
-rw-r--r-- | db/_generated/all-monsters.json (renamed from db/all-monsters.json) | 0 | ||||
-rw-r--r-- | db/_generated/animations.json (renamed from db/animations.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/cs_CZ.json (renamed from db/i18n/cs_CZ.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/de_DE.json (renamed from db/i18n/de_DE.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/en_US.json (renamed from db/i18n/en_US.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/eo.json (renamed from db/i18n/eo.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/es_ES.json (renamed from db/i18n/es_ES.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/es_MX.json (renamed from db/i18n/es_MX.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/fi.json (renamed from db/i18n/fi.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/fr_FR.json (renamed from db/i18n/fr_FR.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/it_IT.json (renamed from db/i18n/it_IT.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/ja.json (renamed from db/i18n/ja.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/nb_NO.json (renamed from db/i18n/nb_NO.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/pl.json (renamed from db/i18n/pl.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/pt_BR.json (renamed from db/i18n/pt_BR.json) | 0 | ||||
-rw-r--r-- | db/_generated/i18n/zh_CN.json (renamed from db/i18n/zh_CN.json) | 0 | ||||
-rw-r--r-- | db/all-items.php | 2 | ||||
-rw-r--r-- | db/all-monsters.php | 2 | ||||
-rw-r--r-- | db/animations.php | 2 | ||||
-rw-r--r-- | db/i18n.php | 2 | ||||
-rw-r--r-- | resources/js/db.js | 8 |
22 files changed, 8 insertions, 8 deletions
diff --git a/db/all-items.json b/db/_generated/all-items.json index c996fc1..c996fc1 100644 --- a/db/all-items.json +++ b/db/_generated/all-items.json diff --git a/db/all-monsters.json b/db/_generated/all-monsters.json index 4011363..4011363 100644 --- a/db/all-monsters.json +++ b/db/_generated/all-monsters.json diff --git a/db/animations.json b/db/_generated/animations.json index 8080199..8080199 100644 --- a/db/animations.json +++ b/db/_generated/animations.json diff --git a/db/i18n/cs_CZ.json b/db/_generated/i18n/cs_CZ.json index 6ae18fe..6ae18fe 100644 --- a/db/i18n/cs_CZ.json +++ b/db/_generated/i18n/cs_CZ.json diff --git a/db/i18n/de_DE.json b/db/_generated/i18n/de_DE.json index bb938fb..bb938fb 100644 --- a/db/i18n/de_DE.json +++ b/db/_generated/i18n/de_DE.json diff --git a/db/i18n/en_US.json b/db/_generated/i18n/en_US.json index d5afbe6..d5afbe6 100644 --- a/db/i18n/en_US.json +++ b/db/_generated/i18n/en_US.json diff --git a/db/i18n/eo.json b/db/_generated/i18n/eo.json index 52444db..52444db 100644 --- a/db/i18n/eo.json +++ b/db/_generated/i18n/eo.json diff --git a/db/i18n/es_ES.json b/db/_generated/i18n/es_ES.json index 99ee722..99ee722 100644 --- a/db/i18n/es_ES.json +++ b/db/_generated/i18n/es_ES.json diff --git a/db/i18n/es_MX.json b/db/_generated/i18n/es_MX.json index 1e13650..1e13650 100644 --- a/db/i18n/es_MX.json +++ b/db/_generated/i18n/es_MX.json diff --git a/db/i18n/fi.json b/db/_generated/i18n/fi.json index b701a3c..b701a3c 100644 --- a/db/i18n/fi.json +++ b/db/_generated/i18n/fi.json diff --git a/db/i18n/fr_FR.json b/db/_generated/i18n/fr_FR.json index 439214d..439214d 100644 --- a/db/i18n/fr_FR.json +++ b/db/_generated/i18n/fr_FR.json diff --git a/db/i18n/it_IT.json b/db/_generated/i18n/it_IT.json index 7884f83..7884f83 100644 --- a/db/i18n/it_IT.json +++ b/db/_generated/i18n/it_IT.json diff --git a/db/i18n/ja.json b/db/_generated/i18n/ja.json index 08d64ee..08d64ee 100644 --- a/db/i18n/ja.json +++ b/db/_generated/i18n/ja.json diff --git a/db/i18n/nb_NO.json b/db/_generated/i18n/nb_NO.json index 676fe7d..676fe7d 100644 --- a/db/i18n/nb_NO.json +++ b/db/_generated/i18n/nb_NO.json diff --git a/db/i18n/pl.json b/db/_generated/i18n/pl.json index f0a54d1..f0a54d1 100644 --- a/db/i18n/pl.json +++ b/db/_generated/i18n/pl.json diff --git a/db/i18n/pt_BR.json b/db/_generated/i18n/pt_BR.json index 2b9694c..2b9694c 100644 --- a/db/i18n/pt_BR.json +++ b/db/_generated/i18n/pt_BR.json diff --git a/db/i18n/zh_CN.json b/db/_generated/i18n/zh_CN.json index 71cc317..71cc317 100644 --- a/db/i18n/zh_CN.json +++ b/db/_generated/i18n/zh_CN.json diff --git a/db/all-items.php b/db/all-items.php index b6d9a49..29fd4c5 100644 --- a/db/all-items.php +++ b/db/all-items.php @@ -7,4 +7,4 @@ foreach (scandir(dirname(__DIR__) . '/modules/tuxemon/mods/tuxemon/db/item') as $allItems[] = pathinfo($file, PATHINFO_FILENAME); } -file_put_contents(__DIR__ . '/all-items.json', json_encode($allItems)); +file_put_contents(__DIR__ . '/_generated/all-items.json', json_encode($allItems)); diff --git a/db/all-monsters.php b/db/all-monsters.php index 3907fec..c593bd4 100644 --- a/db/all-monsters.php +++ b/db/all-monsters.php @@ -7,4 +7,4 @@ foreach (scandir(dirname(__DIR__) . '/modules/tuxemon/mods/tuxemon/db/monster') $allMonsters[] = pathinfo($file, PATHINFO_FILENAME); } -file_put_contents(__DIR__ . '/all-monsters.json', json_encode($allMonsters)); +file_put_contents(__DIR__ . '/_generated/all-monsters.json', json_encode($allMonsters)); diff --git a/db/animations.php b/db/animations.php index 8e3decc..f69d169 100644 --- a/db/animations.php +++ b/db/animations.php @@ -10,4 +10,4 @@ foreach (scandir(dirname(__DIR__) . '/modules/tuxemon/mods/tuxemon/animations/te $animations[$animationName][] = $animationFileName; } -file_put_contents(__DIR__ . '/animations.json', json_encode($animations)); +file_put_contents(__DIR__ . '/_generated/animations.json', json_encode($animations)); diff --git a/db/i18n.php b/db/i18n.php index 9e64c91..af6fec8 100644 --- a/db/i18n.php +++ b/db/i18n.php @@ -19,5 +19,5 @@ foreach (scandir($basePath) as $dirname) { } } - file_put_contents(__DIR__ . "/i18n/$dirname.json", json_encode($i18n)); + file_put_contents(__DIR__ . "/_generated/i18n/$dirname.json", json_encode($i18n)); } 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]; |