Fix device issues and document current LAN deployment
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
@media(max-width:760px){.config-grid-three{grid-template-columns:1fr}.config-grid-three .panel:first-child{grid-column:auto}.config-row{align-items:flex-start}.config-row form{padding-top:6px}}
|
||||
|
||||
/* Fixierter Listenarbeitsbereich */
|
||||
.device-list-page{height:100vh;overflow:hidden}.device-list-page .main{height:100vh;min-height:0;display:flex;flex-direction:column;padding-bottom:12px}.device-list-page .page-head,.device-list-page .toolbar{flex:0 0 auto}.device-list-page #device-table-container{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}.device-list-page #device-table-container .table-shell{flex:1 1 auto;min-height:0;overflow:auto}.device-list-page #device-table-container .pagination{flex:0 0 auto;margin:0;padding:10px 2px 0}.device-list-page .device-table th{top:0;z-index:6}.device-list-page .table-shell{scrollbar-gutter:stable}
|
||||
.device-list-page{min-height:100vh}.device-list-page .main{height:100vh;min-height:600px;display:flex;flex-direction:column;padding-bottom:12px}.device-list-page .page-head,.device-list-page .toolbar,.device-list-page .main>nav{flex:0 0 auto}.device-list-page #device-table-container{display:flex;flex:1 0 240px;min-height:240px;flex-direction:column}.device-list-page #device-table-container .table-shell{flex:1 1 auto;min-height:0;overflow:auto}.device-list-page #device-table-container .pagination{flex:0 0 auto;margin:0;padding:10px 2px 0}.device-list-page .device-table th{top:0;z-index:6}.device-list-page .table-shell{scrollbar-gutter:stable}
|
||||
|
||||
/* Bearbeitbare Statusfarben */
|
||||
.status-colored{color:var(--status-color);background:color-mix(in srgb,var(--status-color) 12%,white);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--status-color) 24%,white)}.status-color-dot{display:inline-block;width:11px;height:11px;flex:0 0 auto;border-radius:50%;background:var(--status-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--status-color) 13%,white)}.config-value-label{flex-direction:row!important;align-items:center;gap:9px}.color-field{border:0;margin:0;padding:0}.color-field legend{font-size:13px;font-weight:600;margin-bottom:7px}.color-field>small{display:block;color:var(--muted);margin-top:7px}.color-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.color-option{position:relative;min-height:48px;display:flex!important;flex-direction:row!important;align-items:center;gap:8px;padding:8px 9px;border:1px solid #d0d5dd;border-radius:7px;cursor:pointer;font-weight:600}.color-option:hover{background:#f8fafc}.color-option:has(input:checked){border-color:var(--choice-color);box-shadow:0 0 0 3px color-mix(in srgb,var(--choice-color) 14%,white)}.color-option input{position:absolute;opacity:0;width:1px!important;min-height:1px!important}.color-option i{width:18px;height:18px;flex:0 0 auto;border-radius:50%;background:var(--choice-color);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}.color-option span{font-size:12px}
|
||||
|
||||
@@ -221,7 +221,7 @@
|
||||
const legacyVisible=readJSON(localStorage.getItem("csr-visible-columns"),null);
|
||||
const storedVisible=Array.isArray(localVisible)?localVisible:(serverVisible.length?serverVisible:legacyVisible);
|
||||
const visibilityUpgradeKey=`csr-complete-list-columns-${userKey}`;
|
||||
const visible=new Set((storedVisible||availableKeys).filter(key=>availableKeys.includes(key)));
|
||||
const visible=new Set(storedVisible||availableKeys);
|
||||
if(!localStorage.getItem(visibilityUpgradeKey)){
|
||||
requiredPhotoColumns.forEach(key=>visible.add(key));
|
||||
localStorage.setItem(visibilityUpgradeKey,"1");
|
||||
@@ -229,6 +229,12 @@
|
||||
localStorage.setItem(visibleStorageKey,JSON.stringify(migratedVisible));
|
||||
savePreferences({visible_columns:migratedVisible});
|
||||
}
|
||||
const knownColumnsKey=`csr-known-columns-${userKey}`;
|
||||
const knownColumns=readJSON(localStorage.getItem(knownColumnsKey),null);
|
||||
const previouslyKnown=Array.isArray(knownColumns)?knownColumns:(storedOrder||[]).filter(key=>!key.startsWith("custom_"));
|
||||
availableKeys.filter(key=>!previouslyKnown.includes(key)).forEach(key=>visible.add(key));
|
||||
localStorage.setItem(knownColumnsKey,JSON.stringify([...new Set([...previouslyKnown,...availableKeys])]));
|
||||
localStorage.setItem(visibleStorageKey,JSON.stringify([...visible]));
|
||||
const applyVisibility=()=>columns.forEach(column=>container.querySelectorAll(`[data-column="${column.key}"]`).forEach(element=>element.style.display=visible.has(column.key)?"":"none"));
|
||||
|
||||
panel.replaceChildren();
|
||||
@@ -243,7 +249,7 @@
|
||||
check.checked=visible.has(column.key);
|
||||
check.addEventListener("change",()=>{
|
||||
check.checked?visible.add(column.key):visible.delete(column.key);
|
||||
const values=order.filter(key=>visible.has(key));
|
||||
const values=[...visible];
|
||||
localStorage.setItem(visibleStorageKey,JSON.stringify(values));
|
||||
savePreferences({visible_columns:values});
|
||||
applyVisibility();
|
||||
|
||||
Reference in New Issue
Block a user