Fixes and Upgrade to Astro 5
Some checks failed
SteamWarCI Build failed

This commit is contained in:
2025-01-20 23:04:34 +01:00
parent 628599f019
commit 36931aabb1
11 changed files with 618 additions and 603 deletions

View File

@ -9,16 +9,16 @@
"preview": "astro preview", "preview": "astro preview",
"astro": "astro", "astro": "astro",
"i18n:extract": "astro-i18n extract", "i18n:extract": "astro-i18n extract",
"i18n:generate:pages": "./node_modules/.bin/astro-i18n generate:pages --purge", "i18n:generate:pages": "astro-i18n generate:pages --purge",
"i18n:generate:types": "./node_modules/.bin/astro-i18n generate:types", "i18n:generate:types": "astro-i18n generate:types",
"i18n:sync": "pnpm run i18n:generate:pages && pnpm run i18n:generate:types", "i18n:sync": "pnpm run i18n:generate:pages && pnpm run i18n:generate:types",
"clean:dist": "rm -rf dist", "clean:dist": "rm -rf dist",
"clean:node_modules": "rm -rf node_modules", "clean:node_modules": "rm -rf node_modules",
"ci": "pnpm install && pnpm run i18n:sync && pnpm run build" "ci": "pnpm install && pnpm run i18n:sync && pnpm run build"
}, },
"devDependencies": { "devDependencies": {
"@astrojs/svelte": "^6.0.2", "@astrojs/svelte": "^7.0.4",
"@astrojs/tailwind": "^5.1.2", "@astrojs/tailwind": "^5.1.5",
"@astropub/icons": "^0.2.0", "@astropub/icons": "^0.2.0",
"@types/color": "^4.2.0", "@types/color": "^4.2.0",
"@types/node": "^22.9.3", "@types/node": "^22.9.3",
@ -41,12 +41,12 @@
"typescript": "^5.7.2" "typescript": "^5.7.2"
}, },
"dependencies": { "dependencies": {
"@astrojs/mdx": "^3.1.9", "@astrojs/mdx": "^4.0.7",
"@astrojs/sitemap": "^3.2.1", "@astrojs/sitemap": "^3.2.1",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/commands": "^6.8.0", "@codemirror/commands": "^6.8.0",
"@codemirror/lang-json": "^6.0.1",
"@ddietr/codemirror-themes": "^1.4.4", "@ddietr/codemirror-themes": "^1.4.4",
"astro": "^4.16.14", "astro": "^5.1.8",
"astro-i18n": "^2.2.4", "astro-i18n": "^2.2.4",
"astro-pagefind": "^1.6.0", "astro-pagefind": "^1.6.0",
"astro-robots-txt": "^1.0.0", "astro-robots-txt": "^1.0.0",

1177
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -31,7 +31,7 @@
let request = getRequest(); let request = getRequest();
function getRequest() { function getRequest() {
return $statsRepo.getUserStats(user.id) return $statsRepo.getUserStats(user.uuid)
} }
</script> </script>
@ -46,5 +46,4 @@
{#if user.perms.includes("CHECK")} {#if user.perms.includes("CHECK")}
<p>{t("dashboard.stats.checked", {checked: data.acceptedSchematics})}</p> <p>{t("dashboard.stats.checked", {checked: data.acceptedSchematics})}</p>
{/if} {/if}
{:catch error}
{/await} {/await}

View File

@ -56,7 +56,7 @@
</div> </div>
<div> <div>
<h1 class="text-4xl font-bold">{t("dashboard.title", {name: user.name})}</h1> <h1 class="text-4xl font-bold">{t("dashboard.title", {name: user.name})}</h1>
<p>{t("dashboard.rank", {rank: t("home.prefix." + user.prefix)})}</p> <p>{t("dashboard.rank", {rank: t("home.prefix." + (user.prefix || "User"))})}</p>
<Statistics {user} /> <Statistics {user} />
</div> </div>
</div> </div>

View File

@ -22,7 +22,7 @@
import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js"; import { GLTFLoader } from "three/addons/loaders/GLTFLoader.js";
import { OrbitControls } from "three/addons/controls/OrbitControls.js"; import { OrbitControls } from "three/addons/controls/OrbitControls.js";
import {onDestroy, onMount} from "svelte"; import {onDestroy, onMount} from "svelte";
import { CollectionEntry } from "astro:content"; import type { CollectionEntry } from "astro:content";
interface Props { interface Props {
pub: CollectionEntry<"publics">; pub: CollectionEntry<"publics">;

View File

@ -5,7 +5,7 @@ description: Der Eventplan für das Jahr 2025.
created: 2025-01-20 created: 2025-01-20
tags: tags:
- event - event
image: ../../../images/jAHRESPLAN-gro-4.png image: ../../../images/jAHRESPLAN-gro-5.png
--- ---
2025 wird ein Jahr voller spannender Events. Hier findet ihr eine Übersicht über die geplanten Events. 2025 wird ein Jahr voller spannender Events. Hier findet ihr eine Übersicht über die geplanten Events.
@ -17,4 +17,6 @@ Highlights sind:
- **MiniWarGear Liga** - **MiniWarGear Liga**
- **SpaceShip** - **SpaceShip**
aber auch viele mehr. aber auch viele mehr.
Es wird auch kleinere Events geben, die nicht angekündigt sind.

View File

@ -2,8 +2,7 @@
"name": "SteamWarTeamserver", "name": "SteamWarTeamserver",
"description": "Dieses Plugin ermöglicht die einfache Einbindung deines Servers in SteamWar. Wie du deinen (Team-)Server über SteamWar erreichbar machen kannst findest du hier.", "description": "Dieses Plugin ermöglicht die einfache Einbindung deines Servers in SteamWar. Wie du deinen (Team-)Server über SteamWar erreichbar machen kannst findest du hier.",
"url": { "url": {
"Info": "/teamserverintegration", "Info": "/teamserverintegration"
"Download": "https://steamwar.de/SteamWarTeamserver"
}, },
"sourceUrl": "https://steamwar.de/devlabs/SteamWar/SteamWarBungeeTeamserver" "sourceUrl": "https://git.steamwar.de/SteamWar/SteamWarBungeeTeamserver"
} }

View File

@ -41,7 +41,9 @@
"Dev": "Developer", "Dev": "Developer",
"Mod": "Moderator", "Mod": "Moderator",
"Sup": "Supporter", "Sup": "Supporter",
"Arch": "Architekt" "Arch": "Architekt",
"User": "Spieler",
"YT": "YouTuber"
} }
}, },
"status": { "status": {

View File

@ -62,7 +62,9 @@
"Dev": "Developer", "Dev": "Developer",
"Mod": "Moderator", "Mod": "Moderator",
"Sup": "Supporter", "Sup": "Supporter",
"Arch": "Builder" "Arch": "Builder",
"User": "User",
"YT": "YouTuber"
} }
}, },
"footer": { "footer": {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -3,7 +3,7 @@ import icon from "../images/logo.png";
import {getImage} from "astro:assets"; import {getImage} from "astro:assets";
import {astroI18n} from "astro-i18n"; import {astroI18n} from "astro-i18n";
import {SEO} from "astro-seo"; import {SEO} from "astro-seo";
import {ViewTransitions} from "astro:transitions"; import {ClientRouter} from "astro:transitions";
const {title, description, clientSideRouter = true} = Astro.props.frontmatter || Astro.props; const {title, description, clientSideRouter = true} = Astro.props.frontmatter || Astro.props;
import "../../public/fonts/roboto/roboto.css"; import "../../public/fonts/roboto/roboto.css";
@ -40,7 +40,7 @@ if (localStorage["theme-mode"] === "light" || (!("theme-mode" in localStorage) &
<slot name="head"/> <slot name="head"/>
{clientSideRouter && <ViewTransitions/>} {clientSideRouter && <ClientRouter/>}
</head> </head>
<body class="dark:bg-zinc-800"> <body class="dark:bg-zinc-800">
<slot/> <slot/>