mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 19:49:16 +01:00
refactor: ♻️ Rewrite state system to use Pinia for composer and auth
This commit is contained in:
parent
a6db9e059d
commit
b510782a30
80 changed files with 999 additions and 1011 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ definePageMeta({
|
|||
],
|
||||
});
|
||||
|
||||
const { account, isLoading } = useAccountFromAcct(client, username);
|
||||
const { account, isLoading } = useAccountFromAcct(username);
|
||||
const accountId = computed(() => account.value?.id ?? undefined);
|
||||
|
||||
useSeoMeta({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue