Add support chat, piggy funds, PWA banner, notification/SSE sync, and messenger legacy guards while keeping boursecu theme; also balance login panels and unblock login navigation. Co-authored-by: Cursor <cursoragent@cursor.com>
49 lines
1.2 KiB
Vue
49 lines
1.2 KiB
Vue
<template>
|
|
<div class="mobile-app-layout">
|
|
<div :class="['main-with-bottom-chrome', { 'main-with-bottom-chrome--no-nav': hideBottomNav }]">
|
|
<router-view v-slot="{ Component, route: activeRoute }">
|
|
<transition :name="activeRoute.meta.transition || 'fade'">
|
|
<component :is="Component" :key="activeRoute.fullPath" class="main-with-bottom-chrome-inner" />
|
|
</transition>
|
|
</router-view>
|
|
</div>
|
|
|
|
<MobileBottomNav
|
|
v-if="!hideBottomNav"
|
|
:nav-item-class="navItemClass"
|
|
@navigate="navigateTo"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { onMounted, watch } from 'vue'
|
|
import { useRoute } from 'vue-router'
|
|
import { useAppNavigation } from '../composables/useAppNavigation'
|
|
import { recoverMobileViewportAfterAuth, resetMobileAppScroll } from '../composables/useMobileScrollReset'
|
|
import MobileBottomNav from './MobileBottomNav.vue'
|
|
|
|
const route = useRoute()
|
|
|
|
const {
|
|
hideBottomNav,
|
|
navItemClass,
|
|
navigateTo,
|
|
} = useAppNavigation()
|
|
|
|
watch(
|
|
() => route.fullPath,
|
|
() => {
|
|
resetMobileAppScroll()
|
|
},
|
|
{ flush: 'post' },
|
|
)
|
|
|
|
onMounted(() => {
|
|
resetMobileAppScroll()
|
|
recoverMobileViewportAfterAuth()
|
|
})
|
|
</script>
|
|
|
|
<style lang="less" src="./mobile-layout.less"></style>
|