@dovetail-v2/refine 0.1.11-alpha.2 → 0.1.12
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-42ab72d2.js → MonacoYamlDiffEditor-ae1a891e.js} +1 -1
- package/dist/{index-8ae38abf.js → index-90c4694a.js} +709 -322
- package/dist/refine.js +175 -172
- package/dist/refine.umd.cjs +535 -148
- package/dist/style.css +185 -0
- package/lib/components/DropdownMenuItems/index.d.ts +1 -0
- 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/Form/useYamlForm.d.ts +1 -1
- package/lib/i18n.d.ts +26 -0
- package/lib/locales/zh-CN/index.d.ts +26 -0
- package/lib/types/resource.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/schema-store.d.ts +13 -0
- package/lib/utils/validation.d.ts +8 -0
- package/package.json +7 -7
- 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
|
@@ -4200,6 +4200,191 @@
|
|
|
4200
4200
|
/* box shadow */
|
|
4201
4201
|
/* fisheye */
|
|
4202
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 */
|
|
4338
|
+
.u19jcs7t {
|
|
4339
|
+
list-style: disc;
|
|
4340
|
+
padding-left: 2em;
|
|
4341
|
+
}/* // basic */
|
|
4342
|
+
/* FishEye Color Variables and Functions */
|
|
4343
|
+
/*
|
|
4344
|
+
--------------------------- Primary Color ---------------------------
|
|
4345
|
+
*/
|
|
4346
|
+
/*
|
|
4347
|
+
---------------------------When necessary to add at any time---------------------------
|
|
4348
|
+
*/
|
|
4349
|
+
/* computed */
|
|
4350
|
+
/* blue */
|
|
4351
|
+
/* green */
|
|
4352
|
+
/* yellow */
|
|
4353
|
+
/* red */
|
|
4354
|
+
/* purple */
|
|
4355
|
+
/* palette global token*/
|
|
4356
|
+
/* color opaque */
|
|
4357
|
+
/* color transparent */
|
|
4358
|
+
/* blue transparent */
|
|
4359
|
+
/* green transparent */
|
|
4360
|
+
/* yellow transparent */
|
|
4361
|
+
/* red transparent */
|
|
4362
|
+
/* gray transparent */
|
|
4363
|
+
/* white transparent */
|
|
4364
|
+
/* gradient opaque */
|
|
4365
|
+
/* blue radial gradient */
|
|
4366
|
+
/* blue linear gradient */
|
|
4367
|
+
/* green radial gradient */
|
|
4368
|
+
/* yellow radial gradient */
|
|
4369
|
+
/* red radial gradient */
|
|
4370
|
+
/* gray radial gradient */
|
|
4371
|
+
/* white to gray radial gradient */
|
|
4372
|
+
/* white to gray linear gradient */
|
|
4373
|
+
/* gradient transparent */
|
|
4374
|
+
/* secondary palette */
|
|
4375
|
+
/* purple radial gradient */
|
|
4376
|
+
/* refine alias color */
|
|
4377
|
+
/* text */
|
|
4378
|
+
/* link */
|
|
4379
|
+
/* fill */
|
|
4380
|
+
/* fill element */
|
|
4381
|
+
/* fill interaction */
|
|
4382
|
+
/* stroke */
|
|
4383
|
+
/* background */
|
|
4384
|
+
/* dim */
|
|
4385
|
+
/* box shadow */
|
|
4386
|
+
/* fisheye */
|
|
4387
|
+
/* z-index */
|
|
4203
4388
|
.wfg6u6g {
|
|
4204
4389
|
display: flex;
|
|
4205
4390
|
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 {};
|
|
@@ -4,8 +4,8 @@ import { FormInstance, FormProps } from 'antd/lib/form';
|
|
|
4
4
|
import { JSONSchema7 } from 'json-schema';
|
|
5
5
|
import { Unstructured } from 'k8s-api-provider';
|
|
6
6
|
import React from 'react';
|
|
7
|
-
import { type YamlEditorHandle, type YamlEditorProps } from 'src/components/YamlEditor';
|
|
8
7
|
import { RefineFormValidator } from 'src/components/Form/type';
|
|
8
|
+
import { type YamlEditorHandle, type YamlEditorProps } from 'src/components/YamlEditor';
|
|
9
9
|
type EditorProps = YamlEditorProps & {
|
|
10
10
|
ref: React.RefObject<YamlEditorHandle>;
|
|
11
11
|
};
|
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,31 @@ 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;
|
|
408
|
+
taint_effect_NoSchedule_tooltip_1: string;
|
|
409
|
+
taint_effect_NoSchedule_tooltip_2: string;
|
|
410
|
+
taint_effect_PreferNoSchedule_tooltip_1: string;
|
|
411
|
+
taint_effect_PreferNoSchedule_tooltip_2: string;
|
|
412
|
+
taint_effect_PreferNoSchedule_tooltip_3: string;
|
|
413
|
+
taint_effect_NoExecute_tooltip_3: string;
|
|
388
414
|
};
|
|
389
415
|
};
|
|
390
416
|
};
|
|
@@ -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,31 @@ 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;
|
|
230
|
+
taint_effect_NoSchedule_tooltip_1: string;
|
|
231
|
+
taint_effect_NoSchedule_tooltip_2: string;
|
|
232
|
+
taint_effect_PreferNoSchedule_tooltip_1: string;
|
|
233
|
+
taint_effect_PreferNoSchedule_tooltip_2: string;
|
|
234
|
+
taint_effect_PreferNoSchedule_tooltip_3: string;
|
|
235
|
+
taint_effect_NoExecute_tooltip_3: string;
|
|
210
236
|
};
|
|
211
237
|
};
|
|
212
238
|
export default _default;
|
package/lib/types/resource.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { UseFormProps } from '@refinedev/react-hook-form';
|
|
3
3
|
import { YamlFormProps } from '../components';
|
|
4
4
|
import { RefineFormField } from '../components/Form';
|
|
5
|
-
import { ShowConfig } from '../components/ShowContent';
|
|
6
5
|
import { Column, InternalTableProps } from '../components/InternalBaseTable';
|
|
6
|
+
import { ShowConfig } from '../components/ShowContent';
|
|
7
7
|
import { ResourceModel } from '../models';
|
|
8
8
|
export declare enum RESOURCE_GROUP {
|
|
9
9
|
WORKLOAD = "WORKLOAD",
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare class SchemaStore {
|
|
2
|
+
private openapiMap;
|
|
3
|
+
fetchSchemas(resourceBasePath: string, pathPrefix: string): Promise<(import("json-schema").JSONSchema7 & {
|
|
4
|
+
'x-kubernetes-group-version-kind': {
|
|
5
|
+
group: string;
|
|
6
|
+
kind: string;
|
|
7
|
+
version: string;
|
|
8
|
+
}[];
|
|
9
|
+
})[] | null>;
|
|
10
|
+
fetchSchema(resourceBasePath: string, pathPrefix: string, kind: string): Promise<import("json-schema").JSONSchema7 | undefined>;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: SchemaStore;
|
|
13
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
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.19",
|
|
14
|
+
"@cloudtower/icons-react": "^0.31.19",
|
|
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",
|
|
@@ -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 {};
|