From 7f0ec89a1ab383beed78d9de287c99e977dc6db8 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 9 Jan 2022 21:35:35 +0900 Subject: [PATCH] wip: migrate paging components to composition api #7681 --- .../client/src/components/form/pagination.vue | 44 --- packages/client/src/components/notes.vue | 133 +++------ .../client/src/components/notifications.vue | 198 +++++--------- .../client/src/components/ui/pagination.vue | 258 ++++++++++++++++-- packages/client/src/components/user-list.vue | 104 ++----- .../client/src/pages/settings/security.vue | 8 +- .../client/src/pages/user/index.timeline.vue | 60 ++-- packages/client/src/scripts/paging.ts | 246 ----------------- 8 files changed, 374 insertions(+), 677 deletions(-) delete mode 100644 packages/client/src/components/form/pagination.vue delete mode 100644 packages/client/src/scripts/paging.ts diff --git a/packages/client/src/components/form/pagination.vue b/packages/client/src/components/form/pagination.vue deleted file mode 100644 index 3d3b40a78..000000000 --- a/packages/client/src/components/form/pagination.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - diff --git a/packages/client/src/components/notes.vue b/packages/client/src/components/notes.vue index 4136f72b1..82703d71c 100644 --- a/packages/client/src/components/notes.vue +++ b/packages/client/src/components/notes.vue @@ -1,114 +1,49 @@ - diff --git a/packages/client/src/components/user-list.vue b/packages/client/src/components/user-list.vue index 2148dab60..3e273721c 100644 --- a/packages/client/src/components/user-list.vue +++ b/packages/client/src/components/user-list.vue @@ -1,91 +1,39 @@ - diff --git a/packages/client/src/pages/settings/security.vue b/packages/client/src/pages/settings/security.vue index 82a21d5b1..03f2d6300 100644 --- a/packages/client/src/pages/settings/security.vue +++ b/packages/client/src/pages/settings/security.vue @@ -12,7 +12,7 @@ - + - + @@ -42,7 +42,7 @@ import { defineComponent } from 'vue'; import FormSection from '@/components/form/section.vue'; import FormSlot from '@/components/form/slot.vue'; import FormButton from '@/components/ui/button.vue'; -import FormPagination from '@/components/form/pagination.vue'; +import MkPagination from '@/components/ui/pagination.vue'; import X2fa from './2fa.vue'; import * as os from '@/os'; import * as symbols from '@/symbols'; @@ -51,7 +51,7 @@ export default defineComponent({ components: { FormSection, FormButton, - FormPagination, + MkPagination, FormSlot, X2fa, }, diff --git a/packages/client/src/pages/user/index.timeline.vue b/packages/client/src/pages/user/index.timeline.vue index 2ffa49697..7396a76ef 100644 --- a/packages/client/src/pages/user/index.timeline.vue +++ b/packages/client/src/pages/user/index.timeline.vue @@ -1,60 +1,36 @@ -