feat: 添加全局键盘快捷键和更新故居数据,提升用户体验

- 在 main.tsx 中添加全局键盘快捷键功能,允许用户通过 Ctrl+Shift+R 重置所有缓存。
- 更新多个故居的拼图数据,增加黄炎培和鲁迅的相关信息,丰富学习内容。
- 调整 ResidenceLayout 组件以支持新的故居,确保数据一致性。
- 清理不再使用的拼图布局配置文件,提升代码整洁性。
This commit is contained in:
zhongyidian committed 2026-01-28 15:08:28 +08:00
1 parent 8ba36a4a1a
commit a365964f54
155 files changed
+1387 -348

No files matched your search

+15
View File
@@ -13,6 +13,7 @@ import { getBackgroundImage, getPublicPath, getStaticImage } from "@/lib/utils";
import { useState } from "react";
import SuccessAlert from "@/components/layout/alert/success-alert";
import { useCursorController } from "@/hooks/useCursorController";
import { usePuzzleAnimation } from "@/contexts/PuzzleAnimationContext";
// starName 固定为 luxun
const starName = "luxun";
@@ -38,6 +39,9 @@ const LuxunPlace5 = () => {
moduleName: string;
}>();
//碎片动画触发方法
const { triggerPuzzleAnimation } = usePuzzleAnimation();
const [introGuideVisible, setIntroGuideVisible] = useState(true);
const [introGuideStep, setIntroGuideStep] = useState(0);
@@ -149,6 +153,17 @@ const LuxunPlace5 = () => {
<ExhibitOverlay
visible={activeExhibitId !== null}
src={activeExhibitId ? exhibitSrcMap[activeExhibitId] : ""}
onOpen={()=>{
if( activeExhibitId === 1){
triggerPuzzleAnimation(11);
}
if( activeExhibitId === 2){
triggerPuzzleAnimation(12);
}
if( activeExhibitId === 3){
triggerPuzzleAnimation(13);
}
}}
description={
activeExhibitId === 1
? '瞿秋白同志曾说,"鲁迅是莱谟斯,是野兽的奶汁所喂养大的,是封建宗法社会的逆子,是绅士阶级的贰臣,而同时也是一些浪漫谛克的革命家的诤友!"'