react-toolkits 0.8.13 → 0.8.15

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # react-toolkits
2
2
 
3
+ ## 0.8.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 12f2666: feat: export pages
8
+
9
+ ## 0.8.14
10
+
11
+ ### Patch Changes
12
+
13
+ - 532a4da: feat: add 'signInSuccessRedirect' prop
14
+
3
15
  ## 0.8.13
4
16
 
5
17
  ### Patch Changes
@@ -1,21 +1,21 @@
1
- import { A as T, _, e as M, b as N, f as b, u as f, j as e, P as j, r as z, H as P, Q as $, h as L } from "./index-jdc5BLXR.chunk.js";
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-X4wAgOVF.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 I } from "./index-_Gs6nMNH.chunk.js";
6
- import { a as E, b as V, c as q } from "./index--TYK5iZT.chunk.js";
7
- import * as U from "react";
5
+ import { P as v } from "./index-xqdcwYUL.chunk.js";
6
+ import { d as E, e as V, f as q } from "./index-pq_K84zY.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 v = function(r, a) {
12
- return /* @__PURE__ */ U.createElement(T, _({}, r, {
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" && (v.displayName = "UsergroupAddOutlined");
18
- const Q = /* @__PURE__ */ U.forwardRef(v), h = "/api/usystem/role/list", K = () => {
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(I, {}) })
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(I, {}) })
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
  {