feat(ui): lift nav branding and add WebSocket status indicator
This commit is contained in:
+27
-7
@@ -1,27 +1,47 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-app>
|
<v-app>
|
||||||
<v-navigation-drawer v-model="drawer" app>
|
<v-navigation-drawer v-model="drawer" app>
|
||||||
<v-list-item
|
<!-- Brand header -->
|
||||||
prepend-icon="mdi-image-multiple"
|
<div class="pa-4 bg-surface">
|
||||||
title="Gallery Subscriber"
|
<div class="d-flex align-center ga-3">
|
||||||
subtitle="Download Manager"
|
<v-icon color="primary" size="32">mdi-download-network</v-icon>
|
||||||
/>
|
<div>
|
||||||
|
<div class="font-weight-bold text-subtitle-1">GallerySubscriber</div>
|
||||||
|
<div class="text-caption text-medium-emphasis">Download Manager</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-list nav density="compact">
|
|
||||||
|
<v-list nav density="comfortable">
|
||||||
<v-list-item
|
<v-list-item
|
||||||
v-for="item in navItems"
|
v-for="item in navItems"
|
||||||
:key="item.path"
|
:key="item.path"
|
||||||
:to="item.path"
|
:to="item.path"
|
||||||
:prepend-icon="item.icon"
|
:prepend-icon="item.icon"
|
||||||
:title="item.title"
|
:title="item.title"
|
||||||
|
rounded="lg"
|
||||||
|
active-color="primary"
|
||||||
/>
|
/>
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-navigation-drawer>
|
</v-navigation-drawer>
|
||||||
|
|
||||||
<v-app-bar app elevation="1">
|
<v-app-bar app elevation="0" border="b">
|
||||||
<v-app-bar-nav-icon @click="drawer = !drawer" />
|
<v-app-bar-nav-icon @click="drawer = !drawer" />
|
||||||
<v-toolbar-title>{{ currentPageTitle }}</v-toolbar-title>
|
<v-toolbar-title>{{ currentPageTitle }}</v-toolbar-title>
|
||||||
<v-spacer />
|
<v-spacer />
|
||||||
|
|
||||||
|
<!-- WebSocket status indicator -->
|
||||||
|
<v-btn icon variant="text" style="cursor: default" :ripple="false">
|
||||||
|
<v-icon
|
||||||
|
:color="wsStore.isConnected ? 'success' : 'error'"
|
||||||
|
size="10"
|
||||||
|
>mdi-circle</v-icon>
|
||||||
|
<v-tooltip activator="parent" location="bottom">
|
||||||
|
{{ wsStore.isConnected ? 'Real-time updates active' : 'Disconnected — real-time updates paused' }}
|
||||||
|
</v-tooltip>
|
||||||
|
</v-btn>
|
||||||
|
|
||||||
<v-btn icon @click="toggleTheme">
|
<v-btn icon @click="toggleTheme">
|
||||||
<v-icon>{{ isDark ? 'mdi-weather-sunny' : 'mdi-weather-night' }}</v-icon>
|
<v-icon>{{ isDark ? 'mdi-weather-sunny' : 'mdi-weather-night' }}</v-icon>
|
||||||
</v-btn>
|
</v-btn>
|
||||||
|
|||||||
Reference in New Issue
Block a user