Commit Graph

87 Commits

Author SHA1 Message Date
augushong
f3ac7189f2 refactor(component): tagInput/propertyInput/tableData 模板改为懒加载异步获取
原实现三个组件在 JS 顶层用 $.ajax({async:false}) 同步拉取 .html 模板,
每个页面打开固定发 3 个同步请求(阻塞主线程,与组件是否被使用无关),
且路径硬编码 /static/ 与 __STATIC__(OSS 部署)脱节,模板 URL 无版本
参数存在与 js 缓存不同步的漂移问题,请求失败时静默渲染空白。

改造内容:
- 模板改为首次 render() 时异步获取,Deferred 缓存供同页多实例共享,
  失败不缓存并在下次 render 自动重试,失败时 console.error + 提示
- 模板 URL 取 CONFIG.STATIC + CONFIG.STATIC_VERSION,layout 的
  window.CONFIG 新增这两项注入;无注入时逐级回退 /static 与 VERSION,
  兼容下游覆盖 layout 的旧页面
- 组件 CSS 由 _require.html 直接 link 引入(__STATIC__ + 版本键),
  替代原 JS 动态注入
- render() 返回 Promise(resolve Vue 实例);仓库内调用均为
  fire-and-forget,无兼容影响
2026-10-05 14:08:03 +00:00
augushong
45bc4a7f43 refactor(curd): 移除生成模板与框架页面 data-auth 声明(含 uploadfile 权限映射回归本页节点的行为变化说明)
- CURD 生成模板 index.code 删除 6 个 data-auth 属性行,生成页面零权限声明
- extend/base 13 个列表页 index.html 清理全部 data-auth-* 声明(含注释文本同步改写)
- system/host/index.js 的 set-master 按钮 auth 改写为全节点 'system.host/setMaster'
  (驼峰动作段逐字保留,parseNodeStr 仅 snake 化控制器段);system/auth 的
  assignUsers 解析后与注册节点逐字相等,无需改写
