From f6f3fca1c4dcc18d3565ae709e799c431a8d4431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=B2=A9=E5=B2=A9?= Date: Mon, 9 Feb 2026 15:54:34 +0800 Subject: [PATCH] =?UTF-8?q?feat(M1.2):=20Manifest=20V3=20=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=20(v0.0.2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/QUICK_REF.md | 2 +- docs/README.md | 6 +++--- docs/VERSION.md | 2 +- manifest.json | 43 +++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 5 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 manifest.json diff --git a/docs/QUICK_REF.md b/docs/QUICK_REF.md index fdb4c93..31ec85f 100644 --- a/docs/QUICK_REF.md +++ b/docs/QUICK_REF.md @@ -7,7 +7,7 @@ ## 版本速查 ### 当前版本 -`0.0.1` → 下一目标 `0.0.2` ([M1.2](./M1.md)) +`0.0.2` → 下一目标 `0.0.3` ([M1.3](./M1.md)) ### 模块版本范围 diff --git a/docs/README.md b/docs/README.md index 16e852c..4ba70d7 100644 --- a/docs/README.md +++ b/docs/README.md @@ -64,9 +64,9 @@ M11.10完成 → 1.0.0 (正式发布) ## 当前状态 -**当前版本**: `0.0.1` -**当前进度**: 1/97 (1%) -**下一任务**: [M1.2 Manifest V3 配置](./M1.md#m12-manifest-v3-配置--目标版本-0002) +**当前版本**: `0.0.2` +**当前进度**: 2/97 (2%) +**下一任务**: [M1.3 构建工具配置](./M1.md#m13-构建工具配置--目标版本-0003) --- diff --git a/docs/VERSION.md b/docs/VERSION.md index f7a3586..4bf9393 100644 --- a/docs/VERSION.md +++ b/docs/VERSION.md @@ -18,7 +18,7 @@ | 任务 | 版本 | 描述 | 状态 | 日期 | |------|------|------|------|------| | M1.1 | 0.0.1 | 项目初始化 | ✅ | 2026-02-09 | -| M1.2 | 0.0.2 | Manifest V3 配置 | ⬜ | - | +| M1.2 | 0.0.2 | Manifest V3 配置 | ✅ | 2026-02-09 | | M1.3 | 0.0.3 | 构建工具配置 | ⬜ | - | | M1.4 | 0.0.4 | 模块间通信工具 | ⬜ | - | | M1.5 | 0.0.5 | 开发环境验证 | ⬜ | - | diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..240ac6f --- /dev/null +++ b/manifest.json @@ -0,0 +1,43 @@ +{ + "manifest_version": 3, + "name": "沙拉查词", + "version": "0.0.2", + "description": "聚合词典划词翻译", + "permissions": [ + "storage", + "contextMenus", + "clipboardWrite" + ], + "optional_permissions": [ + "clipboardRead" + ], + "host_permissions": [ + "" + ], + "background": { + "service_worker": "src/background/index.js", + "type": "module" + }, + "content_scripts": [ + { + "matches": [""], + "js": ["src/content/index.js"], + "run_at": "document_end" + } + ], + "action": { + "default_popup": "src/popup/index.html", + "default_title": "沙拉查词", + "default_icon": { + "16": "assets/icons/icon16.png", + "48": "assets/icons/icon48.png", + "128": "assets/icons/icon128.png" + } + }, + "icons": { + "16": "assets/icons/icon16.png", + "48": "assets/icons/icon48.png", + "128": "assets/icons/icon128.png" + }, + "options_page": "src/options/index.html" +} diff --git a/package.json b/package.json index 65bbf99..bb6d647 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "salad-dict", - "version": "0.0.1", + "version": "0.0.2", "description": "聚合词典划词翻译", "private": true, "type": "module",