-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathmanifest.template.json
More file actions
74 lines (74 loc) · 1.89 KB
/
manifest.template.json
File metadata and controls
74 lines (74 loc) · 1.89 KB
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
{
"manifest_version": 3,
"name": "Hotwire Dev Tools",
"version": "0.3.3",
"description": "Dev Tools for Turbo and Stimulus",
"icons": {
{{#use_outline_icons}}
"16": "images/icon-16-wo.png",
"32": "images/icon-32-wo.png",
"48": "images/icon-48-wo.png",
"128": "images/icon-128-wo.png"
{{/use_outline_icons}}
{{^use_outline_icons}}
"16": "images/icon-16.png",
"32": "images/icon-32.png",
"48": "images/icon-48.png",
"128": "images/icon-128.png"
{{/use_outline_icons}}
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["dist/hotwire_dev_tools_content.js"],
"css": ["styles/hotwire_dev_tools_content.css"]
}
],
"host_permissions": ["http://*/*", "https://*/*", "file:///*"],
"devtools_page": "register.html",
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src"
},
{{#needs_service_worker}}
"background": {
"service_worker": "dist/background.js",
"type": "module"
},
{{/needs_service_worker}}
{{^needs_service_worker}}
"background": {
"scripts": ["dist/background.js"]
},
{{/needs_service_worker}}
"permissions": ["storage", "activeTab", "scripting"],
"action": {
"default_title": "Click or press Alt+Shift+S to launch Dev Tools",
"default_popup": "popup.html"
},
"web_accessible_resources": [
{
"resources": [
"dist/hotwire_dev_tools_inject_script.js",
"styles/hotwire_dev_tools_detail_panel.css",
"panel.html",
"register.html",
"dist/page/backend.js"
],
"matches": ["<all_urls>"]
}
],
{{#needs_browser_specific_settings}}
"browser_specific_settings": {
"gecko": {
"id": "hotwire_dev_tools@browser_extension"
}
},
{{/needs_browser_specific_settings}}
"commands": {
"_execute_action": {
"suggested_key": {
"default": "Alt+Shift+S"
}
}
}
}