bfg-common 1.0.16 → 1.0.18

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.
Files changed (28) hide show
  1. package/components/common/adapterManager/AdapterManager.vue +9 -9
  2. package/components/common/adapterManager/ui/table/Table.vue +2 -2
  3. package/components/common/addNetworking/AddNetworking.vue +2 -2
  4. package/components/common/addNetworking/config/sendData.ts +1 -1
  5. package/components/common/addNetworking/mappers/mappers.ts +1 -1
  6. package/components/common/diagramMain/DiagramMain.vue +2 -2
  7. package/components/common/diagramMain/config/initial.ts +1 -1
  8. package/components/common/diagramMain/modals/ManagePhysicalAdaptersModal.vue +236 -236
  9. package/components/common/diagramMain/modals/config/initial.ts +31 -45
  10. package/components/common/diagramMain/modals/editSettings/EditSettings.vue +6 -5
  11. package/components/common/diagramMain/modals/editSettings/tabs/Security.vue +183 -178
  12. package/components/common/diagramMain/modals/editSettings/tabs/TeamingFailover.vue +2 -1
  13. package/components/common/diagramMain/modals/editSettings/tabs/TrafficShaping.vue +393 -392
  14. package/components/common/diagramMain/models/interfaces.ts +53 -74
  15. package/components/common/diagramMain/models/types.ts +1 -1
  16. package/components/common/monitor/models/interfaces.ts +1 -0
  17. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Cpu.vue +371 -371
  18. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/MaxCpu.vue +105 -105
  19. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/Sa.vue +102 -102
  20. package/components/common/vm/actions/add/customizeHardware/virtualHardware/cpu/shares/Shares.vue +155 -155
  21. package/components/common/vm/actions/add/customizeHardware/virtualHardware/limit/Limit.vue +214 -214
  22. package/components/common/vm/actions/add/customizeHardware/virtualHardware/memory/Memory.vue +282 -282
  23. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/NewHardDisk.vue +451 -451
  24. package/components/common/vm/actions/add/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIops.vue +151 -151
  25. package/components/common/vm/actions/add/customizeHardware/vmoptions/remoteConsoleOptions/RemoteConsoleOptions.vue +230 -230
  26. package/components/common/vm/actions/add/select/compatibility/Compatibility.vue +151 -151
  27. package/package.json +1 -1
  28. package/public/spice-console/network/spicechannel.js +1 -1
