Skip to content

Commit ba9406b

Browse files
authored
Merge pull request #75 from codingapi/dev
Dev
2 parents 1845d9a + d77ecb9 commit ba9406b

414 files changed

Lines changed: 26 additions & 27845 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ build/
3737
.DS_Store
3838

3939
### Worktrees ###
40-
.worktrees/
40+
.worktrees/
41+
42+
### fornt-end ###

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "flow-frontend"]
2+
path = flow-frontend
3+
url = git@github.com:codingapi/flow-frontend.git

CLAUDE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cd flow-engine-example && mvn spring-boot:run
3131

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

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

106106
```
107107
flow-core (无UI)
108-
108+
↑ ↑
109+
│ └── flow-pc-ui (基础UI)
110+
109111
flow-types (类型定义)
110112
↑ ↑
111113
│ └── flow-pc-form
112114
│ ↑
113115
└───────→ flow-pc-design ──→ flow-pc-approval
114-
115-
flow-pc-ui (基础UI)
116116
```
117117

118118
**模块划分原则**
119119

120120
- **flow-core**:全局框架依赖,只包含与 UI 无关的基础能力(HTTP、状态管理、工具函数等)
121121
- **flow-types**:全局类型定义,包含流程审批相关的业务类型(手机端和 PC 端共用)
122-
- **flow-pc-ui**:PC 端基础 UI 组件库,提供原子化组件
122+
- **flow-pc-ui**:PC 端基础 UI 组件库,提供原子化组件,依赖 flow-core
123123
- **flow-pc-form**:表单相关功能,依赖 flow-core + flow-types
124124
- **flow-pc-design**:流程设计器功能,包含节点配置、属性面板、脚本配置等
125125
- **flow-pc-approval**:审批页面功能,依赖 flow-pc-design

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ flow-engine
208208
├── flow-engine-starter # Spring Boot Starter
209209
├── flow-engine-starter-infra # 持久化层 Starter
210210
├── flow-engine-example # 示例项目
211-
└── frontend # 前端项目
211+
└── flow-frontend # 前端项目(Git Submodule)
212212
├── apps
213213
│ ├── app-pc # PC端应用
214214
│ └── app-mobile # 移动端应用
@@ -260,7 +260,7 @@ mvn spring-boot:run
260260
### 前端
261261

262262
```bash
263-
cd frontend
263+
cd flow-frontend
264264

265265
# 安装依赖
266266
pnpm install

flow-frontend

Submodule flow-frontend added at 21c85c4

frontend/.gitignore

Lines changed: 0 additions & 32 deletions
This file was deleted.

frontend/.tool-versions

Lines changed: 0 additions & 1 deletion
This file was deleted.

frontend/apps/app-mobile/.gitignore

Lines changed: 0 additions & 16 deletions
This file was deleted.

frontend/apps/app-mobile/AGENTS.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

frontend/apps/app-mobile/README.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)