mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ New notifications view, refactor all composables
This commit is contained in:
parent
7b8a02d49e
commit
e0c41bb9b5
23 changed files with 641 additions and 281 deletions
|
|
@ -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>
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue