15 Commits
Author SHA1 Message Date
zhongyidianandClaude Code 45973a5145 feat: 完善名师工作室内容与成员悬浮导航
更新工作室页面、成员资料与静态资源,保留成员导航的渐变及定位交互。排除视频和超过 10 MiB 的新增部署资源。

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-10-15 11:36:05 +08:00
zhongyidian 53d0eeac6b feat: 添加引导页、视频播放和触摸交互功能
- 新增引导页组件(Guide.tsx)及相关资源
- 添加视频播放功能和相关资源文件
- 实现useTouch自定义hook支持触摸交互
- 添加store状态管理
- 更新多个页面组件(Content, Menu, Publicity)
- 优化图片组件和背景图片组件
- 更新项目依赖
2025-10-31 17:49:13 +08:00
zhongyidian 4ce7520066 feat: enhance modal functionality and integrate new components
- Added keyframes and animation for a smooth scale-in effect in the Tailwind configuration.
- Updated Image component to improve quality handling and style definitions.
- Introduced WordViewer and WordViewerModal components for document viewing capabilities.
- Enhanced Modal component to support embedded mode with customizable position and dimensions.
- Integrated IframeModal across various pages for user assistance and content display.
- Updated Content and Menu pages to utilize new components and improve user interaction.
- Added utility function to retrieve public paths for resources.
2025-10-29 00:18:06 +08:00
zhongyidian 13dd84a8a7 feat: add avatar interaction and modal for user assistance
- Introduced an avatar element that opens a modal when clicked, providing users with assistance.
- Integrated IframeModal component to display external content within the modal.
- Enhanced user experience with hover effects on the avatar.
2025-10-26 13:15:41 +08:00
zhongyidian 2d66abc610 refactor: clean up dependencies and enhance component functionality
- Removed unused dependencies related to @dnd-kit from pnpm-lock.yaml.
- Updated Vite configuration to set the base path.
- Added input styles to the main CSS file.
- Enhanced BackgroundImage component to include an overflowHidden prop for better layout control.
- Deleted the DraggableItem component as it was no longer needed.
- Updated routing to include new Publicity and Content pages, and modified navigation in Menu and NotFound components.
2025-10-22 00:41:38 +08:00
zhongyidian 29029bb608 feat: update README and enhance Menu component with teacher selection functionality
- Updated project title in README.md to reflect the new focus on "名师工作室".
- Enhanced Image component to accept custom styles.
- Implemented teacher selection feature in Menu component, allowing users to select and display different teacher avatars with corresponding positions and transitions.
2025-10-21 18:14:20 +08:00
zhongyidian 95d594c2aa refactor: update project structure and content 2025-10-21 18:14:01 +08:00
zhongyidian cdbe3bb51e feat:提交实验室环境配置 2025-10-21 00:59:09 +08:00
zhongyidian 6367014e1f fix:解决拖拽问题 2025-10-20 17:50:42 +08:00
zhongyidian ce06ad0214 feat:init 2025-10-17 11:01:17 +08:00
zhongyidianandClaude 543cecf2ee 迁移到 TypeScript
完整的 TypeScript 迁移,提升代码质量和开发体验

**安装依赖:**
- TypeScript 5.9.3
- @types/react, @types/react-dom, @types/node
- typescript-eslint 相关包

**配置文件:**
- 创建 tsconfig.json (应用配置)
- 创建 tsconfig.node.json (Node 配置)
- 更新 eslint.config.ts 支持 TypeScript
- 所有配置文件迁移到 .ts 扩展名

**源代码迁移:**
- 所有 .jsx 文件 → .tsx
- 所有 .js 文件 → .ts
- 添加完整的类型定义和接口
- 修复所有类型错误

**类型定义:**
- Experiment 接口 (实验数据类型)
- DraggableItemProps 接口
- 函数参数类型注解
- React 组件 Props 类型

**代码优化:**
- 修复 main.tsx 中的 null 检查
- 添加 DragEndEvent 类型
- 使用类型守卫和类型断言
- 改进错误处理

**构建脚本:**
- 添加 typecheck 脚本
- build 脚本包含类型检查
- 更新 index.html 入口为 main.tsx

**验证:**
- ✅ TypeScript 编译通过
- ✅ ESLint 检查通过
- ✅ 所有类型正确推导
- ✅ 代码质量提升

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 10:30:10 +08:00
zhongyidianandClaude 5e84020b44 修复路由文件扩展名问题
- 将 router.js 重命名为 router.jsx
- 修复 "Unexpected token '<'" 语法错误
- 更新 App.jsx 中的导入路径
- JSX 文件必须使用 .jsx 扩展名

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 23:30:49 +08:00
zhongyidianandClaude 6b84a5ed98 实现路由管理系统
- 创建 router.js 统一管理路由配置
- App.jsx 重构为使用 RouterProvider
- 创建 pages 目录结构:
  - Layout.jsx: 主布局组件,包含 header 和 footer
  - Home.jsx: 首页实验列表(原 App.jsx 内容)
  - ExperimentDetail.jsx: 实验详情页,展示完整实验信息
  - NotFound.jsx: 404 页面
- 实现页面导航功能:
  - 点击实验项目可跳转到详情页
  - 详情页支持返回列表
  - 完善的错误处理和 404 页面
- 实验详情页功能:
  - 展示实验目标、步骤、注意事项
  - 实验信息卡片(时长、难度、类型)
  - 交互式按钮(开始实验、下载资料)
- 所有代码通过 ESLint 检查

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 23:25:17 +08:00
zhongyidianandClaude 7a577d8010 添加持久化存储和数据配置优化
- 将实验数据抽离到独立配置文件 (src/data/experiments.js)
- 添加 localStorage 持久化存储功能
- 实现拖拽排序结果的自动保存和加载
- 页面刷新后保持用户自定义的排序顺序
- 添加完善的错误处理和注释

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 23:08:09 +08:00
zhongyidianandClaude 21a48c948c Initial commit: 传感器实验课件系统
- 基于 React 19 + Vite 7 + Tailwind CSS 4
- 实现拖拽排序功能 (@dnd-kit)
- 5个传感器实验项目展示
- 响应式设计和现代化 UI
- 修复拖拽释放到空白区域时的潜在 bug

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-16 23:04:49 +08:00