mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 18:07:31 -07:00
[Client] Some optimizations
This commit is contained in:
parent
751420c0fc
commit
364cc3fd77
7 changed files with 17 additions and 11 deletions
|
@ -5,7 +5,6 @@ import muteAndBlock from './mute-and-block.vue';
|
||||||
import error from './error.vue';
|
import error from './error.vue';
|
||||||
import apiSettings from './api-settings.vue';
|
import apiSettings from './api-settings.vue';
|
||||||
import passwordSettings from './password-settings.vue';
|
import passwordSettings from './password-settings.vue';
|
||||||
import driveSettings from './drive-settings.vue';
|
|
||||||
import profileEditor from './profile-editor.vue';
|
import profileEditor from './profile-editor.vue';
|
||||||
import noteSkeleton from './note-skeleton.vue';
|
import noteSkeleton from './note-skeleton.vue';
|
||||||
import theme from './theme.vue';
|
import theme from './theme.vue';
|
||||||
|
@ -57,7 +56,6 @@ Vue.component('mk-mute-and-block', muteAndBlock);
|
||||||
Vue.component('mk-error', error);
|
Vue.component('mk-error', error);
|
||||||
Vue.component('mk-api-settings', apiSettings);
|
Vue.component('mk-api-settings', apiSettings);
|
||||||
Vue.component('mk-password-settings', passwordSettings);
|
Vue.component('mk-password-settings', passwordSettings);
|
||||||
Vue.component('mk-drive-settings', driveSettings);
|
|
||||||
Vue.component('mk-profile-editor', profileEditor);
|
Vue.component('mk-profile-editor', profileEditor);
|
||||||
Vue.component('mk-note-skeleton', noteSkeleton);
|
Vue.component('mk-note-skeleton', noteSkeleton);
|
||||||
Vue.component('mk-theme', theme);
|
Vue.component('mk-theme', theme);
|
||||||
|
|
|
@ -194,7 +194,7 @@
|
||||||
</ui-card>
|
</ui-card>
|
||||||
|
|
||||||
<div class="drive" v-if="page == 'drive'">
|
<div class="drive" v-if="page == 'drive'">
|
||||||
<mk-drive-settings/>
|
<x-drive-settings/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ui-card class="hashtags" v-show="page == 'hashtags'">
|
<ui-card class="hashtags" v-show="page == 'hashtags'">
|
||||||
|
@ -301,7 +301,8 @@ export default Vue.extend({
|
||||||
X2fa,
|
X2fa,
|
||||||
XApps,
|
XApps,
|
||||||
XSignins,
|
XSignins,
|
||||||
XTags
|
XTags,
|
||||||
|
XDriveSettings: () => import('../../../common/views/components/drive-settings.vue')
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
initialPage: {
|
initialPage: {
|
||||||
|
|
|
@ -153,7 +153,7 @@ init((launch) => {
|
||||||
{ path: '/tags/:tag', component: MkTag },
|
{ path: '/tags/:tag', component: MkTag },
|
||||||
{ path: '/share', component: MkShare },
|
{ path: '/share', component: MkShare },
|
||||||
{ path: '/reversi/:game?', name: 'reversi', component: MkReversi },
|
{ path: '/reversi/:game?', name: 'reversi', component: MkReversi },
|
||||||
{ path: '/@:user', component: MkUser },
|
{ path: '/@:user', component: () => import('./views/pages/user.vue').then(m => m.default) },
|
||||||
{ path: '/@:user/followers', component: MkFollowers },
|
{ path: '/@:user/followers', component: MkFollowers },
|
||||||
{ path: '/@:user/following', component: MkFollowing },
|
{ path: '/@:user/following', component: MkFollowing },
|
||||||
{ path: '/notes/:note', component: MkNote },
|
{ path: '/notes/:note', component: MkNote },
|
||||||
|
|
|
@ -18,7 +18,6 @@ import usersList from './users-list.vue';
|
||||||
import userPreview from './user-preview.vue';
|
import userPreview from './user-preview.vue';
|
||||||
import userTimeline from './user-timeline.vue';
|
import userTimeline from './user-timeline.vue';
|
||||||
import userListTimeline from './user-list-timeline.vue';
|
import userListTimeline from './user-list-timeline.vue';
|
||||||
import activity from './activity.vue';
|
|
||||||
import widgetContainer from './widget-container.vue';
|
import widgetContainer from './widget-container.vue';
|
||||||
import postForm from './post-form.vue';
|
import postForm from './post-form.vue';
|
||||||
|
|
||||||
|
@ -40,6 +39,5 @@ Vue.component('mk-users-list', usersList);
|
||||||
Vue.component('mk-user-preview', userPreview);
|
Vue.component('mk-user-preview', userPreview);
|
||||||
Vue.component('mk-user-timeline', userTimeline);
|
Vue.component('mk-user-timeline', userTimeline);
|
||||||
Vue.component('mk-user-list-timeline', userListTimeline);
|
Vue.component('mk-user-list-timeline', userListTimeline);
|
||||||
Vue.component('mk-activity', activity);
|
|
||||||
Vue.component('mk-widget-container', widgetContainer);
|
Vue.component('mk-widget-container', widgetContainer);
|
||||||
Vue.component('mk-post-form', postForm);
|
Vue.component('mk-post-form', postForm);
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
</section>
|
</section>
|
||||||
</ui-card>
|
</ui-card>
|
||||||
|
|
||||||
<mk-drive-settings/>
|
<x-drive-settings/>
|
||||||
|
|
||||||
<mk-mute-and-block/>
|
<mk-mute-and-block/>
|
||||||
|
|
||||||
|
@ -182,6 +182,11 @@ import checkForUpdate from '../../../common/scripts/check-for-update';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
i18n: i18n('mobile/views/pages/settings.vue'),
|
i18n: i18n('mobile/views/pages/settings.vue'),
|
||||||
|
|
||||||
|
components: {
|
||||||
|
XDriveSettings: () => import('../../../common/views/components/drive-settings.vue')
|
||||||
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
apiUrl,
|
apiUrl,
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<section class="activity">
|
<section class="activity">
|
||||||
<h2><fa icon="chart-bar"/>{{ $t('activity') }}</h2>
|
<h2><fa icon="chart-bar"/>{{ $t('activity') }}</h2>
|
||||||
<div>
|
<div>
|
||||||
<mk-activity :user="user"/>
|
<x-activity :user="user"/>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<section class="frequently-replied-users">
|
<section class="frequently-replied-users">
|
||||||
|
@ -49,7 +49,8 @@ export default Vue.extend({
|
||||||
XNotes,
|
XNotes,
|
||||||
XPhotos,
|
XPhotos,
|
||||||
XFriends,
|
XFriends,
|
||||||
XFollowersYouKnow
|
XFollowersYouKnow,
|
||||||
|
XActivity: () => import('../../components/activity.vue').then(m => m.default)
|
||||||
},
|
},
|
||||||
props: ['user']
|
props: ['user']
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<mk-widget-container :show-header="!props.compact">
|
<mk-widget-container :show-header="!props.compact">
|
||||||
<template slot="header"><fa icon="chart-bar"/>{{ $t('activity') }}</template>
|
<template slot="header"><fa icon="chart-bar"/>{{ $t('activity') }}</template>
|
||||||
<div :class="$style.body">
|
<div :class="$style.body">
|
||||||
<mk-activity :user="$store.state.i"/>
|
<x-activity :user="$store.state.i"/>
|
||||||
</div>
|
</div>
|
||||||
</mk-widget-container>
|
</mk-widget-container>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,6 +20,9 @@ export default define({
|
||||||
})
|
})
|
||||||
}).extend({
|
}).extend({
|
||||||
i18n: i18n(),
|
i18n: i18n(),
|
||||||
|
components: {
|
||||||
|
XActivity: () => import('../components/activity.vue').then(m => m.default)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
func() {
|
func() {
|
||||||
this.props.compact = !this.props.compact;
|
this.props.compact = !this.props.compact;
|
||||||
|
|
Loading…
Reference in a new issue