@dovetail-v2/refine 0.1.11-alpha.1 → 0.1.11
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-1c2c2dd9.js → MonacoYamlDiffEditor-10d71161.js} +1 -1
- package/dist/{index-e30b5cd6.js → index-bf5bacd7.js} +744 -556
- package/dist/refine.js +3 -1
- package/dist/refine.umd.cjs +738 -550
- package/dist/style.css +143 -6
- package/lib/components/EditField/index.d.ts +3 -0
- package/lib/components/EditMetadataForm/KeyValueTableForm.d.ts +15 -0
- package/lib/components/EditMetadataForm/LabelFormatPopover.d.ts +3 -0
- package/lib/components/ResourceSelect/index.d.ts +2 -2
- package/lib/i18n.d.ts +20 -0
- package/lib/locales/zh-CN/index.d.ts +20 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/validation.d.ts +8 -0
- package/package.json +9 -9
- package/lib/components/CronJobDropdown/index.d.ts +0 -9
- package/lib/components/K8sDropdown/index.d.ts +0 -9
- package/lib/components/PodDropdown/index.d.ts +0 -9
- package/lib/components/ReplicasDropdown/index.d.ts +0 -9
- package/lib/components/Table/TableToolBar.d.ts +0 -9
- package/lib/components/Table/TableWidgets.d.ts +0 -6
- package/lib/components/WorkloadDropdown/index.d.ts +0 -9
- package/lib/src/App.d.ts +0 -3
- package/lib/src/Dovetail.d.ts +0 -18
- package/lib/src/components/Breadcrumb/index.d.ts +0 -6
- package/lib/src/components/ConditionsTable/ConditionsTable.d.ts +0 -7
- package/lib/src/components/ConditionsTable/index.d.ts +0 -1
- package/lib/src/components/CreateButton/index.d.ts +0 -2
- package/lib/src/components/CronJobDropdown/index.d.ts +0 -9
- package/lib/src/components/CronjobJobsTable/index.d.ts +0 -8
- package/lib/src/components/DeleteButton/index.d.ts +0 -2
- package/lib/src/components/DeleteManyButton/index.d.ts +0 -4
- package/lib/src/components/DrawerShow/DrawerShow.d.ts +0 -9
- package/lib/src/components/DrawerShow/index.d.ts +0 -1
- package/lib/src/components/DurationTime/index.d.ts +0 -6
- package/lib/src/components/EditButton/index.d.ts +0 -2
- package/lib/src/components/EditField/index.d.ts +0 -15
- package/lib/src/components/ErrorContent/index.d.ts +0 -17
- package/lib/src/components/EventsTable/EventsTable.d.ts +0 -6
- package/lib/src/components/EventsTable/index.d.ts +0 -1
- package/lib/src/components/Form/FormModal.d.ts +0 -9
- package/lib/src/components/Form/RefineFormContent.d.ts +0 -12
- package/lib/src/components/Form/RefineFormPage.d.ts +0 -7
- package/lib/src/components/Form/YamlForm.d.ts +0 -29
- package/lib/src/components/Form/index.d.ts +0 -7
- package/lib/src/components/Form/type.d.ts +0 -17
- package/lib/src/components/Form/useFieldsConfig.d.ts +0 -4
- package/lib/src/components/Form/useReactHookForm.d.ts +0 -30
- package/lib/src/components/Form/useRefineForm.d.ts +0 -13
- package/lib/src/components/Form/useYamlForm.d.ts +0 -50
- package/lib/src/components/FormErrorAlert/index.d.ts +0 -9
- package/lib/src/components/FormLayout/index.d.ts +0 -7
- package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +0 -6
- package/lib/src/components/FormWidgets/MetadataForm.d.ts +0 -2
- package/lib/src/components/FormWidgets/NameInputWidget.d.ts +0 -51
- package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +0 -9
- package/lib/src/components/FormWidgets/index.d.ts +0 -4
- package/lib/src/components/FormWidgets/widget.d.ts +0 -5
- package/lib/src/components/ImageNames/index.d.ts +0 -5
- package/lib/src/components/IngressRulesComponent/index.d.ts +0 -5
- package/lib/src/components/IngressRulesTable/IngressRulesTable.d.ts +0 -7
- package/lib/src/components/IngressRulesTable/index.d.ts +0 -1
- package/lib/src/components/K8sDropdown/index.d.ts +0 -9
- package/lib/src/components/KeyValue/KeyValue.d.ts +0 -7
- package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +0 -6
- package/lib/src/components/KeyValue/KeyValueSecret.d.ts +0 -5
- package/lib/src/components/KeyValue/index.d.ts +0 -3
- package/lib/src/components/Layout/index.d.ts +0 -3
- package/lib/src/components/LinkFallback/index.d.ts +0 -4
- package/lib/src/components/ListPage/index.d.ts +0 -10
- package/lib/src/components/Menu/index.d.ts +0 -2
- package/lib/src/components/NamespacesFilter/index.d.ts +0 -11
- package/lib/src/components/NetworkPolicyRulesViewer/NetworkPolicyRulesViewer.d.ts +0 -8
- package/lib/src/components/NetworkPolicyRulesViewer/index.d.ts +0 -1
- package/lib/src/components/PVCDistributeStorage/index.d.ts +0 -16
- package/lib/src/components/PageShow/PageShow.d.ts +0 -12
- package/lib/src/components/PageShow/index.d.ts +0 -1
- package/lib/src/components/PodContainersTable/PodContainersTable.d.ts +0 -8
- package/lib/src/components/PodContainersTable/index.d.ts +0 -1
- package/lib/src/components/PodDropdown/index.d.ts +0 -9
- package/lib/src/components/PodLog/index.d.ts +0 -6
- package/lib/src/components/PodSelectorTable/index.d.ts +0 -6
- package/lib/src/components/PodShellModal/PodShell.d.ts +0 -18
- package/lib/src/components/PodShellModal/index.d.ts +0 -10
- package/lib/src/components/PortsTable/index.d.ts +0 -7
- package/lib/src/components/ReferenceLink/index.d.ts +0 -8
- package/lib/src/components/ReplicasDropdown/index.d.ts +0 -9
- package/lib/src/components/ResourceCRUD/ResourceCRUD.d.ts +0 -8
- package/lib/src/components/ResourceCRUD/create/index.d.ts +0 -8
- package/lib/src/components/ResourceCRUD/index.d.ts +0 -4
- package/lib/src/components/ResourceCRUD/list/index.d.ts +0 -9
- package/lib/src/components/ResourceCRUD/show/index.d.ts +0 -9
- package/lib/src/components/ResourceFiledDisplays.d.ts +0 -7
- package/lib/src/components/ResourceLink/index.d.ts +0 -8
- package/lib/src/components/ResourceSelect/index.d.ts +0 -12
- package/lib/src/components/ResourceTable/index.d.ts +0 -9
- package/lib/src/components/ResourceUsageBar/index.d.ts +0 -8
- package/lib/src/components/Separator/index.d.ts +0 -2
- package/lib/src/components/ServiceComponents/index.d.ts +0 -10
- package/lib/src/components/Shell/ShellToolbar.d.ts +0 -16
- package/lib/src/components/Shell/index.d.ts +0 -74
- package/lib/src/components/ShowContent/ShowContent.d.ts +0 -18
- package/lib/src/components/ShowContent/fields.d.ts +0 -76
- package/lib/src/components/ShowContent/groups.d.ts +0 -24
- package/lib/src/components/ShowContent/index.d.ts +0 -4
- package/lib/src/components/ShowContent/tabs.d.ts +0 -5
- package/lib/src/components/StateTag/StateTag.d.ts +0 -10
- package/lib/src/components/StateTag/index.d.ts +0 -1
- package/lib/src/components/Table/TableToolBar.d.ts +0 -8
- package/lib/src/components/Table/TableWidgets.d.ts +0 -6
- package/lib/src/components/Table/index.d.ts +0 -43
- package/lib/src/components/Tabs/index.d.ts +0 -10
- package/lib/src/components/Tags/index.d.ts +0 -6
- package/lib/src/components/TextTags/index.d.ts +0 -6
- package/lib/src/components/Time/index.d.ts +0 -8
- package/lib/src/components/ValueDisplay/index.d.ts +0 -9
- package/lib/src/components/WorkloadDropdown/index.d.ts +0 -9
- package/lib/src/components/WorkloadPodsTable/WorkloadPodsTable.d.ts +0 -9
- package/lib/src/components/WorkloadPodsTable/index.d.ts +0 -1
- package/lib/src/components/WorkloadReplicas/index.d.ts +0 -17
- package/lib/src/components/YamlEditor/MonacoYamlDiffEditor.d.ts +0 -9
- package/lib/src/components/YamlEditor/MonacoYamlEditor.d.ts +0 -19
- package/lib/src/components/YamlEditor/YamlEditorComponent.d.ts +0 -27
- package/lib/src/components/YamlEditor/index.d.ts +0 -1
- package/lib/src/components/YamlEditor/style.d.ts +0 -11
- package/lib/src/components/YamlEditor/yaml.worker.d.ts +0 -1
- package/lib/src/components/index.d.ts +0 -49
- package/lib/src/constants/auth.d.ts +0 -5
- package/lib/src/constants/index.d.ts +0 -3
- package/lib/src/constants/k8s.d.ts +0 -522
- package/lib/src/constants/state.d.ts +0 -15
- package/lib/src/contexts/component.d.ts +0 -8
- package/lib/src/contexts/configs.d.ts +0 -4
- package/lib/src/contexts/global-store.d.ts +0 -6
- package/lib/src/contexts/index.d.ts +0 -3
- package/lib/src/hooks/index.d.ts +0 -8
- package/lib/src/hooks/useDeleteModal/index.d.ts +0 -1
- package/lib/src/hooks/useDeleteModal/useDeleteManyModal.d.ts +0 -8
- package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +0 -7
- package/lib/src/hooks/useDownloadYAML.d.ts +0 -7
- package/lib/src/hooks/useEagleTable/columns.d.ts +0 -47
- package/lib/src/hooks/useEagleTable/index.d.ts +0 -2
- package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +0 -56
- package/lib/src/hooks/useEdit.d.ts +0 -4
- package/lib/src/hooks/useGlobalStore.d.ts +0 -3
- package/lib/src/hooks/useK8sYamlEditor.d.ts +0 -5
- package/lib/src/hooks/useNamespaceRefineFilter.d.ts +0 -5
- package/lib/src/hooks/useOpenForm.d.ts +0 -8
- package/lib/src/hooks/useSchema.d.ts +0 -21
- package/lib/src/hooks/useSubmitForm.d.ts +0 -14
- package/lib/src/hooks/useTableData.d.ts +0 -20
- package/lib/src/i18n.d.ts +0 -371
- package/lib/src/index.d.ts +0 -12
- package/lib/src/locales/en-US/index.d.ts +0 -175
- package/lib/src/locales/index.d.ts +0 -2
- package/lib/src/locales/zh-CN/index.d.ts +0 -193
- package/lib/src/main.d.ts +0 -3
- package/lib/src/models/cronjob-model.d.ts +0 -15
- package/lib/src/models/daemonset-model.d.ts +0 -15
- package/lib/src/models/deployment-model.d.ts +0 -13
- package/lib/src/models/event-model.d.ts +0 -7
- package/lib/src/models/index.d.ts +0 -19
- package/lib/src/models/ingress-model.d.ts +0 -20
- package/lib/src/models/job-model.d.ts +0 -20
- package/lib/src/models/network-policy-model.d.ts +0 -9
- package/lib/src/models/node-model.d.ts +0 -17
- package/lib/src/models/persistent-volume-claim.d.ts +0 -13
- package/lib/src/models/persistent-volume.d.ts +0 -13
- package/lib/src/models/pod-metrics-model.d.ts +0 -8
- package/lib/src/models/pod-model.d.ts +0 -20
- package/lib/src/models/resource-model.d.ts +0 -21
- package/lib/src/models/service-model.d.ts +0 -24
- package/lib/src/models/statefulset-model.d.ts +0 -13
- package/lib/src/models/storage-class.d.ts +0 -16
- package/lib/src/models/types/index.d.ts +0 -1
- package/lib/src/models/types/metric.d.ts +0 -25
- package/lib/src/models/workload-base-model.d.ts +0 -12
- package/lib/src/models/workload-model.d.ts +0 -18
- package/lib/src/pages/configmaps/index.d.ts +0 -4
- package/lib/src/pages/cronjobs/create/index.d.ts +0 -3
- package/lib/src/pages/cronjobs/index.d.ts +0 -3
- package/lib/src/pages/cronjobs/list/index.d.ts +0 -3
- package/lib/src/pages/cronjobs/show/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/create/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/list/index.d.ts +0 -3
- package/lib/src/pages/daemonsets/show/index.d.ts +0 -3
- package/lib/src/pages/deployments/index.d.ts +0 -2
- package/lib/src/pages/deployments/list/index.d.ts +0 -3
- package/lib/src/pages/deployments/show/index.d.ts +0 -3
- package/lib/src/pages/ingresses/index.d.ts +0 -4
- package/lib/src/pages/jobs/index.d.ts +0 -4
- package/lib/src/pages/networkPolicies/index.d.ts +0 -4
- package/lib/src/pages/nodes/index.d.ts +0 -2
- package/lib/src/pages/nodes/list/index.d.ts +0 -3
- package/lib/src/pages/nodes/show/index.d.ts +0 -3
- package/lib/src/pages/persistentvolumeclaims/index.d.ts +0 -4
- package/lib/src/pages/persistentvolumes/index.d.ts +0 -4
- package/lib/src/pages/pods/create/index.d.ts +0 -3
- package/lib/src/pages/pods/index.d.ts +0 -3
- package/lib/src/pages/pods/list/index.d.ts +0 -3
- package/lib/src/pages/pods/show/index.d.ts +0 -3
- package/lib/src/pages/secrets/index.d.ts +0 -4
- package/lib/src/pages/services/index.d.ts +0 -4
- package/lib/src/pages/statefulsets/index.d.ts +0 -4
- package/lib/src/pages/storageclasses/form/index.d.ts +0 -9
- package/lib/src/pages/storageclasses/index.d.ts +0 -48
- package/lib/src/plugins/index.d.ts +0 -4
- package/lib/src/plugins/model-plugin.d.ts +0 -13
- package/lib/src/plugins/relation-plugin.d.ts +0 -26
- package/lib/src/plugins/type.d.ts +0 -8
- package/lib/src/providers/index.d.ts +0 -1
- package/lib/src/providers/router-provider/index.d.ts +0 -21
- package/lib/src/styles/button.d.ts +0 -1
- package/lib/src/styles/modal.d.ts +0 -1
- package/lib/src/types/index.d.ts +0 -1
- package/lib/src/types/resource.d.ts +0 -62
- package/lib/src/utils/addId.d.ts +0 -3
- package/lib/src/utils/download.d.ts +0 -1
- package/lib/src/utils/error.d.ts +0 -20
- package/lib/src/utils/form.d.ts +0 -3
- package/lib/src/utils/index.d.ts +0 -1
- package/lib/src/utils/k8s.d.ts +0 -3
- package/lib/src/utils/labels.d.ts +0 -9
- package/lib/src/utils/match-selector.d.ts +0 -3
- package/lib/src/utils/openapi.d.ts +0 -40
- package/lib/src/utils/schema.d.ts +0 -18
- package/lib/src/utils/selector.d.ts +0 -3
- package/lib/src/utils/shell.d.ts +0 -16
- package/lib/src/utils/storage.d.ts +0 -13
- package/lib/src/utils/string.d.ts +0 -1
- package/lib/src/utils/time.d.ts +0 -13
- package/lib/src/utils/unit.d.ts +0 -12
- package/lib/src/utils/yaml.d.ts +0 -2
- package/lib/vite.config.d.ts +0 -2
package/dist/style.css
CHANGED
|
@@ -321,17 +321,21 @@
|
|
|
321
321
|
.egn3dbn.list .title {
|
|
322
322
|
color: rgba(44, 56, 82, 0.6);
|
|
323
323
|
}
|
|
324
|
+
.egn3dbn.card {
|
|
325
|
+
padding: 15px 0;
|
|
326
|
+
}
|
|
324
327
|
.egn3dbn.card .title {
|
|
325
|
-
display: flex;
|
|
326
|
-
align-items: center;
|
|
327
|
-
height: 96px;
|
|
328
328
|
color: rgba(0, 21, 64, 0.3);
|
|
329
329
|
}
|
|
330
|
+
.egn3dbn.card .error-content {
|
|
331
|
+
height: 96px;
|
|
332
|
+
}
|
|
330
333
|
|
|
331
334
|
.e136jgy8 {
|
|
332
335
|
display: flex;
|
|
333
336
|
flex-direction: column;
|
|
334
337
|
align-items: center;
|
|
338
|
+
justify-content: center;
|
|
335
339
|
}
|
|
336
340
|
.e136jgy8 .title {
|
|
337
341
|
margin-bottom: 8px;
|
|
@@ -1229,13 +1233,11 @@
|
|
|
1229
1233
|
overflow: auto;
|
|
1230
1234
|
width: calc(100% - 48px);
|
|
1231
1235
|
max-width: 1592px;
|
|
1236
|
+
margin-bottom: 24px;
|
|
1232
1237
|
}
|
|
1233
1238
|
.ge26ou0:first-of-type {
|
|
1234
1239
|
margin-top: 16px;
|
|
1235
1240
|
}
|
|
1236
|
-
.ge26ou0:not(:last-of-type) {
|
|
1237
|
-
margin-bottom: 24px;
|
|
1238
|
-
}
|
|
1239
1241
|
.ge26ou0 .pagination-wrapper {
|
|
1240
1242
|
padding-top: 12px;
|
|
1241
1243
|
padding-bottom: 0;
|
|
@@ -4198,6 +4200,141 @@
|
|
|
4198
4200
|
/* box shadow */
|
|
4199
4201
|
/* fisheye */
|
|
4200
4202
|
/* z-index */
|
|
4203
|
+
.p5jt6nm .ant-popover-inner {
|
|
4204
|
+
border-radius: 8px;
|
|
4205
|
+
}
|
|
4206
|
+
.p5jt6nm .ant-popover-innerntent {
|
|
4207
|
+
padding: 12px;
|
|
4208
|
+
}
|
|
4209
|
+
.p5jt6nm .ant-popover-content > .ant-popover-arrow {
|
|
4210
|
+
display: none;
|
|
4211
|
+
}
|
|
4212
|
+
.p5jt6nm td.ant-table-cell {
|
|
4213
|
+
vertical-align: middle;
|
|
4214
|
+
}
|
|
4215
|
+
.p5jt6nm .rule-list {
|
|
4216
|
+
list-style: disc;
|
|
4217
|
+
list-style-position: inside;
|
|
4218
|
+
}
|
|
4219
|
+
.p5jt6nm .ant-table {
|
|
4220
|
+
font-size: 12px;
|
|
4221
|
+
line-height: 18px;
|
|
4222
|
+
}
|
|
4223
|
+
.p5jt6nm .ant-table .ant-table-container {
|
|
4224
|
+
border: none !important;
|
|
4225
|
+
}
|
|
4226
|
+
.p5jt6nm .ant-table .ant-table-thead {
|
|
4227
|
+
font-weight: 700;
|
|
4228
|
+
}
|
|
4229
|
+
.p5jt6nm .ant-table .ant-table-thead > tr > th {
|
|
4230
|
+
background: #fff;
|
|
4231
|
+
}
|
|
4232
|
+
.p5jt6nm .ant-table thead > tr > th:last-child,
|
|
4233
|
+
.p5jt6nm .ant-table tbody > tr > td:last-child {
|
|
4234
|
+
border-right: none !important;
|
|
4235
|
+
}
|
|
4236
|
+
.p5jt6nm .ant-table tbody > tr:last-child > td {
|
|
4237
|
+
border-bottom: none;
|
|
4238
|
+
}/* // basic */
|
|
4239
|
+
/* FishEye Color Variables and Functions */
|
|
4240
|
+
/*
|
|
4241
|
+
--------------------------- Primary Color ---------------------------
|
|
4242
|
+
*/
|
|
4243
|
+
/*
|
|
4244
|
+
---------------------------When necessary to add at any time---------------------------
|
|
4245
|
+
*/
|
|
4246
|
+
/* computed */
|
|
4247
|
+
/* blue */
|
|
4248
|
+
/* green */
|
|
4249
|
+
/* yellow */
|
|
4250
|
+
/* red */
|
|
4251
|
+
/* purple */
|
|
4252
|
+
/* palette global token*/
|
|
4253
|
+
/* color opaque */
|
|
4254
|
+
/* color transparent */
|
|
4255
|
+
/* blue transparent */
|
|
4256
|
+
/* green transparent */
|
|
4257
|
+
/* yellow transparent */
|
|
4258
|
+
/* red transparent */
|
|
4259
|
+
/* gray transparent */
|
|
4260
|
+
/* white transparent */
|
|
4261
|
+
/* gradient opaque */
|
|
4262
|
+
/* blue radial gradient */
|
|
4263
|
+
/* blue linear gradient */
|
|
4264
|
+
/* green radial gradient */
|
|
4265
|
+
/* yellow radial gradient */
|
|
4266
|
+
/* red radial gradient */
|
|
4267
|
+
/* gray radial gradient */
|
|
4268
|
+
/* white to gray radial gradient */
|
|
4269
|
+
/* white to gray linear gradient */
|
|
4270
|
+
/* gradient transparent */
|
|
4271
|
+
/* secondary palette */
|
|
4272
|
+
/* purple radial gradient */
|
|
4273
|
+
/* refine alias color */
|
|
4274
|
+
/* text */
|
|
4275
|
+
/* link */
|
|
4276
|
+
/* fill */
|
|
4277
|
+
/* fill element */
|
|
4278
|
+
/* fill interaction */
|
|
4279
|
+
/* stroke */
|
|
4280
|
+
/* background */
|
|
4281
|
+
/* dim */
|
|
4282
|
+
/* box shadow */
|
|
4283
|
+
/* fisheye */
|
|
4284
|
+
/* z-index */
|
|
4285
|
+
.clsjtk2 {
|
|
4286
|
+
min-height: 24px !important;
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
.cq3mbby {
|
|
4290
|
+
width: 100%;
|
|
4291
|
+
}/* // basic */
|
|
4292
|
+
/* FishEye Color Variables and Functions */
|
|
4293
|
+
/*
|
|
4294
|
+
--------------------------- Primary Color ---------------------------
|
|
4295
|
+
*/
|
|
4296
|
+
/*
|
|
4297
|
+
---------------------------When necessary to add at any time---------------------------
|
|
4298
|
+
*/
|
|
4299
|
+
/* computed */
|
|
4300
|
+
/* blue */
|
|
4301
|
+
/* green */
|
|
4302
|
+
/* yellow */
|
|
4303
|
+
/* red */
|
|
4304
|
+
/* purple */
|
|
4305
|
+
/* palette global token*/
|
|
4306
|
+
/* color opaque */
|
|
4307
|
+
/* color transparent */
|
|
4308
|
+
/* blue transparent */
|
|
4309
|
+
/* green transparent */
|
|
4310
|
+
/* yellow transparent */
|
|
4311
|
+
/* red transparent */
|
|
4312
|
+
/* gray transparent */
|
|
4313
|
+
/* white transparent */
|
|
4314
|
+
/* gradient opaque */
|
|
4315
|
+
/* blue radial gradient */
|
|
4316
|
+
/* blue linear gradient */
|
|
4317
|
+
/* green radial gradient */
|
|
4318
|
+
/* yellow radial gradient */
|
|
4319
|
+
/* red radial gradient */
|
|
4320
|
+
/* gray radial gradient */
|
|
4321
|
+
/* white to gray radial gradient */
|
|
4322
|
+
/* white to gray linear gradient */
|
|
4323
|
+
/* gradient transparent */
|
|
4324
|
+
/* secondary palette */
|
|
4325
|
+
/* purple radial gradient */
|
|
4326
|
+
/* refine alias color */
|
|
4327
|
+
/* text */
|
|
4328
|
+
/* link */
|
|
4329
|
+
/* fill */
|
|
4330
|
+
/* fill element */
|
|
4331
|
+
/* fill interaction */
|
|
4332
|
+
/* stroke */
|
|
4333
|
+
/* background */
|
|
4334
|
+
/* dim */
|
|
4335
|
+
/* box shadow */
|
|
4336
|
+
/* fisheye */
|
|
4337
|
+
/* z-index */
|
|
4201
4338
|
.wfg6u6g {
|
|
4202
4339
|
display: flex;
|
|
4203
4340
|
align-items: center;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TableFormColumn } from '@cloudtower/eagle';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { EditFieldFormHandler } from '../EditField';
|
|
4
|
+
export type KeyValuePair = {
|
|
5
|
+
key: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
};
|
|
8
|
+
interface KeyValueTableFormFormProps<T extends KeyValuePair> {
|
|
9
|
+
defaultValue: T[];
|
|
10
|
+
onSubmit: (value: T[]) => Promise<unknown> | undefined;
|
|
11
|
+
extraColumns?: TableFormColumn[];
|
|
12
|
+
addButtonText?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const KeyValueTableFormForm: React.ForwardRefExoticComponent<KeyValueTableFormFormProps<KeyValuePair> & React.RefAttributes<EditFieldFormHandler>>;
|
|
15
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { KitSelectProps } from '@cloudtower/eagle';
|
|
3
3
|
type ResourceSelectProps = {
|
|
4
4
|
resource: string;
|
|
5
5
|
resourceBasePath: string;
|
|
6
6
|
kind: string;
|
|
7
7
|
value: string;
|
|
8
8
|
onChange: (...params: unknown[]) => void;
|
|
9
|
-
selectProps?:
|
|
9
|
+
selectProps?: KitSelectProps;
|
|
10
10
|
};
|
|
11
11
|
export declare function ResourceSelect(props: ResourceSelectProps): JSX.Element;
|
|
12
12
|
export {};
|
package/lib/i18n.d.ts
CHANGED
|
@@ -283,6 +283,7 @@ export declare const resources: {
|
|
|
283
283
|
protocol: string;
|
|
284
284
|
key: string;
|
|
285
285
|
value: string;
|
|
286
|
+
value_optional: string;
|
|
286
287
|
effect: string;
|
|
287
288
|
show_data_value: string;
|
|
288
289
|
hide_data_value: string;
|
|
@@ -385,6 +386,25 @@ export declare const resources: {
|
|
|
385
386
|
pvc_storage_required: string;
|
|
386
387
|
pvc_storage_min: string;
|
|
387
388
|
pvc_storage_reduce_limit: string;
|
|
389
|
+
key_empty_text: string;
|
|
390
|
+
format_error: string;
|
|
391
|
+
taint_effect_empty_text: string;
|
|
392
|
+
add_label: string;
|
|
393
|
+
add_annotation: string;
|
|
394
|
+
add_taint: string;
|
|
395
|
+
look_format_requirement: string;
|
|
396
|
+
yes: string;
|
|
397
|
+
no: string;
|
|
398
|
+
contains: string;
|
|
399
|
+
optional: string;
|
|
400
|
+
format_requirements: string;
|
|
401
|
+
suffix: string;
|
|
402
|
+
suffix_format_rule_1: string;
|
|
403
|
+
suffix_format_rule_2: string;
|
|
404
|
+
suffix_format_rule_3: string;
|
|
405
|
+
name_format_rule_1: string;
|
|
406
|
+
name_format_rule_2: string;
|
|
407
|
+
name_format_rule_3: string;
|
|
388
408
|
};
|
|
389
409
|
};
|
|
390
410
|
};
|
|
@@ -105,6 +105,7 @@ declare const _default: {
|
|
|
105
105
|
protocol: string;
|
|
106
106
|
key: string;
|
|
107
107
|
value: string;
|
|
108
|
+
value_optional: string;
|
|
108
109
|
effect: string;
|
|
109
110
|
show_data_value: string;
|
|
110
111
|
hide_data_value: string;
|
|
@@ -207,6 +208,25 @@ declare const _default: {
|
|
|
207
208
|
pvc_storage_required: string;
|
|
208
209
|
pvc_storage_min: string;
|
|
209
210
|
pvc_storage_reduce_limit: string;
|
|
211
|
+
key_empty_text: string;
|
|
212
|
+
format_error: string;
|
|
213
|
+
taint_effect_empty_text: string;
|
|
214
|
+
add_label: string;
|
|
215
|
+
add_annotation: string;
|
|
216
|
+
add_taint: string;
|
|
217
|
+
look_format_requirement: string;
|
|
218
|
+
yes: string;
|
|
219
|
+
no: string;
|
|
220
|
+
contains: string;
|
|
221
|
+
optional: string;
|
|
222
|
+
format_requirements: string;
|
|
223
|
+
suffix: string;
|
|
224
|
+
suffix_format_rule_1: string;
|
|
225
|
+
suffix_format_rule_2: string;
|
|
226
|
+
suffix_format_rule_3: string;
|
|
227
|
+
name_format_rule_1: string;
|
|
228
|
+
name_format_rule_2: string;
|
|
229
|
+
name_format_rule_3: string;
|
|
210
230
|
};
|
|
211
231
|
};
|
|
212
232
|
export default _default;
|
package/lib/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.1.11
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"module": "./dist/refine.js",
|
|
11
11
|
"types": "./lib/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudtower/eagle":
|
|
14
|
-
"@cloudtower/icons-react": "^0.31.
|
|
13
|
+
"@cloudtower/eagle": "^0.31.18",
|
|
14
|
+
"@cloudtower/icons-react": "^0.31.18",
|
|
15
15
|
"@patternfly/react-core": "^5.1.1",
|
|
16
16
|
"@patternfly/react-log-viewer": "^5.0.0",
|
|
17
17
|
"@refinedev/core": "^4.47.2",
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"@babel/preset-env": "^7.1.6",
|
|
50
50
|
"@babel/preset-typescript": "^7.10.4",
|
|
51
51
|
"@kubernetes/client-node": "^0.20.0",
|
|
52
|
-
"@linaria/core": "^4.5.4",
|
|
53
|
-
"@linaria/react": "^4.5.4",
|
|
54
|
-
"@linaria/vite": "^4.5.4",
|
|
55
52
|
"@linaria/babel-preset": "^4.5.4",
|
|
53
|
+
"@linaria/core": "^4.5.4",
|
|
56
54
|
"@linaria/logger": "^4.5.0",
|
|
55
|
+
"@linaria/react": "^4.5.4",
|
|
57
56
|
"@linaria/utils": "^4.5.3",
|
|
58
|
-
"@
|
|
57
|
+
"@linaria/vite": "^4.5.4",
|
|
59
58
|
"@playwright/test": "^1.39.0",
|
|
60
59
|
"@refinedev/cli": "^2.9.0",
|
|
60
|
+
"@rollup/pluginutils": "^4.2.1",
|
|
61
61
|
"@types/body-parser": "^1.19.5",
|
|
62
62
|
"@types/jest": "^29",
|
|
63
63
|
"@types/js-yaml": "^4.0.6",
|
|
@@ -83,8 +83,8 @@
|
|
|
83
83
|
"vite-plugin-commonjs": "^0.10.0"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
|
-
"@cloudtower/eagle": "^0.31.
|
|
87
|
-
"@cloudtower/icons-react": "^0.31.
|
|
86
|
+
"@cloudtower/eagle": "^0.31.18",
|
|
87
|
+
"@cloudtower/icons-react": "^0.31.18",
|
|
88
88
|
"@refinedev/core": "^4.47.2",
|
|
89
89
|
"antd": "4.5.0",
|
|
90
90
|
"i18next": "^23.2.3",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CronJobModel } from '../../models';
|
|
3
|
-
import { DropdownSize } from '../K8sDropdown';
|
|
4
|
-
type Props<Model extends CronJobModel> = {
|
|
5
|
-
record: Model;
|
|
6
|
-
size?: DropdownSize;
|
|
7
|
-
};
|
|
8
|
-
export declare function CronJobDropdown<Model extends CronJobModel>(props: Props<Model>): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ResourceModel } from '../../models';
|
|
3
|
-
export type DropdownSize = 'normal' | 'large';
|
|
4
|
-
interface K8sDropdownProps {
|
|
5
|
-
record: ResourceModel;
|
|
6
|
-
size?: DropdownSize;
|
|
7
|
-
}
|
|
8
|
-
export declare function K8sDropdown(props: React.PropsWithChildren<K8sDropdownProps>): JSX.Element;
|
|
9
|
-
export default K8sDropdown;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { PodModel } from '../../models';
|
|
3
|
-
import { DropdownSize } from '../K8sDropdown';
|
|
4
|
-
type Props<Model extends PodModel> = {
|
|
5
|
-
record: Model;
|
|
6
|
-
size?: DropdownSize;
|
|
7
|
-
};
|
|
8
|
-
export declare function PodDropdown<Model extends PodModel>(props: React.PropsWithChildren<Props<Model>>): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WorkloadModel } from '../../models';
|
|
3
|
-
import { DropdownSize } from '../K8sDropdown';
|
|
4
|
-
type Props<Model extends WorkloadModel> = {
|
|
5
|
-
record: Model;
|
|
6
|
-
size?: DropdownSize;
|
|
7
|
-
};
|
|
8
|
-
export declare function ReplicasDropdown<Model extends WorkloadModel>(props: React.PropsWithChildren<Props<Model>>): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const ColumnTitle: React.FC<{
|
|
3
|
-
sortOrder?: 'descend' | 'ascend' | null;
|
|
4
|
-
title: React.ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const AuxiliaryLine: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { WorkloadModel } from '../../models';
|
|
3
|
-
import { DropdownSize } from '../K8sDropdown';
|
|
4
|
-
type Props<Model extends WorkloadModel> = {
|
|
5
|
-
record: Model;
|
|
6
|
-
size?: DropdownSize;
|
|
7
|
-
};
|
|
8
|
-
export declare function WorkloadDropdown<Model extends WorkloadModel>(props: React.PropsWithChildren<Props<Model>>): JSX.Element;
|
|
9
|
-
export {};
|
package/lib/src/App.d.ts
DELETED
package/lib/src/Dovetail.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AccessControlProvider } from '@refinedev/core';
|
|
2
|
-
import { History } from 'history';
|
|
3
|
-
import { GlobalStore } from 'k8s-api-provider';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { ResourceConfig } from './types';
|
|
6
|
-
import './styles.css';
|
|
7
|
-
type Props = {
|
|
8
|
-
resourcesConfig: ResourceConfig[];
|
|
9
|
-
useHashUrl?: boolean;
|
|
10
|
-
urlPrefix?: string;
|
|
11
|
-
Layout?: React.FC<unknown>;
|
|
12
|
-
history: History;
|
|
13
|
-
globalStore: GlobalStore;
|
|
14
|
-
accessControlProvider?: AccessControlProvider;
|
|
15
|
-
routerProvider?: any;
|
|
16
|
-
};
|
|
17
|
-
export declare const Dovetail: React.FC<Props>;
|
|
18
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ConditionsTable';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CronJobModel } from '../../models';
|
|
3
|
-
import { DropdownSize } from '../K8sDropdown';
|
|
4
|
-
type Props<Model extends CronJobModel> = {
|
|
5
|
-
record: Model;
|
|
6
|
-
size?: DropdownSize;
|
|
7
|
-
};
|
|
8
|
-
export declare function CronJobDropdown<Model extends CronJobModel>(props: Props<Model>): JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ResourceModel } from '../../models';
|
|
3
|
-
import { ShowConfig } from '../ShowContent';
|
|
4
|
-
type Props<Model extends ResourceModel> = {
|
|
5
|
-
showConfig: ShowConfig<Model>;
|
|
6
|
-
formatter?: (r: Model) => Model;
|
|
7
|
-
};
|
|
8
|
-
export declare const DrawerShow: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(props: Props<Model>) => JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './DrawerShow';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface EditFieldModalProps {
|
|
3
|
-
title?: string;
|
|
4
|
-
submitting?: boolean;
|
|
5
|
-
errorMsgs?: string[];
|
|
6
|
-
formRef: React.MutableRefObject<{
|
|
7
|
-
submit: () => (Promise<unknown> | undefined);
|
|
8
|
-
} | null>;
|
|
9
|
-
renderContent: () => React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
export declare function EditFieldModal(props: EditFieldModalProps): JSX.Element;
|
|
12
|
-
export interface EditField {
|
|
13
|
-
modalProps: EditFieldModalProps;
|
|
14
|
-
}
|
|
15
|
-
export declare function EditField(props: EditField): JSX.Element;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export declare const ErrorWrapper: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
3
|
-
export declare const ErrorContent: import("@linaria/react").StyledComponent<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Record<never, unknown>>;
|
|
4
|
-
export declare enum ErrorContentType {
|
|
5
|
-
List = "list",
|
|
6
|
-
Card = "card",
|
|
7
|
-
Widget = "widget"
|
|
8
|
-
}
|
|
9
|
-
export type WidgetErrorContentProps = {
|
|
10
|
-
className?: string;
|
|
11
|
-
style?: React.CSSProperties;
|
|
12
|
-
errorText?: string;
|
|
13
|
-
type?: ErrorContentType;
|
|
14
|
-
refetch?: () => void;
|
|
15
|
-
};
|
|
16
|
-
declare const WidgetErrorContent: React.FunctionComponent<WidgetErrorContentProps>;
|
|
17
|
-
export default WidgetErrorContent;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './EventsTable';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { YamlFormProps } from './YamlForm';
|
|
3
|
-
export type FormModalProps = {
|
|
4
|
-
resource?: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
formProps?: YamlFormProps;
|
|
7
|
-
renderForm?: (props: YamlFormProps) => React.ReactNode;
|
|
8
|
-
};
|
|
9
|
-
export declare function FormModal(props: FormModalProps): JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { UseFormReturnType } from '@refinedev/react-hook-form';
|
|
3
|
-
import { ResourceModel } from '../../models';
|
|
4
|
-
import { ResourceConfig } from '../../types';
|
|
5
|
-
type Props<Model extends ResourceModel> = {
|
|
6
|
-
config?: ResourceConfig<Model>;
|
|
7
|
-
formResult: UseFormReturnType;
|
|
8
|
-
errorMsg?: string;
|
|
9
|
-
resourceId?: string;
|
|
10
|
-
};
|
|
11
|
-
export declare const RefineFormContent: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(props: Props<Model>) => JSX.Element;
|
|
12
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { FormAction } from '@refinedev/core';
|
|
3
|
-
import { Unstructured } from 'k8s-api-provider';
|
|
4
|
-
import useYamlForm from './useYamlForm';
|
|
5
|
-
export declare enum SchemaStrategy {
|
|
6
|
-
Required = "Required",
|
|
7
|
-
Optional = "Optional",
|
|
8
|
-
None = "None"
|
|
9
|
-
}
|
|
10
|
-
export interface YamlFormProps {
|
|
11
|
-
id?: string;
|
|
12
|
-
action?: FormAction;
|
|
13
|
-
initialValues?: Record<string, unknown>;
|
|
14
|
-
schemaStrategy?: SchemaStrategy;
|
|
15
|
-
isShowLayout?: boolean;
|
|
16
|
-
useFormProps?: Parameters<typeof useYamlForm>[0];
|
|
17
|
-
transformInitValues?: (values: Record<string, unknown>) => Record<string, unknown>;
|
|
18
|
-
transformApplyValues?: (values: Unstructured) => Unstructured;
|
|
19
|
-
onSaveButtonPropsChange?: (saveButtonProps: {
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
onClick: () => void;
|
|
22
|
-
loading?: boolean | {
|
|
23
|
-
delay?: number | undefined;
|
|
24
|
-
};
|
|
25
|
-
}) => void;
|
|
26
|
-
onErrorsChange?: (errors: string[]) => void;
|
|
27
|
-
onFinish?: () => void;
|
|
28
|
-
}
|
|
29
|
-
export declare function YamlForm(props: YamlFormProps): JSX.Element;
|