bfg-common 1.4.491 → 1.4.493

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.
@@ -6,7 +6,7 @@
6
6
  :count="props.totalHosts"
7
7
  icon-name="vsphere-icon-host"
8
8
  >
9
- <common-home-status-content :items="props.hosts" />
9
+ <common-pages-home-status-content :items="props.hosts" />
10
10
  </common-pages-home-card>
11
11
  </div>
12
12
  </div>
@@ -87,8 +87,8 @@ watch(
87
87
 
88
88
  &__title {
89
89
  @include flex($align: center);
90
- margin-bottom: 16px;
91
90
  color: var(--widget-text-first);
91
+ margin-bottom: 16px;
92
92
  & > h1 {
93
93
  font-size: 16px;
94
94
  font-weight: 500;
@@ -6,7 +6,7 @@
6
6
  :count="props.totalVms"
7
7
  icon-name="vsphere-icon-vm"
8
8
  >
9
- <common-home-status-content :items="props.vms" />
9
+ <common-pages-home-status-content :items="props.vms" />
10
10
  </common-pages-home-card>
11
11
  </div>
12
12
  </div>
@@ -88,6 +88,7 @@ watch(
88
88
  &__title {
89
89
  @include flex($align: center);
90
90
  color: var(--widget-text-first);
91
+ margin-bottom: 16px;
91
92
  & > h1 {
92
93
  font-size: 16px;
93
94
  font-weight: 500;
@@ -7,7 +7,7 @@
7
7
  icon-name="vsphere-icon-datastore"
8
8
  class="most-alerts"
9
9
  >
10
- <common-home-alerts-table
10
+ <common-pages-home-widgets-warnings-table
11
11
  :data-table="props.alerts"
12
12
  @select-node-of-tree="emits('select-node-of-tree')"
13
13
  />
@@ -51,8 +51,8 @@ import type {
51
51
  import type { UI_I_Localization } from '~/lib/models/interfaces'
52
52
  import type { UI_T_SelectedRow } from '~/components/atoms/table/dataGrid/lib/models/types'
53
53
  import type { UI_I_Alert } from '~/components/common/home/lib/models/interfaces'
54
- import type { UI_I_AlertData } from '~/components/common/home/alertsTable/lib/models/interfaces'
55
- import * as table from '~/components/common/home/alertsTable/lib/config/config'
54
+ import type { UI_I_AlertData } from '~/components/common/pages/home/widgets/warnings/table/lib/models/interfaces'
55
+ import * as table from '~/components/common/pages/home/widgets//warnings/table/lib/config/config'
56
56
 
57
57
  const props = defineProps<{
58
58
  dataTable: UI_I_Alert[]
@@ -5,8 +5,8 @@ import type {
5
5
  import type { UI_I_Localization } from '~/lib/models/interfaces'
6
6
  import type { UI_T_AlertColumnKeys } from '~/components/common/home/lib/models/types'
7
7
  import type { UI_I_Alert } from '~/components/common/home/lib/models/interfaces'
8
- import type { UI_I_AlertData } from '~/components/common/home/alertsTable/lib/models/interfaces'
9
- import { UI_E_TabsByTypeEnum } from '~/components/common/home/alertsTable/lib/models/enums'
8
+ import type { UI_I_AlertData } from '~/components/common/pages/home/widgets/warnings/table/lib/models/interfaces'
9
+ import { UI_E_TabsByTypeEnum } from '~/components/common/pages/home/widgets/warnings/table/lib/models/enums'
10
10
  import { constructHeadItem } from '~/components/atoms/table/dataGrid/lib/utils/constructDataTable'
11
11
 
12
12
  export const alertsTableKeys: UI_T_AlertColumnKeys[] = [
@@ -20,8 +20,20 @@ const getItems = (
20
20
  ): [string, boolean, string, string, string][] => {
21
21
  return [
22
22
  [localization.common.item, true, '34%', alertsTableKeys[0], ''],
23
- [localization.common.alerts, true, '33%', alertsTableKeys[1], 'error-outline'],
24
- [localization.common.warnings, true, '33%', alertsTableKeys[2], 'warning-outline'],
23
+ [
24
+ localization.common.alerts,
25
+ true,
26
+ '33%',
27
+ alertsTableKeys[1],
28
+ 'error-outline',
29
+ ],
30
+ [
31
+ localization.common.warnings,
32
+ true,
33
+ '33%',
34
+ alertsTableKeys[2],
35
+ 'warning-outline',
36
+ ],
25
37
  ]
26
38
  }
27
39
 
@@ -1,4 +1,4 @@
1
- export enum UI_E_TabsByTypeEnum {
1
+ export enum UI_E_TabsByTypeEnum { // TODO если есть другой такой interface удалить этоть
2
2
  'zone' = 'h',
3
3
  'datacenter' = 'h',
4
4
  'folder' = 'h',
@@ -1,6 +1,6 @@
1
- import type { UI_T_NavNodes } from '~/components/common/home/alertsTable/lib/models/types'
1
+ import type { UI_T_NavNodes } from '~/lib/models/types'
2
2
  import type { UI_I_TreeNode } from '~/components/common/recursionTree/lib/models/interfaces'
3
- import type { UI_T_InventoryAllTreeName } from '~/components/common/home/alertsTable/lib/models/types'
3
+ import type { UI_T_InventoryAllTreeName } from '~/components/common/pages/home/widgets/warnings/table/lib/models/types'
4
4
 
5
5
  export interface UI_I_AlertData {
6
6
  iconClassName: string
@@ -1,9 +1,4 @@
1
- export type UI_T_NavNodes =
2
- | 'h'
3
- // для прокуратор
4
- | 'v'
5
- | 's'
6
- | 'n'
1
+ // TODO надо все типи сделать глобално
7
2
 
8
3
  export type UI_T_InventoryTreeName =
9
4
  | 'hostsAndClustersTree'
@@ -1,5 +1,12 @@
1
1
  export type UI_T_Project = 'sphere' | 'procurator'
2
2
 
3
+ export type UI_T_NavNodes =
4
+ | 'h'
5
+ // для прокуратор
6
+ | 'v'
7
+ | 's'
8
+ | 'n'
9
+
3
10
  export type UI_T_Binary = 'KB' | 'MB' | 'GB' | 'TB' | 'PB' | 'EB' | 'ZB' | 'YB'
4
11
  export type UI_T_BinaryLower =
5
12
  | 'kb'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.491",
4
+ "version": "1.4.493",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",