Skip to content

Commit 9c8adcd

Browse files
committed
migrated to v3 manifest
1 parent 21016c9 commit 9c8adcd

6 files changed

+28
-29
lines changed

src/html/bootstrap.min.css

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/html/options.html

+4-9
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<title>SEI+Trello: opções</title>
6-
<link
7-
rel="stylesheet"
8-
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
9-
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
10-
crossorigin="anonymous"
11-
/>
6+
<link rel="stylesheet" href="bootstrap.min.css" />
127
<link rel="stylesheet" href="options.css" />
138
</head>
149
<body>
@@ -29,9 +24,9 @@ <h3>Opções</h3>
2924
<label for="txt-app-key">Trello APP-KEY:</label>
3025
<input type="text" class="form-control" id="txt-app-key" placeholder="APP-KEY..." />
3126
<small class="form-text text-muted"
32-
>A app-key pode ser obtida <a href="http://trello.com/app-key">neste endereço</a>. Você deve estar logado no
33-
Trello quando acessar. A chave é aquele conjunto de caracteres descrito no campo cinza. Apenas copie e cole
34-
aqui.</small
27+
>A app-key pode ser obtida <a href="http://trello.com/app-key">neste endereço</a>
28+
<strong>(Certifique-se que você esteja logado no Trello!)</strong>. Você deve estar logado no Trello quando
29+
acessar. A chave é aquele conjunto de caracteres descrito no campo cinza. Apenas copie e cole aqui.</small
3530
>
3631
</div>
3732

File renamed without changes.

src/manifest.json

+16-18
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,27 @@
11
{
2-
"manifest_version": 2,
2+
"manifest_version": 3,
33
"name": "SEI+Trello",
44
"short_name": "SEI+Trello",
5-
"description": "Permite a integração entre o Sistema Eletrônico de Informações (SEI) e o Trello.",
6-
"version": "1.6.5",
7-
"author": "Luís Carlos Reischak Júnior",
5+
"description": "Permite a integra\u00e7\u00e3o entre o Sistema Eletr\u00f4nico de Informa\u00e7\u00f5es (SEI) e o Trello.",
6+
"version": "1.6.6",
7+
"author": "Lu\u00eds Carlos Reischak J\u00fanior",
88
"homepage_url": "https://luiscrjunior.github.io/sei-trello/",
9-
109
"browser_specific_settings": {
1110
"gecko": {
1211
"id": "sei-trello@luiscrjunior",
1312
"strict_min_version": "52.0"
1413
}
1514
},
16-
17-
"page_action": {
18-
"default_icon": "icons/icon.png"
19-
},
20-
2115
"icons": {
2216
"128": "icons/icon.png"
2317
},
24-
2518
"background": {
26-
"scripts": ["js/background.js"]
19+
"service_worker": "js/service_worker.js"
2720
},
28-
2921
"options_ui": {
3022
"page": "html/options.html",
3123
"open_in_tab": true
3224
},
33-
3425
"content_scripts": [
3526
{
3627
"matches": ["*://*.br/sei/*"],
@@ -53,8 +44,15 @@
5344
"js": ["js/process_content.js"]
5445
}
5546
],
56-
57-
"permissions": ["*://api.trello.com/*", "storage"],
58-
"web_accessible_resources": ["vendor/webfonts/*"],
59-
"content_security_policy": "default-src 'self' https://*.bootstrapcdn.com; object-src 'self';"
47+
"permissions": ["storage"],
48+
"web_accessible_resources": [
49+
{
50+
"resources": ["vendor/webfonts/*"],
51+
"matches": ["<all_urls>"]
52+
}
53+
],
54+
"action": {
55+
"default_icon": "icons/icon.png"
56+
},
57+
"host_permissions": ["*://api.trello.com/*"]
6058
}

webpack.config.dev.watch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = merge(common, {
99
reloadPage: false,
1010
entries: {
1111
contentScript: ['js/process_list.js', 'js/process_content.js'],
12-
background: 'js/background.js',
12+
service_worker: 'js/service_worker.js',
1313
},
1414
}),
1515
],

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = {
2222

2323
/* outros scripts */
2424
common: './src/js/common.js',
25-
background: './src/js/background.js',
25+
service_worker: './src/js/service_worker.js',
2626
options: './src/js/options.js',
2727
},
2828
output: {

0 commit comments

Comments
 (0)