From 56369d2d6ab9ec19dd882b4967cee8d6cb0c3213 Mon Sep 17 00:00:00 2001 From: Akis Date: Fri, 11 Nov 2022 15:32:29 +0200 Subject: [PATCH] fixes --- Dockerfile | 4 +- src/routes/+page.svelte | 126 +++++++++++++++--------------- src/routes/donate/+page.md | 9 +-- src/routes/instances/+page.svelte | 11 +-- 4 files changed, 69 insertions(+), 81 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac6fa5c..999e95c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,6 @@ COPY . . RUN pnpm build -EXPOSE 80 +EXPOSE 4173 -CMD [ "pnpm", "preview", "--port", "80" ] \ No newline at end of file +CMD [ "pnpm", "preview" ] \ No newline at end of file diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index c223898..ddfcc4e 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -16,8 +16,8 @@
{#if data.state.enabled} - {#if announcements.error} - - {:else} + {#if !announcements.error}
-
+
{#if announcements.severity === "info"} -
+
+
+ Info +
{:else} -
+
+
+ Attention +
{/if} - - {announcements.author} - + +
+ {announcements.author} - + +
{dayjs .unix(announcements.created) .format("DD/MM/YYYY HH:mm")} @@ -68,65 +74,55 @@ {/if}
-
+
+ + {#if announcements.severity === "info"} + + {:else if announcements.severity === "low"} + + {:else if announcements.severity === "medium"} + + {:else if announcements.severity === "high"} + + {/if} - {#if announcements.severity === "info"} - {:else if announcements.severity === "low"} - - {:else if announcements.severity === "medium"} - - {:else if announcements.severity === "high"} - - {/if} - - {/if} {:else}
diff --git a/src/routes/donate/+page.md b/src/routes/donate/+page.md index 323d0bd..9faefbf 100644 --- a/src/routes/donate/+page.md +++ b/src/routes/donate/+page.md @@ -13,14 +13,11 @@ description: The ways you can donate to us and more. ## Reasons to donate to our project. -If you donate, we will be more motivated to work on the server and host more stuff and maybe even get more hardware. Thanks! +If you donate, we will be more motivated to work on the server and host more stuff and maybe even get more hardware. As well as that, we may donate PayPal funds to project we heavily rely on. Thanks! -**UPDATE (25/10):** We will use PayPal funds to donate to other projects and fund our servers when in critical situation. -**Midou** runs the PayPal Account on liberapay (not private), and **Mrlerien** runs the stripe account on liberapay (private). +## Donation methods -## Donation links - -### Credit Card +### Credit card diff --git a/src/routes/instances/+page.svelte b/src/routes/instances/+page.svelte index e311f44..8f2f71e 100644 --- a/src/routes/instances/+page.svelte +++ b/src/routes/instances/+page.svelte @@ -4,11 +4,6 @@ import type { PageData } from "../$types"; export let data: PageData; - - let groups = [ - {name: "General", data: data.status.General}, - {name: "Internal", data: data.status.Internal} - ] @@ -20,7 +15,7 @@
- {#each groups as group} + {#each data.status as group}

{group.name}

{#each group.data as item} @@ -32,13 +27,13 @@ icon={item.icon} > - +
Instance link
- +
Project website