8daff4a998
* refactor(frontend): Reactivityで型を明示するように * fix: プロパティの参照が誤っているのを修正 * fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
36 lines
856 B
Vue
36 lines
856 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and other misskey contributors
|
|
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 * as os from '@/os.js';
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
|
|
|
const meta = ref<Misskey.entities.MetaResponse | null>(null);
|
|
|
|
os.api('meta', { detail: true }).then(res => {
|
|
meta.value = res;
|
|
});
|
|
|
|
const headerActions = computed(() => []);
|
|
|
|
const headerTabs = computed(() => []);
|
|
|
|
definePageMetadata(computed(() => ({
|
|
title: instanceName,
|
|
icon: null,
|
|
})));
|
|
</script>
|