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",
"astro": "astro",
"i18n:extract": "astro-i18n extract",
"i18n:generate:pages": "./node_modules/.bin/astro-i18n generate:pages --purge",
"i18n:generate:types": "./node_modules/.bin/astro-i18n generate:types",
"i18n:generate:pages": "astro-i18n generate:pages --purge",
"i18n:generate:types": "astro-i18n generate:types",
"i18n:sync": "pnpm run i18n:generate:pages && pnpm run i18n:generate:types",
"clean:dist": "rm -rf dist",
"clean:node_modules": "rm -rf node_modules",
"ci": "pnpm install && pnpm run i18n:sync && pnpm run build"
},
"devDependencies": {
"@astrojs/svelte": "^6.0.2",
"@astrojs/tailwind": "^5.1.2",
"@astrojs/svelte": "^7.0.4",
"@astrojs/tailwind": "^5.1.5",
"@astropub/icons": "^0.2.0",
"@types/color": "^4.2.0",
"@types/node": "^22.9.3",
@ -41,12 +41,12 @@
"typescript": "^5.7.2"
},
"dependencies": {
"@astrojs/mdx": "^3.1.9",
"@astrojs/mdx": "^4.0.7",
"@astrojs/sitemap": "^3.2.1",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/commands": "^6.8.0",
"@codemirror/lang-json": "^6.0.1",
"@ddietr/codemirror-themes": "^1.4.4",
"astro": "^4.16.14",
"astro": "^5.1.8",
"astro-i18n": "^2.2.4",
"astro-pagefind": "^1.6.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();
function getRequest() {
return $statsRepo.getUserStats(user.id)
return $statsRepo.getUserStats(user.uuid)
}
</script>
@ -46,5 +46,4 @@
{#if user.perms.includes("CHECK")}
<p>{t("dashboard.stats.checked", {checked: data.acceptedSchematics})}</p>
{/if}
{:catch error}
{/await}

View File

@ -56,7 +56,7 @@
</div>
<div>
<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} />
</div>
</div>

View File

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

View File

@ -5,7 +5,7 @@ description: Der Eventplan für das Jahr 2025.
created: 2025-01-20
tags:
- 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.
@ -18,3 +18,5 @@ Highlights sind:
- **SpaceShip**
aber auch viele mehr.
Es wird auch kleinere Events geben, die nicht angekündigt sind.

View File

@ -2,8 +2,7 @@
"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.",
"url": {
"Info": "/teamserverintegration",
"Download": "https://steamwar.de/SteamWarTeamserver"
"Info": "/teamserverintegration"
},
"sourceUrl": "https://steamwar.de/devlabs/SteamWar/SteamWarBungeeTeamserver"
"sourceUrl": "https://git.steamwar.de/SteamWar/SteamWarBungeeTeamserver"
}

View File

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

View File

@ -62,7 +62,9 @@
"Dev": "Developer",
"Mod": "Moderator",
"Sup": "Supporter",
"Arch": "Builder"
"Arch": "Builder",
"User": "User",
"YT": "YouTuber"
}
},
"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 {astroI18n} from "astro-i18n";
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;
import "../../public/fonts/roboto/roboto.css";
@ -40,7 +40,7 @@ if (localStorage["theme-mode"] === "light" || (!("theme-mode" in localStorage) &
<slot name="head"/>
{clientSideRouter && <ViewTransitions/>}
{clientSideRouter && <ClientRouter/>}
</head>
<body class="dark:bg-zinc-800">
<slot/>