From 1e166490d9bd76cde3b0acaed8c678761b745e5e Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 8 Apr 2019 14:17:44 +0900 Subject: [PATCH] [Client] Better pagination Fix #4628 Close #4629 --- .../app/common/views/components/user-list.vue | 2 +- src/client/app/common/views/deck/deck.direct.vue | 4 ++-- .../app/common/views/deck/deck.favorites-column.vue | 4 ++-- .../app/common/views/deck/deck.hashtag-tl.vue | 4 ++-- src/client/app/common/views/deck/deck.list-tl.vue | 4 ++-- src/client/app/common/views/deck/deck.mentions.vue | 4 ++-- src/client/app/common/views/deck/deck.notes.vue | 13 +++++++------ .../app/common/views/deck/deck.search-column.vue | 2 +- src/client/app/common/views/deck/deck.tl.vue | 4 ++-- .../app/common/views/deck/deck.user-column.home.vue | 4 ++-- src/client/app/common/views/pages/followers.vue | 2 +- src/client/app/common/views/pages/following.vue | 2 +- src/client/app/desktop/views/components/notes.vue | 13 +++++++------ .../desktop/views/components/user-list-timeline.vue | 4 ++-- src/client/app/desktop/views/home/search.vue | 2 +- src/client/app/desktop/views/home/tag.vue | 2 +- src/client/app/desktop/views/home/timeline.core.vue | 4 ++-- .../app/desktop/views/home/user/user.timeline.vue | 4 ++-- src/client/app/mobile/views/components/notes.vue | 13 +++++++------ .../mobile/views/components/user-list-timeline.vue | 4 ++-- .../app/mobile/views/components/user-timeline.vue | 4 ++-- src/client/app/mobile/views/pages/home.timeline.vue | 4 ++-- src/client/app/mobile/views/pages/search.vue | 6 +++--- src/client/app/mobile/views/pages/tag.vue | 6 +++--- 24 files changed, 59 insertions(+), 56 deletions(-) diff --git a/src/client/app/common/views/components/user-list.vue b/src/client/app/common/views/components/user-list.vue index 4661e4894..b8f4d7d9d 100644 --- a/src/client/app/common/views/components/user-list.vue +++ b/src/client/app/common/views/components/user-list.vue @@ -50,7 +50,7 @@ export default Vue.extend({ fetchingMoreUsers: false, us: [], inited: false, - cursor: null + more: false }; }, diff --git a/src/client/app/common/views/deck/deck.direct.vue b/src/client/app/common/views/deck/deck.direct.vue index 2618363b1..29db5cb7f 100644 --- a/src/client/app/common/views/deck/deck.direct.vue +++ b/src/client/app/common/views/deck/deck.direct.vue @@ -28,12 +28,12 @@ export default Vue.extend({ notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + more: true }; } else { return { notes: notes, - cursor: null + more: false }; } }) diff --git a/src/client/app/common/views/deck/deck.favorites-column.vue b/src/client/app/common/views/deck/deck.favorites-column.vue index 238938594..526b998f8 100644 --- a/src/client/app/common/views/deck/deck.favorites-column.vue +++ b/src/client/app/common/views/deck/deck.favorites-column.vue @@ -37,12 +37,12 @@ export default Vue.extend({ notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + more: true }; } else { return { notes: notes, - cursor: null + more: false }; } }) diff --git a/src/client/app/common/views/deck/deck.hashtag-tl.vue b/src/client/app/common/views/deck/deck.hashtag-tl.vue index b94267b74..6f89f6a23 100644 --- a/src/client/app/common/views/deck/deck.hashtag-tl.vue +++ b/src/client/app/common/views/deck/deck.hashtag-tl.vue @@ -41,12 +41,12 @@ export default Vue.extend({ notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + more: true }; } else { return { notes: notes, - cursor: null + more: false }; } }) diff --git a/src/client/app/common/views/deck/deck.list-tl.vue b/src/client/app/common/views/deck/deck.list-tl.vue index d1887990f..24080ad4e 100644 --- a/src/client/app/common/views/deck/deck.list-tl.vue +++ b/src/client/app/common/views/deck/deck.list-tl.vue @@ -41,12 +41,12 @@ export default Vue.extend({ notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + more: true }; } else { return { notes: notes, - cursor: null + more: false }; } }) diff --git a/src/client/app/common/views/deck/deck.mentions.vue b/src/client/app/common/views/deck/deck.mentions.vue index 1efd77822..153b4cd05 100644 --- a/src/client/app/common/views/deck/deck.mentions.vue +++ b/src/client/app/common/views/deck/deck.mentions.vue @@ -27,12 +27,12 @@ export default Vue.extend({ notes.pop(); return { notes: notes, - cursor: notes[notes.length - 1].id + more: true }; } else { return { notes: notes, - cursor: null + more: false }; } }) diff --git a/src/client/app/common/views/deck/deck.notes.vue b/src/client/app/common/views/deck/deck.notes.vue index f94eb8fd3..26af7005f 100644 --- a/src/client/app/common/views/deck/deck.notes.vue +++ b/src/client/app/common/views/deck/deck.notes.vue @@ -26,7 +26,7 @@ -