bfg-common 1.1.38 → 1.1.40

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.
@@ -27,9 +27,11 @@
27
27
  type="checkbox"
28
28
  @change="change($event, key)"
29
29
  />
30
- <label :for="item.id" class="clr-control-label">{{
31
- item.text
32
- }}</label>
30
+ <label
31
+ :id="`${props.testId}-${item.id}`"
32
+ class="clr-control-label"
33
+ >{{ item.text }}</label
34
+ >
33
35
  </div>
34
36
  </li>
35
37
  </ul>
@@ -1,6 +1,7 @@
1
1
  import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
2
2
 
3
3
  export interface UI_I_OptionData {
4
+ datacenter: UI_I_OptionItem[]
4
5
  host: UI_I_OptionItem[]
5
6
  vm: UI_I_OptionItem[]
6
7
  }
@@ -1 +1 @@
1
- export type UI_T_AdvancedType = 'host' | 'vm'
1
+ export type UI_T_AdvancedType = 'datacenter' | 'host' | 'vm'
@@ -14,8 +14,6 @@ const hostItemsFunc = (
14
14
  chart: T_ChartHost,
15
15
  localization: UI_I_Localization
16
16
  ): UI_I_AdvancedCounterItem[] => {
17
- const { $text } = useNuxtApp()
18
-
19
17
  const cpu: UI_I_AdvancedCounterItem[] = [
20
18
  {
21
19
  id: 0,
@@ -622,6 +620,7 @@ export const countersItemsFunc = (
622
620
  let result: UI_I_AdvancedCounterItem[] = []
623
621
 
624
622
  switch (type) {
623
+ case 'datacenter':
625
624
  case 'host':
626
625
  if (chart !== 'datastore') result = hostItemsFunc(chart, localization)
627
626
  break
@@ -8,6 +8,24 @@ export const metricsFunc = (
8
8
  type: UI_T_AdvancedType
9
9
  ): UI_I_VerticalTabs[] => {
10
10
  const metrics: UI_I_OptionData = {
11
+ datacenter: [
12
+ {
13
+ text: localization.cpu,
14
+ value: 'cpu',
15
+ },
16
+ {
17
+ text: localization.disk,
18
+ value: 'disk',
19
+ },
20
+ {
21
+ text: localization.memory,
22
+ value: 'memory',
23
+ },
24
+ {
25
+ text: localization.network,
26
+ value: 'network',
27
+ },
28
+ ],
11
29
  host: [
12
30
  {
13
31
  text: localization.cpu,
@@ -35,6 +35,12 @@ export const viewFunc = (
35
35
  optionsNames?: string[]
36
36
  ): UI_I_OptionItem[] => {
37
37
  const viewData: UI_I_OptionData = {
38
+ datacenter: [
39
+ {
40
+ text: localization.virtualMachineOperations,
41
+ value: 'virtualMachineOperations',
42
+ },
43
+ ],
38
44
  host: [
39
45
  { text: localization.cpuUsageInPercent, value: 'cpuUsageInPercent' },
40
46
  { text: localization.datastore, value: 'datastore' },
@@ -37,6 +37,20 @@ export const viewFunc = (
37
37
  viewType: UI_T_OverviewViewType
38
38
  ): UI_I_OptionItem[] => {
39
39
  const viewData: UI_I_OverviewViewOptionData = {
40
+ datacenter: [
41
+ {
42
+ text: localization.clusters,
43
+ value: 'clusters',
44
+ },
45
+ {
46
+ text: localization.spaceUtilization,
47
+ value: 'spaceUtilization',
48
+ },
49
+ {
50
+ text: localization.datastores,
51
+ value: 'datastores',
52
+ },
53
+ ],
40
54
  host: [
41
55
  { text: localization.overview, value: 'overview' },
42
56
  { text: localization.networkAdapters, value: 'network_adapters' },
@@ -1,6 +1,7 @@
1
1
  import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
2
2
 
3
3
  export interface UI_I_OverviewViewOptionData {
4
+ datacenter: UI_I_OptionItem[]
4
5
  host: UI_I_OptionItem[]
5
6
  vm: UI_I_OptionItem[]
6
7
  }
@@ -1,3 +1,3 @@
1
- export type UI_T_OverviewViewType = 'host' | 'vm'
1
+ export type UI_T_OverviewViewType = 'host' | 'vm' | 'datacenter'
2
2
 
3
- export type UI_T_OverviewRequestType = 'hosts' | 'vms'
3
+ export type UI_T_OverviewRequestType = 'hosts' | 'vms' | 'datacenters'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.1.38",
4
+ "version": "1.1.40",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",