diff --git a/src/client/app/common/views/components/index.ts b/src/client/app/common/views/components/index.ts
index 30c38ff6c..ace9eaf44 100644
--- a/src/client/app/common/views/components/index.ts
+++ b/src/client/app/common/views/components/index.ts
@@ -27,9 +27,6 @@ import uploader from './uploader.vue';
import streamIndicator from './stream-indicator.vue';
import ellipsis from './ellipsis.vue';
import urlPreview from './url-preview.vue';
-import twitterSetting from './twitter-setting.vue';
-import githubSetting from './github-setting.vue';
-import discordSetting from './discord-setting.vue';
import fileTypeIcon from './file-type-icon.vue';
import emoji from './emoji.vue';
import welcomeTimeline from './welcome-timeline.vue';
@@ -73,9 +70,6 @@ Vue.component('mk-uploader', uploader);
Vue.component('mk-stream-indicator', streamIndicator);
Vue.component('mk-ellipsis', ellipsis);
Vue.component('mk-url-preview', urlPreview);
-Vue.component('mk-twitter-setting', twitterSetting);
-Vue.component('mk-github-setting', githubSetting);
-Vue.component('mk-discord-setting', discordSetting);
Vue.component('mk-file-type-icon', fileTypeIcon);
Vue.component('mk-emoji', emoji);
Vue.component('mk-welcome-timeline', welcomeTimeline);
diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue
index d7d20583e..1ef9e3ef3 100644
--- a/src/client/app/desktop/views/components/settings.vue
+++ b/src/client/app/desktop/views/components/settings.vue
@@ -20,21 +20,21 @@
{{ $t('twitter') }}
{{ $t('github') }}
{{ $t('discord') }}
@@ -299,6 +299,16 @@ import X2fa from './settings.2fa.vue';
import XApps from './settings.apps.vue';
import XSignins from './settings.signins.vue';
import XTags from './settings.tags.vue';
+import XTwitterSetting from '../../../common/views/components/twitter-setting.vue';
+import XGithubSetting from '../../../common/views/components/github-setting.vue';
+import XDiscordSetting from '../../../common/views/components/discord-setting.vue';
+import XTheme from '../../../common/views/components/theme.vue';
+import XDriveSettings from '../../../common/views/components/drive-settings.vue';
+import XMuteAndBlock from '../../../common/views/components/mute-and-block.vue';
+import XPasswordSettings from '../../../common/views/components/password-settings.vue';
+import XProfileEditor from '../../../common/views/components/profile-editor.vue';
+import XApiSettings from '../../../common/views/components/api-settings.vue';
+
import { url, langs, clientVersion as version } from '../../../config';
import checkForUpdate from '../../../common/scripts/check-for-update';
@@ -309,12 +319,15 @@ export default Vue.extend({
XApps,
XSignins,
XTags,
- XTheme: () => import('../../../common/views/components/theme.vue').then(m => m.default),
- XDriveSettings: () => import('../../../common/views/components/drive-settings.vue').then(m => m.default),
- XMuteAndBlock: () => import('../../../common/views/components/mute-and-block.vue').then(m => m.default),
- XPasswordSettings: () => import('../../../common/views/components/password-settings.vue').then(m => m.default),
- XProfileEditor: () => import('../../../common/views/components/profile-editor.vue').then(m => m.default),
- XApiSettings: () => import('../../../common/views/components/api-settings.vue').then(m => m.default),
+ XTwitterSetting,
+ XGithubSetting,
+ XDiscordSetting,
+ XTheme,
+ XDriveSettings,
+ XMuteAndBlock,
+ XPasswordSettings,
+ XProfileEditor,
+ XApiSettings,
},
props: {
initialPage: {
diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue
index 08cae29a3..0d61f39bb 100644
--- a/src/client/app/mobile/views/pages/settings.vue
+++ b/src/client/app/mobile/views/pages/settings.vue
@@ -192,17 +192,23 @@ import Vue from 'vue';
import i18n from '../../../i18n';
import { apiUrl, clientVersion as version, codename, langs } from '../../../config';
import checkForUpdate from '../../../common/scripts/check-for-update';
+import XTheme from '../../../common/views/components/theme.vue';
+import XDriveSettings from '../../../common/views/components/drive-settings.vue';
+import XMuteAndBlock from '../../../common/views/components/mute-and-block.vue';
+import XPasswordSettings from '../../../common/views/components/password-settings.vue';
+import XProfileEditor from '../../../common/views/components/profile-editor.vue';
+import XApiSettings from '../../../common/views/components/api-settings.vue';
export default Vue.extend({
i18n: i18n('mobile/views/pages/settings.vue'),
components: {
- XTheme: () => import('../../../common/views/components/theme.vue').then(m => m.default),
- XDriveSettings: () => import('../../../common/views/components/drive-settings.vue').then(m => m.default),
- XMuteAndBlock: () => import('../../../common/views/components/mute-and-block.vue').then(m => m.default),
- XPasswordSettings: () => import('../../../common/views/components/password-settings.vue').then(m => m.default),
- XProfileEditor: () => import('../../../common/views/components/profile-editor.vue').then(m => m.default),
- XApiSettings: () => import('../../../common/views/components/api-settings.vue').then(m => m.default),
+ XTheme,
+ XDriveSettings,
+ XMuteAndBlock,
+ XPasswordSettings,
+ XProfileEditor,
+ XApiSettings,
},
data() {