forked from ProjectSegfault/website
run prettier on all svelte files
This commit is contained in:
parent
b4c8e2131b
commit
9fa9b08eef
@ -8,19 +8,19 @@
|
|||||||
href="/instances"
|
href="/instances"
|
||||||
class="button"
|
class="button"
|
||||||
><div class="i-ic:outline-computer" />
|
><div class="i-ic:outline-computer" />
|
||||||
Instances</a
|
Instances</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/donate"
|
href="/donate"
|
||||||
class="button !bg-amber !text-black"
|
class="button !bg-amber !text-black"
|
||||||
><div class="i-ic:outline-attach-money" />
|
><div class="i-ic:outline-attach-money" />
|
||||||
Donate</a
|
Donate</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/pubnix"
|
href="/pubnix"
|
||||||
class="button !bg-purple"
|
class="button !bg-purple"
|
||||||
><div class="i-simple-icons:linux" />
|
><div class="i-simple-icons:linux" />
|
||||||
Pubnix</a
|
Pubnix</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
<a
|
<a
|
||||||
href="/"
|
href="/"
|
||||||
class="text-text no-underline flex items-center gap-2">
|
class="text-text no-underline flex items-center gap-2"
|
||||||
<img src="/logo.png" alt="Project Segfault logo" class="w-7">
|
>
|
||||||
|
<img
|
||||||
|
src="/logo.png"
|
||||||
|
alt="Project Segfault logo"
|
||||||
|
class="w-7"
|
||||||
|
/>
|
||||||
Project Segfault</a
|
Project Segfault</a
|
||||||
>
|
>
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
text: "Wiki",
|
text: "Wiki",
|
||||||
external: true
|
external: true
|
||||||
},
|
},
|
||||||
{ href: "/blog", text: "Blog"},
|
{ href: "/blog", text: "Blog" },
|
||||||
{
|
{
|
||||||
href: "https://status.projectsegfau.lt/",
|
href: "https://status.projectsegfau.lt/",
|
||||||
text: "Status",
|
text: "Status",
|
||||||
|
@ -17,19 +17,19 @@
|
|||||||
href="/blog/tags"
|
href="/blog/tags"
|
||||||
class="button sm:w-fit"
|
class="button sm:w-fit"
|
||||||
><div class="i-ic:outline-bookmarks" />
|
><div class="i-ic:outline-bookmarks" />
|
||||||
Tags</a
|
Tags</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/blog/authors"
|
href="/blog/authors"
|
||||||
class="button sm:w-fit"
|
class="button sm:w-fit"
|
||||||
><div class="i-ic:outline-people text-xl" />
|
><div class="i-ic:outline-people text-xl" />
|
||||||
Authors</a
|
Authors</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="https://blog.projectsegfau.lt/rss"
|
href="https://blog.projectsegfau.lt/rss"
|
||||||
class="button sm:w-fit !bg-[#ee802f]"
|
class="button sm:w-fit !bg-[#ee802f]"
|
||||||
><div class="i-simple-icons:rss" />
|
><div class="i-simple-icons:rss" />
|
||||||
RSS</a
|
RSS</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
href="https://liberapay.com/ProjectSegfault/donate"
|
href="https://liberapay.com/ProjectSegfault/donate"
|
||||||
class="button !bg-amber !text-black w-fit"
|
class="button !bg-amber !text-black w-fit"
|
||||||
><div class="i-simple-icons:liberapay" />
|
><div class="i-simple-icons:liberapay" />
|
||||||
Liberapay</a
|
Liberapay</a
|
||||||
>
|
>
|
||||||
|
|
||||||
<h3>Cryptocurrencies</h3>
|
<h3>Cryptocurrencies</h3>
|
||||||
|
@ -6,9 +6,7 @@
|
|||||||
{#if address}
|
{#if address}
|
||||||
<details class="p-0">
|
<details class="p-0">
|
||||||
<summary>Address</summary>
|
<summary>Address</summary>
|
||||||
<code class="break-words whitespace-normal"
|
<code class="break-words whitespace-normal">{address}</code>
|
||||||
>{address}</code
|
|
||||||
>
|
|
||||||
</details>
|
</details>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
href="/instances/advanced"
|
href="/instances/advanced"
|
||||||
class="button sm:w-fit"
|
class="button sm:w-fit"
|
||||||
><div class="i-ic:outline-computer" />
|
><div class="i-ic:outline-computer" />
|
||||||
Advanced</a
|
Advanced</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
href="/instances"
|
href="/instances"
|
||||||
class="button sm:w-fit"
|
class="button sm:w-fit"
|
||||||
><div class="i-ic:outline-computer" />
|
><div class="i-ic:outline-computer" />
|
||||||
Simple</a
|
Simple</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
on:click={() => signOut()}
|
on:click={() => signOut()}
|
||||||
class={buttonStyles}
|
class={buttonStyles}
|
||||||
><div class="i-ic:outline-logout" />
|
><div class="i-ic:outline-logout" />
|
||||||
Sign out</button
|
Sign out</button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
@ -33,7 +33,7 @@
|
|||||||
on:click={() => signIn("authentik")}
|
on:click={() => signIn("authentik")}
|
||||||
class={buttonStyles}
|
class={buttonStyles}
|
||||||
><div class="i-ic:outline-login" />
|
><div class="i-ic:outline-login" />
|
||||||
Sign in using Authentik</button
|
Sign in using Authentik</button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -17,19 +17,19 @@
|
|||||||
href="/pubnix/register"
|
href="/pubnix/register"
|
||||||
class="button sm:w-fit"
|
class="button sm:w-fit"
|
||||||
><div class="i-ic:outline-plus" />
|
><div class="i-ic:outline-plus" />
|
||||||
Register</a
|
Register</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/pubnix/users"
|
href="/pubnix/users"
|
||||||
class="button sm:w-fit"
|
class="button sm:w-fit"
|
||||||
><div class="i-ic:outline-people" />
|
><div class="i-ic:outline-people" />
|
||||||
Users</a
|
Users</a
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="/pubnix/faq"
|
href="/pubnix/faq"
|
||||||
class="button sm:w-fit"
|
class="button sm:w-fit"
|
||||||
><div class="i-ic:outline-question-mark" />
|
><div class="i-ic:outline-question-mark" />
|
||||||
FAQ</a
|
FAQ</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -37,7 +37,12 @@
|
|||||||
|
|
||||||
{#if !data.users.error}
|
{#if !data.users.error}
|
||||||
{#if data.users.users.some(isOnline)}
|
{#if data.users.users.some(isOnline)}
|
||||||
<p class="my-4">There {onlineUserCount === 1 ? "is" : "are"} {onlineUserCount} {onlineUserCount === 1 ? "user" : "users"} online out of {userCount} users.</p>
|
<p class="my-4">
|
||||||
|
There {onlineUserCount === 1 ? "is" : "are"}
|
||||||
|
{onlineUserCount}
|
||||||
|
{onlineUserCount === 1 ? "user" : "users"} online out of {userCount}
|
||||||
|
users.
|
||||||
|
</p>
|
||||||
<div class="flex flex-row flex-wrap gap-4">
|
<div class="flex flex-row flex-wrap gap-4">
|
||||||
{#each data.users.users as user}
|
{#each data.users.users as user}
|
||||||
{#if user.online}
|
{#if user.online}
|
||||||
|
@ -53,11 +53,15 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if user.matrix}
|
{#if user.matrix}
|
||||||
<a href="https://matrix.to/#/{user.matrix}"><div class="i-simple-icons:matrix" /></a>
|
<a href="https://matrix.to/#/{user.matrix}"
|
||||||
|
><div class="i-simple-icons:matrix" /></a
|
||||||
|
>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if user.fediverse}
|
{#if user.fediverse}
|
||||||
<a href="https://{user.fediverse}"><div class="i-simple-icons:mastodon" /></a>
|
<a href="https://{user.fediverse}"
|
||||||
|
><div class="i-simple-icons:mastodon" /></a
|
||||||
|
>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if user.website}
|
{#if user.website}
|
||||||
|
@ -31,7 +31,12 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label for="ssh"><a href="https://wiki.projectsegfau.lt/index.php?title=Generating_an_SSH_key">SSH public key</a></label>
|
<label for="ssh"
|
||||||
|
><a
|
||||||
|
href="https://wiki.projectsegfau.lt/index.php?title=Generating_an_SSH_key"
|
||||||
|
>SSH public key</a
|
||||||
|
></label
|
||||||
|
>
|
||||||
<textarea
|
<textarea
|
||||||
name="ssh"
|
name="ssh"
|
||||||
placeholder="[...]"
|
placeholder="[...]"
|
||||||
@ -51,7 +56,9 @@
|
|||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
class="transition-filter duration-200 hover:brightness-75"
|
class="transition-filter duration-200 hover:brightness-75"
|
||||||
>Submit registration <div class="i-ic:outline-arrow-circle-right" /></button
|
>Submit registration <div
|
||||||
|
class="i-ic:outline-arrow-circle-right"
|
||||||
|
/></button
|
||||||
>
|
>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
@ -67,4 +74,4 @@
|
|||||||
form > button {
|
form > button {
|
||||||
@apply w-110 lt-sm\:w-70 px-2 py-1 bg-secondary rounded flex items-center gap-2 text-lg;
|
@apply w-110 lt-sm\:w-70 px-2 py-1 bg-secondary rounded flex items-center gap-2 text-lg;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -9,7 +9,9 @@
|
|||||||
|
|
||||||
{#if !data.users.error}
|
{#if !data.users.error}
|
||||||
{#if data.users.users.length > 0}
|
{#if data.users.users.length > 0}
|
||||||
<p class="my-4">There are {data.users.users.length} users on the pubnix.</p>
|
<p class="my-4">
|
||||||
|
There are {data.users.users.length} users on the pubnix.
|
||||||
|
</p>
|
||||||
<div class="flex flex-row flex-wrap gap-4">
|
<div class="flex flex-row flex-wrap gap-4">
|
||||||
{#each data.users.users as user}
|
{#each data.users.users as user}
|
||||||
<User {user} />
|
<User {user} />
|
||||||
|
@ -32,8 +32,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if member.xmpp}
|
{#if member.xmpp}
|
||||||
<a href={member.xmpp}
|
<a href={member.xmpp}><div class="i-simple-icons:xmpp" /></a
|
||||||
><div class="i-simple-icons:xmpp" /></a
|
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user