bfg-common 1.5.475 → 1.5.478
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.
- package/assets/scss/components/auth.scss +4 -3
- package/components/atoms/window/Window.vue +2 -0
- package/components/common/layout/theHeader/ThemeSwitch.vue +1 -1
- package/components/common/layout/theHeader/helpMenu/About.vue +2 -2
- package/components/common/mainNavigationPanel/MainNavigationPanelNew.vue +1 -1
- package/components/common/pages/shortcuts/block/BlockNew.vue +1 -1
- package/components/common/split/vertical/VerticalNew.vue +6 -4
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/BusOld.vue +1 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveNew.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/CdDvdDriveOld.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/Media.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cdDvdDrive/media/MediaNew.vue +84 -78
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/coresPerSocket/CoresPerSocketNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/hotPlug/HotPlugNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/maxCpu/MaxCpuNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/model/ModelNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/shares/SharesNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/limit/LimitNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/memory/hotPlug/HotPlugNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/NewHardDiskNew.vue +2 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/cache/CacheNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/File.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/file/FileNew.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/limitIops/LimitIopsNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/location/LocationNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSize.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/maximumSize/MaximumSizeNew.vue +5 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/mode/ModeNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/provisioning/ProvisioningNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newHardDisk/sharing/SharingNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/adapterType/AdapterTypeNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newNetwork/macAddress/MacAddressNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/directPathIo/DirectPathIoNew.vue +69 -66
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/dynamicDirectPathIo/DynamicDirectPathIoNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/Note.vue +1 -0
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/note/NoteNew.vue +49 -42
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/nvidiaGrid/NvidiaGridNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/newPciDevice/typeSelection/TypeSelectionNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/other/inputDevices/InputDevicesNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/reservation/ReservationNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/model/ModelNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/numberDisplays/NumberDisplaysNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/virtualHardware/videoCard/totalVideoMemory/TotalVideoMemoryNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/delay/DelayNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/firmware/FirmwareNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/menu/MenuNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/bootOptions/order/OrderNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/generalOptions/GeneralOptionsNew.vue +16 -4
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/copyPaste/CopyPasteNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/fileTransfer/FileTransferNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/folderSharing/FolderSharingNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/keymap/KeymapNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/password/PasswordNew.vue +4 -1
- package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/usbRedirection/UsbRedirectionNew.vue +4 -1
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/old/SelectNetwork.vue +1 -0
- package/components/common/wizards/network/add/steps/selectTargetDevice/modals/old/SelectStandardSwitch.vue +1 -0
- package/composables/useLocal.ts +6 -51
- package/composables/useLocalCommon.ts +39 -0
- package/{composables/productNameLocal.ts → lib/utils/localizationMapper.ts} +30 -30
- package/package.json +4 -4
@@ -1,30 +1,30 @@
|
|
1
|
-
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
-
import type { UI_T_LanguageKey } from '~/lib/models/types'
|
3
|
-
|
4
|
-
|
5
|
-
localization: UI_I_Localization
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
return localization
|
30
|
-
}
|
1
|
+
import type { UI_I_Localization } from '~/lib/models/interfaces'
|
2
|
+
import type { UI_T_LanguageKey } from '~/lib/models/types'
|
3
|
+
|
4
|
+
const replaceProductNameRecursion = (
|
5
|
+
localization: UI_I_Localization,
|
6
|
+
productName: any
|
7
|
+
): UI_I_Localization => {
|
8
|
+
for (const key of Object.keys(localization)) {
|
9
|
+
let item = localization[key as UI_T_LanguageKey]
|
10
|
+
|
11
|
+
for (const key2 of Object.keys(item)) {
|
12
|
+
item[key2] = item[key2].replaceAll('{productName}', productName)
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
return localization
|
17
|
+
}
|
18
|
+
|
19
|
+
export const productNameLocal = (
|
20
|
+
localization: UI_I_Localization
|
21
|
+
): UI_I_Localization => {
|
22
|
+
const config = useRuntimeConfig()
|
23
|
+
|
24
|
+
const productName =
|
25
|
+
config.public.LOCALIZATION_CODE === 'ru'
|
26
|
+
? config.public.PRODUCT_NAME_RU
|
27
|
+
: config.public.PRODUCT_NAME_EN
|
28
|
+
|
29
|
+
return replaceProductNameRecursion(localization, productName)
|
30
|
+
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "bfg-common",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.5.
|
4
|
+
"version": "1.5.478",
|
5
5
|
"scripts": {
|
6
6
|
"build": "nuxt build",
|
7
7
|
"dev": "nuxt dev --port=3002",
|
@@ -28,14 +28,14 @@
|
|
28
28
|
"xterm-addon-serialize": "^0.9.0",
|
29
29
|
"xterm-addon-unicode11": "^0.5.0",
|
30
30
|
"xterm-addon-web-links": "^0.8.0",
|
31
|
-
"eslint-plugin-myrules": "file:./eslint"
|
31
|
+
"eslint-plugin-myrules": "file:./eslint",
|
32
|
+
"bfg-nuxt-3-graph": "1.0.26",
|
33
|
+
"bfg-uikit": "1.0.516"
|
32
34
|
},
|
33
35
|
"dependencies": {
|
34
36
|
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
35
37
|
"@vueuse/components": "^10.1.2",
|
36
38
|
"date-fns": "^2.29.3",
|
37
|
-
"bfg-nuxt-3-graph": "1.0.26",
|
38
|
-
"bfg-uikit": "1.0.510",
|
39
39
|
"html2canvas": "^1.4.1",
|
40
40
|
"prettier-eslint": "^15.0.1"
|
41
41
|
}
|