@dovetail-v2/refine 0.1.5-alpha.2 → 0.1.5
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-d4280e1a.js → MonacoYamlDiffEditor-c2239ccf.js} +1 -1
- package/dist/{index-ac7d0fe5.js → index-bac1b88c.js} +173 -175
- package/dist/refine.js +170 -169
- package/dist/refine.umd.cjs +4 -6
- package/lib/src/components/index.d.ts +1 -0
- package/lib/src/hooks/useSchema.d.ts +2 -2
- package/package.json +3 -3
|
@@ -8135,14 +8135,14 @@ class K8sOpenAPI {
|
|
|
8135
8135
|
});
|
|
8136
8136
|
}
|
|
8137
8137
|
}
|
|
8138
|
-
function useApiGroupSchema(
|
|
8138
|
+
function useApiGroupSchema() {
|
|
8139
8139
|
const [state2, setState] = useState({
|
|
8140
8140
|
schemas: null,
|
|
8141
8141
|
schemasMap: {},
|
|
8142
8142
|
loading: false,
|
|
8143
8143
|
error: null
|
|
8144
8144
|
});
|
|
8145
|
-
const fetchSchema = useCallback(async () => {
|
|
8145
|
+
const fetchSchema = useCallback(async (apiGroups) => {
|
|
8146
8146
|
setState((prev) => ({ ...prev, loading: true, error: null }));
|
|
8147
8147
|
try {
|
|
8148
8148
|
const results = await Promise.all(
|
|
@@ -8169,10 +8169,7 @@ function useApiGroupSchema(apiGroups) {
|
|
|
8169
8169
|
} catch (e2) {
|
|
8170
8170
|
setState((prev) => ({ ...prev, loading: false, error: e2 }));
|
|
8171
8171
|
}
|
|
8172
|
-
}, [
|
|
8173
|
-
useEffect(() => {
|
|
8174
|
-
fetchSchema();
|
|
8175
|
-
}, [fetchSchema]);
|
|
8172
|
+
}, [state2.schemasMap]);
|
|
8176
8173
|
return { ...state2, fetchSchema };
|
|
8177
8174
|
}
|
|
8178
8175
|
function useSchema(options) {
|
|
@@ -37339,7 +37336,7 @@ const Separator = () => {
|
|
|
37339
37336
|
});
|
|
37340
37337
|
};
|
|
37341
37338
|
const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
37342
|
-
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-
|
|
37339
|
+
const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-c2239ccf.js"));
|
|
37343
37340
|
const YamlEditorComponent = forwardRef(
|
|
37344
37341
|
function YamlEditorComponent2(props, ref) {
|
|
37345
37342
|
const {
|
|
@@ -39413,7 +39410,7 @@ export {
|
|
|
39413
39410
|
dnsSubDomainRules as Z,
|
|
39414
39411
|
rfc1123LabelRules as _,
|
|
39415
39412
|
useApiGroupSchema as a,
|
|
39416
|
-
|
|
39413
|
+
PVAccessModeField as a$,
|
|
39417
39414
|
NamespaceSelectWidget as a0,
|
|
39418
39415
|
namespaceRules as a1,
|
|
39419
39416
|
KeyValueListWidget as a2,
|
|
@@ -39421,175 +39418,176 @@ export {
|
|
|
39421
39418
|
PageShow as a4,
|
|
39422
39419
|
Time as a5,
|
|
39423
39420
|
ConditionsTable as a6,
|
|
39424
|
-
|
|
39425
|
-
|
|
39426
|
-
|
|
39427
|
-
|
|
39428
|
-
|
|
39429
|
-
|
|
39430
|
-
|
|
39431
|
-
|
|
39432
|
-
|
|
39433
|
-
|
|
39434
|
-
|
|
39435
|
-
|
|
39436
|
-
|
|
39437
|
-
|
|
39438
|
-
|
|
39439
|
-
|
|
39440
|
-
|
|
39441
|
-
|
|
39442
|
-
|
|
39443
|
-
|
|
39444
|
-
|
|
39445
|
-
|
|
39446
|
-
|
|
39447
|
-
|
|
39448
|
-
|
|
39449
|
-
|
|
39450
|
-
|
|
39451
|
-
|
|
39452
|
-
|
|
39453
|
-
|
|
39454
|
-
|
|
39455
|
-
|
|
39456
|
-
|
|
39457
|
-
|
|
39458
|
-
|
|
39459
|
-
|
|
39460
|
-
|
|
39461
|
-
|
|
39462
|
-
|
|
39463
|
-
|
|
39464
|
-
|
|
39465
|
-
|
|
39466
|
-
|
|
39467
|
-
|
|
39468
|
-
|
|
39469
|
-
|
|
39470
|
-
|
|
39471
|
-
|
|
39472
|
-
|
|
39473
|
-
|
|
39474
|
-
|
|
39475
|
-
|
|
39476
|
-
|
|
39477
|
-
|
|
39478
|
-
|
|
39479
|
-
|
|
39421
|
+
FormErrorAlert as a7,
|
|
39422
|
+
PodContainersTable as a8,
|
|
39423
|
+
WorkloadDropdown as a9,
|
|
39424
|
+
PodsField as aA,
|
|
39425
|
+
JobsField as aB,
|
|
39426
|
+
DataField as aC,
|
|
39427
|
+
SecretDataField as aD,
|
|
39428
|
+
StartTimeField as aE,
|
|
39429
|
+
ServiceTypeField as aF,
|
|
39430
|
+
ClusterIpField as aG,
|
|
39431
|
+
SessionAffinityField as aH,
|
|
39432
|
+
ServicePodsField as aI,
|
|
39433
|
+
IngressRulesTableTabField as aJ,
|
|
39434
|
+
EventsTableTabField as aK,
|
|
39435
|
+
NamespaceField as aL,
|
|
39436
|
+
AgeField as aM,
|
|
39437
|
+
LabelsField as aN,
|
|
39438
|
+
AnnotationsField as aO,
|
|
39439
|
+
ServiceInnerClusterAccessField as aP,
|
|
39440
|
+
ServiceOutClusterAccessField as aQ,
|
|
39441
|
+
PodSelectorField as aR,
|
|
39442
|
+
PortsTableField as aS,
|
|
39443
|
+
DurationField as aT,
|
|
39444
|
+
StorageClassProvisionerField as aU,
|
|
39445
|
+
StorageClassPvField as aV,
|
|
39446
|
+
PVCapacityField as aW,
|
|
39447
|
+
PVCStorageField as aX,
|
|
39448
|
+
PVStorageClassField as aY,
|
|
39449
|
+
PVPhaseField as aZ,
|
|
39450
|
+
PVVolumeModeField as a_,
|
|
39451
|
+
ReplicasDropdown as aa,
|
|
39452
|
+
PodDropdown as ab,
|
|
39453
|
+
CreateButton as ac,
|
|
39454
|
+
ImageNames as ad,
|
|
39455
|
+
ResourceList as ae,
|
|
39456
|
+
ResourceShow as af,
|
|
39457
|
+
ResourceForm as ag,
|
|
39458
|
+
ResourceCRUD as ah,
|
|
39459
|
+
WorkloadPodsTable as ai,
|
|
39460
|
+
CronJobDropdown as aj,
|
|
39461
|
+
K8sDropdown as ak,
|
|
39462
|
+
ResourceUsageBar as al,
|
|
39463
|
+
WorkloadReplicasForm as am,
|
|
39464
|
+
WorkloadReplicas as an,
|
|
39465
|
+
CronjobJobsTable as ao,
|
|
39466
|
+
KeyValue as ap,
|
|
39467
|
+
KeyValueAnnotation as aq,
|
|
39468
|
+
KeyValueSecret as ar,
|
|
39469
|
+
Separator as as,
|
|
39470
|
+
YamlEditorComponent as at,
|
|
39471
|
+
DeleteButton as au,
|
|
39472
|
+
Layout as av,
|
|
39473
|
+
AreaType as aw,
|
|
39474
|
+
ImageField as ax,
|
|
39475
|
+
ReplicaField as ay,
|
|
39476
|
+
ConditionsField as az,
|
|
39480
39477
|
useSchema as b,
|
|
39481
|
-
|
|
39482
|
-
|
|
39483
|
-
|
|
39484
|
-
|
|
39485
|
-
|
|
39486
|
-
|
|
39487
|
-
|
|
39488
|
-
|
|
39489
|
-
|
|
39490
|
-
|
|
39491
|
-
|
|
39492
|
-
|
|
39493
|
-
|
|
39494
|
-
|
|
39495
|
-
|
|
39496
|
-
|
|
39497
|
-
|
|
39498
|
-
|
|
39499
|
-
|
|
39500
|
-
|
|
39501
|
-
|
|
39502
|
-
|
|
39503
|
-
|
|
39504
|
-
|
|
39505
|
-
|
|
39506
|
-
|
|
39507
|
-
|
|
39508
|
-
|
|
39509
|
-
|
|
39510
|
-
|
|
39511
|
-
|
|
39512
|
-
|
|
39513
|
-
|
|
39514
|
-
|
|
39515
|
-
|
|
39516
|
-
|
|
39517
|
-
|
|
39518
|
-
|
|
39519
|
-
|
|
39520
|
-
|
|
39521
|
-
|
|
39522
|
-
|
|
39523
|
-
|
|
39524
|
-
|
|
39525
|
-
|
|
39526
|
-
|
|
39527
|
-
|
|
39528
|
-
|
|
39529
|
-
|
|
39530
|
-
|
|
39531
|
-
|
|
39532
|
-
|
|
39533
|
-
|
|
39534
|
-
|
|
39535
|
-
|
|
39536
|
-
|
|
39537
|
-
|
|
39538
|
-
|
|
39539
|
-
|
|
39540
|
-
|
|
39541
|
-
|
|
39542
|
-
|
|
39543
|
-
|
|
39544
|
-
|
|
39478
|
+
INGRESS_INIT_VALUE as b$,
|
|
39479
|
+
EventsTab as b0,
|
|
39480
|
+
PodLogTab as b1,
|
|
39481
|
+
BasicGroup as b2,
|
|
39482
|
+
PodsGroup as b3,
|
|
39483
|
+
PodContainersGroup as b4,
|
|
39484
|
+
ServicePodsGroup as b5,
|
|
39485
|
+
ConditionsGroup as b6,
|
|
39486
|
+
SecretDataGroup as b7,
|
|
39487
|
+
JobsGroup as b8,
|
|
39488
|
+
IngressRulesGroup as b9,
|
|
39489
|
+
useRefineForm as bA,
|
|
39490
|
+
ServiceInClusterAccessComponent as bB,
|
|
39491
|
+
ServiceOutClusterAccessComponent as bC,
|
|
39492
|
+
Tags as bD,
|
|
39493
|
+
TextTags as bE,
|
|
39494
|
+
PodLog as bF,
|
|
39495
|
+
NetworkPolicyRulesViewer as bG,
|
|
39496
|
+
PVPhaseDisplay as bH,
|
|
39497
|
+
PVVolumeModeDisplay as bI,
|
|
39498
|
+
Tabs as bJ,
|
|
39499
|
+
ResourceSelect as bK,
|
|
39500
|
+
SocketStatus as bL,
|
|
39501
|
+
Shell as bM,
|
|
39502
|
+
PodShellModal as bN,
|
|
39503
|
+
PodShell as bO,
|
|
39504
|
+
BASE_INIT_VALUE as bP,
|
|
39505
|
+
DEPLOYMENT_INIT_VALUE as bQ,
|
|
39506
|
+
CRONJOB_INIT_VALUE as bR,
|
|
39507
|
+
DAEMONSET_INIT_VALUE as bS,
|
|
39508
|
+
JOB_INIT_VALUE as bT,
|
|
39509
|
+
STATEFULSET_INIT_VALUE as bU,
|
|
39510
|
+
POD_INIT_VALUE as bV,
|
|
39511
|
+
SERVICE_CLUSTER_IP_INIT_VALUE as bW,
|
|
39512
|
+
SERVICE_NODE_PORT_INIT_VALUE as bX,
|
|
39513
|
+
SERVICE_LOAD_BALANCER_INIT_VALUE as bY,
|
|
39514
|
+
SERVICE_EXTERNAL_NAME_INIT_VALUE as bZ,
|
|
39515
|
+
SERVICE_HEADLESS_INIT_VALUE as b_,
|
|
39516
|
+
PodSelectorGroup as ba,
|
|
39517
|
+
PortsGroup as bb,
|
|
39518
|
+
DataGroup as bc,
|
|
39519
|
+
NetworkPolicyIngressRulesGroup as bd,
|
|
39520
|
+
NetworkPolicyEgressRulesGroup as be,
|
|
39521
|
+
StorageClassPvGroup as bf,
|
|
39522
|
+
ShowGroupComponent as bg,
|
|
39523
|
+
ShowContent as bh,
|
|
39524
|
+
DeleteManyButton as bi,
|
|
39525
|
+
ListPage as bj,
|
|
39526
|
+
StateTagStyle as bk,
|
|
39527
|
+
StateTag as bl,
|
|
39528
|
+
DrawerShow as bm,
|
|
39529
|
+
Menu as bn,
|
|
39530
|
+
EditButton as bo,
|
|
39531
|
+
ReferenceLink as bp,
|
|
39532
|
+
ResourceLink as bq,
|
|
39533
|
+
NS_STORE_KEY as br,
|
|
39534
|
+
ALL_NS as bs,
|
|
39535
|
+
useNamespacesFilter as bt,
|
|
39536
|
+
NamespacesFilter as bu,
|
|
39537
|
+
FormModal as bv,
|
|
39538
|
+
RefineFormContent as bw,
|
|
39539
|
+
RefineFormPage as bx,
|
|
39540
|
+
SchemaStrategy as by,
|
|
39541
|
+
YamlForm as bz,
|
|
39545
39542
|
useDeleteModal as c,
|
|
39546
|
-
|
|
39547
|
-
|
|
39548
|
-
|
|
39549
|
-
|
|
39550
|
-
|
|
39551
|
-
|
|
39552
|
-
|
|
39553
|
-
|
|
39554
|
-
|
|
39555
|
-
|
|
39556
|
-
|
|
39557
|
-
|
|
39558
|
-
|
|
39559
|
-
|
|
39560
|
-
|
|
39561
|
-
|
|
39562
|
-
|
|
39563
|
-
|
|
39564
|
-
|
|
39565
|
-
|
|
39566
|
-
|
|
39567
|
-
|
|
39568
|
-
|
|
39569
|
-
|
|
39570
|
-
|
|
39571
|
-
|
|
39572
|
-
|
|
39573
|
-
|
|
39574
|
-
|
|
39575
|
-
|
|
39576
|
-
|
|
39577
|
-
|
|
39578
|
-
|
|
39579
|
-
|
|
39580
|
-
|
|
39581
|
-
|
|
39582
|
-
|
|
39583
|
-
|
|
39584
|
-
|
|
39585
|
-
|
|
39586
|
-
|
|
39587
|
-
|
|
39588
|
-
|
|
39589
|
-
|
|
39590
|
-
|
|
39591
|
-
|
|
39592
|
-
|
|
39543
|
+
NETWORK_POLICY_INIT_VALUE as c0,
|
|
39544
|
+
CONFIG_MAP_INIT_VALUE as c1,
|
|
39545
|
+
SERVER_INSTANCE_INIT_VALUE as c2,
|
|
39546
|
+
TIMESTAMP_LABEL as c3,
|
|
39547
|
+
SECRET_OPAQUE_INIT_VALUE as c4,
|
|
39548
|
+
SECRET_IMAGE_REPO_INIT_VALUE as c5,
|
|
39549
|
+
SECRET_BASIC_AUTH_INIT_VALUE as c6,
|
|
39550
|
+
SECRET_SSH_AUTH_INIT_VALUE as c7,
|
|
39551
|
+
SECRET_TLS_INIT_VALUE as c8,
|
|
39552
|
+
SECRET_CUSTOM_INIT_VALUE as c9,
|
|
39553
|
+
NodeModel as cA,
|
|
39554
|
+
StorageClassModel as cB,
|
|
39555
|
+
PersistentVolumeModel as cC,
|
|
39556
|
+
PersistentVolumeClaimModel as cD,
|
|
39557
|
+
ProviderPlugins as cE,
|
|
39558
|
+
ModelPlugin as cF,
|
|
39559
|
+
modelPlugin as cG,
|
|
39560
|
+
RelationPlugin as cH,
|
|
39561
|
+
relationPlugin as cI,
|
|
39562
|
+
generateValueFromSchema as cJ,
|
|
39563
|
+
generateSchemaTypeValue as cK,
|
|
39564
|
+
resolveRef as cL,
|
|
39565
|
+
NODE_INIT_VALUE as ca,
|
|
39566
|
+
STORAGE_CLASS_INIT_VALUE as cb,
|
|
39567
|
+
WorkloadState as cc,
|
|
39568
|
+
AccessControlAuth as cd,
|
|
39569
|
+
Dovetail as ce,
|
|
39570
|
+
RESOURCE_GROUP as cf,
|
|
39571
|
+
FormType as cg,
|
|
39572
|
+
ComponentContext as ch,
|
|
39573
|
+
GlobalStoreContext as ci,
|
|
39574
|
+
ConfigsContext as cj,
|
|
39575
|
+
IngressModel as ck,
|
|
39576
|
+
NetworkPolicyModel as cl,
|
|
39577
|
+
JobModel as cm,
|
|
39578
|
+
WorkloadModel as cn,
|
|
39579
|
+
WorkloadBaseModel as co,
|
|
39580
|
+
PodModel as cp,
|
|
39581
|
+
PodMetricsModel as cq,
|
|
39582
|
+
ResourceModel as cr,
|
|
39583
|
+
CronJobModel as cs,
|
|
39584
|
+
EventModel as ct,
|
|
39585
|
+
DeploymentModel as cu,
|
|
39586
|
+
DaemonSetModel as cv,
|
|
39587
|
+
StatefulSetModel as cw,
|
|
39588
|
+
ServiceTypeEnum as cx,
|
|
39589
|
+
ServiceModel as cy,
|
|
39590
|
+
NodeRole as cz,
|
|
39593
39591
|
dovetailRefineI18n as d,
|
|
39594
39592
|
NameSpaceColumnRenderer as e,
|
|
39595
39593
|
WorkloadRestartsColumnRenderer as f,
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bs, cd, A, aM, aO, aw, bP, b2, X, c1, bR, aG, J, C, i, ch, az, b6, a6, cj, ac, aj, cs, ao, bS, bQ, cv, aC, bc, w, au, bi, cu, ce, bm, D, aT, bo, ct, b0, aK, a7, bv, cg, ci, b$, ax, ad, s, q, ck, I, b9, aJ, t, bT, cm, aB, b8, ak, ap, aq, a2, ar, aN, av, bj, bn, a3, M, cF, c0, ca, br, N, Y, e, aL, a0, bu, be, bd, cl, bG, cA, g, cz, bV, H, a$, B, aX, z, aW, F, bH, aZ, E, aY, G, bI, a_, a4, cD, cC, P, b4, v, a8, ab, bF, b1, cq, cp, aR, ba, bO, bN, p, aA, b3, x, bb, aS, cE, y, cf, bp, bw, bx, cH, ay, R, aa, ah, ag, bq, ae, cr, bK, af, al, h, c6, c9, c5, c4, c7, c8, c2, bW, bZ, b_, bY, bX, bU, cb, by, aD, b7, as, m, bB, l, aP, cy, o, bC, aQ, n, aI, b5, k, cx, aF, aH, bM, bh, bg, bL, aE, S, bl, bk, cw, cB, aU, aV, bf, c3, bJ, bD, bE, a5, V, co, a9, W, cn, ai, an, am, f, cc, at, bz, K, Z, d, cK, cJ, cG, a1, cI, cL, $, _, r, a, c, O, L, Q, T, u, bt, U, bA, b } from "./index-bac1b88c.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "react";
|
|
@@ -15,220 +15,221 @@ import "monaco-yaml";
|
|
|
15
15
|
import "react-dom";
|
|
16
16
|
import "antd";
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
bs as ALL_NS,
|
|
19
|
+
cd as AccessControlAuth,
|
|
20
20
|
A as AgeColumnRenderer,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
aM as AgeField,
|
|
22
|
+
aO as AnnotationsField,
|
|
23
|
+
aw as AreaType,
|
|
24
|
+
bP as BASE_INIT_VALUE,
|
|
25
|
+
b2 as BasicGroup,
|
|
26
26
|
X as Breadcrumb,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
c1 as CONFIG_MAP_INIT_VALUE,
|
|
28
|
+
bR as CRONJOB_INIT_VALUE,
|
|
29
|
+
aG as ClusterIpField,
|
|
30
30
|
J as ColumnKeys,
|
|
31
31
|
C as CommonSorter,
|
|
32
32
|
i as CompletionsCountColumnRenderer,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
ch as ComponentContext,
|
|
34
|
+
az as ConditionsField,
|
|
35
|
+
b6 as ConditionsGroup,
|
|
36
36
|
a6 as ConditionsTable,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
37
|
+
cj as ConfigsContext,
|
|
38
|
+
ac as CreateButton,
|
|
39
|
+
aj as CronJobDropdown,
|
|
40
|
+
cs as CronJobModel,
|
|
41
|
+
ao as CronjobJobsTable,
|
|
42
|
+
bS as DAEMONSET_INIT_VALUE,
|
|
43
|
+
bQ as DEPLOYMENT_INIT_VALUE,
|
|
44
|
+
cv as DaemonSetModel,
|
|
45
|
+
aC as DataField,
|
|
46
|
+
bc as DataGroup,
|
|
47
47
|
w as DataKeysColumnRenderer,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
au as DeleteButton,
|
|
49
|
+
bi as DeleteManyButton,
|
|
50
|
+
cu as DeploymentModel,
|
|
51
|
+
ce as Dovetail,
|
|
52
|
+
bm as DrawerShow,
|
|
53
53
|
D as DurationColumnRenderer,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
54
|
+
aT as DurationField,
|
|
55
|
+
bo as EditButton,
|
|
56
|
+
ct as EventModel,
|
|
57
|
+
b0 as EventsTab,
|
|
58
|
+
aK as EventsTableTabField,
|
|
59
|
+
a7 as FormErrorAlert,
|
|
60
|
+
bv as FormModal,
|
|
61
|
+
cg as FormType,
|
|
62
|
+
ci as GlobalStoreContext,
|
|
63
|
+
b$ as INGRESS_INIT_VALUE,
|
|
64
|
+
ax as ImageField,
|
|
65
|
+
ad as ImageNames,
|
|
65
66
|
s as IngressClassColumnRenderer,
|
|
66
67
|
q as IngressDefaultBackendColumnRenderer,
|
|
67
|
-
|
|
68
|
+
ck as IngressModel,
|
|
68
69
|
I as IngressRulesColumnRenderer,
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
b9 as IngressRulesGroup,
|
|
71
|
+
aJ as IngressRulesTableTabField,
|
|
71
72
|
t as IngressTlsColumnRenderer,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
bT as JOB_INIT_VALUE,
|
|
74
|
+
cm as JobModel,
|
|
75
|
+
aB as JobsField,
|
|
76
|
+
b8 as JobsGroup,
|
|
77
|
+
ak as K8sDropdown,
|
|
78
|
+
ap as KeyValue,
|
|
79
|
+
aq as KeyValueAnnotation,
|
|
79
80
|
a2 as KeyValueListWidget,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
ar as KeyValueSecret,
|
|
82
|
+
aN as LabelsField,
|
|
83
|
+
av as Layout,
|
|
84
|
+
bj as ListPage,
|
|
85
|
+
bn as Menu,
|
|
85
86
|
a3 as MetadataForm,
|
|
86
87
|
M as ModalStyle,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
cF as ModelPlugin,
|
|
89
|
+
c0 as NETWORK_POLICY_INIT_VALUE,
|
|
90
|
+
ca as NODE_INIT_VALUE,
|
|
91
|
+
br as NS_STORE_KEY,
|
|
91
92
|
N as NameColumnRenderer,
|
|
92
93
|
Y as NameInputWidget,
|
|
93
94
|
e as NameSpaceColumnRenderer,
|
|
94
|
-
|
|
95
|
+
aL as NamespaceField,
|
|
95
96
|
a0 as NamespaceSelectWidget,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
97
|
+
bu as NamespacesFilter,
|
|
98
|
+
be as NetworkPolicyEgressRulesGroup,
|
|
99
|
+
bd as NetworkPolicyIngressRulesGroup,
|
|
100
|
+
cl as NetworkPolicyModel,
|
|
101
|
+
bG as NetworkPolicyRulesViewer,
|
|
102
|
+
cA as NodeModel,
|
|
102
103
|
g as NodeNameColumnRenderer,
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
cz as NodeRole,
|
|
105
|
+
bV as POD_INIT_VALUE,
|
|
105
106
|
H as PVAccessModeColumnRenderer,
|
|
106
|
-
|
|
107
|
+
a$ as PVAccessModeField,
|
|
107
108
|
B as PVCStorageColumnRenderer,
|
|
108
|
-
|
|
109
|
+
aX as PVCStorageField,
|
|
109
110
|
z as PVCapacityColumnRenderer,
|
|
110
|
-
|
|
111
|
+
aW as PVCapacityField,
|
|
111
112
|
F as PVPhaseColumnRenderer,
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
bH as PVPhaseDisplay,
|
|
114
|
+
aZ as PVPhaseField,
|
|
114
115
|
E as PVStorageClassColumnRenderer,
|
|
115
|
-
|
|
116
|
+
aY as PVStorageClassField,
|
|
116
117
|
G as PVVolumeModeColumnRenderer,
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
bI as PVVolumeModeDisplay,
|
|
119
|
+
a_ as PVVolumeModeField,
|
|
119
120
|
a4 as PageShow,
|
|
120
|
-
|
|
121
|
-
|
|
121
|
+
cD as PersistentVolumeClaimModel,
|
|
122
|
+
cC as PersistentVolumeModel,
|
|
122
123
|
P as PlainTextNameColumnRenderer,
|
|
123
|
-
|
|
124
|
+
b4 as PodContainersGroup,
|
|
124
125
|
v as PodContainersNumColumnRenderer,
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
126
|
+
a8 as PodContainersTable,
|
|
127
|
+
ab as PodDropdown,
|
|
128
|
+
bF as PodLog,
|
|
129
|
+
b1 as PodLogTab,
|
|
130
|
+
cq as PodMetricsModel,
|
|
131
|
+
cp as PodModel,
|
|
132
|
+
aR as PodSelectorField,
|
|
133
|
+
ba as PodSelectorGroup,
|
|
134
|
+
bO as PodShell,
|
|
135
|
+
bN as PodShellModal,
|
|
135
136
|
p as PodWorkloadColumnRenderer,
|
|
136
|
-
|
|
137
|
-
|
|
137
|
+
aA as PodsField,
|
|
138
|
+
b3 as PodsGroup,
|
|
138
139
|
x as PortMappingColumnRenderer,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
bb as PortsGroup,
|
|
141
|
+
aS as PortsTableField,
|
|
142
|
+
cE as ProviderPlugins,
|
|
142
143
|
y as ProvisionerColumnRenderer,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
144
|
+
cf as RESOURCE_GROUP,
|
|
145
|
+
bp as ReferenceLink,
|
|
146
|
+
bw as RefineFormContent,
|
|
147
|
+
bx as RefineFormPage,
|
|
148
|
+
cH as RelationPlugin,
|
|
149
|
+
ay as ReplicaField,
|
|
149
150
|
R as ReplicasColumnRenderer,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
151
|
+
aa as ReplicasDropdown,
|
|
152
|
+
ah as ResourceCRUD,
|
|
153
|
+
ag as ResourceForm,
|
|
154
|
+
bq as ResourceLink,
|
|
155
|
+
ae as ResourceList,
|
|
156
|
+
cr as ResourceModel,
|
|
157
|
+
bK as ResourceSelect,
|
|
158
|
+
af as ResourceShow,
|
|
159
|
+
al as ResourceUsageBar,
|
|
159
160
|
h as RestartCountColumnRenderer,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
161
|
+
c6 as SECRET_BASIC_AUTH_INIT_VALUE,
|
|
162
|
+
c9 as SECRET_CUSTOM_INIT_VALUE,
|
|
163
|
+
c5 as SECRET_IMAGE_REPO_INIT_VALUE,
|
|
164
|
+
c4 as SECRET_OPAQUE_INIT_VALUE,
|
|
165
|
+
c7 as SECRET_SSH_AUTH_INIT_VALUE,
|
|
166
|
+
c8 as SECRET_TLS_INIT_VALUE,
|
|
167
|
+
c2 as SERVER_INSTANCE_INIT_VALUE,
|
|
168
|
+
bW as SERVICE_CLUSTER_IP_INIT_VALUE,
|
|
169
|
+
bZ as SERVICE_EXTERNAL_NAME_INIT_VALUE,
|
|
170
|
+
b_ as SERVICE_HEADLESS_INIT_VALUE,
|
|
171
|
+
bY as SERVICE_LOAD_BALANCER_INIT_VALUE,
|
|
172
|
+
bX as SERVICE_NODE_PORT_INIT_VALUE,
|
|
173
|
+
bU as STATEFULSET_INIT_VALUE,
|
|
174
|
+
cb as STORAGE_CLASS_INIT_VALUE,
|
|
175
|
+
by as SchemaStrategy,
|
|
176
|
+
aD as SecretDataField,
|
|
177
|
+
b7 as SecretDataGroup,
|
|
178
|
+
as as Separator,
|
|
178
179
|
m as ServiceInClusterAccessColumnRenderer,
|
|
179
|
-
|
|
180
|
+
bB as ServiceInClusterAccessComponent,
|
|
180
181
|
l as ServiceInClusterAccessTitle,
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
aP as ServiceInnerClusterAccessField,
|
|
183
|
+
cy as ServiceModel,
|
|
183
184
|
o as ServiceOutClusterAccessColumnRenderer,
|
|
184
|
-
|
|
185
|
-
|
|
185
|
+
bC as ServiceOutClusterAccessComponent,
|
|
186
|
+
aQ as ServiceOutClusterAccessField,
|
|
186
187
|
n as ServiceOutClusterAccessTitle,
|
|
187
|
-
|
|
188
|
-
|
|
188
|
+
aI as ServicePodsField,
|
|
189
|
+
b5 as ServicePodsGroup,
|
|
189
190
|
k as ServiceTypeColumnRenderer,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
191
|
+
cx as ServiceTypeEnum,
|
|
192
|
+
aF as ServiceTypeField,
|
|
193
|
+
aH as SessionAffinityField,
|
|
194
|
+
bM as Shell,
|
|
195
|
+
bh as ShowContent,
|
|
196
|
+
bg as ShowGroupComponent,
|
|
197
|
+
bL as SocketStatus,
|
|
198
|
+
aE as StartTimeField,
|
|
198
199
|
S as StateDisplayColumnRenderer,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
200
|
+
bl as StateTag,
|
|
201
|
+
bk as StateTagStyle,
|
|
202
|
+
cw as StatefulSetModel,
|
|
203
|
+
cB as StorageClassModel,
|
|
204
|
+
aU as StorageClassProvisionerField,
|
|
205
|
+
aV as StorageClassPvField,
|
|
206
|
+
bf as StorageClassPvGroup,
|
|
207
|
+
c3 as TIMESTAMP_LABEL,
|
|
208
|
+
bJ as Tabs,
|
|
209
|
+
bD as Tags,
|
|
210
|
+
bE as TextTags,
|
|
210
211
|
a5 as Time,
|
|
211
212
|
V as ValueDisplay,
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
co as WorkloadBaseModel,
|
|
214
|
+
a9 as WorkloadDropdown,
|
|
214
215
|
W as WorkloadImageColumnRenderer,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
cn as WorkloadModel,
|
|
217
|
+
ai as WorkloadPodsTable,
|
|
218
|
+
an as WorkloadReplicas,
|
|
219
|
+
am as WorkloadReplicasForm,
|
|
219
220
|
f as WorkloadRestartsColumnRenderer,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
221
|
+
cc as WorkloadState,
|
|
222
|
+
at as YamlEditorComponent,
|
|
223
|
+
bz as YamlForm,
|
|
223
224
|
K as addDefaultRenderToColumns,
|
|
224
225
|
Z as dnsSubDomainRules,
|
|
225
226
|
d as dovetailRefineI18n,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
cK as generateSchemaTypeValue,
|
|
228
|
+
cJ as generateValueFromSchema,
|
|
229
|
+
cG as modelPlugin,
|
|
229
230
|
a1 as namespaceRules,
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
cI as relationPlugin,
|
|
232
|
+
cL as resolveRef,
|
|
232
233
|
$ as rfc1035LabelRules,
|
|
233
234
|
_ as rfc1123LabelRules,
|
|
234
235
|
r as routerProvider,
|
|
@@ -239,8 +240,8 @@ export {
|
|
|
239
240
|
Q as useEdit,
|
|
240
241
|
T as useGlobalStore,
|
|
241
242
|
u as useNamespaceRefineFilter,
|
|
242
|
-
|
|
243
|
+
bt as useNamespacesFilter,
|
|
243
244
|
U as useOpenForm,
|
|
244
|
-
|
|
245
|
+
bA as useRefineForm,
|
|
245
246
|
b as useSchema
|
|
246
247
|
};
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -8141,14 +8141,14 @@ var __publicField = (obj, key, value) => {
|
|
|
8141
8141
|
});
|
|
8142
8142
|
}
|
|
8143
8143
|
}
|
|
8144
|
-
function useApiGroupSchema(
|
|
8144
|
+
function useApiGroupSchema() {
|
|
8145
8145
|
const [state2, setState] = React.useState({
|
|
8146
8146
|
schemas: null,
|
|
8147
8147
|
schemasMap: {},
|
|
8148
8148
|
loading: false,
|
|
8149
8149
|
error: null
|
|
8150
8150
|
});
|
|
8151
|
-
const fetchSchema = React.useCallback(async () => {
|
|
8151
|
+
const fetchSchema = React.useCallback(async (apiGroups) => {
|
|
8152
8152
|
setState((prev) => ({ ...prev, loading: true, error: null }));
|
|
8153
8153
|
try {
|
|
8154
8154
|
const results = await Promise.all(
|
|
@@ -8175,10 +8175,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8175
8175
|
} catch (e2) {
|
|
8176
8176
|
setState((prev) => ({ ...prev, loading: false, error: e2 }));
|
|
8177
8177
|
}
|
|
8178
|
-
}, [
|
|
8179
|
-
React.useEffect(() => {
|
|
8180
|
-
fetchSchema();
|
|
8181
|
-
}, [fetchSchema]);
|
|
8178
|
+
}, [state2.schemasMap]);
|
|
8182
8179
|
return { ...state2, fetchSchema };
|
|
8183
8180
|
}
|
|
8184
8181
|
function useSchema(options) {
|
|
@@ -39470,6 +39467,7 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
39470
39467
|
exports2.EventModel = EventModel;
|
|
39471
39468
|
exports2.EventsTab = EventsTab;
|
|
39472
39469
|
exports2.EventsTableTabField = EventsTableTabField;
|
|
39470
|
+
exports2.FormErrorAlert = FormErrorAlert;
|
|
39473
39471
|
exports2.FormModal = FormModal;
|
|
39474
39472
|
exports2.FormType = FormType;
|
|
39475
39473
|
exports2.GlobalStoreContext = GlobalStoreContext;
|
|
@@ -4,6 +4,7 @@ export * from './PageShow';
|
|
|
4
4
|
export * from './Time';
|
|
5
5
|
export * from './ConditionsTable';
|
|
6
6
|
export * from './FormLayout';
|
|
7
|
+
export * from './FormErrorAlert';
|
|
7
8
|
export * from './PodContainersTable';
|
|
8
9
|
export * from './WorkloadDropdown';
|
|
9
10
|
export * from './ReplicasDropdown';
|
|
@@ -10,8 +10,8 @@ type UseSchemaResult = {
|
|
|
10
10
|
error: Error | null;
|
|
11
11
|
fetchSchema: () => void;
|
|
12
12
|
};
|
|
13
|
-
export declare function useApiGroupSchema(
|
|
14
|
-
fetchSchema: () => Promise<void>;
|
|
13
|
+
export declare function useApiGroupSchema(): {
|
|
14
|
+
fetchSchema: (apiGroups: string[]) => Promise<void>;
|
|
15
15
|
schemas: JSONSchema7[] | null;
|
|
16
16
|
schemasMap: Record<string, JSONSchema7[]>;
|
|
17
17
|
loading: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dovetail-v2/refine",
|
|
3
|
-
"version": "0.1.5
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -78,8 +78,8 @@
|
|
|
78
78
|
"vite-plugin-commonjs": "^0.10.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
|
-
"@cloudtower/eagle": "^0.31.
|
|
82
|
-
"@cloudtower/icons-react": "^0.31.
|
|
81
|
+
"@cloudtower/eagle": "^0.31.8",
|
|
82
|
+
"@cloudtower/icons-react": "^0.31.8",
|
|
83
83
|
"@refinedev/core": "^4.47.2",
|
|
84
84
|
"antd": "4.5.0",
|
|
85
85
|
"i18next": "^23.2.3",
|