@dovetail-v2/refine 0.0.66 → 0.1.1
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/dist/{MonacoYamlDiffEditor-bcc9a5fe.js → MonacoYamlDiffEditor-2657467b.js} +1 -1
- package/dist/{index-4ac6ee9d.js → index-0635aaa8.js} +308 -158
- package/dist/refine.js +117 -110
- package/dist/refine.umd.cjs +200 -50
- package/lib/src/components/ListPage/index.d.ts +1 -0
- package/lib/src/components/ResourceFiledDisplays.d.ts +7 -0
- package/lib/src/components/ShowContent/fields.d.ts +7 -2
- package/lib/src/components/index.d.ts +1 -0
- package/lib/src/hooks/useEagleTable/columns.d.ts +6 -6
- package/lib/src/i18n.d.ts +26 -1
- package/lib/src/locales/en-US/index.d.ts +14 -0
- package/lib/src/locales/zh-CN/index.d.ts +12 -1
- package/lib/src/models/cronjob-model.d.ts +0 -1
- package/lib/src/models/daemonset-model.d.ts +0 -1
- package/lib/src/models/deployment-model.d.ts +0 -1
- package/lib/src/models/event-model.d.ts +0 -1
- package/lib/src/models/ingress-model.d.ts +0 -1
- package/lib/src/models/job-model.d.ts +0 -1
- package/lib/src/models/network-policy-model.d.ts +0 -1
- package/lib/src/models/node-model.d.ts +0 -1
- package/lib/src/models/persistent-volume-claim.d.ts +0 -1
- package/lib/src/models/persistent-volume.d.ts +0 -1
- package/lib/src/models/pod-metrics-model.d.ts +0 -1
- package/lib/src/models/pod-model.d.ts +0 -1
- package/lib/src/models/resource-model.d.ts +1 -1
- package/lib/src/models/service-model.d.ts +0 -1
- package/lib/src/models/statefulset-model.d.ts +0 -1
- package/lib/src/models/storage-class.d.ts +0 -1
- package/lib/src/models/workload-base-model.d.ts +0 -1
- package/lib/src/models/workload-model.d.ts +0 -1
- package/lib/src/pages/persistentvolumeclaims/index.d.ts +4 -0
- package/lib/src/pages/persistentvolumes/index.d.ts +3 -18
- package/package.json +1 -1
- package/lib/src/App.js +0 -91
- package/lib/src/Dovetail.js +0 -45
- package/lib/src/components/Breadcrumb/index.js +0 -20
- package/lib/src/components/ConditionsTable/ConditionsTable.js +0 -56
- package/lib/src/components/ConditionsTable/index.js +0 -1
- package/lib/src/components/CreateButton/index.js +0 -10
- package/lib/src/components/CronJobDropdown/index.js +0 -26
- package/lib/src/components/CronjobJobsTable/index.js +0 -49
- package/lib/src/components/DeleteButton/index.js +0 -13
- package/lib/src/components/DeleteManyButton/index.js +0 -16
- package/lib/src/components/DrawerShow/DrawerShow.js +0 -13
- package/lib/src/components/DrawerShow/index.js +0 -1
- package/lib/src/components/EditButton/index.js +0 -13
- package/lib/src/components/EditField/index.js +0 -47
- package/lib/src/components/ErrorContent/index.js +0 -36
- package/lib/src/components/EventsTable/EventsTable.js +0 -59
- package/lib/src/components/EventsTable/index.js +0 -1
- package/lib/src/components/Form/KeyValueListWidget.d.ts +0 -6
- package/lib/src/components/Form/KeyValueListWidget.js +0 -56
- package/lib/src/components/Form/MetadataForm.d.ts +0 -2
- package/lib/src/components/Form/MetadataForm.js +0 -9
- package/lib/src/components/Form/NameInputWidget.d.ts +0 -51
- package/lib/src/components/Form/NameInputWidget.js +0 -50
- package/lib/src/components/Form/NamespaceSelectWidget.d.ts +0 -9
- package/lib/src/components/Form/NamespaceSelectWidget.js +0 -21
- package/lib/src/components/Form/index.js +0 -4
- package/lib/src/components/Form/widget.d.ts +0 -5
- package/lib/src/components/Form/widget.js +0 -1
- package/lib/src/components/FormErrorAlert/index.js +0 -8
- package/lib/src/components/FormLayout/index.js +0 -21
- package/lib/src/components/FormModal/index.d.ts +0 -10
- package/lib/src/components/FormModal/index.js +0 -51
- package/lib/src/components/ImageNames/index.js +0 -14
- package/lib/src/components/IngressRulesComponent/index.js +0 -11
- package/lib/src/components/IngressRulesTable/IngressRulesTable.js +0 -51
- package/lib/src/components/IngressRulesTable/index.js +0 -1
- package/lib/src/components/K8sDropdown/index.js +0 -31
- package/lib/src/components/KeyValue/KeyValue.js +0 -27
- package/lib/src/components/KeyValue/index.js +0 -1
- package/lib/src/components/KeyValueData/index.d.ts +0 -6
- package/lib/src/components/KeyValueData/index.js +0 -50
- package/lib/src/components/Layout/index.js +0 -39
- package/lib/src/components/ListPage/index.js +0 -25
- package/lib/src/components/Menu/index.js +0 -36
- package/lib/src/components/NamespacesFilter/index.js +0 -34
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +0 -7
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.js +0 -77
- package/lib/src/components/NetworkPolicyRulesTable/index.d.ts +0 -1
- package/lib/src/components/NetworkPolicyRulesTable/index.js +0 -1
- package/lib/src/components/PageShow/PageShow.js +0 -11
- package/lib/src/components/PageShow/index.js +0 -1
- package/lib/src/components/PodContainersTable/PodContainersTable.js +0 -78
- package/lib/src/components/PodContainersTable/index.js +0 -1
- package/lib/src/components/PodLog/index.js +0 -136
- package/lib/src/components/ReferenceLink/index.js +0 -17
- package/lib/src/components/RefineForm/RefineFormContent.d.ts +0 -10
- package/lib/src/components/RefineForm/RefineFormModal.d.ts +0 -8
- package/lib/src/components/RefineForm/RefineFormPage.d.ts +0 -7
- package/lib/src/components/RefineForm/index.d.ts +0 -3
- package/lib/src/components/RefineForm/type.d.ts +0 -20
- package/lib/src/components/RefineForm/useRefineForm.d.ts +0 -10
- package/lib/src/components/ResourceCRUD/ResourceCRUD.js +0 -15
- package/lib/src/components/ResourceCRUD/create/index.js +0 -13
- package/lib/src/components/ResourceCRUD/index.js +0 -4
- package/lib/src/components/ResourceCRUD/list/index.js +0 -19
- package/lib/src/components/ResourceCRUD/show/index.js +0 -6
- package/lib/src/components/ResourceLink/index.js +0 -21
- package/lib/src/components/ResourceUsageBar/index.js +0 -81
- package/lib/src/components/Separator/index.js +0 -11
- package/lib/src/components/ShowContent/ShowContent.js +0 -157
- package/lib/src/components/ShowContent/fields.js +0 -157
- package/lib/src/components/ShowContent/index.js +0 -2
- package/lib/src/components/StateTag/StateTag.js +0 -22
- package/lib/src/components/StateTag/index.js +0 -1
- package/lib/src/components/Table/ErrorContent.d.ts +0 -10
- package/lib/src/components/Table/ErrorContent.js +0 -36
- package/lib/src/components/Table/TableToolBar.js +0 -14
- package/lib/src/components/Table/TableWidgets.js +0 -28
- package/lib/src/components/Table/index.js +0 -69
- package/lib/src/components/Tags/index.js +0 -22
- package/lib/src/components/Time/index.js +0 -14
- package/lib/src/components/WorkloadDropdown/index.js +0 -24
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.js +0 -39
- package/lib/src/components/WorkloadPodsTable/index.js +0 -1
- package/lib/src/components/WorkloadReplicas/index.js +0 -50
- package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.js +0 -34
- package/lib/src/components/YamlEditor/MonacoYamlEditor.js +0 -149
- package/lib/src/components/YamlEditor/YamlEditorComponent.js +0 -90
- package/lib/src/components/YamlEditor/index.js +0 -1
- package/lib/src/components/YamlEditor/style.js +0 -102
- package/lib/src/components/YamlEditor/yaml.worker.js +0 -1
- package/lib/src/components/YamlForm/index.d.ts +0 -21
- package/lib/src/components/YamlForm/index.js +0 -61
- package/lib/src/components/index.js +0 -38
- package/lib/src/constants/index.js +0 -2
- package/lib/src/constants/k8s.js +0 -203
- package/lib/src/constants/state.js +0 -15
- package/lib/src/contexts/component.js +0 -3
- package/lib/src/contexts/configs.js +0 -3
- package/lib/src/contexts/global-store.js +0 -3
- package/lib/src/contexts/index.js +0 -3
- package/lib/src/hooks/index.js +0 -7
- package/lib/src/hooks/useDeleteModal/index.js +0 -1
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.js +0 -31
- package/lib/src/hooks/useDeleteModal/useDeleteModal.js +0 -38
- package/lib/src/hooks/useDownloadYAML.js +0 -10
- package/lib/src/hooks/useEagleForm.d.ts +0 -47
- package/lib/src/hooks/useEagleForm.js +0 -177
- package/lib/src/hooks/useEagleTable/columns.js +0 -246
- package/lib/src/hooks/useEagleTable/index.js +0 -2
- package/lib/src/hooks/useEagleTable/useEagleTable.js +0 -63
- package/lib/src/hooks/useEdit.js +0 -19
- package/lib/src/hooks/useGlobalStore.js +0 -5
- package/lib/src/hooks/useK8sYamlEditor.js +0 -37
- package/lib/src/hooks/useOpenForm.js +0 -43
- package/lib/src/hooks/useSchema.js +0 -37
- package/lib/src/hooks/useSubmitForm.js +0 -42
- package/lib/src/i18n.js +0 -19
- package/lib/src/index.js +0 -13
- package/lib/src/locales/en-US/dovetail.json +0 -18
- package/lib/src/locales/en-US/index.js +0 -4
- package/lib/src/locales/index.js +0 -6
- package/lib/src/locales/zh-CN/dovetail.json +0 -91
- package/lib/src/locales/zh-CN/index.js +0 -4
- package/lib/src/main.js +0 -12
- package/lib/src/models/cronjob-model.js +0 -32
- package/lib/src/models/daemonset-model.js +0 -17
- package/lib/src/models/deployment-model.js +0 -17
- package/lib/src/models/event-model.js +0 -11
- package/lib/src/models/index.js +0 -14
- package/lib/src/models/ingress-model.js +0 -24
- package/lib/src/models/job-model.js +0 -56
- package/lib/src/models/network-policy-model.js +0 -10
- package/lib/src/models/pod-metrics-model.js +0 -34
- package/lib/src/models/pod-model.js +0 -78
- package/lib/src/models/resource-model.js +0 -34
- package/lib/src/models/server-instance-model.d.ts +0 -10
- package/lib/src/models/service-model.js +0 -17
- package/lib/src/models/statefulset-model.js +0 -17
- package/lib/src/models/types/index.js +0 -1
- package/lib/src/models/types/metric.js +0 -1
- package/lib/src/models/workload-base-model.js +0 -22
- package/lib/src/models/workload-model.js +0 -51
- package/lib/src/pages/configmaps/index.js +0 -15
- package/lib/src/pages/cronjobs/create/index.js +0 -6
- package/lib/src/pages/cronjobs/index.js +0 -3
- package/lib/src/pages/cronjobs/list/index.js +0 -42
- package/lib/src/pages/cronjobs/show/index.js +0 -16
- package/lib/src/pages/daemonsets/create/index.js +0 -6
- package/lib/src/pages/daemonsets/index.js +0 -3
- package/lib/src/pages/daemonsets/list/index.js +0 -32
- package/lib/src/pages/daemonsets/show/index.js +0 -16
- package/lib/src/pages/deployments/create/index.d.ts +0 -3
- package/lib/src/pages/deployments/create/index.js +0 -7
- package/lib/src/pages/deployments/index.js +0 -3
- package/lib/src/pages/deployments/list/index.js +0 -26
- package/lib/src/pages/deployments/show/index.js +0 -16
- package/lib/src/pages/ingresses/index.js +0 -26
- package/lib/src/pages/jobs/index.js +0 -34
- package/lib/src/pages/networkPolicies/index.js +0 -67
- package/lib/src/pages/pods/create/index.js +0 -6
- package/lib/src/pages/pods/index.js +0 -3
- package/lib/src/pages/pods/list/index.js +0 -81
- package/lib/src/pages/pods/show/index.js +0 -54
- package/lib/src/pages/secrets/index.js +0 -15
- package/lib/src/pages/services/index.js +0 -26
- package/lib/src/pages/statefulsets/create/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/create/index.js +0 -6
- package/lib/src/pages/statefulsets/index.js +0 -3
- package/lib/src/pages/statefulsets/list/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/list/index.js +0 -26
- package/lib/src/pages/statefulsets/show/index.d.ts +0 -3
- package/lib/src/pages/statefulsets/show/index.js +0 -16
- package/lib/src/plugins/index.js +0 -3
- package/lib/src/plugins/model-plugin.js +0 -46
- package/lib/src/plugins/relation-plugin.js +0 -81
- package/lib/src/plugins/type.js +0 -1
- package/lib/src/providers/index.js +0 -1
- package/lib/src/providers/router-provider/index.js +0 -100
- package/lib/src/types/index.js +0 -1
- package/lib/src/types/resource.js +0 -12
- package/lib/src/utils/addId.js +0 -8
- package/lib/src/utils/download.js +0 -9
- package/lib/src/utils/error.js +0 -53
- package/lib/src/utils/form.js +0 -9
- package/lib/src/utils/k8s.js +0 -6
- package/lib/src/utils/labels.js +0 -15
- package/lib/src/utils/match-selector.js +0 -12
- package/lib/src/utils/openapi.js +0 -33
- package/lib/src/utils/schema.js +0 -117
- package/lib/src/utils/selector.js +0 -12
- package/lib/src/utils/string.js +0 -6
- package/lib/src/utils/time.js +0 -46
- package/lib/src/utils/unit.js +0 -69
- package/lib/src/utils/yaml.js +0 -44
- package/lib/vite.config.js +0 -60
package/dist/refine.umd.cjs
CHANGED
|
@@ -1165,7 +1165,21 @@ var __publicField = (obj, key, value) => {
|
|
|
1165
1165
|
const only_support_one_yaml$1 = "Only one YAML configuration is supported at a time.";
|
|
1166
1166
|
const not_support$1 = "Not supported";
|
|
1167
1167
|
const stopped$1 = "Stopped";
|
|
1168
|
-
const any_node_ip = "Any node IP";
|
|
1168
|
+
const any_node_ip$1 = "Any node IP";
|
|
1169
|
+
const storage_class$1 = "Storage class";
|
|
1170
|
+
const persistent_volume$1 = "Persistent volume";
|
|
1171
|
+
const provisioner$1 = "Provisioner";
|
|
1172
|
+
const file_system$1 = "File system";
|
|
1173
|
+
const capacity$1 = "Capacity";
|
|
1174
|
+
const phase$1 = "Phase";
|
|
1175
|
+
const volume_mode$1 = "Volume mode";
|
|
1176
|
+
const access_mode$1 = "Access mode";
|
|
1177
|
+
const block$1 = "Block";
|
|
1178
|
+
const pv_phase_available$1 = "Available";
|
|
1179
|
+
const pv_phase_bound$1 = "Bound";
|
|
1180
|
+
const pv_phase_released$1 = "Released";
|
|
1181
|
+
const pv_phase_failed$1 = "Failed";
|
|
1182
|
+
const pv_phase_pending$1 = "Pending";
|
|
1169
1183
|
const dovetail$1 = {
|
|
1170
1184
|
copy: copy$1,
|
|
1171
1185
|
reset_arguments: reset_arguments$1,
|
|
@@ -1321,7 +1335,21 @@ var __publicField = (obj, key, value) => {
|
|
|
1321
1335
|
only_support_one_yaml: only_support_one_yaml$1,
|
|
1322
1336
|
not_support: not_support$1,
|
|
1323
1337
|
stopped: stopped$1,
|
|
1324
|
-
any_node_ip
|
|
1338
|
+
any_node_ip: any_node_ip$1,
|
|
1339
|
+
storage_class: storage_class$1,
|
|
1340
|
+
persistent_volume: persistent_volume$1,
|
|
1341
|
+
provisioner: provisioner$1,
|
|
1342
|
+
file_system: file_system$1,
|
|
1343
|
+
capacity: capacity$1,
|
|
1344
|
+
phase: phase$1,
|
|
1345
|
+
volume_mode: volume_mode$1,
|
|
1346
|
+
access_mode: access_mode$1,
|
|
1347
|
+
block: block$1,
|
|
1348
|
+
pv_phase_available: pv_phase_available$1,
|
|
1349
|
+
pv_phase_bound: pv_phase_bound$1,
|
|
1350
|
+
pv_phase_released: pv_phase_released$1,
|
|
1351
|
+
pv_phase_failed: pv_phase_failed$1,
|
|
1352
|
+
pv_phase_pending: pv_phase_pending$1
|
|
1325
1353
|
};
|
|
1326
1354
|
const EN = {
|
|
1327
1355
|
dovetail: dovetail$1
|
|
@@ -1478,10 +1506,21 @@ var __publicField = (obj, key, value) => {
|
|
|
1478
1506
|
const only_support_one_yaml = "一次仅支持输入一个 YAML 配置。";
|
|
1479
1507
|
const not_support = "不支持";
|
|
1480
1508
|
const stopped = "已停止";
|
|
1509
|
+
const any_node_ip = "任意节点 IP";
|
|
1481
1510
|
const storage_class = "存储类";
|
|
1482
|
-
const
|
|
1511
|
+
const persistent_volume = "持久卷";
|
|
1483
1512
|
const provisioner = "制备器";
|
|
1484
1513
|
const file_system = "文件系统";
|
|
1514
|
+
const capacity = "容量";
|
|
1515
|
+
const phase = "阶段";
|
|
1516
|
+
const volume_mode = "卷模式";
|
|
1517
|
+
const access_mode = "访问模式";
|
|
1518
|
+
const block = "块";
|
|
1519
|
+
const pv_phase_available = "可用";
|
|
1520
|
+
const pv_phase_bound = "已绑定";
|
|
1521
|
+
const pv_phase_released = "已释放";
|
|
1522
|
+
const pv_phase_failed = "失败";
|
|
1523
|
+
const pv_phase_pending = "等待中";
|
|
1485
1524
|
const dovetail = {
|
|
1486
1525
|
copy,
|
|
1487
1526
|
reset_arguments,
|
|
@@ -1638,10 +1677,21 @@ var __publicField = (obj, key, value) => {
|
|
|
1638
1677
|
only_support_one_yaml,
|
|
1639
1678
|
not_support,
|
|
1640
1679
|
stopped,
|
|
1680
|
+
any_node_ip,
|
|
1641
1681
|
storage_class,
|
|
1642
|
-
|
|
1682
|
+
persistent_volume,
|
|
1643
1683
|
provisioner,
|
|
1644
|
-
file_system
|
|
1684
|
+
file_system,
|
|
1685
|
+
capacity,
|
|
1686
|
+
phase,
|
|
1687
|
+
volume_mode,
|
|
1688
|
+
access_mode,
|
|
1689
|
+
block,
|
|
1690
|
+
pv_phase_available,
|
|
1691
|
+
pv_phase_bound,
|
|
1692
|
+
pv_phase_released,
|
|
1693
|
+
pv_phase_failed,
|
|
1694
|
+
pv_phase_pending
|
|
1645
1695
|
};
|
|
1646
1696
|
const ZH = {
|
|
1647
1697
|
dovetail
|
|
@@ -8961,12 +9011,19 @@ var __publicField = (obj, key, value) => {
|
|
|
8961
9011
|
__publicField(this, "kind");
|
|
8962
9012
|
__publicField(this, "metadata");
|
|
8963
9013
|
this._rawYaml = _rawYaml;
|
|
8964
|
-
this._globalStore = _globalStore;
|
|
8965
9014
|
Object.keys(_rawYaml).forEach((key2) => {
|
|
8966
9015
|
Object.defineProperty(this, key2, {
|
|
8967
|
-
|
|
9016
|
+
get() {
|
|
9017
|
+
return _rawYaml[key2];
|
|
9018
|
+
}
|
|
8968
9019
|
});
|
|
8969
9020
|
});
|
|
9021
|
+
Object.defineProperty(this, "_globalStore", {
|
|
9022
|
+
get() {
|
|
9023
|
+
return _globalStore;
|
|
9024
|
+
},
|
|
9025
|
+
enumerable: false
|
|
9026
|
+
});
|
|
8970
9027
|
}
|
|
8971
9028
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
8972
9029
|
async init() {
|
|
@@ -8996,7 +9053,6 @@ var __publicField = (obj, key, value) => {
|
|
|
8996
9053
|
super(_rawYaml, _globalStore);
|
|
8997
9054
|
__publicField(this, "flattenedRules", []);
|
|
8998
9055
|
this._rawYaml = _rawYaml;
|
|
8999
|
-
this._globalStore = _globalStore;
|
|
9000
9056
|
}
|
|
9001
9057
|
async init() {
|
|
9002
9058
|
var _a, _b, _c, _d;
|
|
@@ -9039,7 +9095,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9039
9095
|
constructor(_rawYaml, _globalStore) {
|
|
9040
9096
|
super(_rawYaml, _globalStore);
|
|
9041
9097
|
this._rawYaml = _rawYaml;
|
|
9042
|
-
this._globalStore = _globalStore;
|
|
9043
9098
|
}
|
|
9044
9099
|
}
|
|
9045
9100
|
const BASE_INIT_VALUE = {
|
|
@@ -9621,7 +9676,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9621
9676
|
constructor(_rawYaml, _globalStore) {
|
|
9622
9677
|
super(_rawYaml, _globalStore);
|
|
9623
9678
|
this._rawYaml = _rawYaml;
|
|
9624
|
-
this._globalStore = _globalStore;
|
|
9625
9679
|
}
|
|
9626
9680
|
get imageNames() {
|
|
9627
9681
|
var _a, _b, _c, _d;
|
|
@@ -9640,7 +9694,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9640
9694
|
super(_rawYaml, _globalStore);
|
|
9641
9695
|
__publicField(this, "restarts", 0);
|
|
9642
9696
|
this._rawYaml = _rawYaml;
|
|
9643
|
-
this._globalStore = _globalStore;
|
|
9644
9697
|
}
|
|
9645
9698
|
async init() {
|
|
9646
9699
|
await this.getRestarts();
|
|
@@ -9708,7 +9761,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9708
9761
|
super(_rawYaml, _globalStore);
|
|
9709
9762
|
__publicField(this, "restarts", 0);
|
|
9710
9763
|
this._rawYaml = _rawYaml;
|
|
9711
|
-
this._globalStore = _globalStore;
|
|
9712
9764
|
}
|
|
9713
9765
|
async init() {
|
|
9714
9766
|
await this.getRestarts();
|
|
@@ -9829,7 +9881,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9829
9881
|
__publicField(this, "request");
|
|
9830
9882
|
__publicField(this, "limit");
|
|
9831
9883
|
this._rawYaml = _rawYaml;
|
|
9832
|
-
this._globalStore = _globalStore;
|
|
9833
9884
|
let cpuRequestNum = 0;
|
|
9834
9885
|
let memoryRequestNum = 0;
|
|
9835
9886
|
let cpuLimitNum = 0;
|
|
@@ -9910,7 +9961,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9910
9961
|
super(_rawYaml, _globalStore);
|
|
9911
9962
|
__publicField(this, "usage");
|
|
9912
9963
|
this._rawYaml = _rawYaml;
|
|
9913
|
-
this._globalStore = _globalStore;
|
|
9914
9964
|
let cpuUsageNum = 0;
|
|
9915
9965
|
let memoryUsageNum = 0;
|
|
9916
9966
|
for (const container2 of _rawYaml.containers) {
|
|
@@ -9939,7 +9989,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9939
9989
|
constructor(_rawYaml, _globalStore) {
|
|
9940
9990
|
super(_rawYaml, _globalStore);
|
|
9941
9991
|
this._rawYaml = _rawYaml;
|
|
9942
|
-
this._globalStore = _globalStore;
|
|
9943
9992
|
}
|
|
9944
9993
|
get stateDisplay() {
|
|
9945
9994
|
var _a;
|
|
@@ -9967,7 +10016,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9967
10016
|
constructor(_rawYaml, _globalStore) {
|
|
9968
10017
|
super(_rawYaml, _globalStore);
|
|
9969
10018
|
this._rawYaml = _rawYaml;
|
|
9970
|
-
this._globalStore = _globalStore;
|
|
9971
10019
|
this.id = _rawYaml.metadata.uid || _rawYaml.id;
|
|
9972
10020
|
}
|
|
9973
10021
|
}
|
|
@@ -9975,7 +10023,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9975
10023
|
constructor(_rawYaml, _globalStore) {
|
|
9976
10024
|
super(_rawYaml, _globalStore);
|
|
9977
10025
|
this._rawYaml = _rawYaml;
|
|
9978
|
-
this._globalStore = _globalStore;
|
|
9979
10026
|
}
|
|
9980
10027
|
get stateDisplay() {
|
|
9981
10028
|
var _a, _b, _c;
|
|
@@ -9991,7 +10038,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9991
10038
|
constructor(_rawYaml, _globalStore) {
|
|
9992
10039
|
super(_rawYaml, _globalStore);
|
|
9993
10040
|
this._rawYaml = _rawYaml;
|
|
9994
|
-
this._globalStore = _globalStore;
|
|
9995
10041
|
}
|
|
9996
10042
|
get stateDisplay() {
|
|
9997
10043
|
var _a, _b;
|
|
@@ -10011,7 +10057,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10011
10057
|
constructor(_rawYaml, _globalStore) {
|
|
10012
10058
|
super(_rawYaml, _globalStore);
|
|
10013
10059
|
this._rawYaml = _rawYaml;
|
|
10014
|
-
this._globalStore = _globalStore;
|
|
10015
10060
|
}
|
|
10016
10061
|
get stateDisplay() {
|
|
10017
10062
|
var _a, _b, _c;
|
|
@@ -10035,7 +10080,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10035
10080
|
constructor(_rawYaml, _globalStore) {
|
|
10036
10081
|
super(_rawYaml, _globalStore);
|
|
10037
10082
|
this._rawYaml = _rawYaml;
|
|
10038
|
-
this._globalStore = _globalStore;
|
|
10039
10083
|
}
|
|
10040
10084
|
get displayType() {
|
|
10041
10085
|
const spec = this._rawYaml.spec;
|
|
@@ -10074,7 +10118,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10074
10118
|
constructor(_rawYaml, _globalStore) {
|
|
10075
10119
|
super(_rawYaml, _globalStore);
|
|
10076
10120
|
this._rawYaml = _rawYaml;
|
|
10077
|
-
this._globalStore = _globalStore;
|
|
10078
10121
|
}
|
|
10079
10122
|
get role() {
|
|
10080
10123
|
return "node-role.kubernetes.io/control-plane" in (this.metadata.labels || {}) ? "Control Plane" : "Worker";
|
|
@@ -10099,7 +10142,6 @@ var __publicField = (obj, key, value) => {
|
|
|
10099
10142
|
super(_rawYaml, _globalStore);
|
|
10100
10143
|
__publicField(this, "pvs", []);
|
|
10101
10144
|
this._rawYaml = _rawYaml;
|
|
10102
|
-
this._globalStore = _globalStore;
|
|
10103
10145
|
}
|
|
10104
10146
|
async init() {
|
|
10105
10147
|
const pvs = await this._globalStore.get("persistentvolumes", {
|
|
@@ -10118,14 +10160,12 @@ var __publicField = (obj, key, value) => {
|
|
|
10118
10160
|
constructor(_rawYaml, _globalStore) {
|
|
10119
10161
|
super(_rawYaml, _globalStore);
|
|
10120
10162
|
this._rawYaml = _rawYaml;
|
|
10121
|
-
this._globalStore = _globalStore;
|
|
10122
10163
|
}
|
|
10123
10164
|
}
|
|
10124
10165
|
class PersistentVolumeClaimModel extends ResourceModel {
|
|
10125
10166
|
constructor(_rawYaml, _globalStore) {
|
|
10126
10167
|
super(_rawYaml, _globalStore);
|
|
10127
10168
|
this._rawYaml = _rawYaml;
|
|
10128
|
-
this._globalStore = _globalStore;
|
|
10129
10169
|
}
|
|
10130
10170
|
}
|
|
10131
10171
|
const index_1lzkrja = "";
|
|
@@ -11495,6 +11535,27 @@ var __publicField = (obj, key, value) => {
|
|
|
11495
11535
|
})
|
|
11496
11536
|
});
|
|
11497
11537
|
}
|
|
11538
|
+
function PVPhaseDisplay(props) {
|
|
11539
|
+
const { value: value2 } = props;
|
|
11540
|
+
const i18n2 = useTranslation();
|
|
11541
|
+
const map = {
|
|
11542
|
+
Available: i18n2.t("dovetail.pv_phase_available"),
|
|
11543
|
+
Bound: i18n2.t("dovetail.pv_phase_bound"),
|
|
11544
|
+
Failed: i18n2.t("dovetail.pv_phase_released"),
|
|
11545
|
+
Pending: i18n2.t("dovetail.pv_phase_failed"),
|
|
11546
|
+
Released: i18n2.t("dovetail.pv_phase_pending")
|
|
11547
|
+
};
|
|
11548
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: map[value2] || value2 });
|
|
11549
|
+
}
|
|
11550
|
+
function PVVolumeModeDisplay(props) {
|
|
11551
|
+
const { value: value2 } = props;
|
|
11552
|
+
const i18n2 = useTranslation();
|
|
11553
|
+
const map = {
|
|
11554
|
+
Block: i18n2.t("dovetail.block"),
|
|
11555
|
+
Filesystem: i18n2.t("dovetail.file_system")
|
|
11556
|
+
};
|
|
11557
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: map[value2] || value2 });
|
|
11558
|
+
}
|
|
11498
11559
|
const WorkloadPodsTable_1giuese = "";
|
|
11499
11560
|
const WorkloadPodsTable = ({
|
|
11500
11561
|
namespace: namespace2,
|
|
@@ -12160,13 +12221,6 @@ var __publicField = (obj, key, value) => {
|
|
|
12160
12221
|
title: i18n2.t("dovetail.provisioner")
|
|
12161
12222
|
};
|
|
12162
12223
|
};
|
|
12163
|
-
const StorageClassFsTypeField = (i18n2) => {
|
|
12164
|
-
return {
|
|
12165
|
-
key: "fstype",
|
|
12166
|
-
path: ["parameters", "csi.storage.k8s.io/fstype"],
|
|
12167
|
-
title: i18n2.t("dovetail.file_system")
|
|
12168
|
-
};
|
|
12169
|
-
};
|
|
12170
12224
|
const StorageClassPvField = () => {
|
|
12171
12225
|
return {
|
|
12172
12226
|
key: "pvs",
|
|
@@ -12183,6 +12237,63 @@ var __publicField = (obj, key, value) => {
|
|
|
12183
12237
|
}
|
|
12184
12238
|
};
|
|
12185
12239
|
};
|
|
12240
|
+
const PVCapacityField = (i18n2) => {
|
|
12241
|
+
return {
|
|
12242
|
+
key: "capacity",
|
|
12243
|
+
path: ["spec", "capacity", "storage"],
|
|
12244
|
+
title: i18n2.t("dovetail.capacity"),
|
|
12245
|
+
renderContent(value2) {
|
|
12246
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 1 });
|
|
12247
|
+
}
|
|
12248
|
+
};
|
|
12249
|
+
};
|
|
12250
|
+
const PVCStorageField = (i18n2) => {
|
|
12251
|
+
return {
|
|
12252
|
+
key: "storage",
|
|
12253
|
+
path: ["spec", "resources", "requests", "storage"],
|
|
12254
|
+
title: i18n2.t("dovetail.capacity"),
|
|
12255
|
+
renderContent(value2) {
|
|
12256
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, { rawValue: parseSi(value2), decimals: 1 });
|
|
12257
|
+
}
|
|
12258
|
+
};
|
|
12259
|
+
};
|
|
12260
|
+
const PVStorageClassField = (i18n2) => {
|
|
12261
|
+
return {
|
|
12262
|
+
key: "storageClass",
|
|
12263
|
+
path: ["spec", "storageClassName"],
|
|
12264
|
+
title: i18n2.t("dovetail.storage_class"),
|
|
12265
|
+
renderContent(value2) {
|
|
12266
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, { resourceName: "storageclasses", namespace: "", resourceId: value2 });
|
|
12267
|
+
}
|
|
12268
|
+
};
|
|
12269
|
+
};
|
|
12270
|
+
const PVPhaseField = (i18n2) => {
|
|
12271
|
+
return {
|
|
12272
|
+
key: "phase",
|
|
12273
|
+
path: ["status", "phase"],
|
|
12274
|
+
title: i18n2.t("dovetail.phase"),
|
|
12275
|
+
renderContent(value2) {
|
|
12276
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVPhaseDisplay, { value: value2 });
|
|
12277
|
+
}
|
|
12278
|
+
};
|
|
12279
|
+
};
|
|
12280
|
+
const PVVolumeModeField = (i18n2) => {
|
|
12281
|
+
return {
|
|
12282
|
+
key: "mode",
|
|
12283
|
+
path: ["spec", "volumeMode"],
|
|
12284
|
+
title: i18n2.t("dovetail.volume_mode"),
|
|
12285
|
+
renderContent(value2) {
|
|
12286
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVVolumeModeDisplay, { value: value2 });
|
|
12287
|
+
}
|
|
12288
|
+
};
|
|
12289
|
+
};
|
|
12290
|
+
const PVAccessModeField = (i18n2) => {
|
|
12291
|
+
return {
|
|
12292
|
+
key: "accessMode",
|
|
12293
|
+
path: ["spec", "accessModes"],
|
|
12294
|
+
title: i18n2.t("dovetail.access_mode")
|
|
12295
|
+
};
|
|
12296
|
+
};
|
|
12186
12297
|
function __rest(s2, e2) {
|
|
12187
12298
|
var t2 = {};
|
|
12188
12299
|
for (var p in s2)
|
|
@@ -18480,7 +18591,7 @@ var __publicField = (obj, key, value) => {
|
|
|
18480
18591
|
]
|
|
18481
18592
|
});
|
|
18482
18593
|
const StorageClassPvGroup = (i18n2) => ({
|
|
18483
|
-
title: i18n2.t("dovetail.
|
|
18594
|
+
title: i18n2.t("dovetail.persistent_volume"),
|
|
18484
18595
|
areas: [
|
|
18485
18596
|
{
|
|
18486
18597
|
fields: [StorageClassPvField()]
|
|
@@ -18988,7 +19099,8 @@ var __publicField = (obj, key, value) => {
|
|
|
18988
19099
|
function ListPage(props) {
|
|
18989
19100
|
const {
|
|
18990
19101
|
selectedKeys,
|
|
18991
|
-
tableProps
|
|
19102
|
+
tableProps,
|
|
19103
|
+
contentClassName
|
|
18992
19104
|
} = props;
|
|
18993
19105
|
const {
|
|
18994
19106
|
Table: TableComponent
|
|
@@ -19017,7 +19129,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19017
19129
|
}
|
|
19018
19130
|
})]
|
|
19019
19131
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
|
|
19020
|
-
className: ListContentStyle,
|
|
19132
|
+
className: cx_default(ListContentStyle, contentClassName),
|
|
19021
19133
|
children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
|
|
19022
19134
|
className: NamespaceFilterStyle
|
|
19023
19135
|
}) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
@@ -24823,24 +24935,38 @@ var __publicField = (obj, key, value) => {
|
|
|
24823
24935
|
sortable: true
|
|
24824
24936
|
};
|
|
24825
24937
|
};
|
|
24826
|
-
const
|
|
24938
|
+
const PVCapacityColumnRenderer = (i18n2) => {
|
|
24827
24939
|
return {
|
|
24828
|
-
key: "
|
|
24940
|
+
key: "capacity",
|
|
24829
24941
|
display: true,
|
|
24830
|
-
dataIndex: ["
|
|
24831
|
-
title: i18n2.t("dovetail.
|
|
24942
|
+
dataIndex: ["spec", "capacity", "storage"],
|
|
24943
|
+
title: i18n2.t("dovetail.capacity"),
|
|
24832
24944
|
width: 120,
|
|
24833
|
-
sortable: true
|
|
24945
|
+
sortable: true,
|
|
24946
|
+
align: "right",
|
|
24947
|
+
render(value2) {
|
|
24948
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, {
|
|
24949
|
+
rawValue: parseSi(value2),
|
|
24950
|
+
decimals: 1
|
|
24951
|
+
});
|
|
24952
|
+
}
|
|
24834
24953
|
};
|
|
24835
24954
|
};
|
|
24836
|
-
const
|
|
24955
|
+
const PVCStorageColumnRenderer = (i18n2) => {
|
|
24837
24956
|
return {
|
|
24838
|
-
key: "
|
|
24957
|
+
key: "storage",
|
|
24839
24958
|
display: true,
|
|
24840
|
-
dataIndex: ["spec", "
|
|
24959
|
+
dataIndex: ["spec", "resources", "requests", "storage"],
|
|
24841
24960
|
title: i18n2.t("dovetail.capacity"),
|
|
24842
24961
|
width: 120,
|
|
24843
|
-
sortable: true
|
|
24962
|
+
sortable: true,
|
|
24963
|
+
align: "right",
|
|
24964
|
+
render(value2) {
|
|
24965
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Units.Byte, {
|
|
24966
|
+
rawValue: parseSi(value2),
|
|
24967
|
+
decimals: 1
|
|
24968
|
+
});
|
|
24969
|
+
}
|
|
24844
24970
|
};
|
|
24845
24971
|
};
|
|
24846
24972
|
const PVStorageClassColumnRenderer = (i18n2) => {
|
|
@@ -24850,7 +24976,14 @@ var __publicField = (obj, key, value) => {
|
|
|
24850
24976
|
dataIndex: ["spec", "storageClassName"],
|
|
24851
24977
|
title: i18n2.t("dovetail.storage_class"),
|
|
24852
24978
|
width: 120,
|
|
24853
|
-
sortable: true
|
|
24979
|
+
sortable: true,
|
|
24980
|
+
render(value2) {
|
|
24981
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ResourceLink, {
|
|
24982
|
+
resourceName: "storageclasses",
|
|
24983
|
+
namespace: "",
|
|
24984
|
+
resourceId: value2
|
|
24985
|
+
});
|
|
24986
|
+
}
|
|
24854
24987
|
};
|
|
24855
24988
|
};
|
|
24856
24989
|
const PVPhaseColumnRenderer = (i18n2) => {
|
|
@@ -24860,17 +24993,27 @@ var __publicField = (obj, key, value) => {
|
|
|
24860
24993
|
dataIndex: ["status", "phase"],
|
|
24861
24994
|
title: i18n2.t("dovetail.phase"),
|
|
24862
24995
|
width: 120,
|
|
24863
|
-
sortable: true
|
|
24996
|
+
sortable: true,
|
|
24997
|
+
render(value2) {
|
|
24998
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVPhaseDisplay, {
|
|
24999
|
+
value: value2
|
|
25000
|
+
});
|
|
25001
|
+
}
|
|
24864
25002
|
};
|
|
24865
25003
|
};
|
|
24866
|
-
const
|
|
25004
|
+
const PVVolumeModeColumnRenderer = (i18n2) => {
|
|
24867
25005
|
return {
|
|
24868
25006
|
key: "mode",
|
|
24869
25007
|
display: true,
|
|
24870
25008
|
dataIndex: ["spec", "volumeMode"],
|
|
24871
25009
|
title: i18n2.t("dovetail.volume_mode"),
|
|
24872
25010
|
width: 120,
|
|
24873
|
-
sortable: true
|
|
25011
|
+
sortable: true,
|
|
25012
|
+
render(value2) {
|
|
25013
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(PVVolumeModeDisplay, {
|
|
25014
|
+
value: value2
|
|
25015
|
+
});
|
|
25016
|
+
}
|
|
24874
25017
|
};
|
|
24875
25018
|
};
|
|
24876
25019
|
const PVAccessModeColumnRenderer = (i18n2) => {
|
|
@@ -25187,7 +25330,6 @@ var __publicField = (obj, key, value) => {
|
|
|
25187
25330
|
exports2.EventsTableTabField = EventsTableTabField;
|
|
25188
25331
|
exports2.FormModal = FormModal;
|
|
25189
25332
|
exports2.FormType = FormType;
|
|
25190
|
-
exports2.FsTypeColumnRenderer = FsTypeColumnRenderer;
|
|
25191
25333
|
exports2.GlobalStoreContext = GlobalStoreContext;
|
|
25192
25334
|
exports2.INGRESS_INIT_VALUE = INGRESS_INIT_VALUE;
|
|
25193
25335
|
exports2.ImageField = ImageField;
|
|
@@ -25233,10 +25375,19 @@ var __publicField = (obj, key, value) => {
|
|
|
25233
25375
|
exports2.NodeRole = NodeRole;
|
|
25234
25376
|
exports2.POD_INIT_VALUE = POD_INIT_VALUE;
|
|
25235
25377
|
exports2.PVAccessModeColumnRenderer = PVAccessModeColumnRenderer;
|
|
25378
|
+
exports2.PVAccessModeField = PVAccessModeField;
|
|
25379
|
+
exports2.PVCStorageColumnRenderer = PVCStorageColumnRenderer;
|
|
25380
|
+
exports2.PVCStorageField = PVCStorageField;
|
|
25236
25381
|
exports2.PVCapacityColumnRenderer = PVCapacityColumnRenderer;
|
|
25237
|
-
exports2.
|
|
25382
|
+
exports2.PVCapacityField = PVCapacityField;
|
|
25238
25383
|
exports2.PVPhaseColumnRenderer = PVPhaseColumnRenderer;
|
|
25384
|
+
exports2.PVPhaseDisplay = PVPhaseDisplay;
|
|
25385
|
+
exports2.PVPhaseField = PVPhaseField;
|
|
25239
25386
|
exports2.PVStorageClassColumnRenderer = PVStorageClassColumnRenderer;
|
|
25387
|
+
exports2.PVStorageClassField = PVStorageClassField;
|
|
25388
|
+
exports2.PVVolumeModeColumnRenderer = PVVolumeModeColumnRenderer;
|
|
25389
|
+
exports2.PVVolumeModeDisplay = PVVolumeModeDisplay;
|
|
25390
|
+
exports2.PVVolumeModeField = PVVolumeModeField;
|
|
25240
25391
|
exports2.PageShow = PageShow;
|
|
25241
25392
|
exports2.PersistentVolumeClaimModel = PersistentVolumeClaimModel;
|
|
25242
25393
|
exports2.PersistentVolumeModel = PersistentVolumeModel;
|
|
@@ -25315,7 +25466,6 @@ var __publicField = (obj, key, value) => {
|
|
|
25315
25466
|
exports2.StateTag = StateTag;
|
|
25316
25467
|
exports2.StateTagStyle = StateTagStyle;
|
|
25317
25468
|
exports2.StatefulSetModel = StatefulSetModel;
|
|
25318
|
-
exports2.StorageClassFsTypeField = StorageClassFsTypeField;
|
|
25319
25469
|
exports2.StorageClassModel = StorageClassModel;
|
|
25320
25470
|
exports2.StorageClassProvisionerField = StorageClassProvisionerField;
|
|
25321
25471
|
exports2.StorageClassPvField = StorageClassPvField;
|
|
@@ -4,6 +4,7 @@ import { ResourceModel } from '../../models';
|
|
|
4
4
|
interface ListPageProps<T extends ResourceModel> {
|
|
5
5
|
selectedKeys: string[];
|
|
6
6
|
tableProps: TableProps<T>;
|
|
7
|
+
contentClassName?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare function ListPage<T extends ResourceModel>(props: ListPageProps<T>): JSX.Element;
|
|
9
10
|
export {};
|
|
@@ -2,7 +2,7 @@ import { i18n as I18nType } from 'i18next';
|
|
|
2
2
|
import { Unstructured } from 'k8s-api-provider';
|
|
3
3
|
import { NetworkPolicy } from 'kubernetes-types/networking/v1';
|
|
4
4
|
import React from 'react';
|
|
5
|
-
import { JobModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, StorageClassModel } from '../../models';
|
|
5
|
+
import { JobModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, StorageClassModel, PersistentVolumeModel, PersistentVolumeClaimModel } from '../../models';
|
|
6
6
|
export type ShowField<Model extends ResourceModel> = {
|
|
7
7
|
key: string;
|
|
8
8
|
title?: React.ReactNode;
|
|
@@ -59,5 +59,10 @@ export declare const PodSelectorField: <Model extends ResourceModel<Required<Uns
|
|
|
59
59
|
export declare const PortsTableField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
60
60
|
export declare const DurationField: <Model extends JobModel | CronJobModel>(i18n: I18nType) => ShowField<Model>;
|
|
61
61
|
export declare const StorageClassProvisionerField: <Model extends StorageClassModel>(i18n: I18nType) => ShowField<Model>;
|
|
62
|
-
export declare const StorageClassFsTypeField: <Model extends StorageClassModel>(i18n: I18nType) => ShowField<Model>;
|
|
63
62
|
export declare const StorageClassPvField: <Model extends StorageClassModel>() => ShowField<Model>;
|
|
63
|
+
export declare const PVCapacityField: <Model extends PersistentVolumeModel>(i18n: I18nType) => ShowField<Model>;
|
|
64
|
+
export declare const PVCStorageField: <Model extends PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
65
|
+
export declare const PVStorageClassField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
66
|
+
export declare const PVPhaseField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
67
|
+
export declare const PVVolumeModeField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
68
|
+
export declare const PVAccessModeField: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => ShowField<Model>;
|
|
@@ -38,6 +38,7 @@ export * from './Tags';
|
|
|
38
38
|
export * from './TextTags';
|
|
39
39
|
export * from './PodLog';
|
|
40
40
|
export * from './NetworkPolicyRulesViewer';
|
|
41
|
+
export * from './ResourceFiledDisplays';
|
|
41
42
|
export * from './Tabs';
|
|
42
43
|
export * as ValueDisplay from './ValueDisplay';
|
|
43
44
|
export * from './ResourceSelect';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { i18n as I18nType } from 'i18next';
|
|
3
3
|
import { Column } from '../../components/Table';
|
|
4
|
-
import { JobModel, PodModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, DaemonSetModel, StorageClassModel, PersistentVolumeModel } from '../../models';
|
|
4
|
+
import { JobModel, PodModel, ResourceModel, WorkloadModel, WorkloadBaseModel, CronJobModel, IngressModel, ServiceModel, DaemonSetModel, StorageClassModel, PersistentVolumeModel, PersistentVolumeClaimModel } from '../../models';
|
|
5
5
|
export declare const CommonSorter: (dataIndex: string[]) => (a: unknown, b: unknown) => 0 | 1 | -1;
|
|
6
6
|
export declare const NameColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType, resource?: string) => Column<Model>;
|
|
7
7
|
export declare const PlainTextNameColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
|
|
@@ -34,9 +34,9 @@ export declare const PodContainersNumColumnRenderer: <Model extends PodModel>(i1
|
|
|
34
34
|
export declare const DataKeysColumnRenderer: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(i18n: I18nType) => Column<Model>;
|
|
35
35
|
export declare const PortMappingColumnRenderer: <Model extends ServiceModel>(i18n: I18nType, clusterVip: string) => Column<Model>;
|
|
36
36
|
export declare const ProvisionerColumnRenderer: <Model extends StorageClassModel>(i18n: I18nType) => Column<Model>;
|
|
37
|
-
export declare const FsTypeColumnRenderer: <Model extends StorageClassModel>(i18n: I18nType) => Column<Model>;
|
|
38
37
|
export declare const PVCapacityColumnRenderer: <Model extends PersistentVolumeModel>(i18n: I18nType) => Column<Model>;
|
|
39
|
-
export declare const
|
|
40
|
-
export declare const
|
|
41
|
-
export declare const
|
|
42
|
-
export declare const
|
|
38
|
+
export declare const PVCStorageColumnRenderer: <Model extends PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
39
|
+
export declare const PVStorageClassColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
40
|
+
export declare const PVPhaseColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
41
|
+
export declare const PVVolumeModeColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
|
42
|
+
export declare const PVAccessModeColumnRenderer: <Model extends PersistentVolumeModel | PersistentVolumeClaimModel>(i18n: I18nType) => Column<Model>;
|
package/lib/src/i18n.d.ts
CHANGED
|
@@ -158,6 +158,20 @@ export declare const resources: {
|
|
|
158
158
|
not_support: string;
|
|
159
159
|
stopped: string;
|
|
160
160
|
any_node_ip: string;
|
|
161
|
+
storage_class: string;
|
|
162
|
+
persistent_volume: string;
|
|
163
|
+
provisioner: string;
|
|
164
|
+
file_system: string;
|
|
165
|
+
capacity: string;
|
|
166
|
+
phase: string;
|
|
167
|
+
volume_mode: string;
|
|
168
|
+
access_mode: string;
|
|
169
|
+
block: string;
|
|
170
|
+
pv_phase_available: string;
|
|
171
|
+
pv_phase_bound: string;
|
|
172
|
+
pv_phase_released: string;
|
|
173
|
+
pv_phase_failed: string;
|
|
174
|
+
pv_phase_pending: string;
|
|
161
175
|
};
|
|
162
176
|
};
|
|
163
177
|
'zh-CN': {
|
|
@@ -317,10 +331,21 @@ export declare const resources: {
|
|
|
317
331
|
only_support_one_yaml: string;
|
|
318
332
|
not_support: string;
|
|
319
333
|
stopped: string;
|
|
334
|
+
any_node_ip: string;
|
|
320
335
|
storage_class: string;
|
|
321
|
-
|
|
336
|
+
persistent_volume: string;
|
|
322
337
|
provisioner: string;
|
|
323
338
|
file_system: string;
|
|
339
|
+
capacity: string;
|
|
340
|
+
phase: string;
|
|
341
|
+
volume_mode: string;
|
|
342
|
+
access_mode: string;
|
|
343
|
+
block: string;
|
|
344
|
+
pv_phase_available: string;
|
|
345
|
+
pv_phase_bound: string;
|
|
346
|
+
pv_phase_released: string;
|
|
347
|
+
pv_phase_failed: string;
|
|
348
|
+
pv_phase_pending: string;
|
|
324
349
|
};
|
|
325
350
|
};
|
|
326
351
|
};
|
|
@@ -155,6 +155,20 @@ declare const _default: {
|
|
|
155
155
|
not_support: string;
|
|
156
156
|
stopped: string;
|
|
157
157
|
any_node_ip: string;
|
|
158
|
+
storage_class: string;
|
|
159
|
+
persistent_volume: string;
|
|
160
|
+
provisioner: string;
|
|
161
|
+
file_system: string;
|
|
162
|
+
capacity: string;
|
|
163
|
+
phase: string;
|
|
164
|
+
volume_mode: string;
|
|
165
|
+
access_mode: string;
|
|
166
|
+
block: string;
|
|
167
|
+
pv_phase_available: string;
|
|
168
|
+
pv_phase_bound: string;
|
|
169
|
+
pv_phase_released: string;
|
|
170
|
+
pv_phase_failed: string;
|
|
171
|
+
pv_phase_pending: string;
|
|
158
172
|
};
|
|
159
173
|
};
|
|
160
174
|
export default _default;
|
|
@@ -155,10 +155,21 @@ declare const _default: {
|
|
|
155
155
|
only_support_one_yaml: string;
|
|
156
156
|
not_support: string;
|
|
157
157
|
stopped: string;
|
|
158
|
+
any_node_ip: string;
|
|
158
159
|
storage_class: string;
|
|
159
|
-
|
|
160
|
+
persistent_volume: string;
|
|
160
161
|
provisioner: string;
|
|
161
162
|
file_system: string;
|
|
163
|
+
capacity: string;
|
|
164
|
+
phase: string;
|
|
165
|
+
volume_mode: string;
|
|
166
|
+
access_mode: string;
|
|
167
|
+
block: string;
|
|
168
|
+
pv_phase_available: string;
|
|
169
|
+
pv_phase_bound: string;
|
|
170
|
+
pv_phase_released: string;
|
|
171
|
+
pv_phase_failed: string;
|
|
172
|
+
pv_phase_pending: string;
|
|
162
173
|
};
|
|
163
174
|
};
|
|
164
175
|
export default _default;
|
|
@@ -5,7 +5,6 @@ import { WorkloadBaseModel } from './workload-base-model';
|
|
|
5
5
|
type RequiredCronJob = Required<CronJob> & Unstructured;
|
|
6
6
|
export declare class CronJobModel extends WorkloadBaseModel {
|
|
7
7
|
_rawYaml: RequiredCronJob;
|
|
8
|
-
_globalStore: GlobalStore;
|
|
9
8
|
spec?: RequiredCronJob['spec'];
|
|
10
9
|
status?: RequiredCronJob['status'];
|
|
11
10
|
constructor(_rawYaml: RequiredCronJob, _globalStore: GlobalStore);
|