Loading www/modules/dashboard.js +9 −9 Changes for www/modules/dashboard.js: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -8,17 +8,17 @@ webctl.translations({de: { 'Dashboard': 'Übersicht', 'up {0}': 'läuft seit {0}', 'Load': 'Last', 'Tasks': 'Prozesse', '{0} d {1} h': '{0} T. {1} Std.', '{0} h {1} min': '{0} Std. {1} Min.', '{0} min': '{0} Min.', 'CPU': 'CPU', 'Memory': 'Arbeitsspeicher', 'System disk': 'Systemplatte', 'Temperature': 'Temperatur', 'CPU': 'CPU', 'RAM': 'Arbeitsspeicher', 'System disk': 'Systemplatte', 'Temperature': 'Temperatur', 'Network': 'Netzwerk', '{0} cores': '{0} Kerne', 'user {0} · system {1} · I/O wait {2}': 'Benutzer {0} · System {1} · I/O-Warten {2}', '{0} of {1}': '{0} von {1}', 'cache {0}': 'Cache {0}', 'Swap {0} of {1}': 'Swap {0} von {1}', 'no swap': 'kein Swap', '{0} free': '{0} frei', 'hottest: {0}': 'am wärmsten: {0}', 'no sensors': 'keine Sensoren', 'CPU cores': 'CPU-Kerne', 'core {0}': 'Kern {0}', 'Traffic': 'Datenverkehr', 'received': 'empfangen', 'sent': 'gesendet', 'Disk I/O': 'Platten-I/O', 'read': 'gelesen', 'written': 'geschrieben', 'Disk I/O': 'Platten-I/O', 'Read': 'Gelesen', 'Written': 'Geschrieben', 'File systems': 'Dateisysteme', 'Mount point': 'Einhängepunkt', 'Device': 'Gerät', 'Type': 'Typ', 'Used': 'Belegt', 'Free': 'Frei', 'Size': 'Größe', 'Inodes': 'Inodes', 'almost full': 'fast voll', 'full': 'voll', 'not responding': 'antwortet nicht', 'Interface': 'Schnittstelle', 'Link': 'Verbindung', 'Received': 'Empfangen', 'not responding': 'antwortet nicht', 'Interface': 'Interface', 'Link': 'Verbindung', 'Received': 'Empfangen', 'Sent': 'Gesendet', 'Total': 'Gesamt', 'Sensors': 'Sensoren', 'critical at {0}': 'kritisch ab {0}', '{0} ago': 'vor {0}', 'now': 'jetzt', 'Collecting data …': 'Sammle Daten …', 'down': 'getrennt', 'up': 'verbunden', '{0} ago': 'vor {0}', 'now': 'jetzt', 'Collecting data …': 'Sammle Daten …', 'disconnected': 'getrennt', 'connected': 'verbunden', 'No connection to the server.': 'Keine Verbindung zum Server.', }}); Loading Loading @@ -213,12 +213,12 @@ ui.host = h('div', {class: 'dash-host'}); ui.facts = h('div', {class: 'dash-facts'}); ui.cpu = card(t('CPU'), '⚙', true); ui.mem = card(t('Memory'), '▤', true); ui.mem = card(t('RAM'), '▤', true); ui.disk = card(t('System disk'), '⛁', false); ui.temp = card(t('Temperature'), '🌡', true); ui.cores = h('div', {class: 'cores'}); ui.net = lineChart([{key: 'rx', label: t('received'), color: 's1'}, {key: 'tx', label: t('sent'), color: 's2'}], bitRate); ui.io = lineChart([{key: 'read', label: t('read'), color: 's1'}, {key: 'write', label: t('written'), color: 's2'}], byteRate); ui.io = lineChart([{key: 'read', label: t('Read'), color: 's1'}, {key: 'write', label: t('Written'), color: 's2'}], byteRate); ui.fs = h('div', {}); ui.ifaces = h('div', {}); ui.sensors = h('div', {}); Loading Loading @@ -280,8 +280,8 @@ ui.disk.gauge.set(0, '–'); } ui.disk.extra.replaceChildren(h('div', {class: 'meter-line'}, h('span', {}, t('read') + ' ', h('b', {}, byteRate(hist.read[hist.read.length - 1] || 0))), h('span', {}, t('written') + ' ', h('b', {}, byteRate(hist.write[hist.write.length - 1] || 0))))); h('span', {}, t('Read') + ' ', h('b', {}, byteRate(hist.read[hist.read.length - 1] || 0))), h('span', {}, t('Written') + ' ', h('b', {}, byteRate(hist.write[hist.write.length - 1] || 0))))); // the hottest sensor, as a share of its critical point (else of 100 °C) const sensors = st.sensors || []; Loading Loading @@ -329,7 +329,7 @@ ui.ifaces.replaceChildren(webctl.table([ {title: t('Interface'), render: n => h('strong', {class: 'mono'}, n.name)}, {title: t('Link'), render: n => h('span', {class: 'badge ' + (n.state === 'up' ? 'ok' : n.state === 'down' ? 'danger' : '')}, n.state === 'up' || n.state === 'down' ? t(n.state) : n.state || '?', n.speed ? ' · ' + linkSpeed(n.speed) : '')}, n.state === 'up' ? t('connected') : n.state === 'down' ? t('disconnected') : n.state || '?', n.speed ? ' · ' + linkSpeed(n.speed) : '')}, {title: t('Received'), class: 'num', render: n => bitRate(n.rx * 8)}, {title: t('Sent'), class: 'num', render: n => bitRate(n.tx * 8)}, {title: t('Total'), class: 'num', render: n => h('span', {class: 'muted'}, '↓ ' + bytes(n.rxTotal) + ' · ↑ ' + bytes(n.txTotal))}, Loading Loading
www/modules/dashboard.js +9 −9 Changes for www/modules/dashboard.js: 9 added lines, 9 removed lines. Original line number Diff line number Diff line Loading @@ -8,17 +8,17 @@ webctl.translations({de: { 'Dashboard': 'Übersicht', 'up {0}': 'läuft seit {0}', 'Load': 'Last', 'Tasks': 'Prozesse', '{0} d {1} h': '{0} T. {1} Std.', '{0} h {1} min': '{0} Std. {1} Min.', '{0} min': '{0} Min.', 'CPU': 'CPU', 'Memory': 'Arbeitsspeicher', 'System disk': 'Systemplatte', 'Temperature': 'Temperatur', 'CPU': 'CPU', 'RAM': 'Arbeitsspeicher', 'System disk': 'Systemplatte', 'Temperature': 'Temperatur', 'Network': 'Netzwerk', '{0} cores': '{0} Kerne', 'user {0} · system {1} · I/O wait {2}': 'Benutzer {0} · System {1} · I/O-Warten {2}', '{0} of {1}': '{0} von {1}', 'cache {0}': 'Cache {0}', 'Swap {0} of {1}': 'Swap {0} von {1}', 'no swap': 'kein Swap', '{0} free': '{0} frei', 'hottest: {0}': 'am wärmsten: {0}', 'no sensors': 'keine Sensoren', 'CPU cores': 'CPU-Kerne', 'core {0}': 'Kern {0}', 'Traffic': 'Datenverkehr', 'received': 'empfangen', 'sent': 'gesendet', 'Disk I/O': 'Platten-I/O', 'read': 'gelesen', 'written': 'geschrieben', 'Disk I/O': 'Platten-I/O', 'Read': 'Gelesen', 'Written': 'Geschrieben', 'File systems': 'Dateisysteme', 'Mount point': 'Einhängepunkt', 'Device': 'Gerät', 'Type': 'Typ', 'Used': 'Belegt', 'Free': 'Frei', 'Size': 'Größe', 'Inodes': 'Inodes', 'almost full': 'fast voll', 'full': 'voll', 'not responding': 'antwortet nicht', 'Interface': 'Schnittstelle', 'Link': 'Verbindung', 'Received': 'Empfangen', 'not responding': 'antwortet nicht', 'Interface': 'Interface', 'Link': 'Verbindung', 'Received': 'Empfangen', 'Sent': 'Gesendet', 'Total': 'Gesamt', 'Sensors': 'Sensoren', 'critical at {0}': 'kritisch ab {0}', '{0} ago': 'vor {0}', 'now': 'jetzt', 'Collecting data …': 'Sammle Daten …', 'down': 'getrennt', 'up': 'verbunden', '{0} ago': 'vor {0}', 'now': 'jetzt', 'Collecting data …': 'Sammle Daten …', 'disconnected': 'getrennt', 'connected': 'verbunden', 'No connection to the server.': 'Keine Verbindung zum Server.', }}); Loading Loading @@ -213,12 +213,12 @@ ui.host = h('div', {class: 'dash-host'}); ui.facts = h('div', {class: 'dash-facts'}); ui.cpu = card(t('CPU'), '⚙', true); ui.mem = card(t('Memory'), '▤', true); ui.mem = card(t('RAM'), '▤', true); ui.disk = card(t('System disk'), '⛁', false); ui.temp = card(t('Temperature'), '🌡', true); ui.cores = h('div', {class: 'cores'}); ui.net = lineChart([{key: 'rx', label: t('received'), color: 's1'}, {key: 'tx', label: t('sent'), color: 's2'}], bitRate); ui.io = lineChart([{key: 'read', label: t('read'), color: 's1'}, {key: 'write', label: t('written'), color: 's2'}], byteRate); ui.io = lineChart([{key: 'read', label: t('Read'), color: 's1'}, {key: 'write', label: t('Written'), color: 's2'}], byteRate); ui.fs = h('div', {}); ui.ifaces = h('div', {}); ui.sensors = h('div', {}); Loading Loading @@ -280,8 +280,8 @@ ui.disk.gauge.set(0, '–'); } ui.disk.extra.replaceChildren(h('div', {class: 'meter-line'}, h('span', {}, t('read') + ' ', h('b', {}, byteRate(hist.read[hist.read.length - 1] || 0))), h('span', {}, t('written') + ' ', h('b', {}, byteRate(hist.write[hist.write.length - 1] || 0))))); h('span', {}, t('Read') + ' ', h('b', {}, byteRate(hist.read[hist.read.length - 1] || 0))), h('span', {}, t('Written') + ' ', h('b', {}, byteRate(hist.write[hist.write.length - 1] || 0))))); // the hottest sensor, as a share of its critical point (else of 100 °C) const sensors = st.sensors || []; Loading Loading @@ -329,7 +329,7 @@ ui.ifaces.replaceChildren(webctl.table([ {title: t('Interface'), render: n => h('strong', {class: 'mono'}, n.name)}, {title: t('Link'), render: n => h('span', {class: 'badge ' + (n.state === 'up' ? 'ok' : n.state === 'down' ? 'danger' : '')}, n.state === 'up' || n.state === 'down' ? t(n.state) : n.state || '?', n.speed ? ' · ' + linkSpeed(n.speed) : '')}, n.state === 'up' ? t('connected') : n.state === 'down' ? t('disconnected') : n.state || '?', n.speed ? ' · ' + linkSpeed(n.speed) : '')}, {title: t('Received'), class: 'num', render: n => bitRate(n.rx * 8)}, {title: t('Sent'), class: 'num', render: n => bitRate(n.tx * 8)}, {title: t('Total'), class: 'num', render: n => h('span', {class: 'muted'}, '↓ ' + bytes(n.rxTotal) + ' · ↑ ' + bytes(n.txTotal))}, Loading