refactor: ♻️ Rewrite state system to use Pinia for composer and auth

This commit is contained in:
Jesse Wierzbinski 2025-08-28 07:41:51 +02:00
parent a6db9e059d
commit b510782a30
No known key found for this signature in database
80 changed files with 999 additions and 1011 deletions

View file

@ -41,9 +41,9 @@ const element = ref<HTMLElement | null>(null);
const route = useRoute();
const uuid = route.params.uuid as string;
const note = useNote(client, uuid);
const note = useNote(uuid);
const noteId = computed(() => note.value?.id ?? null);
const context = useNoteContext(client, noteId);
const context = useNoteContext(noteId);
const loaded = computed(() => note.value !== null && context.value !== null);
// If ancestors changes, scroll down so that the initial note stays at the same place

View file

@ -39,7 +39,7 @@ definePageMeta({
],
});
const { account, isLoading } = useAccountFromAcct(client, username);
const { account, isLoading } = useAccountFromAcct(username);
const accountId = computed(() => account.value?.id ?? undefined);
useSeoMeta({