From b3ed29ff02fa3db46a1ec7b5856f2c9131b8fa33 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 18 Mar 2022 13:32:36 +0200 Subject: made withLoadMore work... sorta --- src/boot/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/boot/routes.js') diff --git a/src/boot/routes.js b/src/boot/routes.js index 1bc1f9f7..e5bdd1f0 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -69,7 +69,7 @@ export default (store) => { { name: 'search', path: '/search', component: Search, props: (route) => ({ query: route.query.query }) }, { name: 'who-to-follow', path: '/who-to-follow', component: WhoToFollow, beforeEnter: validateAuthenticatedRoute }, { name: 'about', path: '/about', component: About }, - { name: 'user-profile', path: '/(users/)?:name', component: UserProfile } + { name: 'user-profile', path: '/:_(users)?/:name', component: UserProfile } ] if (store.state.instance.pleromaChatMessagesAvailable) { -- cgit v1.2.3-70-g09d2 From 6b5791fda6fdf2efe39e1c05e3340a5cf970f312 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 22 Mar 2022 19:20:12 +0200 Subject: fix other weird route --- src/boot/routes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/boot/routes.js') diff --git a/src/boot/routes.js b/src/boot/routes.js index e5bdd1f0..905ffe41 100644 --- a/src/boot/routes.js +++ b/src/boot/routes.js @@ -46,7 +46,7 @@ export default (store) => { { name: 'bookmarks', path: '/bookmarks', component: BookmarkTimeline }, { name: 'conversation', path: '/notice/:id', component: ConversationPage, meta: { dontScroll: true } }, { name: 'remote-user-profile-acct', - path: '/remote-users/(@?):username([^/@]+)@:hostname([^/@]+)', + path: '/remote-users/:_(@)?:username([^/@]+)@:hostname([^/@]+)', component: RemoteUserResolver, beforeEnter: validateAuthenticatedRoute }, -- cgit v1.2.3-70-g09d2 From 9b5fe24ca455af5420a326e78878ca7b35b5bf66 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 7 Jun 2022 16:52:03 +0300 Subject: restore notifications page, fix z-index issues --- src/App.vue | 2 +- src/boot/routes.js | 2 +- src/components/notifications/notifications.js | 4 +++- src/components/notifications/notifications.vue | 2 +- src/components/timeline/timeline.scss | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) (limited to 'src/boot/routes.js') diff --git a/src/App.vue b/src/App.vue index 5b448972..21f6f686 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,7 +9,7 @@ /> - +
{ { name: 'password-reset', path: '/password-reset', component: PasswordReset, props: true }, { name: 'registration-token', path: '/registration/:token', component: Registration }, { name: 'friend-requests', path: '/friend-requests', component: FollowRequests, beforeEnter: validateAuthenticatedRoute }, - { name: 'notifications', path: '/:username/notifications', component: Notifications, beforeEnter: validateAuthenticatedRoute }, + { name: 'notifications', path: '/:username/notifications', component: Notifications, props: () => ({ disableTeleport: true }), beforeEnter: validateAuthenticatedRoute }, { name: 'login', path: '/login', component: AuthForm }, { name: 'shout-panel', path: '/shout-panel', component: ShoutPanel, props: () => ({ floating: false }) }, { name: 'oauth-callback', path: '/oauth-callback', component: OAuthCallback, props: (route) => ({ code: route.query.code }) }, diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index fb2579a5..82aa1489 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -27,7 +27,9 @@ const Notifications = { // meant for "Interactions" timeline minimalMode: Boolean, // Custom filter mode, an array of strings, possible values 'mention', 'repeat', 'like', 'follow', used to override global filter for use in "Interactions" timeline - filterMode: Array + filterMode: Array, + // Disable teleporting (i.e. for /users/user/notifications) + disableTeleport: Boolean }, data () { return { diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 794ef51d..b46c06aa 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -1,5 +1,5 @@