@dovetail-v2/refine 0.3.8-alpha.4 → 0.3.9-alpha.1
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/{MonacoYamlEditor-7e440dd9.cjs → MonacoYamlEditor-16a71448.cjs} +1 -1
- package/dist/{MonacoYamlEditor-70599129.js → MonacoYamlEditor-be30f2cd.js} +1 -1
- package/dist/components/EditMetadataForm/EditNodeTaintForm.d.ts +2 -6
- package/dist/components/EditMetadataForm/NodeTaintEffectSelect.d.ts +16 -0
- package/dist/components/EditMetadataForm/index.d.ts +1 -0
- package/dist/components/KeyValueTableForm/index.d.ts +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/{index-59def48b.js → index-50687482.js} +321 -231
- package/dist/{index-fec9ef27.cjs → index-ce201e8c.cjs} +242 -152
- package/dist/locales/zh-CN/index.d.ts +2 -0
- package/dist/models/pod-model.d.ts +1 -3
- package/dist/refine.cjs +7 -2
- package/dist/refine.js +84 -79
- package/dist/utils/validation.d.ts +14 -6
- package/package.json +2 -1
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bS,
|
|
1
|
+
import { bS, cP, A, aX, aZ, aG, cn, bl, bE, a2, cB, cp, aR, T, C, j, cV, aJ, bq, ad, cX, aj, aq, d5, ay, cq, co, d8, aN, bx, w, aE, bG, d7, cQ, bJ, D, b2, at, ck, bM, bO, bN, as, cj, au, a1, ce, cd, d6, bj, aV, cS, ae, c0, bV, cU, cT, cW, cz, aH, ak, s, q, cY, I, bu, aU, t, M, bf, bh, cr, c_, aM, bt, ar, az, aA, a9, aB, cf, aY, aF, bH, cg, bK, aa, di, cA, cK, bR, N, a3, g, aW, a7, bU, bz, by, cZ, c6, dd, i, dc, cl, cm, aK, br, ct, L, bb, bc, bp, H, bd, J, be, B, b6, cN, z, b5, G, b9, E, b7, F, b8, K, c7, ba, cM, ab, dg, df, P, bn, v, af, ai, c5, bk, d2, d1, b0, bv, cb, ca, p, aL, bm, x, ch, bw, b1, dh, y, cD, cR, bP, bX, bY, dk, aI, d4, h, ah, ao, an, bQ, al, d3, c9, am, cO, cc, bi, bB, av, R, Q, O, bg, cG, cJ, cF, cE, cH, cI, cC, cu, cx, cy, cw, cv, cs, cL, bZ, aO, bs, ci, aC, m, c1, l, a_, db, o, c2, a$, n, aT, bo, k, da, aQ, aS, bC, bF, bD, aP, S, bI, d9, de, b3, b4, bA, bL, c8, c3, c4, ac, dw, a0, d0, ag, W, c$, ap, ax, aw, aD, b_, U, a4, d, dn, dm, dq, dt, ds, dj, a8, dr, dl, bW, dp, a6, a5, r, a, c, e, X, V, Z, f, _, u, bT, $, b$, b, dA, dx, dy, dz, dC, dB, du, dv } from "./index-50687482.js";
|
|
2
2
|
import "./common-241b21f8.js";
|
|
3
3
|
import "@cloudtower/eagle";
|
|
4
4
|
import "@refinedev/core";
|
|
@@ -18,68 +18,70 @@ import "react-hook-form";
|
|
|
18
18
|
import "antd";
|
|
19
19
|
export {
|
|
20
20
|
bS as ALL_NS,
|
|
21
|
-
|
|
21
|
+
cP as AccessControlAuth,
|
|
22
22
|
A as AgeColumnRenderer,
|
|
23
23
|
aX as AgeField,
|
|
24
24
|
aZ as AnnotationsField,
|
|
25
25
|
aG as AreaType,
|
|
26
|
-
|
|
26
|
+
cn as BASE_INIT_VALUE,
|
|
27
27
|
bl as BasicGroup,
|
|
28
28
|
bE as BasicShowGroupComponent,
|
|
29
29
|
a2 as Breadcrumb,
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
cB as CONFIG_MAP_INIT_VALUE,
|
|
31
|
+
cp as CRONJOB_INIT_VALUE,
|
|
32
32
|
aR as ClusterIpField,
|
|
33
33
|
T as ColumnKeys,
|
|
34
34
|
C as CommonSorter,
|
|
35
35
|
j as CompletionsCountColumnRenderer,
|
|
36
|
-
|
|
36
|
+
cV as ComponentContext,
|
|
37
37
|
aJ as ConditionsField,
|
|
38
38
|
bq as ConditionsGroup,
|
|
39
39
|
ad as ConditionsTable,
|
|
40
|
-
|
|
40
|
+
cX as ConfigsContext,
|
|
41
41
|
aj as CreateButton,
|
|
42
42
|
aq as CronJobDropdown,
|
|
43
|
-
|
|
43
|
+
d5 as CronJobModel,
|
|
44
44
|
ay as CronjobJobsTable,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
cq as DAEMONSET_INIT_VALUE,
|
|
46
|
+
co as DEPLOYMENT_INIT_VALUE,
|
|
47
|
+
d8 as DaemonSetModel,
|
|
48
48
|
aN as DataField,
|
|
49
49
|
bx as DataGroup,
|
|
50
50
|
w as DataKeysColumnRenderer,
|
|
51
51
|
aE as DeleteButton,
|
|
52
52
|
bG as DeleteManyButton,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
d7 as DeploymentModel,
|
|
54
|
+
cQ as Dovetail,
|
|
55
55
|
bJ as DrawerShow,
|
|
56
56
|
D as DurationColumnRenderer,
|
|
57
57
|
b2 as DurationField,
|
|
58
58
|
at as EditAnnotationDropdownMenuItem,
|
|
59
|
+
ck as EditAnnotationForm,
|
|
59
60
|
bM as EditButton,
|
|
60
61
|
bO as EditField,
|
|
61
62
|
bN as EditFieldModal,
|
|
62
63
|
as as EditLabelDropdownMenuItem,
|
|
64
|
+
cj as EditLabelForm,
|
|
63
65
|
au as EditNodeTaintDropdownMenuItem,
|
|
64
66
|
a1 as ErrorContent,
|
|
65
67
|
ce as ErrorContentType,
|
|
66
68
|
cd as ErrorWrapper,
|
|
67
|
-
|
|
69
|
+
d6 as EventModel,
|
|
68
70
|
bj as EventsTab,
|
|
69
71
|
aV as EventsTableTabField,
|
|
70
|
-
|
|
72
|
+
cS as FormContainerType,
|
|
71
73
|
ae as FormErrorAlert,
|
|
72
74
|
c0 as FormItemLayout,
|
|
73
75
|
bV as FormModal,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
cU as FormMode,
|
|
77
|
+
cT as FormType,
|
|
78
|
+
cW as GlobalStoreContext,
|
|
79
|
+
cz as INGRESS_INIT_VALUE,
|
|
78
80
|
aH as ImageField,
|
|
79
81
|
ak as ImageNames,
|
|
80
82
|
s as IngressClassColumnRenderer,
|
|
81
83
|
q as IngressDefaultBackendColumnRenderer,
|
|
82
|
-
|
|
84
|
+
cY as IngressModel,
|
|
83
85
|
I as IngressRulesColumnRenderer,
|
|
84
86
|
bu as IngressRulesGroup,
|
|
85
87
|
aU as IngressRulesTableTabField,
|
|
@@ -87,8 +89,8 @@ export {
|
|
|
87
89
|
M as IsDefaultSCColumnRenderer,
|
|
88
90
|
bf as IsDefaultSCField,
|
|
89
91
|
bh as IsSCAllowVolumeExpansionField,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
+
cr as JOB_INIT_VALUE,
|
|
93
|
+
c_ as JobModel,
|
|
92
94
|
aM as JobsField,
|
|
93
95
|
bt as JobsGroup,
|
|
94
96
|
ar as K8sDropdown,
|
|
@@ -103,9 +105,9 @@ export {
|
|
|
103
105
|
cg as MatchLabelSelector,
|
|
104
106
|
bK as Menu,
|
|
105
107
|
aa as MetadataForm,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
di as ModelPlugin,
|
|
109
|
+
cA as NETWORK_POLICY_INIT_VALUE,
|
|
110
|
+
cK as NODE_INIT_VALUE,
|
|
109
111
|
bR as NS_STORE_KEY,
|
|
110
112
|
N as NameColumnRenderer,
|
|
111
113
|
a3 as NameInputWidget,
|
|
@@ -115,14 +117,16 @@ export {
|
|
|
115
117
|
bU as NamespacesFilter,
|
|
116
118
|
bz as NetworkPolicyEgressRulesGroup,
|
|
117
119
|
by as NetworkPolicyIngressRulesGroup,
|
|
118
|
-
|
|
120
|
+
cZ as NetworkPolicyModel,
|
|
119
121
|
c6 as NetworkPolicyRulesViewer,
|
|
120
|
-
|
|
122
|
+
dd as NodeModel,
|
|
121
123
|
i as NodeNameColumnRenderer,
|
|
122
|
-
|
|
124
|
+
dc as NodeRole,
|
|
125
|
+
cl as NodeTaintEffect,
|
|
126
|
+
cm as NodeTaintEffectSelect,
|
|
123
127
|
aK as NodeTaintsField,
|
|
124
128
|
br as NodeTaintsGroup,
|
|
125
|
-
|
|
129
|
+
ct as POD_INIT_VALUE,
|
|
126
130
|
L as PVAccessModeColumnRenderer,
|
|
127
131
|
bb as PVAccessModeField,
|
|
128
132
|
bc as PVCPodsField,
|
|
@@ -133,7 +137,7 @@ export {
|
|
|
133
137
|
be as PVCSIRefField,
|
|
134
138
|
B as PVCStorageColumnRenderer,
|
|
135
139
|
b6 as PVCStorageField,
|
|
136
|
-
|
|
140
|
+
cN as PVC_INIT_VALUE,
|
|
137
141
|
z as PVCapacityColumnRenderer,
|
|
138
142
|
b5 as PVCapacityField,
|
|
139
143
|
G as PVPhaseColumnRenderer,
|
|
@@ -145,10 +149,10 @@ export {
|
|
|
145
149
|
K as PVVolumeModeColumnRenderer,
|
|
146
150
|
c7 as PVVolumeModeDisplay,
|
|
147
151
|
ba as PVVolumeModeField,
|
|
148
|
-
|
|
152
|
+
cM as PV_INIT_VALUE,
|
|
149
153
|
ab as PageShow,
|
|
150
|
-
|
|
151
|
-
|
|
154
|
+
dg as PersistentVolumeClaimModel,
|
|
155
|
+
df as PersistentVolumeModel,
|
|
152
156
|
P as PlainTextNameColumnRenderer,
|
|
153
157
|
bn as PodContainersGroup,
|
|
154
158
|
v as PodContainersNumColumnRenderer,
|
|
@@ -156,8 +160,8 @@ export {
|
|
|
156
160
|
ai as PodDropdown,
|
|
157
161
|
c5 as PodLog,
|
|
158
162
|
bk as PodLogTab,
|
|
159
|
-
|
|
160
|
-
|
|
163
|
+
d2 as PodMetricsModel,
|
|
164
|
+
d1 as PodModel,
|
|
161
165
|
b0 as PodSelectorField,
|
|
162
166
|
bv as PodSelectorGroup,
|
|
163
167
|
cb as PodShell,
|
|
@@ -169,26 +173,26 @@ export {
|
|
|
169
173
|
ch as PortsConfigForm,
|
|
170
174
|
bw as PortsGroup,
|
|
171
175
|
b1 as PortsTableField,
|
|
172
|
-
|
|
176
|
+
dh as ProviderPlugins,
|
|
173
177
|
y as ProvisionerColumnRenderer,
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
cD as REDEPLOY_TIMESTAMP_KEY,
|
|
179
|
+
cR as RESOURCE_GROUP,
|
|
176
180
|
bP as ReferenceLink,
|
|
177
181
|
bX as RefineFormContent,
|
|
178
182
|
bY as RefineFormPage,
|
|
179
|
-
|
|
183
|
+
dk as RelationPlugin,
|
|
180
184
|
aI as ReplicaField,
|
|
181
|
-
|
|
185
|
+
d4 as ReplicaSetModel,
|
|
182
186
|
h as ReplicasColumnRenderer,
|
|
183
187
|
ah as ReplicasDropdown,
|
|
184
188
|
ao as ResourceCRUD,
|
|
185
189
|
an as ResourceForm,
|
|
186
190
|
bQ as ResourceLink,
|
|
187
191
|
al as ResourceList,
|
|
188
|
-
|
|
192
|
+
d3 as ResourceModel,
|
|
189
193
|
c9 as ResourceSelect,
|
|
190
194
|
am as ResourceShow,
|
|
191
|
-
|
|
195
|
+
cO as ResourceState,
|
|
192
196
|
cc as ResourceTable,
|
|
193
197
|
bi as ResourceTableField,
|
|
194
198
|
bB as ResourceTableGroup,
|
|
@@ -197,20 +201,20 @@ export {
|
|
|
197
201
|
Q as SCAllowExpandColumnRenderer,
|
|
198
202
|
O as SCReclaimPolicyColumnRenderer,
|
|
199
203
|
bg as SCReclaimPolicyField,
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
204
|
+
cG as SECRET_BASIC_AUTH_INIT_VALUE,
|
|
205
|
+
cJ as SECRET_CUSTOM_INIT_VALUE,
|
|
206
|
+
cF as SECRET_IMAGE_REPO_INIT_VALUE,
|
|
207
|
+
cE as SECRET_OPAQUE_INIT_VALUE,
|
|
208
|
+
cH as SECRET_SSH_AUTH_INIT_VALUE,
|
|
209
|
+
cI as SECRET_TLS_INIT_VALUE,
|
|
210
|
+
cC as SERVER_INSTANCE_INIT_VALUE,
|
|
211
|
+
cu as SERVICE_CLUSTER_IP_INIT_VALUE,
|
|
212
|
+
cx as SERVICE_EXTERNAL_NAME_INIT_VALUE,
|
|
213
|
+
cy as SERVICE_HEADLESS_INIT_VALUE,
|
|
214
|
+
cw as SERVICE_LOAD_BALANCER_INIT_VALUE,
|
|
215
|
+
cv as SERVICE_NODE_PORT_INIT_VALUE,
|
|
216
|
+
cs as STATEFULSET_INIT_VALUE,
|
|
217
|
+
cL as STORAGE_CLASS_INIT_VALUE,
|
|
214
218
|
bZ as SchemaStrategy,
|
|
215
219
|
aO as SecretDataField,
|
|
216
220
|
bs as SecretDataGroup,
|
|
@@ -220,7 +224,7 @@ export {
|
|
|
220
224
|
c1 as ServiceInClusterAccessComponent,
|
|
221
225
|
l as ServiceInClusterAccessTitle,
|
|
222
226
|
a_ as ServiceInnerClusterAccessField,
|
|
223
|
-
|
|
227
|
+
db as ServiceModel,
|
|
224
228
|
o as ServiceOutClusterAccessColumnRenderer,
|
|
225
229
|
c2 as ServiceOutClusterAccessComponent,
|
|
226
230
|
a$ as ServiceOutClusterAccessField,
|
|
@@ -228,7 +232,7 @@ export {
|
|
|
228
232
|
aT as ServicePodsField,
|
|
229
233
|
bo as ServicePodsGroup,
|
|
230
234
|
k as ServiceTypeColumnRenderer,
|
|
231
|
-
|
|
235
|
+
da as ServiceTypeEnum,
|
|
232
236
|
aQ as ServiceTypeField,
|
|
233
237
|
aS as SessionAffinityField,
|
|
234
238
|
bC as ShowContent,
|
|
@@ -237,8 +241,8 @@ export {
|
|
|
237
241
|
aP as StartTimeField,
|
|
238
242
|
S as StateDisplayColumnRenderer,
|
|
239
243
|
bI as StateTag,
|
|
240
|
-
|
|
241
|
-
|
|
244
|
+
d9 as StatefulSetModel,
|
|
245
|
+
de as StorageClassModel,
|
|
242
246
|
b3 as StorageClassProvisionerField,
|
|
243
247
|
b4 as StorageClassPvField,
|
|
244
248
|
bA as StorageClassPvGroup,
|
|
@@ -247,12 +251,12 @@ export {
|
|
|
247
251
|
c3 as Tags,
|
|
248
252
|
c4 as TextTags,
|
|
249
253
|
ac as Time,
|
|
250
|
-
|
|
254
|
+
dw as ValidateRfc1035Name,
|
|
251
255
|
a0 as ValueDisplay,
|
|
252
|
-
|
|
256
|
+
d0 as WorkloadBaseModel,
|
|
253
257
|
ag as WorkloadDropdown,
|
|
254
258
|
W as WorkloadImageColumnRenderer,
|
|
255
|
-
|
|
259
|
+
c$ as WorkloadModel,
|
|
256
260
|
ap as WorkloadPodsTable,
|
|
257
261
|
ax as WorkloadReplicas,
|
|
258
262
|
aw as WorkloadReplicasForm,
|
|
@@ -261,17 +265,17 @@ export {
|
|
|
261
265
|
U as addDefaultRenderToColumns,
|
|
262
266
|
a4 as dnsSubDomainRules,
|
|
263
267
|
d as dovetailRefineI18n,
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
dn as generateSchemaTypeValue,
|
|
269
|
+
dm as generateValueFromSchema,
|
|
270
|
+
dq as getApiVersion,
|
|
271
|
+
dt as getResourceNameByKind,
|
|
272
|
+
ds as matchSelector,
|
|
273
|
+
dj as modelPlugin,
|
|
270
274
|
a8 as namespaceRules,
|
|
271
|
-
|
|
272
|
-
|
|
275
|
+
dr as pruneBeforeEdit,
|
|
276
|
+
dl as relationPlugin,
|
|
273
277
|
bW as renderCommonFormFiled,
|
|
274
|
-
|
|
278
|
+
dp as resolveRef,
|
|
275
279
|
a6 as rfc1035LabelRules,
|
|
276
280
|
a5 as rfc1123LabelRules,
|
|
277
281
|
r as routerProvider,
|
|
@@ -288,11 +292,12 @@ export {
|
|
|
288
292
|
$ as useOpenForm,
|
|
289
293
|
b$ as useRefineForm,
|
|
290
294
|
b as useSchema,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
295
|
+
dA as validateDataKey,
|
|
296
|
+
dx as validateDnsSubdomainName,
|
|
297
|
+
dy as validateLabelKey,
|
|
298
|
+
dz as validateLabelValue,
|
|
299
|
+
dC as validateNodePort,
|
|
300
|
+
dB as validatePort,
|
|
301
|
+
du as validateResourceName,
|
|
302
|
+
dv as validateRfc1123Name
|
|
298
303
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { i18n as I18n } from 'i18next';
|
|
2
|
-
export declare function validateDnsSubdomain(subdomain: string): {
|
|
3
|
-
isValid: boolean;
|
|
4
|
-
errorMessage?: string;
|
|
5
|
-
};
|
|
6
2
|
interface ValidateResourceNameOptions {
|
|
7
3
|
v: string;
|
|
8
4
|
allNames: string[];
|
|
@@ -11,8 +7,9 @@ interface ValidateResourceNameOptions {
|
|
|
11
7
|
duplicatedText?: string;
|
|
12
8
|
formatErrorText: string;
|
|
13
9
|
regex: RegExp;
|
|
10
|
+
maxLength?: number;
|
|
14
11
|
}
|
|
15
|
-
export declare function validateResourceName({ v, allNames, i18n, emptyText, duplicatedText, formatErrorText, regex, }: ValidateResourceNameOptions): {
|
|
12
|
+
export declare function validateResourceName({ v, allNames, i18n, emptyText, duplicatedText, formatErrorText, regex, maxLength, }: ValidateResourceNameOptions): {
|
|
16
13
|
isValid: boolean;
|
|
17
14
|
errorMessage: string;
|
|
18
15
|
} | {
|
|
@@ -33,11 +30,22 @@ export declare function ValidateRfc1035Name({ v, allNames, i18n, emptyText, dupl
|
|
|
33
30
|
isValid: boolean;
|
|
34
31
|
errorMessage?: undefined;
|
|
35
32
|
};
|
|
33
|
+
export declare function validateDnsSubdomainName({ v, allNames, i18n, emptyText, duplicatedText, }: Omit<ValidateResourceNameOptions, 'regex' | 'formatErrorText'>): {
|
|
34
|
+
isValid: boolean;
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
} | {
|
|
37
|
+
isValid: boolean;
|
|
38
|
+
errorMessage?: undefined;
|
|
39
|
+
};
|
|
36
40
|
export declare function validateLabelKey(key: string): {
|
|
37
41
|
isValid: boolean;
|
|
38
42
|
errorMessage?: string;
|
|
39
43
|
};
|
|
40
|
-
export declare function validateLabelValue(value: string, isOptional?: boolean): {
|
|
44
|
+
export declare function validateLabelValue(value: string, i18n: I18n, isOptional?: boolean): {
|
|
45
|
+
isValid: boolean;
|
|
46
|
+
errorMessage?: string;
|
|
47
|
+
};
|
|
48
|
+
export declare function validateDataKey(key: string): {
|
|
41
49
|
isValid: boolean;
|
|
42
50
|
errorMessage?: string;
|
|
43
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9-alpha.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"jest": "^29",
|
|
80
80
|
"jest-environment-jsdom": "^30.0.0",
|
|
81
81
|
"kubernetes-types": "^1.26.0",
|
|
82
|
+
"prettier": "2.8.8",
|
|
82
83
|
"sass": "1.51.0",
|
|
83
84
|
"ts-jest": "^29",
|
|
84
85
|
"vite": "^4.5.2",
|