From f96d50bc07dea94784a9b47f9ebd0800c5c5bcca Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 13 Jan 2022 02:21:43 +0900 Subject: [PATCH] wip: refactor(client): migrate paging components to composition api --- packages/client/src/pages/follow-requests.vue | 88 +++++++++---------- packages/client/src/pages/preview.vue | 24 ++--- packages/client/src/pages/search.vue | 44 +++++----- packages/client/src/pages/tag.vue | 45 ++++------ packages/client/src/router.ts | 2 +- 5 files changed, 92 insertions(+), 111 deletions(-) diff --git a/packages/client/src/pages/follow-requests.vue b/packages/client/src/pages/follow-requests.vue index 54d695091..00dfa0656 100644 --- a/packages/client/src/pages/follow-requests.vue +++ b/packages/client/src/pages/follow-requests.vue @@ -1,6 +1,6 @@ - diff --git a/packages/client/src/pages/search.vue b/packages/client/src/pages/search.vue index 771d0b557..d25d5af14 100644 --- a/packages/client/src/pages/search.vue +++ b/packages/client/src/pages/search.vue @@ -6,31 +6,31 @@ - diff --git a/packages/client/src/pages/tag.vue b/packages/client/src/pages/tag.vue index a9497ae80..debee2606 100644 --- a/packages/client/src/pages/tag.vue +++ b/packages/client/src/pages/tag.vue @@ -4,37 +4,28 @@ - diff --git a/packages/client/src/router.ts b/packages/client/src/router.ts index 312374cdb..499afefbf 100644 --- a/packages/client/src/router.ts +++ b/packages/client/src/router.ts @@ -33,7 +33,7 @@ const defaultRoutes = [ { path: '/explore/tags/:tag', props: true, component: page('explore') }, { path: '/federation', component: page('federation') }, { path: '/emojis', component: page('emojis') }, - { path: '/search', component: page('search') }, + { path: '/search', component: page('search'), props: route => ({ query: route.query.q, channel: route.query.channel }) }, { path: '/pages', name: 'pages', component: page('pages') }, { path: '/pages/new', component: page('page-editor/page-editor') }, { path: '/pages/edit/:pageId', component: page('page-editor/page-editor'), props: route => ({ initPageId: route.params.pageId }) },