feat: New notifications view, refactor all composables

This commit is contained in:
Jesse Wierzbinski 2024-04-26 15:28:12 -10:00
parent 7b8a02d49e
commit e0c41bb9b5
No known key found for this signature in database
23 changed files with 641 additions and 281 deletions

View file

@ -10,14 +10,14 @@
import { useRoute } from "vue-router";
const route = useRoute();
const client = await useMegalodon();
const client = useMegalodon();
const uuid = route.params.uuid as string;
const note = await useNote(client, uuid);
const note = useNote(client, uuid);
useServerSeoMeta({
title: note?.account.display_name,
description: note?.content,
ogImage: note?.media_attachments[0]?.preview_url,
title: note.value?.account.display_name,
description: note.value?.content,
ogImage: note.value?.media_attachments[0]?.preview_url,
});
</script>

View file

@ -35,7 +35,7 @@ const { width } = useWindowSize();
const isMobile = computed(() => width.value < 1024);
const route = useRoute();
const client = await useMegalodon(true);
const client = useMegalodon(undefined, true);
const username = (route.params.username as string).replace("@", "");
const account: Ref<Account | null> = ref(null);