@dovetail-v2/refine 0.0.32 → 0.0.34
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-6563a22b.js → MonacoYamlDiffEditor-799d6dfe.js} +5 -3
- package/dist/{index-3d05d4c7.js → index-3113dd7a.js} +11985 -7646
- package/dist/refine.js +171 -133
- package/dist/refine.umd.cjs +13116 -8930
- package/dist/style.css +75 -42
- package/lib/src/components/DurationTime/index.d.ts +6 -0
- package/lib/src/components/Form/FormModal.d.ts +9 -0
- package/lib/src/components/Form/RefineFormContent.d.ts +12 -0
- package/lib/src/components/Form/RefineFormPage.d.ts +7 -0
- package/lib/src/components/Form/YamlForm.d.ts +26 -0
- package/lib/src/components/Form/index.d.ts +7 -4
- package/lib/src/components/Form/type.d.ts +17 -0
- package/lib/src/components/Form/useRefineForm.d.ts +10 -0
- package/lib/src/components/Form/useYamlForm.d.ts +51 -0
- package/lib/src/components/FormErrorAlert/index.d.ts +1 -0
- package/lib/src/components/FormWidgets/KeyValueListWidget.d.ts +6 -0
- package/lib/src/components/FormWidgets/MetadataForm.d.ts +2 -0
- package/lib/src/components/FormWidgets/NameInputWidget.d.ts +51 -0
- package/lib/src/components/FormWidgets/NamespaceSelectWidget.d.ts +9 -0
- package/lib/src/components/FormWidgets/index.d.ts +4 -0
- package/lib/src/components/FormWidgets/widget.d.ts +5 -0
- package/lib/src/components/ImageNames/index.d.ts +1 -0
- package/lib/src/components/KeyValue/KeyValue.d.ts +6 -5
- package/lib/src/components/KeyValue/KeyValueAnnotation.d.ts +6 -0
- package/lib/src/components/KeyValue/KeyValueSecret.d.ts +5 -0
- package/lib/src/components/KeyValue/index.d.ts +2 -0
- package/lib/src/components/ListPage/index.d.ts +0 -1
- package/lib/src/components/NamespacesFilter/index.d.ts +6 -2
- package/lib/src/components/NetworkPolicyRulesTable/NetworkPolicyRulesTable.d.ts +2 -1
- package/lib/src/components/PodSelectorTable/index.d.ts +6 -0
- package/lib/src/components/PortsTable/index.d.ts +7 -0
- package/lib/src/components/ReplicasDropdown/index.d.ts +9 -0
- package/lib/src/components/ResourceCRUD/list/index.d.ts +3 -7
- package/lib/src/components/ResourceCRUD/show/index.d.ts +3 -7
- package/lib/src/components/ServiceComponents/index.d.ts +4 -1
- package/lib/src/components/ShowContent/ShowContent.d.ts +5 -0
- package/lib/src/components/ShowContent/fields.d.ts +19 -12
- package/lib/src/components/ShowContent/groups.d.ts +14 -3
- package/lib/src/components/ShowContent/tabs.d.ts +1 -8
- package/lib/src/components/StateTag/StateTag.d.ts +1 -0
- package/lib/src/components/Table/TableToolBar.d.ts +1 -1
- package/lib/src/components/Table/index.d.ts +1 -0
- package/lib/src/components/Time/index.d.ts +1 -1
- package/lib/src/components/ValueDisplay/index.d.ts +9 -0
- package/lib/src/components/WorkloadDropdown/index.d.ts +2 -2
- package/lib/src/components/WorkloadReplicas/index.d.ts +13 -3
- package/lib/src/components/YamlForm/index.d.ts +4 -0
- package/lib/src/components/index.d.ts +2 -3
- package/lib/src/constants/k8s.d.ts +289 -89
- package/lib/src/constants/state.d.ts +2 -1
- package/lib/src/hooks/index.d.ts +1 -1
- package/lib/src/hooks/useDeleteModal/useDeleteModal.d.ts +1 -2
- package/lib/src/hooks/useEagleForm.d.ts +2 -1
- package/lib/src/hooks/useEagleTable/columns.d.ts +8 -2
- package/lib/src/hooks/useEagleTable/useEagleTable.d.ts +4 -0
- package/lib/src/hooks/useOpenForm.d.ts +3 -0
- package/lib/src/i18n.d.ts +168 -15
- package/lib/src/locales/en-US/index.d.ts +104 -1
- package/lib/src/locales/zh-CN/index.d.ts +64 -14
- package/lib/src/models/daemonset-model.d.ts +3 -1
- package/lib/src/models/deployment-model.d.ts +1 -1
- package/lib/src/models/ingress-model.d.ts +5 -3
- package/lib/src/models/job-model.d.ts +2 -0
- package/lib/src/models/statefulset-model.d.ts +1 -1
- package/lib/src/pages/deployments/index.d.ts +0 -1
- package/lib/src/types/resource.d.ts +12 -3
- package/package.json +6 -4
- package/dist/MonacoYamlEditor-a6e20f8c.js +0 -167
package/dist/style.css
CHANGED
|
@@ -1,38 +1,45 @@
|
|
|
1
|
+
.t1vq0ett{margin-bottom:4px;}
|
|
2
|
+
.t139onst{color:rgba(44,56,82,0.60);}
|
|
3
|
+
.m18lzor8.ant-modal .ant-modal-content{border-radius:16px;}.m18lzor8.ant-modal .ant-modal-header{border-radius:16px 16px 0 0;}
|
|
4
|
+
.e5223w8{color:rgba(0,21,64,.3);}
|
|
5
|
+
.cdjsw14{width:100%;}.cdjsw14.overflow{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
|
1
6
|
.b142d7q8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.b142d7q8 .breadcrumb-item:not(:last-of-type):after{content:'>';margin:0 8px;}
|
|
2
|
-
.woio6qj{width:100%;}
|
|
3
|
-
.h1pmxp8z{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:8px;}
|
|
4
|
-
.h1btthoz{margin-right:8px;line-height:18px;}
|
|
5
|
-
.ewkumn1.ant-btn.ant-btn-link{height:18px;line-height:18px;font-size:12px;}
|
|
6
|
-
.c1in0x5n{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:8px 10px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:8px;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:4px;background:rgba(237,241,250,0.60);}.c1in0x5n:not(:last-of-type){margin-bottom:8px;}
|
|
7
|
-
.klhq5sj{color:rgba(44,56,82,0.60);}
|
|
8
|
-
.t13a6vox{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;}
|
|
9
|
-
.t12ikbmp{overflow:hidden;text-overflow:ellipsis;}
|
|
10
7
|
.eckm4od{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
|
|
11
8
|
.e1hl982n{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e1hl982n .title{margin-bottom:8px;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}
|
|
9
|
+
.b1vtjd4k.ant-btn.ant-btn-link{display:block;}
|
|
10
|
+
.t13a6vox{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;}
|
|
11
|
+
.t12ikbmp{overflow:hidden;text-overflow:ellipsis;}
|
|
12
|
+
.s8qkbck.ant-tag{padding:3px 16px;height:24px;}.s8qkbck.no-background{background-color:transparent !important;padding:0;}
|
|
13
|
+
.t19ustft{padding-bottom:3px;border-bottom:1px dashed rgba(107,128,167,0.6);}
|
|
12
14
|
.ax1qopv{position:absolute;top:0;left:0;bottom:0;width:1px;background:$blue-60;-webkit-transform:translateX(-9999px);-ms-transform:translateX(-9999px);transform:translateX(-9999px);z-index:999;}.ax1qopv::before{content:'';position:absolute;height:34px;width:3px;top:0;left:-1px;background:$blue-60;}
|
|
13
15
|
.t1upn1sz{width:100%;border-top:1px solid rgba(211,218,235,0.6);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}.t1upn1sz .ant-table-pagination{display:none;}.t1upn1sz .table-container{min-height:0;}
|
|
16
|
+
.t1v3ienx{padding:12px 24px;}
|
|
17
|
+
.tgejfwe{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
|
|
18
|
+
.tq6dc79{color:#00122E;}
|
|
19
|
+
.d1wqyhgc{color:rgba(44,56,82,0.75);}
|
|
20
|
+
.w16agr8o.ant-space{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
|
|
14
21
|
.egn3dbn{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}
|
|
15
22
|
.e136jgy8{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.e136jgy8 .title{margin-bottom:8px;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-image:linear-gradient(211.41deg,#929dad 0%,#d3dbe3 100%);}
|
|
16
|
-
.
|
|
17
|
-
.
|
|
18
|
-
.
|
|
19
|
-
.
|
|
20
|
-
.
|
|
21
|
-
.
|
|
22
|
-
.
|
|
23
|
-
.
|
|
24
|
-
.
|
|
25
|
-
.
|
|
26
|
-
.
|
|
27
|
-
.
|
|
28
|
-
.
|
|
29
|
-
.
|
|
30
|
-
|
|
31
|
-
.
|
|
32
|
-
.
|
|
33
|
-
.
|
|
34
|
-
.
|
|
35
|
-
.
|
|
23
|
+
.i1u1f5zp{white-space:pre-line;}
|
|
24
|
+
.c8jy7dc{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:8px 10px;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;align-items:flex-start;gap:8px;-webkit-align-self:stretch;-ms-flex-item-align:stretch;align-self:stretch;border-radius:4px;background:rgba(237,241,250,0.6);}.c8jy7dc:not(:last-of-type){margin-bottom:8px;}
|
|
25
|
+
.k2sddxl{color:rgba(44,56,82,0.6);width:calc(30% - 4px);margin-right:8px;}
|
|
26
|
+
.v16vicsr{word-break:break-all;width:calc(70% - 4px);}
|
|
27
|
+
.w14056kz{width:100%;}
|
|
28
|
+
.hisq2gt{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.hisq2gt.expanded{margin-bottom:8px;}
|
|
29
|
+
.h11urhaw{margin-right:8px;line-height:18px;}
|
|
30
|
+
.e1i58tpl.ant-btn.ant-btn-link{height:18px;line-height:18px;font-size:12px;}
|
|
31
|
+
.s9agep2{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;background:linear-gradient(180deg,#fff 0%,#edf0f7 100%);}.s9agep2 .ant-row{margin-right:0 !important;}
|
|
32
|
+
.bo89gfi{color:rgba(0,21,64,0.3);line-height:18px;cursor:pointer;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;}.bo89gfi:hover{color:#0080FF;}
|
|
33
|
+
.t1ohe42f{padding:16px 24px 8px 24px;background-color:#fff;}
|
|
34
|
+
.nqm4qz0{margin-right:8px;}
|
|
35
|
+
.ticl0qc{-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;width:100%;}
|
|
36
|
+
.so9uwk1{width:100%;}
|
|
37
|
+
.ge26ou0{padding:12px 16px;border-radius:8px;border:1px solid rgba(211,218,235,0.6);box-shadow: 0px 0px 2.003px 0px rgba(107,125,153,0.15), 0px 0px 16px 0px rgba(107,125,153,0.08);background-color:#fff;margin:16px 0;overflow:auto;margin-bottom:0;width:100%;max-width:1592px;}.ge26ou0:not(:last-of-type){margin-bottom:24px;}
|
|
38
|
+
.g17f8vl9{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;color:#1d326c;margin-bottom:12px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}
|
|
39
|
+
.fykgn2i{background-color:#fff;height:100%;}
|
|
40
|
+
.fngr745{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}
|
|
41
|
+
.t11wg61l{padding:0 24px;padding-bottom:16px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:952px;}
|
|
42
|
+
.t1x3rivf.ant-tabs{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.t1x3rivf.ant-tabs .ant-tabs-nav{margin-bottom:0;}.t1x3rivf.ant-tabs .ant-tabs-nav-list{margin-left:24px;}.t1x3rivf.ant-tabs .ant-tabs-content-holder{overflow:auto;}.t1x3rivf.ant-tabs .ant-tabs-content-holder .ant-tabs-content,.t1x3rivf.ant-tabs .ant-tabs-content-holder .ant-tabs-tabpane-active{height:100%;}
|
|
36
43
|
.c1dicff8{width:100%;vertical-align:top;}
|
|
37
44
|
.esoz3jw .ant-modal-content{border-radius:16px;}.esoz3jw .ant-modal-header{border-radius:16px 16px 0 0;}
|
|
38
45
|
.e1m0bgls.ant-btn.ant-btn-link{height:22px;margin-left:8px;}
|
|
@@ -44,7 +51,6 @@
|
|
|
44
51
|
.r1oqudbh{color:rgba(44,56,82,0.60);}
|
|
45
52
|
.c18i6jtg{margin:auto 0;position:relative;}
|
|
46
53
|
.lpm22il{margin-right:40px;}
|
|
47
|
-
.s8qkbck.ant-tag{padding:3px 16px;height:24px;}.s8qkbck.no-background{background-color:transparent !important;padding:0;}
|
|
48
54
|
.pf-v5-c-log-viewer.pf-m-dark .pf-v5-c-log-viewer__main {
|
|
49
55
|
--pf-v5-global--Color--100: var(--pf-v5-global--Color--light-100);
|
|
50
56
|
--pf-v5-global--Color--200: var(--pf-v5-global--Color--light-200);
|
|
@@ -1480,25 +1486,52 @@
|
|
|
1480
1486
|
width: 1em;
|
|
1481
1487
|
height: 1em;
|
|
1482
1488
|
vertical-align: -0.125em;
|
|
1483
|
-
}.
|
|
1484
|
-
.
|
|
1485
|
-
.
|
|
1486
|
-
.
|
|
1487
|
-
.
|
|
1488
|
-
.
|
|
1489
|
-
.
|
|
1490
|
-
.
|
|
1491
|
-
.
|
|
1492
|
-
.
|
|
1493
|
-
.
|
|
1494
|
-
.
|
|
1495
|
-
.
|
|
1489
|
+
}.wve7dfm{padding:0 24px;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1490
|
+
.t9oeh3c{margin:8px 0;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.t9oeh3c > *{margin-right:8px !important;}.t9oeh3c .ant-select{width:256px !important;}
|
|
1491
|
+
.t1u2zqn6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;gap:12px;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}
|
|
1492
|
+
.c8wrcus{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}
|
|
1493
|
+
.t1joof7s{width:100%;padding:11px;border-bottom:1px solid rgba(211,218,235,0.6);background:rgba(225,230,241,0.6);border-top-left-radius:8px;border-top-right-radius:8px;}.t1joof7s.collapsed{border-bottom:0;}.t1joof7s svg{margin:auto;}.t1joof7s > .dovetail-ant-space-item{line-height:16px;}
|
|
1494
|
+
.tti58uh{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:100%;height:20px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;}.tti58uh .ant-space-item{line-height:1;}
|
|
1495
|
+
.e15yt16p{margin-top:1px;}
|
|
1496
|
+
.w3ccqks{width:100%;border:1px solid rgba(211,218,235,0.6);border-radius:8px;}.w3ccqks[data-is-error='true']{border-color:#f0483e;}.w3ccqks[data-is-error='true'] .t1joof7s{padding-bottom:7px;background:#ffecec;}
|
|
1497
|
+
.t7zbd78{color:#00122e;font-size:13px;font-weight:700;line-height:20px;}
|
|
1498
|
+
.i1e4ouxy{cursor:pointer;margin:auto 0;}.i1e4ouxy.arrow-down svg{-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);}.i1e4ouxy[data-disabled='true']{cursor:not-allowed;opacity:0.5;}
|
|
1499
|
+
.d1g21822{fill:rgba(#2c3852,0.6);cursor:not-allowed;}
|
|
1500
|
+
.pqch97v{font-family:Menlo,Monaco,'Courier New',monospace;font-size:12px;font-style:normal;font-weight:400;padding-left:62px;overflow:auto;}
|
|
1501
|
+
.eh2qjnl{color:#f0483e;font-size:12px;line-height:18px;word-break:break-all;}
|
|
1502
|
+
.e19q2bnp{margin-top:8px;}
|
|
1503
|
+
.y16u5v3w .monaco-editor{border-bottom-left-radius:8px;border-bottom-right-radius:8px;}.y16u5v3w .monaco-editor .margin{border-bottom-left-radius:8px;}.y16u5v3w .monaco-editor .monaco-scrollable-element{border-bottom-right-radius:8px;}
|
|
1504
|
+
.e151npt0{border-radius:8px;border:1px solid rgba(211,218,235,0.60);}.e151npt0 .monaco-editor,.e151npt0 .monaco-scrollable-element,.e151npt0 .overflow-guard > .margin{border-radius:8px;}
|
|
1505
|
+
.w1akirqw{height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1506
|
+
.t30srnq{line-height:32px !important;}
|
|
1507
|
+
.sj0ggy.ant-select .ant-select-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;overflow:hidden;gap:4px;}.sj0ggy.ant-select .ant-select-selector > span:first-of-type{max-width:calc(100% - 76px);}.sj0ggy.ant-select .ant-select-selection-search{display:none;}
|
|
1508
|
+
.s1eo8uqs.s1eo8uqs.ant-input-affix-wrapper{border:unset;border-bottom:1px solid rgba(211,218,235,.6);border-radius:unset;box-shadow:unset;outline:unset;padding:5px 18px;}
|
|
1509
|
+
.s64gojc .ant-select-item-group{border-bottom:1px solid rgba(211,218,235,0.6);min-height:0;padding:0;overflow:hidden;margin:6px 0;}
|
|
1510
|
+
.t16fqgtu{max-width:100%;margin-right:0 !important;}
|
|
1511
|
+
.cgaujbg{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;margin-right:0;}
|
|
1512
|
+
|
|
1513
|
+
.lxzmtrx{margin-right:8px;}
|
|
1514
|
+
.aqrghwd{border-radius:4px;margin:6px;margin-bottom:0;padding:4px 8px 4px 12px;}
|
|
1515
|
+
.opi7z1z.ant-select-item{margin:0 6px;border-radius:4px;padding:4px 8px 4px 12px;}.opi7z1z.ant-select-item:not(:last-of-type){margin-bottom:3px;}.opi7z1z.ant-select-item:last-of-type{margin-bottom:6px;}
|
|
1516
|
+
.laykzsq{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1517
|
+
.l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1518
|
+
.tj6zpn4{-webkit-flex:1;-ms-flex:1;flex:1;min-height:0;}.tj6zpn4.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
|
|
1519
|
+
.n1rqcyjn.ant-select{margin-bottom:12px;}
|
|
1520
|
+
.c154n7ie{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;width:100%;}
|
|
1521
|
+
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1522
|
+
|
|
1523
|
+
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1524
|
+
.f1nltbcu.ant-modal.fullscreen .ant-modal-header{padding:60px 128px 32px 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-body{padding:0 128px;}.f1nltbcu.ant-modal.fullscreen .ant-modal-footer{padding:15px 128px;}
|
|
1525
|
+
.e1qgcca6{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;}
|
|
1526
|
+
.c1pvtlkp{width:100%;}
|
|
1496
1527
|
.wfg6u6g{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.wfg6u6g .usage-text{width:50px;text-align:right;}.wfg6u6g .usage-bar{height:12px;width:100px;position:relative;border-radius:2px;}.wfg6u6g .request-anchor{position:absolute;left:10%;top:-3px;height:18px;width:2px;background:#777;z-index:9;}.wfg6u6g .usage-fill-bar{position:absolute;left:0;top:0;height:100%;background:rgba(0,128,255,0.6);z-index:7;}.wfg6u6g .request-bar{position:absolute;left:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar{position:absolute;right:0;top:0;height:100%;background:#d8deeb;z-index:5;}.wfg6u6g .request-to-limit-bar.no-limit{background:linear-gradient(to right,#d8deeb 50%,#d8deeb 50%);background-size:4px 100%;}.wfg6u6g .request-to-limit-bar.no-limit.exceed-request{background:linear-gradient(to right,#d8deeb 50%,rgba(0,128,255,0.6) 50%);background-size:4px 100%;}
|
|
1497
1528
|
.mdppgn0.ant-menu{background:#edf0f7;padding:8px;}.mdppgn0.ant-menu .ant-menu-item-selected{background:linear-gradient(90deg,#0080ff,#005ed1);border-radius:6px;box-shadow:0 1px 2px rgba(184,192,204,0.6);color:#fff;}.mdppgn0.ant-menu .ant-menu-item-selected a:hover{color:#fff;}.mdppgn0.ant-menu .ant-menu-item:not(.ant-menu-item-selected):hover{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0.6));border-radius:6px;box-shadow:0 0 4px rgba(235,239,245,0.6),0 8px 16px rgba(129,138,153,0.18);}
|
|
1498
1529
|
.h16z07g.ant-layout-header{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:#fff;border-bottom:2px solid #edf0f7;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;height:50px;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 24px 0 14px;position:relative;z-index:10;}
|
|
1499
1530
|
.c1i80kj{height:100%;}
|
|
1500
1531
|
.s18sezq1.ant-layout-sider{background:#edf0f7;}
|
|
1501
1532
|
.cyc9hl2.ant-layout-content{background:#fff;}
|
|
1533
|
+
.dh5j833{border-bottom:1px dashed rgba(107,128,167,0.6);padding-bottom:2px;}
|
|
1534
|
+
.s1fcgan.ant-tooltip .ant-tooltip-inner{width:256px;}
|
|
1502
1535
|
body,
|
|
1503
1536
|
#root {
|
|
1504
1537
|
height: 100%;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Control } from 'react-hook-form';
|
|
3
|
+
import { ResourceModel } from '../../models';
|
|
4
|
+
import { ResourceConfig } from '../../types';
|
|
5
|
+
type Props<Model extends ResourceModel> = {
|
|
6
|
+
config?: ResourceConfig<Model>;
|
|
7
|
+
control: Control;
|
|
8
|
+
errorMsg?: string;
|
|
9
|
+
action?: 'create' | 'edit';
|
|
10
|
+
};
|
|
11
|
+
export declare const RefineFormContent: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(props: Props<Model>) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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: Unstructured) => Unstructured;
|
|
18
|
+
transformApplyValues?: (values: Unstructured) => Unstructured;
|
|
19
|
+
onSaveButtonPropsChange?: (saveButtonProps: {
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
onClick: () => void;
|
|
22
|
+
}) => void;
|
|
23
|
+
onErrorsChange?: (errors: string[]) => void;
|
|
24
|
+
onFinish?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function YamlForm(props: YamlFormProps): JSX.Element;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './FormModal';
|
|
2
|
+
export * from './RefineFormContent';
|
|
3
|
+
export * from './RefineFormPage';
|
|
4
|
+
export * from './YamlForm';
|
|
5
|
+
export * from './useRefineForm';
|
|
6
|
+
export * from './useYamlForm';
|
|
7
|
+
export * from './type';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type RefineFormValidator = (value: unknown, formValue: unknown) => {
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
errorMsg: string;
|
|
5
|
+
};
|
|
6
|
+
export type RefineFormField = {
|
|
7
|
+
path: string[];
|
|
8
|
+
key: string;
|
|
9
|
+
label: string;
|
|
10
|
+
type?: 'number';
|
|
11
|
+
validators?: RefineFormValidator[];
|
|
12
|
+
render?: React.FC<{
|
|
13
|
+
value: unknown;
|
|
14
|
+
onChange: (event: unknown) => void;
|
|
15
|
+
onBlur: () => void;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UseFormProps } from '@refinedev/core';
|
|
2
|
+
import { ResourceConfig } from '../../types';
|
|
3
|
+
export declare const useRefineForm: (props: {
|
|
4
|
+
config: ResourceConfig;
|
|
5
|
+
id?: string;
|
|
6
|
+
refineProps?: UseFormProps;
|
|
7
|
+
}) => {
|
|
8
|
+
formResult: import("@refinedev/react-hook-form").UseFormReturnType<import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError, Record<string, unknown>, {}, import("@refinedev/core").BaseRecord, import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError>;
|
|
9
|
+
responseErrorMsg: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { HttpError, BaseRecord, UseFormReturnType as UseFormReturnTypeCore, UseFormProps as UseFormPropsCore, CreateResponse, UpdateResponse } from '@refinedev/core';
|
|
2
|
+
import { ButtonProps } from 'antd/lib/button';
|
|
3
|
+
import { FormInstance, FormProps } from 'antd/lib/form';
|
|
4
|
+
import { JSONSchema7 } from 'json-schema';
|
|
5
|
+
import { Unstructured } from 'k8s-api-provider';
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { type YamlEditorHandle, type YamlEditorProps } from 'src/components/YamlEditor';
|
|
8
|
+
type EditorProps = Omit<YamlEditorProps, 'schema'> & {
|
|
9
|
+
ref: React.RefObject<YamlEditorHandle>;
|
|
10
|
+
schema: JSONSchema7 | null;
|
|
11
|
+
};
|
|
12
|
+
export type UseFormProps<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormPropsCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
|
|
13
|
+
submitOnEnter?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Shows notification when unsaved changes exist
|
|
16
|
+
*/
|
|
17
|
+
warnWhenUnsavedChanges?: boolean;
|
|
18
|
+
editorOptions?: {
|
|
19
|
+
isGenerateAnnotations?: boolean;
|
|
20
|
+
isSkipSchema?: boolean;
|
|
21
|
+
};
|
|
22
|
+
initialValuesForCreate?: Record<string, unknown>;
|
|
23
|
+
transformInitValues?: (values: Unstructured) => Unstructured;
|
|
24
|
+
transformApplyValues?: (values: Unstructured) => Unstructured;
|
|
25
|
+
};
|
|
26
|
+
export type UseFormReturnType<TQueryFnData extends BaseRecord = BaseRecord, TError extends HttpError = HttpError, TVariables extends object = object, TData extends BaseRecord = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError> = UseFormReturnTypeCore<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError> & {
|
|
27
|
+
form: FormInstance;
|
|
28
|
+
formProps: Omit<FormProps, 'onFinish'> & {
|
|
29
|
+
onFinish: (values?: TVariables) => Promise<CreateResponse<TResponse> | UpdateResponse<TResponse> | void> | undefined;
|
|
30
|
+
};
|
|
31
|
+
saveButtonProps: ButtonProps & {
|
|
32
|
+
onClick: () => void;
|
|
33
|
+
};
|
|
34
|
+
editorProps: EditorProps;
|
|
35
|
+
schema: JSONSchema7 | null;
|
|
36
|
+
isLoadingSchema: boolean;
|
|
37
|
+
loadSchemaError: Error | null;
|
|
38
|
+
fetchSchema: () => void;
|
|
39
|
+
enableEditor: boolean;
|
|
40
|
+
errorResponseBody?: Record<string, unknown> | null;
|
|
41
|
+
switchEditor: () => void;
|
|
42
|
+
onFinish: (values?: TVariables) => Promise<CreateResponse<TResponse> | UpdateResponse<TResponse> | void>;
|
|
43
|
+
};
|
|
44
|
+
declare const useYamlForm: <TQueryFnData extends Unstructured = Unstructured & {
|
|
45
|
+
id: string;
|
|
46
|
+
}, TError extends HttpError = HttpError, TVariables extends {
|
|
47
|
+
[prop: string]: unknown;
|
|
48
|
+
} = {
|
|
49
|
+
[prop: string]: unknown;
|
|
50
|
+
}, TData extends Unstructured = TQueryFnData, TResponse extends BaseRecord = TData, TResponseError extends HttpError = TError>({ action: actionFromProps, resource, onMutationSuccess: onMutationSuccessProp, onMutationError, submitOnEnter, warnWhenUnsavedChanges: warnWhenUnsavedChangesProp, redirect, successNotification, errorNotification, meta, metaData, queryMeta, mutationMeta, liveMode, liveParams, mutationMode, dataProviderName, onLiveEvent, invalidates, undoableTimeout, queryOptions, createMutationOptions, updateMutationOptions, id: idFromProps, overtimeOptions, editorOptions, initialValuesForCreate, transformInitValues, transformApplyValues, }?: UseFormProps<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>) => UseFormReturnType<TQueryFnData, TError, TVariables, TData, TResponse, TResponseError>;
|
|
51
|
+
export default useYamlForm;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FormWidgetProps } from './widget';
|
|
3
|
+
export type KeyValueListWidgetProps = FormWidgetProps<Record<string, string>> & {
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare function KeyValueListWidget(props: KeyValueListWidgetProps): JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AntdInputProps } from '@cloudtower/eagle';
|
|
3
|
+
export declare function NameInputWidget(props: AntdInputProps): JSX.Element;
|
|
4
|
+
export declare const dnsSubDomainRules: ({
|
|
5
|
+
required: boolean;
|
|
6
|
+
message: string;
|
|
7
|
+
pattern?: undefined;
|
|
8
|
+
max?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
pattern: RegExp;
|
|
11
|
+
message: string;
|
|
12
|
+
required?: undefined;
|
|
13
|
+
max?: undefined;
|
|
14
|
+
} | {
|
|
15
|
+
max: number;
|
|
16
|
+
message: string;
|
|
17
|
+
required?: undefined;
|
|
18
|
+
pattern?: undefined;
|
|
19
|
+
})[];
|
|
20
|
+
export declare const rfc1123LabelRules: ({
|
|
21
|
+
required: boolean;
|
|
22
|
+
message: string;
|
|
23
|
+
pattern?: undefined;
|
|
24
|
+
max?: undefined;
|
|
25
|
+
} | {
|
|
26
|
+
pattern: RegExp;
|
|
27
|
+
message: string;
|
|
28
|
+
required?: undefined;
|
|
29
|
+
max?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
max: number;
|
|
32
|
+
message: string;
|
|
33
|
+
required?: undefined;
|
|
34
|
+
pattern?: undefined;
|
|
35
|
+
})[];
|
|
36
|
+
export declare const rfc1035LabelRules: ({
|
|
37
|
+
required: boolean;
|
|
38
|
+
message: string;
|
|
39
|
+
pattern?: undefined;
|
|
40
|
+
max?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
pattern: RegExp;
|
|
43
|
+
message: string;
|
|
44
|
+
required?: undefined;
|
|
45
|
+
max?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
max: number;
|
|
48
|
+
message: string;
|
|
49
|
+
required?: undefined;
|
|
50
|
+
pattern?: undefined;
|
|
51
|
+
})[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FormWidgetProps } from './widget';
|
|
3
|
+
type NamespaceSelectProps = FormWidgetProps<string | string[]>;
|
|
4
|
+
export declare function NamespaceSelectWidget(props: NamespaceSelectProps): JSX.Element;
|
|
5
|
+
export declare const namespaceRules: {
|
|
6
|
+
required: boolean;
|
|
7
|
+
message: string;
|
|
8
|
+
}[];
|
|
9
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export interface KeyValueProps {
|
|
3
|
+
data: Record<string, string>;
|
|
4
|
+
empty?: string;
|
|
5
|
+
hideSecret?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const KeyValue: React.FC<KeyValueProps>;
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
export declare const NS_STORE_KEY = "namespace-filter";
|
|
3
3
|
export declare const ALL_NS = "_all";
|
|
4
4
|
export declare const useNamespacesFilter: () => {
|
|
5
|
-
value: string;
|
|
5
|
+
value: string[];
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
interface NamespaceFilterProps {
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const NamespacesFilter: React.FC<NamespaceFilterProps>;
|
|
11
|
+
export {};
|
|
@@ -2,6 +2,7 @@ import type { NetworkPolicyIngressRule, NetworkPolicyEgressRule } from 'kubernet
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type Props = {
|
|
4
4
|
ingressOrEgress: NetworkPolicyIngressRule[] | NetworkPolicyEgressRule[];
|
|
5
|
+
kind?: string;
|
|
5
6
|
};
|
|
6
|
-
export declare const
|
|
7
|
+
export declare const NetworkPolicyRulesViewer: React.FC<Props>;
|
|
7
8
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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,13 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { IResourceComponentsProps } from '@refinedev/core';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { ResourceModel } from '../../../models';
|
|
4
|
-
import {
|
|
4
|
+
import { ResourceConfig } from '../../../types';
|
|
5
5
|
type Props<Model extends ResourceModel> = IResourceComponentsProps & {
|
|
6
|
-
|
|
7
|
-
columns: Column<Model>[];
|
|
8
|
-
Dropdown?: React.FC<{
|
|
9
|
-
record: Model;
|
|
10
|
-
}>;
|
|
6
|
+
config: ResourceConfig<Model>;
|
|
11
7
|
};
|
|
12
8
|
export declare function ResourceList<Model extends ResourceModel>(props: Props<Model>): JSX.Element;
|
|
13
9
|
export {};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { IResourceComponentsProps } from '@refinedev/core';
|
|
2
|
-
import React from 'react';
|
|
3
3
|
import { ResourceModel } from '../../../models';
|
|
4
|
-
import {
|
|
4
|
+
import { ResourceConfig } from '../../../types';
|
|
5
5
|
type Props<Model extends ResourceModel> = IResourceComponentsProps & {
|
|
6
|
-
|
|
7
|
-
showConfig: ShowConfig<Model>;
|
|
8
|
-
Dropdown?: React.FC<{
|
|
9
|
-
record: Model;
|
|
10
|
-
}>;
|
|
6
|
+
config: ResourceConfig<Model>;
|
|
11
7
|
};
|
|
12
8
|
export declare function ResourceShow<Model extends ResourceModel>(props: Props<Model>): JSX.Element;
|
|
13
9
|
export {};
|
|
@@ -4,5 +4,8 @@ type Props = {
|
|
|
4
4
|
service: ServiceModel;
|
|
5
5
|
};
|
|
6
6
|
export declare const ServiceInClusterAccessComponent: React.FC<Props>;
|
|
7
|
-
export declare const ServiceOutClusterAccessComponent: React.FC<Props
|
|
7
|
+
export declare const ServiceOutClusterAccessComponent: React.FC<Props & {
|
|
8
|
+
clusterVip: string;
|
|
9
|
+
breakLine?: boolean;
|
|
10
|
+
}>;
|
|
8
11
|
export {};
|
|
@@ -8,5 +8,10 @@ type Props<Model extends ResourceModel> = {
|
|
|
8
8
|
record: Model;
|
|
9
9
|
}>;
|
|
10
10
|
};
|
|
11
|
+
export declare function ShowGroupComponent(props: React.PropsWithChildren<{
|
|
12
|
+
title: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
operationEle?: React.ReactElement;
|
|
15
|
+
}>): JSX.Element;
|
|
11
16
|
export declare const ShowContent: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(props: Props<Model>) => JSX.Element | null;
|
|
12
17
|
export {};
|