@cloud-ru/uikit-product-calculator 0.33.3
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/CHANGELOG.md +1508 -0
- package/LICENSE +201 -0
- package/README.md +85 -0
- package/package.json +75 -0
- package/src/components/Calculator/Calculator.tsx +79 -0
- package/src/components/Calculator/index.ts +1 -0
- package/src/components/CalculatorContent/CalculatorContent.tsx +38 -0
- package/src/components/CalculatorContent/index.ts +1 -0
- package/src/components/CalculatorContent/styles.module.scss +79 -0
- package/src/components/Catalog/Catalog.tsx +225 -0
- package/src/components/Catalog/components/PrivateCardHeader.tsx +63 -0
- package/src/components/Catalog/components/index.ts +1 -0
- package/src/components/Catalog/components/styles.module.scss +35 -0
- package/src/components/Catalog/index.ts +1 -0
- package/src/components/Catalog/styles.module.scss +104 -0
- package/src/components/Controls/AlertControl/AlertControl.tsx +44 -0
- package/src/components/Controls/AlertControl/index.ts +1 -0
- package/src/components/Controls/ArrayControl/ArrayControl.tsx +105 -0
- package/src/components/Controls/ArrayControl/index.ts +1 -0
- package/src/components/Controls/ArrayControl/styles.module.scss +33 -0
- package/src/components/Controls/CarouselControl/CarouselControl.tsx +173 -0
- package/src/components/Controls/CarouselControl/index.ts +1 -0
- package/src/components/Controls/CarouselControl/styles.module.scss +32 -0
- package/src/components/Controls/Control/Control.tsx +205 -0
- package/src/components/Controls/Control/index.ts +1 -0
- package/src/components/Controls/ObjectControl/ObjectControl.tsx +150 -0
- package/src/components/Controls/ObjectControl/index.ts +1 -0
- package/src/components/Controls/ObjectControl/styles.module.scss +18 -0
- package/src/components/Controls/ObjectDecorator/ObjectDecorator.tsx +23 -0
- package/src/components/Controls/ObjectDecorator/index.ts +1 -0
- package/src/components/Controls/ObjectDecorator/styles.module.scss +15 -0
- package/src/components/Controls/SegmentedControl/SegmentedControl.tsx +79 -0
- package/src/components/Controls/SegmentedControl/SegmentedControlCard.tsx +38 -0
- package/src/components/Controls/SegmentedControl/index.ts +1 -0
- package/src/components/Controls/SegmentedControl/styles.module.scss +8 -0
- package/src/components/Controls/SelectControl/SelectControl.tsx +172 -0
- package/src/components/Controls/SelectControl/index.ts +1 -0
- package/src/components/Controls/SelectControl/styles.module.scss +5 -0
- package/src/components/Controls/SliderControl/SliderControl.tsx +92 -0
- package/src/components/Controls/SliderControl/index.ts +1 -0
- package/src/components/Controls/StepperControl/StepperControl.tsx +160 -0
- package/src/components/Controls/StepperControl/index.ts +1 -0
- package/src/components/Controls/StepperControl/styles.module.scss +16 -0
- package/src/components/Controls/TableControl/TableControl.tsx +162 -0
- package/src/components/Controls/TableControl/helperComponents/StepperWithAllowedValues.tsx +50 -0
- package/src/components/Controls/TableControl/helperComponents/index.ts +1 -0
- package/src/components/Controls/TableControl/helperComponents/styles.module.scss +53 -0
- package/src/components/Controls/TableControl/index.ts +1 -0
- package/src/components/Controls/TableControl/styles.module.scss +104 -0
- package/src/components/Controls/ToggleCard/ToggleCard.tsx +46 -0
- package/src/components/Controls/ToggleCard/index.ts +1 -0
- package/src/components/Controls/ToggleCard/styles.module.scss +11 -0
- package/src/components/Controls/ToggleCardsControl/ToggleCardsControl.tsx +93 -0
- package/src/components/Controls/ToggleCardsControl/index.ts +1 -0
- package/src/components/Controls/ToggleCardsControl/styles.module.scss +40 -0
- package/src/components/Controls/ToggleControl/ToggleControl.tsx +59 -0
- package/src/components/Controls/ToggleControl/components/SwitchRow.tsx +98 -0
- package/src/components/Controls/ToggleControl/components/index.ts +1 -0
- package/src/components/Controls/ToggleControl/components/styles.module.scss +110 -0
- package/src/components/Controls/ToggleControl/index.ts +1 -0
- package/src/components/Controls/ToggleObjectControl/ToggleObjectControl.tsx +111 -0
- package/src/components/Controls/ToggleObjectControl/index.ts +1 -0
- package/src/components/Controls/ToggleObjectControl/styles.module.scss +13 -0
- package/src/components/Controls/constants.ts +16 -0
- package/src/components/Controls/index.tsx +26 -0
- package/src/components/Controls/types.ts +181 -0
- package/src/components/Controls/utils.ts +49 -0
- package/src/components/Disclaimer/Disclaimer.tsx +33 -0
- package/src/components/Disclaimer/index.ts +1 -0
- package/src/components/Disclaimer/styles.module.scss +14 -0
- package/src/components/HeaderContainer/index.tsx +32 -0
- package/src/components/HeaderContainer/styles.module.scss +24 -0
- package/src/components/PriceSummary/PriceSummary.tsx +158 -0
- package/src/components/PriceSummary/components/PricePeriodSelect/PricePeriodSelect.tsx +81 -0
- package/src/components/PriceSummary/components/PricePeriodSelect/index.ts +1 -0
- package/src/components/PriceSummary/components/ProductCard/ProductCard.tsx +85 -0
- package/src/components/PriceSummary/components/ProductCard/index.ts +1 -0
- package/src/components/PriceSummary/components/ProductCard/styles.module.scss +7 -0
- package/src/components/PriceSummary/components/ProductListActions/ProductListActions.tsx +118 -0
- package/src/components/PriceSummary/components/ProductListActions/index.ts +1 -0
- package/src/components/PriceSummary/components/ProductListActions/styles.module.scss +38 -0
- package/src/components/PriceSummary/components/index.ts +3 -0
- package/src/components/PriceSummary/hooks.ts +36 -0
- package/src/components/PriceSummary/index.ts +1 -0
- package/src/components/PriceSummary/styles.module.scss +110 -0
- package/src/components/PriceSummary/utils/getTotalPrice.ts +19 -0
- package/src/components/PriceSummary/utils/index.ts +2 -0
- package/src/components/PriceSummary/utils/transformToProductCardData.ts +36 -0
- package/src/components/ProductHeadline/ProductPageHeadline.tsx +134 -0
- package/src/components/ProductHeadline/components/PriceCount.tsx +93 -0
- package/src/components/ProductHeadline/components/index.ts +1 -0
- package/src/components/ProductHeadline/components/styles.module.scss +52 -0
- package/src/components/ProductHeadline/index.ts +1 -0
- package/src/components/ProductHeadline/styles.module.scss +32 -0
- package/src/components/ProductPage/ProductPage.tsx +105 -0
- package/src/components/ProductPage/index.ts +1 -0
- package/src/components/ProductPage/styles.module.scss +13 -0
- package/src/components/Welcome/Welcome.tsx +138 -0
- package/src/components/Welcome/index.ts +1 -0
- package/src/components/Welcome/styles.module.scss +155 -0
- package/src/components/index.ts +3 -0
- package/src/config/config.tsx +27 -0
- package/src/config/index.ts +2 -0
- package/src/config/platforms/advanced/catalog.ts +82 -0
- package/src/config/platforms/advanced/constants.ts +23 -0
- package/src/config/platforms/advanced/index.ts +5 -0
- package/src/config/platforms/advanced/platform.tsx +13 -0
- package/src/config/platforms/advanced/product-config/AdvancedCloudBackup.ts +76 -0
- package/src/config/platforms/advanced/product-config/AdvancedCloudContainerEngine.tsx +260 -0
- package/src/config/platforms/advanced/product-config/AdvancedCloudServer.tsx +526 -0
- package/src/config/platforms/advanced/product-config/AdvancedDataAsYouUse.ts +159 -0
- package/src/config/platforms/advanced/product-config/AdvancedDataLakeInsight.ts +134 -0
- package/src/config/platforms/advanced/product-config/AdvancedDataWarehouseService.ts +94 -0
- package/src/config/platforms/advanced/product-config/AdvancedDcsMemcached.ts +69 -0
- package/src/config/platforms/advanced/product-config/AdvancedDcsRedis.ts +220 -0
- package/src/config/platforms/advanced/product-config/AdvancedDmsKafka.tsx +186 -0
- package/src/config/platforms/advanced/product-config/AdvancedDmsRabbitMq.ts +202 -0
- package/src/config/platforms/advanced/product-config/AdvancedDocumentDatabase.tsx +323 -0
- package/src/config/platforms/advanced/product-config/AdvancedElasticLoadBalance.tsx +252 -0
- package/src/config/platforms/advanced/product-config/AdvancedElasticSearch.ts +365 -0
- package/src/config/platforms/advanced/product-config/AdvancedFunctionGraph.tsx +65 -0
- package/src/config/platforms/advanced/product-config/AdvancedMapReduce.tsx +394 -0
- package/src/config/platforms/advanced/product-config/AdvancedMySqlDataBase.ts +417 -0
- package/src/config/platforms/advanced/product-config/AdvancedNetwork.ts +146 -0
- package/src/config/platforms/advanced/product-config/AdvancedObjectStorage.ts +232 -0
- package/src/config/platforms/advanced/product-config/AdvancedPostgreSqlDatabase.ts +402 -0
- package/src/config/platforms/advanced/product-config/AdvancedScalableFile.tsx +161 -0
- package/src/config/platforms/advanced/product-config/AdvancedSqlDatabase.ts +380 -0
- package/src/config/platforms/advanced/product-config/index.ts +21 -0
- package/src/config/platforms/advanced/products.ts +267 -0
- package/src/config/platforms/evolution/catalog.tsx +107 -0
- package/src/config/platforms/evolution/constants.ts +80 -0
- package/src/config/platforms/evolution/index.ts +5 -0
- package/src/config/platforms/evolution/platform.tsx +13 -0
- package/src/config/platforms/evolution/product-config/EvolutionArenadataDb.ts +151 -0
- package/src/config/platforms/evolution/product-config/EvolutionArtifactRegistry.ts +57 -0
- package/src/config/platforms/evolution/product-config/EvolutionBareMetal.tsx +172 -0
- package/src/config/platforms/evolution/product-config/EvolutionCloudServer.tsx +407 -0
- package/src/config/platforms/evolution/product-config/EvolutionCloudServerFreeTier.tsx +185 -0
- package/src/config/platforms/evolution/product-config/EvolutionCloudServerGpu.tsx +301 -0
- package/src/config/platforms/evolution/product-config/EvolutionContainerApps.ts +84 -0
- package/src/config/platforms/evolution/product-config/EvolutionContainerAppsFreeTier.ts +29 -0
- package/src/config/platforms/evolution/product-config/EvolutionKubernetes.ts +388 -0
- package/src/config/platforms/evolution/product-config/EvolutionManagedMetastore.ts +38 -0
- package/src/config/platforms/evolution/product-config/EvolutionManagedRedis.ts +161 -0
- package/src/config/platforms/evolution/product-config/EvolutionManagedSpark.ts +360 -0
- package/src/config/platforms/evolution/product-config/EvolutionManagedTrino.ts +53 -0
- package/src/config/platforms/evolution/product-config/EvolutionMlInference.tsx +703 -0
- package/src/config/platforms/evolution/product-config/EvolutionPostgreSql.ts +217 -0
- package/src/config/platforms/evolution/product-config/EvolutionPublicIp.ts +39 -0
- package/src/config/platforms/evolution/product-config/EvolutionSnatGateway.ts +22 -0
- package/src/config/platforms/evolution/product-config/EvolutionStorageS3.ts +223 -0
- package/src/config/platforms/evolution/product-config/EvolutionStorageS3FreeTier.ts +97 -0
- package/src/config/platforms/evolution/product-config/index.ts +17 -0
- package/src/config/platforms/evolution/products.ts +260 -0
- package/src/config/platforms/index.ts +3 -0
- package/src/config/platforms/vmware/catalog.ts +19 -0
- package/src/config/platforms/vmware/constants.ts +6 -0
- package/src/config/platforms/vmware/index.ts +5 -0
- package/src/config/platforms/vmware/platform.tsx +13 -0
- package/src/config/platforms/vmware/product-config/VmWareCloudBackup.ts +56 -0
- package/src/config/platforms/vmware/product-config/VmWareVirtualDataCenter.ts +309 -0
- package/src/config/platforms/vmware/product-config/VmWareVirtualMachinesBackup.ts +58 -0
- package/src/config/platforms/vmware/product-config/VmWareVirtualWorkspaces.tsx +210 -0
- package/src/config/platforms/vmware/product-config/index.ts +4 -0
- package/src/config/platforms/vmware/products.ts +63 -0
- package/src/config/styles.module.scss +9 -0
- package/src/config/utils/disk.ts +94 -0
- package/src/config/utils/diskPostgreSqlMySQL.ts +94 -0
- package/src/config/utils/eip.ts +104 -0
- package/src/config/utils/index.ts +52 -0
- package/src/config/utils/obs.ts +100 -0
- package/src/constants.ts +56 -0
- package/src/contexts/CalculatorContext.tsx +193 -0
- package/src/contexts/ProductContext.ts +25 -0
- package/src/contexts/index.ts +2 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/useAdaptive.ts +20 -0
- package/src/hooks/useCatalogCardClick.ts +37 -0
- package/src/hooks/useProductClick.ts +14 -0
- package/src/hooks/useProductDelete.ts +46 -0
- package/src/index.ts +6 -0
- package/src/services/constants.ts +5 -0
- package/src/services/getFetcherFn.ts +57 -0
- package/src/services/getInitPrice.ts +64 -0
- package/src/services/getOnDownloadFileClick.ts +37 -0
- package/src/services/getOnShareClick.ts +56 -0
- package/src/services/index.ts +4 -0
- package/src/types/CalculatorType.ts +16 -0
- package/src/types/CatalogConfig.ts +13 -0
- package/src/types/Category.ts +14 -0
- package/src/types/FetcherFn.ts +26 -0
- package/src/types/FormValues.ts +4 -0
- package/src/types/Platform.ts +24 -0
- package/src/types/Price.ts +18 -0
- package/src/types/Product.ts +39 -0
- package/src/types/ProductState.ts +11 -0
- package/src/types/State.ts +7 -0
- package/src/types/index.ts +10 -0
- package/src/utils/filterNonEmptyArrays.ts +13 -0
- package/src/utils/formatNumber.ts +5 -0
- package/src/utils/getPrice.ts +38 -0
- package/src/utils/index.ts +5 -0
- package/src/utils/parseKeyToDataTest.ts +14 -0
- package/src/utils/value.ts +11 -0
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { ArrayControl, CONTROL, FormConfig, ObjectControl, SegmentedControl } from '../../../../components';
|
|
2
|
+
import styles from '../../../styles.module.scss';
|
|
3
|
+
import { generateBaseItems, getEip } from '../../../utils';
|
|
4
|
+
|
|
5
|
+
const loadBalancerTypeItem = {
|
|
6
|
+
Shared: 'Shared',
|
|
7
|
+
Dedicated: 'Dedicated',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const balancerWorkLevelItem = {
|
|
11
|
+
HTTP: 'HTTP/HTTPS L7',
|
|
12
|
+
TCP: 'TCP/UDP L4',
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const getElbConfigControls = (
|
|
16
|
+
prefix: string = 'elb',
|
|
17
|
+
): {
|
|
18
|
+
loadBalancerType: SegmentedControl;
|
|
19
|
+
accessibilityZoneQuantity: SegmentedControl;
|
|
20
|
+
dedicatedObj: ObjectControl;
|
|
21
|
+
} => {
|
|
22
|
+
const accessorKey = {
|
|
23
|
+
loadBalancerType: `${prefix}.type`,
|
|
24
|
+
accessibilityZoneQuantity: `${prefix}.accessibilityZoneQuantity`,
|
|
25
|
+
balancerWorkLevel: `${prefix}.balancerWorkLevel`,
|
|
26
|
+
lcu: `${prefix}.lcu`,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return {
|
|
30
|
+
loadBalancerType: {
|
|
31
|
+
type: CONTROL.Segmented,
|
|
32
|
+
accessorKey: accessorKey.loadBalancerType,
|
|
33
|
+
defaultValue: loadBalancerTypeItem.Shared,
|
|
34
|
+
items: [
|
|
35
|
+
{
|
|
36
|
+
value: loadBalancerTypeItem.Shared,
|
|
37
|
+
label: 'Общий (бесплатный)',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: loadBalancerTypeItem.Dedicated,
|
|
41
|
+
label: 'Выделенный',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
decoratorProps: {
|
|
45
|
+
label: 'Тип балансировщика нагрузки',
|
|
46
|
+
labelTooltip: (
|
|
47
|
+
<ul className={styles.tip}>
|
|
48
|
+
<li>
|
|
49
|
+
Общий балансировщик нагрузки предоставляется бесплатно, ресурсы развертываются в кластерном режиме и
|
|
50
|
+
распределяются между балансировщиками нагрузки
|
|
51
|
+
</li>
|
|
52
|
+
<li>
|
|
53
|
+
Выделенный балансировщик нагрузки поддерживает двойной стек IPv4/IPv6 и развертывание в разных зонах
|
|
54
|
+
доступности, несколько спецификаций обеспечивают гибкую настройку
|
|
55
|
+
</li>
|
|
56
|
+
</ul>
|
|
57
|
+
),
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
accessibilityZoneQuantity: {
|
|
61
|
+
type: CONTROL.Segmented,
|
|
62
|
+
accessorKey: accessorKey.accessibilityZoneQuantity,
|
|
63
|
+
defaultValue: '1',
|
|
64
|
+
items: generateBaseItems([1, 2, 3, 4]),
|
|
65
|
+
watchedControls: { loadBalancerType: accessorKey.loadBalancerType },
|
|
66
|
+
relateFn: ({ loadBalancerType }) => {
|
|
67
|
+
if (loadBalancerType === loadBalancerTypeItem.Shared) {
|
|
68
|
+
return {
|
|
69
|
+
uiProps: {
|
|
70
|
+
visible: false,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
decoratorProps: {
|
|
76
|
+
label: 'Количество зон доступности развертывания',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
dedicatedObj: {
|
|
80
|
+
type: CONTROL.Object,
|
|
81
|
+
ui: [['balancerWorkLevel', 'lcu']],
|
|
82
|
+
visible: true,
|
|
83
|
+
watchedControls: { loadBalancerType: accessorKey.loadBalancerType },
|
|
84
|
+
relateFn: ({ loadBalancerType }) => {
|
|
85
|
+
if (loadBalancerType === loadBalancerTypeItem.Shared) {
|
|
86
|
+
return {
|
|
87
|
+
visible: false,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
controls: {
|
|
92
|
+
balancerWorkLevel: {
|
|
93
|
+
type: CONTROL.SelectSingle,
|
|
94
|
+
accessorKey: accessorKey.balancerWorkLevel,
|
|
95
|
+
defaultValue: balancerWorkLevelItem.HTTP,
|
|
96
|
+
items: [
|
|
97
|
+
{ value: balancerWorkLevelItem.HTTP, label: 'Балансировка нагрузки приложений (HTTP/HTTPS)' },
|
|
98
|
+
{ value: balancerWorkLevelItem.TCP, label: 'Балансировка сетевой нагрузки (TCP/UDP)' },
|
|
99
|
+
],
|
|
100
|
+
decoratorProps: {
|
|
101
|
+
label: 'Уровень работы',
|
|
102
|
+
labelTooltip: (
|
|
103
|
+
<ul className={styles.tip}>
|
|
104
|
+
<li>
|
|
105
|
+
Запросы направляются на разные внутренние серверы в зависимости от содержимого запроса. Балансировка
|
|
106
|
+
нагрузки приложений идеально подходит для сценариев, связанных с трафиком HTTP/HTTPS, например для
|
|
107
|
+
веб-приложений.
|
|
108
|
+
</li>
|
|
109
|
+
<li>
|
|
110
|
+
Базовая маршрутизация запросов выполняется для трафика TCP/UDP на уровне передачи. Балансировка
|
|
111
|
+
сетевой нагрузки идеально подходит для таких сценариев, как передача файлов, обмен мгновенными
|
|
112
|
+
сообщениями и потоковое видео.
|
|
113
|
+
</li>
|
|
114
|
+
</ul>
|
|
115
|
+
),
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
lcu: {
|
|
119
|
+
type: CONTROL.Segmented,
|
|
120
|
+
accessorKey: accessorKey.lcu,
|
|
121
|
+
defaultValue: '10',
|
|
122
|
+
items: generateBaseItems([10, 20, 40, 80, 200, 400]),
|
|
123
|
+
watchedControls: {
|
|
124
|
+
balancerWorkLevel: accessorKey.balancerWorkLevel,
|
|
125
|
+
},
|
|
126
|
+
relateFn: ({ balancerWorkLevel }) => {
|
|
127
|
+
if (balancerWorkLevel === balancerWorkLevelItem.HTTP) {
|
|
128
|
+
return {
|
|
129
|
+
items: generateBaseItems([10, 20, 40, 200, 400]),
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
decoratorProps: {
|
|
134
|
+
label: 'LCU',
|
|
135
|
+
labelTooltip: 'Единица ресурса балансировщика нагрузки',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const elbTypeControls = getElbConfigControls('configs[0]');
|
|
144
|
+
|
|
145
|
+
const getArrConfigControl = (multiple?: boolean): ObjectControl => {
|
|
146
|
+
const { loadBalancerType, accessibilityZoneQuantity, dedicatedObj } = getElbConfigControls();
|
|
147
|
+
|
|
148
|
+
return {
|
|
149
|
+
type: CONTROL.Object,
|
|
150
|
+
ui: [['loadBalancerType', 'accessibilityZoneQuantity'], 'dedicatedObj'],
|
|
151
|
+
decoratorProps: multiple ? { label: 'Конфигурация' } : undefined,
|
|
152
|
+
controls: {
|
|
153
|
+
loadBalancerType: {
|
|
154
|
+
...loadBalancerType,
|
|
155
|
+
defaultValue: loadBalancerTypeItem.Dedicated,
|
|
156
|
+
items: [
|
|
157
|
+
{
|
|
158
|
+
value: loadBalancerTypeItem.Shared,
|
|
159
|
+
label: 'Общий (бесплатный)',
|
|
160
|
+
disabled: multiple || false,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
value: loadBalancerTypeItem.Dedicated,
|
|
164
|
+
label: 'Выделенный',
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
},
|
|
168
|
+
accessibilityZoneQuantity,
|
|
169
|
+
dedicatedObj,
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const getArrayControl = (multiple?: boolean): ArrayControl => ({
|
|
175
|
+
type: CONTROL.Array,
|
|
176
|
+
accessorKey: 'configs',
|
|
177
|
+
addText: 'Добавить балансировщик',
|
|
178
|
+
min: 1,
|
|
179
|
+
max: 3,
|
|
180
|
+
defaultValue: [],
|
|
181
|
+
ui: ['config'],
|
|
182
|
+
controls: {
|
|
183
|
+
config: getArrConfigControl(multiple),
|
|
184
|
+
},
|
|
185
|
+
invertTrashOffset: true,
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
const accessorKey = {
|
|
189
|
+
elbType: 'configs[0].elb.type',
|
|
190
|
+
configs: 'configs',
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export const ELASTIC_LOAD_BALANCE_FORM_CONFIG: FormConfig = {
|
|
194
|
+
ui: ['elbTypeObj', 'arrObj', 'arrMoreObj', 'eipIsNeeded'],
|
|
195
|
+
controls: {
|
|
196
|
+
elbTypeObj: {
|
|
197
|
+
type: CONTROL.Object,
|
|
198
|
+
ui: ['loadBalancerType'],
|
|
199
|
+
visible: true,
|
|
200
|
+
controls: {
|
|
201
|
+
loadBalancerType: { ...elbTypeControls.loadBalancerType, accessorKey: accessorKey.elbType },
|
|
202
|
+
},
|
|
203
|
+
watchedControls: { elbType: accessorKey.elbType },
|
|
204
|
+
relateFn: ({ elbType }) => {
|
|
205
|
+
if (elbType === loadBalancerTypeItem.Dedicated) {
|
|
206
|
+
return {
|
|
207
|
+
visible: false,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
arrObj: {
|
|
213
|
+
type: CONTROL.Object,
|
|
214
|
+
ui: ['arr'],
|
|
215
|
+
controls: {
|
|
216
|
+
arr: getArrayControl(false),
|
|
217
|
+
},
|
|
218
|
+
visible: false,
|
|
219
|
+
watchedControls: { elbType: accessorKey.elbType, configs: accessorKey.configs },
|
|
220
|
+
relateFn: ({ elbType, configs }) => {
|
|
221
|
+
if (elbType === loadBalancerTypeItem.Dedicated && configs.length === 1) {
|
|
222
|
+
return {
|
|
223
|
+
visible: true,
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
arrMoreObj: {
|
|
229
|
+
type: CONTROL.Object,
|
|
230
|
+
ui: ['arr'],
|
|
231
|
+
controls: {
|
|
232
|
+
arr: getArrayControl(true),
|
|
233
|
+
},
|
|
234
|
+
visible: false,
|
|
235
|
+
watchedControls: { elbType: accessorKey.elbType, configs: accessorKey.configs },
|
|
236
|
+
relateFn: ({ elbType, configs }) => {
|
|
237
|
+
if (elbType === loadBalancerTypeItem.Dedicated && configs.length > 1) {
|
|
238
|
+
return {
|
|
239
|
+
visible: true,
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
eipIsNeeded: getEip({
|
|
246
|
+
switchKey: 'eipIsNeeded',
|
|
247
|
+
velocityKey: 'eip.velocity',
|
|
248
|
+
specificationKey: 'eip.specification',
|
|
249
|
+
trafficKey: 'eip.traffic',
|
|
250
|
+
}),
|
|
251
|
+
},
|
|
252
|
+
};
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CONTROL,
|
|
3
|
+
FormConfig,
|
|
4
|
+
ObjectControl,
|
|
5
|
+
SelectSingleControl,
|
|
6
|
+
StepperControl,
|
|
7
|
+
ToggleObjectControl,
|
|
8
|
+
} from '../../../../components';
|
|
9
|
+
import { TooltipPlacement } from '../../../../components/Controls/types';
|
|
10
|
+
import { AnyType } from '../../../../types';
|
|
11
|
+
import { generateInstanceConfigItems, getDisk } from '../../../utils';
|
|
12
|
+
|
|
13
|
+
const ServerTypeItem = {
|
|
14
|
+
ComputeIntensive: 'Compute-intensive',
|
|
15
|
+
GeneralComputing: 'General computing',
|
|
16
|
+
MemoryOptimized: 'Memory-optimized',
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const serverTypeItems = [
|
|
20
|
+
{
|
|
21
|
+
value: ServerTypeItem.ComputeIntensive,
|
|
22
|
+
label: 'Compute-intensive',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
value: ServerTypeItem.GeneralComputing,
|
|
26
|
+
label: 'General computing',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: ServerTypeItem.MemoryOptimized,
|
|
30
|
+
label: 'Memory-optimized',
|
|
31
|
+
},
|
|
32
|
+
];
|
|
33
|
+
|
|
34
|
+
const InstanceConfigMap: Record<string, [number, number][]> = {
|
|
35
|
+
[ServerTypeItem.ComputeIntensive]: [
|
|
36
|
+
[4, 8],
|
|
37
|
+
[8, 16],
|
|
38
|
+
[16, 32],
|
|
39
|
+
[32, 64],
|
|
40
|
+
],
|
|
41
|
+
[ServerTypeItem.GeneralComputing]: [
|
|
42
|
+
[4, 16],
|
|
43
|
+
[8, 32],
|
|
44
|
+
[16, 64],
|
|
45
|
+
[32, 128],
|
|
46
|
+
],
|
|
47
|
+
[ServerTypeItem.MemoryOptimized]: [
|
|
48
|
+
[4, 32],
|
|
49
|
+
[8, 64],
|
|
50
|
+
[16, 128],
|
|
51
|
+
],
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const serverTypeInstanceConfigToEvsDiskSpaceMap: Record<string, Record<string, [number, number]>> = {
|
|
55
|
+
[ServerTypeItem.ComputeIntensive]: {
|
|
56
|
+
'4 8': [40, 1_500],
|
|
57
|
+
'8 16': [80, 1_600],
|
|
58
|
+
'16 32': [100, 3_200],
|
|
59
|
+
'32 64': [320, 10_240],
|
|
60
|
+
},
|
|
61
|
+
[ServerTypeItem.GeneralComputing]: {
|
|
62
|
+
'4 16': [40, 1_600],
|
|
63
|
+
'8 32': [80, 3_200],
|
|
64
|
+
'16 64': [100, 6_400],
|
|
65
|
+
'32 128': [100, 10_240],
|
|
66
|
+
},
|
|
67
|
+
[ServerTypeItem.MemoryOptimized]: {
|
|
68
|
+
'4 32': [40, 2560],
|
|
69
|
+
'8 64': [80, 5_120],
|
|
70
|
+
'16 128': [160, 10_240],
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
const baseInstanceConfigItems = generateInstanceConfigItems(InstanceConfigMap[ServerTypeItem.ComputeIntensive]);
|
|
75
|
+
|
|
76
|
+
type GetNodeConfigProps = {
|
|
77
|
+
prefix: string;
|
|
78
|
+
diskProps: {
|
|
79
|
+
min: number;
|
|
80
|
+
max: number;
|
|
81
|
+
defaultValue: number;
|
|
82
|
+
};
|
|
83
|
+
nodeCountProps: {
|
|
84
|
+
min: number;
|
|
85
|
+
max: number;
|
|
86
|
+
defaultValue: number;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
function getAccessorKey(prefix: string) {
|
|
91
|
+
return {
|
|
92
|
+
serverType: `${prefix}.serverType`,
|
|
93
|
+
instanceConfig: `${prefix}.instanceConfig`,
|
|
94
|
+
evsDiskSpace: `${prefix}.evs.systemDisk.diskSpace`,
|
|
95
|
+
evsDiskSpecification: `${prefix}.evs.systemDisk.specification`,
|
|
96
|
+
nodeCount: `${prefix}.nodeCount`,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function getNodeConfigControls({ prefix, diskProps, nodeCountProps }: GetNodeConfigProps): {
|
|
101
|
+
serverType: SelectSingleControl;
|
|
102
|
+
instanceConfig: SelectSingleControl;
|
|
103
|
+
evs: ObjectControl;
|
|
104
|
+
nodeCount: StepperControl;
|
|
105
|
+
} {
|
|
106
|
+
const accessorKey = getAccessorKey(prefix);
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
serverType: {
|
|
110
|
+
type: CONTROL.SelectSingle,
|
|
111
|
+
accessorKey: accessorKey.serverType,
|
|
112
|
+
defaultValue: ServerTypeItem.ComputeIntensive,
|
|
113
|
+
items: serverTypeItems,
|
|
114
|
+
decoratorProps: {
|
|
115
|
+
label: 'Тип сервера',
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
instanceConfig: {
|
|
119
|
+
type: CONTROL.SelectSingle,
|
|
120
|
+
accessorKey: accessorKey.instanceConfig,
|
|
121
|
+
defaultValue: baseInstanceConfigItems[0].value,
|
|
122
|
+
items: baseInstanceConfigItems,
|
|
123
|
+
decoratorProps: {
|
|
124
|
+
label: 'Спецификация ноды',
|
|
125
|
+
},
|
|
126
|
+
watchedControls: { serverType: accessorKey.serverType },
|
|
127
|
+
relateFn: ({ serverType }) => ({
|
|
128
|
+
items: generateInstanceConfigItems(InstanceConfigMap[serverType]),
|
|
129
|
+
}),
|
|
130
|
+
},
|
|
131
|
+
evs: getDisk({
|
|
132
|
+
space: {
|
|
133
|
+
accessorKey: accessorKey.evsDiskSpace,
|
|
134
|
+
label: 'Объем системного диска',
|
|
135
|
+
defaultValue: diskProps.defaultValue,
|
|
136
|
+
uiProps: {
|
|
137
|
+
min: diskProps.min,
|
|
138
|
+
max: diskProps.max,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
specification: {
|
|
142
|
+
accessorKey: accessorKey.evsDiskSpecification,
|
|
143
|
+
defaultValue: 'SSD',
|
|
144
|
+
},
|
|
145
|
+
}),
|
|
146
|
+
nodeCount: {
|
|
147
|
+
type: CONTROL.Stepper,
|
|
148
|
+
accessorKey: accessorKey.nodeCount,
|
|
149
|
+
defaultValue: nodeCountProps.defaultValue,
|
|
150
|
+
decoratorProps: {
|
|
151
|
+
label: 'Количество нод',
|
|
152
|
+
},
|
|
153
|
+
uiProps: {
|
|
154
|
+
min: nodeCountProps.min,
|
|
155
|
+
max: nodeCountProps.max,
|
|
156
|
+
postfix: 'Шт',
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function getNodeConfig(props: GetNodeConfigProps): ObjectControl {
|
|
163
|
+
const { evs, serverType, instanceConfig, nodeCount } = getNodeConfigControls(props);
|
|
164
|
+
|
|
165
|
+
return {
|
|
166
|
+
type: CONTROL.Object,
|
|
167
|
+
ui: [
|
|
168
|
+
['serverType', 'instanceConfig'],
|
|
169
|
+
['evs', 'nodeCount'],
|
|
170
|
+
],
|
|
171
|
+
controls: {
|
|
172
|
+
serverType,
|
|
173
|
+
instanceConfig,
|
|
174
|
+
evs,
|
|
175
|
+
nodeCount,
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
type GetToggleNodeConfigProps = GetNodeConfigProps & {
|
|
181
|
+
label: string;
|
|
182
|
+
labelTooltip: string;
|
|
183
|
+
labelTooltipPlacement?: TooltipPlacement;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
function getToggleNodeConfig({
|
|
187
|
+
label,
|
|
188
|
+
labelTooltip,
|
|
189
|
+
labelTooltipPlacement,
|
|
190
|
+
...rest
|
|
191
|
+
}: GetToggleNodeConfigProps): ToggleObjectControl {
|
|
192
|
+
return {
|
|
193
|
+
type: CONTROL.ToggleObject,
|
|
194
|
+
decoratorProps: {
|
|
195
|
+
label,
|
|
196
|
+
labelTooltip,
|
|
197
|
+
labelTooltipPlacement,
|
|
198
|
+
},
|
|
199
|
+
switchKey: `${rest.prefix}.isIncluded`,
|
|
200
|
+
control: getNodeConfig(rest),
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
function getBaseNodeConfig(props: GetNodeConfigProps): ObjectControl {
|
|
205
|
+
const { serverType, instanceConfig, nodeCount } = getNodeConfigControls(props);
|
|
206
|
+
|
|
207
|
+
const accessorKey = getAccessorKey(props.prefix);
|
|
208
|
+
|
|
209
|
+
return {
|
|
210
|
+
type: CONTROL.Object,
|
|
211
|
+
ui: [
|
|
212
|
+
['serverType', 'instanceConfig'],
|
|
213
|
+
['evs', 'nodeCount'],
|
|
214
|
+
],
|
|
215
|
+
controls: {
|
|
216
|
+
serverType: {
|
|
217
|
+
...serverType,
|
|
218
|
+
onChangeFn: (value, setValue) => {
|
|
219
|
+
const arr: [string, AnyType][] = [[accessorKey.serverType, value]];
|
|
220
|
+
const instanceConfigValue = generateInstanceConfigItems(InstanceConfigMap[value])[0].value;
|
|
221
|
+
|
|
222
|
+
arr.push([accessorKey.instanceConfig, instanceConfigValue]);
|
|
223
|
+
arr.push([accessorKey.evsDiskSpace, 40]);
|
|
224
|
+
|
|
225
|
+
setValue(arr);
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
instanceConfig: {
|
|
229
|
+
...instanceConfig,
|
|
230
|
+
onChangeFn: (value, setValue) => {
|
|
231
|
+
const arr: [string, AnyType][] = [[accessorKey.instanceConfig, value]];
|
|
232
|
+
arr.push([accessorKey.evsDiskSpace, 40]);
|
|
233
|
+
|
|
234
|
+
setValue(arr);
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
evs: getDisk({
|
|
238
|
+
space: {
|
|
239
|
+
accessorKey: accessorKey.evsDiskSpace,
|
|
240
|
+
label: 'Объем системного диска',
|
|
241
|
+
defaultValue: props.diskProps.defaultValue,
|
|
242
|
+
uiProps: {
|
|
243
|
+
min: props.diskProps.min,
|
|
244
|
+
max: props.diskProps.max,
|
|
245
|
+
},
|
|
246
|
+
watchedControls: { serverType: accessorKey.serverType, instanceConfig: accessorKey.instanceConfig },
|
|
247
|
+
relateFn: ({ serverType, instanceConfig }) => {
|
|
248
|
+
const [min, max] = serverTypeInstanceConfigToEvsDiskSpaceMap?.[serverType]?.[instanceConfig] || [];
|
|
249
|
+
|
|
250
|
+
if (min || max) {
|
|
251
|
+
return {
|
|
252
|
+
uiProps: {
|
|
253
|
+
min,
|
|
254
|
+
max,
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
specification: {
|
|
261
|
+
accessorKey: accessorKey.evsDiskSpecification,
|
|
262
|
+
defaultValue: 'SSD',
|
|
263
|
+
},
|
|
264
|
+
}),
|
|
265
|
+
nodeCount,
|
|
266
|
+
},
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export const ELASTIC_SEARCH_FORM_CONFIG: FormConfig = {
|
|
271
|
+
ui: ['baseNodeConfig', 'masterNodeConfig', 'clientNodeConfig', 'coldDataNodeConfig', 'internet'],
|
|
272
|
+
controls: {
|
|
273
|
+
baseNodeConfig: getBaseNodeConfig({
|
|
274
|
+
prefix: 'baseNodeConfig',
|
|
275
|
+
diskProps: {
|
|
276
|
+
defaultValue: 40,
|
|
277
|
+
min: 40,
|
|
278
|
+
max: 1500,
|
|
279
|
+
},
|
|
280
|
+
nodeCountProps: {
|
|
281
|
+
defaultValue: 1,
|
|
282
|
+
min: 1,
|
|
283
|
+
max: 200,
|
|
284
|
+
},
|
|
285
|
+
}),
|
|
286
|
+
|
|
287
|
+
masterNodeConfig: getToggleNodeConfig({
|
|
288
|
+
label: 'Master node',
|
|
289
|
+
labelTooltip:
|
|
290
|
+
'Мастер-узел, который управляет всеми узлами в кластере. Если для хранения и обработки данных требуется 20 или более узлов, рекомендуется включить мастер-узел, чтобы обеспечить стабильную работу кластера',
|
|
291
|
+
prefix: 'masterNodeConfig',
|
|
292
|
+
diskProps: {
|
|
293
|
+
defaultValue: 40,
|
|
294
|
+
min: 40,
|
|
295
|
+
max: 40,
|
|
296
|
+
},
|
|
297
|
+
nodeCountProps: {
|
|
298
|
+
defaultValue: 3,
|
|
299
|
+
min: 3,
|
|
300
|
+
max: 9,
|
|
301
|
+
},
|
|
302
|
+
}),
|
|
303
|
+
|
|
304
|
+
clientNodeConfig: getToggleNodeConfig({
|
|
305
|
+
label: 'Client node',
|
|
306
|
+
labelTooltip:
|
|
307
|
+
'Клиент-узел, который позволяет клиентам получать доступ к кластерам и анализировать данные. Если для хранения и обработки данных требуется 20 или более узлов, рекомендуется включить клиент-узел, чтобы обеспечить стабильную работу кластера',
|
|
308
|
+
prefix: 'clientNodeConfig',
|
|
309
|
+
diskProps: {
|
|
310
|
+
defaultValue: 40,
|
|
311
|
+
min: 40,
|
|
312
|
+
max: 40,
|
|
313
|
+
},
|
|
314
|
+
nodeCountProps: {
|
|
315
|
+
defaultValue: 1,
|
|
316
|
+
min: 1,
|
|
317
|
+
max: 32,
|
|
318
|
+
},
|
|
319
|
+
}),
|
|
320
|
+
|
|
321
|
+
coldDataNodeConfig: getToggleNodeConfig({
|
|
322
|
+
label: 'Cold data node',
|
|
323
|
+
labelTooltip:
|
|
324
|
+
'Холодный узел, который используется для хранения архивных данных. Если быстрый ответ (получение данных из холодного узла занимает несколько минут) не требуется, используйте узлы данного типа',
|
|
325
|
+
prefix: 'coldDataNodeConfig',
|
|
326
|
+
diskProps: {
|
|
327
|
+
defaultValue: 40,
|
|
328
|
+
min: 40,
|
|
329
|
+
max: 1500,
|
|
330
|
+
},
|
|
331
|
+
nodeCountProps: {
|
|
332
|
+
defaultValue: 1,
|
|
333
|
+
min: 1,
|
|
334
|
+
max: 32,
|
|
335
|
+
},
|
|
336
|
+
}),
|
|
337
|
+
|
|
338
|
+
internet: {
|
|
339
|
+
type: CONTROL.ToggleObject,
|
|
340
|
+
switchKey: 'internet.isIncluded',
|
|
341
|
+
decoratorProps: {
|
|
342
|
+
label: 'Доступ в интернет',
|
|
343
|
+
},
|
|
344
|
+
control: {
|
|
345
|
+
type: CONTROL.Object,
|
|
346
|
+
ui: [['speed']],
|
|
347
|
+
controls: {
|
|
348
|
+
speed: {
|
|
349
|
+
type: CONTROL.Stepper,
|
|
350
|
+
accessorKey: 'internet.speed',
|
|
351
|
+
defaultValue: 100,
|
|
352
|
+
decoratorProps: {
|
|
353
|
+
label: 'Скорость',
|
|
354
|
+
},
|
|
355
|
+
uiProps: {
|
|
356
|
+
min: 1,
|
|
357
|
+
max: 2000,
|
|
358
|
+
postfix: 'Mбит/сек',
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { CONTROL, FormConfig } from '../../../../components';
|
|
2
|
+
|
|
3
|
+
export const FUNCTION_GRAPH_FORM_CONFIG: FormConfig = {
|
|
4
|
+
ui: [['requestsCount', 'memoryVolume'], 'memoryVolumeAlert', ['computationTime'], 'requestsCountAlert'],
|
|
5
|
+
controls: {
|
|
6
|
+
requestsCount: {
|
|
7
|
+
type: CONTROL.Stepper,
|
|
8
|
+
accessorKey: 'requestsCount',
|
|
9
|
+
defaultValue: 0,
|
|
10
|
+
decoratorProps: {
|
|
11
|
+
label: 'Количество запросов',
|
|
12
|
+
},
|
|
13
|
+
uiProps: {
|
|
14
|
+
min: 0,
|
|
15
|
+
max: 9_999_999_999,
|
|
16
|
+
step: 1,
|
|
17
|
+
multiplier: 1_000_000,
|
|
18
|
+
showHint: false,
|
|
19
|
+
postfix: 'млн',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
memoryVolume: {
|
|
23
|
+
type: CONTROL.Stepper,
|
|
24
|
+
accessorKey: 'memoryVolume',
|
|
25
|
+
defaultValue: 1,
|
|
26
|
+
decoratorProps: {
|
|
27
|
+
label: 'Объем памяти',
|
|
28
|
+
labelTooltip: 'Объем выделяемый для выполнения одной функции',
|
|
29
|
+
},
|
|
30
|
+
uiProps: {
|
|
31
|
+
min: 128,
|
|
32
|
+
max: 4_194_304,
|
|
33
|
+
postfix: 'МБ',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
memoryVolumeAlert: {
|
|
37
|
+
type: CONTROL.Alert,
|
|
38
|
+
uiProps: {
|
|
39
|
+
description: <>Первые 2 000 000 запросов бесплатно</>,
|
|
40
|
+
},
|
|
41
|
+
accessorKey: 'first-free',
|
|
42
|
+
},
|
|
43
|
+
computationTime: {
|
|
44
|
+
type: CONTROL.Stepper,
|
|
45
|
+
accessorKey: 'computationTime',
|
|
46
|
+
defaultValue: 0,
|
|
47
|
+
decoratorProps: {
|
|
48
|
+
label: 'Продолжительность вычислений',
|
|
49
|
+
labelTooltip: 'Максимальная продолжительность выполнения одной функции',
|
|
50
|
+
},
|
|
51
|
+
uiProps: {
|
|
52
|
+
min: 0,
|
|
53
|
+
max: 900,
|
|
54
|
+
postfix: 'сек',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
requestsCountAlert: {
|
|
58
|
+
type: CONTROL.Alert,
|
|
59
|
+
uiProps: {
|
|
60
|
+
description: <>Продолжительность вычислений в размере 400 000 ГБ/с бесплатно</>,
|
|
61
|
+
},
|
|
62
|
+
accessorKey: 'free',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
};
|