@dovetail-v2/refine 0.0.9 → 0.0.11
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.19d01417.js → MonacoYamlDiffEditor.7f3aa6a3.js} +1 -1
- package/dist/{index.5ba25b92.js → index.e18b90a8.js} +31 -30
- package/dist/refine.js +27 -26
- package/dist/refine.umd.cjs +4 -3
- package/lib/src/components/ListPage/index.d.ts +2 -2
- package/lib/src/types/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import React, { useCallback, useContext, createContext, useState, useRef, useEffect, useMemo, useLayoutEffect, forwardRef, useImperativeHandle, Suspense } from "react";
|
|
8
8
|
import { ResourceContext, matchResourceFromRoute, useResource, useForm as useForm$1, pickNotDeprecated, useWarnAboutChange, useDelete, useNavigation, useUpdate, useGo, useParsed, useList, useTable, useBreadcrumb, useDeleteMany, useShow, useMenu, Refine } from "@refinedev/core";
|
|
9
9
|
import { parse, stringify } from "qs";
|
|
10
|
-
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink,
|
|
10
|
+
import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router } from "react-router-dom";
|
|
11
11
|
import { useUIKit, Typo, Icon, kitContext } from "@cloudtower/eagle";
|
|
12
12
|
import yaml from "js-yaml";
|
|
13
13
|
import { isObject, get, merge, cloneDeep, set } from "lodash-es";
|
|
@@ -9667,7 +9667,7 @@ const Separator = () => {
|
|
|
9667
9667
|
});
|
|
9668
9668
|
};
|
|
9669
9669
|
const MonacoYamlEditor = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
|
|
9670
|
-
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.
|
|
9670
|
+
const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.7f3aa6a3.js"));
|
|
9671
9671
|
const YamlEditorComponent = forwardRef(
|
|
9672
9672
|
function YamlEditorComponent2(props, ref) {
|
|
9673
9673
|
const {
|
|
@@ -11688,9 +11688,9 @@ const Dovetail = (props) => {
|
|
|
11688
11688
|
return resourcesConfig.filter((c) => !c.isCustom);
|
|
11689
11689
|
}, [resourcesConfig]);
|
|
11690
11690
|
const content = useMemo(() => {
|
|
11691
|
-
const _content = /* @__PURE__ */ jsxRuntime.exports.jsxs(
|
|
11692
|
-
|
|
11693
|
-
|
|
11691
|
+
const _content = /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [
|
|
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 });
|
|
@@ -11767,31 +11767,32 @@ export {
|
|
|
11767
11767
|
StartTimeField as a1,
|
|
11768
11768
|
ShowContent as a2,
|
|
11769
11769
|
DeleteManyButton as a3,
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
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,
|
|
11795
11796
|
NameSpaceColumnRenderer as b,
|
|
11796
11797
|
NodeNameColumnRenderer as c,
|
|
11797
11798
|
RestartCountColumnRenderer as d,
|
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.e18b90a8.js";
|
|
2
2
|
import "@cloudtower/eagle";
|
|
3
3
|
import "@refinedev/core";
|
|
4
4
|
import "js-yaml";
|
|
@@ -16,11 +16,11 @@ 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,
|
|
@@ -28,62 +28,63 @@ export {
|
|
|
28
28
|
s as ConditionsTable,
|
|
29
29
|
w as CreateButton,
|
|
30
30
|
G as CronJobDropdown,
|
|
31
|
-
|
|
31
|
+
ar as CronJobModel,
|
|
32
32
|
L as CronjobJobsTable,
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
ah as DAEMONSET_INIT_VALUE,
|
|
34
|
+
af as DEPLOYMENT_INIT_VALUE,
|
|
35
35
|
$ as DataField,
|
|
36
36
|
Q as DeleteButton,
|
|
37
37
|
a3 as DeleteManyButton,
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
as as Dovetail,
|
|
39
|
+
a6 as DrawerShow,
|
|
40
40
|
D as DurationColumnRenderer,
|
|
41
|
-
|
|
41
|
+
a8 as EditButton,
|
|
42
42
|
U as ImageField,
|
|
43
43
|
I as ImageNames,
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
ai as JOB_INIT_VALUE,
|
|
45
|
+
am as JobModel,
|
|
46
46
|
_ as JobsField,
|
|
47
47
|
O as KeyValue,
|
|
48
48
|
K as KeyValueListWidget,
|
|
49
49
|
T as Layout,
|
|
50
|
-
|
|
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
|
-
|
|
64
|
+
ao as PodMetricsModel,
|
|
65
|
+
an as PodModel,
|
|
65
66
|
Z as PodsField,
|
|
66
|
-
|
|
67
|
+
at as RESOURCE_GROUP,
|
|
67
68
|
V as ReplicaField,
|
|
68
69
|
R as ReplicasColumnRenderer,
|
|
69
70
|
E as ResourceCRUD,
|
|
70
71
|
z as ResourceForm,
|
|
71
72
|
x as ResourceList,
|
|
72
|
-
|
|
73
|
+
ap as ResourceModel,
|
|
73
74
|
y as ResourceShow,
|
|
74
75
|
H as ResourceUsageBar,
|
|
75
76
|
d as RestartCountColumnRenderer,
|
|
76
|
-
|
|
77
|
+
aj as STATEFULSET_INIT_VALUE,
|
|
77
78
|
a0 as SecretDataField,
|
|
78
79
|
S as Separator,
|
|
79
80
|
a2 as ShowContent,
|
|
80
81
|
a1 as StartTimeField,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
a5 as StateTag,
|
|
83
|
+
al as TIMESTAMP_LABEL,
|
|
84
|
+
ad as Tags,
|
|
84
85
|
v as WorkloadDropdown,
|
|
85
86
|
W as WorkloadImageColumnRenderer,
|
|
86
|
-
|
|
87
|
+
aq as WorkloadModel,
|
|
87
88
|
F as WorkloadPodsTable,
|
|
88
89
|
J as WorkloadReplicas,
|
|
89
90
|
Y as YamlEditorComponent,
|
|
@@ -96,6 +97,6 @@ export {
|
|
|
96
97
|
h as useDownloadYAML,
|
|
97
98
|
g as useEagleTable,
|
|
98
99
|
i as useEdit,
|
|
99
|
-
|
|
100
|
+
ab as useNamespacesFilter,
|
|
100
101
|
u as useSchema
|
|
101
102
|
};
|
package/dist/refine.umd.cjs
CHANGED
|
@@ -11702,9 +11702,9 @@ var __publicField = (obj, key, value) => {
|
|
|
11702
11702
|
return resourcesConfig.filter((c) => !c.isCustom);
|
|
11703
11703
|
}, [resourcesConfig]);
|
|
11704
11704
|
const content = React.useMemo(() => {
|
|
11705
|
-
const _content = /* @__PURE__ */ jsxRuntime.exports.jsxs(
|
|
11706
|
-
|
|
11707
|
-
|
|
11705
|
+
const _content = /* @__PURE__ */ jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [
|
|
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;
|
|
@@ -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