diff --git a/.changeset/slow-apricots-tell.md b/.changeset/slow-apricots-tell.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/slow-apricots-tell.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/.prettierrc b/.prettierrc index bcb1ab38eda..b49961d93e7 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,7 +2,7 @@ "arrowParens": "avoid", "bracketSpacing": true, "jsxSingleQuote": true, - "plugins": ["prettier-plugin-packagejson", "prettier-plugin-tailwindcss"], + "plugins": ["prettier-plugin-packagejson", "prettier-plugin-tailwindcss", "prettier-plugin-astro"], "printWidth": 120, "semi": true, "singleAttributePerLine": true, diff --git a/integration/templates/astro-hybrid/src/layouts/Layout.astro b/integration/templates/astro-hybrid/src/layouts/Layout.astro index b5c6c9717ba..e1fad35cd47 100644 --- a/integration/templates/astro-hybrid/src/layouts/Layout.astro +++ b/integration/templates/astro-hybrid/src/layouts/Layout.astro @@ -7,13 +7,26 @@ const { title } = Astro.props; --- - + - - - - - + + + + + {title} diff --git a/integration/templates/astro-hybrid/src/pages/index.astro b/integration/templates/astro-hybrid/src/pages/index.astro index b13e67a0a46..47168af011b 100644 --- a/integration/templates/astro-hybrid/src/pages/index.astro +++ b/integration/templates/astro-hybrid/src/pages/index.astro @@ -1,19 +1,22 @@ --- -import { UserButton, SignInButton, SignedIn, SignedOut } from "@clerk/astro/components"; -import { OrganizationSwitcher } from "@clerk/astro/react"; -import Layout from "../layouts/Layout.astro"; +import { UserButton, SignInButton, SignedIn, SignedOut } from '@clerk/astro/components'; +import { OrganizationSwitcher } from '@clerk/astro/react'; +import Layout from '../layouts/Layout.astro'; export const prerender = true; --- - - -

Signed out

- -
- -

Signed in

- - -
+ + +

Signed out

+ +
+ +

Signed in

+ + +
diff --git a/integration/templates/astro-hybrid/src/pages/only-admins.astro b/integration/templates/astro-hybrid/src/pages/only-admins.astro index 842b10ac81f..9a786b993a0 100644 --- a/integration/templates/astro-hybrid/src/pages/only-admins.astro +++ b/integration/templates/astro-hybrid/src/pages/only-admins.astro @@ -1,13 +1,13 @@ --- -import { Protect } from "@clerk/astro/components"; -import Layout from "../layouts/Layout.astro"; +import { Protect } from '@clerk/astro/components'; +import Layout from '../layouts/Layout.astro'; export const prerender = true; --- - - -

I'm an admin

-

Not an admin

-
+ + +

I'm an admin

+

Not an admin

+
diff --git a/integration/templates/astro-hybrid/src/pages/only-members.astro b/integration/templates/astro-hybrid/src/pages/only-members.astro index 70eac5ff274..cf6f6b05e48 100644 --- a/integration/templates/astro-hybrid/src/pages/only-members.astro +++ b/integration/templates/astro-hybrid/src/pages/only-members.astro @@ -1,13 +1,16 @@ --- -import { Protect } from "@clerk/astro/components"; -import Layout from "../layouts/Layout.astro"; +import { Protect } from '@clerk/astro/components'; +import Layout from '../layouts/Layout.astro'; export const prerender = false; --- - - -

I'm a member

-

Not a member

-
+ + +

I'm a member

+

Not a member

+
diff --git a/integration/templates/astro-hybrid/src/pages/ssr.astro b/integration/templates/astro-hybrid/src/pages/ssr.astro index b0ad0b253ef..0db930a6145 100644 --- a/integration/templates/astro-hybrid/src/pages/ssr.astro +++ b/integration/templates/astro-hybrid/src/pages/ssr.astro @@ -1,19 +1,22 @@ --- -import { UserButton, SignInButton, SignedIn, SignedOut } from "@clerk/astro/components"; -import { OrganizationSwitcher } from "@clerk/astro/react"; -import Layout from "../layouts/Layout.astro"; +import { UserButton, SignInButton, SignedIn, SignedOut } from '@clerk/astro/components'; +import { OrganizationSwitcher } from '@clerk/astro/react'; +import Layout from '../layouts/Layout.astro'; export const prerender = false; --- - - -

Signed out

- -
- -

Signed in

- - -
+ + +

Signed out

+ +
+ +

Signed in

+ + +
diff --git a/integration/templates/astro-node/src/components/Card.astro b/integration/templates/astro-node/src/components/Card.astro index bd6d5971ebf..f223ba2f509 100644 --- a/integration/templates/astro-node/src/components/Card.astro +++ b/integration/templates/astro-node/src/components/Card.astro @@ -1,61 +1,61 @@ --- interface Props { - title: string; - body: string; - href: string; + title: string; + body: string; + href: string; } const { href, title, body } = Astro.props; --- - diff --git a/integration/templates/astro-node/src/components/CustomUserButton.astro b/integration/templates/astro-node/src/components/CustomUserButton.astro index e2d26f48a98..7586c0db5ba 100644 --- a/integration/templates/astro-node/src/components/CustomUserButton.astro +++ b/integration/templates/astro-node/src/components/CustomUserButton.astro @@ -2,25 +2,37 @@ import { UserButton } from '@clerk/astro/components'; --- - - - - - -
Icon
-
- -
Icon
-
- -
Icon
-
-
- -
Icon
-
-

Custom Terms Page

-

This is the custom terms page

-
-
+ + + + + +
Icon
+
+ +
Icon
+
+ +
Icon
+
+
+ +
Icon
+
+

Custom Terms Page

+

This is the custom terms page

+
+
diff --git a/integration/templates/astro-node/src/components/StreamUser.astro b/integration/templates/astro-node/src/components/StreamUser.astro index 4e3f562b651..deb5e7bacdc 100644 --- a/integration/templates/astro-node/src/components/StreamUser.astro +++ b/integration/templates/astro-node/src/components/StreamUser.astro @@ -1,6 +1,10 @@ --- -import { Code } from "astro:components"; +import { Code } from 'astro:components'; const user = await Astro.locals.currentUser(); --- - \ No newline at end of file + diff --git a/integration/templates/astro-node/src/layouts/Layout.astro b/integration/templates/astro-node/src/layouts/Layout.astro index 8abf4093714..3e168321da2 100644 --- a/integration/templates/astro-node/src/layouts/Layout.astro +++ b/integration/templates/astro-node/src/layouts/Layout.astro @@ -5,54 +5,70 @@ interface Props { const { title } = Astro.props; -import { SignedIn, SignedOut } from "@clerk/astro/components"; -import { LanguagePicker } from "../components/LanguagePicker"; -import CustomUserButton from "../components/CustomUserButton.astro"; +import { SignedIn, SignedOut } from '@clerk/astro/components'; +import { LanguagePicker } from '../components/LanguagePicker'; +import CustomUserButton from '../components/CustomUserButton.astro'; --- - + - - - - - + + + + + {title} -
-
-
-
- +
+
+
+ -