Refine settings sidebar with grouped descriptive navigation
CI / verify (push) Canceled after 0s

This commit is contained in:
Sucukdeluxe committed 2026-10-15 05:55:24 +02:00
1 parent 40232c844b
commit 1a249e8a21
4 files changed
+188 -13

No files matched your search

+23 -13
View File
@@ -1682,7 +1682,7 @@ function _isHistoryTabActive() {
if (tab.dataset.view === 'upload') requestAnimationFrame(clampRecentPanelHeight);
activeTab = tab;
syncTabIndicator(tab);
const activeSidebarButton = nextView?.querySelector('.view-sidebar-navigation > .view-sidebar-item.active, .settings-navigation > .settings-nav-button.active');
const activeSidebarButton = nextView?.querySelector('.view-sidebar-navigation > .view-sidebar-item.active, .settings-navigation .settings-nav-button.active');
_syncSidebarIndicator(activeSidebarButton, true);
if (tab.dataset.view === 'history' && (_historyDirty || !_historyEverLoaded)) {
loadHistory();
@@ -6499,15 +6499,16 @@ function renderSettings() {
const remoteSettings = globalSettings.remote || {};
const pageDefinitions = [
{ id: 'allgemein', label: 'Allgemein', search: 'fenster window vordergrund foreground always on top drop target oberfläche interface updates update aktualisierung version language sprache' },
{ id: 'uploads', label: 'Uploads', search: 'upload queue warteschlange waiting fertig completed completion abschluss entfernen remove parallel geschwindigkeit speed limit fortsetzen resume wiederherstellen restore hoster' },
{ id: 'automatik', label: 'Automatik', search: 'automatisch automation automatic retry wiederholen ordner folder monitor überwachen watch dateierweiterungen extensions unterordner subfolders duplikate duplicates' },
{ id: 'benachrichtigungen', label: 'Benachrichtigungen', search: 'benachrichtigungen notifications webhook discord meldung message ping erwähnung mention batch fertig completed' },
{ id: 'logs', label: 'Logs & Support', search: 'log logs protokoll logging debug verbose diagnose diagnostics support paket package datei file ordner folder' },
{ id: 'remote', label: 'Fernsteuerung', search: 'remote control fernsteuerung server input port api token verbindung connection client' },
{ id: 'diagnose', label: 'Diagnose-Zugriff', search: 'diagnose diagnostics access zugriff lesen read allowlist netzwerk network lokal local verbindung connection code support' },
{ id: 'backup', label: 'Backup & Übertragen', search: 'backup transfer sichern export import online schlüssel key einstellungen settings accounts übertragen' }
{ id: 'allgemein', label: 'Allgemein', group: 'base', icon: 'sliders', description: 'Fenster, Sprache und Updates', search: 'fenster window vordergrund foreground always on top drop target oberfläche interface updates update aktualisierung version language sprache' },
{ id: 'uploads', label: 'Uploads', group: 'base', icon: 'upload', description: 'Leistung und Warteschlange', search: 'upload queue warteschlange waiting fertig completed completion abschluss entfernen remove parallel geschwindigkeit speed limit fortsetzen resume wiederherstellen restore hoster' },
{ id: 'automatik', label: 'Automatik', group: 'base', icon: 'clock', description: 'Wiederholungen und Ordner', search: 'automatisch automation automatic retry wiederholen ordner folder monitor überwachen watch dateierweiterungen extensions unterordner subfolders duplikate duplicates' },
{ id: 'benachrichtigungen', label: 'Benachrichtigungen', group: 'connections', icon: 'bell', description: 'Meldungen und Webhooks', search: 'benachrichtigungen notifications webhook discord meldung message ping erwähnung mention batch fertig completed' },
{ id: 'logs', label: 'Logs & Support', group: 'management', icon: 'files', description: 'Protokolle und Supportpakete', search: 'log logs protokoll logging debug verbose diagnose diagnostics support paket package datei file ordner folder' },
{ id: 'remote', label: 'Fernsteuerung', group: 'connections', icon: 'monitor', description: 'Server und Verbindungen', search: 'remote control fernsteuerung server input port api token verbindung connection client' },
{ id: 'diagnose', label: 'Diagnose-Zugriff', group: 'connections', icon: 'shield', description: 'Zugriff und Freigaben', search: 'diagnose diagnostics access zugriff lesen read allowlist netzwerk network lokal local verbindung connection code support' },
{ id: 'backup', label: 'Backup & Übertragen', group: 'management', icon: 'archive', description: 'Sichern, importieren und exportieren', search: 'backup transfer sichern export import online schlüssel key einstellungen settings accounts übertragen' }
];
const navigationGroups = [{ id: 'base', label: 'Grundlagen' }, { id: 'connections', label: 'Verbindungen' }, { id: 'management', label: 'Verwaltung' }];
const pageHeader = (title, description) => `
<header class="settings-page-header">
<h3>${title}</h3>
@@ -6515,9 +6516,13 @@ function renderSettings() {
</header>`;
const layout = document.createElement('div');
layout.className = 'settings-layout';
layout.className = 'settings-layout settings-layout-grouped';
layout.innerHTML = `
<aside class="settings-sidebar">
<aside class="settings-sidebar settings-sidebar-grouped">
<header class="settings-sidebar-header">
<span>Konfiguration</span>
<h2><svg aria-hidden="true"><use href="#icon-settings"></use></svg><span>Einstellungen</span></h2>
</header>
<div class="settings-search-wrap">
<label for="settingsSearchInput">Schnell finden</label>
<div class="settings-search-control">
@@ -6525,12 +6530,17 @@ function renderSettings() {
<input type="search" id="settingsSearchInput" placeholder="Einstellungen durchsuchen" autocomplete="off" spellcheck="false">
</div>
</div>
<div class="settings-sidebar-body">
<nav class="settings-navigation" aria-label="Einstellungskategorien">
<span class="settings-nav-indicator" aria-hidden="true"></span>
${pageDefinitions.map((definition, index) => `<button class="settings-nav-button${index === 0 ? ' active' : ''}" data-settings-page="${definition.id}" data-search="${definition.label.toLowerCase()} ${definition.search}" aria-current="${index === 0 ? 'page' : 'false'}">${definition.label}</button>`).join('')}
${navigationGroups.map(group => `<section class="settings-navigation-group" aria-label="${group.label}">
<h3>${group.label}</h3>
${pageDefinitions.filter(definition => definition.group === group.id).map(definition => `<button class="settings-nav-button${definition.id === 'allgemein' ? ' active' : ''}" data-settings-page="${definition.id}" data-search="${definition.label.toLowerCase()} ${definition.description.toLowerCase()} ${definition.search}" aria-current="${definition.id === 'allgemein' ? 'page' : 'false'}"><svg aria-hidden="true"><use href="#icon-${definition.icon}"></use></svg><span class="settings-nav-copy"><span class="settings-nav-title">${definition.label}</span><span class="settings-nav-description">${definition.description}</span></span></button>`).join('')}
</section>`).join('')}
</nav>
<div class="settings-search-results" id="settingsSearchResults" role="list" aria-label="Suchergebnisse" hidden></div>
<p class="settings-search-empty" id="settingsSearchEmpty" hidden>Keine passende Einstellung gefunden.</p>
</div>
<span class="settings-search-status" id="settingsSearchStatus" role="status" aria-live="polite"></span>
<div class="settings-sidebar-status">
<span class="view-sidebar-section-label">Speicherstatus</span>
@@ -9457,7 +9467,7 @@ function setupListeners() {
window.addEventListener('resize', () => {
window.cancelAnimationFrame(sidebarResizeFrame);
sidebarResizeFrame = window.requestAnimationFrame(() => {
document.querySelectorAll('.view.active .view-sidebar-navigation > .view-sidebar-item.active, .view.active .settings-navigation > .settings-nav-button.active').forEach(button => {
document.querySelectorAll('.view.active .view-sidebar-navigation > .view-sidebar-item.active, .view.active .settings-navigation .settings-nav-button.active').forEach(button => {
_syncSidebarIndicator(button, true);
});
});
+11
View File
@@ -4,6 +4,17 @@
if (root) root.I18n = api;
})(typeof window !== 'undefined' ? window : globalThis, function () {
const pairs = [
['Konfiguration', 'Configuration'],
['Grundlagen', 'Basics'],
['Verwaltung', 'Management'],
['Fenster, Sprache und Updates', 'Window, language and updates'],
['Leistung und Warteschlange', 'Performance and queue'],
['Wiederholungen und Ordner', 'Retries and folders'],
['Meldungen und Webhooks', 'Messages and webhooks'],
['Protokolle und Supportpakete', 'Logs and support packages'],
['Server und Verbindungen', 'Server and connections'],
['Zugriff und Freigaben', 'Access and permissions'],
['Sichern, importieren und exportieren', 'Back up, import and export'],
['Clouddrop-Log-Synchronisierung', 'Clouddrop log sync'],
['Der API-Key konnte nicht im sicheren Zugangsdaten-Speicher gesichert werden.', 'The API key could not be saved in secure credential storage.'],
['Clouddrop-API-Key', 'Clouddrop API key'],
+4
View File
@@ -23,6 +23,10 @@
<symbol id="icon-alert" viewBox="0 0 24 24"><path d="M12 3 2.8 20h18.4L12 3Zm0 6v5m0 3h.01"/></symbol>
<symbol id="icon-cloud" viewBox="0 0 24 24"><path d="M7.5 18H18a4 4 0 0 0 .5-7.97A6.5 6.5 0 0 0 6 8.5v.25A4.75 4.75 0 0 0 7.5 18Z"/></symbol>
<symbol id="icon-close" viewBox="0 0 24 24"><path d="m6 6 12 12M18 6 6 18"/></symbol>
<symbol id="icon-bell" viewBox="0 0 24 24"><path d="M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9M10 21h4"/></symbol>
<symbol id="icon-monitor" viewBox="0 0 24 24"><rect x="3" y="3" width="18" height="13" rx="2"/><path d="M8 21h8m-4-5v5"/></symbol>
<symbol id="icon-shield" viewBox="0 0 24 24"><path d="m12 3 8 3v6c0 5-8 9-8 9s-8-4-8-9V6l8-3Z"/><path d="m8 12 3 3 5-6"/></symbol>
<symbol id="icon-archive" viewBox="0 0 24 24"><path d="M4 8h16v13H4V8ZM3 3h18v5H3V3Zm6 9h6"/></symbol>
</svg>
<header class="app-header">
+150
View File
@@ -5543,3 +5543,153 @@ input[type="checkbox"] {
.cloud-log-key-row label { flex-basis: 100%; }
.cloud-log-status { grid-template-columns: minmax(0, 1fr); }
}
.settings-layout.settings-layout-grouped {
height: 100%;
grid-template-rows: minmax(0, 1fr);
grid-template-columns: 314px minmax(0, 1fr);
overflow: hidden;
}
.settings-container:has(.settings-layout-grouped) { overflow: hidden; }
.settings-hosters:has(.settings-layout-grouped) { flex: 1 1 0; min-height: 0; }
.settings-layout-grouped > .settings-content { overflow-y: auto; }
.settings-sidebar.settings-sidebar-grouped {
gap: 0;
padding: 0;
overflow: hidden;
border-right: 1px solid var(--border);
border-bottom: 0;
background: #202124;
color: #f1f4f9;
font: 400 14px/1.5 'Segoe UI', Arial, sans-serif;
}
.settings-sidebar-header {
flex: 0 0 auto;
padding: 20px;
background: #2d384c;
}
.settings-sidebar-header > span {
color: #b9c2d0;
font-size: 12px;
letter-spacing: .07em;
text-transform: uppercase;
}
.settings-sidebar-header h2 {
display: flex;
align-items: center;
gap: 9px;
margin: 5px 0 0;
font-size: 20px;
font-weight: 500;
line-height: 1.3;
}
.settings-sidebar-header svg,
.settings-nav-button > svg {
width: 18px;
height: 18px;
flex: none;
fill: none;
stroke: currentColor;
stroke-width: 1.8;
stroke-linecap: round;
stroke-linejoin: round;
}
.settings-sidebar-header svg { width: 20px; height: 20px; color: #b5ccff; }
.settings-sidebar-grouped .settings-search-wrap {
flex: 0 0 auto;
padding: 17px 16px 10px;
gap: 8px;
}
.settings-sidebar-grouped .settings-search-wrap > label {
color: #b9c2d0;
font-size: 12px;
font-weight: 400;
letter-spacing: normal;
text-transform: none;
}
.settings-sidebar-grouped #settingsSearchInput {
padding: 0 33px 0 8px;
height: 42px;
min-height: 42px;
font-size: 13px;
color: #f1f4f9;
background: #1b1c1f;
border-color: #42464f;
}
.settings-sidebar-grouped #settingsSearchInput::placeholder { color: #b9c2d0; opacity: 1; }
.settings-sidebar-grouped .settings-search-control { height: 42px; min-height: 42px; }
.settings-sidebar-grouped .settings-search-icon { right: 13px; color: #b9c2d0; }
.settings-sidebar-body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
}
.settings-sidebar-grouped .settings-navigation {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 0;
padding: 8px 14px 16px;
}
.settings-sidebar-grouped .settings-navigation[hidden] { display: none; }
.settings-navigation-group { display: grid; gap: 5px; }
.settings-navigation-group + .settings-navigation-group { padding-top: 9px; margin-top: 6px; border-top: 1px solid #42464f; }
.settings-navigation-group h3 { margin: 8px 12px 4px; color: #b9c2d0; font-size: 12px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.settings-sidebar-grouped .settings-nav-button {
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
align-items: start;
gap: 10px;
min-height: 66px;
padding: 10px 12px;
border: 1px solid transparent;
border-radius: 8px;
color: #d9dee8;
font-size: 14px;
font-weight: 400;
line-height: 21px;
}
.settings-sidebar-grouped .settings-nav-button > svg { margin-top: 3px; color: #b9c2d0; }
.settings-sidebar-grouped .settings-nav-button.active > svg { color: #b5ccff; }
.settings-sidebar-grouped .settings-nav-button:hover { background: #292b30; border-color: transparent; }
.settings-sidebar-grouped .settings-nav-button.active { background: transparent; color: #f1f4f9; }
.settings-sidebar-grouped .settings-nav-button[hidden] { display: none; }
.settings-sidebar-grouped .settings-nav-indicator { background: #2d384c; border-color: #536581; border-radius: 8px; }
.settings-nav-copy { min-width: 0; overflow-wrap: anywhere; }
.settings-nav-title { display: block; }
.settings-nav-description { display: block; margin-top: 3px; color: #b9c2d0; font-size: 12px; line-height: 18px; }
.settings-sidebar-grouped .settings-search-results { padding: 8px 14px 16px; overflow: visible; }
.settings-sidebar-grouped .settings-search-result { color: #d9dee8; font-size: 13px; }
.settings-sidebar-grouped .settings-search-empty { padding: 8px 16px 16px; margin: 0; color: #d9dee8; font-size: 13px; }
.settings-sidebar-grouped .settings-sidebar-status {
flex: 0 0 auto;
margin-top: 0;
padding: 16px 20px 19px;
border-color: #42464f;
gap: 7px;
}
.settings-sidebar-grouped .settings-sidebar-status .view-sidebar-section-label { color: #b9c2d0; font-size: 12px; font-weight: 400; letter-spacing: .07em; }
.settings-sidebar-grouped .settings-sidebar-status .save-feedback { display: block; color: #d9dee8; font-size: 13px; line-height: 20px; }
@media (max-width: 999px) {
.settings-layout.settings-layout-grouped { grid-template-columns: 276px minmax(0, 1fr); }
}