- 行为变化:system/uploadfile 页原 data-auth-add/edit/delete 误映射 system.menu/*
  (上游模板复制残留),删除后按钮按本页 system.uploadfile/* 节点判定——该页
  控制器仅注册 delete 动作,非超管用户的添加按钮从此正确隐藏(现状是
  有 system.menu/add 权限即显示但点击被后端拒绝),data-auth-edit 为死属性
  (本页无编辑按钮)
- VersionBase::VERSION v2.7.0 → v2.8.0,使 admin-core.js 静态引用缓存键
  (?t=get_site_version_key())失效,防下游升级后旧缓存 js 叠加新布局导致
  非超管按钮全隐
2026-10-04 01:31:36 +00:00
augushong
fa89908c4b feat(auth): 后台布局注入全局权限集合 UA_AUTH 2026-10-04 01:13:00 +00:00
augushong
a9f9045d10 fix(table): 卡片勾选收敛至勾位图标并消除勾选重渲闪烁(pro#4)
- 委托收敛勾位判定+快速路径 class 回显
- 勾位光标样式
- usercard/goodscard 勾位适配
- 两个技能文档契约同步
2026-10-03 11:55:56 +00:00
augushong
842641763a feat(theme): 配色专属标准皮肤,清爽全包观感与面板交互重构 2026-09-27 02:18:41 +00:00
augushong
9cfb5fbd78 feat(view): 商品列表默认形态改为商品模板 2026-09-25 14:30:35 +00:00
augushong
4f469f4c09 feat(theme): 新增清爽皮肤(36px 紧凑头部)并设为默认 2026-09-25 12:55:29 +00:00
augushong
276d9b001e feat(view): 名片模板视觉升级,状态开关移至头部 2026-09-25 11:50:49 +00:00
augushong
ee13e1bdfe feat(view): 商品卡模板视觉升级,状态开关移至图面右上 2026-09-25 11:50:35 +00:00
augushong
58053e0280 feat(view): 商品列表新增商品自定义卡片模板三形态示例 2026-09-25 10:37:49 +00:00
augushong
994803f155 feat(view): 用户管理示例升级三形态并示范按端默认配置 2026-09-14 18:40:02 +00:00
augushong
d4367060b8 refactor(view): 清理十八页冗余的受控显式声明 2026-09-14 16:35:15 +00:00
augushong
0708afddf0 feat(table): 用户管理名片卡片官方示例 2026-09-11 12:58:46 +00:00
augushong
301b132f2f feat(table): 灰度第四批 mall 三页切换受控模式 2026-09-10 22:10:26 +00:00
augushong
e9bbcc5bb2 feat(table): 灰度第三批三页切换并收编业务直呼 2026-09-10 21:22:43 +00:00
augushong
4f14f18c78 feat(table): 灰度第二批三页切换受控模式 2026-09-10 20:36:16 +00:00
augushong
a335ce7985 feat(table): 灰度第一批四页切换受控模式 2026-09-10 20:36:16 +00:00
augushong
6c5be1a15a feat(table): 装载 reloadData shim 与 checkStatus 分发 2026-09-10 18:27:29 +00:00
augushong
9603bc23e3 chore(table): 删除第一代 uaTable 原型死代码 2026-09-10 17:26:23 +00:00
augushong
1422878966 fix(mcp): 日志页密钥列关联键名兼容驼峰/蛇形,修复活密钥误显示已删除兜底 2026-08-21 22:58:29 +08:00
augushong
afe176c6f5 feat(storage): 上传配置页新增S3与WebDAV表单 2026-08-20 22:14:26 +08:00
augushong
744a0819f2 feat(mcp): 密钥授权页,仅创建者拥有的节点可授权(防越权与漂移) 2026-08-16 21:18:40 +08:00
augushong
25c98b6ed6 feat(mcp): MCP 调用日志只读列表页 2026-08-16 20:55:03 +08:00
augushong
918d1d4dd5 feat(mcp): MCP 密钥管理后台(CURD 重组 Base/App,密钥仅创建时明文展示) 2026-08-16 20:55:02 +08:00
augushong
8faa52ce90 feat(nginx-log): 多节点适配(node_id 全链路 + 全局/按节点聚合 + 节点筛选 + v2.4.0 升级脚本)
- 6 张表加 node_id 字段 + position/stat 改复合唯一键(migration)
- 6 个 Scheme 同步 node_id 注解 + 唯一键
- Reader 带 node_id 参数 + 懒加载接管(getLastPosition 回退查 node_id='')
- Aggregator 全局行(node_id='')+ 按节点循环 insertAggregatesForScope
- Stat 所有查询方法加 where node_id 条件
- Dashboard 控制器/视图加节点筛选下拉框 + AJAX 带 node_id
- AccessLog 列表加节点列 + 采集进度卡片显示节点信息
- import 定时任务 run_type 改 all(每节点采集自己的日志)
- v2.4.0 升级脚本追加 ALTER TABLE(幂等 check-then-alter)
- 菜单调整:去掉 Nginx 顶级菜单 + 读取位置管理,改为系统管理下挂两个子菜单
- ulthon-timer 文档补充 run_type=all 多节点部署注意事项
2026-08-08 10:33:20 +08:00
augushong
8a5a0d9877 feat(nginx-log): NginxLogStat dashboard 视图与 JS(echarts 趋势图) 2026-07-28 06:34:30 +08:00
augushong
97eb8ca99a fix(timer): timer_log 列表页补全刷新按钮与事件监听方法修正
toolbar 从 [] 改为 ['refresh'](B 类只读页面保留刷新),ua.table.on 修正为 layui.table.on。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-07-26 09:53:27 +08:00
augushong
739b536f8d fix(host): Host 控制器禁用手动增删改与按钮配置修正
HostBase 补 add/edit/delete/modify 禁用方法(节点自动注册,不支持手动操作)。_common.js 的 addUrl/editUrl/deleteUrl/exportUrl/modifyUrl 改空字符串。index.js 补 toolbar: ['refresh'](C 类页面,去掉默认的 add/delete/export)。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-07-25 22:40:05 +08:00
augushong
908f84ee9f refactor(timer): TimerLog 控制器迁移到 Base 层 + toolbar 与事件监听修正
控制器逻辑移入 extend/base/admin/controller/system/TimerLogBase.php,app 层改为空壳继承。index.js 补 toolbar:[] + defaultToolbar:['filter'](B 类只读页面),修正 ua.table.on → layui.table.on。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-07-25 22:39:53 +08:00
augushong
009647f96f refactor(timer): TimerConfig 控制器与视图迁移到 Base 层
控制器逻辑移入 extend/base/admin/controller/system/TimerConfigBase.php,app 层改为空壳继承。9 个视图文件迁移到 extend/base/admin/view/system/timer_config/。index.js 补 toolbar: ['refresh', 'export'] 声明(C 类页面,去掉默认的 add/delete)。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-07-25 22:39:20 +08:00
augushong
1ca1f86150 feat(auth): 角色分配用户页面视图与列表入口按钮
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-07-17 23:44:33 +08:00
augushong
a2916d7505 refactor(ulthon-admin): 重写入口文件并更新模板引用
将 ulthon-admin.js 简化为入口文件(8行),仅负责组装 admin 对象并清理临时变量。更新 _require.html 按依赖顺序加载 6 个拆分文件。

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-27 07:51:42 +08:00
augushong
b7094eee8a fix(host): 主机列表页设为只读
Remove add/edit/delete buttons and auth attributes from host list page. Hosts are auto-registered via heartbeat, manual CRUD is meaningless. Keep only setMaster operation.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-05-26 18:33:47 +08:00
augushong
90e584f5a1 feat(timer): 新增定时器配置、日志和主机的后台管理界面
T10: TimerConfig CURD - task management with run_type/status editing,
     manual trigger button, task_name read-only, no add/delete
T11: TimerLog CURD - read-only log viewer with filters and color badges
T12: Host list enhanced - is_master column, setMaster button
2026-05-26 18:33:43 +08:00
augushong
0fad2b7e10 docs: 更新项目文档中的框架版本信息 2026-01-28 20:36:15 +08:00
augushong
6eefa1cd2e refactor(admin): 重构系统状态模块以支持模块化结构 2026-01-23 00:02:51 +08:00
augushong
3c0d39c4ce fix(status): 修复系统状态页面布局问题并添加刷新功能 2026-01-22 23:49:06 +08:00
augushong
3a4194d3e9 feat: 新增系统状态页面功能 2026-01-22 23:28:13 +08:00
augushong
3eab01197e chore: 调整日志每页大小 2025-10-10 22:36:48 +08:00
augushong
247bfd1966 feat: 增加按级别查询日志 2025-10-10 22:33:28 +08:00
augushong
63b1cb472a feat: 增加按应用、控制器、方法查询日志 2025-10-10 22:28:47 +08:00
augushong
3a6cfacd0a feat: 增加访问方法 2025-10-10 22:14:51 +08:00
augushong
04d152edce fix: 修复日志加载错误 2025-10-10 22:12:05 +08:00
augushong
af2da50678 feat: 支持刷新 2025-10-10 21:43:54 +08:00
augushong
d55b79512c feat: 优化日志级别颜色 2025-10-10 21:41:59 +08:00
augushong
d7a7ec2c65 feat: 日志查看支持分组颜色标志 2025-10-10 21:40:14 +08:00
augushong
94f63133c3 feat: 优化日志显示 2025-10-10 21:33:21 +08:00
augushong
dccccf94a0 feat: 完成基本的日志展示 2025-10-10 21:17:24 +08:00
augushong
b1a6b37ee0 feat: 增加主机节点表结构代码 2025-08-23 22:44:47 +08:00
augushong
75309f3b7a feat: 优化返回的tab定位 2025-08-21 23:07:25 +08:00