Version 0.5.5.93: custom fields in lists, MeshCentral sync flag for statuses
- Show custom field values in asset list, dashboard and list Excel export - New status flag to exclude assets (e.g. scrapped) from MeshCentral sync - Require a secure SESSION_SECRET with a readable startup message - Add SESSION_COOKIE_SECURE and refresh session permissions per request - Translate HTTP errors and remaining fixed UI texts Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c3f1ef43db
commit
261b4f2029
35 files changed
+768
-308
No files matched your search
@@ -120,11 +120,11 @@
|
||||
|
||||
const selectedOption = select.options[select.selectedIndex];
|
||||
const fieldLabel = selectedOption?.textContent?.trim() || field;
|
||||
const duplicateTemplate = contextStatus?.dataset.duplicateTemplate || 'Duplikate: {field}';
|
||||
const duplicateTemplate = contextStatus?.dataset.duplicateTemplate || 'Duplicates: {field}';
|
||||
if (duplicateLabel) duplicateLabel.textContent = duplicateTemplate.replace('{field}', fieldLabel);
|
||||
refreshContextStatus();
|
||||
|
||||
const summaryTemplate = dialog.dataset.resultSummaryTemplate || '{records} Datensätze in {groups} Dublettengruppen gefunden.';
|
||||
const summaryTemplate = dialog.dataset.resultSummaryTemplate || '{records} records found in {groups} duplicate groups.';
|
||||
if (summary) {
|
||||
summary.textContent = summaryTemplate
|
||||
.replace('{records}', String(duplicateRows.size))
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
|
||||
function summary() {
|
||||
const sorted = [...results].sort((a, b) => (b.Dauer_ms || 0) - (a.Dauer_ms || 0));
|
||||
console.groupCollapsed(`${prefix} Zusammenfassung – langsamste Vorgänge`);
|
||||
console.groupCollapsed(`${prefix} Summary – slowest operations`);
|
||||
console.table(sorted.slice(0, 30));
|
||||
console.groupEnd();
|
||||
return sorted;
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
saveChain = saveChain
|
||||
.catch(() => {})
|
||||
.then(() => postState(updates, removals))
|
||||
.catch(error => console.warn('[AssetManager] Benutzerbezogener Tabellenzustand konnte nicht gespeichert werden.', error));
|
||||
.catch(error => console.warn('[AssetManager] User-specific table state could not be saved.', error));
|
||||
return saveChain;
|
||||
}
|
||||
|
||||
@@ -149,12 +149,12 @@
|
||||
});
|
||||
if (Object.keys(migration).length) {
|
||||
try { await postState(migration, []); }
|
||||
catch (error) { console.warn('[AssetManager] Vorhandener Browserzustand konnte nicht in das Benutzerkonto übernommen werden.', error); }
|
||||
catch (error) { console.warn('[AssetManager] Existing browser state could not be transferred to the user account.', error); }
|
||||
}
|
||||
} catch (error) {
|
||||
// Browser storage remains the safe fallback if the account-state endpoint
|
||||
// is temporarily unavailable.
|
||||
console.warn('[AssetManager] Benutzerbezogener Tabellenzustand nicht verfügbar; Browser-Fallback wird verwendet.', error);
|
||||
console.warn('[AssetManager] User-specific table state unavailable; using browser fallback.', error);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@
|
||||
: rows.length;
|
||||
const target = countTarget(table, index);
|
||||
if (target) {
|
||||
const template = document.body.dataset.recordCountTemplate || 'Angezeigt: {visible} von {total} Datensätzen';
|
||||
const template = document.body.dataset.recordCountTemplate || 'Showing {visible} of {total} records';
|
||||
target.textContent = template
|
||||
.replace('{visible}', String(visible))
|
||||
.replace('{total}', String(total));
|
||||
|
||||
@@ -569,7 +569,7 @@
|
||||
clearButton.type = 'button';
|
||||
clearButton.className = 'button button-secondary table-filter-clear';
|
||||
clearButton.textContent =
|
||||
document.body.dataset.clearFiltersLabel || 'Filter zurücksetzen';
|
||||
document.body.dataset.clearFiltersLabel || 'Reset filters';
|
||||
clearButton.addEventListener('click', () => {
|
||||
filterDefinitions.forEach(definition => {
|
||||
definition.input.value = '';
|
||||
@@ -614,7 +614,7 @@
|
||||
document.body.dataset.filtersActiveTemplate || '{count} Filter aktiv';
|
||||
const statusTemplate =
|
||||
document.body.dataset.filterStatusTemplate ||
|
||||
'Gefiltert: {visible} von {total} Datensätzen';
|
||||
'Filtered: {visible} of {total} records';
|
||||
|
||||
label.textContent = activeTemplate.replace('{count}', String(activeCount));
|
||||
details.textContent = statusTemplate
|
||||
|
||||
@@ -25,7 +25,8 @@
|
||||
const toast = document.createElement('div');
|
||||
toast.className = `toast toast-${level}`;
|
||||
const symbol = level === 'success' ? '✓' : level === 'warning' ? '⚠' : '✕';
|
||||
toast.innerHTML = `<span class="toast-symbol">${symbol}</span><span class="toast-message"></span><button type="button" class="toast-close" aria-label="Schließen">×</button>`;
|
||||
toast.innerHTML = `<span class="toast-symbol">${symbol}</span><span class="toast-message"></span><button type="button" class="toast-close">×</button>`;
|
||||
toast.querySelector('.toast-close').setAttribute('aria-label', document.body.dataset.toastCloseLabel || 'Close');
|
||||
toast.querySelector('.toast-message').textContent = message;
|
||||
toast.querySelector('.toast-close').addEventListener('click', () => toast.remove());
|
||||
container.appendChild(toast);
|
||||
|
||||
Reference in new issue
Block a user