enhance(user): remove user suspended indicator and raw page
This commit is contained in:
parent
8624338dbd
commit
b2ec0852e6
@ -21,15 +21,13 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||
<XPages v-else-if="tab === 'pages'" key="pages" :user="user"/>
|
||||
<XFlashs v-else-if="tab === 'flashs'" key="flashs" :user="user"/>
|
||||
<XGallery v-else-if="tab === 'gallery'" key="gallery" :user="user"/>
|
||||
<XRaw v-else-if="tab === 'raw'" key="raw" :user="user"/>
|
||||
</MkHorizontalSwipe>
|
||||
</div>
|
||||
<div v-else-if="error">
|
||||
<MkError @retry="fetchUser()"/>
|
||||
</div>
|
||||
<div v-else-if="userstatus">
|
||||
<MkUserNotFound v-if="userstatus === 'notfound'"/>
|
||||
<MkUserSuspended v-else-if="userstatus === 'suspended'"/>
|
||||
<MkUserNotFound v-if="userstatus === 'notfound' || userstatus === 'suspended'"/>
|
||||
</div>
|
||||
<MkLoading v-else/>
|
||||
</div>
|
||||
@ -45,7 +43,6 @@ import { definePageMetadata } from '@/scripts/page-metadata.js';
|
||||
import { i18n } from '@/i18n.js';
|
||||
import { $i, iAmModerator } from '@/account.js';
|
||||
import MkUserNotFound from '@/components/MkUserNotFound.vue';
|
||||
import MkUserSuspended from '@/components/MkUserSuspended.vue';
|
||||
import MkHorizontalSwipe from '@/components/MkHorizontalSwipe.vue';
|
||||
|
||||
const XHome = defineAsyncComponent(() => import('./home.vue'));
|
||||
@ -58,7 +55,6 @@ const XLists = defineAsyncComponent(() => import('./lists.vue'));
|
||||
const XPages = defineAsyncComponent(() => import('./pages.vue'));
|
||||
const XFlashs = defineAsyncComponent(() => import('./flashs.vue'));
|
||||
const XGallery = defineAsyncComponent(() => import('./gallery.vue'));
|
||||
const XRaw = defineAsyncComponent(() => import('./raw.vue'));
|
||||
|
||||
const props = withDefaults(defineProps<{
|
||||
acct: string;
|
||||
@ -135,10 +131,6 @@ const headerTabs = computed(() => user.value ? [{
|
||||
key: 'gallery',
|
||||
title: i18n.ts.gallery,
|
||||
icon: 'ti ti-icons',
|
||||
}, {
|
||||
key: 'raw',
|
||||
title: 'Raw',
|
||||
icon: 'ti ti-code',
|
||||
}] : []);
|
||||
|
||||
definePageMetadata(() => ({
|
||||
|
Loading…
Reference in New Issue
Block a user