-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
88 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,73 @@ | ||
/** | ||
* Copyright (c) 2021 Hengyang Zhang | ||
* | ||
* | ||
* This software is released under the MIT License. | ||
* https://opensource.org/licenses/MIT | ||
*/ | ||
|
||
/** | ||
* Build the manifest.json in chrome extension directory via this file | ||
* | ||
* | ||
* @author zhy | ||
* @since 0.0.1 | ||
*/ | ||
// Not use path alias in manifest.json | ||
// Not use path alias in manifest.json | ||
import packageInfo from "./package" | ||
import { OPTION_ROUTE } from "./app/router/constants" | ||
const { version, author: { name: author }, homepage } = packageInfo | ||
|
||
const _default: chrome.runtime.ManifestV3 = { | ||
name: '__MSG_meta_marketName__', | ||
description: "__MSG_meta_description__", | ||
version, | ||
author, | ||
default_locale: 'en', | ||
homepage_url: homepage, | ||
manifest_version: 3, | ||
icons: { | ||
16: "static/images/icon.png", | ||
48: "static/images/icon.png", | ||
128: "static/images/icon.png" | ||
}, | ||
background: { | ||
service_worker: 'background.js' | ||
}, | ||
content_scripts: [ | ||
{ | ||
matches: [ | ||
"<all_urls>" | ||
], | ||
js: [ | ||
"content_scripts.js" | ||
], | ||
run_at: "document_start" | ||
} | ||
], | ||
permissions: [ | ||
'storage', | ||
'tabs', | ||
'webNavigation', | ||
'contextMenus', | ||
'alarms', | ||
'scripting', | ||
], | ||
host_permissions: [ | ||
"<all_urls>", | ||
], | ||
/** | ||
* @since 0.3.4 | ||
*/ | ||
optional_permissions: [ | ||
'clipboardRead' | ||
], | ||
action: { | ||
default_popup: "static/popup.html", | ||
default_icon: "static/images/icon.png" | ||
}, | ||
/** | ||
* @since 0.4.0 | ||
*/ | ||
options_page: 'static/app.html#' + OPTION_ROUTE | ||
name: '__MSG_meta_marketName__', | ||
description: "__MSG_meta_description__", | ||
version, | ||
author, | ||
default_locale: 'en', | ||
homepage_url: homepage, | ||
manifest_version: 3, | ||
icons: { | ||
16: "static/images/icon.png", | ||
48: "static/images/icon.png", | ||
128: "static/images/icon.png" | ||
}, | ||
background: { | ||
service_worker: 'background.js' | ||
}, | ||
content_scripts: [ | ||
{ | ||
matches: [ | ||
"<all_urls>" | ||
], | ||
js: [ | ||
"content_scripts.js" | ||
], | ||
run_at: "document_start" | ||
} | ||
], | ||
permissions: [ | ||
'storage', | ||
'tabs', | ||
'webNavigation', | ||
'contextMenus', | ||
'alarms', | ||
'scripting', | ||
], | ||
host_permissions: [ | ||
"<all_urls>", | ||
], | ||
/** | ||
* @since 0.3.4 | ||
*/ | ||
optional_permissions: [ | ||
'clipboardRead' | ||
], | ||
action: { | ||
default_popup: "static/popup.html", | ||
default_icon: "static/images/icon.png" | ||
}, | ||
/** | ||
* @since 0.4.0 | ||
*/ | ||
options_page: 'static/app.html#' + OPTION_ROUTE | ||
} | ||
|
||
export default _default |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters