From 26564340719da226eed4e43e3081a1978cfeef16 Mon Sep 17 00:00:00 2001 From: Sebastian Benz Date: Wed, 4 Sep 2024 13:14:20 +0200 Subject: [PATCH] first working version --- .../ai.gemini-in-the-cloud/manifest.json | 2 +- .../sidepanel/index.css | 9 +-- .../sidepanel/index.html | 30 ++++++++-- .../ai.gemini-in-the-cloud/sidepanel/index.js | 57 +++++++++++++++++- .../sidepanel/screenshot.js | 24 ++++++++ .../sidepanel/tab-audio-recorder.js | 60 +++++++++++++++++++ 6 files changed, 169 insertions(+), 13 deletions(-) create mode 100644 functional-samples/ai.gemini-in-the-cloud/sidepanel/screenshot.js create mode 100644 functional-samples/ai.gemini-in-the-cloud/sidepanel/tab-audio-recorder.js diff --git a/functional-samples/ai.gemini-in-the-cloud/manifest.json b/functional-samples/ai.gemini-in-the-cloud/manifest.json index c4ed1e2651..90d0730a40 100644 --- a/functional-samples/ai.gemini-in-the-cloud/manifest.json +++ b/functional-samples/ai.gemini-in-the-cloud/manifest.json @@ -6,7 +6,7 @@ "background": { "service_worker": "background.js" }, - "permissions": ["sidePanel", "tabs"], + "permissions": ["activeTab", "scripting", "sidePanel"], "host_permissions": [""], "side_panel": { "default_path": "sidepanel/index.html" diff --git a/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.css b/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.css index ee4f7ac8cd..02b230ad2d 100644 --- a/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.css +++ b/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.css @@ -31,13 +31,8 @@ button.primary { color: white; } -button.img { - background: #333; - color: white; - padding: 0 4px; - width: 32px; - height: 32px; - min-width: 32px; +button > img { + vertical-align: middle; } button.secondary { diff --git a/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.html b/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.html index 30eca8077a..9c69f49e71 100644 --- a/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.html +++ b/functional-samples/ai.gemini-in-the-cloud/sidepanel/index.html @@ -4,7 +4,6 @@ -

Google Gemini