e3f12e4548
新增: 登录页 UI 重构 + 品牌 logo 与 Lottie 启动动画
...
视觉与品牌
- public/logo.svg、public/login-illustration.svg、favicon 替换为 logo.svg。
- preferences.ts 新增 logo.source 指向 /logo.svg。
- packages/effects/layouts 导出 LoginIllustration 共享组件(浮动插画,加载失败自动隐藏)。
Auth 布局重构
- layouts/auth.vue 替换默认 AuthPageLayout:主题色渐变背景 + 左侧浮动插画 +
品牌卡片 + 右上 LanguageToggle + 圆角登录卡片;KeepAlive 仅缓存 Login
(CodeLogin/QrCodeLogin 需要每次刷新验证码/二维码)。
- 表单样式通过 :deep(.login-form-container) 覆盖输入框、选择框、主按钮,
全部走 --primary 变量,与主题色联动。
登录组件
- views/_core/authentication/login.vue: 关闭默认 codeLogin/qrcodeLogin/
thirdPartyLogin/register/docLink,改为手机 / 二维码 / 企微三按钮(IconifyIcon);
三方登录前检查租户,缺失时 message.warning + validateField。
- packages/effects/common-ui/authentication/login.vue + types.ts:
新增 showDocLink prop(默认 true),替代原本 HTML 注释掉 DocLink 的做法。
- sso-callback.vue: 等待提示改为 LottieLoading 动画。
Lottie 启动动画
- 新增 loading.html(注入进 index.html)+ public/loading.json + 运行时拷贝的
public/lottie_light.min.js(.gitignore 忽略)。
- 新增 public/lottie-tint.js:共享主题色适配器(LIGHTNESSES / SHADE_MAP /
hslToRgb / patchColors / readPrimary),同时被启动白屏脚本与 Vue 组件使用,
消除两份几乎一致的实现。
- 新增 src/components/lottie-loading/LottieLoading.vue:按需加载 lottie-tint.js
并根据 CSS 变量 --primary 重新上色。
- vite.config.mts 新增 copyLottiePlayer 插件:configResolved 时无条件把
node_modules/lottie-web/.../lottie_light.min.js 拷到 public/,避免 mtime 误判。
- package.json 新增 lottie-web ^5.13.0 依赖。
i18n
- 新增 otherLoginMethods / contactSupport / weComLogin 三个文案(zh-CN / en-US)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-24 11:40:03 +08:00
2a7fec30a9
重构: video 模块走芋道网关统一鉴权,移除独立 WVP JWT 客户端
...
- api/video/request.ts: 删除自实现的 WVP access-token 登录/缓存/401 续期逻辑,
直接 re-export requestClient(yudao Authorization: Bearer),
wvpRequestClient 名字仅作过渡期别名,TODO 标记后续统一重命名。
- api/video/device/index.ts: 路径从 /video/device/{proxy,user,server,...} 迁移到
后端 @RequestMapping 对齐的 /video/{proxy,ai/*,server/media_server};
删除 getAlertImageUrl(老 WVP 时代产物),删除截图 URL 里的 ?access-token。
- api/video/edge/index.ts: /video/device/device/* -> /video/ai/device/*(对齐 AiEdgeDeviceController)。
- views/video/device/camera: HEAD 探活 URL 同步,补注释说明后端需对
/video/ai/roi/snap/image permitAll 或依赖 session cookie。
- vite.config: 删除 /admin-api/video/device/* 按子路径 rewrite 到 WVP:18080 的规则,
统一走 /admin-api 到芋道网关 48080;去掉 VITE_WVP_USERNAME/PASSWORD_MD5 依赖
(安全改进:凭据不再打进客户端 bundle)。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-24 11:40:03 +08:00
fd946c132e
重构: aiot 模块重命名为 video,WVP 凭据移至环境变量
...
路径重命名:
- api/aiot/{alarm,device,edge,request} → api/video/{alarm,device,edge,request}
- views/aiot/{alarm,device,edge} → views/video/{alarm,device,edge}
- vite.config.mts 代理路径 /admin-api/aiot/* → /admin-api/video/*
video/request.ts 改造:
- WVP 用户名/密码 MD5 改读 import.meta.env,不再写死在源码里
- force 截图失败时补一条 console.debug,便于回溯 COS 图片加载异常
video/alarm/index.ts 顺带清理:
- 移除无调用方的重复 API getRecentAlerts(与 getAlertPage 重叠)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-24 11:40:02 +08:00
c7b2ad1e79
恢复:框架层对接芋道后端
...
- vite.config.mts: 移除 /admin-api/system/* 5 条转发至 8000 的规则,
system/infra 等基础接口回归兜底 /admin-api → 48080;
保留 AIoT 业务必需的代理(/admin-api/aiot/*、/uploads、/captures)
- store/auth.ts: 移除 hideMenuItems/renameMenuItems 菜单后处理,
恢复 accessStore.setAccessMenus 直接写入后端原始菜单
- .env: VITE_APP_TITLE / VITE_APP_TENANT_ENABLE / VITE_APP_API_ENCRYPT_ENABLE
三项恢复 upstream 默认值(芋道管理系统 / true / true)
保留项(AIoT 业务):/work-order 公开路由、AIoT API & 视图、
WVP 代理规则、packages/@core/preferences 默认主题
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com >
2026-04-24 11:40:01 +08:00
5182e81429
Revert "功能:摄像头页面增加区域选择器"
...
This reverts commit 84ec762d09 .
2026-03-23 17:02:30 +08:00
84ec762d09
功能:摄像头页面增加区域选择器
...
1. 编辑弹窗新增「所属区域」下拉框,支持搜索,数据来自 IoT 平台
2. 表格新增「区域」列显示已绑定的区域名称
3. API 新增 getAreaList 函数查询 vsp-service 区域列表接口
4. Vite 代理新增 /api/area → vsp-service:8000
5. Camera 类型新增 areaId 字段
2026-03-23 16:49:27 +08:00
e54fcf1f8c
feat(aiot): 告警截图展示 + 全局配置同步 + API兼容修复
...
- 告警列表新增截图缩略图列,支持预览大图
- 告警详情显示截图 URL 链接
- 摄像头管理页新增「同步全局配置」按钮
- 告警 API 路径修正: camera-summary → device-summary
- 告警 ID 兼容 alarmId 字符串格式
- Vite 代理新增 /uploads、/captures、/aiot/storage 路由
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-11 09:57:29 +08:00
184bb863b0
fix(aiot): 修复 WVP 认证机制,实现自动登录和 token 管理
...
- WVP 使用独立 JWT 认证(access-token 头),与芋道 Authorization Bearer 不同
- 实现 WVP 自动登录:首次请求时自动调用 /api/user/login 获取 token
- 缓存 token 防止重复登录,401 时自动续期
- 响应拦截器自动解包 WVP {code:0, data:...} 格式
- Vite 代理新增 /aiot/device/user 和 /aiot/device/server 路由规则
- 移除已废弃的 aiot/video 代理规则
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-09 10:24:47 +08:00
f7bfde0135
feat(aiot-device): 摄像头管理增加增删改功能
...
- Camera 接口扩展完整字段(type、timeout、rtspType、enable 等)
- 新增 saveCamera、deleteCamera、getMediaServerList API
- 摄像头管理页面增加添加/编辑弹窗(表单含代理类型、拉流地址、RTSP方式等)
- 增加删除确认对话框
- Vite 代理增加媒体服务器 API 转发规则
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-09 09:51:37 +08:00
c28606df4e
feat(aiot-device): 新增摄像头代理 Vite 规则
...
WVP 的摄像头拉流代理接口位于 /api/proxy 路径下,
与 ROI/算法接口的 /api/ai 前缀不同,需单独匹配。
新增 /admin-api/aiot/device/proxy → /api/proxy 代理规则。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-08 23:23:56 +08:00
936dff610c
feat(aiot): 更新 Vite 代理规则,移除旧 ai-alert 路由
...
- 添加 4 条 aiot 代理规则:
/admin-api/aiot/alarm → 告警服务 :8000(直通)
/admin-api/aiot/edge → 告警服务 :8000(直通)
/admin-api/aiot/device → WVP :18080(rewrite 为 /api/ai)
/admin-api/aiot/video → WVP :18080(rewrite 为 /api)
- 移除旧的 /admin-api/ai-alert 和 /admin-api/video 代理规则
- 删除旧的 ai-alert 路由、视图、API 文件
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-06 16:41:00 +08:00
YunaiV
af0057940a
feat:增加 allowedHosts 变量,允许 natapp 转发,对应 https://t.zsxq.com/kSg2A
2026-01-18 17:04:03 +08:00
YunaiV
83f6a0fbf7
chore: v5 init【64ed9206】
2025-03-18 13:06:04 +08:00
vince
66fd052709
fix: fix known issues. fixed #59,fixed #61 , fixed #67 , fixed #68 [deploy]
2024-07-29 00:19:26 +08:00
Vben
376fd17a61
feat: Feature/pro docs ( #70 )
...
* chore: merge main
* feat: update docs
* feat: remove coze-assistant
* feat: add watermark plugin
* feat: update preferences
* feat: update docs
---------
Co-authored-by: vince <vince292007@gmail.com >
2024-07-28 14:29:05 +08:00
vben
e441d14fa2
refactor(project): @vben/vite-connect is reconfigured to support synchronization
2024-07-13 21:13:42 +08:00
vince
2406ca832b
feat: support some configurations through the .env file
2024-07-09 23:43:08 +08:00
vben
6147d13a29
docs: update docs
2024-07-07 23:52:19 +08:00
vben
ca1cad0cd3
feat: add backend-mock app
2024-06-30 14:09:44 +08:00
vben
c58aa26dbf
chore: update locale
2024-06-29 15:41:10 +08:00
vben
36a4fcfad2
feat: update dashboard
2024-06-29 14:45:02 +08:00
vben
382652e0f4
feat: support pwa
2024-06-16 15:45:15 +08:00
vben
d584d4cf4e
chore: update app name
2024-06-08 16:33:49 +08:00