From c399e3151e2ab5604dfcc4a0a8d1e3f89957079f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 5 Sep 2020 11:14:42 +0900 Subject: [PATCH] wip --- src/client/components/deck/antenna-column.vue | 2 +- src/client/components/deck/column.vue | 2 +- src/client/components/deck/list-column.vue | 2 +- src/client/components/deck/tl-column.vue | 2 +- src/client/components/dialog.vue | 30 ++++------- src/client/components/drive.file.vue | 6 +-- src/client/components/drive.folder.vue | 10 ++-- src/client/components/drive.vue | 16 +++--- src/client/components/follow-button.vue | 2 +- src/client/components/note.vue | 24 ++++----- src/client/components/notification.vue | 2 +- src/client/components/page/page.button.vue | 4 +- src/client/components/page/page.post.vue | 4 +- src/client/components/page/page.vue | 4 +- src/client/components/post-form-attaches.vue | 2 +- src/client/components/post-form.vue | 2 +- src/client/components/sidebar.vue | 6 +-- src/client/components/signin.vue | 6 +-- src/client/components/signup.vue | 2 +- src/client/components/ui/input.vue | 5 +- src/client/components/user-menu.vue | 34 ++++++------- src/client/deck.vue | 4 +- src/client/default.vue | 4 +- src/client/pages/channel-editor.vue | 4 +- src/client/pages/follow.vue | 14 +++--- src/client/pages/index.welcome.setup.vue | 2 +- src/client/pages/instance/announcements.vue | 10 ++-- src/client/pages/instance/emojis.vue | 12 ++--- src/client/pages/instance/files.vue | 4 +- src/client/pages/instance/index.vue | 2 +- src/client/pages/instance/instance.vue | 4 +- src/client/pages/instance/queue.vue | 4 +- src/client/pages/instance/relays.vue | 4 +- src/client/pages/instance/settings.vue | 16 +++--- src/client/pages/instance/users.user.vue | 18 +++---- src/client/pages/instance/users.vue | 12 ++--- src/client/pages/messaging/index.vue | 4 +- .../pages/messaging/messaging-room.form.vue | 6 +-- src/client/pages/messaging/messaging-room.vue | 2 +- .../pages/my-antennas/index.antenna.vue | 6 +-- src/client/pages/my-groups/group.vue | 14 +++--- src/client/pages/my-groups/index.vue | 6 +-- src/client/pages/my-lists/index.vue | 4 +- src/client/pages/my-lists/list.vue | 10 ++-- src/client/pages/my-settings/2fa.vue | 18 +++---- src/client/pages/my-settings/api.vue | 4 +- src/client/pages/my-settings/drive.vue | 2 +- .../pages/my-settings/import-export.vue | 12 ++--- src/client/pages/my-settings/index.vue | 2 +- src/client/pages/my-settings/profile.vue | 4 +- src/client/pages/my-settings/security.vue | 14 +++--- .../page-editor/els/page-editor.el.if.vue | 2 +- .../els/page-editor.el.section.vue | 4 +- .../page-editor/page-editor.script-block.vue | 2 +- src/client/pages/page-editor/page-editor.vue | 18 +++---- src/client/pages/page.vue | 2 +- src/client/pages/preferences/index.vue | 4 +- src/client/pages/preferences/plugins.vue | 12 ++--- src/client/pages/preferences/sidebar.vue | 2 +- src/client/pages/preferences/theme.vue | 12 ++--- src/client/pages/room/room.vue | 10 ++-- src/client/pages/scratchpad.vue | 6 +-- src/client/pages/share.vue | 2 +- src/client/pages/test.vue | 50 +++++++++++++++++++ src/client/pages/theme-editor.vue | 12 ++--- src/client/root.vue | 26 ++++++++-- src/client/router.ts | 1 + src/client/scripts/aiscript/api.ts | 4 +- src/client/scripts/hpml/evaluator.ts | 2 +- src/client/scripts/please-login.ts | 2 +- src/client/scripts/search.ts | 4 +- src/client/scripts/select-file.ts | 4 +- src/client/store.ts | 13 ++++- 73 files changed, 329 insertions(+), 254 deletions(-) create mode 100644 src/client/pages/test.vue diff --git a/src/client/components/deck/antenna-column.vue b/src/client/components/deck/antenna-column.vue index 891f59e37d..3196f50a03 100644 --- a/src/client/components/deck/antenna-column.vue +++ b/src/client/components/deck/antenna-column.vue @@ -60,7 +60,7 @@ export default defineComponent({ methods: { async setAntenna() { const antennas = await this.$root.api('antennas/list'); - const { canceled, result: antenna } = await this.$root.dialog({ + const { canceled, result: antenna } = await this.$root.showDialog({ title: this.$t('selectAntenna'), type: null, select: { diff --git a/src/client/components/deck/column.vue b/src/client/components/deck/column.vue index 39b50912e2..e91b4d1169 100644 --- a/src/client/components/deck/column.vue +++ b/src/client/components/deck/column.vue @@ -137,7 +137,7 @@ export default defineComponent({ icon: faPencilAlt, text: this.$t('rename'), action: () => { - this.$root.dialog({ + this.$root.showDialog({ title: this.$t('rename'), input: { default: this.column.name, diff --git a/src/client/components/deck/list-column.vue b/src/client/components/deck/list-column.vue index 9dfceb4c78..9353f5b1b1 100644 --- a/src/client/components/deck/list-column.vue +++ b/src/client/components/deck/list-column.vue @@ -60,7 +60,7 @@ export default defineComponent({ methods: { async setList() { const lists = await this.$root.api('users/lists/list'); - const { canceled, result: list } = await this.$root.dialog({ + const { canceled, result: list } = await this.$root.showDialog({ title: this.$t('selectList'), type: null, select: { diff --git a/src/client/components/deck/tl-column.vue b/src/client/components/deck/tl-column.vue index 8ef379b09d..9500b7d5b6 100644 --- a/src/client/components/deck/tl-column.vue +++ b/src/client/components/deck/tl-column.vue @@ -78,7 +78,7 @@ export default defineComponent({ methods: { async setType() { - const { canceled, result: src } = await this.$root.dialog({ + const { canceled, result: src } = await this.$root.showDialog({ title: this.$t('timeline'), type: null, select: { diff --git a/src/client/components/dialog.vue b/src/client/components/dialog.vue index 6b4f1cfb82..e250b58472 100644 --- a/src/client/components/dialog.vue +++ b/src/client/components/dialog.vue @@ -1,10 +1,10 @@