From d79a1a4e0ef028ffcae68c847dfe55222aa4a69a Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 6 Sep 2020 18:38:09 +0900 Subject: [PATCH] wip --- src/client/components/autocomplete.vue | 2 +- .../components/deck/notifications-column.vue | 2 +- src/client/components/dialog.vue | 9 ++- src/client/components/media-image.vue | 2 +- src/client/components/menu.vue | 4 +- src/client/components/note.vue | 20 +++--- src/client/components/particle.vue | 70 +++++++++++-------- src/client/components/post-form.vue | 8 +-- .../components/reactions-viewer.reaction.vue | 2 +- src/client/components/sidebar.vue | 4 +- src/client/deck.vue | 2 +- src/client/default.vue | 2 +- src/client/directives/index.ts | 2 +- src/client/directives/particle.ts | 14 ++-- src/client/os.ts | 35 +++++++--- src/client/pages/index.welcome.entrance.vue | 4 +- src/client/pages/instance/federation.vue | 2 +- src/client/pages/instance/index.vue | 2 +- src/client/pages/instance/instance.vue | 6 +- src/client/pages/instance/settings.vue | 4 +- src/client/pages/instance/users.vue | 2 +- src/client/pages/messaging/index.vue | 2 +- .../pages/messaging/messaging-room.form.vue | 2 +- .../pages/my-antennas/index.antenna.vue | 2 +- src/client/pages/my-groups/group.vue | 4 +- src/client/pages/my-lists/list.vue | 2 +- src/client/pages/my-settings/api.vue | 2 +- src/client/pages/my-settings/index.vue | 2 +- src/client/pages/my-settings/reaction.vue | 4 +- src/client/pages/preferences/plugins.vue | 2 +- src/client/pages/share.vue | 2 +- src/client/pages/user/index.vue | 2 +- src/client/scripts/please-login.ts | 14 ++-- src/client/store.ts | 21 +----- src/client/widgets/notifications.vue | 2 +- src/client/widgets/welcome.vue | 4 +- 36 files changed, 135 insertions(+), 130 deletions(-) diff --git a/src/client/components/autocomplete.vue b/src/client/components/autocomplete.vue index 27a8fcdcb4..2ec6e8a3b9 100644 --- a/src/client/components/autocomplete.vue +++ b/src/client/components/autocomplete.vue @@ -376,7 +376,7 @@ export default defineComponent({ chooseUser() { this.close(); - const vm = this.$root.new(MkUserSelect, {}); + const vm = os.popup(MkUserSelect, {}); vm.$once('selected', user => { this.complete('user', user); }); diff --git a/src/client/components/deck/notifications-column.vue b/src/client/components/deck/notifications-column.vue index c6f6b2bbdb..a8ffbaa575 100644 --- a/src/client/components/deck/notifications-column.vue +++ b/src/client/components/deck/notifications-column.vue @@ -43,7 +43,7 @@ export default defineComponent({ icon: faCog, text: this.$t('notificationSetting'), action: async () => { - this.$root.new(await import('../notification-setting-window.vue'), { + os.popup(await import('../notification-setting-window.vue'), { includingTypes: this.column.includingTypes, }).$on('ok', async ({ includingTypes }) => { this.$set(this.column, 'includingTypes', includingTypes); diff --git a/src/client/components/dialog.vue b/src/client/components/dialog.vue index 52d9dea8b1..9aab76c730 100644 --- a/src/client/components/dialog.vue +++ b/src/client/components/dialog.vue @@ -1,5 +1,5 @@