feat : update
CI / Verify (push) Successful in 1m21s
CI / Build immutable images and deploy (push) Successful in 3m12s

This commit is contained in:
2026-09-06 14:47:11 +07:00 Unverified
parent 37d6d6703f
commit c3a7a44d02
19 changed files with 4218 additions and 38 deletions
+7
View File
@@ -12,6 +12,7 @@ import {
import {
ascensionSnapshot,
avatarIconName,
baseStatsSnapshot,
characterDetailSchema,
constellationSnapshot,
nameCardImageName,
@@ -20,6 +21,7 @@ import {
} from "@/lib/catalog/lunaris";
import type {
CatalogAscensionGroup,
CatalogBaseStat,
CatalogConstellation,
CatalogMaterial,
CatalogTalent,
@@ -95,6 +97,7 @@ interface SyncedCharacter {
constellations: CatalogConstellation[];
talents: CatalogTalent[];
ascension: CatalogAscensionGroup[];
baseStats: CatalogBaseStat[];
}
async function getJson(url: string): Promise<unknown> {
@@ -274,6 +277,7 @@ async function syncCatalogVersion(version: string): Promise<void> {
)
: [],
ascension: detail ? ascensionSnapshot(detail) : [],
baseStats: detail ? baseStatsSnapshot(detail) : [],
};
},
);
@@ -308,6 +312,7 @@ async function syncCatalogVersion(version: string): Promise<void> {
(icon) => `catalog/characters/talents/${webpName(icon)}`,
),
ascension: ascensionSnapshot(detail),
baseStats: baseStatsSnapshot(detail),
};
},
);
@@ -456,6 +461,7 @@ async function syncCatalogVersion(version: string): Promise<void> {
constellations: item.constellations,
talents: item.talents,
ascension: item.ascension,
baseStats: item.baseStats,
})),
),
{ type: "application/json", acl: "public-read" },
@@ -514,6 +520,7 @@ async function syncCatalogVersion(version: string): Promise<void> {
constellations: item.constellations,
talents: item.talents,
ascension: item.ascension,
baseStats: item.baseStats,
})),
);
if (materials.length)