@dovetail-v2/refine 0.1.26 → 0.1.27
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-e2011bb6.js → MonacoYamlDiffEditor-8907845f.js} +1 -1
- package/dist/{index-042d724d.js → index-ac6b2e58.js} +188 -78
- package/dist/refine.js +1 -1
- package/dist/refine.umd.cjs +186 -76
- package/dist/style.css +127 -69
- package/lib/components/Form/RefineFormContent.d.ts +1 -1
- package/lib/components/Form/useRefineForm.d.ts +1 -1
- package/lib/components/ResourceLink/index.d.ts +1 -0
- package/lib/hooks/useDeleteModal/useDeleteModal.d.ts +3 -1
- package/lib/hooks/useFailedModal.d.ts +6 -0
- package/lib/i18n.d.ts +6 -0
- package/lib/locales/en-US/index.d.ts +3 -0
- package/lib/locales/zh-CN/index.d.ts +3 -0
- package/lib/models/persistent-volume.d.ts +1 -0
- package/lib/styles/button.d.ts +1 -0
- package/lib/styles/tag.d.ts +1 -0
- package/lib/utils/string.d.ts +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -131,15 +131,16 @@
|
|
|
131
131
|
/* box shadow */
|
|
132
132
|
/* fisheye */
|
|
133
133
|
/* z-index */
|
|
134
|
-
.
|
|
135
|
-
|
|
134
|
+
.s82411.ant-tag {
|
|
135
|
+
padding: 3px 16px;
|
|
136
|
+
height: 24px;
|
|
136
137
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
.s82411.no-background {
|
|
139
|
+
background-color: transparent !important;
|
|
140
|
+
padding: 0;
|
|
140
141
|
}
|
|
141
142
|
|
|
142
|
-
.
|
|
143
|
+
.n9ja9cs.ant-tag.ant-tag-gray {
|
|
143
144
|
background-color: rgba(237, 241, 250, 0.6);
|
|
144
145
|
border: 1px solid rgba(211, 218, 235, 0.6);
|
|
145
146
|
color: #00122e;
|
|
@@ -194,6 +195,59 @@
|
|
|
194
195
|
/* box shadow */
|
|
195
196
|
/* fisheye */
|
|
196
197
|
/* z-index */
|
|
198
|
+
.t1vq0ett {
|
|
199
|
+
margin-bottom: 4px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.t139onst {
|
|
203
|
+
color: rgba(44, 56, 82, 0.6);
|
|
204
|
+
}/* // basic */
|
|
205
|
+
/* FishEye Color Variables and Functions */
|
|
206
|
+
/*
|
|
207
|
+
--------------------------- Primary Color ---------------------------
|
|
208
|
+
*/
|
|
209
|
+
/*
|
|
210
|
+
---------------------------When necessary to add at any time---------------------------
|
|
211
|
+
*/
|
|
212
|
+
/* computed */
|
|
213
|
+
/* blue */
|
|
214
|
+
/* green */
|
|
215
|
+
/* yellow */
|
|
216
|
+
/* red */
|
|
217
|
+
/* purple */
|
|
218
|
+
/* palette global token*/
|
|
219
|
+
/* color opaque */
|
|
220
|
+
/* color transparent */
|
|
221
|
+
/* blue transparent */
|
|
222
|
+
/* green transparent */
|
|
223
|
+
/* yellow transparent */
|
|
224
|
+
/* red transparent */
|
|
225
|
+
/* gray transparent */
|
|
226
|
+
/* white transparent */
|
|
227
|
+
/* gradient opaque */
|
|
228
|
+
/* blue radial gradient */
|
|
229
|
+
/* blue linear gradient */
|
|
230
|
+
/* green radial gradient */
|
|
231
|
+
/* yellow radial gradient */
|
|
232
|
+
/* red radial gradient */
|
|
233
|
+
/* gray radial gradient */
|
|
234
|
+
/* white to gray radial gradient */
|
|
235
|
+
/* white to gray linear gradient */
|
|
236
|
+
/* gradient transparent */
|
|
237
|
+
/* secondary palette */
|
|
238
|
+
/* purple radial gradient */
|
|
239
|
+
/* refine alias color */
|
|
240
|
+
/* text */
|
|
241
|
+
/* link */
|
|
242
|
+
/* fill */
|
|
243
|
+
/* fill element */
|
|
244
|
+
/* fill interaction */
|
|
245
|
+
/* stroke */
|
|
246
|
+
/* background */
|
|
247
|
+
/* dim */
|
|
248
|
+
/* box shadow */
|
|
249
|
+
/* fisheye */
|
|
250
|
+
/* z-index */
|
|
197
251
|
.e5223w8.empty-text {
|
|
198
252
|
color: rgba(0, 21, 64, 0.3);
|
|
199
253
|
}
|
|
@@ -679,13 +733,68 @@
|
|
|
679
733
|
/* box shadow */
|
|
680
734
|
/* fisheye */
|
|
681
735
|
/* z-index */
|
|
682
|
-
.
|
|
683
|
-
|
|
684
|
-
height:
|
|
736
|
+
.t19ustft {
|
|
737
|
+
display: inline-block;
|
|
738
|
+
line-height: 18px;
|
|
739
|
+
height: 18px;
|
|
740
|
+
border-bottom: 1px dashed rgba(107, 128, 167, 0.6);
|
|
741
|
+
}/* // basic */
|
|
742
|
+
/* FishEye Color Variables and Functions */
|
|
743
|
+
/*
|
|
744
|
+
--------------------------- Primary Color ---------------------------
|
|
745
|
+
*/
|
|
746
|
+
/*
|
|
747
|
+
---------------------------When necessary to add at any time---------------------------
|
|
748
|
+
*/
|
|
749
|
+
/* computed */
|
|
750
|
+
/* blue */
|
|
751
|
+
/* green */
|
|
752
|
+
/* yellow */
|
|
753
|
+
/* red */
|
|
754
|
+
/* purple */
|
|
755
|
+
/* palette global token*/
|
|
756
|
+
/* color opaque */
|
|
757
|
+
/* color transparent */
|
|
758
|
+
/* blue transparent */
|
|
759
|
+
/* green transparent */
|
|
760
|
+
/* yellow transparent */
|
|
761
|
+
/* red transparent */
|
|
762
|
+
/* gray transparent */
|
|
763
|
+
/* white transparent */
|
|
764
|
+
/* gradient opaque */
|
|
765
|
+
/* blue radial gradient */
|
|
766
|
+
/* blue linear gradient */
|
|
767
|
+
/* green radial gradient */
|
|
768
|
+
/* yellow radial gradient */
|
|
769
|
+
/* red radial gradient */
|
|
770
|
+
/* gray radial gradient */
|
|
771
|
+
/* white to gray radial gradient */
|
|
772
|
+
/* white to gray linear gradient */
|
|
773
|
+
/* gradient transparent */
|
|
774
|
+
/* secondary palette */
|
|
775
|
+
/* purple radial gradient */
|
|
776
|
+
/* refine alias color */
|
|
777
|
+
/* text */
|
|
778
|
+
/* link */
|
|
779
|
+
/* fill */
|
|
780
|
+
/* fill element */
|
|
781
|
+
/* fill interaction */
|
|
782
|
+
/* stroke */
|
|
783
|
+
/* background */
|
|
784
|
+
/* dim */
|
|
785
|
+
/* box shadow */
|
|
786
|
+
/* fisheye */
|
|
787
|
+
/* z-index */
|
|
788
|
+
.wwyz7ti.ant-btn.ant-btn.ant-btn-primary {
|
|
789
|
+
background-color: #fea008;
|
|
685
790
|
}
|
|
686
|
-
.
|
|
687
|
-
background-color:
|
|
688
|
-
|
|
791
|
+
.wwyz7ti.ant-btn.ant-btn.ant-btn-primary:hover {
|
|
792
|
+
background-color: #feba33;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.c1xsou5f.ant-btn {
|
|
796
|
+
border-radius: 6px;
|
|
797
|
+
border: 1px solid rgba(172, 186, 211, 0.6) !important;
|
|
689
798
|
}/* // basic */
|
|
690
799
|
/* FishEye Color Variables and Functions */
|
|
691
800
|
/*
|
|
@@ -733,11 +842,12 @@
|
|
|
733
842
|
/* box shadow */
|
|
734
843
|
/* fisheye */
|
|
735
844
|
/* z-index */
|
|
736
|
-
.
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
845
|
+
.t56wb76 {
|
|
846
|
+
margin-bottom: 4px;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.tnei7dl {
|
|
850
|
+
color: rgba(44, 56, 82, 0.6);
|
|
741
851
|
}/* // basic */
|
|
742
852
|
/* FishEye Color Variables and Functions */
|
|
743
853
|
/*
|
|
@@ -4116,58 +4226,6 @@
|
|
|
4116
4226
|
/* box shadow */
|
|
4117
4227
|
/* fisheye */
|
|
4118
4228
|
/* z-index */
|
|
4119
|
-
.wwyz7ti.ant-btn.ant-btn.ant-btn-primary {
|
|
4120
|
-
background-color: #fea008;
|
|
4121
|
-
}
|
|
4122
|
-
.wwyz7ti.ant-btn.ant-btn.ant-btn-primary:hover {
|
|
4123
|
-
background-color: #feba33;
|
|
4124
|
-
}/* // basic */
|
|
4125
|
-
/* FishEye Color Variables and Functions */
|
|
4126
|
-
/*
|
|
4127
|
-
--------------------------- Primary Color ---------------------------
|
|
4128
|
-
*/
|
|
4129
|
-
/*
|
|
4130
|
-
---------------------------When necessary to add at any time---------------------------
|
|
4131
|
-
*/
|
|
4132
|
-
/* computed */
|
|
4133
|
-
/* blue */
|
|
4134
|
-
/* green */
|
|
4135
|
-
/* yellow */
|
|
4136
|
-
/* red */
|
|
4137
|
-
/* purple */
|
|
4138
|
-
/* palette global token*/
|
|
4139
|
-
/* color opaque */
|
|
4140
|
-
/* color transparent */
|
|
4141
|
-
/* blue transparent */
|
|
4142
|
-
/* green transparent */
|
|
4143
|
-
/* yellow transparent */
|
|
4144
|
-
/* red transparent */
|
|
4145
|
-
/* gray transparent */
|
|
4146
|
-
/* white transparent */
|
|
4147
|
-
/* gradient opaque */
|
|
4148
|
-
/* blue radial gradient */
|
|
4149
|
-
/* blue linear gradient */
|
|
4150
|
-
/* green radial gradient */
|
|
4151
|
-
/* yellow radial gradient */
|
|
4152
|
-
/* red radial gradient */
|
|
4153
|
-
/* gray radial gradient */
|
|
4154
|
-
/* white to gray radial gradient */
|
|
4155
|
-
/* white to gray linear gradient */
|
|
4156
|
-
/* gradient transparent */
|
|
4157
|
-
/* secondary palette */
|
|
4158
|
-
/* purple radial gradient */
|
|
4159
|
-
/* refine alias color */
|
|
4160
|
-
/* text */
|
|
4161
|
-
/* link */
|
|
4162
|
-
/* fill */
|
|
4163
|
-
/* fill element */
|
|
4164
|
-
/* fill interaction */
|
|
4165
|
-
/* stroke */
|
|
4166
|
-
/* background */
|
|
4167
|
-
/* dim */
|
|
4168
|
-
/* box shadow */
|
|
4169
|
-
/* fisheye */
|
|
4170
|
-
/* z-index */
|
|
4171
4229
|
.c154n7ie {
|
|
4172
4230
|
max-width: 144px;
|
|
4173
4231
|
}
|
|
@@ -5,7 +5,7 @@ import { ResourceConfig } from 'src/types';
|
|
|
5
5
|
type Props<Model extends ResourceModel> = {
|
|
6
6
|
config?: ResourceConfig<Model>;
|
|
7
7
|
formResult: UseFormReturnType;
|
|
8
|
-
|
|
8
|
+
errorMsgs?: string[];
|
|
9
9
|
resourceId?: string;
|
|
10
10
|
};
|
|
11
11
|
export declare const RefineFormContent: <Model extends ResourceModel<import("k8s-api-provider").Unstructured>>(props: Props<Model>) => JSX.Element;
|
|
@@ -9,5 +9,5 @@ export declare const useRefineForm: (props: {
|
|
|
9
9
|
formResult: import("./useReactHookForm").UseFormReturnType<import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError, {
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}, {}, import("@refinedev/core").BaseRecord, import("@refinedev/core").BaseRecord, import("@refinedev/core").HttpError>;
|
|
12
|
-
|
|
12
|
+
responseErrorMsgs: string[];
|
|
13
13
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ModalProps } from '@cloudtower/eagle';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare const useDeleteModal: (resource: string, { deleteTip }?: {
|
|
3
|
+
export declare const useDeleteModal: (resource: string, { deleteTip, onError }?: {
|
|
4
4
|
deleteTip?: React.ReactNode;
|
|
5
|
+
onError?: ((error: any) => void) | undefined;
|
|
5
6
|
}) => {
|
|
6
7
|
modalProps: ModalProps;
|
|
7
8
|
visible: boolean;
|
|
9
|
+
setVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
10
|
openDeleteConfirmModal: (id: string) => void;
|
|
9
11
|
};
|
package/lib/i18n.d.ts
CHANGED
|
@@ -240,6 +240,9 @@ export declare const resources: {
|
|
|
240
240
|
taint_effect_NoExecute_tooltip_2: string;
|
|
241
241
|
taint_effect_NoExecute_tooltip_3: string;
|
|
242
242
|
taint_effect_PreferNoSchedule_tooltip: string;
|
|
243
|
+
cant_delete_resource: string;
|
|
244
|
+
cant_delete_resource_with_name: string;
|
|
245
|
+
close: string;
|
|
243
246
|
};
|
|
244
247
|
};
|
|
245
248
|
'zh-CN': {
|
|
@@ -480,6 +483,9 @@ export declare const resources: {
|
|
|
480
483
|
taint_effect_NoExecute_tooltip_3: string;
|
|
481
484
|
taint_effect_PreferNoSchedule_tooltip: string;
|
|
482
485
|
confirm: string;
|
|
486
|
+
cant_delete_resource: string;
|
|
487
|
+
cant_delete_resource_with_name: string;
|
|
488
|
+
close: string;
|
|
483
489
|
};
|
|
484
490
|
};
|
|
485
491
|
};
|
|
@@ -237,6 +237,9 @@ declare const _default: {
|
|
|
237
237
|
taint_effect_NoExecute_tooltip_2: string;
|
|
238
238
|
taint_effect_NoExecute_tooltip_3: string;
|
|
239
239
|
taint_effect_PreferNoSchedule_tooltip: string;
|
|
240
|
+
cant_delete_resource: string;
|
|
241
|
+
cant_delete_resource_with_name: string;
|
|
242
|
+
close: string;
|
|
240
243
|
};
|
|
241
244
|
};
|
|
242
245
|
export default _default;
|
|
@@ -236,6 +236,9 @@ declare const _default: {
|
|
|
236
236
|
taint_effect_NoExecute_tooltip_3: string;
|
|
237
237
|
taint_effect_PreferNoSchedule_tooltip: string;
|
|
238
238
|
confirm: string;
|
|
239
|
+
cant_delete_resource: string;
|
|
240
|
+
cant_delete_resource_with_name: string;
|
|
241
|
+
close: string;
|
|
239
242
|
};
|
|
240
243
|
};
|
|
241
244
|
export default _default;
|
|
@@ -12,6 +12,7 @@ export declare class PersistentVolumeModel extends ResourceModel {
|
|
|
12
12
|
get csi(): string | undefined;
|
|
13
13
|
get pvc(): string | undefined;
|
|
14
14
|
get pvcNamespace(): string | undefined;
|
|
15
|
+
get pvcUid(): string | undefined;
|
|
15
16
|
get storageBytes(): number;
|
|
16
17
|
}
|
|
17
18
|
export {};
|
package/lib/styles/button.d.ts
CHANGED
package/lib/styles/tag.d.ts
CHANGED
package/lib/utils/string.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare function shortenedImage(image: string): string;
|
|
2
2
|
export declare function isFirstLetterEnglish(str: string): boolean;
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function transformResourceKindInSentence(str: string, language: string): string;
|