mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 09:49:05 +01:00
34 lines
597 B
Vue
34 lines
597 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 { instanceName } from '../config';
|
|
|
|
export default Vue.extend({
|
|
components: {
|
|
XSetup,
|
|
XEntrance,
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
instanceName: instanceName || 'Misskey',
|
|
}
|
|
},
|
|
|
|
computed: {
|
|
meta() {
|
|
return this.$store.state.instance.meta;
|
|
},
|
|
},
|
|
});
|
|
</script>
|