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