新增 web/static/js/dialog.js 两族原语(对标 Element dialog/message): - dialogConfirm/dialogPrompt:遮罩+卡片 modal,Promise 化以一比一替换同步的 confirm/prompt;Esc/点遮罩=取消,Enter=确认,删除类走 danger 红键。 - message:顶部居中轻 toast,success/error/info 三态,自动消失、点即消。 dev.html 加 #app-dialog 容器 + #app-messages toast + 对应 CSS。全量替换主应用 8 文件调用点(chat/files/crons/procs/wechat/skills/media/auth,共 30 处)。 admin.js 独立 admin-only 页(自带 <style>、无 CSS 变量)刻意保留原生 alert 避免缺样式。纯前端加法,不动后端/接口。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| static | ||
| __init__.py | ||
| admin.py | ||
| app.py | ||
| auth.py | ||
| broker.py | ||
| pptx_render.py | ||
| sinks.py | ||
| static_files.py | ||