bfg-common 1.5.848 → 1.5.849

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.
@@ -2663,8 +2663,14 @@
2663
2663
  "select": "Выбраць",
2664
2664
  "unselected": "Выбар не выбраны",
2665
2665
  "userActionLock": "Адключыць",
2666
+ "userActionLockTitle": "Адключыць карыстальніка",
2667
+ "userActionLockDesc": "Адключыць карыстальніка?",
2666
2668
  "userActionEnable": "Разблакіраваць",
2667
- "userActionDisable": "Заблакіраваць"
2669
+ "userActionEnableTitle": "Разблакіраваць карыстальніка",
2670
+ "userActionEnableDesc": "Разблакіраваць карыстальніка?",
2671
+ "userActionDisable": "Заблакіраваць",
2672
+ "userActionDisableTitle": "Заблакіраваць карыстальніка",
2673
+ "userActionDisableDesc": "Заблакіраваць карыстальніка?"
2668
2674
  },
2669
2675
  "inventoryConfigure": {
2670
2676
  "acceptanceLevel": "узровень прыняцця",
@@ -2667,8 +2667,14 @@
2667
2667
  "selected": "Selected",
2668
2668
  "unselected": "Unselected",
2669
2669
  "userActionLock": "Disconnect",
2670
+ "userActionLockTitle": "Disconnect user",
2671
+ "userActionLockDesc": "Disconnect User?",
2670
2672
  "userActionEnable": "Unlock",
2671
- "userActionDisable": "Block"
2673
+ "userActionEnableTitle": "Unlock User",
2674
+ "userActionEnableDesc": "Unlock User?",
2675
+ "userActionDisable": "Block",
2676
+ "userActionDisableTitle": "Block User",
2677
+ "userActionDisableDesc": "Block User?"
2672
2678
  },
2673
2679
  "inventoryConfigure": {
2674
2680
  "acceptanceLevel": "Acceptance level",
@@ -2667,8 +2667,14 @@
2667
2667
  "select": "Ընտրել",
2668
2668
  "unselected": "Չընտրված",
2669
2669
  "userActionLock": "Անջատել",
2670
+ "userActionLockTitle": "Անջատել օգտվողին",
2671
+ "userActionLockDesc": "Անջատե՞լ օգտվողին",
2670
2672
  "userActionEnable": "Ապակողպել",
2671
- "userActionDisable": "Արգելափակել"
2673
+ "userActionEnableTitle": "Ապակողպել օգտվողին",
2674
+ "userActionEnableDesc": "Ապակողպե՞լ օգտվողին",
2675
+ "userActionDisable": "Արգելափակել",
2676
+ "userActionDisableTitle": "Արգելափակել օգտվողին",
2677
+ "userActionDisableDesc": "Արգելափակե՞լ օգտվողին"
2672
2678
  },
2673
2679
  "inventoryConfigure": {
2674
2680
  "acceptanceLevel": "ընդունման մակարդակ",
@@ -2666,8 +2666,14 @@
2666
2666
  "selected": "Таңдалған",
2667
2667
  "unselected": "Таңдаудан алынды",
2668
2668
  "userActionLock": "Ажырату",
2669
+ "userActionLockTitle": "Пайдаланушыны ажырату",
2670
+ "userActionLockDesc": "Пайдаланушыны ажырату керек пе?",
2669
2671
  "userActionEnable": "Құлыптан ашу",
2670
- "userActionDisable": "Бұғаттау"
2672
+ "userActionEnableTitle": "Пайдаланушыны құлыптан ашу",
2673
+ "userActionEnableDesc": "Пайдаланушыны құлыптан ашу керек пе?",
2674
+ "userActionDisable": "Бұғаттау",
2675
+ "userActionDisableTitle": "Пайдаланушыны бұғаттау",
2676
+ "userActionDisableDesc": "Пайдаланушыны бұғаттау керек пе?"
2671
2677
  },
2672
2678
  "inventoryConfigure": {
2673
2679
  "acceptanceLevel": "қабылдау деңгейі",
@@ -2666,8 +2666,14 @@
2666
2666
  "selected": "Выбрано",
2667
2667
  "unselected": "Не выбрано",
2668
2668
  "userActionLock": "Отключить",
2669
+ "userActionLockTitle": "Отключить пользователя",
2670
+ "userActionLockDesc": "Отключить пользователя?",
2669
2671
  "userActionEnable": "Разблокировать",
2670
- "userActionDisable": "Заблокировать"
2672
+ "userActionEnableTitle": "Разблокировать пользователя",
2673
+ "userActionEnableDesc": "Разблокировать пользователя?",
2674
+ "userActionDisable": "Заблокировать",
2675
+ "userActionDisableTitle": "Заблокировать пользователя",
2676
+ "userActionDisableDesc": "Заблокировать пользователя?"
2671
2677
  },
