From 39b377c06fd15b8402bb2015b347694ac01cda2f Mon Sep 17 00:00:00 2001 From: tamaina Date: Wed, 29 Dec 2021 17:40:39 +0900 Subject: [PATCH] wip --- 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/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 | 30 +++++++++---------- packages/client/src/scripts/select-file.ts | 3 +- packages/client/src/stream.ts | 6 ++++ .../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 +- 29 files changed, 94 insertions(+), 65 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 46bcd42558..f8d3d810b7 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 7136261914..b16b22f26f 100644 --- a/packages/client/src/components/follow-button.vue +++ b/packages/client/src/components/follow-button.vue @@ -30,6 +30,7 @@