diff --git a/astro.config.mjs b/astro.config.mjs index 9d5f075..ba3c8e2 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -5,6 +5,8 @@ import configureI18n from "./astro-i18n.adapter"; import sitemap from "@astrojs/sitemap"; import robotsTxt from "astro-robots-txt"; +import {resolve} from "node:url"; +import path from "node:path"; // https://astro.build/config export default defineConfig({ @@ -30,5 +32,19 @@ export default defineConfig({ disallow: ["/admin", "/login", "/dashboard", "/de", "/_astro"] }] })], - vite: {} + vite: { + resolve: { + alias: { + "@components": path.resolve("./src/components"), + "@pages": path.resolve("./src/pages"), + "@styles": path.resolve("./src/styles"), + "@utils": path.resolve("./src/util"), + "@type": path.resolve("./src/components/types"), + "@images": path.resolve("./src/images"), + "@layouts": path.resolve("./src/layouts"), + "@repo": path.resolve("./src/components/repo"), + "@stores": path.resolve("./src/components/stores"), + } + } + } }); \ No newline at end of file diff --git a/src/components/Dashboard.svelte b/src/components/Dashboard.svelte index 6ba2181..8331297 100644 --- a/src/components/Dashboard.svelte +++ b/src/components/Dashboard.svelte @@ -19,7 +19,7 @@
{t("announcements.table.time")} | {t("announcements.table.blue")} | {t("announcements.table.red")} | +{t("announcements.table.winner")} | {/each}
{Intl.DateTimeFormat(astroI18n.locale, { hour: "numeric", minute: "numeric", }).format(new Date(fight.start))} | {fight.blueTeam.kuerzel} | {fight.redTeam.kuerzel} | +{getWinner(fight)} | {/each}