tntd 1.4.6 → 1.4.9
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/components/DevelopmentLogin/LoginModal.js +2 -2
- package/components/Layout/HeaderActions.js +90 -128
- package/components/LoadingButton/index.js +11 -15
- package/dist/1.tntd.js +1 -1
- package/dist/stats.json +103 -103
- package/dist/tntd.js +1 -1
- package/es/DevelopmentLogin/LoginModal.js +2 -2
- package/es/Layout/HeaderActions.js +10 -10
- package/es/LoadingButton/index.js +20 -10
- package/lib/DevelopmentLogin/LoginModal.js +2 -2
- package/lib/Layout/HeaderActions.js +3 -3
- package/lib/LoadingButton/index.js +19 -9
- package/package.json +1 -1
package/dist/stats.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"errors": [],
|
|
3
3
|
"warnings": [
|
|
4
4
|
"asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).\nThis can impact web performance.\nAssets: \n tntd.js (587 KiB)",
|
|
5
|
-
"entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n main (
|
|
5
|
+
"entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.\nEntrypoints:\n main (600 KiB)\n tntd.css\n tntd.js\n"
|
|
6
6
|
],
|
|
7
7
|
"version": "4.46.0",
|
|
8
|
-
"hash": "
|
|
9
|
-
"time":
|
|
10
|
-
"builtAt":
|
|
8
|
+
"hash": "3298e45a2bce74efcb96",
|
|
9
|
+
"time": 27243,
|
|
10
|
+
"builtAt": 1653476148239,
|
|
11
11
|
"publicPath": "",
|
|
12
12
|
"outputPath": "/Users/zhouzefei/projects/tntd/dist",
|
|
13
13
|
"assetsByChunkName": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "1.tntd.js",
|
|
38
|
-
"size":
|
|
38
|
+
"size": 6989,
|
|
39
39
|
"chunks": [
|
|
40
40
|
1
|
|
41
41
|
],
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
"name": "tntd.js",
|
|
140
|
-
"size":
|
|
140
|
+
"size": 601198,
|
|
141
141
|
"chunks": [
|
|
142
142
|
0
|
|
143
143
|
],
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
"rendered": true,
|
|
185
185
|
"initial": true,
|
|
186
186
|
"entry": true,
|
|
187
|
-
"size":
|
|
187
|
+
"size": 890762,
|
|
188
188
|
"names": [
|
|
189
189
|
"main"
|
|
190
190
|
],
|
|
@@ -192,7 +192,7 @@
|
|
|
192
192
|
"tntd.css",
|
|
193
193
|
"tntd.js"
|
|
194
194
|
],
|
|
195
|
-
"hash": "
|
|
195
|
+
"hash": "f312ac7605a22d34312b",
|
|
196
196
|
"siblings": [],
|
|
197
197
|
"parents": [],
|
|
198
198
|
"children": [
|
|
@@ -656,15 +656,6 @@
|
|
|
656
656
|
"userRequest": "react",
|
|
657
657
|
"loc": "10:9-14"
|
|
658
658
|
},
|
|
659
|
-
{
|
|
660
|
-
"moduleId": 87,
|
|
661
|
-
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
662
|
-
"module": "./components/index.js + 88 modules",
|
|
663
|
-
"moduleName": "./components/index.js + 88 modules",
|
|
664
|
-
"type": "harmony side effect evaluation",
|
|
665
|
-
"userRequest": "react",
|
|
666
|
-
"loc": "11:0-44"
|
|
667
|
-
},
|
|
668
659
|
{
|
|
669
660
|
"moduleId": 87,
|
|
670
661
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -733,9 +724,9 @@
|
|
|
733
724
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
734
725
|
"module": "./components/index.js + 88 modules",
|
|
735
726
|
"moduleName": "./components/index.js + 88 modules",
|
|
736
|
-
"type": "harmony
|
|
727
|
+
"type": "harmony side effect evaluation",
|
|
737
728
|
"userRequest": "react",
|
|
738
|
-
"loc": "
|
|
729
|
+
"loc": "15:0-44"
|
|
739
730
|
},
|
|
740
731
|
{
|
|
741
732
|
"moduleId": 87,
|
|
@@ -881,6 +872,15 @@
|
|
|
881
872
|
"userRequest": "react",
|
|
882
873
|
"loc": "24:9-14"
|
|
883
874
|
},
|
|
875
|
+
{
|
|
876
|
+
"moduleId": 87,
|
|
877
|
+
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
878
|
+
"module": "./components/index.js + 88 modules",
|
|
879
|
+
"moduleName": "./components/index.js + 88 modules",
|
|
880
|
+
"type": "harmony import specifier",
|
|
881
|
+
"userRequest": "react",
|
|
882
|
+
"loc": "24:18-26"
|
|
883
|
+
},
|
|
884
884
|
{
|
|
885
885
|
"moduleId": 87,
|
|
886
886
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -1097,15 +1097,6 @@
|
|
|
1097
1097
|
"userRequest": "react",
|
|
1098
1098
|
"loc": "35:0-31"
|
|
1099
1099
|
},
|
|
1100
|
-
{
|
|
1101
|
-
"moduleId": 87,
|
|
1102
|
-
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
1103
|
-
"module": "./components/index.js + 88 modules",
|
|
1104
|
-
"moduleName": "./components/index.js + 88 modules",
|
|
1105
|
-
"type": "harmony import specifier",
|
|
1106
|
-
"userRequest": "react",
|
|
1107
|
-
"loc": "36:2-11"
|
|
1108
|
-
},
|
|
1109
1100
|
{
|
|
1110
1101
|
"moduleId": 87,
|
|
1111
1102
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -1178,6 +1169,15 @@
|
|
|
1178
1169
|
"userRequest": "react",
|
|
1179
1170
|
"loc": "45:18-26"
|
|
1180
1171
|
},
|
|
1172
|
+
{
|
|
1173
|
+
"moduleId": 87,
|
|
1174
|
+
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
1175
|
+
"module": "./components/index.js + 88 modules",
|
|
1176
|
+
"moduleName": "./components/index.js + 88 modules",
|
|
1177
|
+
"type": "harmony import specifier",
|
|
1178
|
+
"userRequest": "react",
|
|
1179
|
+
"loc": "46:2-11"
|
|
1180
|
+
},
|
|
1181
1181
|
{
|
|
1182
1182
|
"moduleId": 87,
|
|
1183
1183
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -2970,18 +2970,18 @@
|
|
|
2970
2970
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
2971
2971
|
"module": "./components/index.js + 88 modules",
|
|
2972
2972
|
"moduleName": "./components/index.js + 88 modules",
|
|
2973
|
-
"type": "harmony
|
|
2973
|
+
"type": "harmony import specifier",
|
|
2974
2974
|
"userRequest": "antd",
|
|
2975
|
-
"loc": "
|
|
2975
|
+
"loc": "13:29-37"
|
|
2976
2976
|
},
|
|
2977
2977
|
{
|
|
2978
2978
|
"moduleId": 87,
|
|
2979
2979
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
2980
2980
|
"module": "./components/index.js + 88 modules",
|
|
2981
2981
|
"moduleName": "./components/index.js + 88 modules",
|
|
2982
|
-
"type": "harmony
|
|
2982
|
+
"type": "harmony side effect evaluation",
|
|
2983
2983
|
"userRequest": "antd",
|
|
2984
|
-
"loc": "
|
|
2984
|
+
"loc": "14:0-32"
|
|
2985
2985
|
},
|
|
2986
2986
|
{
|
|
2987
2987
|
"moduleId": 87,
|
|
@@ -2990,7 +2990,7 @@
|
|
|
2990
2990
|
"moduleName": "./components/index.js + 88 modules",
|
|
2991
2991
|
"type": "harmony side effect evaluation",
|
|
2992
2992
|
"userRequest": "antd",
|
|
2993
|
-
"loc": "14:0-
|
|
2993
|
+
"loc": "14:0-28"
|
|
2994
2994
|
},
|
|
2995
2995
|
{
|
|
2996
2996
|
"moduleId": 87,
|
|
@@ -2999,7 +2999,7 @@
|
|
|
2999
2999
|
"moduleName": "./components/index.js + 88 modules",
|
|
3000
3000
|
"type": "harmony side effect evaluation",
|
|
3001
3001
|
"userRequest": "antd",
|
|
3002
|
-
"loc": "
|
|
3002
|
+
"loc": "16:0-30"
|
|
3003
3003
|
},
|
|
3004
3004
|
{
|
|
3005
3005
|
"moduleId": 87,
|
|
@@ -3314,16 +3314,16 @@
|
|
|
3314
3314
|
"moduleName": "./components/index.js + 88 modules",
|
|
3315
3315
|
"type": "harmony import specifier",
|
|
3316
3316
|
"userRequest": "antd",
|
|
3317
|
-
"loc": "
|
|
3317
|
+
"loc": "40:27-33"
|
|
3318
3318
|
},
|
|
3319
3319
|
{
|
|
3320
3320
|
"moduleId": 87,
|
|
3321
3321
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
3322
3322
|
"module": "./components/index.js + 88 modules",
|
|
3323
3323
|
"moduleName": "./components/index.js + 88 modules",
|
|
3324
|
-
"type": "harmony
|
|
3324
|
+
"type": "harmony side effect evaluation",
|
|
3325
3325
|
"userRequest": "antd",
|
|
3326
|
-
"loc": "
|
|
3326
|
+
"loc": "45:0-28"
|
|
3327
3327
|
},
|
|
3328
3328
|
{
|
|
3329
3329
|
"moduleId": 87,
|
|
@@ -3332,16 +3332,16 @@
|
|
|
3332
3332
|
"moduleName": "./components/index.js + 88 modules",
|
|
3333
3333
|
"type": "harmony side effect evaluation",
|
|
3334
3334
|
"userRequest": "antd",
|
|
3335
|
-
"loc": "45:0-
|
|
3335
|
+
"loc": "45:0-31"
|
|
3336
3336
|
},
|
|
3337
3337
|
{
|
|
3338
3338
|
"moduleId": 87,
|
|
3339
3339
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
3340
3340
|
"module": "./components/index.js + 88 modules",
|
|
3341
3341
|
"moduleName": "./components/index.js + 88 modules",
|
|
3342
|
-
"type": "harmony
|
|
3342
|
+
"type": "harmony import specifier",
|
|
3343
3343
|
"userRequest": "antd",
|
|
3344
|
-
"loc": "
|
|
3344
|
+
"loc": "47:13-19"
|
|
3345
3345
|
},
|
|
3346
3346
|
{
|
|
3347
3347
|
"moduleId": 87,
|
|
@@ -3350,7 +3350,7 @@
|
|
|
3350
3350
|
"moduleName": "./components/index.js + 88 modules",
|
|
3351
3351
|
"type": "harmony import specifier",
|
|
3352
3352
|
"userRequest": "antd",
|
|
3353
|
-
"loc": "
|
|
3353
|
+
"loc": "49:29-35"
|
|
3354
3354
|
},
|
|
3355
3355
|
{
|
|
3356
3356
|
"moduleId": 87,
|
|
@@ -7780,9 +7780,9 @@
|
|
|
7780
7780
|
"chunks": [
|
|
7781
7781
|
0
|
|
7782
7782
|
],
|
|
7783
|
-
"issuer": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/
|
|
7784
|
-
"issuerId":
|
|
7785
|
-
"issuerName": "./node_modules/react-resizable/build/
|
|
7783
|
+
"issuer": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/Resizable.js",
|
|
7784
|
+
"issuerId": 15,
|
|
7785
|
+
"issuerName": "./node_modules/react-resizable/build/Resizable.js",
|
|
7786
7786
|
"issuerPath": [
|
|
7787
7787
|
{
|
|
7788
7788
|
"id": null,
|
|
@@ -7800,9 +7800,9 @@
|
|
|
7800
7800
|
"name": "./node_modules/react-resizable/index.js"
|
|
7801
7801
|
},
|
|
7802
7802
|
{
|
|
7803
|
-
"id":
|
|
7804
|
-
"identifier": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/
|
|
7805
|
-
"name": "./node_modules/react-resizable/build/
|
|
7803
|
+
"id": 15,
|
|
7804
|
+
"identifier": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/Resizable.js",
|
|
7805
|
+
"name": "./node_modules/react-resizable/build/Resizable.js"
|
|
7806
7806
|
}
|
|
7807
7807
|
],
|
|
7808
7808
|
"failed": false,
|
|
@@ -12767,7 +12767,7 @@
|
|
|
12767
12767
|
"name": "./components/index.js + 88 modules",
|
|
12768
12768
|
"index": 0,
|
|
12769
12769
|
"index2": 187,
|
|
12770
|
-
"size":
|
|
12770
|
+
"size": 398580,
|
|
12771
12771
|
"cacheable": true,
|
|
12772
12772
|
"built": true,
|
|
12773
12773
|
"optional": false,
|
|
@@ -13860,7 +13860,7 @@
|
|
|
13860
13860
|
"name": "./components/LoadingButton/index.js",
|
|
13861
13861
|
"index": 160,
|
|
13862
13862
|
"index2": 159,
|
|
13863
|
-
"size":
|
|
13863
|
+
"size": 3086,
|
|
13864
13864
|
"cacheable": true,
|
|
13865
13865
|
"built": true,
|
|
13866
13866
|
"optional": false,
|
|
@@ -13908,7 +13908,7 @@
|
|
|
13908
13908
|
],
|
|
13909
13909
|
"optimizationBailout": [],
|
|
13910
13910
|
"depth": 1,
|
|
13911
|
-
"source": "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); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useState, useEffect } from
|
|
13911
|
+
"source": "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); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { useState, useEffect } from \"react\";\nimport { Button } from \"antd\";\nexport default (function (_ref) {\n var loadingText = _ref.loadingText,\n pLoading = _ref.loading,\n onClick = _ref.onClick,\n children = _ref.children,\n otherProps = _objectWithoutProperties(_ref, [\"loadingText\", \"loading\", \"onClick\", \"children\"]);\n\n var _useState = useState(pLoading),\n _useState2 = _slicedToArray(_useState, 2),\n loading = _useState2[0],\n setLoading = _useState2[1];\n\n var doClick = function doClick(evt) {\n if (!loading) {\n setLoading(true);\n var returnVal = onClick && onClick(evt, function () {\n return setLoading(false);\n });\n\n if (returnVal instanceof Promise) {\n returnVal.then(function () {\n return setLoading(false);\n })[\"catch\"](function () {\n return setLoading(false);\n });\n }\n }\n };\n\n useEffect(function () {\n setLoading(pLoading);\n }, [pLoading]);\n return React.createElement(Button, _extends({}, otherProps, {\n loading: loading,\n onClick: doClick\n }), loading ? loadingText || children : children);\n});"
|
|
13912
13912
|
},
|
|
13913
13913
|
{
|
|
13914
13914
|
"id": null,
|
|
@@ -18968,7 +18968,7 @@
|
|
|
18968
18968
|
"name": "./components/Layout/HeaderActions.js",
|
|
18969
18969
|
"index": 13,
|
|
18970
18970
|
"index2": 89,
|
|
18971
|
-
"size":
|
|
18971
|
+
"size": 5987,
|
|
18972
18972
|
"cacheable": true,
|
|
18973
18973
|
"built": true,
|
|
18974
18974
|
"optional": false,
|
|
@@ -19049,7 +19049,7 @@
|
|
|
19049
19049
|
],
|
|
19050
19050
|
"optimizationBailout": [],
|
|
19051
19051
|
"depth": 4,
|
|
19052
|
-
"source": "function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n list-style: none;\\n display: inline-block;\\n line-height: \", \";\\n margin: 0 0 0 20px;\\n .hasHeaderTabs & {\\n margin: 0;\\n }\\n padding: 0;\\n white-space: nowrap;\\n\\n .isInIframe & {\\n display: none;\\n }\\n\\n & > li {\\n height: 100%;\\n display: inline-block;\\n vertical-align: top;\\n cursor: pointer;\\n font-size: 20px;\\n margin: 0 7.5px;\\n color: \", \";\\n .large-size & {\\n margin: 0 10px;\\n }\\n .tnt-themeS1 & {\\n /* color: rgba(255,255,255,.85); */\\n }\\n &:last-of-type {\\n margin-right: 0;\\n }\\n .hasHeaderTabs &{\\n color: #455064;\\n }\\n // \\u5220\\u9664\\u8272\\u7CFB\\u533A\\u5206 \\u7EDF\\u4E00\\u8272\\u8C03\\n // .hasHeaderTabs:not(.tnt-themeS1) & {\\n // color: rgba(255,255,255,.8);\\n // }\\n .hasHeaderTabs:not(.tnt-themeS1) & {\\n color: #455064 !important;\\n }\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nfunction _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nimport styled, { withTheme } from
|
|
19052
|
+
"source": "function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n list-style: none;\\n display: inline-block;\\n line-height: \", \";\\n margin: 0 0 0 20px;\\n .hasHeaderTabs & {\\n margin: 0;\\n }\\n padding: 0;\\n white-space: nowrap;\\n\\n .isInIframe & {\\n display: none;\\n }\\n\\n & > li {\\n height: 100%;\\n display: inline-block;\\n vertical-align: top;\\n cursor: pointer;\\n font-size: 20px;\\n margin: 0 7.5px;\\n color: \", \";\\n .large-size & {\\n margin: 0 10px;\\n }\\n .tnt-themeS1 & {\\n /* color: rgba(255,255,255,.85); */\\n }\\n &:last-of-type {\\n margin-right: 0;\\n }\\n .hasHeaderTabs & {\\n color: #455064;\\n }\\n // \\u5220\\u9664\\u8272\\u7CFB\\u533A\\u5206 \\u7EDF\\u4E00\\u8272\\u8C03\\n // .hasHeaderTabs:not(.tnt-themeS1) & {\\n // color: rgba(255,255,255,.8);\\n // }\\n .hasHeaderTabs:not(.tnt-themeS1) & {\\n color: #455064 !important;\\n }\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nfunction _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nimport styled, { withTheme } from \"styled-components\";\nimport { Divider } from \"antd\";\nimport GlobalNavigation from \"./GlobalNavigation\";\nimport Language from \"./Language\";\nimport Theme from \"./Theme\";\nimport LanguageTheme from \"./CompatibleLanguage\";\nimport Application from \"./Application\";\nimport Avatar from \"./Avatar\";\nvar Actions = styled.ul(_templateObject(), function (props) {\n return \"\".concat(props.theme.headerHeight, \"px\");\n}, function (props) {\n return \"\".concat(props.theme.headerActionsColor);\n});\nexport default withTheme(function (props) {\n var _props$config = props.config;\n _props$config = _props$config === void 0 ? {} : _props$config;\n\n var _props$config$theme = _props$config.theme,\n theme = _props$config$theme === void 0 ? true : _props$config$theme,\n _props$config$avatar = _props$config.avatar,\n avatar = _props$config$avatar === void 0 ? true : _props$config$avatar,\n _props$config$languag = _props$config.language,\n language = _props$config$languag === void 0 ? true : _props$config$languag,\n _props$config$applica = _props$config.application,\n application = _props$config$applica === void 0 ? false : _props$config$applica,\n _props$config$globalN = _props$config.globalNavigation,\n globalNavigation = _props$config$globalN === void 0 ? false : _props$config$globalN,\n compatible = props.theme.compatible,\n _props$userInfo = props.userInfo,\n userInfo = _props$userInfo === void 0 ? {} : _props$userInfo,\n menus = props.menus,\n apps = props.apps,\n extraActions = props.extraActions,\n headerRef = props.headerRef,\n onLanguageChange = props.onLanguageChange,\n onThemeChange = props.onThemeChange,\n onApplicationChange = props.onApplicationChange,\n onAppChange = props.onAppChange,\n onCollapseChange = props.onCollapseChange,\n onPersonalSetting = props.onPersonalSetting,\n onChangePassword = props.onChangePassword,\n onLogout = props.onLogout,\n onLogoClick = props.onLogoClick,\n AvatarCustom = props.AvatarCustom,\n rest = _objectWithoutProperties(props, [\"config\", \"theme\", \"userInfo\", \"menus\", \"apps\", \"extraActions\", \"headerRef\", \"onLanguageChange\", \"onThemeChange\", \"onApplicationChange\", \"onAppChange\", \"onCollapseChange\", \"onPersonalSetting\", \"onChangePassword\", \"onLogout\", \"onLogoClick\", \"AvatarCustom\"]);\n\n return React.createElement(Actions, rest, extraActions, globalNavigation && React.createElement(GlobalNavigation, {\n headerRef: headerRef,\n menus: menus\n }), !compatible ? React.createElement(React.Fragment, null, language && React.createElement(Language, {\n language: userInfo.lang,\n onChange: onLanguageChange\n }), theme && React.createElement(Theme, {\n theme: userInfo.theme,\n onChange: onThemeChange\n })) : React.createElement(LanguageTheme, {\n config: props.config,\n language: userInfo.lang,\n theme: userInfo.theme,\n onLanguageChange: onLanguageChange,\n onThemeChange: onThemeChange\n }), application && React.createElement(Application, {\n language: userInfo.lang,\n apps: apps,\n onChange: onApplicationChange\n }), avatar && React.createElement(React.Fragment, null, React.createElement(Divider, {\n type: \"vertical\"\n }), AvatarCustom ? React.createElement(AvatarCustom, {\n userInfo: userInfo,\n onPersonalSetting: onPersonalSetting,\n onChangePassword: onChangePassword,\n onLogout: onLogout,\n onThemeChange: onThemeChange,\n config: {\n theme: theme,\n language: language\n }\n }) : React.createElement(Avatar, {\n userInfo: userInfo,\n onPersonalSetting: onPersonalSetting,\n onChangePassword: onChangePassword,\n onLogout: onLogout,\n onThemeChange: onThemeChange,\n config: {\n theme: theme,\n language: language\n }\n })));\n});"
|
|
19053
19053
|
},
|
|
19054
19054
|
{
|
|
19055
19055
|
"id": null,
|
|
@@ -19776,7 +19776,7 @@
|
|
|
19776
19776
|
"moduleName": "./components/Layout/HeaderActions.js",
|
|
19777
19777
|
"type": "harmony import specifier",
|
|
19778
19778
|
"userRequest": "./Language",
|
|
19779
|
-
"loc": "66:
|
|
19779
|
+
"loc": "66:94-102"
|
|
19780
19780
|
}
|
|
19781
19781
|
],
|
|
19782
19782
|
"usedExports": [
|
|
@@ -20004,7 +20004,7 @@
|
|
|
20004
20004
|
"moduleName": "./components/Layout/HeaderActions.js",
|
|
20005
20005
|
"type": "harmony import specifier",
|
|
20006
20006
|
"userRequest": "./Application",
|
|
20007
|
-
"loc": "78:
|
|
20007
|
+
"loc": "78:41-52"
|
|
20008
20008
|
}
|
|
20009
20009
|
],
|
|
20010
20010
|
"usedExports": [
|
|
@@ -21096,7 +21096,7 @@
|
|
|
21096
21096
|
"files": [
|
|
21097
21097
|
"1.tntd.js"
|
|
21098
21098
|
],
|
|
21099
|
-
"hash": "
|
|
21099
|
+
"hash": "04d0a35e883db5b75273",
|
|
21100
21100
|
"siblings": [],
|
|
21101
21101
|
"parents": [
|
|
21102
21102
|
0
|
|
@@ -21380,7 +21380,7 @@
|
|
|
21380
21380
|
"ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/DevelopmentLogin/index.js (referenced with import())"
|
|
21381
21381
|
],
|
|
21382
21382
|
"depth": 2,
|
|
21383
|
-
"source": "function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useState } from 'react';\nimport { Modal, Input, Form, message } from 'antd';\nimport Cookies from 'universal-cookie';\nvar cookies = new Cookies(); // 默认\n\nvar accountInfoDefault = {\n account:
|
|
21383
|
+
"source": "function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useState } from 'react';\nimport { Modal, Input, Form, message } from 'antd';\nimport Cookies from 'universal-cookie';\nvar cookies = new Cookies(); // 默认\n\nvar accountInfoDefault = {\n account: undefined,\n password: undefined\n};\nexport default (function (_ref) {\n var visible = _ref.visible,\n close = _ref.close,\n signIn = _ref.signIn;\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n confirmLoading = _useState2[0],\n setConfirmLoading = _useState2[1]; // 如果storage中已存在,则取storage\n\n\n var storageAccountInfo = localStorage.getItem('accountInfo');\n\n if (storageAccountInfo) {\n try {\n accountInfoDefault = JSON.parse(storageAccountInfo);\n } catch (e) {}\n }\n\n var _useState3 = useState(accountInfoDefault),\n _useState4 = _slicedToArray(_useState3, 2),\n accountInfo = _useState4[0],\n setAccountInfo = _useState4[1];\n\n var account = accountInfo.account,\n password = accountInfo.password;\n\n var onSubmit = function onSubmit() {\n setConfirmLoading(true);\n var returnVal = signIn && signIn(accountInfo);\n\n if (returnVal && returnVal.then) {\n returnVal.then(function (res) {\n message.success('模拟登陆成功');\n localStorage.setItem('accountInfo', JSON.stringify(accountInfo));\n setConfirmLoading(false);\n setTimeout(function () {\n var _ref2 = res || {},\n token = _ref2.tdToken,\n userId = _ref2.userId;\n\n cookies.set('_td_token_', token, {\n path: '/'\n });\n cookies.set('_uid_', userId, {\n path: '/'\n });\n close();\n }, 500);\n })[\"catch\"](function (err) {\n setConfirmLoading(false);\n throw err;\n });\n }\n };\n\n var changeFieldValue = function changeFieldValue(key, evt) {\n setAccountInfo(_objectSpread({}, accountInfo, _defineProperty({}, key, evt.target.value)));\n };\n\n return React.createElement(Modal, {\n title: \"\\u5F00\\u53D1\\u8005\\u6A21\\u62DF\\u767B\\u9646\",\n visible: visible,\n maskClosable: false,\n onOk: onSubmit,\n onCancel: close,\n confirmLoading: confirmLoading\n }, React.createElement(Form, {\n labelCol: {\n span: 5\n },\n wrapperCol: {\n span: 18\n }\n }, React.createElement(Form.Item, {\n label: \"\\u7528\\u6237\\u540D\\uFF1A\"\n }, React.createElement(Input, {\n type: \"text\",\n placeholder: \"\\u8BF7\\u8F93\\u5165\\u7528\\u6237\\u540D\",\n value: account || undefined,\n onChange: function onChange(evt) {\n return changeFieldValue('account', evt);\n }\n })), React.createElement(Form.Item, {\n label: \"\\u5BC6\\u7801\\uFF1A\"\n }, React.createElement(Input, {\n type: \"text\",\n placeholder: \"\\u8BF7\\u8F93\\u5165\\u7528\\u6237\\u540D\",\n value: password || undefined,\n onChange: function onChange(evt) {\n return changeFieldValue('password', evt);\n }\n }))));\n});"
|
|
21384
21384
|
},
|
|
21385
21385
|
{
|
|
21386
21386
|
"id": null,
|
|
@@ -22103,15 +22103,6 @@
|
|
|
22103
22103
|
"userRequest": "react",
|
|
22104
22104
|
"loc": "10:9-14"
|
|
22105
22105
|
},
|
|
22106
|
-
{
|
|
22107
|
-
"moduleId": 87,
|
|
22108
|
-
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
22109
|
-
"module": "./components/index.js + 88 modules",
|
|
22110
|
-
"moduleName": "./components/index.js + 88 modules",
|
|
22111
|
-
"type": "harmony side effect evaluation",
|
|
22112
|
-
"userRequest": "react",
|
|
22113
|
-
"loc": "11:0-44"
|
|
22114
|
-
},
|
|
22115
22106
|
{
|
|
22116
22107
|
"moduleId": 87,
|
|
22117
22108
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -22180,9 +22171,9 @@
|
|
|
22180
22171
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
22181
22172
|
"module": "./components/index.js + 88 modules",
|
|
22182
22173
|
"moduleName": "./components/index.js + 88 modules",
|
|
22183
|
-
"type": "harmony
|
|
22174
|
+
"type": "harmony side effect evaluation",
|
|
22184
22175
|
"userRequest": "react",
|
|
22185
|
-
"loc": "
|
|
22176
|
+
"loc": "15:0-44"
|
|
22186
22177
|
},
|
|
22187
22178
|
{
|
|
22188
22179
|
"moduleId": 87,
|
|
@@ -22328,6 +22319,15 @@
|
|
|
22328
22319
|
"userRequest": "react",
|
|
22329
22320
|
"loc": "24:9-14"
|
|
22330
22321
|
},
|
|
22322
|
+
{
|
|
22323
|
+
"moduleId": 87,
|
|
22324
|
+
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
22325
|
+
"module": "./components/index.js + 88 modules",
|
|
22326
|
+
"moduleName": "./components/index.js + 88 modules",
|
|
22327
|
+
"type": "harmony import specifier",
|
|
22328
|
+
"userRequest": "react",
|
|
22329
|
+
"loc": "24:18-26"
|
|
22330
|
+
},
|
|
22331
22331
|
{
|
|
22332
22332
|
"moduleId": 87,
|
|
22333
22333
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -22544,15 +22544,6 @@
|
|
|
22544
22544
|
"userRequest": "react",
|
|
22545
22545
|
"loc": "35:0-31"
|
|
22546
22546
|
},
|
|
22547
|
-
{
|
|
22548
|
-
"moduleId": 87,
|
|
22549
|
-
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
22550
|
-
"module": "./components/index.js + 88 modules",
|
|
22551
|
-
"moduleName": "./components/index.js + 88 modules",
|
|
22552
|
-
"type": "harmony import specifier",
|
|
22553
|
-
"userRequest": "react",
|
|
22554
|
-
"loc": "36:2-11"
|
|
22555
|
-
},
|
|
22556
22547
|
{
|
|
22557
22548
|
"moduleId": 87,
|
|
22558
22549
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -22625,6 +22616,15 @@
|
|
|
22625
22616
|
"userRequest": "react",
|
|
22626
22617
|
"loc": "45:18-26"
|
|
22627
22618
|
},
|
|
22619
|
+
{
|
|
22620
|
+
"moduleId": 87,
|
|
22621
|
+
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
22622
|
+
"module": "./components/index.js + 88 modules",
|
|
22623
|
+
"moduleName": "./components/index.js + 88 modules",
|
|
22624
|
+
"type": "harmony import specifier",
|
|
22625
|
+
"userRequest": "react",
|
|
22626
|
+
"loc": "46:2-11"
|
|
22627
|
+
},
|
|
22628
22628
|
{
|
|
22629
22629
|
"moduleId": 87,
|
|
22630
22630
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
@@ -24417,18 +24417,18 @@
|
|
|
24417
24417
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
24418
24418
|
"module": "./components/index.js + 88 modules",
|
|
24419
24419
|
"moduleName": "./components/index.js + 88 modules",
|
|
24420
|
-
"type": "harmony
|
|
24420
|
+
"type": "harmony import specifier",
|
|
24421
24421
|
"userRequest": "antd",
|
|
24422
|
-
"loc": "
|
|
24422
|
+
"loc": "13:29-37"
|
|
24423
24423
|
},
|
|
24424
24424
|
{
|
|
24425
24425
|
"moduleId": 87,
|
|
24426
24426
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
24427
24427
|
"module": "./components/index.js + 88 modules",
|
|
24428
24428
|
"moduleName": "./components/index.js + 88 modules",
|
|
24429
|
-
"type": "harmony
|
|
24429
|
+
"type": "harmony side effect evaluation",
|
|
24430
24430
|
"userRequest": "antd",
|
|
24431
|
-
"loc": "
|
|
24431
|
+
"loc": "14:0-32"
|
|
24432
24432
|
},
|
|
24433
24433
|
{
|
|
24434
24434
|
"moduleId": 87,
|
|
@@ -24437,7 +24437,7 @@
|
|
|
24437
24437
|
"moduleName": "./components/index.js + 88 modules",
|
|
24438
24438
|
"type": "harmony side effect evaluation",
|
|
24439
24439
|
"userRequest": "antd",
|
|
24440
|
-
"loc": "14:0-
|
|
24440
|
+
"loc": "14:0-28"
|
|
24441
24441
|
},
|
|
24442
24442
|
{
|
|
24443
24443
|
"moduleId": 87,
|
|
@@ -24446,7 +24446,7 @@
|
|
|
24446
24446
|
"moduleName": "./components/index.js + 88 modules",
|
|
24447
24447
|
"type": "harmony side effect evaluation",
|
|
24448
24448
|
"userRequest": "antd",
|
|
24449
|
-
"loc": "
|
|
24449
|
+
"loc": "16:0-30"
|
|
24450
24450
|
},
|
|
24451
24451
|
{
|
|
24452
24452
|
"moduleId": 87,
|
|
@@ -24761,16 +24761,16 @@
|
|
|
24761
24761
|
"moduleName": "./components/index.js + 88 modules",
|
|
24762
24762
|
"type": "harmony import specifier",
|
|
24763
24763
|
"userRequest": "antd",
|
|
24764
|
-
"loc": "
|
|
24764
|
+
"loc": "40:27-33"
|
|
24765
24765
|
},
|
|
24766
24766
|
{
|
|
24767
24767
|
"moduleId": 87,
|
|
24768
24768
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
24769
24769
|
"module": "./components/index.js + 88 modules",
|
|
24770
24770
|
"moduleName": "./components/index.js + 88 modules",
|
|
24771
|
-
"type": "harmony
|
|
24771
|
+
"type": "harmony side effect evaluation",
|
|
24772
24772
|
"userRequest": "antd",
|
|
24773
|
-
"loc": "
|
|
24773
|
+
"loc": "45:0-28"
|
|
24774
24774
|
},
|
|
24775
24775
|
{
|
|
24776
24776
|
"moduleId": 87,
|
|
@@ -24779,16 +24779,16 @@
|
|
|
24779
24779
|
"moduleName": "./components/index.js + 88 modules",
|
|
24780
24780
|
"type": "harmony side effect evaluation",
|
|
24781
24781
|
"userRequest": "antd",
|
|
24782
|
-
"loc": "45:0-
|
|
24782
|
+
"loc": "45:0-31"
|
|
24783
24783
|
},
|
|
24784
24784
|
{
|
|
24785
24785
|
"moduleId": 87,
|
|
24786
24786
|
"moduleIdentifier": "/Users/zhouzefei/projects/tntd/node_modules/babel-loader/lib/index.js?cacheDirectory=true!/Users/zhouzefei/projects/tntd/components/index.js 0de00df39b570001579eec32a923d15e",
|
|
24787
24787
|
"module": "./components/index.js + 88 modules",
|
|
24788
24788
|
"moduleName": "./components/index.js + 88 modules",
|
|
24789
|
-
"type": "harmony
|
|
24789
|
+
"type": "harmony import specifier",
|
|
24790
24790
|
"userRequest": "antd",
|
|
24791
|
-
"loc": "
|
|
24791
|
+
"loc": "47:13-19"
|
|
24792
24792
|
},
|
|
24793
24793
|
{
|
|
24794
24794
|
"moduleId": 87,
|
|
@@ -24797,7 +24797,7 @@
|
|
|
24797
24797
|
"moduleName": "./components/index.js + 88 modules",
|
|
24798
24798
|
"type": "harmony import specifier",
|
|
24799
24799
|
"userRequest": "antd",
|
|
24800
|
-
"loc": "
|
|
24800
|
+
"loc": "49:29-35"
|
|
24801
24801
|
},
|
|
24802
24802
|
{
|
|
24803
24803
|
"moduleId": 87,
|
|
@@ -29227,9 +29227,9 @@
|
|
|
29227
29227
|
"chunks": [
|
|
29228
29228
|
0
|
|
29229
29229
|
],
|
|
29230
|
-
"issuer": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/
|
|
29231
|
-
"issuerId":
|
|
29232
|
-
"issuerName": "./node_modules/react-resizable/build/
|
|
29230
|
+
"issuer": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/Resizable.js",
|
|
29231
|
+
"issuerId": 15,
|
|
29232
|
+
"issuerName": "./node_modules/react-resizable/build/Resizable.js",
|
|
29233
29233
|
"issuerPath": [
|
|
29234
29234
|
{
|
|
29235
29235
|
"id": null,
|
|
@@ -29247,9 +29247,9 @@
|
|
|
29247
29247
|
"name": "./node_modules/react-resizable/index.js"
|
|
29248
29248
|
},
|
|
29249
29249
|
{
|
|
29250
|
-
"id":
|
|
29251
|
-
"identifier": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/
|
|
29252
|
-
"name": "./node_modules/react-resizable/build/
|
|
29250
|
+
"id": 15,
|
|
29251
|
+
"identifier": "/Users/zhouzefei/projects/tntd/node_modules/react-resizable/build/Resizable.js",
|
|
29252
|
+
"name": "./node_modules/react-resizable/build/Resizable.js"
|
|
29253
29253
|
}
|
|
29254
29254
|
],
|
|
29255
29255
|
"failed": false,
|
|
@@ -34214,7 +34214,7 @@
|
|
|
34214
34214
|
"name": "./components/index.js + 88 modules",
|
|
34215
34215
|
"index": 0,
|
|
34216
34216
|
"index2": 187,
|
|
34217
|
-
"size":
|
|
34217
|
+
"size": 398580,
|
|
34218
34218
|
"cacheable": true,
|
|
34219
34219
|
"built": true,
|
|
34220
34220
|
"optional": false,
|
|
@@ -35307,7 +35307,7 @@
|
|
|
35307
35307
|
"name": "./components/LoadingButton/index.js",
|
|
35308
35308
|
"index": 160,
|
|
35309
35309
|
"index2": 159,
|
|
35310
|
-
"size":
|
|
35310
|
+
"size": 3086,
|
|
35311
35311
|
"cacheable": true,
|
|
35312
35312
|
"built": true,
|
|
35313
35313
|
"optional": false,
|
|
@@ -35355,7 +35355,7 @@
|
|
|
35355
35355
|
],
|
|
35356
35356
|
"optimizationBailout": [],
|
|
35357
35357
|
"depth": 1,
|
|
35358
|
-
"source": "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); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useState, useEffect } from
|
|
35358
|
+
"source": "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); }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nimport { useState, useEffect } from \"react\";\nimport { Button } from \"antd\";\nexport default (function (_ref) {\n var loadingText = _ref.loadingText,\n pLoading = _ref.loading,\n onClick = _ref.onClick,\n children = _ref.children,\n otherProps = _objectWithoutProperties(_ref, [\"loadingText\", \"loading\", \"onClick\", \"children\"]);\n\n var _useState = useState(pLoading),\n _useState2 = _slicedToArray(_useState, 2),\n loading = _useState2[0],\n setLoading = _useState2[1];\n\n var doClick = function doClick(evt) {\n if (!loading) {\n setLoading(true);\n var returnVal = onClick && onClick(evt, function () {\n return setLoading(false);\n });\n\n if (returnVal instanceof Promise) {\n returnVal.then(function () {\n return setLoading(false);\n })[\"catch\"](function () {\n return setLoading(false);\n });\n }\n }\n };\n\n useEffect(function () {\n setLoading(pLoading);\n }, [pLoading]);\n return React.createElement(Button, _extends({}, otherProps, {\n loading: loading,\n onClick: doClick\n }), loading ? loadingText || children : children);\n});"
|
|
35359
35359
|
},
|
|
35360
35360
|
{
|
|
35361
35361
|
"id": null,
|
|
@@ -40415,7 +40415,7 @@
|
|
|
40415
40415
|
"name": "./components/Layout/HeaderActions.js",
|
|
40416
40416
|
"index": 13,
|
|
40417
40417
|
"index2": 89,
|
|
40418
|
-
"size":
|
|
40418
|
+
"size": 5987,
|
|
40419
40419
|
"cacheable": true,
|
|
40420
40420
|
"built": true,
|
|
40421
40421
|
"optional": false,
|
|
@@ -40496,7 +40496,7 @@
|
|
|
40496
40496
|
],
|
|
40497
40497
|
"optimizationBailout": [],
|
|
40498
40498
|
"depth": 4,
|
|
40499
|
-
"source": "function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n list-style: none;\\n display: inline-block;\\n line-height: \", \";\\n margin: 0 0 0 20px;\\n .hasHeaderTabs & {\\n margin: 0;\\n }\\n padding: 0;\\n white-space: nowrap;\\n\\n .isInIframe & {\\n display: none;\\n }\\n\\n & > li {\\n height: 100%;\\n display: inline-block;\\n vertical-align: top;\\n cursor: pointer;\\n font-size: 20px;\\n margin: 0 7.5px;\\n color: \", \";\\n .large-size & {\\n margin: 0 10px;\\n }\\n .tnt-themeS1 & {\\n /* color: rgba(255,255,255,.85); */\\n }\\n &:last-of-type {\\n margin-right: 0;\\n }\\n .hasHeaderTabs &{\\n color: #455064;\\n }\\n // \\u5220\\u9664\\u8272\\u7CFB\\u533A\\u5206 \\u7EDF\\u4E00\\u8272\\u8C03\\n // .hasHeaderTabs:not(.tnt-themeS1) & {\\n // color: rgba(255,255,255,.8);\\n // }\\n .hasHeaderTabs:not(.tnt-themeS1) & {\\n color: #455064 !important;\\n }\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nfunction _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nimport styled, { withTheme } from
|
|
40499
|
+
"source": "function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _templateObject() {\n var data = _taggedTemplateLiteral([\"\\n list-style: none;\\n display: inline-block;\\n line-height: \", \";\\n margin: 0 0 0 20px;\\n .hasHeaderTabs & {\\n margin: 0;\\n }\\n padding: 0;\\n white-space: nowrap;\\n\\n .isInIframe & {\\n display: none;\\n }\\n\\n & > li {\\n height: 100%;\\n display: inline-block;\\n vertical-align: top;\\n cursor: pointer;\\n font-size: 20px;\\n margin: 0 7.5px;\\n color: \", \";\\n .large-size & {\\n margin: 0 10px;\\n }\\n .tnt-themeS1 & {\\n /* color: rgba(255,255,255,.85); */\\n }\\n &:last-of-type {\\n margin-right: 0;\\n }\\n .hasHeaderTabs & {\\n color: #455064;\\n }\\n // \\u5220\\u9664\\u8272\\u7CFB\\u533A\\u5206 \\u7EDF\\u4E00\\u8272\\u8C03\\n // .hasHeaderTabs:not(.tnt-themeS1) & {\\n // color: rgba(255,255,255,.8);\\n // }\\n .hasHeaderTabs:not(.tnt-themeS1) & {\\n color: #455064 !important;\\n }\\n }\\n\"]);\n\n _templateObject = function _templateObject() {\n return data;\n };\n\n return data;\n}\n\nfunction _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }\n\nimport styled, { withTheme } from \"styled-components\";\nimport { Divider } from \"antd\";\nimport GlobalNavigation from \"./GlobalNavigation\";\nimport Language from \"./Language\";\nimport Theme from \"./Theme\";\nimport LanguageTheme from \"./CompatibleLanguage\";\nimport Application from \"./Application\";\nimport Avatar from \"./Avatar\";\nvar Actions = styled.ul(_templateObject(), function (props) {\n return \"\".concat(props.theme.headerHeight, \"px\");\n}, function (props) {\n return \"\".concat(props.theme.headerActionsColor);\n});\nexport default withTheme(function (props) {\n var _props$config = props.config;\n _props$config = _props$config === void 0 ? {} : _props$config;\n\n var _props$config$theme = _props$config.theme,\n theme = _props$config$theme === void 0 ? true : _props$config$theme,\n _props$config$avatar = _props$config.avatar,\n avatar = _props$config$avatar === void 0 ? true : _props$config$avatar,\n _props$config$languag = _props$config.language,\n language = _props$config$languag === void 0 ? true : _props$config$languag,\n _props$config$applica = _props$config.application,\n application = _props$config$applica === void 0 ? false : _props$config$applica,\n _props$config$globalN = _props$config.globalNavigation,\n globalNavigation = _props$config$globalN === void 0 ? false : _props$config$globalN,\n compatible = props.theme.compatible,\n _props$userInfo = props.userInfo,\n userInfo = _props$userInfo === void 0 ? {} : _props$userInfo,\n menus = props.menus,\n apps = props.apps,\n extraActions = props.extraActions,\n headerRef = props.headerRef,\n onLanguageChange = props.onLanguageChange,\n onThemeChange = props.onThemeChange,\n onApplicationChange = props.onApplicationChange,\n onAppChange = props.onAppChange,\n onCollapseChange = props.onCollapseChange,\n onPersonalSetting = props.onPersonalSetting,\n onChangePassword = props.onChangePassword,\n onLogout = props.onLogout,\n onLogoClick = props.onLogoClick,\n AvatarCustom = props.AvatarCustom,\n rest = _objectWithoutProperties(props, [\"config\", \"theme\", \"userInfo\", \"menus\", \"apps\", \"extraActions\", \"headerRef\", \"onLanguageChange\", \"onThemeChange\", \"onApplicationChange\", \"onAppChange\", \"onCollapseChange\", \"onPersonalSetting\", \"onChangePassword\", \"onLogout\", \"onLogoClick\", \"AvatarCustom\"]);\n\n return React.createElement(Actions, rest, extraActions, globalNavigation && React.createElement(GlobalNavigation, {\n headerRef: headerRef,\n menus: menus\n }), !compatible ? React.createElement(React.Fragment, null, language && React.createElement(Language, {\n language: userInfo.lang,\n onChange: onLanguageChange\n }), theme && React.createElement(Theme, {\n theme: userInfo.theme,\n onChange: onThemeChange\n })) : React.createElement(LanguageTheme, {\n config: props.config,\n language: userInfo.lang,\n theme: userInfo.theme,\n onLanguageChange: onLanguageChange,\n onThemeChange: onThemeChange\n }), application && React.createElement(Application, {\n language: userInfo.lang,\n apps: apps,\n onChange: onApplicationChange\n }), avatar && React.createElement(React.Fragment, null, React.createElement(Divider, {\n type: \"vertical\"\n }), AvatarCustom ? React.createElement(AvatarCustom, {\n userInfo: userInfo,\n onPersonalSetting: onPersonalSetting,\n onChangePassword: onChangePassword,\n onLogout: onLogout,\n onThemeChange: onThemeChange,\n config: {\n theme: theme,\n language: language\n }\n }) : React.createElement(Avatar, {\n userInfo: userInfo,\n onPersonalSetting: onPersonalSetting,\n onChangePassword: onChangePassword,\n onLogout: onLogout,\n onThemeChange: onThemeChange,\n config: {\n theme: theme,\n language: language\n }\n })));\n});"
|
|
40500
40500
|
},
|
|
40501
40501
|
{
|
|
40502
40502
|
"id": null,
|
|
@@ -41223,7 +41223,7 @@
|
|
|
41223
41223
|
"moduleName": "./components/Layout/HeaderActions.js",
|
|
41224
41224
|
"type": "harmony import specifier",
|
|
41225
41225
|
"userRequest": "./Language",
|
|
41226
|
-
"loc": "66:
|
|
41226
|
+
"loc": "66:94-102"
|
|
41227
41227
|
}
|
|
41228
41228
|
],
|
|
41229
41229
|
"usedExports": [
|
|
@@ -41451,7 +41451,7 @@
|
|
|
41451
41451
|
"moduleName": "./components/Layout/HeaderActions.js",
|
|
41452
41452
|
"type": "harmony import specifier",
|
|
41453
41453
|
"userRequest": "./Application",
|
|
41454
|
-
"loc": "78:
|
|
41454
|
+
"loc": "78:41-52"
|
|
41455
41455
|
}
|
|
41456
41456
|
],
|
|
41457
41457
|
"usedExports": [
|
|
@@ -42224,7 +42224,7 @@
|
|
|
42224
42224
|
"ModuleConcatenation bailout: Module is referenced from these modules with unsupported syntax: ./components/DevelopmentLogin/index.js (referenced with import())"
|
|
42225
42225
|
],
|
|
42226
42226
|
"depth": 2,
|
|
42227
|
-
"source": "function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useState } from 'react';\nimport { Modal, Input, Form, message } from 'antd';\nimport Cookies from 'universal-cookie';\nvar cookies = new Cookies(); // 默认\n\nvar accountInfoDefault = {\n account:
|
|
42227
|
+
"source": "function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); }\n\nfunction _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === \"[object Arguments]\")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\nimport { useState } from 'react';\nimport { Modal, Input, Form, message } from 'antd';\nimport Cookies from 'universal-cookie';\nvar cookies = new Cookies(); // 默认\n\nvar accountInfoDefault = {\n account: undefined,\n password: undefined\n};\nexport default (function (_ref) {\n var visible = _ref.visible,\n close = _ref.close,\n signIn = _ref.signIn;\n\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n confirmLoading = _useState2[0],\n setConfirmLoading = _useState2[1]; // 如果storage中已存在,则取storage\n\n\n var storageAccountInfo = localStorage.getItem('accountInfo');\n\n if (storageAccountInfo) {\n try {\n accountInfoDefault = JSON.parse(storageAccountInfo);\n } catch (e) {}\n }\n\n var _useState3 = useState(accountInfoDefault),\n _useState4 = _slicedToArray(_useState3, 2),\n accountInfo = _useState4[0],\n setAccountInfo = _useState4[1];\n\n var account = accountInfo.account,\n password = accountInfo.password;\n\n var onSubmit = function onSubmit() {\n setConfirmLoading(true);\n var returnVal = signIn && signIn(accountInfo);\n\n if (returnVal && returnVal.then) {\n returnVal.then(function (res) {\n message.success('模拟登陆成功');\n localStorage.setItem('accountInfo', JSON.stringify(accountInfo));\n setConfirmLoading(false);\n setTimeout(function () {\n var _ref2 = res || {},\n token = _ref2.tdToken,\n userId = _ref2.userId;\n\n cookies.set('_td_token_', token, {\n path: '/'\n });\n cookies.set('_uid_', userId, {\n path: '/'\n });\n close();\n }, 500);\n })[\"catch\"](function (err) {\n setConfirmLoading(false);\n throw err;\n });\n }\n };\n\n var changeFieldValue = function changeFieldValue(key, evt) {\n setAccountInfo(_objectSpread({}, accountInfo, _defineProperty({}, key, evt.target.value)));\n };\n\n return React.createElement(Modal, {\n title: \"\\u5F00\\u53D1\\u8005\\u6A21\\u62DF\\u767B\\u9646\",\n visible: visible,\n maskClosable: false,\n onOk: onSubmit,\n onCancel: close,\n confirmLoading: confirmLoading\n }, React.createElement(Form, {\n labelCol: {\n span: 5\n },\n wrapperCol: {\n span: 18\n }\n }, React.createElement(Form.Item, {\n label: \"\\u7528\\u6237\\u540D\\uFF1A\"\n }, React.createElement(Input, {\n type: \"text\",\n placeholder: \"\\u8BF7\\u8F93\\u5165\\u7528\\u6237\\u540D\",\n value: account || undefined,\n onChange: function onChange(evt) {\n return changeFieldValue('account', evt);\n }\n })), React.createElement(Form.Item, {\n label: \"\\u5BC6\\u7801\\uFF1A\"\n }, React.createElement(Input, {\n type: \"text\",\n placeholder: \"\\u8BF7\\u8F93\\u5165\\u7528\\u6237\\u540D\",\n value: password || undefined,\n onChange: function onChange(evt) {\n return changeFieldValue('password', evt);\n }\n }))));\n});"
|
|
42228
42228
|
},
|
|
42229
42229
|
{
|
|
42230
42230
|
"id": null,
|