From 1c6764031d15fbb101ca4c00e8961a3c85483c41 Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 20 Dec 2023 18:48:30 +0900 Subject: [PATCH] feat: ability to adjust pull distance for reloading timelines --- locales/en-US.yml | 2 + locales/ja-JP.yml | 2 + .../client/src/components/MkNotifications.vue | 50 ++++++++++++++++++- .../client/src/components/MkPullToRefresh.vue | 16 +----- packages/client/src/components/MkTimeline.vue | 9 ++++ .../client/src/pages/settings/general.vue | 31 ++++++++++-- packages/client/src/store.ts | 8 +++ 7 files changed, 99 insertions(+), 19 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index beaabfd6d..f1ca55800 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -2196,3 +2196,5 @@ _iconSets: duotone: "Duotone" moreUrls: "Pinned pages" moreUrlsDescription: "Enter the pages you want to pin to the help menu in the lower left corner using this notation:\n\"Display name\": https://example.com/" +enablePullToRefresh: "Enable \"Pull down to refresh\"" +pullToRefreshThreshold: "Pull distance for reloading" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 1d1717827..140d664e6 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2038,3 +2038,5 @@ releaseToReload: "離して再読み込み" reloading: "読み込み中" pullDownToReload: "下に引っ張って再読み込み" enableTimelineStreaming: "タイムラインを自動で更新する" +enablePullToRefresh: "「下に引っ張って再読み込み」を有効にする" +pullToRefreshThreshold: "再読み込みするために引っ張る距離" diff --git a/packages/client/src/components/MkNotifications.vue b/packages/client/src/components/MkNotifications.vue index 7b05cc00a..33e78881a 100644 --- a/packages/client/src/components/MkNotifications.vue +++ b/packages/client/src/components/MkNotifications.vue @@ -1,5 +1,8 @@