feat : update
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user