From 90949a94519233adcb1df9e95de6a54305c6b7e9 Mon Sep 17 00:00:00 2001 From: Lucas Santana Date: Thu, 19 Dec 2024 08:33:50 -0300 Subject: [PATCH] feat: atualiza estrutura de estilos e build process --- content.js | 2 +- manifest.json | 29 ++++++++++++++--------------- popup.html | 4 ++-- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/content.js b/content.js index eb361ee..1d98e6b 100644 --- a/content.js +++ b/content.js @@ -5,7 +5,7 @@ function createSaveButton() { // Adicionar ícone do Launchr const icon = document.createElement('img'); - icon.src = chrome.runtime.getURL('images/logo.png'); + icon.src = chrome.runtime.getURL('src/assets/icon16.png'); icon.alt = 'Launchr'; icon.className = 'launchr-icon'; diff --git a/manifest.json b/manifest.json index 776e3f8..bf8fef0 100644 --- a/manifest.json +++ b/manifest.json @@ -1,31 +1,33 @@ { "manifest_version": 3, - "name": "Sua Extensão", - "version": "1.0", + "name": "Launchr Extension", + "version": "1.0.0", "description": "Extensão para salvar posts do LinkedIn e gerar mensagens personalizadas.", "permissions": [ "activeTab", "storage", "contextMenus", - "scripting", - "windows" + "scripting" ], "host_permissions": [ "https://launchr.com.br/*", "https://api.openai.com/*", "*://www.linkedin.com/*" ], + "content_security_policy": { + "extension_pages": "script-src 'self'; object-src 'self'" + }, "background": { "service_worker": "background.js", "type": "module" }, "action": { "default_popup": "popup.html", - "default_title": "Minha Extensão", + "default_title": "Launchr", "default_icon": { - "16": "icon16.png", - "48": "icon48.png", - "128": "icon128.png" + "16": "src/assets/icon16.png", + "48": "src/assets/icon48.png", + "128": "src/assets/icon128.png" } }, "content_scripts": [ @@ -36,15 +38,12 @@ } ], "icons": { - "16": "icon16.png", - "48": "icon48.png", - "128": "icon128.png" + "16": "src/assets/icon16.png", + "48": "src/assets/icon48.png", + "128": "src/assets/icon128.png" }, "web_accessible_resources": [{ - "resources": [ - "images/*", - "lib/*" - ], + "resources": ["src/assets/*", "src/styles/*"], "matches": [""] }] } \ No newline at end of file diff --git a/popup.html b/popup.html index 87691bc..684f717 100644 --- a/popup.html +++ b/popup.html @@ -52,7 +52,7 @@
- Launchr + Launchr Versão 1.3.6
@@ -99,7 +99,7 @@