eslint --fix
This commit is contained in:
@@ -1,23 +1,3 @@
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import TauriTitlebar from './TauriTitlebar.vue';
|
||||
import SideNav from './SideNav.vue';
|
||||
import BottomNav from './BottomNav.vue';
|
||||
import { useAuth } from '@/composables/useAuth';
|
||||
|
||||
const route = useRoute();
|
||||
const authStore = useAuth();
|
||||
|
||||
const isTauri = typeof window !== 'undefined' && !!window.__TAURI__;
|
||||
|
||||
// Hide nav on auth/onboarding routes
|
||||
const showNav = computed(() =>
|
||||
authStore.isAuthenticated &&
|
||||
!['login', 'register', 'setup'].includes(route.name as string),
|
||||
);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="shell" :class="{ 'shell--tauri': isTauri }">
|
||||
<!-- Grain texture overlay (fixed, pointer-events none) -->
|
||||
@@ -41,6 +21,26 @@ const showNav = computed(() =>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { useAuth } from '@/composables/useAuth'
|
||||
import BottomNav from './BottomNav.vue'
|
||||
import SideNav from './SideNav.vue'
|
||||
import TauriTitlebar from './TauriTitlebar.vue'
|
||||
|
||||
const route = useRoute()
|
||||
const authStore = useAuth()
|
||||
|
||||
const isTauri = typeof window !== 'undefined' && !!window.__TAURI__
|
||||
|
||||
// Hide nav on auth/onboarding routes
|
||||
const showNav = computed(() =>
|
||||
authStore.isAuthenticated
|
||||
&& !['login', 'register', 'setup'].includes(route.name as string),
|
||||
)
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.shell {
|
||||
height: 100dvh;
|
||||
|
||||
Reference in New Issue
Block a user