UPDATE: next16 and minifyjson
Some checks failed
Gitea Auto Deploy / Deploy-Container (push) Failing after 1m25s

This commit is contained in:
2025-11-18 14:09:00 +07:00
parent 99c8ae82f9
commit afdb92cc2d
64 changed files with 748 additions and 2908848 deletions

View File

@@ -43,7 +43,8 @@ export async function loadAS(charIds: string[], locale: string): Promise<Record<
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
asFileCache[locale] = result;
asMap = result;

View File

@@ -55,7 +55,7 @@ export async function loadCharacters(charIds: string[], locale: string): Promise
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
characterFileCache[locale] = result;
characterMap = result;

View File

@@ -56,7 +56,7 @@ export async function loadLightcones(charIds: string[], locale: string): Promise
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
lightconeFileCache[locale] = result;
lightconeMap = result;

View File

@@ -43,7 +43,7 @@ export async function loadMOC(charIds: string[], locale: string): Promise<Record
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
mocFileCache[locale] = result;
mocMap = result;

View File

@@ -43,7 +43,7 @@ export async function loadMonster(charIds: string[], locale: string): Promise<Re
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
monsterFileCache[locale] = result;
monsterMap = result;

View File

@@ -43,7 +43,7 @@ export async function loadPeak(charIds: string[], locale: string): Promise<Recor
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
peakFileCache[locale] = result;
peakMap = result;

View File

@@ -43,7 +43,7 @@ export async function loadPF(charIds: string[], locale: string): Promise<Record<
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
pfFileCache[locale] = result;
pfMap = result;

View File

@@ -54,7 +54,7 @@ export async function loadRelics(charIds: string[], locale: string): Promise<Rec
fs.mkdirSync(DATA_DIR, { recursive: true });
const filePath = getJsonFilePath(locale);
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), 'utf-8');
fs.writeFileSync(filePath, JSON.stringify(result), 'utf-8');
relicFileCache[locale] = result;
relicMap = result;