small wxt related fixes (#25866)

This commit is contained in:
Peer Richelsen
2025-12-14 21:01:08 +01:00
committed by GitHub
parent 35cf827cb1
commit e46df92492
4 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export function LoginScreen() {
<View className="flex-1 bg-white">
{/* Logo centered in the middle */}
<View className="flex-1 items-center justify-center">
<CalComLogo width={240} height={54} color="#111827" />
<CalComLogo width={180} height={40} color="#111827" />
</View>
{/* Bottom section with button */}
+9
View File
@@ -7,6 +7,15 @@
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com;"
},
"data_collection_permissions": {
"libraries": [
{
"name": "cal.com",
"url": "https://cal.com/privacy",
"purpose": "Booking and scheduling"
}
]
},
"action": {
"default_title": "Cal.com Companion"
},
+2
View File
@@ -9,6 +9,8 @@
"ios": "expo run:ios",
"web": "expo start --web",
"ext:build": "wxt build",
"build:firefox": "wxt build -b firefox",
"build:safari": "wxt build -b safari",
"ext": "wxt",
"ext:zip": "wxt zip",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css,md}\"",
+12
View File
@@ -1,6 +1,15 @@
import { defineConfig } from "wxt";
export default defineConfig({
hooks: {
"build:manifestGenerated": (_wxt, manifest) => {
manifest.browser_specific_settings ??= {};
manifest.browser_specific_settings.gecko ??= {};
manifest.browser_specific_settings.gecko.data_collection_permissions = {
required: ["none"],
};
},
},
srcDir: "extension",
entrypointsDir: "entrypoints",
publicDir: "extension/public",
@@ -20,6 +29,9 @@ export default defineConfig({
extension_pages:
"script-src 'self'; object-src 'self'; frame-src 'self' https://companion.cal.com",
},
data_collection_permissions: {
collects_data: false,
},
action: {
default_title: "Cal.com Companion",
default_icon: {