antd-management-fast-framework 1.12.32 → 1.12.36
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/es/customComponents/Entrance/EntranceItem.js +4 -2
- package/es/customComponents/FunctionComponent/index.d.ts +3 -3
- package/es/framework/AuthorizationWrapper/index.js +1 -4
- package/es/framework/Base/index.js +2 -4
- package/es/framework/DataListView/ColumnSetting/DndItem.js +0 -16
- package/es/utils/actionAssist.js +8 -4
- package/es/utils/proLayoutCollection.d.ts +1 -1
- package/es/utils/proLayoutCollection.js +1 -1
- package/es/utils/request.js +7 -7
- package/es/utils/requestAssistor.js +8 -8
- package/es/utils/tools.d.ts +5 -3
- package/es/utils/tools.js +12 -0
- package/es/utils/virtualRequest.js +12 -11
- package/package.json +52 -49
|
@@ -53,6 +53,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
53
53
|
|
|
54
54
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
55
55
|
|
|
56
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
57
|
+
|
|
56
58
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
57
59
|
|
|
58
60
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -114,9 +116,9 @@ var EntranceItem = function EntranceItem(props) {
|
|
|
114
116
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
115
117
|
|
|
116
118
|
var onGetCaptcha = (0, _react.useCallback)( /*#__PURE__*/function () {
|
|
117
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/
|
|
119
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(mobile) {
|
|
118
120
|
var result;
|
|
119
|
-
return
|
|
121
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
120
122
|
while (1) {
|
|
121
123
|
switch (_context.prev = _context.next) {
|
|
122
124
|
case 0:
|
|
@@ -20,7 +20,7 @@ export function buildButton({ key: keySource, type: typeSource, size: sizeSource
|
|
|
20
20
|
showIcon?: boolean | undefined;
|
|
21
21
|
}): JSX.Element | null;
|
|
22
22
|
export function buildDropdownButton({ key, tooltip, placement, type: typeSource, size, text, icon, handleData: r, arrow, disabled, hidden, confirm, handleButtonClick, handleMenuClick, menuItems, }: {
|
|
23
|
-
key?:
|
|
23
|
+
key?: string | undefined;
|
|
24
24
|
tooltip?: boolean | undefined;
|
|
25
25
|
placement?: string | undefined;
|
|
26
26
|
type?: string | undefined;
|
|
@@ -37,7 +37,7 @@ export function buildDropdownButton({ key, tooltip, placement, type: typeSource,
|
|
|
37
37
|
menuItems?: any[] | undefined;
|
|
38
38
|
}): JSX.Element | null;
|
|
39
39
|
export function buildDropdownEllipsis({ key, tooltip, type: typeSource, size, icon, arrow, disabled, hidden, handleData: r, handleMenuClick, menuItems, }: {
|
|
40
|
-
key?:
|
|
40
|
+
key?: string | undefined;
|
|
41
41
|
tooltip?: {
|
|
42
42
|
placement: string;
|
|
43
43
|
title: string;
|
|
@@ -53,7 +53,7 @@ export function buildDropdownEllipsis({ key, tooltip, type: typeSource, size, ic
|
|
|
53
53
|
menuItems?: any[] | undefined;
|
|
54
54
|
}): JSX.Element | null;
|
|
55
55
|
export function buildDropdown({ key, tooltip: tooltipSource, type: typeSource, placement: placementDropdown, size, text, icon, handleData: r, arrow, disabled, hidden, handleButtonClick, handleMenuClick, menuItems, confirm, processing, iconProcessing, }: {
|
|
56
|
-
key?:
|
|
56
|
+
key?: string | undefined;
|
|
57
57
|
tooltip?: boolean | undefined;
|
|
58
58
|
type?: string | undefined;
|
|
59
59
|
placement?: string | undefined;
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
|
|
10
|
-
var _umi = require("umi");
|
|
11
|
-
|
|
12
10
|
var _tools = require("../../utils/tools");
|
|
13
11
|
|
|
14
12
|
var _authority = require("../../utils/authority");
|
|
@@ -70,8 +68,7 @@ var AuthorizationWrapper = /*#__PURE__*/function (_SupplementWrapper) {
|
|
|
70
68
|
(0, _tools.showRuntimeError)({
|
|
71
69
|
message: text
|
|
72
70
|
});
|
|
73
|
-
|
|
74
|
-
_umi.history.replace('/exception/404');
|
|
71
|
+
(0, _tools.redirectToPath)('/exception/404');
|
|
75
72
|
}
|
|
76
73
|
|
|
77
74
|
if (needDoOther) {
|
|
@@ -7,8 +7,6 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
|
|
10
|
-
var _umi = require("umi");
|
|
11
|
-
|
|
12
10
|
var _nprogress = _interopRequireDefault(require("nprogress"));
|
|
13
11
|
|
|
14
12
|
var _tools = require("../../utils/tools");
|
|
@@ -205,7 +203,7 @@ var Base = /*#__PURE__*/function (_Component) {
|
|
|
205
203
|
}, 400);
|
|
206
204
|
}
|
|
207
205
|
|
|
208
|
-
|
|
206
|
+
(0, _tools.goToPath)(location);
|
|
209
207
|
};
|
|
210
208
|
|
|
211
209
|
_this.redirectToPath = function (path) {
|
|
@@ -221,7 +219,7 @@ var Base = /*#__PURE__*/function (_Component) {
|
|
|
221
219
|
}, 400);
|
|
222
220
|
}
|
|
223
221
|
|
|
224
|
-
|
|
222
|
+
(0, _tools.redirectToPath)(location);
|
|
225
223
|
};
|
|
226
224
|
|
|
227
225
|
_this.checkHasMore = function (pageNo, pageSize, total) {
|
|
@@ -60,43 +60,32 @@ var Card = function Card(_ref) {
|
|
|
60
60
|
var dragIndex = item.index;
|
|
61
61
|
var hoverIndex = index; // Don't replace items with themselves
|
|
62
62
|
|
|
63
|
-
// Don't replace items with themselves
|
|
64
63
|
if (dragIndex === hoverIndex) {
|
|
65
64
|
return;
|
|
66
65
|
} // Determine rectangle on screen
|
|
67
66
|
|
|
68
67
|
|
|
69
|
-
// Determine rectangle on screen
|
|
70
68
|
var hoverBoundingRect = ref.current.getBoundingClientRect(); // Get vertical middle
|
|
71
69
|
|
|
72
|
-
// Get vertical middle
|
|
73
70
|
var hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2; // Determine mouse position
|
|
74
71
|
|
|
75
|
-
// Determine mouse position
|
|
76
72
|
var clientOffset = monitor.getClientOffset(); // Get pixels to the top
|
|
77
73
|
|
|
78
|
-
// Get pixels to the top
|
|
79
74
|
var hoverClientY = clientOffset.y - hoverBoundingRect.top; // Only perform the move when the mouse has crossed half of the items height
|
|
80
75
|
// When dragging downwards, only move when the cursor is below 50%
|
|
81
76
|
// When dragging upwards, only move when the cursor is above 50%
|
|
82
77
|
// Dragging downwards
|
|
83
78
|
|
|
84
|
-
// Only perform the move when the mouse has crossed half of the items height
|
|
85
|
-
// When dragging downwards, only move when the cursor is below 50%
|
|
86
|
-
// When dragging upwards, only move when the cursor is above 50%
|
|
87
|
-
// Dragging downwards
|
|
88
79
|
if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {
|
|
89
80
|
return;
|
|
90
81
|
} // Dragging upwards
|
|
91
82
|
|
|
92
83
|
|
|
93
|
-
// Dragging upwards
|
|
94
84
|
if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {
|
|
95
85
|
return;
|
|
96
86
|
} // Time to actually perform the action
|
|
97
87
|
|
|
98
88
|
|
|
99
|
-
// Time to actually perform the action
|
|
100
89
|
if (move) {
|
|
101
90
|
move(dragIndex, hoverIndex);
|
|
102
91
|
} // Note: we're mutating the monitor item here!
|
|
@@ -106,11 +95,6 @@ var Card = function Card(_ref) {
|
|
|
106
95
|
// eslint-disable-next-line no-param-reassign
|
|
107
96
|
|
|
108
97
|
|
|
109
|
-
// Note: we're mutating the monitor item here!
|
|
110
|
-
// Generally it's better to avoid mutations,
|
|
111
|
-
// but it's good here for the sake of performance
|
|
112
|
-
// to avoid expensive index searches.
|
|
113
|
-
// eslint-disable-next-line no-param-reassign
|
|
114
98
|
item.index = hoverIndex;
|
|
115
99
|
}
|
|
116
100
|
}),
|
package/es/utils/actionAssist.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -21,6 +23,8 @@ var _tools = require("./tools");
|
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
26
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
27
|
+
|
|
24
28
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
25
29
|
|
|
26
30
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -142,10 +146,10 @@ function actionCore(_x) {
|
|
|
142
146
|
|
|
143
147
|
|
|
144
148
|
function _actionCore() {
|
|
145
|
-
_actionCore = _asyncToGenerator( /*#__PURE__*/
|
|
149
|
+
_actionCore = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3) {
|
|
146
150
|
var api, params, _ref3$apiDataConvert, apiDataConvert, target, handleData, successCallback, _ref3$successMessage, successMessage, _ref3$successMessageB, successMessageBuilder, _ref3$showProcessing, showProcessing, _ref3$textProcessing, textProcessing, text, dispatch, key;
|
|
147
151
|
|
|
148
|
-
return
|
|
152
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
149
153
|
while (1) {
|
|
150
154
|
switch (_context.prev = _context.next) {
|
|
151
155
|
case 0:
|
|
@@ -311,10 +315,10 @@ function confirmActionCore(_x2) {
|
|
|
311
315
|
|
|
312
316
|
|
|
313
317
|
function _confirmActionCore() {
|
|
314
|
-
_confirmActionCore = _asyncToGenerator( /*#__PURE__*/
|
|
318
|
+
_confirmActionCore = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref4) {
|
|
315
319
|
var title, content, _ref4$okText, okText, _ref4$okType, okType, _ref4$cancelText, cancelText, target, handleData, successCallback, _ref4$okAction, okAction, _ref4$successMessage, successMessage, _ref4$successMessageB, successMessageBuilder, _ref4$showProcessing, showProcessing, processing;
|
|
316
320
|
|
|
317
|
-
return
|
|
321
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
318
322
|
while (1) {
|
|
319
323
|
switch (_context2.prev = _context2.next) {
|
|
320
324
|
case 0:
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export function empty(): {};
|
|
8
8
|
export namespace proLayoutDefaultProps {
|
|
9
|
-
function onMenuHeaderClick():
|
|
9
|
+
function onMenuHeaderClick(): void;
|
|
10
10
|
function itemRender(route: any, params: any, routes: any, paths: any): JSX.Element;
|
|
11
11
|
function menuItemRender(menuItemProps: any, defaultDom: any): any;
|
|
12
12
|
}
|
|
@@ -23,7 +23,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
23
23
|
*/
|
|
24
24
|
var proLayoutDefaultProps = {
|
|
25
25
|
onMenuHeaderClick: function onMenuHeaderClick() {
|
|
26
|
-
return
|
|
26
|
+
return (0, _tools.goToPath)('/');
|
|
27
27
|
},
|
|
28
28
|
itemRender: function itemRender(route, params, routes, paths) {
|
|
29
29
|
var first = routes.indexOf(route) === 0;
|
package/es/utils/request.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,8 +17,6 @@ var _notification2 = _interopRequireDefault(require("antd/es/notification"));
|
|
|
15
17
|
|
|
16
18
|
var _umiRequest = require("umi-request");
|
|
17
19
|
|
|
18
|
-
var _umi = require("umi");
|
|
19
|
-
|
|
20
20
|
var _tools = require("./tools");
|
|
21
21
|
|
|
22
22
|
var _globalStorageAssist = require("./globalStorageAssist");
|
|
@@ -25,6 +25,8 @@ var _defaultSettingsSpecial = require("./defaultSettingsSpecial");
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
29
|
+
|
|
28
30
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
31
|
|
|
30
32
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -93,9 +95,9 @@ var request = (0, _umiRequest.extend)({
|
|
|
93
95
|
}); // request拦截器, 改变url 或 options.
|
|
94
96
|
|
|
95
97
|
request.interceptors.request.use( /*#__PURE__*/function () {
|
|
96
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/
|
|
98
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(url, options) {
|
|
97
99
|
var token, corsUrl, urlChange, showRequestInfo, headers;
|
|
98
|
-
return
|
|
100
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
99
101
|
while (1) {
|
|
100
102
|
switch (_context.prev = _context.next) {
|
|
101
103
|
case 0:
|
|
@@ -229,9 +231,7 @@ request.interceptors.response.use(function (response) {
|
|
|
229
231
|
|
|
230
232
|
_message2.default.info('登陆超时,请重新登录!', 0.6);
|
|
231
233
|
|
|
232
|
-
|
|
233
|
-
pathname: entrancePath
|
|
234
|
-
});
|
|
234
|
+
(0, _tools.redirectToPath)(entrancePath);
|
|
235
235
|
}, 200);
|
|
236
236
|
}
|
|
237
237
|
}).catch(function (o) {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -19,8 +21,6 @@ require("antd/es/message/style");
|
|
|
19
21
|
|
|
20
22
|
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
21
23
|
|
|
22
|
-
var _umi = require("umi");
|
|
23
|
-
|
|
24
24
|
var _tools = require("./tools");
|
|
25
25
|
|
|
26
26
|
var _globalStorageAssist = require("./globalStorageAssist");
|
|
@@ -33,6 +33,8 @@ var _virtualRequest = require("./virtualRequest");
|
|
|
33
33
|
|
|
34
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
35
|
|
|
36
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
37
|
+
|
|
36
38
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
37
39
|
|
|
38
40
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -108,7 +110,7 @@ function dataExceptionNotice(d) {
|
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
requestAnimationFrame(function () {
|
|
111
|
-
|
|
113
|
+
(0, _tools.redirectToPath)(entrancePath);
|
|
112
114
|
});
|
|
113
115
|
}
|
|
114
116
|
}
|
|
@@ -406,10 +408,10 @@ function request(_x) {
|
|
|
406
408
|
|
|
407
409
|
|
|
408
410
|
function _request() {
|
|
409
|
-
_request = _asyncToGenerator( /*#__PURE__*/
|
|
411
|
+
_request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref4) {
|
|
410
412
|
var api, _ref4$urlParams, urlParams, _ref4$params, params, _ref4$method, method, _ref4$useVirtualReque, useVirtualRequest, _ref4$showUseVirtualR, showUseVirtualRequestMessage, _ref4$showUseVirtualR2, showUseVirtualRequestMessageDelay, _ref4$virtualRequestD, virtualRequestDelay, _ref4$virtualSuccessR, virtualSuccessResponse, _ref4$virtualFailResp, virtualFailResponse, _ref4$virtualRequestR, virtualRequestResult, _ref4$virtualNeedAuth, virtualNeedAuthorize, apiVersion, url, showRequestInfo, result, verifyToken, token, entrancePath;
|
|
411
413
|
|
|
412
|
-
return
|
|
414
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
413
415
|
while (1) {
|
|
414
416
|
switch (_context.prev = _context.next) {
|
|
415
417
|
case 0:
|
|
@@ -498,9 +500,7 @@ function _request() {
|
|
|
498
500
|
|
|
499
501
|
_message2.default.info('登陆超时,请重新登录!', 0.6);
|
|
500
502
|
|
|
501
|
-
|
|
502
|
-
pathname: entrancePath
|
|
503
|
-
});
|
|
503
|
+
(0, _tools.redirectToPath)(entrancePath);
|
|
504
504
|
}, 400);
|
|
505
505
|
_context.next = 27;
|
|
506
506
|
break;
|
package/es/utils/tools.d.ts
CHANGED
|
@@ -188,6 +188,8 @@ export function checkDevelopment(): boolean;
|
|
|
188
188
|
* @returns
|
|
189
189
|
*/
|
|
190
190
|
export function corsTarget(): string;
|
|
191
|
+
export function goToPath(path: any): void;
|
|
192
|
+
export function redirectToPath(path: any): void;
|
|
191
193
|
export function showError(text: any): void;
|
|
192
194
|
export function showRuntimeError({ message: messageText, showStack }: {
|
|
193
195
|
message: any;
|
|
@@ -278,7 +280,7 @@ export function recordObject(record: any, level?: string): void;
|
|
|
278
280
|
* @param {*} v
|
|
279
281
|
* @returns
|
|
280
282
|
*/
|
|
281
|
-
export function getGuid():
|
|
283
|
+
export function getGuid(): string;
|
|
282
284
|
/**
|
|
283
285
|
* 检测目标是否在数组址之中
|
|
284
286
|
*/
|
|
@@ -303,7 +305,7 @@ export function formatDatetime({ data, format, defaultValue, timeZone, }: any):
|
|
|
303
305
|
/**
|
|
304
306
|
* 格式化数字
|
|
305
307
|
*/
|
|
306
|
-
export function numeralFormat(v: any, formatString: any):
|
|
308
|
+
export function numeralFormat(v: any, formatString: any): string;
|
|
307
309
|
/**
|
|
308
310
|
* 当前Moment时间
|
|
309
311
|
*
|
|
@@ -490,7 +492,7 @@ export function seededRandom({ seed, min, max }: {
|
|
|
490
492
|
* @param {*} seed
|
|
491
493
|
* @returns
|
|
492
494
|
*/
|
|
493
|
-
export function getRandomColor({ seed, hue, luminosity, count, format, alpha, }: any):
|
|
495
|
+
export function getRandomColor({ seed, hue, luminosity, count, format, alpha, }: any): string[];
|
|
494
496
|
/**
|
|
495
497
|
* 获取浏览器信息
|
|
496
498
|
*
|
package/es/utils/tools.js
CHANGED
|
@@ -58,6 +58,7 @@ exports.getStringFromSessionStorage = getStringFromSessionStorage;
|
|
|
58
58
|
exports.getTimeDistance = getTimeDistance;
|
|
59
59
|
exports.getValue = getValue;
|
|
60
60
|
exports.getValueByKey = getValueByKey;
|
|
61
|
+
exports.goToPath = goToPath;
|
|
61
62
|
exports.inCollection = inCollection;
|
|
62
63
|
exports.isArray = isArray;
|
|
63
64
|
exports.isBoolean = isBoolean;
|
|
@@ -86,6 +87,7 @@ exports.recordLog = recordLog;
|
|
|
86
87
|
exports.recordObject = recordObject;
|
|
87
88
|
exports.recordText = recordText;
|
|
88
89
|
exports.recordWarn = recordWarn;
|
|
90
|
+
exports.redirectToPath = redirectToPath;
|
|
89
91
|
exports.refitCommonData = refitCommonData;
|
|
90
92
|
exports.refitFieldDecoratorOption = refitFieldDecoratorOption;
|
|
91
93
|
exports.removeEndMatch = removeEndMatch;
|
|
@@ -162,6 +164,8 @@ var _arrayMove = require("array-move");
|
|
|
162
164
|
|
|
163
165
|
var _lodash = require("lodash");
|
|
164
166
|
|
|
167
|
+
var _umi = require("umi");
|
|
168
|
+
|
|
165
169
|
var _constants = require("./constants");
|
|
166
170
|
|
|
167
171
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -397,6 +401,14 @@ function corsTarget() {
|
|
|
397
401
|
return corsTargetDomain;
|
|
398
402
|
}
|
|
399
403
|
|
|
404
|
+
function goToPath(path) {
|
|
405
|
+
_umi.history.push(path);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
function redirectToPath(path) {
|
|
409
|
+
_umi.history.replace(path);
|
|
410
|
+
}
|
|
411
|
+
|
|
400
412
|
function showError(text) {
|
|
401
413
|
showErrorMessage({
|
|
402
414
|
message: text
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,8 +17,6 @@ require("antd/es/message/style");
|
|
|
15
17
|
|
|
16
18
|
var _message2 = _interopRequireDefault(require("antd/es/message"));
|
|
17
19
|
|
|
18
|
-
var _umi = require("umi");
|
|
19
|
-
|
|
20
20
|
var _tools = require("./tools");
|
|
21
21
|
|
|
22
22
|
var _globalStorageAssist = require("./globalStorageAssist");
|
|
@@ -25,6 +25,8 @@ var _defaultSettingsSpecial = require("./defaultSettingsSpecial");
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
+
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
29
|
+
|
|
28
30
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
29
31
|
|
|
30
32
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -141,10 +143,10 @@ function apiVirtualSuccessAccess(_x) {
|
|
|
141
143
|
|
|
142
144
|
|
|
143
145
|
function _apiVirtualSuccessAccess() {
|
|
144
|
-
_apiVirtualSuccessAccess = _asyncToGenerator( /*#__PURE__*/
|
|
146
|
+
_apiVirtualSuccessAccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3) {
|
|
145
147
|
var remoteResponse, _ref3$needAuthorize, needAuthorize, result, _result, code, entrancePath;
|
|
146
148
|
|
|
147
|
-
return
|
|
149
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
148
150
|
while (1) {
|
|
149
151
|
switch (_context.prev = _context.next) {
|
|
150
152
|
case 0:
|
|
@@ -180,7 +182,7 @@ function _apiVirtualSuccessAccess() {
|
|
|
180
182
|
throw new Error('缺少登录页面路径配置');
|
|
181
183
|
|
|
182
184
|
case 9:
|
|
183
|
-
|
|
185
|
+
(0, _tools.goToPath)(entrancePath);
|
|
184
186
|
|
|
185
187
|
case 10:
|
|
186
188
|
return _context.abrupt("return", result);
|
|
@@ -204,10 +206,10 @@ function apiVirtualFailAccess(_x2) {
|
|
|
204
206
|
|
|
205
207
|
|
|
206
208
|
function _apiVirtualFailAccess() {
|
|
207
|
-
_apiVirtualFailAccess = _asyncToGenerator( /*#__PURE__*/
|
|
209
|
+
_apiVirtualFailAccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref4) {
|
|
208
210
|
var remoteResponse, _ref4$needAuthorize, needAuthorize, result, _result2, code, messageText, entrancePath;
|
|
209
211
|
|
|
210
|
-
return
|
|
212
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
211
213
|
while (1) {
|
|
212
214
|
switch (_context2.prev = _context2.next) {
|
|
213
215
|
case 0:
|
|
@@ -240,8 +242,7 @@ function _apiVirtualFailAccess() {
|
|
|
240
242
|
throw new Error('缺少登录页面路径配置');
|
|
241
243
|
|
|
242
244
|
case 9:
|
|
243
|
-
|
|
244
|
-
|
|
245
|
+
(0, _tools.goToPath)(entrancePath);
|
|
245
246
|
_context2.next = 13;
|
|
246
247
|
break;
|
|
247
248
|
|
|
@@ -275,10 +276,10 @@ function apiVirtualAccess(_x3) {
|
|
|
275
276
|
|
|
276
277
|
|
|
277
278
|
function _apiVirtualAccess() {
|
|
278
|
-
_apiVirtualAccess = _asyncToGenerator( /*#__PURE__*/
|
|
279
|
+
_apiVirtualAccess = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref5) {
|
|
279
280
|
var _ref5$virtualRequestD, virtualRequestDelay, dataBuild, result, _result3, code, messageText;
|
|
280
281
|
|
|
281
|
-
return
|
|
282
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
282
283
|
while (1) {
|
|
283
284
|
switch (_context3.prev = _context3.next) {
|
|
284
285
|
case 0:
|
package/package.json
CHANGED
|
@@ -1,43 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.36",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
7
7
|
],
|
|
8
|
-
"author": "kityandhero <kityandhero@126.com>",
|
|
9
8
|
"homepage": "https://github.com/kityandhero/antd-management-fast-framework.git",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/kityandhero/antd-management-fast-framework/issues"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/kityandhero/antd-management-fast-framework.git"
|
|
15
|
+
},
|
|
10
16
|
"license": "MIT",
|
|
17
|
+
"author": "kityandhero <kityandhero@126.com>",
|
|
11
18
|
"main": "lib/index.js",
|
|
19
|
+
"directories": {
|
|
20
|
+
"lib": "lib",
|
|
21
|
+
"test": "test",
|
|
22
|
+
"es": "lib"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"es"
|
|
26
|
+
],
|
|
12
27
|
"scripts": {
|
|
13
|
-
"
|
|
14
|
-
"clean-file": "rimraf ./node_modules",
|
|
28
|
+
"adjust-install": "cnpm install postcss-less",
|
|
15
29
|
"build": "rimraf ./src/**/*.d.ts && rimraf ./lib && rimraf ./es && tsc -p . && father-build && rimraf ./src/**/*.d.ts",
|
|
30
|
+
"clean-file": "rimraf ./node_modules",
|
|
16
31
|
"delete:dts": "rimraf ./src/**/*.d.ts",
|
|
17
32
|
"lint": "umi g tmp && npm run lint:js && npm run lint:style && npm run lint:prettier",
|
|
18
|
-
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
|
|
19
|
-
"precommit": "lint-staged",
|
|
20
33
|
"lint-staged": "lint-staged",
|
|
21
34
|
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
|
|
22
35
|
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
|
|
23
36
|
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
|
|
37
|
+
"lint:prettier": "prettier --check \"**/*\" --end-of-line auto",
|
|
24
38
|
"lint:style": "stylelint --fix \"./src/**/*.less\"",
|
|
39
|
+
"precommit": "lint-staged",
|
|
25
40
|
"prettier": "prettier -c --write \"**/*\"",
|
|
26
41
|
"test": "umi-test",
|
|
27
42
|
"test:coverage": "umi-test --coverage",
|
|
28
43
|
"test:update": "umi-test --updateSnapshot",
|
|
29
|
-
"
|
|
44
|
+
"v:p": "npm version patch && npm publish"
|
|
30
45
|
},
|
|
31
46
|
"dependencies": {
|
|
32
47
|
"@ant-design/icons": "^4.7.0",
|
|
33
|
-
"@ant-design/pro-layout": "^6.38.
|
|
48
|
+
"@ant-design/pro-layout": "^6.38.4",
|
|
34
49
|
"@antv/data-set": "^0.11.8",
|
|
35
50
|
"@tinymce/tinymce-react": "^4.1.0",
|
|
36
|
-
"antd": "^4.20.
|
|
51
|
+
"antd": "^4.20.6",
|
|
37
52
|
"array-move": "^4.0.0",
|
|
38
53
|
"bizcharts": "^4.1.16",
|
|
39
54
|
"browserslist": "^4.20.3",
|
|
40
|
-
"caniuse-lite": "^1.0.
|
|
55
|
+
"caniuse-lite": "^1.0.30001342",
|
|
41
56
|
"classnames": "^2.3.1",
|
|
42
57
|
"copy-to-clipboard": "^3.3.1",
|
|
43
58
|
"enquire-js": "^0.2.1",
|
|
@@ -85,32 +100,35 @@
|
|
|
85
100
|
},
|
|
86
101
|
"devDependencies": {
|
|
87
102
|
"@ant-design/colors": "^6.0.0",
|
|
88
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
89
|
-
"@babel/plugin-proposal-decorators": "^7.17.
|
|
90
|
-
"@babel/plugin-syntax-jsx": "^7.
|
|
91
|
-
"@babel/preset-env": "^7.
|
|
92
|
-
"@babel/preset-react": "^7.
|
|
93
|
-
"@commitlint/cli": "^
|
|
94
|
-
"@commitlint/config-conventional": "^
|
|
95
|
-
"@commitlint/config-lerna-scopes": "^
|
|
96
|
-
"@commitlint/cz-commitlint": "^
|
|
103
|
+
"@babel/plugin-proposal-class-properties": "^7.17.12",
|
|
104
|
+
"@babel/plugin-proposal-decorators": "^7.17.12",
|
|
105
|
+
"@babel/plugin-syntax-jsx": "^7.17.12",
|
|
106
|
+
"@babel/preset-env": "^7.18.0",
|
|
107
|
+
"@babel/preset-react": "^7.17.12",
|
|
108
|
+
"@commitlint/cli": "^17.0.0",
|
|
109
|
+
"@commitlint/config-conventional": "^17.0.0",
|
|
110
|
+
"@commitlint/config-lerna-scopes": "^17.0.0",
|
|
111
|
+
"@commitlint/cz-commitlint": "^17.0.0",
|
|
97
112
|
"@testing-library/react": "^13.2.0",
|
|
98
113
|
"@testing-library/react-hooks": "^8.0.0",
|
|
99
114
|
"@types/jest": "^27.5.1",
|
|
100
|
-
"@types/node": "^17.0.
|
|
115
|
+
"@types/node": "^17.0.35",
|
|
101
116
|
"@types/nprogress": "^0.2.0",
|
|
117
|
+
"@types/numeral": "^2.0.2",
|
|
118
|
+
"@types/randomcolor": "^0.5.6",
|
|
102
119
|
"@types/react-document-title": "^2.0.5",
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@umijs/
|
|
106
|
-
"@umijs/test
|
|
120
|
+
"@types/uuid": "^8.3.4",
|
|
121
|
+
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
122
|
+
"@umijs/fabric": "^2.11.1",
|
|
123
|
+
"@umijs/test": "^3.5.24",
|
|
124
|
+
"@umijs/test-utils": "^3.5.24",
|
|
107
125
|
"babel-cli": "^6.26.0",
|
|
108
126
|
"babel-plugin-import": "^1.13.5",
|
|
109
127
|
"babel-preset-env": "^1.7.0",
|
|
110
128
|
"body-parser": "^1.20.0",
|
|
111
129
|
"commitizen": "^4.2.4",
|
|
112
130
|
"cross-env": "^7.0.3",
|
|
113
|
-
"eslint": "^8.
|
|
131
|
+
"eslint": "^8.16.0",
|
|
114
132
|
"eslint-config-airbnb": "^19.0.4",
|
|
115
133
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
116
134
|
"eslint-config-prettier": "^8.5.0",
|
|
@@ -119,7 +137,7 @@
|
|
|
119
137
|
"eslint-plugin-jest": "^26.2.2",
|
|
120
138
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
121
139
|
"eslint-plugin-prettier": "^4.0.0",
|
|
122
|
-
"eslint-plugin-react": "^7.
|
|
140
|
+
"eslint-plugin-react": "^7.30.0",
|
|
123
141
|
"eslint-plugin-react-hooks": "^4.5.0",
|
|
124
142
|
"eslint-plugin-unicorn": "^42.0.0",
|
|
125
143
|
"express": "^4.18.1",
|
|
@@ -130,27 +148,21 @@
|
|
|
130
148
|
"import-sort-parser-typescript": "^6.0.0",
|
|
131
149
|
"import-sort-style-module": "^6.0.0",
|
|
132
150
|
"lint-staged": "^12.4.1",
|
|
133
|
-
"postcss": "^8.4.
|
|
151
|
+
"postcss": "^8.4.14",
|
|
134
152
|
"postcss-less": "^6.0.0",
|
|
135
153
|
"prettier": "^2.6.2",
|
|
136
|
-
"puppeteer": "^14.1.
|
|
154
|
+
"puppeteer": "^14.1.1",
|
|
137
155
|
"react-test-renderer": "^17.0.2",
|
|
138
156
|
"rimraf": "^3.0.2",
|
|
139
|
-
"stylelint": "^14.8.
|
|
157
|
+
"stylelint": "^14.8.3",
|
|
140
158
|
"stylelint-config-css-modules": "^4.1.0",
|
|
141
159
|
"stylelint-config-prettier": "^9.0.3",
|
|
142
160
|
"stylelint-config-standard": "^25.0.0",
|
|
143
161
|
"stylelint-declaration-block-no-ignored-properties": "^2.5.0",
|
|
144
162
|
"test-umi-plugin": "^0.1.0",
|
|
145
|
-
"umi": "^3.5.
|
|
163
|
+
"umi": "^3.5.24",
|
|
146
164
|
"umi-plugin-custom-extra": "^1.0.12"
|
|
147
165
|
},
|
|
148
|
-
"gitHooks": {
|
|
149
|
-
"pre-commit": "lint-staged"
|
|
150
|
-
},
|
|
151
|
-
"files": [
|
|
152
|
-
"es"
|
|
153
|
-
],
|
|
154
166
|
"filesOther": [
|
|
155
167
|
"es",
|
|
156
168
|
"lib",
|
|
@@ -159,17 +171,8 @@
|
|
|
159
171
|
"src/framework",
|
|
160
172
|
"src/utils"
|
|
161
173
|
],
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
"
|
|
165
|
-
|
|
166
|
-
},
|
|
167
|
-
"repository": {
|
|
168
|
-
"type": "git",
|
|
169
|
-
"url": "git+https://github.com/kityandhero/antd-management-fast-framework.git"
|
|
170
|
-
},
|
|
171
|
-
"bugs": {
|
|
172
|
-
"url": "https://github.com/kityandhero/antd-management-fast-framework/issues"
|
|
173
|
-
},
|
|
174
|
-
"gitHead": "5823b3c7b18488d7bc8625f24cb0d6072f25f85b"
|
|
174
|
+
"gitHead": "36021800d7d55e02111ec426803493f589cc08f8",
|
|
175
|
+
"gitHooks": {
|
|
176
|
+
"pre-commit": "lint-staged"
|
|
177
|
+
}
|
|
175
178
|
}
|