mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-22 13:05:18 +01:00
35 lines
631 B
Vue
35 lines
631 B
Vue
|
<template>
|
||
|
<div v-if="meta" class="mk-welcome">
|
||
|
<portal to="title">{{ instanceName }}</portal>
|
||
|
<x-setup v-if="meta.requireSetup"/>
|
||
|
<x-entrance v-else/>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
import Vue from 'vue';
|
||
|
import XSetup from './index.welcome.setup.vue';
|
||
|
import XEntrance from './index.welcome.entrance.vue';
|
||
|
import { getInstanceName } from '../scripts/get-instance-name';
|
||
|
|
||
|
export default Vue.extend({
|
||
|
components: {
|
||
|
XSetup,
|
||
|
XEntrance,
|
||
|
},
|
||
|
|
||
|
data() {
|
||
|
return {
|
||
|
meta: null,
|
||
|
instanceName: getInstanceName(),
|
||
|
}
|
||
|
},
|
||
|
|
||
|
created() {
|
||
|
this.$root.getMeta().then(meta => {
|
||
|
this.meta = meta;
|
||
|
});
|
||
|
}
|
||
|
});
|
||
|
</script>
|