react-toolkits 0.8.14 → 0.8.16
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/CHANGELOG.md +12 -0
- package/lib/{index-5azX_9Kl.chunk.js → index--7vO30v5.chunk.js} +23 -23
- package/lib/index-Muq4Hp6W.chunk.js +5535 -0
- package/lib/{index-9YrrLA8i.chunk.js → index-OUUskcWR.chunk.js} +9 -9
- package/lib/{index-Dc1A4am1.chunk.js → index-VHDWlKrf.chunk.js} +12 -12
- package/lib/index-e-8lXv03.chunk.js +39 -0
- package/lib/{index-1LrZBiTl.chunk.js → index-jZQC_7sU.chunk.js} +11 -11
- package/lib/index.d.ts +14 -2
- package/lib/index.js +33 -29
- package/package.json +3 -3
- package/lib/index-E5HZX0Fa.chunk.js +0 -5121
- package/lib/index-UK1MnaVk.chunk.js +0 -52
- package/lib/index-d0Huxz8c.chunk.js +0 -39
- package/lib/index-r-DD8f-j.chunk.js +0 -378
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as M, _ as N,
|
|
2
|
-
import { App as y, Row as R, Col as E, Tag as w, Space as G, Card as _, Form as u, Input as L, Select as
|
|
1
|
+
import { A as M, _ as N, u as b, a as U, j as e, P as j, H as z, Q as H, b as A } from "./index-Muq4Hp6W.chunk.js";
|
|
2
|
+
import { App as y, Row as R, Col as E, Tag as w, Space as G, Card as _, Form as u, Input as L, Select as C } from "antd";
|
|
3
3
|
import { p as I } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as D } from "react-router-dom";
|
|
5
|
-
import {
|
|
5
|
+
import { u as P, a as Q, b as k, c as V } from "./index--7vO30v5.chunk.js";
|
|
6
6
|
import * as O from "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var $ = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "user-add", theme: "outlined" };
|
|
@@ -14,14 +14,14 @@ var v = function(c, a) {
|
|
|
14
14
|
}));
|
|
15
15
|
};
|
|
16
16
|
process.env.NODE_ENV !== "production" && (v.displayName = "UserAddOutlined");
|
|
17
|
-
const B = /* @__PURE__ */ O.forwardRef(v), { Option: F } =
|
|
17
|
+
const B = /* @__PURE__ */ O.forwardRef(v), { Option: F } = C, g = "/api/usystem/user/list";
|
|
18
18
|
function K() {
|
|
19
19
|
const { message: d } = y.useApp(), c = Q(), { data: a, isLoading: m } = k(), { setPayload: p } = b(), n = U();
|
|
20
20
|
return A({
|
|
21
21
|
title: n("UserList.createTitle"),
|
|
22
22
|
content: (o) => /* @__PURE__ */ e.jsxs(u, { form: o, labelCol: { flex: "80px" }, children: [
|
|
23
23
|
/* @__PURE__ */ e.jsx(u.Item, { label: n("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(L, {}) }),
|
|
24
|
-
/* @__PURE__ */ e.jsx(u.Item, { label: n("global.role"), name: "roles", children: /* @__PURE__ */ e.jsx(
|
|
24
|
+
/* @__PURE__ */ e.jsx(u.Item, { label: n("global.role"), name: "roles", children: /* @__PURE__ */ e.jsx(C, { allowClear: !0, mode: "multiple", loading: m, children: (a ?? []).map((r) => /* @__PURE__ */ e.jsx(F, { value: r.name, children: r.name }, r.id)) }) })
|
|
25
25
|
] }),
|
|
26
26
|
async onConfirm(o) {
|
|
27
27
|
await c.trigger(o), p(g, { page: 1 }), d.success(n("UserList.createSuccessfully"));
|
|
@@ -35,7 +35,7 @@ function J() {
|
|
|
35
35
|
content: (o) => /* @__PURE__ */ e.jsxs(u, { form: o, labelCol: { flex: "80px" }, children: [
|
|
36
36
|
/* @__PURE__ */ e.jsx(u.Item, { label: n("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(L, { readOnly: !0 }) }),
|
|
37
37
|
/* @__PURE__ */ e.jsx(u.Item, { label: n("global.role"), name: "roles", children: /* @__PURE__ */ e.jsx(
|
|
38
|
-
|
|
38
|
+
C,
|
|
39
39
|
{
|
|
40
40
|
allowClear: !0,
|
|
41
41
|
mode: "multiple",
|
|
@@ -132,9 +132,9 @@ const se = () => {
|
|
|
132
132
|
id: t.id,
|
|
133
133
|
name: t.name
|
|
134
134
|
}), m(g, (l) => I(l, (i) => {
|
|
135
|
-
var
|
|
136
|
-
const x = (
|
|
137
|
-
x && ((
|
|
135
|
+
var S, f;
|
|
136
|
+
const x = (S = i == null ? void 0 : i.dataSource) == null ? void 0 : S.findIndex((T) => T.id === t.id);
|
|
137
|
+
x && ((f = i == null ? void 0 : i.dataSource) == null || f.splice(x, 1));
|
|
138
138
|
})), c.success(s("UserList.deleteSuccessfully"));
|
|
139
139
|
}
|
|
140
140
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as S, j as e, d as $ } from "./index-Muq4Hp6W.chunk.js";
|
|
2
2
|
import { Collapse as D, Checkbox as k, Row as G, Col as _, Skeleton as T, Typography as A, Divider as w, Card as K, Space as M, Select as E, Button as N, Empty as O } from "antd";
|
|
3
|
-
import {
|
|
3
|
+
import { h as R, i as B } from "./index--7vO30v5.chunk.js";
|
|
4
4
|
import { useState as P, useCallback as F, useEffect as b } from "react";
|
|
5
5
|
const q = (x) => {
|
|
6
|
-
const { permissions: l, readonly: t, expand: d, value:
|
|
6
|
+
const { permissions: l, readonly: t, expand: d, value: a, onChange: r } = x, [m, p] = P([]), [g, u] = P({}), [c, f] = P(a ?? []), C = S(), h = F((s) => {
|
|
7
7
|
p(s);
|
|
8
8
|
}, []), L = (s, i) => {
|
|
9
9
|
let n = [];
|
|
@@ -13,11 +13,11 @@ const q = (x) => {
|
|
|
13
13
|
})), n;
|
|
14
14
|
}, v = (s, i) => {
|
|
15
15
|
const n = L(s.target.checked, i);
|
|
16
|
-
f(n),
|
|
16
|
+
f(n), r == null || r(n);
|
|
17
17
|
};
|
|
18
18
|
return b(() => {
|
|
19
|
-
f(
|
|
20
|
-
}, [
|
|
19
|
+
f(a ?? []);
|
|
20
|
+
}, [a]), b(() => {
|
|
21
21
|
d && p((l ?? []).map(({ category: s }) => s));
|
|
22
22
|
}, [d, l]), b(() => {
|
|
23
23
|
const s = (l ?? []).reduce(
|
|
@@ -62,19 +62,19 @@ const q = (x) => {
|
|
|
62
62
|
}
|
|
63
63
|
);
|
|
64
64
|
}, V = q, { Text: z } = A, H = (x) => {
|
|
65
|
-
const { expand: l = !0, value: t, readonly: d, onChange:
|
|
65
|
+
const { expand: l = !0, value: t, readonly: d, onChange: a } = x, { data: r, isLoading: m, error: p } = R(), g = S();
|
|
66
66
|
return p ? /* @__PURE__ */ e.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ e.jsx(z, { type: "danger", children: g("PermissionList.failedDescription") }) }) : /* @__PURE__ */ e.jsx(T, { active: !0, loading: m, children: /* @__PURE__ */ e.jsx(
|
|
67
67
|
V,
|
|
68
68
|
{
|
|
69
69
|
value: t,
|
|
70
|
-
permissions:
|
|
70
|
+
permissions: r,
|
|
71
71
|
readonly: d,
|
|
72
72
|
expand: l,
|
|
73
|
-
onChange:
|
|
73
|
+
onChange: a
|
|
74
74
|
}
|
|
75
75
|
) });
|
|
76
76
|
}, J = H, { Text: I } = A, { Option: Q } = E, U = (x) => {
|
|
77
|
-
const { expand: l = !0, value: t, readonly: d, onChange:
|
|
77
|
+
const { expand: l = !0, value: t, readonly: d, onChange: a } = x, { data: { permission: r, game: m } = {}, isLoading: p, error: g } = B(), [u, c] = P([]), f = r == null ? void 0 : r.filter((s) => s.is_common), C = r == null ? void 0 : r.filter((s) => !s.is_common), h = S();
|
|
78
78
|
if (b(() => {
|
|
79
79
|
const s = [];
|
|
80
80
|
Object.keys(t ?? {}).forEach((i) => {
|
|
@@ -97,7 +97,7 @@ const q = (x) => {
|
|
|
97
97
|
permissions: f,
|
|
98
98
|
expand: l,
|
|
99
99
|
onChange: (s) => {
|
|
100
|
-
|
|
100
|
+
a == null || a({
|
|
101
101
|
...t,
|
|
102
102
|
global: s
|
|
103
103
|
});
|
|
@@ -148,7 +148,7 @@ const q = (x) => {
|
|
|
148
148
|
expand: l,
|
|
149
149
|
permissions: C,
|
|
150
150
|
onChange: (o) => {
|
|
151
|
-
|
|
151
|
+
a == null || a({
|
|
152
152
|
...t,
|
|
153
153
|
[u[i].gameId]: o
|
|
154
154
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { a as t, j as i } from "./index-Muq4Hp6W.chunk.js";
|
|
2
|
+
import { Breadcrumb as m, Card as n, Skeleton as a, Descriptions as l } from "antd";
|
|
3
|
+
import { useParams as c, Link as x } from "react-router-dom";
|
|
4
|
+
import { P as j } from "./index-VHDWlKrf.chunk.js";
|
|
5
|
+
import { g as p } from "./index--7vO30v5.chunk.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "react-dom";
|
|
8
|
+
const k = () => {
|
|
9
|
+
const r = c(), { data: e, isLoading: o } = p(r.name), s = t();
|
|
10
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
11
|
+
/* @__PURE__ */ i.jsx(
|
|
12
|
+
m,
|
|
13
|
+
{
|
|
14
|
+
style: { marginBottom: 24 },
|
|
15
|
+
items: [
|
|
16
|
+
{
|
|
17
|
+
key: "1",
|
|
18
|
+
title: /* @__PURE__ */ i.jsx(x, { to: "..", children: s("global.role") })
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "2",
|
|
22
|
+
title: r.name
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ i.jsx(n, { title: s("RoleDetail.title"), children: /* @__PURE__ */ i.jsxs(a, { loading: o, children: [
|
|
28
|
+
/* @__PURE__ */ i.jsxs(l, { column: 3, layout: "vertical", children: [
|
|
29
|
+
/* @__PURE__ */ i.jsx(l.Item, { label: s("global.name"), children: e == null ? void 0 : e.name }),
|
|
30
|
+
/* @__PURE__ */ i.jsx(l.Item, { label: "ID", children: e == null ? void 0 : e.id }),
|
|
31
|
+
/* @__PURE__ */ i.jsx(l.Item, { label: s("global.creationTime"), children: e == null ? void 0 : e.ctime })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ i.jsx(j, { readonly: !0, value: e == null ? void 0 : e.permissions })
|
|
34
|
+
] }) })
|
|
35
|
+
] });
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
k as default
|
|
39
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { A as T, _,
|
|
1
|
+
import { A as T, _, c as M, d as N, u as b, a as f, j as e, P as j, r as z, H as P, Q as $, b as L } from "./index-Muq4Hp6W.chunk.js";
|
|
2
2
|
import { App as w, Space as H, Card as G, Form as m, Input as A } from "antd";
|
|
3
3
|
import { p as k } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as B } from "react-router-dom";
|
|
5
|
-
import { P as
|
|
6
|
-
import {
|
|
7
|
-
import * as
|
|
5
|
+
import { P as v } from "./index-VHDWlKrf.chunk.js";
|
|
6
|
+
import { d as E, e as V, f as q } from "./index--7vO30v5.chunk.js";
|
|
7
|
+
import * as I from "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var D = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z" } }] }, name: "usergroup-add", theme: "outlined" };
|
|
10
10
|
const F = D;
|
|
11
|
-
var
|
|
12
|
-
return /* @__PURE__ */
|
|
11
|
+
var U = function(r, a) {
|
|
12
|
+
return /* @__PURE__ */ I.createElement(T, _({}, r, {
|
|
13
13
|
ref: a,
|
|
14
14
|
icon: F
|
|
15
15
|
}));
|
|
16
16
|
};
|
|
17
|
-
process.env.NODE_ENV !== "production" && (
|
|
18
|
-
const Q = /* @__PURE__ */
|
|
17
|
+
process.env.NODE_ENV !== "production" && (U.displayName = "UsergroupAddOutlined");
|
|
18
|
+
const Q = /* @__PURE__ */ I.forwardRef(U), h = "/api/usystem/role/list", K = () => {
|
|
19
19
|
const { message: c } = w.useApp(), { setPayload: r } = b(), a = V(), i = f(), n = async (l) => {
|
|
20
20
|
await a.trigger({
|
|
21
21
|
name: `role_${l.name}`,
|
|
@@ -27,7 +27,7 @@ const Q = /* @__PURE__ */ U.forwardRef(v), h = "/api/usystem/role/list", K = ()
|
|
|
27
27
|
width: "50vw",
|
|
28
28
|
content: (l) => /* @__PURE__ */ e.jsxs(m, { form: l, layout: "vertical", children: [
|
|
29
29
|
/* @__PURE__ */ e.jsx(m.Item, { label: i("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(A, { addonBefore: "role_" }) }),
|
|
30
|
-
/* @__PURE__ */ e.jsx(m.Item, { name: "permissions", children: /* @__PURE__ */ e.jsx(
|
|
30
|
+
/* @__PURE__ */ e.jsx(m.Item, { name: "permissions", children: /* @__PURE__ */ e.jsx(v, {}) })
|
|
31
31
|
] }),
|
|
32
32
|
onConfirm: n
|
|
33
33
|
});
|
|
@@ -38,7 +38,7 @@ const Q = /* @__PURE__ */ U.forwardRef(v), h = "/api/usystem/role/list", K = ()
|
|
|
38
38
|
width: "50vw",
|
|
39
39
|
content: (n) => /* @__PURE__ */ e.jsxs(m, { form: n, children: [
|
|
40
40
|
/* @__PURE__ */ e.jsx(m.Item, { label: i("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(A, { readOnly: !0, addonBefore: "role_" }) }),
|
|
41
|
-
/* @__PURE__ */ e.jsx(m.Item, { name: "permissions", children: /* @__PURE__ */ e.jsx(
|
|
41
|
+
/* @__PURE__ */ e.jsx(m.Item, { name: "permissions", children: /* @__PURE__ */ e.jsx(v, {}) })
|
|
42
42
|
] }),
|
|
43
43
|
onConfirm: async (n, l, p) => {
|
|
44
44
|
await a.trigger({
|
|
@@ -62,7 +62,7 @@ const Q = /* @__PURE__ */ U.forwardRef(v), h = "/api/usystem/role/list", K = ()
|
|
|
62
62
|
title: t("global.name"),
|
|
63
63
|
key: "name",
|
|
64
64
|
render(s) {
|
|
65
|
-
return c ? /* @__PURE__ */ e.jsx(B, { to: `${s.name}`, children: s.name }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: s.name });
|
|
65
|
+
return c ? /* @__PURE__ */ e.jsx(B, { to: `${s.name}`, relative: "path", children: s.name }) : /* @__PURE__ */ e.jsx(e.Fragment, { children: s.name });
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
{
|
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ButtonProps } from 'antd';
|
|
2
|
+
import type { ComponentType } from 'react';
|
|
2
3
|
import type { FC } from 'react';
|
|
3
4
|
import type { FormInstance } from 'antd';
|
|
4
5
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
@@ -34,7 +35,10 @@ export declare interface ContextState {
|
|
|
34
35
|
gameFilter?: (game: Game) => boolean;
|
|
35
36
|
locale?: Locale;
|
|
36
37
|
localeDropdownMenu?: ReactNode;
|
|
37
|
-
|
|
38
|
+
signInSuccessRedirectUrl?: string;
|
|
39
|
+
notFoundRedirectUrl?: string;
|
|
40
|
+
logoutRedirectUrl?: string;
|
|
41
|
+
idaasRedirectUrl: string;
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
export declare const contextStore: StoreApi<ContextState>;
|
|
@@ -223,10 +227,14 @@ export declare type NavMenuItem = MenuItemType2 | SubMenuType2 | MenuItemGroupTy
|
|
|
223
227
|
|
|
224
228
|
export declare const NotFound: () => JSX_2.Element;
|
|
225
229
|
|
|
230
|
+
export declare const OperationLogList: FC;
|
|
231
|
+
|
|
226
232
|
declare type Paths<T, D extends number = 10> = [D] extends [never] ? never : T extends object ? {
|
|
227
233
|
[K in keyof T]-?: K extends string | number ? `${K}` | Join<K, Paths<T[K]>> : never;
|
|
228
234
|
}[keyof T] : '';
|
|
229
235
|
|
|
236
|
+
export declare const Permission: () => JSX_2.Element;
|
|
237
|
+
|
|
230
238
|
export declare const PermissionButton: FC<PropsWithChildren<PermissionButtonProps>>;
|
|
231
239
|
|
|
232
240
|
export declare interface PermissionButtonProps extends Omit<ButtonProps, 'disabled'> {
|
|
@@ -326,6 +334,8 @@ declare type RequestResponse<T> = Pick<Response, 'headers' | 'status' | 'statusT
|
|
|
326
334
|
|
|
327
335
|
export declare const RequireGame: FC<PropsWithChildren>;
|
|
328
336
|
|
|
337
|
+
export declare const SignIn: FC;
|
|
338
|
+
|
|
329
339
|
declare type SubMenuType2 = Merge<SubMenuType, {
|
|
330
340
|
children?: NavMenuItem[];
|
|
331
341
|
}>;
|
|
@@ -406,7 +416,7 @@ export declare const useTokenStore: UseBoundStore<Omit<StoreApi<TokenState>, "pe
|
|
|
406
416
|
};
|
|
407
417
|
}>;
|
|
408
418
|
|
|
409
|
-
export declare function useTokenValidation(): void;
|
|
419
|
+
export declare function useTokenValidation(skip?: boolean): void;
|
|
410
420
|
|
|
411
421
|
export declare function useToolkitsContext(): ContextState;
|
|
412
422
|
|
|
@@ -414,4 +424,6 @@ export declare function useTranslation(): (key: Paths<Locale>, data?: Record<str
|
|
|
414
424
|
|
|
415
425
|
export declare function withBaseRoutes(routes: ReactNode, props?: Partial<Omit<ContextState, 'hideGameSelect'>>): () => JSX_2.Element;
|
|
416
426
|
|
|
427
|
+
export declare const withLayout: (WrappedComponent: ComponentType, props?: Partial<ContextState>) => () => JSX_2.Element;
|
|
428
|
+
|
|
417
429
|
export { }
|
package/lib/index.js
CHANGED
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as r, D as n, F as u, G as m, H as p, i as L, L as d, N as l, k as S, O as g, l as y, P, n as x, Q as c, o as F, R as G, p as T, S as h, q as k, t as q, v as Q, r as R, b as v, x as B, c as C, y as N, u as f, z as w, B as D, d as E, a as H, E as I, J as M } from "./index-Muq4Hp6W.chunk.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
|
-
import "react-router-dom";
|
|
5
4
|
import "react-dom";
|
|
5
|
+
import "react-router-dom";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
r as ContextProvider,
|
|
8
|
+
n as DynamicTags,
|
|
9
|
+
u as FilterFormWrapper,
|
|
10
10
|
m as GameSelect,
|
|
11
11
|
p as Highlight,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
h as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
D as
|
|
12
|
+
L as InfiniteList,
|
|
13
|
+
d as Layout,
|
|
14
|
+
l as NavMenu,
|
|
15
|
+
S as NotFound,
|
|
16
|
+
g as OperationLogList,
|
|
17
|
+
y as Permission,
|
|
18
|
+
P as PermissionButton,
|
|
19
|
+
x as PermissionGuard,
|
|
20
|
+
c as QueryList,
|
|
21
|
+
F as QueryListAction,
|
|
22
|
+
G as RequestError,
|
|
23
|
+
T as RequireGame,
|
|
24
|
+
h as SignIn,
|
|
25
|
+
k as UserWidget,
|
|
26
|
+
q as contextStore,
|
|
27
|
+
Q as mixedStorage,
|
|
28
|
+
R as request,
|
|
29
|
+
v as useFormModal,
|
|
30
|
+
B as useGameStore,
|
|
31
|
+
C as usePermission,
|
|
32
|
+
N as usePermissions,
|
|
33
|
+
f as useQueryListStore,
|
|
34
|
+
w as useTokenStore,
|
|
35
|
+
D as useTokenValidation,
|
|
36
|
+
E as useToolkitsContext,
|
|
37
|
+
H as useTranslation,
|
|
38
|
+
I as withBaseRoutes,
|
|
39
|
+
M as withLayout
|
|
36
40
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-toolkits",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.16",
|
|
4
4
|
"packageManager": "^pnpm@8.7.5",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"vite": "^5.0.10",
|
|
71
71
|
"vite-plugin-dts": "^3.6.4",
|
|
72
72
|
"@flow97/eslint-config-mono": "0.0.4",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
73
|
+
"tsconfig": "0.0.5",
|
|
74
|
+
"tailwind-config": "0.1.1"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"antd": "^5.12.2",
|