UPDATE: next16 and minifyjson
Some checks failed
Gitea Auto Deploy / Deploy-Container (push) Failing after 1m25s
Some checks failed
Gitea Auto Deploy / Deploy-Container (push) Failing after 1m25s
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user