mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-14 09:53:08 +02:00
38 lines
681 B
Vue
38 lines
681 B
Vue
<template>
|
|
<div v-if="meta">
|
|
<XSetup v-if="meta.requireSetup"/>
|
|
<XEntrance v-else/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import XSetup from './welcome.setup.vue';
|
|
import XEntrance from './welcome.entrance.a.vue';
|
|
import { instanceName } from '@client/config';
|
|
import * as os from '@client/os';
|
|
import * as symbols from '@client/symbols';
|
|
|
|
export default defineComponent({
|
|
components: {
|
|
XSetup,
|
|
XEntrance,
|
|
},
|
|
|
|
data() {
|
|
return {
|
|
[symbols.PAGE_INFO]: {
|
|
title: instanceName,
|
|
icon: null
|
|
},
|
|
meta: null
|
|
}
|
|
},
|
|
|
|
created() {
|
|
os.api('meta', { detail: true }).then(meta => {
|
|
this.meta = meta;
|
|
});
|
|
}
|
|
});
|
|
</script>
|