Skip to content

Commit 3eb802e

Browse files
committed
✨ 删除无用文件和代码,更新依赖库和样式,优化页面布局。
1 parent 9a5f85a commit 3eb802e

File tree

21 files changed

+1294
-42
lines changed

21 files changed

+1294
-42
lines changed

manifest.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"background": {
1919
"service_worker": "background/service-worker.js"
2020
},
21-
"permissions": ["tabs", "storage"],
21+
"permissions": ["tabs", "storage", "activeTab", "alarms"],
2222
"content_scripts": [
2323
{
24-
"matches": ["http://127.0.0.1:5500/*"],
24+
"matches": ["https://*/*"],
2525
"js": ["content/content.js"],
2626
"all_frames": true,
2727
"run_at": "document_end",
@@ -31,5 +31,12 @@
3131
"chrome_url_overrides": {
3232
"newtab": "newTab/index.html"
3333
},
34-
"options_page": "options/index.html"
34+
"options_page": "options/index.html",
35+
"web_accessible_resources": [
36+
{
37+
"resources": ["popup/*", "contentPage/*", "newTab/*", "assets/*", "js/*", "options/*"],
38+
"matches": ["https://*/*"],
39+
"use_dynamic_url": true
40+
}
41+
]
3542
}

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
11
{
2-
"name": "testsss",
2+
"name": "chrome-extension-package",
33
"private": true,
44
"version": "0.0.0",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8+
"watch": "vite build --watch",
89
"build": "vite build",
910
"preview": "vite preview"
1011
},
1112
"dependencies": {
12-
"vue": "^3.4.19"
13+
"pinia": "^2.1.7",
14+
"vue": "^3.4.19",
15+
"vue-router": "^4.3.0"
1316
},
1417
"devDependencies": {
1518
"@vitejs/plugin-vue": "^5.0.4",
19+
"autoprefixer": "^10.4.17",
20+
"less": "^4.2.0",
21+
"naive-ui": "^2.38.1",
22+
"postcss": "^8.4.35",
1623
"rimraf": "^5.0.5",
1724
"rollup-plugin-copy": "^3.5.0",
25+
"tailwindcss": "^3.4.1",
26+
"unplugin-auto-import": "^0.17.5",
27+
"unplugin-vue-components": "^0.26.0",
28+
"vfonts": "^0.1.0",
1829
"vite": "^5.1.4"
1930
}
2031
}

0 commit comments

Comments
 (0)