bfg-common 1.1.14 → 1.1.15

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.
@@ -1,3 +1,23 @@
1
+ export const hostLocalizationByState = [
2
+ 'unknown',
3
+ 'connected',
4
+ 'warning',
5
+ 'error',
6
+ 'maintenance',
7
+ 'notResponding',
8
+ 'disconnected',
9
+ ]
10
+
11
+ export const hostIconByState = [
12
+ 'host-error',
13
+ 'host',
14
+ 'host-warning',
15
+ 'host-error',
16
+ 'host-maintenance',
17
+ 'host-not-responding',
18
+ 'host-disconnected',
19
+ ]
20
+
1
21
  export const vmLocalizationByState = [
2
22
  'unknown',
3
23
  'powerOff',
@@ -1,6 +1,6 @@
1
1
  import type { UI_I_Pagination } from '~/models/interfaces'
2
2
  import type { UI_T_Schema } from '~/models/types'
3
- import type { UI_T_VmState } from '~/models/store/types'
3
+ import type { API_UI_T_VmState } from '~/models/store/types'
4
4
 
5
5
  export interface UI_I_ErrorValidationField<T = string> {
6
6
  error_message: string
@@ -18,7 +18,7 @@ export interface API_UI_I_Error {
18
18
  export interface API_UI_I_Node {
19
19
  id: string
20
20
  name: string
21
- state: UI_T_VmState
21
+ state: API_UI_T_VmState
22
22
  net_bridge?: string
23
23
  console_type?: string
24
24
  }
@@ -1,4 +1,13 @@
1
- export type UI_T_VmState =
1
+ export type API_UI_I_HostState =
2
+ | 0 // ICON: host-error TEXT: Unknown
3
+ | 1 // ICON: host TEXT: Connected
4
+ | 2 // ICON: host-warning TEXT: Warning
5
+ | 3 // ICON: host-error TEXT: Error
6
+ | 4 // ICON: host-maintenance TEXT: Maintenance
7
+ | 5 // ICON: host-not-responding TEXT: Not Responding
8
+ | 6 // ICON: host-disconnected TEXT: Disconnected
9
+
10
+ export type API_UI_T_VmState =
2
11
  | 0 // ICON: vm-error TEXT: Unknown
3
12
  | 1 // ICON: vm TEXT: Power Off
4
13
  | 2 // ICON: vm-on TEXT: Powered On
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.1.14",
4
+ "version": "1.1.15",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",