bfg-common 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -45,3 +45,23 @@ export const vmIconByState = [
|
|
|
45
45
|
'vm-warning',
|
|
46
46
|
'vm-warning',
|
|
47
47
|
]
|
|
48
|
+
|
|
49
|
+
export const datastoreLocalizationByState = [
|
|
50
|
+
'unknown',
|
|
51
|
+
'connected',
|
|
52
|
+
'warning',
|
|
53
|
+
'error',
|
|
54
|
+
'maintenance',
|
|
55
|
+
'inaccessible',
|
|
56
|
+
'disconnected',
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
export const datastoreIconByState = [
|
|
60
|
+
'datastore-error',
|
|
61
|
+
'datastore',
|
|
62
|
+
'datastore-warning',
|
|
63
|
+
'datastore-error',
|
|
64
|
+
'datastore-maintenance',
|
|
65
|
+
'datastore-inaccessible',
|
|
66
|
+
'datastore-disconnected',
|
|
67
|
+
]
|
|
@@ -5,7 +5,7 @@ export interface UI_I_TreeNodeShort<T = string> {
|
|
|
5
5
|
type: T
|
|
6
6
|
}
|
|
7
7
|
export interface UI_I_TreeNode<N = UI_I_TreeNodeDuplicate, T = string> extends UI_I_TreeNodeShort<T> {
|
|
8
|
-
state: string
|
|
8
|
+
state: string | number // TODO только number
|
|
9
9
|
name: string
|
|
10
10
|
iconClassName: string
|
|
11
11
|
isActive: boolean
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { UI_I_Pagination } from '~/models/interfaces'
|
|
2
2
|
import type { UI_T_Schema } from '~/models/types'
|
|
3
|
-
import type { API_UI_T_VmState } from '~/models/store/types'
|
|
4
3
|
|
|
5
4
|
export interface UI_I_ErrorValidationField<T = string> {
|
|
6
5
|
error_message: string
|
|
@@ -18,7 +17,7 @@ export interface API_UI_I_Error {
|
|
|
18
17
|
export interface API_UI_I_Node {
|
|
19
18
|
id: string
|
|
20
19
|
name: string
|
|
21
|
-
state:
|
|
20
|
+
state: number
|
|
22
21
|
net_bridge?: string
|
|
23
22
|
console_type?: string
|
|
24
23
|
}
|
package/models/store/types.ts
CHANGED
|
@@ -6,6 +6,7 @@ export type API_UI_I_HostState =
|
|
|
6
6
|
| 4 // ICON: host-maintenance TEXT: Maintenance
|
|
7
7
|
| 5 // ICON: host-not-responding TEXT: Not Responding
|
|
8
8
|
| 6 // ICON: host-disconnected TEXT: Disconnected
|
|
9
|
+
export type UI_I_HostState = API_UI_I_HostState
|
|
9
10
|
|
|
10
11
|
export type API_UI_T_VmState =
|
|
11
12
|
| 0 // ICON: vm-error TEXT: Unknown
|
|
@@ -19,3 +20,13 @@ export type API_UI_T_VmState =
|
|
|
19
20
|
| 8 // ICON: vm-warning TEXT: Blocked
|
|
20
21
|
| 9 // ICON: vm-warning TEXT: Shutting Down
|
|
21
22
|
| 10 // ICON: vm-warning TEXT: Shutting Off
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export type API_UI_T_DatastoreState =
|
|
26
|
+
| 0 // ICON: datastore-error TEXT: Unknown
|
|
27
|
+
| 1 // ICON: datastore TEXT: Connected
|
|
28
|
+
| 2 // ICON: datastore-warning TEXT: Warning
|
|
29
|
+
| 3 // ICON: datastore-error TEXT: Error
|
|
30
|
+
| 4 // ICON: datastore-maintenance TEXT: Maintenance
|
|
31
|
+
| 5 // ICON: datastore-inaccessible TEXT: Inaccessible
|
|
32
|
+
| 6 // ICON: datastore-disconnected TEXT: Disconnected
|