mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +08:00
180 lines
4.1 KiB
Vue
180 lines
4.1 KiB
Vue
<script lang="ts" setup>
|
|
import VerticalNavSectionTitle from '@/@layouts/components/VerticalNavSectionTitle.vue'
|
|
import VerticalNavLayout from '@layouts/components/VerticalNavLayout.vue'
|
|
import VerticalNavLink from '@layouts/components/VerticalNavLink.vue'
|
|
|
|
// Components
|
|
import Footer from '@/layouts/components/Footer.vue'
|
|
import NavbarThemeSwitcher from '@/layouts/components/NavbarThemeSwitcher.vue'
|
|
import UserProfile from '@/layouts/components/UserProfile.vue'
|
|
|
|
// Banner
|
|
</script>
|
|
|
|
<template>
|
|
<VerticalNavLayout>
|
|
<!-- 👉 navbar -->
|
|
<template #navbar="{ toggleVerticalOverlayNavActive }">
|
|
<div class="d-flex h-100 align-center">
|
|
<!-- 👉 Vertical nav toggle in overlay mode -->
|
|
<IconBtn
|
|
class="ms-n3 d-lg-none"
|
|
@click="toggleVerticalOverlayNavActive(true)"
|
|
>
|
|
<VIcon icon="mdi-menu" />
|
|
</IconBtn>
|
|
|
|
<!-- 👉 Search -->
|
|
<div
|
|
class="d-flex align-center cursor-pointer"
|
|
style="user-select: none;"
|
|
>
|
|
<!-- 👉 Search Trigger button -->
|
|
<IconBtn>
|
|
<VIcon icon="mdi-magnify" />
|
|
</IconBtn>
|
|
|
|
<span class="d-none d-md-flex align-center text-disabled">
|
|
<span class="me-3">Search</span>
|
|
<span class="meta-key">⌘K</span>
|
|
</span>
|
|
</div>
|
|
|
|
<VSpacer />
|
|
|
|
<IconBtn
|
|
class="me-2"
|
|
href="https://github.com/jxxghp/MoviePilot"
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<VIcon icon="mdi-github" />
|
|
</IconBtn>
|
|
|
|
<IconBtn class="me-2">
|
|
<VIcon icon="mdi-bell-outline" />
|
|
</IconBtn>
|
|
|
|
<NavbarThemeSwitcher class="me-2" />
|
|
|
|
<UserProfile />
|
|
</div>
|
|
</template>
|
|
|
|
<template #vertical-nav-content>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '仪表板',
|
|
icon: 'mdi-home-outline',
|
|
to: '/dashboard',
|
|
}"
|
|
/>
|
|
|
|
<!-- 👉 发现 -->
|
|
<VerticalNavSectionTitle
|
|
:item="{
|
|
heading: '发现',
|
|
}"
|
|
/>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '推荐',
|
|
icon: 'mdi-movie-star',
|
|
to: '/ranking',
|
|
}"
|
|
/>
|
|
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '资源搜索',
|
|
icon: 'mdi-table',
|
|
to: '/resources',
|
|
}"
|
|
/>
|
|
|
|
<!-- 👉 订阅 -->
|
|
<VerticalNavSectionTitle
|
|
:item="{
|
|
heading: '订阅',
|
|
}"
|
|
/>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '电影',
|
|
icon: 'mdi-movie-check-outline',
|
|
to: '/subscribe-movie',
|
|
}"
|
|
/>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '电视剧',
|
|
icon: 'mdi-television-classic',
|
|
to: '/subscribe-tv',
|
|
}"
|
|
/>
|
|
<!-- 👉 整理 -->
|
|
<VerticalNavSectionTitle
|
|
:item="{
|
|
heading: '整理',
|
|
}"
|
|
/>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '正在下载',
|
|
icon: 'mdi-download-outline',
|
|
to: '/downloading',
|
|
}"
|
|
/>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '历史记录',
|
|
icon: 'mdi-history',
|
|
to: '/history',
|
|
}"
|
|
/>
|
|
|
|
<!-- 👉 用户设置 -->
|
|
<VerticalNavSectionTitle
|
|
:item="{
|
|
heading: '设置',
|
|
}"
|
|
/>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '站点管理',
|
|
icon: 'mdi-web',
|
|
to: '/sites',
|
|
}"
|
|
/>
|
|
<VerticalNavLink
|
|
:item="{
|
|
title: '设置',
|
|
icon: 'mdi-cog-outline',
|
|
to: '/account-settings',
|
|
}"
|
|
/>
|
|
</template>
|
|
|
|
<template #after-vertical-nav-items />
|
|
|
|
<!-- 👉 Pages -->
|
|
<slot />
|
|
|
|
<!-- 👉 Footer -->
|
|
<template #footer>
|
|
<Footer />
|
|
</template>
|
|
</VerticalNavLayout>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.meta-key {
|
|
border: thin solid rgba(var(--v-border-color), var(--v-border-opacity));
|
|
border-radius: 6px;
|
|
block-size: 1.5625rem;
|
|
line-height: 1.3125rem;
|
|
padding-block: 0.125rem;
|
|
padding-inline: 0.25rem;
|
|
}
|
|
</style>
|