This commit is contained in:
Matt Hill
2025-02-10 22:41:29 -07:00
parent 95722802dc
commit 7d1096dbd8
32 changed files with 239 additions and 1044 deletions

View File

@@ -3,7 +3,16 @@ import { T } from '@start9labs/start-sdk'
export type DataModel = {
ui: UIData
serverInfo: ServerInfo
serverInfo: Omit<
T.Public['serverInfo'],
'wifi' | 'unreadNotificationCount'
> & {
network: NetworkInfo
unreadNotifications: {
count: number
recent: ServerNotifications
}
}
packageData: Record<string, PackageDataEntry>
}
@@ -17,7 +26,6 @@ export type UIData = {
}
ackInstructions: Record<string, boolean>
theme: string
desktop: readonly string[]
}
export type UIMarketplaceData = {
@@ -33,30 +41,6 @@ export type UIStore = {
name?: string
}
export type ServerInfo = {
id: string
version: string
country: string
ui: T.HostnameInfo[]
network: NetworkInfo
lastBackup: string | null
unreadNotifications: {
count: number
recent: ServerNotifications
}
statusInfo: ServerStatusInfo
eosVersionCompat: string
pubkey: string
caFingerprint: string
ntpSynced: boolean
smtp: T.SmtpValue | null
passwordHash: string
platform: string
arch: string
governor: string | null
zram: boolean
}
export type NetworkInfo = {
wifi: WiFiInfo
start9ToSubdomain: Omit<Domain, 'provider'> | null