Skip to content

Commit ce89bfc

Browse files
committed
checkpt
1 parent bcdfe30 commit ce89bfc

9 files changed

Lines changed: 18 additions & 6 deletions

File tree

web/js/components/preact/system/StreamStorage.jsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,15 @@ export function StreamStorage({ systemInfo, formatBytes }) {
7575
{streamStorageData.map((stream, index) => {
7676
const color = getStreamColor(index);
7777
return (
78-
<span
78+
<a
7979
key={stream.name}
80-
className="inline-block px-2 py-0.5 text-xs rounded"
80+
href={`recordings.html?stream=${encodeURIComponent(stream.name)}`}
81+
className="inline-block px-2 py-0.5 text-xs rounded hover:opacity-80 transition-opacity cursor-pointer"
8182
style={{ backgroundColor: color.bg, color: color.text }}
83+
title={t('system.viewRecordingsForStream', { stream: stream.name })}
8284
>
8385
{stream.name}: {formatBytes(stream.size)}
84-
</span>
86+
</a>
8587
);
8688
})}
8789
</div>
@@ -97,11 +99,13 @@ export function StreamStorage({ systemInfo, formatBytes }) {
9799
{streamStorageData.map((stream, index) => {
98100
const color = getStreamColor(index);
99101
return (
100-
<div
102+
<a
101103
key={stream.name}
102-
className="h-2.5"
104+
href={`recordings.html?stream=${encodeURIComponent(stream.name)}`}
105+
className="h-2.5 block hover:opacity-70 transition-opacity cursor-pointer"
103106
style={{ width: `${stream.slicePercent}%`, backgroundColor: color.text }}
104-
></div>
107+
title={t('system.viewRecordingsForStream', { stream: stream.name })}
108+
></a>
105109
);
106110
})}
107111
</div>

web/public/locales/de.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"system.unhealthy": "Nicht betriebsbereit",
124124
"system.version": "Version",
125125
"system.uptime": "Laufzeit",
126+
"system.viewRecordingsForStream": "Aufnahmen für Stream anzeigen: {stream}",
126127
"zoneEditor.title": "Erkennungszonen-Editor",
127128
"zoneEditor.subtitle": "Zeichnen Sie Zonen, in denen Objekte für {streamName} erkannt werden sollen",
128129
"zoneEditor.drawZone": "Zone zeichnen",

web/public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,7 @@
447447
"system.noQuota": "no quota",
448448
"system.streamStorageRecordingsSummary": "{size} ({percent}%) • {count} recordings",
449449
"system.retentionAndQuota": "Retention: {retention} • {quota}",
450+
"system.viewRecordingsForStream": "View recordings for stream: {stream}",
450451
"system.storageHealth": "Storage Health",
451452
"system.storageHealthUnavailable": "Storage health data unavailable",
452453
"system.diskPressure": "Disk Pressure",

web/public/locales/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@
456456
"system.noQuota": "sin cuota",
457457
"system.streamStorageRecordingsSummary": "{size} ({percent}%) • {count} grabaciones",
458458
"system.retentionAndQuota": "Retención: {retention} • Cuota: {quota}",
459+
"system.viewRecordingsForStream": "Ver grabaciones del stream: {stream}",
459460
"system.storageHealth": "Estado del almacenamiento",
460461
"system.storageHealthUnavailable": "Datos de estado del almacenamiento no disponibles",
461462
"system.diskPressure": "Presión de disco",

web/public/locales/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"system.unhealthy": "Non opérationnel",
124124
"system.version": "Version",
125125
"system.uptime": "Temps de fonctionnement",
126+
"system.viewRecordingsForStream": "Voir les enregistrements du stream : {stream}",
126127
"zoneEditor.title": "Éditeur de zones de détection",
127128
"zoneEditor.subtitle": "Dessinez les zones où vous souhaitez détecter des objets pour {streamName}",
128129
"zoneEditor.drawZone": "Dessiner une zone",

web/public/locales/it.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"system.unhealthy": "Non operativo",
124124
"system.version": "Versione",
125125
"system.uptime": "Tempo di attività",
126+
"system.viewRecordingsForStream": "Visualizza registrazioni per lo stream: {stream}",
126127
"zoneEditor.title": "Editor zone di rilevamento",
127128
"zoneEditor.subtitle": "Disegna le zone in cui vuoi rilevare oggetti per {streamName}",
128129
"zoneEditor.drawZone": "Disegna zona",

web/public/locales/ja.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"system.unhealthy": "異常",
124124
"system.version": "バージョン",
125125
"system.uptime": "稼働時間",
126+
"system.viewRecordingsForStream": "ストリームの録画を表示: {stream}",
126127
"zoneEditor.title": "検出ゾーンエディター",
127128
"zoneEditor.subtitle": "{streamName} の物体検出用ゾーンを描画します",
128129
"zoneEditor.drawZone": "ゾーンを描画",

web/public/locales/pt-BR.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@
446446
"system.noQuota": "sem cota",
447447
"system.streamStorageRecordingsSummary": "{size} ({percent}%) • {count} gravações",
448448
"system.retentionAndQuota": "Retenção: {retention} • {quota}",
449+
"system.viewRecordingsForStream": "Ver gravações do stream: {stream}",
449450
"system.storageHealth": "Saúde do armazenamento",
450451
"system.storageHealthUnavailable": "Dados de saúde do armazenamento indisponíveis",
451452
"system.diskPressure": "Pressão do disco",

web/public/locales/zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
"system.unhealthy": "异常",
124124
"system.version": "版本",
125125
"system.uptime": "运行时间",
126+
"system.viewRecordingsForStream": "查看流的录像: {stream}",
126127
"zoneEditor.title": "检测区域编辑器",
127128
"zoneEditor.subtitle": "为 {streamName} 绘制需要检测物体的区域",
128129
"zoneEditor.drawZone": "绘制区域",

0 commit comments

Comments
 (0)