feat(characters): use local character catalog

This commit is contained in:
2026-07-17 16:03:18 +08:00
parent a210a98d98
commit b3ebd5cf3b
96 changed files with 1023 additions and 522 deletions
@@ -26,6 +26,7 @@ interface ExternalEntryPersistProps {
psid: string | null;
avatarUrl: string | null;
target: string | null;
character: string | null;
mode: string | null;
promotionType: string | null;
}
@@ -36,6 +37,7 @@ export default function ExternalEntryPersist({
psid,
avatarUrl,
target,
character,
mode,
promotionType,
}: ExternalEntryPersistProps) {
@@ -46,7 +48,7 @@ export default function ExternalEntryPersist({
const hasNavigatedRef = useRef(false);
const hasReinitializedForPsidRef = useRef(false);
const targetRoute = resolveExternalEntryTarget({ target });
const destination = resolveExternalEntryDestination({ target });
const destination = resolveExternalEntryDestination({ target, character });
const resolvedPromotionType = resolveExternalEntryPromotionType({
mode,
promotionType,
@@ -84,6 +86,7 @@ export default function ExternalEntryPersist({
}, [
avatarUrl,
asid,
character,
destination,
deviceId,
mode,