feat: switch to spa

This commit is contained in:
2026-09-17 00:56:17 +02:00
parent 15590e5162
commit d104480188
23 changed files with 327 additions and 171 deletions
@@ -0,0 +1,20 @@
import { defineStore } from "pinia";
import { ref } from "vue";
// Lets a routed page hand AppHeader a title built from data only that page
// has fetched (e.g. "Noita Submissions — Semifinal", assembled from an API
// call keyed by the scopeId route param). Cleared on every navigation so a
// stale title never lingers while the next page is still loading.
export const usePageHeaderStore = defineStore("pageHeader", () => {
const title = ref("");
const setTitle = (value: string) => {
title.value = value;
};
const clear = () => {
title.value = "";
};
return { title, setTitle, clear };
});