bfg-common 1.5.197 → 1.5.198

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.
@@ -2364,7 +2364,8 @@
2364
2364
  "hostMonitoring": "Гаспадар мониторинг",
2365
2365
  "admissionControl": "Прыём кіраванне",
2366
2366
  "reviewDetailsBeforeHostAdded": "Праверце дэталі перад даданнем хостынгу.",
2367
- "nameOrIpAddress": "Імя або IP-адрас"
2367
+ "nameOrIpAddress": "Імя або IP-адрас",
2368
+ "deleteDatacenterDesc": "Вы ўпэўненыя, што хочаце выдаліць цэнтр апрацоўкі дадзеных \" {0}\"? Гэта дзеянне таксама прывядзе да выдалення ўсіх яго аварыйных сігналаў і выдаленні ўсіх звязаных хастоў і віртуальных машын з спісу."
2368
2369
  },
2369
2370
  "auth": {
2370
2371
  "welcomeTo": "Сардэчна запрашаем у",
@@ -2368,7 +2368,8 @@
2368
2368
  "hostMonitoring": "Host Monitoring",
2369
2369
  "admissionControl": "Admission Control",
2370
2370
  "reviewDetailsBeforeHostAdded": "Review the details before the host is added.",
2371
- "nameOrIpAddress": "Name or IP address"
2371
+ "nameOrIpAddress": "Name or IP address",
2372
+ "deleteDatacenterDesc": "Are you sure you want to delete the datacenter “{0}”? This action will also delete all its alarms and remove all associated hosts and virtual machines from the inventory."
2372
2373
  },
2373
2374
  "auth": {
2374
2375
  "welcomeTo": "Welcome to",
@@ -2368,7 +2368,8 @@
2368
2368
  "hostMonitoring": "Հանգույցի մոնիտորինգ",
2369
2369
  "admissionControl": "Ընդունելության վերահսկում",
2370
2370
  "reviewDetailsBeforeHostAdded": "Ստուգեք մանրամասները նախքան հոստինգը ավելացնելը:",
2371
- "nameOrIpAddress": "Անուն կամ IP հասցե"
2371
+ "nameOrIpAddress": "Անուն կամ IP հասցե",
2372
+ "deleteDatacenterDesc": "Համոզված եք, որ ցանկանում եք ջնջել \"{0} \" տվյալների կենտրոնը: Այս գործողությունը նաև կջնջի դրա բոլոր ահազանգերը և կհեռացնի բոլոր հարակից սերվերներն ու վիրտուալ մեքենաները ցուցակից:"
2372
2373
  },
2373
2374
  "auth": {
2374
2375
  "welcomeTo": "Բարի գալուստ",
@@ -2367,7 +2367,8 @@
2367
2367
  "hostMonitoring": "Түйін бақылау",
2368
2368
  "admissionControl": "Қабылдау басқару",
2369
2369
  "reviewDetailsBeforeHostAdded": "Хост қосылмас бұрын мәліметтерді қарап шығыңыз.",
2370
- "nameOrIpAddress": "Аты немесе IP мекенжайы"
2370
+ "nameOrIpAddress": "Аты немесе IP мекенжайы",
2371
+ "deleteDatacenterDesc": "\"{0} \" деректер орталығын жойғыңыз келетініне сенімдісіз бе? Бұл әрекет сонымен қатар оның барлық дабылдарын жояды және барлық байланысты хосттар мен виртуалды машиналарды тізімнен жояды."
2371
2372
  },
2372
2373
  "auth": {
2373
2374
  "welcomeTo": "Қош келдіңіз",
@@ -2367,7 +2367,8 @@
2367
2367
  "hostMonitoring": "Мониторинг узла",
2368
2368
  "admissionControl": "Контроль приема",
2369
2369
  "reviewDetailsBeforeHostAdded": "Ознакомьтесь с подробностями перед добавлением хостинга.",
2370
- "nameOrIpAddress": "Имя или IP-адрес"
2370
+ "nameOrIpAddress": "Имя или IP-адрес",
2371
+ "deleteDatacenterDesc": "Вы уверены, что хотите удалить центр обработки данных “{0}”? Это действие также приведет к удалению всех его аварийных сигналов и удалению всех связанных хостов и виртуальных машин из списка."
2371
2372
  },
