2020-01-29 21:37:25 +02:00
|
|
|
<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';
|
2020-02-12 19:48:52 +02:00
|
|
|
import { instanceName } from '../config';
|
2020-01-29 21:37:25 +02:00
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
components: {
|
|
|
|
XSetup,
|
|
|
|
XEntrance,
|
|
|
|
},
|
|
|
|
|
|
|
|
data() {
|
|
|
|
return {
|
2020-02-12 19:48:52 +02:00
|
|
|
instanceName: instanceName || 'Misskey',
|
2020-01-29 21:37:25 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2020-02-10 16:17:42 +02:00
|
|
|
computed: {
|
|
|
|
meta() {
|
|
|
|
return this.$store.state.instance.meta;
|
|
|
|
},
|
|
|
|
},
|
2020-01-29 21:37:25 +02:00
|
|
|
});
|
|
|
|
</script>
|