feat(system): health-Endpoint liefert jetzt hostname + OS + kernel
- /system/health gibt zusätzlich hostname, os (PRETTY_NAME aus /etc/os-release) und kernel (/proc/version, ohne Build-Details) zurück - Settings-Seite: SystemHealth-Interface erweitert, System-Info-Card zeigt Hostname, Betriebssystem und Kernel-Version an (conditional, nur wenn vorhanden) - Nützlich beim Verwalten mehrerer Boxen — ohne SSH sofort sehen welches System gerade geöffnet ist Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,6 +23,9 @@ interface ContactEmailValues {
|
||||
interface SystemHealth {
|
||||
status: string
|
||||
version: string
|
||||
hostname?: string
|
||||
kernel?: string
|
||||
os?: string
|
||||
}
|
||||
|
||||
interface ChangePasswordValues {
|
||||
@@ -329,6 +332,9 @@ export default function SettingsPage() {
|
||||
<Descriptions column={1}>
|
||||
<Descriptions.Item label={t('settings.version')}>{health?.version ?? '—'}</Descriptions.Item>
|
||||
<Descriptions.Item label={t('settings.status')}>{health?.status ?? '—'}</Descriptions.Item>
|
||||
{health?.hostname && <Descriptions.Item label={t('settings.hostname')}><code>{health.hostname}</code></Descriptions.Item>}
|
||||
{health?.os && <Descriptions.Item label={t('settings.os')}>{health.os}</Descriptions.Item>}
|
||||
{health?.kernel && <Descriptions.Item label={t('settings.kernel')}><code style={{ fontSize: 11 }}>{health.kernel}</code></Descriptions.Item>}
|
||||
{dbSize && (
|
||||
<Descriptions.Item label={t('settings.dbSize')}>
|
||||
<Space direction="vertical" size={2}>
|
||||
|
||||
Reference in New Issue
Block a user