mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
refactor: move restart field from ServerInfo to ServerStatus
The restart reason belongs with other server state (shutting_down, restarting, update_progress) rather than on the top-level ServerInfo. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,6 @@ import type { Governor } from './Governor'
|
||||
import type { KeyboardOptions } from './KeyboardOptions'
|
||||
import type { LshwDevice } from './LshwDevice'
|
||||
import type { NetworkInfo } from './NetworkInfo'
|
||||
import type { RestartReason } from './RestartReason'
|
||||
import type { ServerStatus } from './ServerStatus'
|
||||
import type { SmtpValue } from './SmtpValue'
|
||||
|
||||
@@ -33,5 +32,4 @@ export type ServerInfo = {
|
||||
kiosk: boolean | null
|
||||
language: string | null
|
||||
keyboard: KeyboardOptions | null
|
||||
restart: RestartReason | null
|
||||
}
|
||||
|
||||
@@ -2,10 +2,12 @@
|
||||
import type { BackupProgress } from './BackupProgress'
|
||||
import type { FullProgress } from './FullProgress'
|
||||
import type { PackageId } from './PackageId'
|
||||
import type { RestartReason } from './RestartReason'
|
||||
|
||||
export type ServerStatus = {
|
||||
backupProgress: { [key: PackageId]: BackupProgress } | null
|
||||
updateProgress: FullProgress | null
|
||||
shuttingDown: boolean
|
||||
restarting: boolean
|
||||
restart: RestartReason | null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user