new selfhosted version

This commit is contained in:
antonio
2025-11-28 14:11:51 +01:00
parent afda29997d
commit 951860f67e
1046 changed files with 72586 additions and 574750 deletions

View File

@@ -1,46 +1,57 @@
<script setup lang="ts">
<script lang="ts" setup>
import type { CItem } from '~/components/CustomTab.vue';
definePageMeta({ layout: 'sidebar' });
definePageMeta({ layout: 'dashboard' });
const details = ref<any>();
const showDetails = ref<boolean>(false);
const tabs: CItem[] = [
{ label: 'Overview', slot: 'overview' },
{ label: 'Users', slot: 'users' },
{ label: 'Feedbacks', slot: 'feedbacks' },
{ label: 'OnBoarding', slot: 'onboarding' },
{ label: 'Backend', slot: 'backend' }
]
const activeTab = ref<string>('overview');
const { user } = useUserSession();
</script>
<template>
<div class="bg-bg overflow-y-hidden w-full p-6 gap-6 flex flex-col h-full">
<Unauthorized v-if="!user || user.email !== 'helplitlyx@gmail.com'" authorization="User Limitation">
</Unauthorized>
<div v-else class="p-4 h-full overflow-y-hidden">
<Tabs v-model="activeTab" class="w-full h-full overflow-y-hidden">
<CustomTab :items="tabs" :manualScroll="true">
<template #overview>
<AdminOverview></AdminOverview>
</template>
<template #users>
<AdminUsers></AdminUsers>
</template>
<template #feedbacks>
<AdminFeedbacks></AdminFeedbacks>
</template>
<template #onboarding>
<AdminOnboardings></AdminOnboardings>
</template>
<template #backend>
<AdminBackend></AdminBackend>
</template>
</CustomTab>
<TabsList class="w-full mb-4">
<TabsTrigger value="overview">
Overview
</TabsTrigger>
<TabsTrigger value="feedbacks">
Feedbacks
</TabsTrigger>
<TabsTrigger value="onboarding">
Onboarding
</TabsTrigger>
<TabsTrigger value="aichats">
Ai Chats
</TabsTrigger>
<TabsTrigger value="backend">
Backend
</TabsTrigger>
</TabsList>
<TabsContent value="overview" class="overflow-y-hidden h-full">
<LazyAdminOverview></LazyAdminOverview>
</TabsContent>
<TabsContent value="feedbacks" class="overflow-y-hidden h-full">
<LazyAdminFeedbacks></LazyAdminFeedbacks>
</TabsContent>
<TabsContent value="onboarding" class="overflow-y-hidden h-full">
<LazyAdminOnboarding></LazyAdminOnboarding>
</TabsContent>
<TabsContent value="aichats" class="overflow-y-hidden h-full">
<LazyAdminAiChat></LazyAdminAiChat>
</TabsContent>
<TabsContent value="backend" class="overflow-y-hidden h-full">
<LazyAdminBackend></LazyAdminBackend>
</TabsContent>
</Tabs>
</div>
</template>
<style scoped></style>
</template>