@next-core/brick-kit 2.91.2 → 2.93.0
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/CHANGELOG.md +37 -83
- package/dist/assets/empty-image.397ff6359f4066d8.png +0 -0
- package/dist/index.bundle.js +20 -168
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +59 -189
- package/dist/index.esm.js.map +1 -1
- package/dist/types/BrickAsComponent.d.ts.map +1 -1
- package/dist/types/EasyopsEmpty/EasyopsEmpty.d.ts.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/internal/evaluate.d.ts.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -3,178 +3,132 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
# [2.93.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.2...@next-core/brick-kit@2.93.0) (2021-12-17)
|
|
8
7
|
|
|
9
|
-
### Bug Fixes
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
### Features
|
|
12
10
|
|
|
11
|
+
* add new constant BASE_URL in evaluations ([80451fe](https://github.com/easyops-cn/next-core/commit/80451fe3c9e6f80488e207f6c164db2ace7191ac))
|
|
13
12
|
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
|
|
17
|
-
## [2.91.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.0...@next-core/brick-kit@2.91.1) (2021-12-03)
|
|
18
16
|
|
|
17
|
+
## [2.92.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.1...@next-core/brick-kit@2.92.2) (2021-12-15)
|
|
19
18
|
|
|
20
19
|
### Bug Fixes
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
- pass data through tpl in useBrick ([3b6538c](https://github.com/easyops-cn/next-core/commit/3b6538cd37b8267f6a279f3b14c3a2fdefcb2ba9))
|
|
24
22
|
|
|
23
|
+
## [2.92.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.92.0...@next-core/brick-kit@2.92.1) (2021-12-06)
|
|
25
24
|
|
|
25
|
+
### Bug Fixes
|
|
26
26
|
|
|
27
|
+
- fix empty image ([f941e83](https://github.com/easyops-cn/next-core/commit/f941e835cf42b4a0a94418004c19b0c37b3d24e0))
|
|
27
28
|
|
|
28
|
-
# [2.
|
|
29
|
-
|
|
29
|
+
# [2.92.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.2...@next-core/brick-kit@2.92.0) (2021-12-06)
|
|
30
30
|
|
|
31
31
|
### Features
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
- expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
|
|
34
34
|
|
|
35
|
+
## [2.91.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.1...@next-core/brick-kit@2.91.2) (2021-12-05)
|
|
35
36
|
|
|
37
|
+
### Bug Fixes
|
|
36
38
|
|
|
39
|
+
- add icons field ([7415b3f](https://github.com/easyops-cn/next-core/commit/7415b3ffaafe109c3bd555878a1d5ab2cd117183))
|
|
37
40
|
|
|
41
|
+
## [2.91.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.91.0...@next-core/brick-kit@2.91.1) (2021-12-03)
|
|
38
42
|
|
|
39
|
-
|
|
43
|
+
### Bug Fixes
|
|
40
44
|
|
|
45
|
+
- fix page tracker ([dbf1d00](https://github.com/easyops-cn/next-core/commit/dbf1d003cd2e60ad18471e403c5dc9c9690b30fa))
|
|
41
46
|
|
|
42
|
-
|
|
47
|
+
# [2.91.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.2...@next-core/brick-kit@2.91.0) (2021-12-03)
|
|
43
48
|
|
|
44
|
-
|
|
49
|
+
### Features
|
|
45
50
|
|
|
51
|
+
- support isAdmin ([f160156](https://github.com/easyops-cn/next-core/commit/f1601567b59c9f4a27aa130dc3e2e327c84c35db))
|
|
46
52
|
|
|
53
|
+
## [2.90.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.1...@next-core/brick-kit@2.90.2) (2021-12-01)
|
|
47
54
|
|
|
55
|
+
### Bug Fixes
|
|
48
56
|
|
|
57
|
+
- remove flags ([ed7f66b](https://github.com/easyops-cn/next-core/commit/ed7f66b40c5be427171ec5fc8817eee64c499f60))
|
|
49
58
|
|
|
50
59
|
## [2.90.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.90.0...@next-core/brick-kit@2.90.1) (2021-11-29)
|
|
51
60
|
|
|
52
61
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
53
62
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
63
|
# [2.90.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.2...@next-core/brick-kit@2.90.0) (2021-11-26)
|
|
59
64
|
|
|
60
|
-
|
|
61
65
|
### Bug Fixes
|
|
62
66
|
|
|
63
|
-
|
|
64
|
-
|
|
67
|
+
- fix a regression of caching resolves ([e9cd56d](https://github.com/easyops-cn/next-core/commit/e9cd56d882d0a13ee1cb13c4ed752a15f2c15bfd))
|
|
65
68
|
|
|
66
69
|
### Features
|
|
67
70
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
- support i18n in storyboard functions ([5891932](https://github.com/easyops-cn/next-core/commit/589193250f22735b20e93d32c807896f4ae0932b))
|
|
72
|
+
- support i18n in widgets ([6020545](https://github.com/easyops-cn/next-core/commit/60205457fedbc7c000bb60b1e97729e3151be33d))
|
|
73
|
+
- support img in widgets ([f19ad53](https://github.com/easyops-cn/next-core/commit/f19ad5329b95c71e612f4be0ffa57b5a3d9ec570))
|
|
75
74
|
|
|
76
75
|
## [2.89.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.1...@next-core/brick-kit@2.89.2) (2021-11-25)
|
|
77
76
|
|
|
78
|
-
|
|
79
77
|
### Bug Fixes
|
|
80
78
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
- get stroyboard v2 ([602d086](https://github.com/easyops-cn/next-core/commit/602d0860fc6c7c9e5ffc116ff023addb0f57efe1))
|
|
86
80
|
|
|
87
81
|
## [2.89.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.89.0...@next-core/brick-kit@2.89.1) (2021-11-25)
|
|
88
82
|
|
|
89
|
-
|
|
90
83
|
### Bug Fixes
|
|
91
84
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
85
|
+
- bootsrtrap 增加开关控制 ([360b913](https://github.com/easyops-cn/next-core/commit/360b913f324f10ac79b1d637ec598583a89a61da))
|
|
97
86
|
|
|
98
87
|
# [2.89.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.1...@next-core/brick-kit@2.89.0) (2021-11-25)
|
|
99
88
|
|
|
100
|
-
|
|
101
89
|
### Bug Fixes
|
|
102
90
|
|
|
103
|
-
|
|
104
|
-
|
|
91
|
+
- refine storyboard function ([90c42c1](https://github.com/easyops-cn/next-core/commit/90c42c1f49a7d7e8297d424bd02a3957787fb8e3))
|
|
105
92
|
|
|
106
93
|
### Features
|
|
107
94
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
95
|
+
- use global noCurrentApp as default ([4e18163](https://github.com/easyops-cn/next-core/commit/4e18163eeefa24cb022cb9b936746c9e7ad80e70))
|
|
113
96
|
|
|
114
97
|
## [2.88.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.88.0...@next-core/brick-kit@2.88.1) (2021-11-25)
|
|
115
98
|
|
|
116
|
-
|
|
117
99
|
### Bug Fixes
|
|
118
100
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
101
|
+
- app 字段合并 boostrap 接口详情的 app 信息 ([2dffa41](https://github.com/easyops-cn/next-core/commit/2dffa41e020e92994c6275a62977128b0a7a4bad))
|
|
102
|
+
- use boostreap v2 api ([e1fbf03](https://github.com/easyops-cn/next-core/commit/e1fbf0366e29b28f823915bda4707368910c013e))
|
|
125
103
|
|
|
126
104
|
# [2.88.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.87.0...@next-core/brick-kit@2.88.0) (2021-11-23)
|
|
127
105
|
|
|
128
|
-
|
|
129
106
|
### Features
|
|
130
107
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
108
|
+
- **Router:** set noCurrentApp default value ([8d5efe1](https://github.com/easyops-cn/next-core/commit/8d5efe14230b72ede0a87eeacf8881433b1e4829))
|
|
136
109
|
|
|
137
110
|
# [2.87.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.1...@next-core/brick-kit@2.87.0) (2021-11-23)
|
|
138
111
|
|
|
139
|
-
|
|
140
112
|
### Features
|
|
141
113
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
114
|
+
- **locationContext:** add noCurrentApp ([8efc245](https://github.com/easyops-cn/next-core/commit/8efc245513f8e9ebf0aadcabfedd15647333d318))
|
|
147
115
|
|
|
148
116
|
## [2.86.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.86.0...@next-core/brick-kit@2.86.1) (2021-11-23)
|
|
149
117
|
|
|
150
118
|
**Note:** Version bump only for package @next-core/brick-kit
|
|
151
119
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
120
|
# [2.86.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.85.0...@next-core/brick-kit@2.86.0) (2021-11-18)
|
|
157
121
|
|
|
158
|
-
|
|
159
122
|
### Features
|
|
160
123
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
124
|
+
- use a single build for standalone apps ([cb5db11](https://github.com/easyops-cn/next-core/commit/cb5db11829952fedfa9cf3898de3e62cfe647a16))
|
|
166
125
|
|
|
167
126
|
# [2.85.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.2...@next-core/brick-kit@2.85.0) (2021-11-18)
|
|
168
127
|
|
|
169
|
-
|
|
170
128
|
### Features
|
|
171
129
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
130
|
+
- fetch conf in standalone micro-apps ([6175855](https://github.com/easyops-cn/next-core/commit/61758554f23ca685cd29f01130e46805c7674433))
|
|
131
|
+
- support getting images by static files ([c23d88a](https://github.com/easyops-cn/next-core/commit/c23d88aa70f5009453a1d3c58e7f4a0d6249c719))
|
|
178
132
|
|
|
179
133
|
## [2.84.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.84.1...@next-core/brick-kit@2.84.2) (2021-11-12)
|
|
180
134
|
|
|
Binary file
|
package/dist/index.bundle.js
CHANGED
|
@@ -1,40 +1,21 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('history'), require('@babel/runtime/helpers/objectSpread2'), require('@babel/runtime/helpers/objectWithoutProperties'), require('@babel/runtime/helpers/asyncToGenerator'), require('@babel/runtime/helpers/defineProperty'), require('react'), require('lodash'), require('@next-core/brick-utils'), require('@next-core/brick-http'), require('i18next'), require('moment'), require('@next-core/pipes'), require('@next-core/easyops-analytics'), require('js-yaml'), require('antd'), require('@ant-design/icons'), require('react-i18next'), require('@babel/runtime/helpers/esm/extends'), require('@next-core/illustrations'), require('@babel/runtime/helpers/decorate')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', 'history', '@babel/runtime/helpers/objectSpread2', '@babel/runtime/helpers/objectWithoutProperties', '@babel/runtime/helpers/asyncToGenerator', '@babel/runtime/helpers/defineProperty', 'react', 'lodash', '@next-core/brick-utils', '@next-core/brick-http', 'i18next', 'moment', '@next-core/pipes', '@next-core/easyops-analytics', 'js-yaml', 'antd', '@ant-design/icons', 'react-i18next', '@babel/runtime/helpers/esm/extends', '@next-core/illustrations', '@babel/runtime/helpers/decorate'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$1, global.React, global.lodash, global.brickUtils, global.brickHttp, global.i18next, global.moment, global.pipes, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends
|
|
5
|
-
})(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, i18next, moment, pipes, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BrickKit = {}, global.history$1, global._objectSpread, global._objectWithoutProperties, global._asyncToGenerator$4, global._defineProperty$1, global.React, global.lodash, global.brickUtils, global.brickHttp, global.i18next, global.moment, global.pipes, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends, global.illustrations, global._decorate));
|
|
5
|
+
})(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, i18next, moment, pipes, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends, illustrations, _decorate) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
9
|
var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
|
|
28
10
|
var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
|
|
29
11
|
var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator$4);
|
|
30
12
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$1);
|
|
31
13
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
32
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
33
14
|
var lodash__default = /*#__PURE__*/_interopDefaultLegacy(lodash);
|
|
34
15
|
var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
|
|
35
16
|
var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
|
|
36
17
|
var yaml__default = /*#__PURE__*/_interopDefaultLegacy(yaml);
|
|
37
|
-
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends
|
|
18
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
38
19
|
var _decorate__default = /*#__PURE__*/_interopDefaultLegacy(_decorate);
|
|
39
20
|
|
|
40
21
|
class BaseBar {
|
|
@@ -1867,6 +1848,10 @@
|
|
|
1867
1848
|
globalVariables.MISC = getRuntime().getMiscSettings();
|
|
1868
1849
|
}
|
|
1869
1850
|
|
|
1851
|
+
if (attemptToVisitGlobals.has("BASE_URL")) {
|
|
1852
|
+
globalVariables.BASE_URL = getBasePath().replace(/\/$/, "");
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1870
1855
|
try {
|
|
1871
1856
|
var result = brickUtils.cook(precooked.expression, precooked.source, {
|
|
1872
1857
|
globalVariables: supply(precooked.attemptToVisitGlobals, globalVariables)
|
|
@@ -9390,7 +9375,8 @@
|
|
|
9390
9375
|
mountRoutesResult.main = [{
|
|
9391
9376
|
type: brickPageError,
|
|
9392
9377
|
properties: {
|
|
9393
|
-
error: httpErrorToString(error)
|
|
9378
|
+
error: httpErrorToString(error),
|
|
9379
|
+
code: error instanceof brickHttp.HttpResponseError ? error.response.status : null
|
|
9394
9380
|
},
|
|
9395
9381
|
events: {}
|
|
9396
9382
|
}];
|
|
@@ -10182,7 +10168,7 @@
|
|
|
10182
10168
|
return /*#__PURE__*/React__default["default"].createElement(SingleBrickAsComponent, {
|
|
10183
10169
|
key: index,
|
|
10184
10170
|
useBrick: item,
|
|
10185
|
-
data:
|
|
10171
|
+
data: data
|
|
10186
10172
|
});
|
|
10187
10173
|
}));
|
|
10188
10174
|
} else {
|
|
@@ -10402,7 +10388,7 @@
|
|
|
10402
10388
|
return /*#__PURE__*/React__default["default"].createElement(SingleBrickAsComponent, {
|
|
10403
10389
|
key: index,
|
|
10404
10390
|
useBrick: item,
|
|
10405
|
-
data:
|
|
10391
|
+
data: data
|
|
10406
10392
|
});
|
|
10407
10393
|
}));
|
|
10408
10394
|
} else {
|
|
@@ -10814,165 +10800,31 @@
|
|
|
10814
10800
|
};
|
|
10815
10801
|
var defaultLocale = localeValues;
|
|
10816
10802
|
|
|
10817
|
-
|
|
10818
|
-
|
|
10819
|
-
var _ref = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
10820
|
-
x1: "5.718%",
|
|
10821
|
-
y1: "4.311%",
|
|
10822
|
-
x2: "83.05%",
|
|
10823
|
-
y2: "88.915%",
|
|
10824
|
-
id: "empty-image_svg__a"
|
|
10825
|
-
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10826
|
-
stopColor: "#D4D8E4",
|
|
10827
|
-
offset: "0%"
|
|
10828
|
-
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10829
|
-
stopColor: "#A9B0C4",
|
|
10830
|
-
offset: "100%"
|
|
10831
|
-
})), /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
10832
|
-
x1: "0%",
|
|
10833
|
-
y1: "11.08%",
|
|
10834
|
-
x2: "80.548%",
|
|
10835
|
-
y2: "107.704%",
|
|
10836
|
-
id: "empty-image_svg__d"
|
|
10837
|
-
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10838
|
-
stopColor: "#C2C7DA",
|
|
10839
|
-
offset: "0%"
|
|
10840
|
-
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10841
|
-
stopColor: "#8F96B3",
|
|
10842
|
-
offset: "100%"
|
|
10843
|
-
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10844
|
-
d: "M34 36h8a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4h-8a4 4 0 0 1-4-4v-8a4 4 0 0 1 4-4z",
|
|
10845
|
-
id: "empty-image_svg__c"
|
|
10846
|
-
}), /*#__PURE__*/React__namespace.createElement("filter", {
|
|
10847
|
-
x: "-37.5%",
|
|
10848
|
-
y: "-31.3%",
|
|
10849
|
-
width: "187.5%",
|
|
10850
|
-
height: "187.5%",
|
|
10851
|
-
filterUnits: "objectBoundingBox",
|
|
10852
|
-
id: "empty-image_svg__b"
|
|
10853
|
-
}, /*#__PURE__*/React__namespace.createElement("feOffset", {
|
|
10854
|
-
dx: 1,
|
|
10855
|
-
dy: 2,
|
|
10856
|
-
in: "SourceAlpha",
|
|
10857
|
-
result: "shadowOffsetOuter1"
|
|
10858
|
-
}), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
|
|
10859
|
-
stdDeviation: 2,
|
|
10860
|
-
in: "shadowOffsetOuter1",
|
|
10861
|
-
result: "shadowBlurOuter1"
|
|
10862
|
-
}), /*#__PURE__*/React__namespace.createElement("feComposite", {
|
|
10863
|
-
in: "shadowBlurOuter1",
|
|
10864
|
-
in2: "SourceAlpha",
|
|
10865
|
-
operator: "out",
|
|
10866
|
-
result: "shadowBlurOuter1"
|
|
10867
|
-
}), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
|
|
10868
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
|
|
10869
|
-
in: "shadowBlurOuter1"
|
|
10870
|
-
})), /*#__PURE__*/React__namespace.createElement("linearGradient", {
|
|
10871
|
-
x1: "41.823%",
|
|
10872
|
-
y1: "24.795%",
|
|
10873
|
-
x2: "8.813%",
|
|
10874
|
-
y2: "86.427%",
|
|
10875
|
-
id: "empty-image_svg__g"
|
|
10876
|
-
}, /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10877
|
-
stopColor: "#CCD0DD",
|
|
10878
|
-
offset: "0%"
|
|
10879
|
-
}), /*#__PURE__*/React__namespace.createElement("stop", {
|
|
10880
|
-
stopColor: "#9DA3B9",
|
|
10881
|
-
offset: "100%"
|
|
10882
|
-
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10883
|
-
d: "M59 19a4 4 0 0 1 4 4v7.314L51.686 19H59z",
|
|
10884
|
-
id: "empty-image_svg__f"
|
|
10885
|
-
}), /*#__PURE__*/React__namespace.createElement("filter", {
|
|
10886
|
-
x: "-61.9%",
|
|
10887
|
-
y: "-79.5%",
|
|
10888
|
-
width: "223.7%",
|
|
10889
|
-
height: "223.7%",
|
|
10890
|
-
filterUnits: "objectBoundingBox",
|
|
10891
|
-
id: "empty-image_svg__e"
|
|
10892
|
-
}, /*#__PURE__*/React__namespace.createElement("feOffset", {
|
|
10893
|
-
dy: -2,
|
|
10894
|
-
in: "SourceAlpha",
|
|
10895
|
-
result: "shadowOffsetOuter1"
|
|
10896
|
-
}), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
|
|
10897
|
-
stdDeviation: 2,
|
|
10898
|
-
in: "shadowOffsetOuter1",
|
|
10899
|
-
result: "shadowBlurOuter1"
|
|
10900
|
-
}), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
|
|
10901
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
|
|
10902
|
-
in: "shadowBlurOuter1"
|
|
10903
|
-
})));
|
|
10904
|
-
|
|
10905
|
-
var _ref2 = /*#__PURE__*/React__namespace.createElement("g", {
|
|
10906
|
-
fill: "none",
|
|
10907
|
-
fillRule: "evenodd"
|
|
10908
|
-
}, /*#__PURE__*/React__namespace.createElement("path", {
|
|
10909
|
-
d: "M61.108 51.8H15.892a2.8 2.8 0 0 0-1.941.782L5.6 60.615V74.2a5.6 5.6 0 0 0 5.6 5.6h54.6a5.6 5.6 0 0 0 5.6-5.6V60.615l-8.35-8.033a2.8 2.8 0 0 0-1.942-.782z",
|
|
10910
|
-
fill: "#A6AAC3"
|
|
10911
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10912
|
-
d: "M51.686 19L63 30.314V66.2a2.8 2.8 0 0 1-2.8 2.8H16.8a2.8 2.8 0 0 1-2.8-2.8V25a6 6 0 0 1 6-6h31.686z",
|
|
10913
|
-
fill: "url(#empty-image_svg__a)"
|
|
10914
|
-
}), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("use", {
|
|
10915
|
-
fill: "#000",
|
|
10916
|
-
filter: "url(#empty-image_svg__b)",
|
|
10917
|
-
xlinkHref: "#empty-image_svg__c"
|
|
10918
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10919
|
-
stroke: "#FFF",
|
|
10920
|
-
d: "M42 36.5c.966 0 1.841.392 2.475 1.025A3.489 3.489 0 0 1 45.5 40h0v8c0 .966-.392 1.841-1.025 2.475A3.489 3.489 0 0 1 42 51.5h0-8a3.489 3.489 0 0 1-2.475-1.025A3.489 3.489 0 0 1 30.5 48h0v-8c0-.966.392-1.841 1.025-2.475A3.489 3.489 0 0 1 34 36.5h0z",
|
|
10921
|
-
strokeLinejoin: "square",
|
|
10922
|
-
fill: "url(#empty-image_svg__d)"
|
|
10923
|
-
})), /*#__PURE__*/React__namespace.createElement("g", {
|
|
10924
|
-
transform: "rotate(180 57.343 24.657)"
|
|
10925
|
-
}, /*#__PURE__*/React__namespace.createElement("use", {
|
|
10926
|
-
fill: "#000",
|
|
10927
|
-
filter: "url(#empty-image_svg__e)",
|
|
10928
|
-
xlinkHref: "#empty-image_svg__f"
|
|
10929
|
-
}), /*#__PURE__*/React__namespace.createElement("use", {
|
|
10930
|
-
fill: "url(#empty-image_svg__g)",
|
|
10931
|
-
xlinkHref: "#empty-image_svg__f"
|
|
10932
|
-
})), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10933
|
-
d: "M82.6 42a.7.7 0 0 1 .7.7v1.399l1.4.001a.7.7 0 0 1 0 1.4l-1.4-.001V46.9a.7.7 0 0 1-1.4 0v-1.401l-1.4.001a.7.7 0 0 1 0-1.4l1.4-.001V42.7a.7.7 0 0 1 .7-.7zM2.1 30.8c.29 0 .525.235.525.525l-.001.874.876.001a.7.7 0 0 1 0 1.4h-.876l.001.875a.525.525 0 1 1-1.05 0l-.001-.875H.7a.7.7 0 0 1 0-1.4l.874-.001.001-.874c0-.29.235-.525.525-.525z",
|
|
10934
|
-
fill: "#D6D8E4",
|
|
10935
|
-
opacity: 0.3
|
|
10936
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10937
|
-
d: "M8.4 79.8l-.17-.005A2.8 2.8 0 0 1 5.6 77V60.2h12.393l.175-.006c3.802-.04 7.95 5.943 19.61 6.19l.022-.002.022.002c10.856.218 15.009-5.902 19.558-6.175l.227-.009H71.4V77a2.8 2.8 0 0 1-2.63 2.795l-.17.005H8.4z",
|
|
10938
|
-
fill: "#D6D8E4"
|
|
10939
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10940
|
-
d: "M21 3.356S24.518 2.509 25.516 0c1.438 2.057 2.18 2.947 3.884 3.338-2.321.692-3.33 1.468-4.123 3.662-.912-2.584-1.741-2.919-4.277-3.644",
|
|
10941
|
-
fill: "#D6D8E4",
|
|
10942
|
-
opacity: 0.5
|
|
10943
|
-
}), /*#__PURE__*/React__namespace.createElement("path", {
|
|
10944
|
-
d: "M63 10.125S72.382 7.923 75.044 1.4c3.834 5.35 5.81 7.663 10.356 8.68-6.19 1.797-8.878 3.816-10.995 9.52-2.43-6.72-4.643-7.59-11.405-9.475",
|
|
10945
|
-
fill: "#D6D8E4",
|
|
10946
|
-
opacity: 0.8
|
|
10947
|
-
}));
|
|
10948
|
-
|
|
10949
|
-
function SvgEmptyImage(props) {
|
|
10950
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
10951
|
-
width: 86,
|
|
10952
|
-
height: 80,
|
|
10953
|
-
viewBox: "0 0 86 80",
|
|
10954
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10955
|
-
xmlnsXlink: "http://www.w3.org/1999/xlink"
|
|
10956
|
-
}, props), _ref, _ref2);
|
|
10957
|
-
}
|
|
10803
|
+
var emptyImage = "empty-image.397ff6359f4066d8.png";
|
|
10958
10804
|
|
|
10959
10805
|
/**
|
|
10960
10806
|
* 用于展示空数据的 React 组件。
|
|
10961
10807
|
*/
|
|
10962
10808
|
function EasyopsEmpty(props) {
|
|
10963
|
-
var emptyImage = SvgEmptyImage;
|
|
10964
10809
|
var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
|
|
10965
|
-
var image = props.illustration ? illustration :
|
|
10810
|
+
var image = props.illustration ? illustration : getImageUrl(emptyImage);
|
|
10966
10811
|
return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {
|
|
10967
10812
|
image: image,
|
|
10968
10813
|
imageStyle: props.imageStyle,
|
|
10969
10814
|
description: props.description
|
|
10970
10815
|
});
|
|
10971
10816
|
}
|
|
10817
|
+
|
|
10818
|
+
function getImageUrl(url) {
|
|
10819
|
+
var _window$CORE_ROOT;
|
|
10820
|
+
|
|
10821
|
+
return "".concat((_window$CORE_ROOT = window.CORE_ROOT) !== null && _window$CORE_ROOT !== void 0 ? _window$CORE_ROOT : "", "assets/").concat(url);
|
|
10822
|
+
}
|
|
10972
10823
|
/**
|
|
10973
10824
|
* 调用后获得一个默认的展示空数据的 React 组件。
|
|
10974
10825
|
*/
|
|
10975
10826
|
|
|
10827
|
+
|
|
10976
10828
|
function renderEasyopsEmpty() {
|
|
10977
10829
|
return /*#__PURE__*/React__default["default"].createElement(EasyopsEmpty, null);
|
|
10978
10830
|
}
|