forked from bluecaret/carettab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.config.js
74 lines (71 loc) · 2.07 KB
/
manifest.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { defineManifest } from '@crxjs/vite-plugin'
const getManifestSettings = (env) => {
const baseManifest = {
manifest_version: 3,
short_name: 'CaretTab',
name: env.mode === 'beta' ? 'CaretTab BETA' : '__MSG_appName__',
description: env.mode === 'beta' ? 'Beta version of the New Tab extension, CaretTab' : '__MSG_appDesc__',
version: `4.4.0`,
version_name: `4.4.0`,
default_locale: 'en',
icons: {
16: 'img/icon16.png',
48: 'img/icon48.png',
128: 'img/icon128.png',
},
chrome_url_overrides: {
newtab: 'index.html',
},
background: {
service_worker: 'src/service_worker.js',
type: 'module',
},
permissions: ['storage'],
host_permissions: ['https://dtfv5mvrx9.execute-api.us-west-2.amazonaws.com/*', 'https://fonts.googleapis.com/*'],
optional_permissions: ['favicon', 'bookmarks', 'topSites'],
optional_host_permissions: ['https://developer.sepush.co.za/*', 'https://api.openai.com/'],
commands: {
'goto-link-1': {
suggested_key: {
default: 'Alt+1',
},
description: 'Load Quick Link 1',
},
'goto-link-2': {
suggested_key: {
default: 'Alt+2',
},
description: 'Load Quick Link 2',
},
'goto-link-3': {
suggested_key: {
default: 'Alt+3',
},
description: 'Load Quick Link 3',
},
'goto-link-4': {
suggested_key: {
default: 'Alt+4',
},
description: 'Load Quick Link 4',
},
'goto-link-5': {
description: 'Load Quick Link 5',
},
'goto-link-6': {
description: 'Load Quick Link 6',
},
'goto-link-7': {
description: 'Load Quick Link 7',
},
'goto-link-8': {
description: 'Load Quick Link 8',
},
'goto-link-9': {
description: 'Load Quick Link 9',
},
},
}
return baseManifest
}
export default defineManifest(async (env) => getManifestSettings(env))