@@ -1,151 +1,151 @@
1
- <template>
2
- <div class="select-compatibility">
3
- <p class="select-compatibility-block">
4
- {{
5
- localization.hostSupportsMoreVirtualMachineVersionSelectCompatibilityVirtualMachine
6
- }}
7
- </p>
8
- <div class="select-compatibility-block version-select-wrap">
9
- <label for="version-select">{{ localization.compatibleWith }}:</label>
10
-
11
- <atoms-tooltip-error
12
- :has-error="!!apiError"
13
- selector="#vm-wizard-version-select"
14
- @remove="onRemoveValidationError"
15
- >
16
- <template #elem>
17
- <select id="vm-wizard-version-select" v-model="selectedVersion">
18
- <option v-for="(item, key) in versions" :key="key" :value="item">
19
- {{ item.text }}
20
- </option>
21
- </select>
22
- </template>
23
- <template #content>{{ apiError }}</template>
24
- </atoms-tooltip-error>
25
- <div id="version-select-help-icon" class="flex-align-center relative">
26
- <atoms-the-icon
27
- fill="#0072a3"
28
- width="24px"
29
- height="24px"
30
- name="info-circle"
31
- @click="isShowHelp = !isShowHelp"
32
- />
33
- <atoms-tooltip-signpost
34
- v-if="isShowHelp"
35
- elem-id="version-select-help-icon"
36
- @hide="isShowHelp = false"
37
- >
38
- <h3 class="help-title">{{ localization.help }}</h3>
39
-
40
- <p>
41
- {{
42
- localization.eachVirtualMachineCompatibilitySettingIncludesHardwareAvailableVirtualMachine
43
- }}
44
- </p>
45
-
46
- <a id="more-information-link" class="pointer">{{
47
- localization.moreInformation
48
- }}</a>
49
- </atoms-tooltip-signpost>
50
- </div>
51
- </div>
52
- <p class="select-compatibility-block">
53
- {{ versionDescription }}
54
- </p>
55
- </div>
56
- </template>
57
-
58
- <script setup lang="ts">
59
- import { UI_I_Localization } from '~/models/interfaces'
60
- import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
61
- import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
62
-
63
- const props = defineProps<{
64
- options: UI_I_OptionItem[]
65
- errorValidationFields: UI_I_ErrorValidationField<string>[]
66
- }>()
67
- const emits = defineEmits<{
68
- (event: 'change', value: UI_I_OptionItem): void
69
- (event: 'remove-error-by-title', value: string): void
70
- }>()
71
-
72
- const localization = computed<UI_I_Localization>(() => useLocal())
73
-
74
- const versions = ref<UI_I_OptionItem[]>(props.options)
75
- const selectedVersion = ref<UI_I_OptionItem | null>(null)
76
- watch(
77
- () => props.options,
78
- (newValue) => {
79
- versions.value = [...newValue]
80
- selectedVersion.value = newValue[0]
81
- },
82
- { immediate: true }
83
- )
84
-
85
- const versionDescription = computed<string>(() => {
86
- if (!selectedVersion.value) return ''
87
-
88
- const version = selectedVersion.value.value.split('-')[1]
89
- const text = selectedVersion.value.text
90
-
91
- if (selectedVersion.value === versions.value.at(-1)) {
92
- return localization.value.virtualMachineUsesHardwareVersionAvailable
93
- .replace('{0}', version)
94
- .replace('{1}', text)
95
- }
96
-
97
- return localization.value.virtualMachineUsesHardwareVersionUnavailable
98
- .replace('{0}', version)
99
- .replace('{1}', text)
100
- })
101
-
102
- watch(
103
- selectedVersion,
104
- (newValue) => {
105
- if (!newValue) return
106
- emits('change', newValue)
107
- },
108
- { immediate: true }
109
- )
110
-
111
- const isShowHelp = ref(false)
112
-
113
- const apiError = computed<string>(() => {
114
- return (
115
- props.errorValidationFields?.find(
116
- (message) => message.field === 'compatibility'
117
- )?.error_message || ''
118
- )
119
- })
120
-
121
- const onRemoveValidationError = (): void => {
122
- emits('remove-error-by-title', 'compatibility')
123
- }
124
- </script>
125
-
126
- <style scoped lang="scss">
127
- .select-compatibility-block {
128
- margin-top: 12px;
129
- font-size: 13px;
130
-
131
- &.version-select-wrap {
132
- display: flex;
133
- align-items: center;
134
- gap: 6px;
135
-
136
- #version-select-help-icon {
137
- .help-title {
138
- font-size: 22px;
139
- }
140
-
141
- p {
142
- width: 200px;
143
- }
144
-
145
- a {
146
- color: #0072a3;
147
- }
148
- }
149
- }
150
- }
151
- </style>
1
+ <template>
2
+ <div class="select-compatibility">
3
+ <p class="select-compatibility-block">
4
+ {{
5
+ localization.hostSupportsMoreVirtualMachineVersionSelectCompatibilityVirtualMachine
6
+ }}
7
+ </p>
8
+ <div class="select-compatibility-block version-select-wrap">
9
+ <label for="version-select">{{ localization.compatibleWith }}:</label>
10
+
11
+ <atoms-tooltip-error
12
+ :has-error="!!apiError"
13
+ selector="#vm-wizard-version-select"
14
+ @remove="onRemoveValidationError"
15
+ >
16
+ <template #elem>
17
+ <select id="vm-wizard-version-select" v-model="selectedVersion">
18
+ <option v-for="(item, key) in versions" :key="key" :value="item">
19
+ {{ item.text }}
20
+ </option>
21
+ </select>
22
+ </template>
23
+ <template #content>{{ apiError }}</template>
24
+ </atoms-tooltip-error>
25
+ <div id="version-select-help-icon" class="flex-align-center relative">
26
+ <atoms-the-icon
27
+ fill="#0072a3"
28
+ width="24px"
29
+ height="24px"
30
+ name="info-circle"
31
+ @click="isShowHelp = !isShowHelp"
32
+ />
33
+ <atoms-tooltip-signpost
34
+ v-if="isShowHelp"
35
+ elem-id="version-select-help-icon"
36
+ @hide="isShowHelp = false"
37
+ >
38
+ <h3 class="help-title">{{ localization.help }}</h3>
39
+
40
+ <p>
41
+ {{
42
+ localization.eachVirtualMachineCompatibilitySettingIncludesHardwareAvailableVirtualMachine
43
+ }}
44
+ </p>
45
+
46
+ <a id="more-information-link" class="pointer">{{
47
+ localization.moreInformation
48
+ }}</a>
49
+ </atoms-tooltip-signpost>
50
+ </div>
51
+ </div>
52
+ <p class="select-compatibility-block">
53
+ {{ versionDescription }}
54
+ </p>
55
+ </div>
56
+ </template>
57
+
58
+ <script setup lang="ts">
59
+ import { UI_I_Localization } from '~/models/interfaces'
60
+ import { UI_I_ErrorValidationField } from '~/models/store/interfaces'
61
+ import { UI_I_OptionItem } from '~/components/atoms/models/interfaces'
62
+
63
+ const props = defineProps<{
64
+ options: UI_I_OptionItem[]
65
+ errorValidationFields: UI_I_ErrorValidationField<string>[]
66
+ }>()
67
+ const emits = defineEmits<{
68
+ (event: 'change', value: UI_I_OptionItem): void
69
+ (event: 'remove-error-by-title', value: string): void
70
+ }>()
71
+
72
+ const localization = computed<UI_I_Localization>(() => useLocal())
73
+
74
+ const versions = ref<UI_I_OptionItem[]>(props.options)
75
+ const selectedVersion = ref<UI_I_OptionItem | null>(null)
76
+ watch(
77
+ () => props.options,
78
+ (newValue) => {
79
+ versions.value = [...newValue]
80
+ selectedVersion.value = newValue[0]
81
+ },
82
+ { immediate: true }
83
+ )
84
+
85
+ const versionDescription = computed<string>(() => {
86
+ if (!selectedVersion.value) return ''
87
+
88
+ const version = selectedVersion.value.value.split('-')[1]
89
+ const text = selectedVersion.value.text
90
+
91
+ if (selectedVersion.value === versions.value.at(-1)) {
92
+ return localization.value.virtualMachineUsesHardwareVersionAvailable
93
+ .replace('{0}', version)
94
+ .replace('{1}', text)
95
+ }
96
+
97
+ return localization.value.virtualMachineUsesHardwareVersionUnavailable
98
+ .replace('{0}', version)
99
+ .replace('{1}', text)
100
+ })
101
+
102
+ watch(
103
+ selectedVersion,
104
+ (newValue) => {
105
+ if (!newValue) return
106
+ emits('change', newValue)
107
+ },
108
+ { immediate: true }
109
+ )
110
+
111
+ const isShowHelp = ref(false)
112
+
113
+ const apiError = computed<string>(() => {
114
+ return (
115
+ props.errorValidationFields?.find(
116
+ (message) => message.field === 'compatibility'
117
+ )?.error_message || ''
118
+ )
119
+ })
120
+
121
+ const onRemoveValidationError = (): void => {
122
+ emits('remove-error-by-title', 'compatibility')
123
+ }
124
+ </script>
125
+
126
+ <style scoped lang="scss">
127
+ .select-compatibility-block {
128
+ margin-top: 12px;
129
+ font-size: 13px;
130
+
131
+ &.version-select-wrap {
132
+ display: flex;
133
+ align-items: center;
134
+ gap: 6px;
135
+
136
+ #version-select-help-icon {
137
+ .help-title {
138
+ font-size: 22px;
139
+ }
140
+
141
+ p {
142
+ width: 200px;
143
+ }
144
+
145
+ a {
146
+ color: #0072a3;
147
+ }
148
+ }
149
+ }
150
+ }
151
+ </style>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.0.16",
4
+ "version": "1.0.18",
5
5
  "scripts": {
6
6
  "build": "nuxt build",
7
7
  "dev": "nuxt dev --port=3002",
@@ -26,7 +26,7 @@ wdi.SpiceChannel = $.spcExtend(wdi.EventObject.prototype, {
26
26
  socketQ: null,
27
27
  packetReassembler: null,
28
28
  channel: 1,
29
- codec: wdi.SpiceVideoCodecType.SPICE_VIDEO_CODEC_TYPE_H264,
29
+ codec: wdi.SpiceVideoCodecType.SPICE_VIDEO_CODEC_TYPE_MJPEG,
30
30
  proxy: null,
31
31
  token: null,
32
32