From 5e77a77c2efc208bd2d22d566088af2b299455ac Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 13 Nov 2018 23:33:30 +0900 Subject: [PATCH] [Client] Some optimizations --- .../app/common/views/components/index.ts | 12 ----- .../app/common/views/components/timer.vue | 49 ------------------- .../app/desktop/views/components/settings.vue | 17 ++++--- .../app/mobile/views/pages/settings.vue | 17 ++++--- 4 files changed, 22 insertions(+), 73 deletions(-) delete mode 100644 src/client/app/common/views/components/timer.vue diff --git a/src/client/app/common/views/components/index.ts b/src/client/app/common/views/components/index.ts index fa497cc60..eb2bc5aef 100644 --- a/src/client/app/common/views/components/index.ts +++ b/src/client/app/common/views/components/index.ts @@ -1,13 +1,8 @@ import Vue from 'vue'; import followButton from './follow-button.vue'; -import muteAndBlock from './mute-and-block.vue'; import error from './error.vue'; -import apiSettings from './api-settings.vue'; -import passwordSettings from './password-settings.vue'; -import profileEditor from './profile-editor.vue'; import noteSkeleton from './note-skeleton.vue'; -import theme from './theme.vue'; import instance from './instance.vue'; import cwButton from './cw-button.vue'; import tagCloud from './tag-cloud.vue'; @@ -27,7 +22,6 @@ import pollEditor from './poll-editor.vue'; import reactionIcon from './reaction-icon.vue'; import reactionsViewer from './reactions-viewer.vue'; import time from './time.vue'; -import timer from './timer.vue'; import mediaList from './media-list.vue'; import uploader from './uploader.vue'; import streamIndicator from './stream-indicator.vue'; @@ -52,13 +46,8 @@ import formButton from './ui/form/button.vue'; import formRadio from './ui/form/radio.vue'; Vue.component('mk-follow-button', followButton); -Vue.component('mk-mute-and-block', muteAndBlock); Vue.component('mk-error', error); -Vue.component('mk-api-settings', apiSettings); -Vue.component('mk-password-settings', passwordSettings); -Vue.component('mk-profile-editor', profileEditor); Vue.component('mk-note-skeleton', noteSkeleton); -Vue.component('mk-theme', theme); Vue.component('mk-instance', instance); Vue.component('mk-cw-button', cwButton); Vue.component('mk-tag-cloud', tagCloud); @@ -78,7 +67,6 @@ Vue.component('mk-poll-editor', pollEditor); Vue.component('mk-reaction-icon', reactionIcon); Vue.component('mk-reactions-viewer', reactionsViewer); Vue.component('mk-time', time); -Vue.component('mk-timer', timer); Vue.component('mk-media-list', mediaList); Vue.component('mk-uploader', uploader); Vue.component('mk-stream-indicator', streamIndicator); diff --git a/src/client/app/common/views/components/timer.vue b/src/client/app/common/views/components/timer.vue deleted file mode 100644 index a3c4f01b7..000000000 --- a/src/client/app/common/views/components/timer.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 833de3f25..92ef3a389 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -15,7 +15,7 @@
- +
{{ $t('twitter') }}
@@ -36,7 +36,7 @@
{{ $t('theme') }}
- +
@@ -205,7 +205,7 @@
- +
@@ -218,7 +218,7 @@
{{ $t('password') }}
- +
@@ -237,7 +237,7 @@
- +
@@ -302,7 +302,12 @@ export default Vue.extend({ XApps, XSignins, XTags, - XDriveSettings: () => import('../../../common/views/components/drive-settings.vue') + XTheme: () => import('../../../common/views/components/theme.vue'), + XDriveSettings: () => import('../../../common/views/components/drive-settings.vue'), + XMuteAndBlock: () => import('../../../common/views/components/mute-and-block.vue'), + XPasswordSettings: () => import('../../../common/views/components/password-settings.vue'), + XProfileEditor: () => import('../../../common/views/components/profile-editor.vue'), + XApiSettings: () => import('../../../common/views/components/api-settings.vue'), }, props: { initialPage: { diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index 3006ae7db..65278540b 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -5,12 +5,12 @@
- +
{{ $t('theme') }}
- +
@@ -87,7 +87,7 @@ - +
{{ $t('sound') }}
@@ -140,12 +140,12 @@
- +
{{ $t('password') }}
- +
@@ -184,7 +184,12 @@ export default Vue.extend({ i18n: i18n('mobile/views/pages/settings.vue'), components: { - XDriveSettings: () => import('../../../common/views/components/drive-settings.vue') + XTheme: () => import('../../../common/views/components/theme.vue'), + XDriveSettings: () => import('../../../common/views/components/drive-settings.vue'), + XMuteAndBlock: () => import('../../../common/views/components/mute-and-block.vue'), + XPasswordSettings: () => import('../../../common/views/components/password-settings.vue'), + XProfileEditor: () => import('../../../common/views/components/profile-editor.vue'), + XApiSettings: () => import('../../../common/views/components/api-settings.vue'), }, data() {