mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2025-01-03 14:11:06 +00:00
837a8e15d8
* refactor(frontend): shouldCollapsedを共通化 * refactor(frontend): config.js, worker-multi-dispatch.js, intl-const.jsを共通化 * fix(frontend-shared): fix type error * refactor(frontend): is-link.jsと、同一の振る舞いをする記述を共通化 * fix * fix lint * lint fixes
36 lines
860 B
Vue
36 lines
860 B
Vue
<!--
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
-->
|
|
|
|
<template>
|
|
<div v-if="instance">
|
|
<XSetup v-if="instance.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 '@@/js/config.js';
|
|
import { definePageMetadata } from '@/scripts/page-metadata.js';
|
|
import { fetchInstance } from '@/instance.js';
|
|
|
|
const instance = ref<Misskey.entities.MetaDetailed | null>(null);
|
|
|
|
fetchInstance(true).then((res) => {
|
|
instance.value = res;
|
|
});
|
|
|
|
const headerActions = computed(() => []);
|
|
|
|
const headerTabs = computed(() => []);
|
|
|
|
definePageMetadata(() => ({
|
|
title: instanceName,
|
|
icon: null,
|
|
}));
|
|
</script>
|