Del: Update
This commit is contained in:
@@ -1,48 +0,0 @@
|
||||
// Package mock provides predefined appliance states for prototype validation.
|
||||
package mock
|
||||
|
||||
import (
|
||||
"github.com/nebara/nebara-os/internal/model"
|
||||
)
|
||||
|
||||
// State bundles all data required to render a complete TUI screen.
|
||||
type State struct {
|
||||
Appliance model.ApplianceInfo
|
||||
Message *model.SystemMessage
|
||||
InitialMenu int // zero-based index into model.MainMenu()
|
||||
}
|
||||
|
||||
// WarningState reproduces Figma mock state A.
|
||||
func WarningState() State {
|
||||
return State{
|
||||
Appliance: model.ApplianceInfo{
|
||||
ProductName: "Nebara S3GX Appliance",
|
||||
Version: "1.0.1",
|
||||
Hostname: "jkt-s3gx-lin-01.domain.local",
|
||||
Address: "10.249.23.13/26",
|
||||
Uptime: "132d 12h 32m",
|
||||
Status: "Healthy",
|
||||
},
|
||||
Message: &model.SystemMessage{
|
||||
Severity: model.SeverityWarning,
|
||||
Text: "[Warn] Update Available to version 2.1.4!",
|
||||
},
|
||||
InitialMenu: 2, // Security & Access
|
||||
}
|
||||
}
|
||||
|
||||
// NormalState reproduces Figma mock state B.
|
||||
func NormalState() State {
|
||||
return State{
|
||||
Appliance: model.ApplianceInfo{
|
||||
ProductName: "Nebara S3GX Appliance",
|
||||
Version: "2.1.4",
|
||||
Hostname: "sin-s3gx-lin-05.domain.local",
|
||||
Address: "10.175.15.11/25",
|
||||
Uptime: "111d 14h 21m",
|
||||
Status: "Healthy",
|
||||
},
|
||||
Message: nil,
|
||||
InitialMenu: 3, // System Maintenance
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user