2372
2373
  "auth": {
2373
2374
  "welcomeTo": "Добро пожаловать в",
@@ -2365,7 +2365,8 @@
2365
2365
  "hostMonitoring": "结 监控",
2366
2366
  "admissionControl": "入場費 控制",
2367
2367
  "reviewDetailsBeforeHostAdded": "无效的用户名或密码",
2368
- "nameOrIpAddress": "名称或IP地址"
2368
+ "nameOrIpAddress": "名称或IP地址",
2369
+ "deleteDatacenterDesc": "你确定要删除数据中心“{0}”吗?此操作将同时删除所有警报和从库中移除所有关联的主机和虚拟机。"
2369
2370
  },
2370
2371
  "auth": {
2371
2372
  "welcomeTo": "欢迎来到",
@@ -1,113 +1,113 @@
1
- <template>
2
- <div class="portlet">
3
- <div
4
- :data-id="`${props.testId}-toggle-portlet`"
5
- :class="['portlet-titlebar', { disabled }]"
6
- @click="togglePortlet"
7
- >
8
- <atoms-the-icon
9
- :class="['arrow-icon', { collapsed: portletCollapsed }]"
10
- name="arrow"
11
- />
12
-
13
- <span class="titlebar-text">{{ title }}</span>
14
- </div>
15
-
16
- <div v-show="!portletCollapsed" class="portlet-content">
17
- <slot name="portletBody" />
18
- </div>
19
- <div v-show="!portletCollapsed" class="portlet-footer">
20
- <slot name="portletFooter" />
21
- </div>
22
- </div>
23
- </template>
24
-
25
- <script setup lang="ts">
26
- const props = defineProps<{
27
- title: string
28
- disabled?: boolean
29
- testId?: string
30
- }>()
31
-
32
- const isOpen = ref<boolean>(false)
33
-
34
- const portletCollapsed = computed<boolean>(() => {
35
- if (props.disabled) {
36
- return true
37
- }
38
- return isOpen.value
39
- })
40
-
41
- const togglePortlet = (): boolean => (isOpen.value = !isOpen.value)
42
- </script>
43
-
44
- <style scoped lang="scss">
45
- .portlet {
46
- box-shadow: 1px 1px 4px 0 rgb(0 0 0 / 10%);
47
- min-height: 30px;
48
- border: 1px solid var(--portlet-border-color);
49
- border-radius: 3px;
50
- overflow: auto;
51
- background: var(--portlet-bg-color);
52
- margin: 0 0 12px;
53
- flex-shrink: 0;
54
- box-sizing: border-box;
55
-
56
- .portlet-titlebar {
57
- cursor: pointer;
58
- display: flex;
59
- flex-direction: row-reverse;
60
- align-items: center;
61
- margin: 0;
62
- padding: 12px 10px;
63
- box-sizing: border-box;
64
- position: relative;
65
- overflow: hidden;
66
-
67
- &.disabled {
68
- opacity: 0.3;
69
- pointer-events: none;
70
- }
71
-
72
- .titlebar-text {
73
- flex: 1 1 100%;
74
- display: inline-flex !important;
75
- white-space: nowrap;
76
- overflow: hidden !important;
77
- padding: 0 !important;
78
- box-sizing: border-box;
79
- max-width: none !important;
80
- font-size: 14px;
81
- }
82
-
83
- .arrow-icon {
84
- transition: all 0.2s ease-in 0s;
85
- fill: #0079b8;
86
-
87
- &.collapsed {
88
- transform: rotate(180deg);
89
- }
90
- }
91
- &:hover {
92
- .arrow-icon {
93
- fill: #004a70;
94
- }
95
- }
96
- }
97
-
98
- .portlet-content {
99
- padding: 0 10px 5px;
100
- }
101
- }
102
- </style>
103
-
104
- <style>
105
- :root {
106
- --portlet-bg-color: #fff;
107
- --portlet-border-color: #d3d3d3;
108
- }
109
- :root.dark-theme {
110
- --portlet-bg-color: transparent;
111
- --portlet-border-color: #000000;
112
- }
113
- </style>
1
+ <template>
2
+ <div class="portlet">
3
+ <div
4
+ :data-id="`${props.testId}-toggle-portlet`"
5
+ :class="['portlet-titlebar', { disabled }]"
6
+ >
7
+ <atoms-the-icon
8
+ :class="['arrow-icon', { collapsed: portletCollapsed }]"
9
+ name="arrow"
10
+ @click="togglePortlet"
11
+ />
12
+
13
+ <span class="titlebar-text">{{ title }}</span>
14
+ </div>
15
+
16
+ <div v-show="!portletCollapsed" class="portlet-content">
17
+ <slot name="portletBody" />
18
+ </div>
19
+ <div v-show="!portletCollapsed" class="portlet-footer">
20
+ <slot name="portletFooter" />
21
+ </div>
22
+ </div>
23
+ </template>
24
+
25
+ <script setup lang="ts">
26
+ const props = defineProps<{
27
+ title: string
28
+ disabled?: boolean
29
+ testId?: string
30
+ }>()
31
+
32
+ const isOpen = ref<boolean>(false)
33
+
34
+ const portletCollapsed = computed<boolean>(() => {
35
+ if (props.disabled) {
36
+ return true
37
+ }
38
+ return isOpen.value
39
+ })
40
+
41
+ const togglePortlet = (): boolean => (isOpen.value = !isOpen.value)
42
+ </script>
43
+
44
+ <style scoped lang="scss">
45
+ .portlet {
46
+ box-shadow: 1px 1px 4px 0 rgb(0 0 0 / 10%);
47
+ min-height: 30px;
48
+ border: 1px solid var(--portlet-border-color);
49
+ border-radius: 3px;
50
+ overflow: auto;
51
+ background: var(--portlet-bg-color);
52
+ margin: 0 0 12px;
53
+ flex-shrink: 0;
54
+ box-sizing: border-box;
55
+
56
+ .portlet-titlebar {
57
+ cursor: pointer;
58
+ display: flex;
59
+ flex-direction: row-reverse;
60
+ align-items: center;
61
+ margin: 0;
62
+ padding: 12px 10px;
63
+ box-sizing: border-box;
64
+ position: relative;
65
+ overflow: hidden;
66
+
67
+ &.disabled {
68
+ opacity: 0.3;
69
+ pointer-events: none;
70
+ }
71
+
72
+ .titlebar-text {
73
+ flex: 1 1 100%;
74
+ display: inline-flex !important;
75
+ white-space: nowrap;
76
+ overflow: hidden !important;
77
+ padding: 0 !important;
78
+ box-sizing: border-box;
79
+ max-width: none !important;
80
+ font-size: 14px;
81
+ }
82
+
83
+ .arrow-icon {
84
+ transition: all 0.2s ease-in 0s;
85
+ fill: #0079b8;
86
+
87
+ &.collapsed {
88
+ transform: rotate(180deg);
89
+ }
90
+ }
91
+ &:hover {
92
+ .arrow-icon {
93
+ fill: #004a70;
94
+ }
95
+ }
96
+ }
97
+
98
+ .portlet-content {
99
+ padding: 0 10px 5px;
100
+ }
101
+ }
102
+ </style>
103
+
104
+ <style>
105
+ :root {
106
+ --portlet-bg-color: #fff;
107
+ --portlet-border-color: #d3d3d3;
108
+ }
109
+ :root.dark-theme {
110
+ --portlet-bg-color: transparent;
111
+ --portlet-border-color: #000000;
112
+ }
113
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.197",
4
+ "version": "1.5.198",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -35,7 +35,7 @@
35
35
  "@vueuse/components": "^10.1.2",
36
36
  "date-fns": "^2.29.3",
37
37
  "bfg-nuxt-3-graph": "1.0.25",
38
- "bfg-uikit": "1.0.428",
38
+ "bfg-uikit": "1.0.430",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }