瀏覽代碼

📝 docs(architecture): update home application documentation

- add "(已实现)" label to home application directory
- detail home components structure including ErrorPage, FilePreview and other UI components
- document home hooks including AuthProvider
- add layout components documentation for MainLayout
- list all 14 page components with their purposes
- specify home routes configuration with 18 routes
- document home application entry file index.tsx
yourname 2 月之前
父節點
當前提交
a3b484b1c7
共有 3 個文件被更改,包括 46 次插入6 次删除
  1. 32 1
      docs/architecture/component-architecture.md
  2. 7 1
      docs/architecture/source-tree.md
  3. 7 4
      docs/ui-architecture.md

+ 32 - 1
docs/architecture/component-architecture.md

@@ -27,7 +27,38 @@ src/client/
 │   │   └── Files.tsx             # 文件管理页面
 │   ├── routes.tsx        # 路由配置
 │   └── index.tsx         # 管理后台入口
-├── home/                 # 用户前台应用
+├── home/                 # 用户前台应用 (已实现)
+│   ├── components/       # Home专用组件
+│   │   ├── ErrorPage.tsx         # 错误页面组件
+│   │   ├── FilePreview.tsx       # 文件预览组件
+│   │   ├── NotFoundPage.tsx      # 404页面组件
+│   │   ├── ProtectedRoute.tsx    # 路由保护组件
+│   │   ├── RechargeRecords.tsx   # 充值记录组件
+│   │   ├── UserInfoModal.tsx     # 用户信息弹窗
+│   │   ├── WordViewer.tsx        # Word文档查看器
+│   │   └── ui/                   # Home专用UI组件
+│   ├── hooks/            # Home专用Hooks
+│   │   └── AuthProvider.tsx      # 认证状态管理
+│   ├── layouts/          # 布局组件
+│   │   └── MainLayout.tsx        # 主布局组件
+│   ├── pages/            # 页面组件 (14个功能页面)
+│   │   ├── HomePage.tsx          # 首页
+│   │   ├── AboutPage.tsx         # 关于页面
+│   │   ├── AIToolsPage.tsx       # AI工具页面
+│   │   ├── ContactPage.tsx       # 联系页面
+│   │   ├── DesignPlanningPage.tsx # 设计规划页面
+│   │   ├── LoginPage.tsx         # 登录页面
+│   │   ├── MemberPage.tsx        # 会员页面
+│   │   ├── PricingPage.tsx       # 定价页面
+│   │   ├── ProfilePage.tsx       # 个人资料页面
+│   │   ├── RechargePage.tsx      # 充值页面
+│   │   ├── RegisterPage.tsx      # 注册页面
+│   │   ├── SoftwareRequirementsPage.tsx # 软件需求页面
+│   │   ├── TalentSharingPage.tsx # 人才共享页面
+│   │   ├── TemplateSquare.tsx    # 模板广场页面
+│   │   └── WordPreview.tsx       # Word预览页面
+│   ├── routes.tsx        # 路由配置 (18个路由)
+│   └── index.tsx         # Home应用入口
 ├── components/           # 共享UI组件
 │   └── ui/              # shadcn/ui组件库(50+组件)
 │       ├── button.tsx   # 按钮组件

+ 7 - 1
docs/architecture/source-tree.md

@@ -26,7 +26,13 @@ d8d-starter/
 │   │   │   │   └── Users.tsx             # 用户管理
 │   │   │   ├── routes.tsx      # 路由配置
 │   │   │   └── index.tsx       # 管理后台入口
-│   │   ├── home/               # 用户前台应用
+│   │   ├── home/               # 用户前台应用 (已实现)
+│   │   │   ├── components/     # Home专用组件 (ErrorPage, FilePreview等)
+│   │   │   ├── hooks/          # Home专用Hooks (AuthProvider)
+│   │   │   ├── layouts/        # 布局组件 (MainLayout)
+│   │   │   ├── pages/          # 页面组件 (14个功能页面)
+│   │   │   ├── routes.tsx      # 路由配置 (18个路由)
+│   │   │   └── index.tsx       # Home应用入口
 │   │   ├── components/         # 共享UI组件
 │   │   │   └── ui/            # shadcn/ui组件库(50+组件)
 │   │   │       ├── button.tsx   # 按钮组件

+ 7 - 4
docs/ui-architecture.md

@@ -67,10 +67,13 @@ d8d-starter/
 │   │   │   ├── pages/          # 管理页面
 │   │   │   ├── layouts/        # 管理后台布局
 │   │   │   └── hooks/          # 管理后台专属hooks
-│   │   ├── home/               # 用户主页界面
-│   │   │   ├── components/     # 主页专属组件
-│   │   │   ├── pages/          # 主页页面
-│   │   │   └── hooks/          # 主页专属hooks
+│   │   ├── home/               # 用户前台应用 (已实现)
+│   │   │   ├── components/     # Home专用组件 (ErrorPage, FilePreview等)
+│   │   │   ├── hooks/          # Home专用Hooks (AuthProvider)
+│   │   │   ├── layouts/        # 布局组件 (MainLayout)
+│   │   │   ├── pages/          # 页面组件 (14个功能页面)
+│   │   │   ├── routes.tsx      # 路由配置 (18个路由)
+│   │   │   └── index.tsx       # Home应用入口
 │   │   ├── components/         # 共享UI组件
 │   │   │   └── ui/             # 基础UI组件 (shadcn/ui)
 │   │   │       ├── button.tsx