bring over relevant desktop settings

This commit is contained in:
Boof2015
2026-07-14 01:14:16 -04:00
parent c9d065e662
commit 7b35e01fe0
36 changed files with 1646 additions and 126 deletions
@@ -50,6 +50,7 @@ import type {
DbTrack
} from '@/types/library';
import type { Playlist } from '@/types/playlist';
import { SETTINGS_SEARCH_ROUTES } from '@/components/search/settingsSearchRoutes';
type IconName = keyof typeof Ionicons.glyphMap;
type RouteHref =
@@ -60,8 +61,11 @@ type RouteHref =
| '/settings/appearance'
| '/settings/library'
| '/settings/audio'
| '/settings/playback'
| '/settings/services'
| '/settings/lyrics'
| '/settings/experimental'
| '/settings/troubleshooting'
| '/settings/info'
| '/sources'
| '/lastfm';
@@ -149,6 +153,14 @@ const SETTING_ENTRIES: {
icon: 'volume-high',
keywords: ['audio', 'normalization', 'replaygain', 'loudness', 'gain', 'target lufs'],
},
{
id: 'setting:playback',
label: 'Playback settings',
subtitle: 'Sleep timer / end of track',
href: SETTINGS_SEARCH_ROUTES.playback,
icon: 'play-circle-outline',
keywords: ['playback', 'sleep timer', 'timer', 'end of track', 'pause after track'],
},
{
id: 'setting:library',
label: 'Library settings',
@@ -173,6 +185,14 @@ const SETTING_ENTRIES: {
icon: 'server-outline',
keywords: ['services', 'integrations', 'remote sources', 'scrobbling'],
},
{
id: 'setting:lyrics',
label: 'Lyrics settings',
subtitle: 'XLRC / furigana / translations',
href: SETTINGS_SEARCH_ROUTES.lyrics,
icon: 'musical-notes-outline',
keywords: ['lyrics', 'xlrc', 'word timing', 'furigana', 'translations', 'voice labels', 'lrclib', 'xlrcdb'],
},
{
id: 'setting:sources',
label: 'Remote sources',
@@ -205,6 +225,14 @@ const SETTING_ENTRIES: {
icon: 'information-circle-outline',
keywords: ['info', 'about', 'version', 'license', 'attribution', 'github', 'repo', 'repository', 'discord', 'kofi', 'ko-fi', 'support', 'gpl'],
},
{
id: 'setting:troubleshooting',
label: 'Troubleshooting',
subtitle: 'Rescan / rebuild / clear caches',
href: SETTINGS_SEARCH_ROUTES.troubleshooting,
icon: 'build-outline',
keywords: ['troubleshooting', 'support', 'rescan', 'rebuild index', 'clear lyrics cache', 'clear waveform cache', 'onboarding'],
},
];
const EMPTY_SHORTCUT_IDS = ['nav:library', 'nav:eq', 'setting:sources', 'setting:lastfm'];