From cd79314f69eb7a082327828538413e46403e8303 Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 7 Sep 2020 14:19:53 +0900 Subject: [PATCH] wip --- src/client/components/autocomplete.vue | 2 +- .../components/deck/notifications-column.vue | 2 +- src/client/components/dialog.vue | 89 ++++++++---------- src/client/components/media-image.vue | 2 +- src/client/components/menu.vue | 70 ++++++-------- src/client/components/modal.vue | 89 +++++++++--------- src/client/components/note.vue | 16 ++-- src/client/components/notes.vue | 7 +- src/client/components/particle.vue | 5 +- src/client/components/post-form-dialog.vue | 94 ------------------- src/client/components/post-form.vue | 20 ++-- src/client/components/reaction-picker.vue | 22 +---- .../components/reactions-viewer.reaction.vue | 2 +- src/client/components/sidebar.vue | 4 +- src/client/deck.vue | 2 +- src/client/default.vue | 2 +- src/client/os.ts | 67 +++++++++---- 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/root.vue | 9 +- src/client/store.ts | 1 + src/client/widgets/notifications.vue | 2 +- src/client/widgets/welcome.vue | 4 +- 38 files changed, 240 insertions(+), 317 deletions(-) delete mode 100644 src/client/components/post-form-dialog.vue diff --git a/src/client/components/autocomplete.vue b/src/client/components/autocomplete.vue index 2ec6e8a3b9..1faa5aeb7d 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 = os.popup(MkUserSelect, {}); + const vm = os.modal(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 a8ffbaa575..94efe8a03f 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 () => { - os.popup(await import('../notification-setting-window.vue'), { + os.modal(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 8a2edf9da4..141d2ab7f7 100644 --- a/src/client/components/dialog.vue +++ b/src/client/components/dialog.vue @@ -1,46 +1,44 @@ - - diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue index 410ebb90cf..35739082f0 100644 --- a/src/client/components/post-form.vue +++ b/src/client/components/post-form.vue @@ -1,5 +1,5 @@