BREAKING CHANGE: Remove all data analysis features This commit removes all database-dependent functionality and simplifies the application to focus on authentication and user management only. Changes: - Remove all /api/data and /api/metadata server endpoints - Remove Supabase configuration from nuxt.config.ts and .env.example - Remove @supabase/supabase-js dependency from package.json - Delete data analysis pages: explorer, metadatos, rawExplorer, panorama, comparativa-cosechas, informe-ingresos - Simplify sidebar navigation to show only "Inicio" - Update home page to focus on authentication and profile management - Remove "Supabase" and "Solo lectura" badges from navbar - Keep only auth-related API endpoints: /api/auth/status and /api/auth/check-group The application now serves as an authentication-protected portal with: - Authentik SSO integration - User profile management - Settings and notifications pages (coming soon) - No database or data analysis features
45 lines
1.3 KiB
Vue
45 lines
1.3 KiB
Vue
<template>
|
|
<div class="brand-shell min-h-screen text-[#fef9f0]">
|
|
<UDashboardGroup storage-key="analytics-dashboard" class="h-full">
|
|
<AppSidebar v-model:open="sidebarOpen" v-model:collapsed="sidebarCollapsed" />
|
|
|
|
<UDashboardPanel class="bg-transparent">
|
|
<template #header>
|
|
<div class="flex flex-col gap-4 px-4 py-4 lg:px-6">
|
|
<UDashboardNavbar :title="pageTitle" icon="i-lucide-pie-chart" toggle-side="left">
|
|
<template #leading>
|
|
<UDashboardSidebarCollapse variant="subtle" />
|
|
</template>
|
|
<template #toggle>
|
|
<UDashboardSidebarToggle variant="subtle" />
|
|
</template>
|
|
<template #trailing>
|
|
<AuthSessionStatusButton />
|
|
<UserMenu />
|
|
</template>
|
|
</UDashboardNavbar>
|
|
</div>
|
|
</template>
|
|
|
|
<template #body>
|
|
<div class="px-4 pb-10 lg:px-8">
|
|
<slot />
|
|
</div>
|
|
</template>
|
|
</UDashboardPanel>
|
|
</UDashboardGroup>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed, ref } from 'vue'
|
|
import { useRoute } from 'vue-router'
|
|
|
|
const route = useRoute()
|
|
|
|
const sidebarOpen = ref(true)
|
|
const sidebarCollapsed = ref(false)
|
|
|
|
const pageTitle = computed(() => (route.meta.title as string) || 'Panel')
|
|
</script>
|