From c2bf638a8c27e5c9ef3d5435f56d2f0e330d8dae Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 22 Feb 2018 01:25:57 +0900 Subject: [PATCH] wip --- src/web/app/common/views/components/index.ts | 2 + .../app/desktop/scripts/password-dialog.ts | 11 ----- .../views/components/password-setting.vue | 37 --------------- .../{2fa-setting.vue => settings.2fa.vue} | 28 ++++++----- .../{mute-setting.vue => settings.mute.vue} | 4 +- .../views/components/settings.password.vue | 47 +++++++++++++++++++ .../app/desktop/views/components/settings.vue | 14 ++++-- .../views/components/widgets/access-log.vue | 1 + 8 files changed, 78 insertions(+), 66 deletions(-) delete mode 100644 src/web/app/desktop/scripts/password-dialog.ts delete mode 100644 src/web/app/desktop/views/components/password-setting.vue rename src/web/app/desktop/views/components/{2fa-setting.vue => settings.2fa.vue} (68%) rename src/web/app/desktop/views/components/{mute-setting.vue => settings.mute.vue} (92%) create mode 100644 src/web/app/desktop/views/components/settings.password.vue diff --git a/src/web/app/common/views/components/index.ts b/src/web/app/common/views/components/index.ts index a61022dbe..bde313910 100644 --- a/src/web/app/common/views/components/index.ts +++ b/src/web/app/common/views/components/index.ts @@ -17,6 +17,7 @@ import ellipsis from './ellipsis.vue'; import messaging from './messaging.vue'; import messagingRoom from './messaging-room.vue'; import urlPreview from './url-preview.vue'; +import twitterSetting from './twitter-setting.vue'; Vue.component('mk-signin', signin); Vue.component('mk-signup', signup); @@ -35,3 +36,4 @@ Vue.component('mk-ellipsis', ellipsis); Vue.component('mk-messaging', messaging); Vue.component('mk-messaging-room', messagingRoom); Vue.component('mk-url-preview', urlPreview); +Vue.component('mk-twitter-setting', twitterSetting); diff --git a/src/web/app/desktop/scripts/password-dialog.ts b/src/web/app/desktop/scripts/password-dialog.ts deleted file mode 100644 index 39d7f3db7..000000000 --- a/src/web/app/desktop/scripts/password-dialog.ts +++ /dev/null @@ -1,11 +0,0 @@ -import * as riot from 'riot'; - -export default (title, onOk, onCancel) => { - const dialog = document.body.appendChild(document.createElement('mk-input-dialog')); - return (riot as any).mount(dialog, { - title: title, - type: 'password', - onOk: onOk, - onCancel: onCancel - }); -}; diff --git a/src/web/app/desktop/views/components/password-setting.vue b/src/web/app/desktop/views/components/password-setting.vue deleted file mode 100644 index 883a494cc..000000000 --- a/src/web/app/desktop/views/components/password-setting.vue +++ /dev/null @@ -1,37 +0,0 @@ - - - diff --git a/src/web/app/desktop/views/components/2fa-setting.vue b/src/web/app/desktop/views/components/settings.2fa.vue similarity index 68% rename from src/web/app/desktop/views/components/2fa-setting.vue rename to src/web/app/desktop/views/components/settings.2fa.vue index 8271cbbf3..87783e799 100644 --- a/src/web/app/desktop/views/components/2fa-setting.vue +++ b/src/web/app/desktop/views/components/settings.2fa.vue @@ -1,16 +1,16 @@