feat: 添加全局键盘快捷键和更新故居数据,提升用户体验
- 在 main.tsx 中添加全局键盘快捷键功能,允许用户通过 Ctrl+Shift+R 重置所有缓存。 - 更新多个故居的拼图数据,增加黄炎培和鲁迅的相关信息,丰富学习内容。 - 调整 ResidenceLayout 组件以支持新的故居,确保数据一致性。 - 清理不再使用的拼图布局配置文件,提升代码整洁性。
This commit is contained in:
1 parent
8ba36a4a1a
commit
a365964f54
155 files changed
+1387
-348
No files matched your search
@@ -10,6 +10,7 @@ import {
|
||||
} from "@/components";
|
||||
import { SingleChoiceQuizPanel } from "@/components/layout/quiz";
|
||||
import SuccessAlert from "@/components/layout/alert/success-alert";
|
||||
import { usePuzzleAnimation } from "@/contexts/PuzzleAnimationContext";
|
||||
|
||||
const starName = "luxun";
|
||||
|
||||
@@ -23,6 +24,8 @@ type HintPosition =
|
||||
| "none";
|
||||
|
||||
const LuxunReflectionScene3 = () => {
|
||||
//碎片动画触发方法
|
||||
const { triggerPuzzleAnimation } = usePuzzleAnimation();
|
||||
const navigate = useNavigate();
|
||||
const { moduleName } = useParams<{
|
||||
moduleName: string;
|
||||
@@ -60,6 +63,7 @@ const LuxunReflectionScene3 = () => {
|
||||
if (showSummary) {
|
||||
const timer = setTimeout(() => {
|
||||
setCompletionGuideVisible(true);
|
||||
triggerPuzzleAnimation(15);
|
||||
}, 500);
|
||||
return () => clearTimeout(timer);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user