feat: atualiza estrutura de estilos e build process

This commit is contained in:
Lucas Santana 2024-12-19 08:33:50 -03:00
parent 0cac5e9bb0
commit 90949a9451
3 changed files with 17 additions and 18 deletions

View File

@ -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';

View File

@ -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": ["<all_urls>"]
}]
}

View File

@ -52,7 +52,7 @@
<div id="loginSection" class="container p-4">
<!-- Logo -->
<div class="d-flex align-items-center mb-4">
<img src="./images/logo.png" alt="Launchr" height="32" class="me-2">
<img src=".src/assets/logo.png" alt="Launchr" height="32" class="me-2">
<small class="text-muted">Versão 1.3.6</small>
</div>
@ -99,7 +99,7 @@
<div class="container-fluid px-0">
<!-- Logo -->
<a class="navbar-brand" href="#">
<img src="./images/logo.png" alt="Launchr" height="32">
<img src="./src/assets/logo.png" alt="Launchr" height="32">
</a>
<!-- Links centralizados -->