diff --git a/README.md b/README.md index a4f9031e..d8f038cb 100644 --- a/README.md +++ b/README.md @@ -129,6 +129,7 @@ うまく動いていそうだったら本家に push されます +- 画面を下に引いてタイムラインなどを更新する機能を追加(Misskey から取り込み) - Docker ユーザーも PWA のアイコンを変更できるように - 以下の画像ファイルを追加して Docker コンテナを再起動し、ブラウザのキャッシュを削除して PWA をインストールしてみてください - `custom/assets/favicon.png` diff --git a/locales/en-US.yml b/locales/en-US.yml index efb021ca..0620cf58 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1165,6 +1165,10 @@ detectPostLanguage: "Automatically detect the language and show a translate butt vibrate: "Play vibrations" openServerInfo: "Show server information by clicking the server ticker on a post" iconSet: "Icon set" +releaseToReload: "Release to reload" +reloading: "Reloading" +pullDownToReload: "Pull down to reload" +enableTimelineStreaming: "Update timelines automatically" _sensitiveMediaDetection: description: "Reduces the effort of server moderation through automatically recognizing diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8b17ccb3..5ee78a86 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2032,3 +2032,7 @@ _iconSets: duotone: "2色" moreUrls: "固定するページ" moreUrlsDescription: "左下のヘルプメニューに固定したいページを以下の形式で、改行区切りで入力してください:\n\"表示名\": https://example.com/" +releaseToReload: "離して再読み込み" +reloading: "読み込み中" +pullDownToReload: "下に引っ張って再読み込み" +enableTimelineStreaming: "タイムラインを自動で更新する" diff --git a/packages/client/src/components/MkDrive.vue b/packages/client/src/components/MkDrive.vue index 1c0a46ab..d984c709 100644 --- a/packages/client/src/components/MkDrive.vue +++ b/packages/client/src/components/MkDrive.vue @@ -145,7 +145,7 @@ import XNavFolder from "@/components/MkDrive.navFolder.vue"; import XFolder from "@/components/MkDrive.folder.vue"; import XFile from "@/components/MkDrive.file.vue"; import * as os from "@/os"; -import { stream } from "@/stream"; +import { useStream } from "@/stream"; import { defaultStore } from "@/store"; import { i18n } from "@/i18n"; import { uploadFile, uploads } from "@/scripts/upload"; @@ -178,6 +178,8 @@ const emit = defineEmits<{ (ev: "open-folder", v: firefish.entities.DriveFolder): void; }>(); +const stream = useStream(); + const loadMoreFiles = ref>(); const fileInput = ref(); diff --git a/packages/client/src/components/MkFollowButton.vue b/packages/client/src/components/MkFollowButton.vue index 9a98c766..46599947 100644 --- a/packages/client/src/components/MkFollowButton.vue +++ b/packages/client/src/components/MkFollowButton.vue @@ -64,7 +64,7 @@ import { computed, onBeforeUnmount, onMounted, ref } from "vue"; import type * as firefish from "firefish-js"; import * as os from "@/os"; -import { stream } from "@/stream"; +import { useStream } from "@/stream"; import { i18n } from "@/i18n"; import { $i } from "@/reactiveAccount"; import { getUserMenu } from "@/scripts/get-user-menu"; @@ -73,6 +73,7 @@ import { vibrate } from "@/scripts/vibrate"; import icon from "@/scripts/icon"; const router = useRouter(); +const stream = useStream(); const emit = defineEmits(["refresh"]); const props = withDefaults( diff --git a/packages/client/src/components/MkNoteDetailed.vue b/packages/client/src/components/MkNoteDetailed.vue index 6704eee4..0bbae02e 100644 --- a/packages/client/src/components/MkNoteDetailed.vue +++ b/packages/client/src/components/MkNoteDetailed.vue @@ -186,7 +186,7 @@ import { i18n } from "@/i18n"; import { getNoteMenu } from "@/scripts/get-note-menu"; import { useNoteCapture } from "@/scripts/use-note-capture"; import { deepClone } from "@/scripts/clone"; -import { stream } from "@/stream"; +import { useStream } from "@/stream"; // import icon from "@/scripts/icon"; const props = defineProps<{ @@ -194,6 +194,8 @@ const props = defineProps<{ pinned?: boolean; }>(); +const stream = useStream(); + const tab = ref("replies"); const note = ref(deepClone(props.note)); diff --git a/packages/client/src/components/MkNotes.vue b/packages/client/src/components/MkNotes.vue index f64100a6..8ec25c64 100644 --- a/packages/client/src/components/MkNotes.vue +++ b/packages/client/src/components/MkNotes.vue @@ -1,5 +1,5 @@ - +
{