diff --git a/astro.config.mjs b/astro.config.mjs
index 637a6a0..90c8601 100644
--- a/astro.config.mjs
+++ b/astro.config.mjs
@@ -9,7 +9,13 @@ export default defineConfig({
output: "server",
integrations: [vue()],
security: {
- csp: process.env.NODE_ENV === "production",
+ csp: process.env.NODE_ENV === "production"
+ ? {
+ scriptDirective: {
+ strictDynamic: true,
+ },
+ }
+ : false,
},
vite: {
plugins: [tailwindcss()],
diff --git a/src/components/AutoSubmit.vue b/src/components/AutoSubmit.vue
new file mode 100644
index 0000000..9fb6215
--- /dev/null
+++ b/src/components/AutoSubmit.vue
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
diff --git a/src/components/ColorDot.vue b/src/components/ColorDot.vue
new file mode 100644
index 0000000..b6d28b6
--- /dev/null
+++ b/src/components/ColorDot.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
diff --git a/src/components/ConfirmForm.vue b/src/components/ConfirmForm.vue
new file mode 100644
index 0000000..a91a020
--- /dev/null
+++ b/src/components/ConfirmForm.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
diff --git a/src/components/ModalButton.vue b/src/components/ModalButton.vue
new file mode 100644
index 0000000..a72ebc1
--- /dev/null
+++ b/src/components/ModalButton.vue
@@ -0,0 +1,34 @@
+
+
+
+
+
diff --git a/src/layouts/DashboardLayout.astro b/src/layouts/DashboardLayout.astro
index 0660456..d3bc186 100644
--- a/src/layouts/DashboardLayout.astro
+++ b/src/layouts/DashboardLayout.astro
@@ -6,7 +6,6 @@ import { members, organizations } from '../db/schema';
import { eq } from 'drizzle-orm';
import Avatar from '../components/Avatar.astro';
import ThemeToggle from '../components/ThemeToggle.vue';
-import { ClientRouter } from "astro:transitions";
interface Props {
title: string;
@@ -55,8 +54,7 @@ function isActive(item: { href: string; exact?: boolean }) {
{title}
-
-
@@ -105,7 +103,6 @@ function isActive(item: { href: string; exact?: boolean }) {
class="select select-sm w-full bg-base-300/40 border-base-300/60 focus:border-primary/50 focus:outline-none text-sm font-medium"
id="team-switcher"
aria-label="Switch team"
- onchange="document.cookie = 'currentTeamId=' + this.value + '; path=/'; window.location.reload();"
>
{userMemberships.map(({ membership, organization }) => (