From 678746c89bf9f52326051871fabfdf0538f263a0 Mon Sep 17 00:00:00 2001
From: Chaoscaot Loading... {error.message} {t("dashboard.stats.playtime", {playtime: new Intl.NumberFormat(astroI18n.locale, {
minimumFractionDigits: 2,
maximumFractionDigits: 2
- }).format(data.playtime)})}
{#if (selectedPath)}
{@const value = pagesMap.get(selectedPath) || []}
+ {#if value.length === 0}
+
{event.event.name}
+ {new Intl.DateTimeFormat("de-DE", {hour: "2-digit", minute: "2-digit"}).format(clock)}
+ {fight.blueTeam.name} vs {fight.redTeam.name}
+ {#if fight.ergebnis !== 0}
+ {#if fight.ergebnis === 1}
+ {fight.blueTeam.name} gewinnt
+ {:else if fight.ergebnis === 2}
+ {fight.redTeam.name} gewinnt
+ {:else}
+ Unentschieden
+ {/if}
+ {:else}
+ {new Intl.DateTimeFormat("de-DE", {day: "2-digit", month: "2-digit", "year": "2-digit", hour: "2-digit", minute: "2-digit"}).format(fight.start)}
+ {/if}
+ {event.event.name}
+ {new Intl.DateTimeFormat("de-DE", {hour: "2-digit", minute: "2-digit"}).format(clock)}
+
{t("dashboard.stats.fights", {fights: data.fights})}
{#if user.perms.includes("CHECK")}{t("dashboard.stats.checked", {checked: data.acceptedSchematics})}
diff --git a/src/i18n/common/de.json b/src/i18n/common/de.json index 867d9d5..0b789bc 100644 --- a/src/i18n/common/de.json +++ b/src/i18n/common/de.json @@ -91,5 +91,76 @@ "draw": "Unentschieden", "points": "Punkte" } + }, + "blog": { + "title": "Ankündigungen - SteamWar" + }, + "dashboard": { + "title": "Hallo, {# name #}!", + "rank": "Rang: {# rank #}", + "permissions": "Berechtigungen:", + "buttons": { + "logout": "Abmelden" + }, + "stats": { + "playtime": "Spielzeit: {# playtime #}", + "fights": "Kämpfe: {# fights #}", + "checked": "Schematics Geprüft: {# checked #}" + }, + "schematic": { + "upload": "Hochladen", + "dir": "Ordner", + "head": { + "type": "Typ", + "owner": "Besitzer", + "updated": "Aktualisiert", + "replaceColor": "Farbe ersetzen", + "allowReplay": "Wiederholung erlauben" + }, + "cancel": "Abbrechen", + "title": "Schematic hochladen" + } + }, + "login": { + "title": "Login", + "placeholder": { + "username": "Nutzername...", + "password": "***************" + }, + "label": { + "username": "Nutzername", + "password": "Passwort" + }, + "setPassword": "Wie setzte ich mein Passwort?", + "submit": "Login", + "error": "Falscher Nutzername oder falsches Passwort" + }, + "ranked": { + "title": "{# mode #} - Rangliste" + }, + "rules": { + "page": "SteamWar - Regelwerke", + "wg": { + "description": "Heute werden die Schlachtfelder der Erde von schwerem Geschütz bestimmt. Mit unserem traditionellen Regelwerk sind auch die WarGears arenenverwüstende Schwergewichte. Aufgrund der Kanonentechnik mit den meisten Projektilen erwarten dich bei WarGears harte und kurzweilige Kämpfe." + }, + "mwg": { + "description": "Im heutigen Straßenkampf hat massives Gerät keinen Platz, weswegen kleinere Maschinen auch heute noch ihre Berechtigung haben. Mit den etwas kleineren Kanonen sind MiniWarGears genau das richtige für Einsteiger, Gelegenheitsspieler und Experimentierfreudige." + }, + "ws": { + "description": "Lange Zeit waren Kriegsschiffe das Nonplusultra der Kriegsführung. In Sachen Raketen- und Slimetechnik gilt das auch heute noch für Warships. Durch die begrenzte Kanonenstärke bieten WarShips lange, intensive und abwechslungsreiche Kämpfe, womit es immer neue Technik in der Arena gibt. Durch das Entern verlagert sich ein WarShip-Kampf nach einiger Zeit in das Wasser und bietet damit spannende PvP-Action." + }, + "as": { + "description": "Der Traum vom Fliegen beflügelt die Menschheit schon seit Jahrtausenden. Der Spielmodus AirShips bietet dir die nahezu unbegrenzten Möglichkeiten des Himmels. Egal, ob du mit 15 2 Projektil-Kanonen oder 2 15 Projektil-Kanonen antrittst, du hast stets eine realistische Chance auf den Sieg. Denn: Alles hat seinen Preis." + }, + "qg": { + "description": "Nicht immer besteht die Zeit für einen langen Bau. Manchmal muss es schnell gehen. Für diese Fälle gibt es QuickGears. Ohne Qualitätsprüfung und mit nur einem Klick kannst du hier ein Gefährt erstellen. Die Qualität ist dabei nicht immer die beste, aber für einen schnellen Kampf reicht es allemal." + }, + "rules": "Regelwerk »", + "announcements": "Ankündigungen »", + "ranking": "Rangliste »", + "title": "{# mode #} - Regelwerk" + }, + "stats": { + "title": "Kampf Statistiken" } } diff --git a/src/i18n/common/en.json b/src/i18n/common/en.json index 69167f6..34ce259 100644 --- a/src/i18n/common/en.json +++ b/src/i18n/common/en.json @@ -141,5 +141,97 @@ "warning": { "title": "This page is not available in your language.", "text": "The page you are trying to access is not available in your language. You can still access the original page in German." + }, + "tag": { + "title": "Tag: {# tag #} - SteamWar" + }, + "blog": { + "title": "Announcements - SteamWar" + }, + "dashboard": { + "page": "SteamWar - Dashboard", + "title": "Hello, {# name #}!", + "rank": "Rank: {# rank #}", + "permissions": "Permssions:", + "buttons": { + "logout": "Logout", + "admin": "Admin Panel" + }, + "stats": { + "playtime": "Playtime: {# playtime #}h", + "fights": "Fights: {# fights #}", + "checked": "Schematics Checked: {# checked #}" + }, + "schematic": { + "upload": "Upload", + "cancel": "Cancel", + "title": "Upload Schematic", + "home": "Schematics", + "dir": "Directory", + "head": { + "type": "Type", + "name": "Name", + "owner": "Owner", + "updated": "Updated", + "replaceColor": "Replace Color", + "allowReplay": "Allow Replay" + }, + "info": { + "path": "Path: {# path #}", + "replaceColor": "Replace Color: ", + "allowReplay": "Allow Replay: ", + "type": "Type: {# type #}", + "updated": "Updated: {# updated #}", + "item": "Item: {# item #}", + "members": "Members: {# members #}", + "btn": { + "download": "Download", + "close": "Close" + } + } + } + }, + "login": { + "page": "SteamWar - Login", + "title": "Login", + "placeholder": { + "username": "Username...", + "password": "***************" + }, + "label": { + "username": "Username", + "password": "Password" + }, + "setPassword": "How to set a Password", + "submit": "Login", + "error": "Invalid username or password" + }, + "ranked": { + "title": "{# mode #} - Ranking" + }, + "rules": { + "page": "SteamWar - Rules", + "wg": { + "description": "Today, the battlefields of Earth are dominated by heavy artillery. With our traditional rules, WarGears are also arena-wrecking heavyweights. Due to the cannon technology with the most projectiles, you can expect hard and short-lived battles in WarGears." + }, + "as": { + "description": "The dream of flying has inspired humanity for millennia. The AirShips game mode offers you the almost unlimited possibilities of the sky. Whether you compete with 15 2-projectile cannons or 2 15-projectile cannons, you always have a realistic chance of winning. Because: Everything has its price." + }, + "ws": { + "description": "For a long time, warships were the ultimate weapon of war. This is still true for Warships today in terms of rocket and slime technology. Due to the limited cannon power, WarShips offer long, intense and varied battles, with new techniques always being introduced in the arena. After a while, a WarShip battle shifts to the water through boarding, providing exciting PvP action." + }, + "mwg": { + "description": "In today's urban warfare, there is no place for heavy equipment, which is why smaller machines still have their place today. With their slightly smaller cannons, MiniWarGears are the perfect choice for beginners, casual players, and those who like to experiment." + }, + "qg": { + "description": "Sometimes there is no time for a long construction. Sometimes it has to be quick. For these cases there are QuickGears. Without quality control and with just one click you can create a vehicle here. The quality is not always the best, but for a quick fight it is enough." + }, + "rules": "Rules »", + "announcements": "Announcements »", + "ranking": "Ranking »", + "title": "{# mode #} - Rules" + }, + "stats": { + "title": "Fight Statistics" } } diff --git a/src/i18n/pages/announcements/de.json b/src/i18n/pages/announcements/de.json deleted file mode 100644 index dad0d7c..0000000 --- a/src/i18n/pages/announcements/de.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "blog": { - "title": "Ankündigungen - SteamWar" - } -} \ No newline at end of file diff --git a/src/i18n/pages/announcements/en.json b/src/i18n/pages/announcements/en.json deleted file mode 100644 index 50f4e91..0000000 --- a/src/i18n/pages/announcements/en.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "blog": { - "title": "Announcements - SteamWar" - } -} \ No newline at end of file diff --git a/src/i18n/pages/announcements/tags/en.json b/src/i18n/pages/announcements/tags/en.json deleted file mode 100644 index e056792..0000000 --- a/src/i18n/pages/announcements/tags/en.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tag": { - "title": "Tag: {# tag #} - SteamWar" - } -} \ No newline at end of file diff --git a/src/i18n/pages/dashboard/de.json b/src/i18n/pages/dashboard/de.json deleted file mode 100644 index 8764510..0000000 --- a/src/i18n/pages/dashboard/de.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "dashboard": { - "title": "Hallo, {# name #}!", - "rank": "Rang: {# rank #}", - "permissions": "Berechtigungen:", - "buttons": { - "logout": "Abmelden" - }, - "stats": { - "playtime": "Spielzeit: {# playtime #}", - "fights": "Kämpfe: {# fights #}", - "checked": "Schematics Geprüft: {# checked #}" - }, - "schematic": { - "upload": "Hochladen", - "dir": "Ordner", - "head": { - "type": "Typ", - "owner": "Besitzer", - "updated": "Aktualisiert", - "replaceColor": "Farbe ersetzen", - "allowReplay": "Wiederholung erlauben" - }, - "cancel": "Abbrechen", - "title": "Schematic hochladen" - } - } -} \ No newline at end of file diff --git a/src/i18n/pages/dashboard/en.json b/src/i18n/pages/dashboard/en.json deleted file mode 100644 index cc6a85c..0000000 --- a/src/i18n/pages/dashboard/en.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "dashboard": { - "page": "SteamWar - Dashboard", - "title": "Hello, {# name #}!", - "rank": "Rank: {# rank #}", - "permissions": "Permssions:", - "buttons": { - "logout": "Logout", - "admin": "Admin Panel" - }, - "stats": { - "playtime": "Playtime: {# playtime #}h", - "fights": "Fights: {# fights #}", - "checked": "Schematics Checked: {# checked #}" - }, - "schematic": { - "upload": "Upload", - "cancel": "Cancel", - "title": "Upload Schematic", - "home": "Schematics", - "dir": "Directory", - "head": { - "type": "Type", - "name": "Name", - "owner": "Owner", - "updated": "Updated", - "replaceColor": "Replace Color", - "allowReplay": "Allow Replay" - }, - "info": { - "path": "Path: {# path #}", - "replaceColor": "Replace Color: ", - "allowReplay": "Allow Replay: ", - "type": "Type: {# type #}", - "updated": "Updated: {# updated #}", - "item": "Item: {# item #}", - "members": "Members: {# members #}", - "btn": { - "download": "Download", - "close": "Close" - } - } - } - } -} \ No newline at end of file diff --git a/src/i18n/pages/login/de.json b/src/i18n/pages/login/de.json deleted file mode 100644 index f54eb2a..0000000 --- a/src/i18n/pages/login/de.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "login": { - "title": "Login", - "placeholder": { - "username": "Nutzername...", - "password": "***************" - }, - "label": { - "username": "Nutzername", - "password": "Passwort" - }, - "setPassword": "Wie setzte ich mein Passwort?", - "submit": "Login", - "error": "Falscher Nutzername oder falsches Passwort" - } -} \ No newline at end of file diff --git a/src/i18n/pages/login/en.json b/src/i18n/pages/login/en.json deleted file mode 100644 index 53758c8..0000000 --- a/src/i18n/pages/login/en.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "login": { - "page": "SteamWar - Login", - "title": "Login", - "placeholder": { - "username": "Username...", - "password": "***************" - }, - "label": { - "username": "Username", - "password": "Password" - }, - "setPassword": "How to set a Password", - "submit": "Login", - "error": "Invalid username or password" - } -} \ No newline at end of file diff --git a/src/i18n/pages/ranked/de.json b/src/i18n/pages/ranked/de.json deleted file mode 100644 index ffd61a6..0000000 --- a/src/i18n/pages/ranked/de.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "ranked": { - "title": "{# mode #} - Rangliste" - } -} \ No newline at end of file diff --git a/src/i18n/pages/ranked/en.json b/src/i18n/pages/ranked/en.json deleted file mode 100644 index a7238f2..0000000 --- a/src/i18n/pages/ranked/en.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "ranked": { - "title": "{# mode #} - Ranking" - } -} \ No newline at end of file diff --git a/src/i18n/pages/rules/de.json b/src/i18n/pages/rules/de.json deleted file mode 100644 index 9ade369..0000000 --- a/src/i18n/pages/rules/de.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "page": "SteamWar - Regelwerke", - "wg": { - "description": "Heute werden die Schlachtfelder der Erde von schwerem Geschütz bestimmt. Mit unserem traditionellen Regelwerk sind auch die WarGears arenenverwüstende Schwergewichte. Aufgrund der Kanonentechnik mit den meisten Projektilen erwarten dich bei WarGears harte und kurzweilige Kämpfe." - }, - "mwg": { - "description": "Im heutigen Straßenkampf hat massives Gerät keinen Platz, weswegen kleinere Maschinen auch heute noch ihre Berechtigung haben. Mit den etwas kleineren Kanonen sind MiniWarGears genau das richtige für Einsteiger, Gelegenheitsspieler und Experimentierfreudige." - }, - "ws": { - "description": "Lange Zeit waren Kriegsschiffe das Nonplusultra der Kriegsführung. In Sachen Raketen- und Slimetechnik gilt das auch heute noch für Warships. Durch die begrenzte Kanonenstärke bieten WarShips lange, intensive und abwechslungsreiche Kämpfe, womit es immer neue Technik in der Arena gibt. Durch das Entern verlagert sich ein WarShip-Kampf nach einiger Zeit in das Wasser und bietet damit spannende PvP-Action." - }, - "as": { - "description": "Der Traum vom Fliegen beflügelt die Menschheit schon seit Jahrtausenden. Der Spielmodus AirShips bietet dir die nahezu unbegrenzten Möglichkeiten des Himmels. Egal, ob du mit 15 2 Projektil-Kanonen oder 2 15 Projektil-Kanonen antrittst, du hast stets eine realistische Chance auf den Sieg. Denn: Alles hat seinen Preis." - }, - "qg": { - "description": "Nicht immer besteht die Zeit für einen langen Bau. Manchmal muss es schnell gehen. Für diese Fälle gibt es QuickGears. Ohne Qualitätsprüfung und mit nur einem Klick kannst du hier ein Gefährt erstellen. Die Qualität ist dabei nicht immer die beste, aber für einen schnellen Kampf reicht es allemal." - }, - "rules": "Regelwerk »", - "announcements": "Ankündigungen »", - "ranking": "Rangliste »", - "title": "{# mode #} - Regelwerk" -} \ No newline at end of file diff --git a/src/i18n/pages/rules/en.json b/src/i18n/pages/rules/en.json deleted file mode 100644 index 2fb1f0f..0000000 --- a/src/i18n/pages/rules/en.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "page": "SteamWar - Rules", - "wg": { - "description": "Today, the battlefields of Earth are dominated by heavy artillery. With our traditional rules, WarGears are also arena-wrecking heavyweights. Due to the cannon technology with the most projectiles, you can expect hard and short-lived battles in WarGears." - }, - "as": { - "description": "The dream of flying has inspired humanity for millennia. The AirShips game mode offers you the almost unlimited possibilities of the sky. Whether you compete with 15 2-projectile cannons or 2 15-projectile cannons, you always have a realistic chance of winning. Because: Everything has its price." - }, - "ws": { - "description": "For a long time, warships were the ultimate weapon of war. This is still true for Warships today in terms of rocket and slime technology. Due to the limited cannon power, WarShips offer long, intense and varied battles, with new techniques always being introduced in the arena. After a while, a WarShip battle shifts to the water through boarding, providing exciting PvP action." - }, - "mwg": { - "description": "In today's urban warfare, there is no place for heavy equipment, which is why smaller machines still have their place today. With their slightly smaller cannons, MiniWarGears are the perfect choice for beginners, casual players, and those who like to experiment." - }, - "qg": { - "description": "Sometimes there is no time for a long construction. Sometimes it has to be quick. For these cases there are QuickGears. Without quality control and with just one click you can create a vehicle here. The quality is not always the best, but for a quick fight it is enough." - }, - "rules": "Rules »", - "announcements": "Announcements »", - "ranking": "Ranking »", - "title": "{# mode #} - Rules" -} \ No newline at end of file diff --git a/src/i18n/pages/stats/fight/de.json b/src/i18n/pages/stats/fight/de.json deleted file mode 100644 index beb9fff..0000000 --- a/src/i18n/pages/stats/fight/de.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "stats": { - "title": "Kampf Statistiken" - } -} \ No newline at end of file diff --git a/src/i18n/pages/stats/fight/en.json b/src/i18n/pages/stats/fight/en.json deleted file mode 100644 index af68e2e..0000000 --- a/src/i18n/pages/stats/fight/en.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "stats": { - "title": "Fight Statistics" - } -} \ No newline at end of file diff --git a/src/layouts/Basic.astro b/src/layouts/Basic.astro index fdfcf40..ee4b602 100644 --- a/src/layouts/Basic.astro +++ b/src/layouts/Basic.astro @@ -2,8 +2,9 @@ import icon from "../images/logo.png"; import {getImage} from "astro:assets"; import {astroI18n} from "astro-i18n"; -const {title, description} = Astro.props.frontmatter || Astro.props; import {SEO} from "astro-seo"; +import {ViewTransitions} from "astro:transitions"; +const {title, description} = Astro.props.frontmatter || Astro.props; import "../../public/fonts/roboto/roboto.css"; @@ -38,6 +39,8 @@ if (localStorage["theme-mode"] === "light" || (!("theme-mode" in localStorage) &