chore(client): remove placeholder Scanner settings and Browse section

This commit is contained in:
neon
2026-02-03 11:13:10 -06:00
parent 7c9663118b
commit aec4af18a5
3 changed files with 4 additions and 40 deletions
+1 -31
View File
@@ -1,6 +1,6 @@
<script setup lang="ts">
import * as Icons from 'lucide-vue-next'
import { Aperture, BookMarked, Clock, BookOpen, FolderOpen, Plus } from 'lucide-vue-next'
import { Aperture, FolderOpen, Plus } from 'lucide-vue-next'
import { computed, onMounted, ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import {
@@ -215,36 +215,6 @@ onMounted(() => {
</SidebarGroupContent>
</SidebarGroup>
<SidebarSeparator class="group-data-[collapsible=icon]:hidden" />
<!-- Browse -->
<SidebarGroup>
<SidebarGroupLabel class="text-[10px] uppercase tracking-widest text-sidebar-foreground/35 font-medium group-data-[collapsible=icon]:hidden">
Browse
</SidebarGroupLabel>
<SidebarGroupContent>
<SidebarMenu>
<SidebarMenuItem>
<SidebarMenuButton tooltip="Reading" class="gap-2.5 opacity-40 cursor-not-allowed">
<BookOpen :size="15" class="text-sidebar-foreground/50" />
<span class="text-sidebar-foreground/70">Reading</span>
</SidebarMenuButton>
</SidebarMenuItem>
<SidebarMenuItem>
<SidebarMenuButton tooltip="Bookmarks" class="gap-2.5 opacity-40 cursor-not-allowed">
<BookMarked :size="15" class="text-sidebar-foreground/50" />
<span class="text-sidebar-foreground/70">Bookmarks</span>
</SidebarMenuButton>
</SidebarMenuItem>
<SidebarMenuItem>
<SidebarMenuButton tooltip="Recently Added" class="gap-2.5 opacity-40 cursor-not-allowed">
<Clock :size="15" class="text-sidebar-foreground/50" />
<span class="text-sidebar-foreground/70">Recently Added</span>
</SidebarMenuButton>
</SidebarMenuItem>
</SidebarMenu>
</SidebarGroupContent>
</SidebarGroup>
</SidebarContent>
<SidebarRail />
@@ -5,7 +5,6 @@ import {
ChevronLeft,
ChevronRight,
Library,
ScanLine,
Paintbrush,
BookOpen,
FileText,
@@ -21,7 +20,6 @@ import { useSettingsDrawer } from '@/composables/useSettingsDrawer'
import { usePermissions } from '@/features/auth/composables/usePermissions'
import { useThemeStore, BACKGROUND_OPTIONS } from '@/stores/theme'
import LibrariesSettings from './LibrariesSettings.vue'
import ScannerSettings from './ScannerSettings.vue'
import AppearanceSettings from './AppearanceSettings.vue'
import ReaderSettings from './ReaderSettings.vue'
import EbookSettings from './EbookSettings.vue'
@@ -38,7 +36,7 @@ const { isSuperuser, hasPermission, userPermissions } = usePermissions()
const themeStore = useThemeStore()
const bgClass = computed(() => BACKGROUND_OPTIONS.find((o) => o.id === themeStore.background)?.cssClass ?? '')
type SectionId = 'libraries' | 'scanner' | 'appearance' | 'reader' | 'ebook' | 'pdf' | 'comics' | 'about' | 'users' | 'roles' | 'permissions' | 'oidc'
type SectionId = 'libraries' | 'appearance' | 'reader' | 'ebook' | 'pdf' | 'comics' | 'about' | 'users' | 'roles' | 'permissions' | 'oidc'
const navGroups = computed(() => {
const groups = [
@@ -46,7 +44,6 @@ const navGroups = computed(() => {
label: 'General',
items: [
{ id: 'libraries' as SectionId, label: 'Libraries', icon: Library, component: LibrariesSettings },
{ id: 'scanner' as SectionId, label: 'Scanner', icon: ScanLine, component: ScannerSettings },
{ id: 'appearance' as SectionId, label: 'Appearance', icon: Paintbrush, component: AppearanceSettings },
],
},
@@ -59,10 +56,6 @@ const navGroups = computed(() => {
{ id: 'comics' as SectionId, label: 'Comics', icon: BookImage, component: ComicsSettings },
],
},
{
label: 'System',
items: [{ id: 'about' as SectionId, label: 'About', icon: Info, component: AboutSettings }],
},
]
// Explicitly reference userPermissions.value so Vue tracks it as a dependency
const perms = userPermissions.value
@@ -81,6 +74,7 @@ const navGroups = computed(() => {
if (adminItems.length) {
groups.push({ label: 'Administration', items: adminItems })
}
groups.push({ label: 'System', items: [{ id: 'about' as SectionId, label: 'About', icon: Info, component: AboutSettings }] })
return groups
})
+1 -1
View File
@@ -5,7 +5,7 @@
{
"idx": 0,
"version": "7",
"when": 1770098178021,
"when": 1770185227252,
"tag": "0000_baseline",
"breakpoints": true
}