This commit is contained in:
what 2024-12-12 15:29:22 +08:00
parent 208ffec6dc
commit c3356b6d39
17 changed files with 21 additions and 23 deletions

2
dist/button.js vendored
View File

@ -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"; import "prop-types";
export { export {
s as auth, s as auth,

View File

@ -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) || "", {}); 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)); 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) { } catch (a) {
console.error(a), t && K.error("请登录").then(logout); console.error(a), t && K.error("请登录").then(this.logout);
} }
return Promise.resolve(null); 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, "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", () => { v(this, "logout", (t) => (window.localStorage.removeItem(ot), window.localStorage.removeItem(_e), t == null ? void 0 : t()));
window.localStorage.removeItem(ot), window.localStorage.removeItem(_e);
});
if (p(se, ye)) return p(se, ye); if (p(se, ye)) return p(se, ye);
} }
}; };

2
dist/components.js vendored
View File

@ -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 { export {
s as Empty, s as Empty,
p as Icon, p as Icon,

2
dist/container.js vendored
View File

@ -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 { export {
o as Context, o as Context,
s as Empty, s as Empty,

View File

@ -1,6 +1,6 @@
import "lodash"; import "lodash";
import "react"; import "react";
import { D as p } from "./common/main-Dj4H7_Ai.js"; import { D as p } from "./common/main-Du9BFdeK.js";
export { export {
p as default p as default
}; };

2
dist/data-list.js vendored
View File

@ -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 { export {
t as DataListContent, t as DataListContent,
e as DataListContext, e as DataListContext,

View File

@ -1,5 +1,5 @@
import "lodash"; import "lodash";
import { b as a } from "../common/main-Dj4H7_Ai.js"; import { b as a } from "../common/main-Du9BFdeK.js";
export { export {
a as getDefaultExpandRowKeys a as getDefaultExpandRowKeys
}; };

View File

@ -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 { export {
s as GridLayoutForm, s as GridLayoutForm,
r as GridLayoutFormHelper, r as GridLayoutFormHelper,

View File

@ -1,5 +1,5 @@
import "lodash"; import "lodash";
import { af as a } from "../common/main-Dj4H7_Ai.js"; import { af as a } from "../common/main-Du9BFdeK.js";
export { export {
a as getOptionItemByValue a as getOptionItemByValue
}; };

2
dist/grid-layout.js vendored
View File

@ -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 { export {
d as GridLayout, d as GridLayout,
e as GridLayoutWidget, e as GridLayoutWidget,

View File

@ -1,4 +1,4 @@
import { a as t } from "../common/main-Dj4H7_Ai.js"; import { a as t } from "../common/main-Du9BFdeK.js";
export { export {
t as getBoxStyle t as getBoxStyle
}; };

2
dist/hooks.js vendored
View File

@ -1,7 +1,7 @@
import "lodash"; import "lodash";
import "rc-field-form"; import "rc-field-form";
import "react"; 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"; import { default as E } from "rc-util/lib/hooks/useMergedState";
export { export {
r as useDeepEffect, r as useDeepEffect,

2
dist/iconfont.js vendored
View File

@ -2,7 +2,7 @@ import "react/jsx-runtime";
import "react"; import "react";
import "prop-types"; import "prop-types";
import "classnames"; import "classnames";
import { V as a } from "./common/main-Dj4H7_Ai.js"; import { V as a } from "./common/main-Du9BFdeK.js";
export { export {
a as default a as default
}; };

2
dist/index.js vendored
View File

@ -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 { export {
t as AppContext, t as AppContext,
e as AppGlobalParamsContext, e as AppGlobalParamsContext,

2
dist/res-ws.js vendored
View File

@ -1,5 +1,5 @@
import "lodash"; import "lodash";
import { R as a } from "./common/main-Dj4H7_Ai.js"; import { R as a } from "./common/main-Du9BFdeK.js";
export { export {
a as default a as default
}; };

2
dist/utils.js vendored
View File

@ -1,5 +1,5 @@
import "lodash"; 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 { export {
r as getWidgetPropsData, r as getWidgetPropsData,
i as replaceKeys, i as replaceKeys,

View File

@ -1,7 +1,7 @@
{ {
"name": "ff", "name": "ff",
"private": true, "private": true,
"version": "0.4.40", "version": "0.4.41",
"author": "www.fsdpf.com", "author": "www.fsdpf.com",
"type": "module", "type": "module",
"main": "./dist/index.js", "main": "./dist/index.js",
@ -41,7 +41,10 @@
"antd": "^5.17.0", "antd": "^5.17.0",
"classnames": "^2.5.1", "classnames": "^2.5.1",
"immutability-helper": "^3.1.1", "immutability-helper": "^3.1.1",
"less": "^4.2.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"mockjs": "^1.1.0",
"prop-types": "^15.8.1",
"rc-dialog": "^9.5.2", "rc-dialog": "^9.5.2",
"rc-drawer": "^7.2.0", "rc-drawer": "^7.2.0",
"rc-field-form": "^1.44.0", "rc-field-form": "^1.44.0",
@ -50,9 +53,6 @@
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-router-dom": "6.21.2", "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-copy": "^3.5.0",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"vite": "^5.2.0", "vite": "^5.2.0",