From 4c9b4cb80d221bf2316cf0c7133813c30ffb377b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 25 Apr 2018 13:48:02 +0900 Subject: wip --- src/client/app/common/scripts/streaming/user-list.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/client/app/common/scripts/streaming/user-list.ts (limited to 'src/client/app/common') diff --git a/src/client/app/common/scripts/streaming/user-list.ts b/src/client/app/common/scripts/streaming/user-list.ts new file mode 100644 index 0000000000..30a52b98dd --- /dev/null +++ b/src/client/app/common/scripts/streaming/user-list.ts @@ -0,0 +1,17 @@ +import Stream from './stream'; +import MiOS from '../../mios'; + +export class UserListStream extends Stream { + constructor(os: MiOS, me, listId) { + super(os, 'user-list', { + i: me.token, + listId + }); + + (this as any).on('_connected_', () => { + this.send({ + i: me.token + }); + }); + } +} -- cgit v1.2.3-freya From 0616d29fd5db7238278cf5118e7fd1bd1c402ea4 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 25 Apr 2018 23:08:40 +0900 Subject: wip --- src/client/app/common/mios.ts | 1 + src/client/app/desktop/views/components/timeline.vue | 16 +++++++++++----- .../app/desktop/views/components/ui.header.account.vue | 5 ++++- .../app/desktop/views/components/user-lists-window.vue | 7 +++++-- 4 files changed, 21 insertions(+), 8 deletions(-) (limited to 'src/client/app/common') diff --git a/src/client/app/common/mios.ts b/src/client/app/common/mios.ts index 463f763888..4e471cf96f 100644 --- a/src/client/app/common/mios.ts +++ b/src/client/app/common/mios.ts @@ -88,6 +88,7 @@ export default class MiOS extends EventEmitter { propsData: props }).$mount(); document.body.appendChild(w.$el); + return w; } /** diff --git a/src/client/app/desktop/views/components/timeline.vue b/src/client/app/desktop/views/components/timeline.vue index a798e5d7b4..be714d7bf9 100644 --- a/src/client/app/desktop/views/components/timeline.vue +++ b/src/client/app/desktop/views/components/timeline.vue @@ -4,18 +4,20 @@ %fa:home% ホーム %fa:R comments% ローカル %fa:globe% グローバル - - + %fa:list% {{ list.title }} + +