2026-06-14 10:08:46 +03:30
|
|
|
<template>
|
2026-07-06 12:35:42 +02:00
|
|
|
<aside class="desktop-sidebar desktop-sidebar--boursecu">
|
2026-06-14 10:08:46 +03:30
|
|
|
<div class="desktop-sidebar__brand">
|
|
|
|
|
<img
|
|
|
|
|
:src="navLogo"
|
|
|
|
|
alt=""
|
|
|
|
|
class="desktop-sidebar__logo"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-07-23 14:10:40 +02:00
|
|
|
<div class="desktop-sidebar__nav-scroll">
|
|
|
|
|
<nav class="desktop-sidebar__section" aria-label="منوی اصلی">
|
|
|
|
|
<DesktopNavItem
|
|
|
|
|
v-for="item in primaryItems"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:icon="item.icon"
|
|
|
|
|
:icon-src="item.iconSrc"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:active="isNavActive(item.routeName)"
|
|
|
|
|
@click="navigateTo(item.routeName)"
|
|
|
|
|
/>
|
|
|
|
|
</nav>
|
2026-06-14 10:08:46 +03:30
|
|
|
|
2026-07-23 14:10:40 +02:00
|
|
|
<div class="desktop-sidebar__divider" />
|
2026-06-14 10:08:46 +03:30
|
|
|
|
2026-07-23 14:10:40 +02:00
|
|
|
<nav class="desktop-sidebar__section desktop-sidebar__section--secondary" aria-label="منوی فرعی">
|
|
|
|
|
<DesktopNavItem
|
|
|
|
|
v-for="item in secondaryItems"
|
|
|
|
|
:key="item.id"
|
|
|
|
|
:icon="item.icon"
|
|
|
|
|
:icon-src="item.iconSrc"
|
|
|
|
|
:label="item.label"
|
|
|
|
|
:active="isNavActive(item.routeName)"
|
|
|
|
|
@click="navigateTo(item.routeName)"
|
|
|
|
|
/>
|
|
|
|
|
</nav>
|
|
|
|
|
</div>
|
2026-06-16 10:32:10 +03:30
|
|
|
|
|
|
|
|
<div class="desktop-sidebar__credit">
|
|
|
|
|
<AppCreditLink variant="sidebar" />
|
|
|
|
|
</div>
|
2026-06-14 10:08:46 +03:30
|
|
|
</aside>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { computed } from 'vue'
|
|
|
|
|
import { useConfigStore } from '@/store/configStore'
|
2026-07-06 12:35:42 +02:00
|
|
|
import { getProjectSplashLogo } from '@/utils/config'
|
2026-06-14 10:08:46 +03:30
|
|
|
import { getPrimaryNavItems, SECONDARY_NAV } from '../config/navigation'
|
|
|
|
|
import { useAppNavigation } from '../composables/useAppNavigation'
|
|
|
|
|
import DesktopNavItem from './DesktopNavItem.vue'
|
2026-06-16 10:32:10 +03:30
|
|
|
import AppCreditLink from '@/components/AppCreditLink.vue'
|
2026-06-14 10:08:46 +03:30
|
|
|
|
|
|
|
|
const config = useConfigStore()
|
2026-06-16 10:32:10 +03:30
|
|
|
const navLogo = computed(() => getProjectSplashLogo(config.config?.avatar))
|
2026-06-14 10:08:46 +03:30
|
|
|
const primaryItems = getPrimaryNavItems()
|
|
|
|
|
const secondaryItems = SECONDARY_NAV
|
|
|
|
|
|
|
|
|
|
const { isNavActive, navigateTo } = useAppNavigation()
|
|
|
|
|
</script>
|