mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
feat: ✨ Add breadcrumb navigation to every page
This commit is contained in:
parent
6934a5758e
commit
232abac215
15 changed files with 119 additions and 44 deletions
|
|
@ -16,6 +16,11 @@ import Note from "~/components/notes/note.vue";
|
|||
|
||||
definePageMeta({
|
||||
layout: "app",
|
||||
breadcrumbs: [
|
||||
{
|
||||
text: "Note",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const element = ref<HTMLElement | null>(null);
|
||||
|
|
|
|||
|
|
@ -24,15 +24,20 @@ import AccountProfile from "~/components/profiles/profile.vue";
|
|||
import AccountTimeline from "~/components/timelines/account.vue";
|
||||
import TimelineScroller from "~/components/timelines/timeline-scroller.vue";
|
||||
|
||||
definePageMeta({
|
||||
layout: "app",
|
||||
});
|
||||
|
||||
const route = useRoute();
|
||||
const username = (route.params.username as string).startsWith("@")
|
||||
? (route.params.username as string).substring(1)
|
||||
: (route.params.username as string);
|
||||
|
||||
definePageMeta({
|
||||
layout: "app",
|
||||
breadcrumbs: [
|
||||
{
|
||||
text: "Profile",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
const { account, isLoading } = useAccountFromAcct(client, username);
|
||||
const accountId = computed(() => account.value?.id ?? undefined);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue