From 224a3929aaab0224573a7cd9e6d00e65784a533e Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 5 Dec 2023 17:55:48 +0100 Subject: [PATCH] Finish MVP --- astro-i18n.config.ts | 1 + src/components/Dashboard.svelte | 2 +- src/components/EloTable.svelte | 7 +- src/components/dashboard/SchematicInfo.svelte | 4 +- .../dashboard/SchematicInfoModal.svelte | 6 +- src/components/dashboard/SchematicList.svelte | 4 +- src/content/pages/de/datenschutzerklärung.md | 120 +++++++++++++++++ src/content/pages/en/privacy.md | 121 ++++++++++++++++++ src/i18n/common/de.json | 3 + src/i18n/common/en.json | 6 + src/layouts/NavbarLayout.astro | 4 +- src/pages/ranked/[...gamemode].astro | 2 +- 12 files changed, 270 insertions(+), 10 deletions(-) create mode 100644 src/content/pages/de/datenschutzerklärung.md create mode 100644 src/content/pages/en/privacy.md diff --git a/astro-i18n.config.ts b/astro-i18n.config.ts index b151f71..9e91a19 100644 --- a/astro-i18n.config.ts +++ b/astro-i18n.config.ts @@ -21,6 +21,7 @@ export default defineAstroI18nConfig({ faq: "haeufige-fragen", stats: "statistiken", announcements: "ankuendigungen", + "privacy-policy": "datenschutzerklaerung", } }, }) \ No newline at end of file diff --git a/src/components/Dashboard.svelte b/src/components/Dashboard.svelte index 6f0cb96..0c208e2 100644 --- a/src/components/Dashboard.svelte +++ b/src/components/Dashboard.svelte @@ -43,7 +43,7 @@ {#await schematicFetch}

{t("status.loading")}

{:then schematics} - schematicFetch = getSchematics()} on:to={(e) => schematicFetch = getSchematic(e.detail.id) } /> + schematicFetch = getSchematics()} on:to={(e) => schematicFetch = getSchematic(e.detail.id) } /> {:catch error}

error: {error.message}

{/await} diff --git a/src/components/EloTable.svelte b/src/components/EloTable.svelte index db4a912..8a7d11f 100644 --- a/src/components/EloTable.svelte +++ b/src/components/EloTable.svelte @@ -1,5 +1,6 @@