860e8bb5d8
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp> Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
37 lines
863 B
Vue
37 lines
863 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<div v-if="meta">
|
|
<XSetup v-if="meta.requireSetup"/>
|
|
<XEntrance v-else/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { computed, ref } from 'vue';
|
|
import * as Misskey from 'misskey-js';
|
|
import XSetup from './welcome.setup.vue';
|
|
import XEntrance from './welcome.entrance.a.vue';
|
|
import { instanceName } from '@/config.js';
|
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
|
|
|
const meta = ref<Misskey.entities.MetaResponse | null>(null);
|
|
|
|
misskeyApi('meta', { detail: true }).then(res => {
|
|
meta.value = res;
|
|
});
|
|
|
|
const headerActions = computed(() => []);
|
|
|
|
const headerTabs = computed(() => []);
|
|
|
|
definePageMetadata(() => ({
|
|
title: instanceName,
|
|
icon: null,
|
|
}));
|
|
</script>
|