feat: add public notes by author page
Extract note-list fetching into usePublicNoteList composable, add /pub/:did route to view notes from a single author, and make author aliases clickable links in both the note list and note view.
This commit is contained in:
@@ -20,12 +20,18 @@ const routes: Array<RouteRecordRaw> = [
|
||||
component: () => import("@/views/PublicNoteListView.vue"),
|
||||
},
|
||||
{
|
||||
path: "/notes",
|
||||
path: "/pub",
|
||||
name: "PublicNoteListView",
|
||||
component: () => import("@/views/PublicNoteListView.vue"),
|
||||
},
|
||||
{
|
||||
path: "/notes/:did/:rkey",
|
||||
path: "/pub/:did",
|
||||
name: "PublicNoteListByDidView",
|
||||
props: true,
|
||||
component: () => import("@/views/PublicNoteListByDidView.vue"),
|
||||
},
|
||||
{
|
||||
path: "/pub/:did/:rkey",
|
||||
name: "PublicNoteView",
|
||||
props: true,
|
||||
component: () => import("@/views/PublicNoteView.vue"),
|
||||
|
||||
Reference in New Issue
Block a user