diff --git a/docs/repo b/docs/repo index 433c19cc7..805e7b8b5 160000 --- a/docs/repo +++ b/docs/repo @@ -1 +1 @@ -Subproject commit 433c19cc7350885278263f8a2a11ab251e86a455 +Subproject commit 805e7b8b5339d3006a3143bf18c673bd80e5853e diff --git a/src/app/page.tsx b/src/app/page.tsx index 6b537fc33..abebfd79f 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -14,6 +14,7 @@ import { AchievementsPanel } from "@/components/game/AchievementsPanel"; import { AchievementNotifier } from "@/components/game/AchievementNotifier"; import { ConstellationPanel } from "@/components/game/ConstellationPanel"; import { ConstellationDialog } from "@/components/game/ConstellationDialog"; +import { ChronicleDialog } from "@/components/game/ChronicleDialog"; import { StarTideNotifier, StarTideIndicator, @@ -47,6 +48,7 @@ export default function Page() { const [prestigeOpen, setPrestigeOpen] = useState(false); const [settingsOpen, setSettingsOpen] = useState(false); const [constellationOpen, setConstellationOpen] = useState(false); + const [chronicleOpen, setChronicleOpen] = useState(false); const [mounted, setMounted] = useState(false); const contact = useGameStore((s) => s.contact); @@ -63,6 +65,7 @@ export default function Page() { const activeTide = useGameStore((s) => s.activeTide); const energy = useGameStore((s) => s.energy); const hasActiveExpedition = useGameStore((s) => !!s.activeExpedition && !s.activeExpedition.finished); + const chronicleCount = useGameStore((s) => s.chronicle?.length ?? 0); // 挂载检测:避免持久化 store 在 SSR/CSR 间产生 hydration 不一致 useEffect(() => { @@ -135,12 +138,27 @@ export default function Page() {
- ECHO NEXUS · v0.3.1 + ECHO NEXUS · v0.4