refactor: 前端重构为项目+任务双核心模型
- 新增 HomePage 项目画廊页,支持新建/删除工程 - 新增 ProjectDetailPage 三栏工作台(配置+生成+任务列表) - 新增 CustomTagsEditor 支持自定义风格标签(custom: 前缀存入 kvPairs) - 重构 project store 为 draft/commit 模式,支持手动保存/取消 - 新增 projectList store 管理工程列表 - 扩展 mock.ts 为多工程数据结构 - 扩展 api/project.ts 新增项目 CRUD API(mock-gated) - 简化 ResultPage,仅展示素材预览 - 删除 GeneratePage、ProjectPage 及未使用的 hooks - 更新 docs/ 文档(frontend.md、api.md、style-keys.md、_index.md)
This commit is contained in:
@@ -12,3 +12,18 @@
|
||||
| 情绪 | `mood` | cheerful, dark, mysterious, epic, calm |
|
||||
|
||||
(具体键值后续可扩展,这里是初始集合)
|
||||
|
||||
## 自定义标签
|
||||
|
||||
除预设分类外,用户可添加自定义标签。标签存储在 `kvPairs` 中,使用 `custom:` 前缀区分:
|
||||
|
||||
```json
|
||||
{
|
||||
"artStyle": "pixel",
|
||||
"palette": "warm",
|
||||
"custom:cel-shading": "true",
|
||||
"custom:glow-effects": "true"
|
||||
}
|
||||
```
|
||||
|
||||
前端 `extractTags()` 函数在提取标签时自动包含自定义标签值(去掉前缀),送入提示词优化管线。
|
||||
|
||||
Reference in New Issue
Block a user