在Home.vue中添加专辑浏览功能,显示专辑封面。将类型定义从apis/index.ts移动到vite-env.d.ts中以便全局使用。优化Sidebar.vue中的导航链接样式,添加图标。更新manifest.json以允许加载特定域名的图片资源。
28 lines
823 B
JSON
28 lines
823 B
JSON
{
|
|
"manifest_version": 3,
|
|
"name": "MSR Mod",
|
|
"version": "0.0.1",
|
|
"description": "A Vue-based browser extension.",
|
|
"content_scripts": [
|
|
{
|
|
"matches": ["https://monster-siren.hypergryph.com/"],
|
|
"js": ["content.js"],
|
|
"run_at": "document_end"
|
|
}
|
|
],
|
|
"host_permissions": ["https://monster-siren.hypergryph.com/*", "http://localhost:5173/*"],
|
|
"icons": {
|
|
"16": "vite.svg",
|
|
"48": "vite.svg",
|
|
"128": "vite.svg"
|
|
},
|
|
"background": {
|
|
"service_worker": "background.js"
|
|
},
|
|
"permissions": ["tabs", "webRequest"],
|
|
"content_security_policy": {
|
|
"extension_pages": "default-src 'self'; script-src 'self' http://localhost:5173; style-src 'self' 'unsafe-inline'; connect-src 'self' ws://localhost:5173 https://monster-siren.hypergryph.com; img-src 'self' https://web.hycdn.cn;",
|
|
"sandbox": "sandbox"
|
|
}
|
|
}
|