Files
MemoryBear/web
yujiangping f9a35d0cdc feat(i18n): customize Tour component button text and add finish button label
- Add finishButtonText translation key to English and Chinese locale files
- Create customZhCN locale with Chinese Tour button labels (下一步, 上一步, 立即体验)
- Create customEnUS locale with English Tour button labels (Next, Previous, Try it now)
- Update locale store to use custom locale configurations instead of default Ant Design locales
- Fix changeLanguage method to apply custom locale mappings correctly
- Add file headers with metadata to GuideCard and locale store files
- Improve Tour component UX by providing localized button text for better user experience
2026-01-15 21:03:07 +08:00
..
2025-12-24 12:05:36 +08:00
2026-01-08 19:46:02 +08:00
2025-12-15 07:16:19 +00:00
2025-12-22 10:46:19 +08:00
2025-12-04 18:50:09 +08:00
2025-12-24 12:23:55 +08:00

Memory Bear 前端项目

基于 React + TypeScript + Vite + Ant Design 构建的知识库管理系统前端应用。

技术栈

  • 框架: React 18 + TypeScript
  • 构建工具: Vite
  • UI 组件库: Ant Design 5
  • 样式: Tailwind CSS 4
  • 路由: React Router 6
  • 状态管理: Zustand
  • 国际化: i18next
  • 图表: ECharts
  • 其他: React Markdown

环境要求

  • Node.js >= 20.19+, 22.12+
  • npm 或 yarn

安装

# 克隆项目
git clone <repository-url>

# 进入项目目录
cd memory-bear-font-end

# 安装依赖
npm install

运行

开发环境

npm run dev

启动后访问: http://localhost:5173

生产构建

npm run build

构建产物输出到 dist 目录。

预览构建结果

npm run preview

代码检查

npm run lint

项目结构

src/
├── api/              # API 接口
├── assets/           # 静态资源
├── components/       # 公共组件
├── hooks/            # 自定义 Hooks
├── i18n/             # 国际化配置
├── routes/           # 路由配置
├── store/            # 状态管理
├── styles/           # 全局样式
├── utils/            # 工具函数
├── views/            # 页面视图
├── App.tsx           # 应用入口组件
└── main.tsx          # 应用入口文件

配置说明

  • 开发服务器默认监听 0.0.0.0:5173
  • API 代理配置在 vite.config.ts
  • 路径别名 @ 指向 src 目录

License

Private