2672
2678
  "inventoryConfigure": {
2673
2679
  "acceptanceLevel": "Уровень приемлемости",
@@ -2664,8 +2664,14 @@
2664
2664
  "selected": "已选择",
2665
2665
  "unselected": "未选择",
2666
2666
  "userActionLock": "断开连接",
2667
+ "userActionLockTitle": "断开用户连接",
2668
+ "userActionLockDesc": "是否断开用户连接?",
2667
2669
  "userActionEnable": "解锁",
2668
- "userActionDisable": "阻止"
2670
+ "userActionEnableTitle": "解锁用户",
2671
+ "userActionEnableDesc": "是否解锁用户?",
2672
+ "userActionDisable": "阻止",
2673
+ "userActionDisableTitle": "阻止用户",
2674
+ "userActionDisableDesc": "是否阻止用户?"
2669
2675
  },
2670
2676
  "inventoryConfigure": {
2671
2677
  "acceptanceLevel": "接受級別",
@@ -1,176 +1,176 @@
1
- <template>
2
- <div class="">
3
- <atoms-stack-block :has-children="false">
4
- <template #stackBlockKey>
5
- {{ localization.common.schedulingAffinity }}
6
- </template>
7
- <template #stackBlockContent>
8
- <div class="flex-space-between">
9
- <div class="flex-align-center">
10
- <atoms-tooltip-error
11
- :has-error="!!errorText"
12
- selector="#sa-edit-setting-input"
13
- @remove="onRemoveValidationError"
14
- >
15
- <template #elem>
16
- <input
17
- id="sa-edit-setting-input"
18
- v-model="schedulingAffinity"
19
- data-id="sa-edit-setting-input"
20
- type="text"
21
- class="edit-setting-input"
22
- @blur="onBlur"
23
- />
24
- </template>
25
- <template #content>{{ errorText }}</template>
26
- </atoms-tooltip-error>
27
- </div>
28
-
29
- <div id="sa-help-icon">
30
- <atoms-the-icon
31
- fill="#0072a3"
32
- width="24px"
33
- height="24px"
34
- name="info-circle"
35
- data-id="show-sa-help-icon"
36
- @click.stop="isShowSaHelp = !isShowSaHelp"
37
- />
38
- <Teleport to="body">
39
- <atoms-tooltip-signpost
40
- v-if="isShowSaHelp"
41
- elem-id="sa-help-icon"
42
- @hide="isShowSaHelp = false"
43
- >
44
- <h3 class="sa-help-title">
45
- {{ localization.mainNavigation.help }}
46
- </h3>
47
-
48
- <p class="sa-help-text">
49
- {{ localization.common.schedulingAffinityHelpDescription1 }}
50
- </p>
51
- <p class="sa-help-text">
52
- {{ localization.common.schedulingAffinityHelpDescription2 }}
53
- </p>
54
- <p class="sa-help-text">
55
- {{ localization.common.schedulingAffinityHelpDescription3 }}
56
- </p>
57
- <p class="sa-help-text">
58
- <strong
59
- >{{ localization.common.hyperthreadingStatus }}:
60
- </strong>
61
- {{ localization.common.inactive }}
62
- </p>
63
- <!-- <p class="sa-help-text">-->
64
- <!-- <strong>{{ localization.common.availableCpus }}: </strong>-->
65
- <!-- 8({{ localization.common.physicalCpus }})-->
66
- <!-- </p>-->
67
- <template v-if="numsLocal">
68
- <div
69
- v-for="item in numsLocal"
70
- :key="item.label"
71
- class="sa-help-text"
72
- >
73
- <strong>{{ item.label }} </strong>
74
- <p>{{ item.value }}</p>
75
- </div>
76
- </template>
77
- </atoms-tooltip-signpost>
78
- </Teleport>
79
- </div>
80
- </div>
81
- </template>
82
- </atoms-stack-block>
83
- </div>
84
- </template>
85
-
86
- <script setup lang="ts">
87
- import type { UI_I_Localization } from '~/lib/models/interfaces'
88
- import { validateAffinityInput } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/sa/lib/utils/validation'
89
- import { groupConsecutiveNumbers } from '~/lib/utils/nums'
90
-
91
- const localization = computed<UI_I_Localization>(() => useLocal())
92
-
93
- const schedulingAffinity = defineModel<string>({
94
- required: true,
95
- })
96
-
97
- const props = defineProps<{
98
- nums?: any // для прокуратора
99
- }>()
100
- const emits = defineEmits<{
101
- (event: 'invalid', value: boolean): void
102
- (event: 'remove-error-by-title', value: string): void
103
- }>()
104
-
105
- const isShowSaHelp = ref<boolean>(false)
106
-
107
- const numsLocal = computed<any>(() => {
108
- if (!props.nums) return []
109
-
110
- const cpuTopology = []
111
- for (const key in props.nums.cpu) {
112
- cpuTopology.push({
113
- label: `CPU NUMA ${+key + 1}`,
114
- value:
115
- 'cores: ' +
116
- groupConsecutiveNumbers(props.nums.cpu[key]) +
117
- '; memory: ' +
118
- props.nums.ram[key],
119
- })
120
- }
121
- return cpuTopology
122
- })
123
-
124
- const errorText = ref<string>('')
125
- const onBlur = (): void => {
126
- let cpuNums = []
127
- if (props.nums) {
128
- for (const key in props.nums.cpu) {
129
- cpuNums.push(...props.nums.cpu[key])
130
- }
131
- }
132
- const validation = validateAffinityInput(
133
- schedulingAffinity.value,
134
- localization.value,
135
- cpuNums
136
- )
137
-
138
- errorText.value = ''
139
-
140
- if (!validation.isValid) {
141
- errorText.value = validation.error
142
- }
143
- }
144
-
145
- const isInvalid = computed<boolean>(() => !!errorText.value)
146
- watch(
147
- isInvalid,
148
- (newValue) => {
149
- emits('invalid', newValue)
150
- },
151
- { immediate: true }
152
- )
153
-
154
- const onRemoveValidationError = (): void => {
155
- emits('remove-error-by-title', 'cpu.temp') // TODO
156
- }
157
- </script>
158
-
159
- <style scoped lang="scss">
160
- h3.sa-help-title {
161
- margin-top: 7px;
162
- font-size: 22px;
163
- color: #565656;
164
- }
165
- p.sa-help-text {
166
- width: 310px;
167
- margin-top: 24px;
168
- font-size: 14px;
169
- color: #565656;
170
- }
171
- p.sa-help-text strong {
172
- font-size: 14px;
173
- font-weight: bold;
174
- color: #565656;
175
- }
176
- </style>
1
+ <template>
2
+ <div class="">
3
+ <atoms-stack-block :has-children="false">
4
+ <template #stackBlockKey>
5
+ {{ localization.common.schedulingAffinity }}
6
+ </template>
7
+ <template #stackBlockContent>
8
+ <div class="flex-space-between">
9
+ <div class="flex-align-center">
10
+ <atoms-tooltip-error
11
+ :has-error="!!errorText"
12
+ selector="#sa-edit-setting-input"
13
+ @remove="onRemoveValidationError"
14
+ >
15
+ <template #elem>
16
+ <input
17
+ id="sa-edit-setting-input"
18
+ v-model="schedulingAffinity"
19
+ data-id="sa-edit-setting-input"
20
+ type="text"
21
+ class="edit-setting-input"
22
+ @blur="onBlur"
23
+ />
24
+ </template>
25
+ <template #content>{{ errorText }}</template>
26
+ </atoms-tooltip-error>
27
+ </div>
28
+
29
+ <div id="sa-help-icon">
30
+ <atoms-the-icon
31
+ fill="#0072a3"
32
+ width="24px"
33
+ height="24px"
34
+ name="info-circle"
35
+ data-id="show-sa-help-icon"
36
+ @click.stop="isShowSaHelp = !isShowSaHelp"
37
+ />
38
+ <Teleport to="body">
39
+ <atoms-tooltip-signpost
40
+ v-if="isShowSaHelp"
41
+ elem-id="sa-help-icon"
42
+ @hide="isShowSaHelp = false"
43
+ >
44
+ <h3 class="sa-help-title">
45
+ {{ localization.mainNavigation.help }}
46
+ </h3>
47
+
48
+ <p class="sa-help-text">
49
+ {{ localization.common.schedulingAffinityHelpDescription1 }}
50
+ </p>
51
+ <p class="sa-help-text">
52
+ {{ localization.common.schedulingAffinityHelpDescription2 }}
53
+ </p>
54
+ <p class="sa-help-text">
55
+ {{ localization.common.schedulingAffinityHelpDescription3 }}
56
+ </p>
57
+ <p class="sa-help-text">
58
+ <strong
59
+ >{{ localization.common.hyperthreadingStatus }}:
60
+ </strong>
61
+ {{ localization.common.inactive }}
62
+ </p>
63
+ <!-- <p class="sa-help-text">-->
64
+ <!-- <strong>{{ localization.common.availableCpus }}: </strong>-->
65
+ <!-- 8({{ localization.common.physicalCpus }})-->
66
+ <!-- </p>-->
67
+ <template v-if="numsLocal">
68
+ <div
69
+ v-for="item in numsLocal"
70
+ :key="item.label"
71
+ class="sa-help-text"
72
+ >
73
+ <strong>{{ item.label }} </strong>
74
+ <p>{{ item.value }}</p>
75
+ </div>
76
+ </template>
77
+ </atoms-tooltip-signpost>
78
+ </Teleport>
79
+ </div>
80
+ </div>
81
+ </template>
82
+ </atoms-stack-block>
83
+ </div>
84
+ </template>
85
+
86
+ <script setup lang="ts">
87
+ import type { UI_I_Localization } from '~/lib/models/interfaces'
88
+ import { validateAffinityInput } from '~/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/sa/lib/utils/validation'
89
+ import { groupConsecutiveNumbers } from '~/lib/utils/nums'
90
+
91
+ const localization = computed<UI_I_Localization>(() => useLocal())
92
+
93
+ const schedulingAffinity = defineModel<string>({
94
+ required: true,
95
+ })
96
+
97
+ const props = defineProps<{
98
+ nums?: any // для прокуратора
99
+ }>()
100
+ const emits = defineEmits<{
101
+ (event: 'invalid', value: boolean): void
102
+ (event: 'remove-error-by-title', value: string): void
103
+ }>()
104
+
105
+ const isShowSaHelp = ref<boolean>(false)
106
+
107
+ const numsLocal = computed<any>(() => {
108
+ if (!props.nums) return []
109
+
110
+ const cpuTopology = []
111
+ for (const key in props.nums.cpu) {
112
+ cpuTopology.push({
113
+ label: `CPU NUMA ${+key + 1}`,
114
+ value:
115
+ 'cores: ' +
116
+ groupConsecutiveNumbers(props.nums.cpu[key]) +
117
+ '; memory: ' +
118
+ props.nums.ram[key],
119
+ })
120
+ }
121
+ return cpuTopology
122
+ })
123
+
124
+ const errorText = ref<string>('')
125
+ const onBlur = (): void => {
126
+ let cpuNums = []
127
+ if (props.nums) {
128
+ for (const key in props.nums.cpu) {
129
+ cpuNums.push(...props.nums.cpu[key])
130
+ }
131
+ }
132
+ const validation = validateAffinityInput(
133
+ schedulingAffinity.value,
134
+ localization.value,
135
+ cpuNums
136
+ )
137
+
138
+ errorText.value = ''
139
+
140
+ if (!validation.isValid) {
141
+ errorText.value = validation.error
142
+ }
143
+ }
144
+
145
+ const isInvalid = computed<boolean>(() => !!errorText.value)
146
+ watch(
147
+ isInvalid,
148
+ (newValue) => {
149
+ emits('invalid', newValue)
150
+ },
151
+ { immediate: true }
152
+ )
153
+
154
+ const onRemoveValidationError = (): void => {
155
+ emits('remove-error-by-title', 'cpu.temp') // TODO
156
+ }
157
+ </script>
158
+
159
+ <style scoped lang="scss">
160
+ h3.sa-help-title {
161
+ margin-top: 7px;
162
+ font-size: 22px;
163
+ color: #565656;
164
+ }
165
+ p.sa-help-text {
166
+ width: 310px;
167
+ margin-top: 24px;
168
+ font-size: 14px;
169
+ color: #565656;
170
+ }
171
+ p.sa-help-text strong {
172
+ font-size: 14px;
173
+ font-weight: bold;
174
+ color: #565656;
175
+ }
176
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.5.848",
4
+ "version": "1.5.849",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",