- backend/:Egg 3 纯 JSON 接口服务(MySQL 8 + Redis),全部走 header 令牌鉴权; 已彻底去掉服务端渲染(删除 page 控制器 / app/view / nunjucks / session / CSRF), 开发时把页面请求反代到前端 dev server,生产托管 frontend/dist(SPA 回退)。 单测 91 个通过(不需要本机数据库)。 - frontend/:Vite + Vue3 + TypeScript 的 SPA(登录 / 注册 / 找回密码 / 扫码登录与确认 / 首页统计 / 设备管理 / 扫码记录 / 个人中心 / 测试页),vue-tsc 类型检查与构建通过。 - extension/:MV3 浏览器扩展(零构建),注入第三方 WMS 页面识别运单号并打开溯源页。 - 忽略规则统一放根 .gitignore:node_modules、dist、logs / logs-*、run、typings、 .env*、config.local.js(含本机数据库与 Redis 密码,绝不入库)。
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "云仓视频溯源 · 单号注入",
|
|
"version": "1.0.0",
|
|
"description": "在第三方 WMS / 后台页面里按规则识别单号,就地加工成可点击的溯源入口;点击后打开溯源页面(默认演示地址可用 ?keyword={code} 承接)。",
|
|
"minimum_chrome_version": "96",
|
|
|
|
"icons": {
|
|
"16": "icons/icon16.png",
|
|
"32": "icons/icon32.png",
|
|
"48": "icons/icon48.png",
|
|
"128": "icons/icon128.png"
|
|
},
|
|
|
|
"permissions": ["storage"],
|
|
|
|
"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
|
|
}
|
|
]
|
|
}
|