From 9fa9b08eefc6b2a1595de0217adf677129a402cd Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Thu, 30 Mar 2023 12:30:36 +0530 Subject: [PATCH] run prettier on all svelte files --- src/lib/Hero.svelte | 6 +++--- src/lib/Nav/Logo.svelte | 9 +++++++-- src/lib/Nav/Nav.svelte | 2 +- src/routes/blog/+page.svelte | 6 +++--- src/routes/donate/+page.svelte | 2 +- src/routes/donate/CryptoInfo.svelte | 4 +--- src/routes/instances/+page.svelte | 2 +- src/routes/instances/advanced/+page.svelte | 2 +- src/routes/login/+page.svelte | 4 ++-- src/routes/pubnix/+page.svelte | 13 +++++++++---- src/routes/pubnix/User.svelte | 8 ++++++-- src/routes/pubnix/register/+page.svelte | 13 ++++++++++--- src/routes/pubnix/users/+page.svelte | 4 +++- src/routes/team/+page.svelte | 3 +-- 14 files changed, 49 insertions(+), 29 deletions(-) diff --git a/src/lib/Hero.svelte b/src/lib/Hero.svelte index dfe700c..c3c79e6 100644 --- a/src/lib/Hero.svelte +++ b/src/lib/Hero.svelte @@ -8,19 +8,19 @@ href="/instances" class="button" >
- Instances diff --git a/src/lib/Nav/Logo.svelte b/src/lib/Nav/Logo.svelte index ca1162b..d0b19bb 100644 --- a/src/lib/Nav/Logo.svelte +++ b/src/lib/Nav/Logo.svelte @@ -1,6 +1,11 @@ - Project Segfault logo + class="text-text no-underline flex items-center gap-2" +> + Project Segfault logo Project Segfault diff --git a/src/lib/Nav/Nav.svelte b/src/lib/Nav/Nav.svelte index 63db38c..02a9b6c 100644 --- a/src/lib/Nav/Nav.svelte +++ b/src/lib/Nav/Nav.svelte @@ -16,7 +16,7 @@ text: "Wiki", external: true }, - { href: "/blog", text: "Blog"}, + { href: "/blog", text: "Blog" }, { href: "https://status.projectsegfau.lt/", text: "Status", diff --git a/src/routes/blog/+page.svelte b/src/routes/blog/+page.svelte index 7934b40..a0a79a0 100644 --- a/src/routes/blog/+page.svelte +++ b/src/routes/blog/+page.svelte @@ -17,19 +17,19 @@ href="/blog/tags" class="button sm:w-fit" >
- Tags
- Authors diff --git a/src/routes/donate/+page.svelte b/src/routes/donate/+page.svelte index adc6247..bc811c1 100644 --- a/src/routes/donate/+page.svelte +++ b/src/routes/donate/+page.svelte @@ -29,7 +29,7 @@ href="https://liberapay.com/ProjectSegfault/donate" class="button !bg-amber !text-black w-fit" >
- Liberapay

Cryptocurrencies

diff --git a/src/routes/donate/CryptoInfo.svelte b/src/routes/donate/CryptoInfo.svelte index 5524ceb..b6df5b2 100644 --- a/src/routes/donate/CryptoInfo.svelte +++ b/src/routes/donate/CryptoInfo.svelte @@ -6,9 +6,7 @@ {#if address}
Address - {address} + {address}
{/if} diff --git a/src/routes/instances/+page.svelte b/src/routes/instances/+page.svelte index 2b79689..6213070 100644 --- a/src/routes/instances/+page.svelte +++ b/src/routes/instances/+page.svelte @@ -10,7 +10,7 @@ href="/instances/advanced" class="button sm:w-fit" >
- Advanced
diff --git a/src/routes/instances/advanced/+page.svelte b/src/routes/instances/advanced/+page.svelte index 7c93323..72347bd 100644 --- a/src/routes/instances/advanced/+page.svelte +++ b/src/routes/instances/advanced/+page.svelte @@ -10,7 +10,7 @@ href="/instances" class="button sm:w-fit" >
- Simple
diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte index 51e7696..3924893 100644 --- a/src/routes/login/+page.svelte +++ b/src/routes/login/+page.svelte @@ -23,7 +23,7 @@ on:click={() => signOut()} class={buttonStyles} >
- Sign out
{:else} @@ -33,7 +33,7 @@ on:click={() => signIn("authentik")} class={buttonStyles} > {/if} diff --git a/src/routes/pubnix/+page.svelte b/src/routes/pubnix/+page.svelte index 7e18b7a..1e605ef 100644 --- a/src/routes/pubnix/+page.svelte +++ b/src/routes/pubnix/+page.svelte @@ -17,19 +17,19 @@ href="/pubnix/register" class="button sm:w-fit" >
- Register
- Users @@ -37,7 +37,12 @@ {#if !data.users.error} {#if data.users.users.some(isOnline)} -

There {onlineUserCount === 1 ? "is" : "are"} {onlineUserCount} {onlineUserCount === 1 ? "user" : "users"} online out of {userCount} users.

+

+ There {onlineUserCount === 1 ? "is" : "are"} + {onlineUserCount} + {onlineUserCount === 1 ? "user" : "users"} online out of {userCount} + users. +

{#each data.users.users as user} {#if user.online} diff --git a/src/routes/pubnix/User.svelte b/src/routes/pubnix/User.svelte index 5b4b8b7..16184c9 100644 --- a/src/routes/pubnix/User.svelte +++ b/src/routes/pubnix/User.svelte @@ -53,11 +53,15 @@ {/if} {#if user.matrix} -
+
{/if} {#if user.fediverse} -
+
{/if} {#if user.website} diff --git a/src/routes/pubnix/register/+page.svelte b/src/routes/pubnix/register/+page.svelte index 55b3c5c..2a42ff5 100644 --- a/src/routes/pubnix/register/+page.svelte +++ b/src/routes/pubnix/register/+page.svelte @@ -31,7 +31,12 @@
- +