Merge branch 'next/minor' of github.com:Start9Labs/start-os into next/major

This commit is contained in:
Matt Hill
2024-08-28 15:49:28 -06:00
130 changed files with 4839 additions and 2114 deletions

View File

@@ -42,7 +42,7 @@ import { TuiIcon, TuiLoader } from '@taiga-ui/core'
})
export class ServiceHealthCheckComponent {
@Input({ required: true })
check!: T.HealthCheckResult
check!: T.NamedHealthCheckResult
@Input()
connected = false

View File

@@ -31,7 +31,7 @@ import { ConnectionService } from 'src/app/services/connection.service'
})
export class ServiceHealthChecksComponent {
@Input({ required: true })
checks: readonly T.HealthCheckResult[] = []
checks: readonly T.NamedHealthCheckResult[] = []
readonly connected$ = inject(ConnectionService)
}

View File

@@ -329,7 +329,7 @@ export class ServiceRoute {
}
}
function toHealthCheck(main: T.MainStatus): T.HealthCheckResult[] | null {
function toHealthCheck(main: T.MainStatus): T.NamedHealthCheckResult[] | null {
return main.status !== 'running' || isEmptyObject(main.health)
? null
: Object.values(main.health)

View File

@@ -35,7 +35,6 @@ export class StartOsUiComponent {
description: 'The primary web user interface for StartOS',
type: 'ui',
hasPrimary: false,
disabled: false,
masked: false,
addressInfo: {
hostId: '',

View File

@@ -89,6 +89,8 @@ export module Mock {
title: 'Bitcoin Core',
version: '0.21.0:0',
satisfies: [],
canMigrateTo: '!',
canMigrateFrom: '*',
gitHash: 'abcdefgh',
description: {
short: 'A Bitcoin full node by Bitcoin Core.',
@@ -133,6 +135,8 @@ export module Mock {
title: 'Lightning Network Daemon',
version: '0.11.1:0',
satisfies: [],
canMigrateTo: '!',
canMigrateFrom: '*',
gitHash: 'abcdefgh',
description: {
short: 'A bolt spec compliant client.',
@@ -189,6 +193,8 @@ export module Mock {
title: 'Bitcoin Proxy',
version: '0.2.2:0',
satisfies: [],
canMigrateTo: '!',
canMigrateFrom: '*',
gitHash: 'lmnopqrx',
description: {
short: 'A super charger for your Bitcoin node.',
@@ -1693,6 +1699,7 @@ export module Mock {
state: 'installed',
manifest: MockManifestBitcoind,
},
dataVersion: MockManifestBitcoind.version,
icon: '/assets/img/service-icons/bitcoind.svg',
installedAt: new Date().toISOString(),
lastBackup: null,
@@ -1710,7 +1717,6 @@ export module Mock {
ui: {
id: 'ui',
hasPrimary: false,
disabled: false,
masked: false,
name: 'Web UI',
description:
@@ -1728,7 +1734,6 @@ export module Mock {
rpc: {
id: 'rpc',
hasPrimary: false,
disabled: false,
masked: false,
name: 'RPC',
description:
@@ -1746,7 +1751,6 @@ export module Mock {
p2p: {
id: 'p2p',
hasPrimary: true,
disabled: false,
masked: false,
name: 'P2P',
description:
@@ -1875,6 +1879,7 @@ export module Mock {
state: 'installed',
manifest: MockManifestBitcoinProxy,
},
dataVersion: MockManifestBitcoinProxy.version,
icon: '/assets/img/service-icons/btc-rpc-proxy.png',
installedAt: new Date().toISOString(),
lastBackup: null,
@@ -1890,7 +1895,6 @@ export module Mock {
ui: {
id: 'ui',
hasPrimary: false,
disabled: false,
masked: false,
name: 'Web UI',
description: 'A launchable web app for Bitcoin Proxy',
@@ -1927,6 +1931,7 @@ export module Mock {
state: 'installed',
manifest: MockManifestLnd,
},
dataVersion: MockManifestLnd.version,
icon: '/assets/img/service-icons/lnd.png',
installedAt: new Date().toISOString(),
lastBackup: null,
@@ -1942,7 +1947,6 @@ export module Mock {
grpc: {
id: 'grpc',
hasPrimary: false,
disabled: false,
masked: false,
name: 'GRPC',
description:
@@ -1960,7 +1964,6 @@ export module Mock {
lndconnect: {
id: 'lndconnect',
hasPrimary: false,
disabled: false,
masked: true,
name: 'LND Connect',
description:
@@ -1978,7 +1981,6 @@ export module Mock {
p2p: {
id: 'p2p',
hasPrimary: true,
disabled: false,
masked: false,
name: 'P2P',
description:

View File

@@ -691,7 +691,7 @@ export type DependencyErrorConfigUnsatisfied = {
export type DependencyErrorHealthChecksFailed = {
type: 'healthChecksFailed'
check: T.HealthCheckResult
check: T.NamedHealthCheckResult
}
export type DependencyErrorTransitive = {

View File

@@ -148,6 +148,7 @@ export const mockPatchData: DataModel = {
version: '0.20.0:0',
},
},
dataVersion: '0.20.0:0',
icon: '/assets/img/service-icons/bitcoind.svg',
installedAt: new Date().toISOString(),
lastBackup: new Date(new Date().valueOf() - 604800001).toISOString(),
@@ -191,7 +192,6 @@ export const mockPatchData: DataModel = {
ui: {
id: 'ui',
hasPrimary: false,
disabled: false,
masked: false,
name: 'Web UI',
description:
@@ -209,7 +209,6 @@ export const mockPatchData: DataModel = {
rpc: {
id: 'rpc',
hasPrimary: false,
disabled: false,
masked: false,
name: 'RPC',
description:
@@ -227,7 +226,6 @@ export const mockPatchData: DataModel = {
p2p: {
id: 'p2p',
hasPrimary: true,
disabled: false,
masked: false,
name: 'P2P',
description:
@@ -358,6 +356,7 @@ export const mockPatchData: DataModel = {
version: '0.11.0:0.0.1',
},
},
dataVersion: '0.11.0:0.0.1',
icon: '/assets/img/service-icons/lnd.png',
installedAt: new Date().toISOString(),
lastBackup: null,
@@ -373,7 +372,6 @@ export const mockPatchData: DataModel = {
grpc: {
id: 'grpc',
hasPrimary: false,
disabled: false,
masked: false,
name: 'GRPC',
description:
@@ -391,7 +389,6 @@ export const mockPatchData: DataModel = {
lndconnect: {
id: 'lndconnect',
hasPrimary: false,
disabled: false,
masked: true,
name: 'LND Connect',
description:
@@ -409,7 +406,6 @@ export const mockPatchData: DataModel = {
p2p: {
id: 'p2p',
hasPrimary: true,
disabled: false,
masked: false,
name: 'P2P',
description: