[Client] Split some components to reduce bundle size

This commit is contained in:
syuilo 2018-11-12 05:35:09 +09:00
parent fab389e624
commit 33e79e4bb8
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
19 changed files with 63 additions and 29 deletions

View file

@ -1,7 +1,7 @@
<template>
<mk-ui>
<span slot="header"><span style="margin-right:4px;"><fa :icon="['far', 'comments']"/></span>{{ $t('@.messaging') }}</span>
<mk-messaging @navigate="navigate" :header-top="48"/>
<x-messaging @navigate="navigate" :header-top="48"/>
</mk-ui>
</template>
@ -12,6 +12,9 @@ import getAcct from '../../../../../misc/acct/render';
export default Vue.extend({
i18n: i18n(),
components: {
XMessaging: () => import('../../../common/views/components/messaging.vue').then(m => m.default)
},
mounted() {
document.title = `${this.$root.instanceName} ${this.$t('@.messaging')}`;
},