0.4.41
This commit is contained in:
parent
208ffec6dc
commit
c3356b6d39
2
dist/button.js
vendored
2
dist/button.js
vendored
@ -1,4 +1,4 @@
|
||||
import { X as s, W as u, Y as e } from "./common/main-Dj4H7_Ai.js";
|
||||
import { X as s, W as u, Y as e } from "./common/main-Du9BFdeK.js";
|
||||
import "prop-types";
|
||||
export {
|
||||
s as auth,
|
||||
|
@ -872,14 +872,12 @@ const se = class se {
|
||||
const { iat: r } = JSON.parse(window.atob((n = a == null ? void 0 : a.split(".")) == null ? void 0 : n[1])), { iat: s, ...i } = F.decode(window.localStorage.getItem(ot) || "", {});
|
||||
return s === r ? Promise.resolve(i) : F.get("/api/mine-info").then(({ User: o = null }) => (window.localStorage.setItem(ot, F.encode({ ...o, iat: r })), o));
|
||||
} catch (a) {
|
||||
console.error(a), t && K.error("请登录").then(logout);
|
||||
console.error(a), t && K.error("请登录").then(this.logout);
|
||||
}
|
||||
return Promise.resolve(null);
|
||||
});
|
||||
v(this, "login", (t, n, a = {}) => F.post("/api/user-token", { username: t, passwd: Un.hash(n), platform: "web", ...a }).then(({ token: r }) => (window.localStorage.setItem(_e, r), r)));
|
||||
v(this, "logout", () => {
|
||||
window.localStorage.removeItem(ot), window.localStorage.removeItem(_e);
|
||||
});
|
||||
v(this, "logout", (t) => (window.localStorage.removeItem(ot), window.localStorage.removeItem(_e), t == null ? void 0 : t()));
|
||||
if (p(se, ye)) return p(se, ye);
|
||||
}
|
||||
};
|
2
dist/components.js
vendored
2
dist/components.js
vendored
@ -1,4 +1,4 @@
|
||||
import { a2 as s, V as p, a3 as n, a4 as t, a1 as d } from "./common/main-Dj4H7_Ai.js";
|
||||
import { a2 as s, V as p, a3 as n, a4 as t, a1 as d } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
s as Empty,
|
||||
p as Icon,
|
||||
|
2
dist/container.js
vendored
2
dist/container.js
vendored
@ -1,4 +1,4 @@
|
||||
import { _ as o, a2 as s, a3 as p, a4 as t, $ as d, a1 as n, a0 as r, Z as u } from "./common/main-Dj4H7_Ai.js";
|
||||
import { _ as o, a2 as s, a3 as p, a4 as t, $ as d, a1 as n, a0 as r, Z as u } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
o as Context,
|
||||
s as Empty,
|
||||
|
2
dist/data-converter.js
vendored
2
dist/data-converter.js
vendored
@ -1,6 +1,6 @@
|
||||
import "lodash";
|
||||
import "react";
|
||||
import { D as p } from "./common/main-Dj4H7_Ai.js";
|
||||
import { D as p } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
p as default
|
||||
};
|
||||
|
2
dist/data-list.js
vendored
2
dist/data-list.js
vendored
@ -1,4 +1,4 @@
|
||||
import { p as t, n as e, i as r, l as o, q as i, m as l, k as u, o as D, j as L, s as n, h as m, v as p, A as C, x as b, y as k, z as F, w as c } from "./common/main-Dj4H7_Ai.js";
|
||||
import { p as t, n as e, i as r, l as o, q as i, m as l, k as u, o as D, j as L, s as n, h as m, v as p, A as C, x as b, y as k, z as F, w as c } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
t as DataListContent,
|
||||
e as DataListContext,
|
||||
|
2
dist/data-list/utils.js
vendored
2
dist/data-list/utils.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { b as a } from "../common/main-Dj4H7_Ai.js";
|
||||
import { b as a } from "../common/main-Du9BFdeK.js";
|
||||
export {
|
||||
a as getDefaultExpandRowKeys
|
||||
};
|
||||
|
2
dist/grid-layout-form.js
vendored
2
dist/grid-layout-form.js
vendored
@ -1,4 +1,4 @@
|
||||
import { M as s, O as r, N as u, L as o, T as t, S as d, U as m, Q as F, P as i } from "./common/main-Dj4H7_Ai.js";
|
||||
import { M as s, O as r, N as u, L as o, T as t, S as d, U as m, Q as F, P as i } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
s as GridLayoutForm,
|
||||
r as GridLayoutFormHelper,
|
||||
|
2
dist/grid-layout-form/utils.js
vendored
2
dist/grid-layout-form/utils.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { af as a } from "../common/main-Dj4H7_Ai.js";
|
||||
import { af as a } from "../common/main-Du9BFdeK.js";
|
||||
export {
|
||||
a as getOptionItemByValue
|
||||
};
|
||||
|
2
dist/grid-layout.js
vendored
2
dist/grid-layout.js
vendored
@ -1,4 +1,4 @@
|
||||
import { c as d, d as e, H as i, G as t, e as u, f as o } from "./common/main-Dj4H7_Ai.js";
|
||||
import { c as d, d as e, H as i, G as t, e as u, f as o } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
d as GridLayout,
|
||||
e as GridLayoutWidget,
|
||||
|
2
dist/grid-layout/utils.js
vendored
2
dist/grid-layout/utils.js
vendored
@ -1,4 +1,4 @@
|
||||
import { a as t } from "../common/main-Dj4H7_Ai.js";
|
||||
import { a as t } from "../common/main-Du9BFdeK.js";
|
||||
export {
|
||||
t as getBoxStyle
|
||||
};
|
||||
|
2
dist/hooks.js
vendored
2
dist/hooks.js
vendored
@ -1,7 +1,7 @@
|
||||
import "lodash";
|
||||
import "rc-field-form";
|
||||
import "react";
|
||||
import { I as r, F as o, J as p, C as f, E as i, K as m, B as c } from "./common/main-Dj4H7_Ai.js";
|
||||
import { I as r, F as o, J as p, C as f, E as i, K as m, B as c } from "./common/main-Du9BFdeK.js";
|
||||
import { default as E } from "rc-util/lib/hooks/useMergedState";
|
||||
export {
|
||||
r as useDeepEffect,
|
||||
|
2
dist/iconfont.js
vendored
2
dist/iconfont.js
vendored
@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
||||
import "react";
|
||||
import "prop-types";
|
||||
import "classnames";
|
||||
import { V as a } from "./common/main-Dj4H7_Ai.js";
|
||||
import { V as a } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
a as default
|
||||
};
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -1,4 +1,4 @@
|
||||
import { ad as t, ae as e, a9 as o, aa as n, a5 as p, ab as c, a8 as r, a7 as f, a6 as l, ac as u } from "./common/main-Dj4H7_Ai.js";
|
||||
import { ad as t, ae as e, a9 as o, aa as n, a5 as p, ab as c, a8 as r, a7 as f, a6 as l, ac as u } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
t as AppContext,
|
||||
e as AppGlobalParamsContext,
|
||||
|
2
dist/res-ws.js
vendored
2
dist/res-ws.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { R as a } from "./common/main-Dj4H7_Ai.js";
|
||||
import { R as a } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
a as default
|
||||
};
|
||||
|
2
dist/utils.js
vendored
2
dist/utils.js
vendored
@ -1,5 +1,5 @@
|
||||
import "lodash";
|
||||
import { g as r, r as i, t as s, u as o } from "./common/main-Dj4H7_Ai.js";
|
||||
import { g as r, r as i, t as s, u as o } from "./common/main-Du9BFdeK.js";
|
||||
export {
|
||||
r as getWidgetPropsData,
|
||||
i as replaceKeys,
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ff",
|
||||
"private": true,
|
||||
"version": "0.4.40",
|
||||
"version": "0.4.41",
|
||||
"author": "www.fsdpf.com",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
@ -41,7 +41,10 @@
|
||||
"antd": "^5.17.0",
|
||||
"classnames": "^2.5.1",
|
||||
"immutability-helper": "^3.1.1",
|
||||
"less": "^4.2.0",
|
||||
"lodash": "^4.17.21",
|
||||
"mockjs": "^1.1.0",
|
||||
"prop-types": "^15.8.1",
|
||||
"rc-dialog": "^9.5.2",
|
||||
"rc-drawer": "^7.2.0",
|
||||
"rc-field-form": "^1.44.0",
|
||||
@ -50,9 +53,6 @@
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
"react-router-dom": "6.21.2",
|
||||
"less": "^4.2.0",
|
||||
"mockjs": "^1.1.0",
|
||||
"prop-types": "^15.8.1",
|
||||
"rollup-plugin-copy": "^3.5.0",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"vite": "^5.2.0",
|
||||
|
Loading…
Reference in New Issue
Block a user