From e159f1560018361de573c182b085c5aa12dc7840 Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 29 Dec 2021 22:13:09 +0900 Subject: [PATCH] =?UTF-8?q?enhance:=20pizzax=E3=81=A7streaming=E3=81=AEuse?= =?UTF-8?q?r=20storage=20update=E3=82=A4=E3=83=99=E3=83=B3=E3=83=88?= =?UTF-8?q?=E3=82=92=E7=9B=A3=E8=A6=96=E3=81=97=E3=81=A6=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=20(#8095)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * wip * wip? * ? * streamingのuser storage updateイベントを監視して更新 * 必要な時以外はストレージを更新しない * fix? * wip * fix * fix --- packages/client/src/components/drive.vue | 3 ++- .../client/src/components/follow-button.vue | 3 ++- .../client/src/components/note-detailed.vue | 3 ++- packages/client/src/components/note.vue | 3 ++- .../client/src/components/notification.vue | 5 +++-- .../client/src/components/notifications.vue | 5 +++-- packages/client/src/components/post-form.vue | 4 ++-- .../client/src/components/taskmanager.vue | 9 ++++---- packages/client/src/components/timeline.vue | 21 ++++++++++--------- packages/client/src/init.ts | 3 ++- packages/client/src/os.ts | 2 -- packages/client/src/pages/admin/metrics.vue | 5 +++-- packages/client/src/pages/admin/overview.vue | 3 ++- packages/client/src/pages/admin/queue.vue | 3 ++- packages/client/src/pages/messaging/index.vue | 3 ++- .../pages/messaging/messaging-room.form.vue | 3 ++- .../src/pages/messaging/messaging-room.vue | 3 ++- packages/client/src/pages/reversi/game.vue | 3 ++- packages/client/src/pages/reversi/index.vue | 3 ++- packages/client/src/pizzax.ts | 16 +++++++++++++- packages/client/src/scripts/select-file.ts | 3 ++- packages/client/src/stream.ts | 6 ++++++ packages/client/src/ui/_common_/common.vue | 3 ++- .../src/ui/_common_/stream-indicator.vue | 7 ++++--- packages/client/src/ui/chat/note.vue | 3 ++- packages/client/src/ui/chat/pages/channel.vue | 3 ++- .../client/src/ui/chat/pages/timeline.vue | 11 +++++----- packages/client/src/ui/chat/post-form.vue | 3 ++- packages/client/src/widgets/job-queue.vue | 3 ++- packages/client/src/widgets/photos.vue | 3 ++- .../src/widgets/server-metric/index.vue | 3 ++- 31 files changed, 98 insertions(+), 53 deletions(-) create mode 100644 packages/client/src/stream.ts diff --git a/packages/client/src/components/drive.vue b/packages/client/src/components/drive.vue index 46bcd4255..f8d3d810b 100644 --- a/packages/client/src/components/drive.vue +++ b/packages/client/src/components/drive.vue @@ -53,6 +53,7 @@ import XFolder from './drive.folder.vue'; import XFile from './drive.file.vue'; import MkButton from './ui/button.vue'; import * as os from '@/os'; +import { stream } from '@/stream'; export default defineComponent({ components: { @@ -140,7 +141,7 @@ export default defineComponent({ }); } - this.connection = markRaw(os.stream.useChannel('drive')); + this.connection = markRaw(stream.useChannel('drive')); this.connection.on('fileCreated', this.onStreamDriveFileCreated); this.connection.on('fileUpdated', this.onStreamDriveFileUpdated); diff --git a/packages/client/src/components/follow-button.vue b/packages/client/src/components/follow-button.vue index 713626191..b16b22f26 100644 --- a/packages/client/src/components/follow-button.vue +++ b/packages/client/src/components/follow-button.vue @@ -30,6 +30,7 @@