@dovetail-v2/refine 0.0.50 → 0.0.52
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-2ec906d2.js → MonacoYamlDiffEditor-1745c907.js} +1 -1
- package/dist/{index-e72498e4.js → index-7fe9ade3.js} +403 -364
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +409 -370
- package/dist/style.css +10 -7
- package/lib/src/components/ServiceComponents/index.d.ts +0 -1
- package/lib/src/components/ShowContent/fields.d.ts +1 -1
- package/lib/src/hooks/useEagleTable/columns.d.ts +1 -1
- package/lib/src/i18n.d.ts +2 -0
- package/lib/src/locales/en-US/index.d.ts +1 -0
- package/lib/src/locales/zh-CN/index.d.ts +1 -0
- package/lib/src/models/service-model.d.ts +2 -1
- package/lib/src/types/resource.d.ts +1 -0
- package/package.json +5 -5
package/dist/style.css
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
.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;}
|
|
11
11
|
.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;}
|
|
12
12
|
.b1vtjd4k.ant-btn.ant-btn-link{display:block;}
|
|
13
|
-
.luro4rx.ant-btn.ant-btn-link{line-height:18px;height:18px;}
|
|
14
13
|
.t13a6vox{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%;gap:8px 8px;}
|
|
15
14
|
.t12ikbmp.ant-tag{overflow:hidden;text-overflow:ellipsis;color:#1D326C;}.t12ikbmp.ant-tag.outside-tag{border:1px solid #A3B4CC;background-color:#E4E9F2;}.t12ikbmp.ant-tag .inside-tag{background-color:#CCD4E3;}
|
|
16
15
|
.s8qkbck.ant-tag{padding:3px 16px;height:24px;}.s8qkbck.no-background{background-color:transparent !important;padding:0;}
|
|
@@ -21,6 +20,7 @@
|
|
|
21
20
|
.d1wqyhgc{color:rgba(44,56,82,0.75);}
|
|
22
21
|
.w16agr8o.ant-space{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}
|
|
23
22
|
.i1u1f5zp{white-space:pre-line;}
|
|
23
|
+
.l1vnw9x0{padding:0 !important;}
|
|
24
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
25
|
.k2sddxl{color:rgba(44,56,82,0.75);width:calc(30% - 4px);margin-right:8px;word-break:break-all;}
|
|
26
26
|
.v16vicsr{word-break:break-all;white-space:pre-wrap;width:calc(70% - 4px);}
|
|
@@ -1520,15 +1520,17 @@
|
|
|
1520
1520
|
.l1ng0psc{padding:12px 24px;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;min-height:0;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}
|
|
1521
1521
|
.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;}
|
|
1522
1522
|
.n1rqcyjn.ant-select{margin-bottom:12px;}
|
|
1523
|
-
.c154n7ie{width:
|
|
1524
|
-
.c1c9j4da{
|
|
1525
|
-
.cjxv8cf{
|
|
1523
|
+
.c154n7ie{max-width:144px;}
|
|
1524
|
+
.c1c9j4da{width:100%;}
|
|
1525
|
+
.cjxv8cf{color:rgba(44,56,82,0.6);}
|
|
1526
|
+
.c1xsnuvk{-webkit-flex-basis:58%;-ms-flex-preferred-size:58%;flex-basis:58%;width:100%;}
|
|
1526
1527
|
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
1527
1528
|
|
|
1528
1529
|
.e1guqlj2{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;margin-bottom:16px;}
|
|
1529
|
-
.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{
|
|
1530
|
-
.
|
|
1531
|
-
.
|
|
1530
|
+
.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 .footer-content{margin:0 128px;}
|
|
1531
|
+
.m1qgcca6 .ant-modal-header{max-width:648px;width:100%;padding:60px 0 32px 0 !important;margin:auto;}.m1qgcca6 .ant-modal-body{max-width:656px;width:100%;padding:0 4px !important;margin:auto;}.m1qgcca6 .ant-modal-footer .footer-content{max-width:648px;width:100%;margin:auto !important;}
|
|
1532
|
+
.f1tl3wq2{margin-bottom:16px;}
|
|
1533
|
+
.exjt4uc{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;}
|
|
1532
1534
|
.c1pvtlkp{width:100%;}
|
|
1533
1535
|
.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%;}
|
|
1534
1536
|
.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);}
|
|
@@ -1536,6 +1538,7 @@
|
|
|
1536
1538
|
.c1i80kj{height:100%;}
|
|
1537
1539
|
.s18sezq1.ant-layout-sider{background:#edf0f7;}
|
|
1538
1540
|
.cyc9hl2.ant-layout-content{background:#fff;}
|
|
1541
|
+
.l25ca2k{padding:0 !important;}
|
|
1539
1542
|
.dh5j833{border-bottom:1px dashed rgba(107,128,167,0.6);padding-bottom:1px;}
|
|
1540
1543
|
.s1fcgan.ant-tooltip .ant-tooltip-inner{width:256px;}
|
|
1541
1544
|
body,
|
|
@@ -51,7 +51,7 @@ export declare const AgeField: <Model extends ResourceModel<Unstructured>>(i18n:
|
|
|
51
51
|
export declare const LabelsField: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowField<Model>;
|
|
52
52
|
export declare const AnnotationsField: <Model extends ResourceModel<Unstructured>>(i18n: I18nType) => ShowField<Model>;
|
|
53
53
|
export declare const ServiceInnerClusterAccessField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
54
|
-
export declare const ServiceOutClusterAccessField: <Model extends ServiceModel>(
|
|
54
|
+
export declare const ServiceOutClusterAccessField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
55
55
|
export declare const PodSelectorField: <Model extends ResourceModel<Required<Unstructured & import("kubernetes-types/core/v1").Service> | (NetworkPolicy & Unstructured)>>() => ShowField<Model>;
|
|
56
56
|
export declare const PortsTableField: <Model extends ServiceModel>() => ShowField<Model>;
|
|
57
57
|
export declare const DurationField: <Model extends JobModel | CronJobModel>(i18n: I18nType) => ShowField<Model>;
|
|
@@ -24,7 +24,7 @@ export declare const ServiceTypeColumnRenderer: <Model extends ResourceModel<imp
|
|
|
24
24
|
export declare function ServiceInClusterAccessTitle(): JSX.Element;
|
|
25
25
|
export declare const ServiceInClusterAccessColumnRenderer: <Model extends ServiceModel>() => Column<Model>;
|
|
26
26
|
export declare function ServiceOutClusterAccessTitle(): JSX.Element;
|
|
27
|
-
export declare const ServiceOutClusterAccessColumnRenderer: <Model extends ServiceModel>(
|
|
27
|
+
export declare const ServiceOutClusterAccessColumnRenderer: <Model extends ServiceModel>() => Column<Model>;
|
|
28
28
|
export declare const PodWorkloadColumnRenderer: <Model extends PodModel>(i18n: I18nType) => Column<Model>;
|
|
29
29
|
export declare const IngressRulesColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
|
30
30
|
export declare const IngressDefaultBackendColumnRenderer: <Model extends IngressModel>(i18n: I18nType) => Column<Model>;
|
package/lib/src/i18n.d.ts
CHANGED
|
@@ -157,6 +157,7 @@ export declare const resources: {
|
|
|
157
157
|
only_support_one_yaml: string;
|
|
158
158
|
not_support: string;
|
|
159
159
|
stopped: string;
|
|
160
|
+
any_node_ip: string;
|
|
160
161
|
};
|
|
161
162
|
};
|
|
162
163
|
'zh-CN': {
|
|
@@ -316,6 +317,7 @@ export declare const resources: {
|
|
|
316
317
|
only_support_one_yaml: string;
|
|
317
318
|
not_support: string;
|
|
318
319
|
stopped: string;
|
|
320
|
+
any_node_ip: string;
|
|
319
321
|
};
|
|
320
322
|
};
|
|
321
323
|
};
|
|
@@ -16,7 +16,8 @@ export declare class ServiceModel extends ResourceModel<ServiceType> {
|
|
|
16
16
|
get displayType(): string | undefined;
|
|
17
17
|
get dnsRecord(): string;
|
|
18
18
|
get displayPortMapping(): {
|
|
19
|
-
servicePort:
|
|
19
|
+
servicePort: number;
|
|
20
|
+
link: string;
|
|
20
21
|
targetPort: string | number | undefined;
|
|
21
22
|
protocol: string | undefined;
|
|
22
23
|
}[] | undefined;
|
|
@@ -47,6 +47,7 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
|
|
|
47
47
|
records: Model[];
|
|
48
48
|
action: 'create' | 'edit';
|
|
49
49
|
}) => RefineFormField[];
|
|
50
|
+
saveButtonText?: string;
|
|
50
51
|
renderForm?: (props: YamlFormProps) => React.ReactNode;
|
|
51
52
|
formType?: FormType;
|
|
52
53
|
transformInitValues?: (values: Unstructured) => Unstructured;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"module": "./dist/refine.js",
|
|
11
11
|
"types": "./lib/src/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@cloudtower/eagle": "^0.
|
|
14
|
-
"@cloudtower/icons-react": "^0.
|
|
13
|
+
"@cloudtower/eagle": "^0.29.0-alpha.0",
|
|
14
|
+
"@cloudtower/icons-react": "^0.29.0-alpha.0",
|
|
15
15
|
"@patternfly/react-core": "^5.1.1",
|
|
16
16
|
"@patternfly/react-log-viewer": "^5.0.0",
|
|
17
17
|
"@refinedev/core": "^4.47.2",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"vite-plugin-commonjs": "^0.10.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"@cloudtower/eagle": "^0.
|
|
73
|
-
"@cloudtower/icons-react": "^0.
|
|
72
|
+
"@cloudtower/eagle": "^0.28.0-alpha.0",
|
|
73
|
+
"@cloudtower/icons-react": "^0.28.0-alpha.0",
|
|
74
74
|
"@refinedev/core": "^4.47.2",
|
|
75
75
|
"antd": "4.5.0",
|
|
76
76
|
"i18next": "^23.2.3",
|