refactor: 分离前端代码到 ui.js

This commit is contained in:
zwbcc
2026-03-28 20:59:27 +08:00
parent fc02c5100b
commit f4556a69d4
3 changed files with 317 additions and 321 deletions

View File

@@ -67,11 +67,12 @@ systemctl --user enable --now image-generator.service
```
image-generator/
├── index.html # 前端
├── style.css # 样式
├── index.html # HTML 页面
├── style.css # 样式(深色主题)
├── ui.js # 前端交互逻辑
├── app.js # 服务端Express
├── start.sh # 启动脚本
├── config.json # API Key 存储(自动生成)
├── config.json # API Key 存储(自动生成,不提交
└── CHANGELOG.md
```