v1.0.0: 首次正式发布 — Squire 编辑器、Plane 风格抽屉、首页布局修复

This commit is contained in:
mac
2026-05-30 01:10:21 +08:00
parent 1c3b487caa
commit 1112827a19
5 changed files with 212 additions and 68 deletions

View File

@@ -1,18 +1,37 @@
# OPC Manager Version Log
## opc-manager-v0.1.0 - 2026-05-30
## v1.0.0 2026-05-30
- Deployed the Flask/Jinja OPC workbench to the business server.
- Runtime path: `/opt/opc-manager`.
- Runtime service: `opc-manager.service` managed by systemd.
- Runtime command: `gunicorn -w 2 -b 127.0.0.1:5177 backend.flask_app:app`.
- Public URL: `https://opc.yxcowork.vip`.
- Health check: `https://opc.yxcowork.vip/api/health`.
- Database path: `/opt/opc-manager/data/opc.sqlite`.
- Caddy route: `opc.yxcowork.vip -> localhost:5177`.
**首次正式发布**
Deployment rule from this version onward:
### Features
- 首页概览7 项关键指标卡片4 列自动换行)、财务趋势图、风险提醒、近期动态
- 销售管理:客户表格 + 抽屉详情(字段失焦自动保存)
- 业务方案:版本表格 + 抽屉(文件上传/预览/下载/删除)
- 运营管理:项目表格(业务机会/已签约执行分类筛选)+ 抽屉
- 产品研发:版本表格 + 抽屉
- 财务管理:月度收入/毛利/成本/净利曲线图 + 明细表
- Every deployment must be committed to Git.
- Every deployment must create a corresponding Git tag.
- Every deployment must update this version log.
### Interactions
- 所有抽屉Plane 风格紧凑布局720px、字段失焦自动保存、状态指示
- 评论区Squire 富文本编辑器(加粗/斜体/下划线/删除线/无序列表/有序列表/引用/撤销/重做)
- 评论支持删除,带确认弹窗
- 评论内容保留 HTML 格式(加粗、列表等)
- 图标库Lucide
### Tech Stack
- Backend: Flask + SQLite
- Frontend: Vanilla JS + Tailwind CSS CDN
- Editor: Squire (Fastmail)
- Charts: Chart.js
- Icons: Lucide
### Fixes
- 首页财务图表空白问题:固定容器高度 140px + maintainAspectRatio: false
- 首页指标卡片布局grid-cols-7 → grid-cols-4 自动换行
- 风险提醒文字竖排grid-cols-2 等宽布局 + break-words
- 评论区工具栏按钮无效onclick → onmousedown 防止焦点丢失
- 格式 toggle 无效hasFormat 检测 + removeBold/removeItalic
- 列表按钮无效Squire API 替代 Trix
- 评论内容格式丢失encodeURIComponent 编码 + decodeURIComponent 渲染
- 列表显示无标记list-style: revert 覆盖 Tailwind reset