- 后端:sys_config 存插件配置(识别前缀/生效站点/模板),平台管理员 GET/PUT /api/web/admin/extension; 插件读取 GET /api/web/extension/config(Redis 缓存 1 小时,保存即失效) - 前端:平台管理 → 插件配置页(只维护前缀,单号正则由服务端生成) - 插件:改为只拉取执行(每 5 分钟 + 手动同步),移除规则编辑/试跑/导入导出;安装包地址自动取最新发布 - 桌面端:工具 → 安装/卸载谷歌插件(生成 .reg + reg import 写 HKLM 策略,读注册表验证); 跨网下载改走云端中转;局域网探测补排障日志;自动更新按包类型取 md5Exe/sizeExe - 发布:npm run extension:publish(crx + updates.xml)、extension:zip(商店上传包), nginx 对 /download/extension/updates.xml 关缓存 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "云仓视频溯源 · 单号注入",
|
|
"version": "1.1.0",
|
|
"description": "在第三方 WMS / 后台页面里识别单号,就地加工成可点击的溯源入口;识别前缀与生效站点由管理员在后台统一维护,插件每小时自动同步。",
|
|
"minimum_chrome_version": "96",
|
|
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
},
|
|
|
|
"permissions": ["storage", "alarms"],
|
|
|
|
"host_permissions": [
|
|
"http://localhost:17300/*",
|
|
"http://127.0.0.1:17300/*",
|
|
"https://pack.wms.gztbyc.com/*"
|
|
],
|
|
|
|
"action": {
|
|
"default_title": "云仓视频溯源",
|
|
"default_popup": "src/popup.html",
|
|
"default_icon": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
}
|
|
},
|
|
|
|
"options_ui": {
|
|
"page": "src/options.html",
|
|
"open_in_tab": true
|
|
},
|
|
|
|
"background": {
|
|
"service_worker": "src/background.js"
|
|
},
|
|
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["http://*/*", "https://*/*"],
|
|
"js": ["src/lib/rules.js", "src/content.js"],
|
|
"css": ["src/content.css"],
|
|
"run_at": "document_idle",
|
|
"all_frames": true
|
|
}
|
|
]
|
|
}
|