mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
Update/040 types (#2845)
* small type changes and clear todos * handle notifications and metrics * wip * fixes * migration * dedup all urls * better handling of clearnet ips * add rfkill dependency --------- Co-authored-by: Matt Hill <mattnine@protonmail.com>
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
import { T } from '@start9labs/start-sdk'
|
||||
|
||||
export type DataModel = Omit<T.Public, 'serverInfo'> & {
|
||||
ui: UIData
|
||||
// @TODO 040
|
||||
serverInfo: Omit<
|
||||
T.Public['serverInfo'],
|
||||
'wifi' | 'networkInterfaces' | 'host'
|
||||
> & {
|
||||
network: NetworkInfo
|
||||
}
|
||||
packageData: Record<string, PackageDataEntry>
|
||||
}
|
||||
export type DataModel = T.Public & { ui: UIData; packageData: AllPackageData }
|
||||
|
||||
export type UIData = {
|
||||
name: string | null
|
||||
@@ -37,20 +27,7 @@ export type UIStore = {
|
||||
name?: string
|
||||
}
|
||||
|
||||
export type NetworkInfo = {
|
||||
wifi: T.WifiInfo & { enabled: boolean }
|
||||
host: T.Host
|
||||
networkInterfaces: {
|
||||
[id: string]: {
|
||||
inbound: boolean | null
|
||||
outbound: boolean | null
|
||||
ipInfo:
|
||||
| (T.IpInfo & {
|
||||
name: string
|
||||
})
|
||||
| null
|
||||
}
|
||||
}
|
||||
export type NetworkInfo = T.NetworkInfo & {
|
||||
// @TODO 041
|
||||
// start9To: {
|
||||
// subdomain: string
|
||||
|
||||
Reference in New Issue
Block a user