bfg-common 1.4.110 → 1.4.112

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 (32) hide show
  1. package/assets/img/icons/icons-sprite-dark-2.svg +343 -343
  2. package/assets/img/icons/icons-sprite-dark-4.svg +253 -253
  3. package/assets/img/icons/icons-sprite-dark-5.svg +491 -491
  4. package/assets/img/icons/icons-sprite-dark-6.svg +3 -3
  5. package/assets/img/icons/icons-sprite-light-2.svg +343 -343
  6. package/assets/img/icons/icons-sprite-light-4.svg +253 -253
  7. package/assets/img/icons/icons-sprite-light-5.svg +491 -491
  8. package/assets/img/icons/icons-sprite-light-6.svg +3 -3
  9. package/components/atoms/modal/bySteps/BySteps.vue +253 -253
  10. package/components/atoms/stack/StackBlock.vue +184 -184
  11. package/components/common/browse/blocks/Title.vue +91 -91
  12. package/components/common/browse/blocks/info/Date.vue +21 -21
  13. package/components/common/context/recursion/Recursion.vue +86 -86
  14. package/components/common/context/recursion/RecursionNew.vue +198 -198
  15. package/components/common/context/recursion/RecursionOld.vue +212 -212
  16. package/components/common/layout/theHeader/TheHeaderNew.vue +12 -2
  17. package/components/common/layout/theHeader/ThemeSwitch.vue +8 -1
  18. package/components/common/layout/theHeader/helpMenu/helpMenuNew/HelpMenuNew.vue +8 -2
  19. package/components/common/layout/theHeader/userMenu/userMenuNew/UserMenuNew.vue +7 -1
  20. package/components/common/split/horizontal/HorizontalNew.vue +321 -321
  21. package/components/common/vm/actions/add/Add.vue +609 -609
  22. package/components/common/vm/actions/clone/Clone.vue +522 -522
  23. package/components/common/vm/actions/common/customizeHardware/virtualHardware/bus/lib/config/options.ts +20 -20
  24. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Cpu.vue +403 -403
  25. package/components/common/vm/actions/common/customizeHardware/virtualHardware/cpu/Hv.vue +99 -99
  26. package/components/common/vm/actions/common/customizeHardware/vmoptions/remoteConsoleOptions/streamingMode/StreamingMode.vue +85 -85
  27. package/components/common/vm/actions/editSettings/EditSettings.vue +327 -327
  28. package/composables/productNameLocal.ts +30 -30
  29. package/package.json +2 -2
  30. package/plugins/recursion.ts +311 -311
  31. package/public/spice-console/lib/images/bitmap.js +203 -203
  32. package/store/tasks/mappers/recentTasks.ts +45 -45
@@ -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
- export function productNameLocal(
5
- localization: UI_I_Localization
6
- ): UI_I_Localization {
7
- const config = useRuntimeConfig()
8
-
9
- const productName =
10
- config.public.LOCALIZATION_CODE === 'ru'
11
- ? config.public.PRODUCT_NAME_RU
12
- : config.public.PRODUCT_NAME_EN
13
-
14
- return replaceProductNameRecursion(localization, productName)
15
- }
16
-
17
- const replaceProductNameRecursion = (
18
- localization: UI_I_Localization,
19
- productName: any
20
- ): UI_I_Localization => {
21
- for (const key of Object.keys(localization)) {
22
- let item = localization[key as UI_T_LanguageKey]
23
-
24
- for (const key2 of Object.keys(item)) {
25
- item[key2] = item[key2].replaceAll('{productName}', productName)
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
+ export function productNameLocal(
5
+ localization: UI_I_Localization
6
+ ): UI_I_Localization {
7
+ const config = useRuntimeConfig()
8
+
9
+ const productName =
10
+ config.public.LOCALIZATION_CODE === 'ru'
11
+ ? config.public.PRODUCT_NAME_RU
12
+ : config.public.PRODUCT_NAME_EN
13
+
14
+ return replaceProductNameRecursion(localization, productName)
15
+ }
16
+
17
+ const replaceProductNameRecursion = (
18
+ localization: UI_I_Localization,
19
+ productName: any
20
+ ): UI_I_Localization => {
21
+ for (const key of Object.keys(localization)) {
22
+ let item = localization[key as UI_T_LanguageKey]
23
+
24
+ for (const key2 of Object.keys(item)) {
25
+ item[key2] = item[key2].replaceAll('{productName}', productName)
26
+ }
27
+ }
28
+
29
+ return localization
30
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bfg-common",
3
3
  "private": false,
4
- "version": "1.4.110",
4
+ "version": "1.4.112",
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.15",
38
- "bfg-uikit": "1.0.96",
38
+ "bfg-uikit": "1.0.97",
39
39
  "html2canvas": "^1.4.1",
40
40
  "prettier-eslint": "^15.0.1"
41
41
  }