mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-30 00:06:43 -06:00
2511114c28
Resolve #5846
33 lines
611 B
Vue
33 lines
611 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 {
|
|
instanceName: getInstanceName(),
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
meta() {
|
|
return this.$store.state.instance.meta;
|
|
},
|
|
},
|
|
});
|
|
</script>
|