Skip to content
Merged

Dev #75

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ build/
.DS_Store

### Worktrees ###
.worktrees/
.worktrees/

### fornt-end ###
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "flow-frontend"]
path = flow-frontend
url = git@github.com:codingapi/flow-frontend.git
12 changes: 6 additions & 6 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cd flow-engine-example && mvn spring-boot:run

```bash
# 安装依赖(使用 pnpm,而非 npm)
cd frontend && pnpm install
cd flow-frontend && pnpm install

# 构建所有包
pnpm run build
Expand Down Expand Up @@ -96,7 +96,7 @@ pnpm run dev:app-mobile # 移动端应用
|--------|-------------|------|
| `flow-core` | 核心框架库(HTTP、Hooks、Presenter 等),不包含 UI 组件 | 无 |
| `flow-types` | TypeScript 类型定义(流程实例、表单、审批等业务类型) | flow-core |
| `flow-pc-ui` | PC 端基础 UI 组件库(按钮、输入框等原子组件) | 无 |
| `flow-pc-ui` | PC 端基础 UI 组件库(按钮、输入框等原子组件) | flow-core |
| `flow-pc-form` | PC 端表单相关组件(表单设计器、表单渲染等) | flow-core, flow-types |
| `flow-pc-design` | PC 端流程设计器组件(节点配置、属性面板等) | flow-core, flow-types, flow-pc-ui |
| `flow-pc-approval` | PC 端审批页面(待办/已办/审批处理等) | flow-pc-design, flow-pc-ui |
Expand All @@ -105,21 +105,21 @@ pnpm run dev:app-mobile # 移动端应用

```
flow-core (无UI)
↑
↑ ↑
│ └── flow-pc-ui (基础UI)
│
flow-types (类型定义)
↑ ↑
│ └── flow-pc-form
│ ↑
└───────→ flow-pc-design ──→ flow-pc-approval
↑
flow-pc-ui (基础UI)
```

**模块划分原则**:

- **flow-core**:全局框架依赖,只包含与 UI 无关的基础能力(HTTP、状态管理、工具函数等)
- **flow-types**:全局类型定义,包含流程审批相关的业务类型(手机端和 PC 端共用)
- **flow-pc-ui**:PC 端基础 UI 组件库,提供原子化组件
- **flow-pc-ui**:PC 端基础 UI 组件库,提供原子化组件,依赖 flow-core
- **flow-pc-form**:表单相关功能,依赖 flow-core + flow-types
- **flow-pc-design**:流程设计器功能,包含节点配置、属性面板、脚本配置等
- **flow-pc-approval**:审批页面功能,依赖 flow-pc-design
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ flow-engine
├── flow-engine-starter # Spring Boot Starter
├── flow-engine-starter-infra # 持久化层 Starter
├── flow-engine-example # 示例项目
└── frontend # 前端项目
└── flow-frontend # 前端项目(Git Submodule)
├── apps
│ ├── app-pc # PC端应用
│ └── app-mobile # 移动端应用
Expand Down Expand Up @@ -260,7 +260,7 @@ mvn spring-boot:run
### 前端

```bash
cd frontend
cd flow-frontend

# 安装依赖
pnpm install
Expand Down
1 change: 1 addition & 0 deletions flow-frontend
Submodule flow-frontend added at 21c85c
32 changes: 0 additions & 32 deletions frontend/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion frontend/.tool-versions

This file was deleted.

16 changes: 0 additions & 16 deletions frontend/apps/app-mobile/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions frontend/apps/app-mobile/AGENTS.md

This file was deleted.

67 changes: 0 additions & 67 deletions frontend/apps/app-mobile/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions frontend/apps/app-mobile/package.json

This file was deleted.

Binary file removed frontend/apps/app-mobile/public/favicon.png
Binary file not shown.
13 changes: 0 additions & 13 deletions frontend/apps/app-mobile/rsbuild.config.ts

This file was deleted.

18 changes: 0 additions & 18 deletions frontend/apps/app-mobile/src/config/routers.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions frontend/apps/app-mobile/src/env.d.ts

This file was deleted.

14 changes: 0 additions & 14 deletions frontend/apps/app-mobile/src/index.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions frontend/apps/app-mobile/src/pages/home.tsx

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/apps/app-mobile/src/pages/login.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions frontend/apps/app-mobile/tsconfig.json

This file was deleted.

16 changes: 0 additions & 16 deletions frontend/apps/app-pc/.gitignore

This file was deleted.

14 changes: 0 additions & 14 deletions frontend/apps/app-pc/AGENTS.md

This file was deleted.

Loading