From 2e4ccd8d133a5b18256e4c612123e4c3192426a9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 21 Sep 2020 10:31:00 +0900 Subject: [PATCH] wip --- src/client/components/autocomplete.vue | 3 +- src/client/components/page/page.vue | 2 +- src/client/components/poll-editor.vue | 2 +- src/client/components/post-form.vue | 5 ++- src/client/components/sidebar.vue | 6 ++-- src/client/components/signin.vue | 2 +- src/client/components/signup.vue | 6 ++-- src/client/components/user-select.vue | 15 ++++---- src/client/os.ts | 36 ++++++++++++------- src/client/pages/instance/settings.vue | 7 ++-- src/client/pages/instance/users.vue | 7 ++-- src/client/pages/messaging/index.vue | 3 +- .../pages/my-antennas/index.antenna.vue | 3 +- src/client/pages/my-groups/group.vue | 5 ++- src/client/pages/my-lists/list.vue | 3 +- .../pages/page-editor/page-editor.blocks.vue | 2 +- src/client/pages/page-editor/page-editor.vue | 2 +- src/client/pages/room/room.vue | 2 +- src/client/pages/test.vue | 32 ++++++++++++++++- src/client/pages/theme-editor.vue | 2 +- src/client/pages/user/index.vue | 7 ++-- 21 files changed, 92 insertions(+), 60 deletions(-) diff --git a/src/client/components/autocomplete.vue b/src/client/components/autocomplete.vue index fce6500d29..e8915a9b41 100644 --- a/src/client/components/autocomplete.vue +++ b/src/client/components/autocomplete.vue @@ -33,7 +33,6 @@ import { emojilist } from '../../misc/emojilist'; import contains from '@/scripts/contains'; import { twemojiSvgBase } from '../../misc/twemoji-base'; import { getStaticImageUrl } from '@/scripts/get-static-image-url'; -import MkUserSelect from '@/components/user-select.vue'; import { acct } from '@/filters/user'; import * as os from '@/os'; @@ -378,7 +377,7 @@ export default defineComponent({ chooseUser() { this.close(); - os.modal(MkUserSelect, {}).then(user => { + os.selectUser().then(user => { this.complete('user', user); this.textarea.focus(); }); diff --git a/src/client/components/page/page.vue b/src/client/components/page/page.vue index 5cc9bd5a78..3fde9d4ba6 100644 --- a/src/client/components/page/page.vue +++ b/src/client/components/page/page.vue @@ -1,6 +1,6 @@ diff --git a/src/client/components/poll-editor.vue b/src/client/components/poll-editor.vue index 99449da0ac..d79465d5c8 100644 --- a/src/client/components/poll-editor.vue +++ b/src/client/components/poll-editor.vue @@ -5,7 +5,7 @@