Skip to content

Commit

Permalink
migrated to v3 manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
luiscrjunior committed Sep 10, 2024
1 parent 21016c9 commit 9c8adcd
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 29 deletions.
6 changes: 6 additions & 0 deletions src/html/bootstrap.min.css

Large diffs are not rendered by default.

13 changes: 4 additions & 9 deletions src/html/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
<head>
<meta charset="UTF-8" />
<title>SEI+Trello: opções</title>
<link
rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="bootstrap.min.css" />
<link rel="stylesheet" href="options.css" />
</head>
<body>
Expand All @@ -29,9 +24,9 @@ <h3>Opções</h3>
<label for="txt-app-key">Trello APP-KEY:</label>
<input type="text" class="form-control" id="txt-app-key" placeholder="APP-KEY..." />
<small class="form-text text-muted"
>A app-key pode ser obtida <a href="http://trello.com/app-key">neste endereço</a>. Você deve estar logado no
Trello quando acessar. A chave é aquele conjunto de caracteres descrito no campo cinza. Apenas copie e cole
aqui.</small
>A app-key pode ser obtida <a href="http://trello.com/app-key">neste endereço</a>
<strong>(Certifique-se que você esteja logado no Trello!)</strong>. Você deve estar logado no Trello quando
acessar. A chave é aquele conjunto de caracteres descrito no campo cinza. Apenas copie e cole aqui.</small
>
</div>

Expand Down
File renamed without changes.
34 changes: 16 additions & 18 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,27 @@
{
"manifest_version": 2,
"manifest_version": 3,
"name": "SEI+Trello",
"short_name": "SEI+Trello",
"description": "Permite a integração entre o Sistema Eletrônico de Informações (SEI) e o Trello.",
"version": "1.6.5",
"author": "Luís Carlos Reischak Júnior",
"description": "Permite a integra\u00e7\u00e3o entre o Sistema Eletr\u00f4nico de Informa\u00e7\u00f5es (SEI) e o Trello.",
"version": "1.6.6",
"author": "Lu\u00eds Carlos Reischak J\u00fanior",
"homepage_url": "https://luiscrjunior.github.io/sei-trello/",

"browser_specific_settings": {
"gecko": {
"id": "sei-trello@luiscrjunior",
"strict_min_version": "52.0"
}
},

"page_action": {
"default_icon": "icons/icon.png"
},

"icons": {
"128": "icons/icon.png"
},

"background": {
"scripts": ["js/background.js"]
"service_worker": "js/service_worker.js"
},

"options_ui": {
"page": "html/options.html",
"open_in_tab": true
},

"content_scripts": [
{
"matches": ["*://*.br/sei/*"],
Expand All @@ -53,8 +44,15 @@
"js": ["js/process_content.js"]
}
],

"permissions": ["*://api.trello.com/*", "storage"],
"web_accessible_resources": ["vendor/webfonts/*"],
"content_security_policy": "default-src 'self' https://*.bootstrapcdn.com; object-src 'self';"
"permissions": ["storage"],
"web_accessible_resources": [
{
"resources": ["vendor/webfonts/*"],
"matches": ["<all_urls>"]
}
],
"action": {
"default_icon": "icons/icon.png"
},
"host_permissions": ["*://api.trello.com/*"]
}
2 changes: 1 addition & 1 deletion webpack.config.dev.watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = merge(common, {
reloadPage: false,
entries: {
contentScript: ['js/process_list.js', 'js/process_content.js'],
background: 'js/background.js',
service_worker: 'js/service_worker.js',
},
}),
],
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {

/* outros scripts */
common: './src/js/common.js',
background: './src/js/background.js',
service_worker: './src/js/service_worker.js',
options: './src/js/options.js',
},
output: {
Expand Down

0 comments on commit 9c8adcd

Please sign in to comment.