feat(system): add server startup time and uptime tracking

- Introduced `started_at` and `uptime_seconds` fields to the `SystemInfo` structure for tracking server boot time and uptime.
- Updated the `GetSystemInfo` handler to populate these new fields based on server runtime.
- Enhanced the frontend to display server startup time and uptime in the system information view, improving visibility for users.
- Added localization support for new labels and descriptions related to server uptime and startup time in multiple languages.
This commit is contained in:
wizardchen
2026-06-03 20:51:03 +08:00
committed by lyingbug
parent f57449419c
commit 226a37330c
12 changed files with 224 additions and 5 deletions
+8
View File
@@ -1935,6 +1935,14 @@ export default {
buildTimeDescription: 'Время, когда система была собрана',
goVersionLabel: 'Версия Go',
goVersionDescription: 'Версия языка Go, используемая backend',
startedAtLabel: 'Время запуска сервиса',
startedAtDescription: 'Момент последнего запуска текущего процесса backend',
uptimeLabel: 'Время работы',
uptimeDescription: 'Непрерывное время работы с момента этого запуска',
uptimeDays: '{n} д',
uptimeHours: '{n} ч',
uptimeMinutes: '{n} мин',
uptimeSeconds: '{n} с',
dbVersionLabel: 'Версия базы данных',
dbVersionDescription: 'Текущая версия миграции базы данных',
dbMigrationFailedTag: 'Миграция не удалась',