From c3356b6d3990ffc6aaf89dc73bb03ac2dc364075 Mon Sep 17 00:00:00 2001 From: what Date: Thu, 12 Dec 2024 15:29:22 +0800 Subject: [PATCH] 0.4.41 --- dist/button.js | 2 +- dist/common/{main-Dj4H7_Ai.js => main-Du9BFdeK.js} | 6 ++---- dist/components.js | 2 +- dist/container.js | 2 +- dist/data-converter.js | 2 +- dist/data-list.js | 2 +- dist/data-list/utils.js | 2 +- dist/grid-layout-form.js | 2 +- dist/grid-layout-form/utils.js | 2 +- dist/grid-layout.js | 2 +- dist/grid-layout/utils.js | 2 +- dist/hooks.js | 2 +- dist/iconfont.js | 2 +- dist/index.js | 2 +- dist/res-ws.js | 2 +- dist/utils.js | 2 +- package.json | 8 ++++---- 17 files changed, 21 insertions(+), 23 deletions(-) rename dist/common/{main-Dj4H7_Ai.js => main-Du9BFdeK.js} (99%) diff --git a/dist/button.js b/dist/button.js index f5d4077..2b649c1 100644 --- a/dist/button.js +++ b/dist/button.js @@ -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, diff --git a/dist/common/main-Dj4H7_Ai.js b/dist/common/main-Du9BFdeK.js similarity index 99% rename from dist/common/main-Dj4H7_Ai.js rename to dist/common/main-Du9BFdeK.js index d650a11..442f40c 100644 --- a/dist/common/main-Dj4H7_Ai.js +++ b/dist/common/main-Du9BFdeK.js @@ -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); } }; diff --git a/dist/components.js b/dist/components.js index 249d4e7..42c97aa 100644 --- a/dist/components.js +++ b/dist/components.js @@ -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, diff --git a/dist/container.js b/dist/container.js index 1ed5134..93e0be5 100644 --- a/dist/container.js +++ b/dist/container.js @@ -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, diff --git a/dist/data-converter.js b/dist/data-converter.js index fae4ec4..366f83a 100644 --- a/dist/data-converter.js +++ b/dist/data-converter.js @@ -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 }; diff --git a/dist/data-list.js b/dist/data-list.js index 65fb8c5..7801f06 100644 --- a/dist/data-list.js +++ b/dist/data-list.js @@ -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, diff --git a/dist/data-list/utils.js b/dist/data-list/utils.js index e11230f..0d2248a 100644 --- a/dist/data-list/utils.js +++ b/dist/data-list/utils.js @@ -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 }; diff --git a/dist/grid-layout-form.js b/dist/grid-layout-form.js index 31d80c4..274bc15 100644 --- a/dist/grid-layout-form.js +++ b/dist/grid-layout-form.js @@ -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, diff --git a/dist/grid-layout-form/utils.js b/dist/grid-layout-form/utils.js index 2161372..41d39f2 100644 --- a/dist/grid-layout-form/utils.js +++ b/dist/grid-layout-form/utils.js @@ -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 }; diff --git a/dist/grid-layout.js b/dist/grid-layout.js index e18931d..bd2b775 100644 --- a/dist/grid-layout.js +++ b/dist/grid-layout.js @@ -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, diff --git a/dist/grid-layout/utils.js b/dist/grid-layout/utils.js index 4dc4a39..295c9ce 100644 --- a/dist/grid-layout/utils.js +++ b/dist/grid-layout/utils.js @@ -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 }; diff --git a/dist/hooks.js b/dist/hooks.js index c21e20e..fd108ad 100644 --- a/dist/hooks.js +++ b/dist/hooks.js @@ -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, diff --git a/dist/iconfont.js b/dist/iconfont.js index 705c11b..aaaac4e 100644 --- a/dist/iconfont.js +++ b/dist/iconfont.js @@ -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 }; diff --git a/dist/index.js b/dist/index.js index aacaf51..1246760 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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, diff --git a/dist/res-ws.js b/dist/res-ws.js index 1fb4fb0..cd41972 100644 --- a/dist/res-ws.js +++ b/dist/res-ws.js @@ -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 }; diff --git a/dist/utils.js b/dist/utils.js index fa99e95..e13c8d7 100644 --- a/dist/utils.js +++ b/dist/utils.js @@ -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, diff --git a/package.json b/package.json index 250b95f..f7e44f2 100644 --- a/package.json +++ b/package.json @@ -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",