@dovetail-v2/refine 0.0.8 → 0.0.10
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.aa479096.js → MonacoYamlDiffEditor.41b43f63.js} +1 -1
- package/dist/{index.5cb49249.js → index.fb9ce2b4.js} +104 -100
- package/dist/refine.js +49 -45
- package/dist/refine.umd.cjs +59 -55
- package/dist/style.css +2 -2
- package/lib/src/components/ListPage/index.d.ts +2 -2
- package/lib/src/components/ResourceCRUD/index.d.ts +3 -0
- package/lib/src/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -9606,6 +9606,59 @@ function WorkloadDropdown(props) {
|
|
|
9606
9606
|
}
|
|
9607
9607
|
) });
|
|
9608
9608
|
}
|
|
9609
|
+
const index_3lw8k1 = "";
|
|
9610
|
+
const ListPageStyle = "laykzsq";
|
|
9611
|
+
const TableStyle = "t1ng0psc";
|
|
9612
|
+
function ListPage(props) {
|
|
9613
|
+
const {
|
|
9614
|
+
title,
|
|
9615
|
+
selectedKeys,
|
|
9616
|
+
tableProps
|
|
9617
|
+
} = props;
|
|
9618
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9619
|
+
className: ListPageStyle,
|
|
9620
|
+
children: [/* @__PURE__ */ jsxRuntime.exports.jsx(TableToolBar, {
|
|
9621
|
+
title,
|
|
9622
|
+
selectedKeys
|
|
9623
|
+
}), /* @__PURE__ */ jsxRuntime.exports.jsx(Table, {
|
|
9624
|
+
...tableProps,
|
|
9625
|
+
className: TableStyle,
|
|
9626
|
+
scroll: {
|
|
9627
|
+
y: "calc(100% - 48px)"
|
|
9628
|
+
}
|
|
9629
|
+
})]
|
|
9630
|
+
});
|
|
9631
|
+
}
|
|
9632
|
+
function ResourceList(props) {
|
|
9633
|
+
const { formatter, name: name2, columns, Dropdown } = props;
|
|
9634
|
+
const { i18n: i18n2 } = useTranslation();
|
|
9635
|
+
const { tableProps, selectedKeys } = useEagleTable({
|
|
9636
|
+
useTableParams: {},
|
|
9637
|
+
columns: [
|
|
9638
|
+
PhaseColumnRenderer(i18n2),
|
|
9639
|
+
NameColumnRenderer(i18n2),
|
|
9640
|
+
NameSpaceColumnRenderer(i18n2),
|
|
9641
|
+
...columns
|
|
9642
|
+
],
|
|
9643
|
+
tableProps: {
|
|
9644
|
+
currentSize: 10
|
|
9645
|
+
},
|
|
9646
|
+
formatter,
|
|
9647
|
+
Dropdown
|
|
9648
|
+
});
|
|
9649
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title: name2 || "", selectedKeys, tableProps });
|
|
9650
|
+
}
|
|
9651
|
+
function ResourceShow(props) {
|
|
9652
|
+
const { formatter, filedGroups, Dropdown } = props;
|
|
9653
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
9654
|
+
PageShow,
|
|
9655
|
+
{
|
|
9656
|
+
fieldGroups: filedGroups,
|
|
9657
|
+
formatter,
|
|
9658
|
+
Dropdown
|
|
9659
|
+
}
|
|
9660
|
+
);
|
|
9661
|
+
}
|
|
9609
9662
|
const index_12sfrn = "";
|
|
9610
9663
|
const Style = "s1bsn3us";
|
|
9611
9664
|
const Separator = () => {
|
|
@@ -9614,7 +9667,7 @@ const Separator = () => {
|
|
|
9614
9667
|
});
|
|
9615
9668
|
};
|
|
9616
9669
|
const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
9617
|
-
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.
|
|
9670
|
+
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.41b43f63.js"));
|
|
9618
9671
|
const YamlEditorComponent = forwardRef(
|
|
9619
9672
|
function YamlEditorComponent2(props, ref) {
|
|
9620
9673
|
const {
|
|
@@ -9980,59 +10033,6 @@ const ResourceForm = ({ config }) => {
|
|
|
9980
10033
|
}
|
|
9981
10034
|
);
|
|
9982
10035
|
};
|
|
9983
|
-
const index_3lw8k1 = "";
|
|
9984
|
-
const ListPageStyle = "laykzsq";
|
|
9985
|
-
const TableStyle = "t1ng0psc";
|
|
9986
|
-
function ListPage(props) {
|
|
9987
|
-
const {
|
|
9988
|
-
title,
|
|
9989
|
-
selectedKeys,
|
|
9990
|
-
tableProps
|
|
9991
|
-
} = props;
|
|
9992
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9993
|
-
className: ListPageStyle,
|
|
9994
|
-
children: [/* @__PURE__ */ jsxRuntime.exports.jsx(TableToolBar, {
|
|
9995
|
-
title,
|
|
9996
|
-
selectedKeys
|
|
9997
|
-
}), /* @__PURE__ */ jsxRuntime.exports.jsx(Table, {
|
|
9998
|
-
...tableProps,
|
|
9999
|
-
className: TableStyle,
|
|
10000
|
-
scroll: {
|
|
10001
|
-
y: "calc(100% - 48px)"
|
|
10002
|
-
}
|
|
10003
|
-
})]
|
|
10004
|
-
});
|
|
10005
|
-
}
|
|
10006
|
-
function ResourceList(props) {
|
|
10007
|
-
const { formatter, name: name2, columns, Dropdown } = props;
|
|
10008
|
-
const { i18n: i18n2 } = useTranslation();
|
|
10009
|
-
const { tableProps, selectedKeys } = useEagleTable({
|
|
10010
|
-
useTableParams: {},
|
|
10011
|
-
columns: [
|
|
10012
|
-
PhaseColumnRenderer(i18n2),
|
|
10013
|
-
NameColumnRenderer(i18n2),
|
|
10014
|
-
NameSpaceColumnRenderer(i18n2),
|
|
10015
|
-
...columns
|
|
10016
|
-
],
|
|
10017
|
-
tableProps: {
|
|
10018
|
-
currentSize: 10
|
|
10019
|
-
},
|
|
10020
|
-
formatter,
|
|
10021
|
-
Dropdown
|
|
10022
|
-
});
|
|
10023
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title: name2 || "", selectedKeys, tableProps });
|
|
10024
|
-
}
|
|
10025
|
-
function ResourceShow(props) {
|
|
10026
|
-
const { formatter, filedGroups, Dropdown } = props;
|
|
10027
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
10028
|
-
PageShow,
|
|
10029
|
-
{
|
|
10030
|
-
fieldGroups: filedGroups,
|
|
10031
|
-
formatter,
|
|
10032
|
-
Dropdown
|
|
10033
|
-
}
|
|
10034
|
-
);
|
|
10035
|
-
}
|
|
10036
10036
|
const ResourceCRUD = (props) => {
|
|
10037
10037
|
const { configs, urlPrefix } = props;
|
|
10038
10038
|
const { i18n: i18n2 } = useTranslation();
|
|
@@ -11689,8 +11689,8 @@ const Dovetail = (props) => {
|
|
|
11689
11689
|
}, [resourcesConfig]);
|
|
11690
11690
|
const content = useMemo(() => {
|
|
11691
11691
|
const _content = /* @__PURE__ */ jsxRuntime.exports.jsxs(Switch, { children: [
|
|
11692
|
-
|
|
11693
|
-
|
|
11692
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(ResourceCRUD, { configs: notCustomResources, urlPrefix }),
|
|
11693
|
+
props.children
|
|
11694
11694
|
] });
|
|
11695
11695
|
if (Layout2) {
|
|
11696
11696
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(Layout2, { children: _content });
|
|
@@ -11734,61 +11734,65 @@ var RESOURCE_GROUP = /* @__PURE__ */ ((RESOURCE_GROUP2) => {
|
|
|
11734
11734
|
return RESOURCE_GROUP2;
|
|
11735
11735
|
})(RESOURCE_GROUP || {});
|
|
11736
11736
|
export {
|
|
11737
|
-
|
|
11737
|
+
DataField as $,
|
|
11738
11738
|
AgeColumnRenderer as A,
|
|
11739
11739
|
Breadcrumb as B,
|
|
11740
11740
|
CommonSorter as C,
|
|
11741
11741
|
DurationColumnRenderer as D,
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11742
|
+
ResourceCRUD as E,
|
|
11743
|
+
WorkloadPodsTable as F,
|
|
11744
|
+
CronJobDropdown as G,
|
|
11745
|
+
ResourceUsageBar as H,
|
|
11746
11746
|
ImageNames as I,
|
|
11747
|
-
|
|
11747
|
+
WorkloadReplicas as J,
|
|
11748
11748
|
KeyValueListWidget as K,
|
|
11749
|
-
|
|
11749
|
+
CronjobJobsTable as L,
|
|
11750
11750
|
MetadataForm as M,
|
|
11751
11751
|
NameColumnRenderer as N,
|
|
11752
|
-
|
|
11752
|
+
KeyValue as O,
|
|
11753
11753
|
PhaseColumnRenderer as P,
|
|
11754
|
-
|
|
11754
|
+
DeleteButton as Q,
|
|
11755
11755
|
ReplicasColumnRenderer as R,
|
|
11756
11756
|
Separator as S,
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11757
|
+
Layout as T,
|
|
11758
|
+
ImageField as U,
|
|
11759
|
+
ReplicaField as V,
|
|
11760
11760
|
WorkloadImageColumnRenderer as W,
|
|
11761
|
-
|
|
11761
|
+
ConditionsField as X,
|
|
11762
11762
|
YamlEditorComponent as Y,
|
|
11763
|
-
|
|
11764
|
-
|
|
11763
|
+
PodsField as Z,
|
|
11764
|
+
JobsField as _,
|
|
11765
11765
|
useDeleteModal as a,
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11766
|
+
SecretDataField as a0,
|
|
11767
|
+
StartTimeField as a1,
|
|
11768
|
+
ShowContent as a2,
|
|
11769
|
+
DeleteManyButton as a3,
|
|
11770
|
+
ListPage as a4,
|
|
11771
|
+
StateTag as a5,
|
|
11772
|
+
DrawerShow as a6,
|
|
11773
|
+
Menu as a7,
|
|
11774
|
+
EditButton as a8,
|
|
11775
|
+
NS_STORE_KEY as a9,
|
|
11776
|
+
ALL_NS as aa,
|
|
11777
|
+
useNamespacesFilter as ab,
|
|
11778
|
+
NamespacesFilter as ac,
|
|
11779
|
+
Tags as ad,
|
|
11780
|
+
BASE_INIT_VALUE as ae,
|
|
11781
|
+
DEPLOYMENT_INIT_VALUE as af,
|
|
11782
|
+
CRONJOB_INIT_VALUE as ag,
|
|
11783
|
+
DAEMONSET_INIT_VALUE as ah,
|
|
11784
|
+
JOB_INIT_VALUE as ai,
|
|
11785
|
+
STATEFULSET_INIT_VALUE as aj,
|
|
11786
|
+
POD_INIT_VALUE as ak,
|
|
11787
|
+
TIMESTAMP_LABEL as al,
|
|
11788
|
+
JobModel as am,
|
|
11789
|
+
PodModel as an,
|
|
11790
|
+
PodMetricsModel as ao,
|
|
11791
|
+
ResourceModel as ap,
|
|
11792
|
+
WorkloadModel as aq,
|
|
11793
|
+
CronJobModel as ar,
|
|
11794
|
+
Dovetail as as,
|
|
11795
|
+
RESOURCE_GROUP as at,
|
|
11792
11796
|
NameSpaceColumnRenderer as b,
|
|
11793
11797
|
NodeNameColumnRenderer as c,
|
|
11794
11798
|
RestartCountColumnRenderer as d,
|
|
@@ -11811,7 +11815,7 @@ export {
|
|
|
11811
11815
|
useSchema as u,
|
|
11812
11816
|
WorkloadDropdown as v,
|
|
11813
11817
|
CreateButton as w,
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11818
|
+
ResourceList as x,
|
|
11819
|
+
ResourceShow as y,
|
|
11820
|
+
ResourceForm as z
|
|
11817
11821
|
};
|
package/dist/refine.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aa, A, ae, B, ag, f, C, e, X, s, w, G, ar, L, ah, af, $, Q, a3, as, a6, D, a8, U, I, ai, am, _, O, K, T, a4, a7, M, a9, N, k, b, o, ac, c, ak, q, P, t, ao, an, Z, at, V, R, E, z, x, ap, y, H, d, aj, a0, S, a2, a1, a5, al, ad, v, W, aq, F, J, Y, l, p, n, m, r, a, h, g, i, ab, u } from "./index.fb9ce2b4.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "js-yaml";
|
|
@@ -16,73 +16,77 @@ import "ky";
|
|
|
16
16
|
import "mitt";
|
|
17
17
|
import "i18next";
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
aa as ALL_NS,
|
|
20
20
|
A as AgeColumnRenderer,
|
|
21
|
-
|
|
21
|
+
ae as BASE_INIT_VALUE,
|
|
22
22
|
B as Breadcrumb,
|
|
23
|
-
|
|
23
|
+
ag as CRONJOB_INIT_VALUE,
|
|
24
24
|
f as ColumnKeys,
|
|
25
25
|
C as CommonSorter,
|
|
26
26
|
e as CompletionsCountColumnRenderer,
|
|
27
|
-
|
|
27
|
+
X as ConditionsField,
|
|
28
28
|
s as ConditionsTable,
|
|
29
29
|
w as CreateButton,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
30
|
+
G as CronJobDropdown,
|
|
31
|
+
ar as CronJobModel,
|
|
32
|
+
L as CronjobJobsTable,
|
|
33
|
+
ah as DAEMONSET_INIT_VALUE,
|
|
34
|
+
af as DEPLOYMENT_INIT_VALUE,
|
|
35
|
+
$ as DataField,
|
|
36
|
+
Q as DeleteButton,
|
|
37
|
+
a3 as DeleteManyButton,
|
|
38
|
+
as as Dovetail,
|
|
39
|
+
a6 as DrawerShow,
|
|
40
40
|
D as DurationColumnRenderer,
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
a8 as EditButton,
|
|
42
|
+
U as ImageField,
|
|
43
43
|
I as ImageNames,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
44
|
+
ai as JOB_INIT_VALUE,
|
|
45
|
+
am as JobModel,
|
|
46
|
+
_ as JobsField,
|
|
47
|
+
O as KeyValue,
|
|
48
48
|
K as KeyValueListWidget,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
T as Layout,
|
|
50
|
+
a4 as ListPage,
|
|
51
|
+
a7 as Menu,
|
|
51
52
|
M as MetadataForm,
|
|
52
|
-
|
|
53
|
+
a9 as NS_STORE_KEY,
|
|
53
54
|
N as NameColumnRenderer,
|
|
54
55
|
k as NameInputWidget,
|
|
55
56
|
b as NameSpaceColumnRenderer,
|
|
56
57
|
o as NamespaceSelectWidget,
|
|
57
|
-
|
|
58
|
+
ac as NamespacesFilter,
|
|
58
59
|
c as NodeNameColumnRenderer,
|
|
59
|
-
|
|
60
|
+
ak as POD_INIT_VALUE,
|
|
60
61
|
q as PageShow,
|
|
61
62
|
P as PhaseColumnRenderer,
|
|
62
63
|
t as PodContainersTable,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
ao as PodMetricsModel,
|
|
65
|
+
an as PodModel,
|
|
66
|
+
Z as PodsField,
|
|
67
|
+
at as RESOURCE_GROUP,
|
|
68
|
+
V as ReplicaField,
|
|
68
69
|
R as ReplicasColumnRenderer,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
E as ResourceCRUD,
|
|
71
|
+
z as ResourceForm,
|
|
72
|
+
x as ResourceList,
|
|
73
|
+
ap as ResourceModel,
|
|
74
|
+
y as ResourceShow,
|
|
75
|
+
H as ResourceUsageBar,
|
|
72
76
|
d as RestartCountColumnRenderer,
|
|
73
|
-
|
|
74
|
-
|
|
77
|
+
aj as STATEFULSET_INIT_VALUE,
|
|
78
|
+
a0 as SecretDataField,
|
|
75
79
|
S as Separator,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
a2 as ShowContent,
|
|
81
|
+
a1 as StartTimeField,
|
|
82
|
+
a5 as StateTag,
|
|
83
|
+
al as TIMESTAMP_LABEL,
|
|
84
|
+
ad as Tags,
|
|
81
85
|
v as WorkloadDropdown,
|
|
82
86
|
W as WorkloadImageColumnRenderer,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
aq as WorkloadModel,
|
|
88
|
+
F as WorkloadPodsTable,
|
|
89
|
+
J as WorkloadReplicas,
|
|
86
90
|
Y as YamlEditorComponent,
|
|
87
91
|
l as dnsSubDomainRules,
|
|
88
92
|
p as namespaceRules,
|
|
@@ -93,6 +97,6 @@ export {
|
|
|
93
97
|
h as useDownloadYAML,
|
|
94
98
|
g as useEagleTable,
|
|
95
99
|
i as useEdit,
|
|
96
|
-
|
|
100
|
+
ab as useNamespacesFilter,
|
|
97
101
|
u as useSchema
|
|
98
102
|
};
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -9620,6 +9620,59 @@ var __publicField = (obj, key, value) => {
|
|
|
9620
9620
|
}
|
|
9621
9621
|
) });
|
|
9622
9622
|
}
|
|
9623
|
+
const index_3lw8k1 = "";
|
|
9624
|
+
const ListPageStyle = "laykzsq";
|
|
9625
|
+
const TableStyle = "t1ng0psc";
|
|
9626
|
+
function ListPage(props) {
|
|
9627
|
+
const {
|
|
9628
|
+
title,
|
|
9629
|
+
selectedKeys,
|
|
9630
|
+
tableProps
|
|
9631
|
+
} = props;
|
|
9632
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
9633
|
+
className: ListPageStyle,
|
|
9634
|
+
children: [/* @__PURE__ */ jsxRuntime.exports.jsx(TableToolBar, {
|
|
9635
|
+
title,
|
|
9636
|
+
selectedKeys
|
|
9637
|
+
}), /* @__PURE__ */ jsxRuntime.exports.jsx(Table, {
|
|
9638
|
+
...tableProps,
|
|
9639
|
+
className: TableStyle,
|
|
9640
|
+
scroll: {
|
|
9641
|
+
y: "calc(100% - 48px)"
|
|
9642
|
+
}
|
|
9643
|
+
})]
|
|
9644
|
+
});
|
|
9645
|
+
}
|
|
9646
|
+
function ResourceList(props) {
|
|
9647
|
+
const { formatter, name: name2, columns, Dropdown } = props;
|
|
9648
|
+
const { i18n: i18n2 } = useTranslation();
|
|
9649
|
+
const { tableProps, selectedKeys } = useEagleTable({
|
|
9650
|
+
useTableParams: {},
|
|
9651
|
+
columns: [
|
|
9652
|
+
PhaseColumnRenderer(i18n2),
|
|
9653
|
+
NameColumnRenderer(i18n2),
|
|
9654
|
+
NameSpaceColumnRenderer(i18n2),
|
|
9655
|
+
...columns
|
|
9656
|
+
],
|
|
9657
|
+
tableProps: {
|
|
9658
|
+
currentSize: 10
|
|
9659
|
+
},
|
|
9660
|
+
formatter,
|
|
9661
|
+
Dropdown
|
|
9662
|
+
});
|
|
9663
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title: name2 || "", selectedKeys, tableProps });
|
|
9664
|
+
}
|
|
9665
|
+
function ResourceShow(props) {
|
|
9666
|
+
const { formatter, filedGroups, Dropdown } = props;
|
|
9667
|
+
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
9668
|
+
PageShow,
|
|
9669
|
+
{
|
|
9670
|
+
fieldGroups: filedGroups,
|
|
9671
|
+
formatter,
|
|
9672
|
+
Dropdown
|
|
9673
|
+
}
|
|
9674
|
+
);
|
|
9675
|
+
}
|
|
9623
9676
|
const index_12sfrn = "";
|
|
9624
9677
|
const Style = "s1bsn3us";
|
|
9625
9678
|
const Separator = () => {
|
|
@@ -9994,59 +10047,6 @@ var __publicField = (obj, key, value) => {
|
|
|
9994
10047
|
}
|
|
9995
10048
|
);
|
|
9996
10049
|
};
|
|
9997
|
-
const index_3lw8k1 = "";
|
|
9998
|
-
const ListPageStyle = "laykzsq";
|
|
9999
|
-
const TableStyle = "t1ng0psc";
|
|
10000
|
-
function ListPage(props) {
|
|
10001
|
-
const {
|
|
10002
|
-
title,
|
|
10003
|
-
selectedKeys,
|
|
10004
|
-
tableProps
|
|
10005
|
-
} = props;
|
|
10006
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
|
|
10007
|
-
className: ListPageStyle,
|
|
10008
|
-
children: [/* @__PURE__ */ jsxRuntime.exports.jsx(TableToolBar, {
|
|
10009
|
-
title,
|
|
10010
|
-
selectedKeys
|
|
10011
|
-
}), /* @__PURE__ */ jsxRuntime.exports.jsx(Table, {
|
|
10012
|
-
...tableProps,
|
|
10013
|
-
className: TableStyle,
|
|
10014
|
-
scroll: {
|
|
10015
|
-
y: "calc(100% - 48px)"
|
|
10016
|
-
}
|
|
10017
|
-
})]
|
|
10018
|
-
});
|
|
10019
|
-
}
|
|
10020
|
-
function ResourceList(props) {
|
|
10021
|
-
const { formatter, name: name2, columns, Dropdown } = props;
|
|
10022
|
-
const { i18n: i18n2 } = useTranslation();
|
|
10023
|
-
const { tableProps, selectedKeys } = useEagleTable({
|
|
10024
|
-
useTableParams: {},
|
|
10025
|
-
columns: [
|
|
10026
|
-
PhaseColumnRenderer(i18n2),
|
|
10027
|
-
NameColumnRenderer(i18n2),
|
|
10028
|
-
NameSpaceColumnRenderer(i18n2),
|
|
10029
|
-
...columns
|
|
10030
|
-
],
|
|
10031
|
-
tableProps: {
|
|
10032
|
-
currentSize: 10
|
|
10033
|
-
},
|
|
10034
|
-
formatter,
|
|
10035
|
-
Dropdown
|
|
10036
|
-
});
|
|
10037
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title: name2 || "", selectedKeys, tableProps });
|
|
10038
|
-
}
|
|
10039
|
-
function ResourceShow(props) {
|
|
10040
|
-
const { formatter, filedGroups, Dropdown } = props;
|
|
10041
|
-
return /* @__PURE__ */ jsxRuntime.exports.jsx(
|
|
10042
|
-
PageShow,
|
|
10043
|
-
{
|
|
10044
|
-
fieldGroups: filedGroups,
|
|
10045
|
-
formatter,
|
|
10046
|
-
Dropdown
|
|
10047
|
-
}
|
|
10048
|
-
);
|
|
10049
|
-
}
|
|
10050
10050
|
const ResourceCRUD = (props) => {
|
|
10051
10051
|
const { configs, urlPrefix } = props;
|
|
10052
10052
|
const { i18n: i18n2 } = useTranslation();
|
|
@@ -11703,8 +11703,8 @@ var __publicField = (obj, key, value) => {
|
|
|
11703
11703
|
}, [resourcesConfig]);
|
|
11704
11704
|
const content = React.useMemo(() => {
|
|
11705
11705
|
const _content = /* @__PURE__ */ jsxRuntime.exports.jsxs(reactRouterDom.Switch, { children: [
|
|
11706
|
-
|
|
11707
|
-
|
|
11706
|
+
/* @__PURE__ */ jsxRuntime.exports.jsx(ResourceCRUD, { configs: notCustomResources, urlPrefix }),
|
|
11707
|
+
props.children
|
|
11708
11708
|
] });
|
|
11709
11709
|
if (Layout2) {
|
|
11710
11710
|
return /* @__PURE__ */ jsxRuntime.exports.jsx(Layout2, { children: _content });
|
|
@@ -11818,6 +11818,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11818
11818
|
exports2.KeyValue = KeyValue;
|
|
11819
11819
|
exports2.KeyValueListWidget = KeyValueListWidget;
|
|
11820
11820
|
exports2.Layout = Layout;
|
|
11821
|
+
exports2.ListPage = ListPage;
|
|
11821
11822
|
exports2.Menu = Menu;
|
|
11822
11823
|
exports2.MetadataForm = MetadataForm;
|
|
11823
11824
|
exports2.NS_STORE_KEY = NS_STORE_KEY;
|
|
@@ -11838,7 +11839,10 @@ var __publicField = (obj, key, value) => {
|
|
|
11838
11839
|
exports2.ReplicaField = ReplicaField;
|
|
11839
11840
|
exports2.ReplicasColumnRenderer = ReplicasColumnRenderer;
|
|
11840
11841
|
exports2.ResourceCRUD = ResourceCRUD;
|
|
11842
|
+
exports2.ResourceForm = ResourceForm;
|
|
11843
|
+
exports2.ResourceList = ResourceList;
|
|
11841
11844
|
exports2.ResourceModel = ResourceModel;
|
|
11845
|
+
exports2.ResourceShow = ResourceShow;
|
|
11842
11846
|
exports2.ResourceUsageBar = ResourceUsageBar;
|
|
11843
11847
|
exports2.RestartCountColumnRenderer = RestartCountColumnRenderer;
|
|
11844
11848
|
exports2.STATEFULSET_INIT_VALUE = STATEFULSET_INIT_VALUE;
|
package/dist/style.css
CHANGED
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
.e1ohe42f{margin-top:16px;}
|
|
28
28
|
.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;}
|
|
29
29
|
.t30srnq{line-height:32px !important;}
|
|
30
|
-
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
31
|
-
.e5ks0bl{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;}
|
|
32
30
|
.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;}
|
|
33
31
|
.t1ng0psc.table-wrapper{height:auto;-webkit-flex-shrink:1;-ms-flex-negative:1;flex-shrink:1;min-height:0;}
|
|
32
|
+
.s1bsn3us{width:1px;height:16px;border-radius:1px;background:rgba(172,186,211,0.6);}
|
|
33
|
+
.e5ks0bl{-webkit-flex:1;-ms-flex:1;flex:1;height:100%;}
|
|
34
34
|
.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%;}
|
|
35
35
|
.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);}
|
|
36
36
|
.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;}
|
|
@@ -6,5 +6,5 @@ interface ListPageProps<T extends ResourceModel> {
|
|
|
6
6
|
selectedKeys: string[];
|
|
7
7
|
tableProps: TableProps<T>;
|
|
8
8
|
}
|
|
9
|
-
declare function ListPage<T extends ResourceModel>(props: ListPageProps<T>): JSX.Element;
|
|
10
|
-
export
|
|
9
|
+
export declare function ListPage<T extends ResourceModel>(props: ListPageProps<T>): JSX.Element;
|
|
10
|
+
export {};
|
package/lib/src/types/index.d.ts
CHANGED