- 将包管理器从 pnpm 更改为 bun,提升依赖管理效率。 - 在 index.html 中引入 jQuery 和 videoajax.js,增强页面功能。 - 删除 pnpm-lock.yaml 文件,清理不必要的锁定文件。 - 在多个组件中优化状态管理和访问逻辑,提升用户体验。 - 更新多个页面和组件以支持新的状态管理方式,确保数据一致性。
26 lines
547 B
TypeScript
26 lines
547 B
TypeScript
//lessonId 课时唯一id
|
|
export const STORE_NAMES = {
|
|
USER: "user-storage",
|
|
SUNZHONGSHAN: "sunzhongshan-storage",
|
|
LUXUN: "luxun-storage",
|
|
HUANGYANPEI: "huangyanpei-storage",
|
|
CHENYUN: "chenyun-storage",
|
|
PUZZLE: "puzzle-storage",
|
|
CLUE: "clue-storage",
|
|
} as const;
|
|
|
|
//课程的第几课时
|
|
export const COURSE_ORDER = {
|
|
COURSE_ORDER_1: 1,
|
|
COURSE_ORDER_2: 2,
|
|
COURSE_ORDER_3: 3,
|
|
COURSE_ORDER_4: 4,
|
|
COURSE_ORDER_5: 5,
|
|
COURSE_ORDER_6: 6,
|
|
COURSE_ORDER_7: 7,
|
|
} as const;
|
|
|
|
export type StoreNameKey = keyof typeof STORE_NAMES;
|
|
|
|
|