@next-core/brick-kit 2.98.0 → 2.100.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 CHANGED
@@ -3,6 +3,48 @@
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
+ # [2.100.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.2...@next-core/brick-kit@2.100.0) (2022-01-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * **MockRegistry:** remove version in mock url ([e291d52](https://github.com/easyops-cn/next-core/commit/e291d52626e5565a9ebd8cf6370cb6cf7dd33903))
12
+ * **MockRegistry:** update RegExp ([423be36](https://github.com/easyops-cn/next-core/commit/423be36023068c1ebf07215d15117af4299ec039))
13
+
14
+
15
+
16
+
17
+
18
+ ## [2.99.2](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.1...@next-core/brick-kit@2.99.2) (2022-01-04)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * **Router:** render call scrollTo before life cycle handler ([92279de](https://github.com/easyops-cn/next-core/commit/92279de483cf623a7bc116d2813ff86fef29695d))
24
+
25
+
26
+
27
+
28
+
29
+ ## [2.99.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.99.0...@next-core/brick-kit@2.99.1) (2021-12-31)
30
+
31
+ **Note:** Version bump only for package @next-core/brick-kit
32
+
33
+
34
+
35
+
36
+
37
+ # [2.99.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.98.0...@next-core/brick-kit@2.99.0) (2021-12-31)
38
+
39
+
40
+ ### Features
41
+
42
+ * dark theme ([c6709a7](https://github.com/easyops-cn/next-core/commit/c6709a7a30a8860a6cb3e0245967c9bcfd5e78f5))
43
+
44
+
45
+
46
+
47
+
6
48
  # [2.98.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.97.0...@next-core/brick-kit@2.98.0) (2021-12-30)
7
49
 
8
50
 
@@ -1,21 +1,40 @@
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('moment'), require('@next-core/pipes'), require('i18next'), 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', 'moment', '@next-core/pipes', 'i18next', '@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.moment, global.pipes, global.i18next, 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, moment, pipes, i18next, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends, illustrations, _decorate) { 'use strict';
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.moment, global.pipes, global.i18next, global.easyopsAnalytics, global.yaml, global.antd, global.icons, global.reactI18next, global._extends$2, global.illustrations, global._decorate));
5
+ })(this, (function (exports, history$1, _objectSpread, _objectWithoutProperties, _asyncToGenerator$4, _defineProperty$1, React, lodash, brickUtils, brickHttp, moment, pipes, i18next, easyopsAnalytics, yaml, antd, icons, reactI18next, _extends$2, 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
+
9
27
  var _objectSpread__default = /*#__PURE__*/_interopDefaultLegacy(_objectSpread);
10
28
  var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
11
29
  var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator$4);
12
30
  var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty$1);
13
31
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
32
+ var React__namespace = /*#__PURE__*/_interopNamespace(React);
14
33
  var lodash__default = /*#__PURE__*/_interopDefaultLegacy(lodash);
15
34
  var moment__default = /*#__PURE__*/_interopDefaultLegacy(moment);
16
35
  var i18next__default = /*#__PURE__*/_interopDefaultLegacy(i18next);
17
36
  var yaml__default = /*#__PURE__*/_interopDefaultLegacy(yaml);
18
- var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
37
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends$2);
19
38
  var _decorate__default = /*#__PURE__*/_interopDefaultLegacy(_decorate);
20
39
 
21
40
  class BaseBar {
@@ -1902,6 +1921,11 @@
1902
1921
  getUrl: getUrlBySegueFactory(app, segues)
1903
1922
  };
1904
1923
 
1924
+ case "THEME":
1925
+ return {
1926
+ getTheme
1927
+ };
1928
+
1905
1929
  case "SESSION_STORAGE":
1906
1930
  return {
1907
1931
  getItem: getItemFactory("session")
@@ -9179,15 +9203,25 @@
9179
9203
 
9180
9204
  if (useMocks) mocks = _objectSpread__default["default"](_objectSpread__default["default"]({}, useMocks), {}, {
9181
9205
  mockList: (_useMocks$mockList = useMocks.mockList) === null || _useMocks$mockList === void 0 ? void 0 : _useMocks$mockList.map(item => _objectSpread__default["default"](_objectSpread__default["default"]({}, item), {}, {
9182
- uri: item.uri.replace(/(easyops\.api\.)(.+)(@\d+\.\d+\.\d+(?=\/))(.+)/, (_match, p1, p2, _p3, p4) => {
9183
- return "(".concat(p1, ")?").concat(p2, "(@\\d+\\.\\d+\\.\\d+)?").concat(p4, "$");
9184
- }).replace(/:\w+/g, "[\\w|-]+")
9206
+ uri: item.uri.replace(/(easyops\.api\.)(.+?)\/(.+)/, (_match, p1, p2, p3) => {
9207
+ return "(".concat(p1, ")?").concat(p2, "(@\\d+\\.\\d+\\.\\d+)?/").concat(p3, "$");
9208
+ }).replace(/:\w+/g, "([^/]+)")
9185
9209
  }))
9186
9210
  });
9187
9211
  }
9188
- var getMockId = requestUrl => {
9189
- if (mocks.mockList.find(item => new RegExp(item.uri).test(requestUrl))) return mocks.mockId;
9190
- return undefined;
9212
+ var getMockInfo = requestUrl => {
9213
+ var item = mocks.mockList.find(item => new RegExp(item.uri).test(requestUrl));
9214
+
9215
+ if (item) {
9216
+ return {
9217
+ url: requestUrl.replace(/(api\/gateway\/.+?)(@\d+\.\d+\.\d+)?\/(.+)/, (_match, p1, _p2, p3) => {
9218
+ return "".concat(p1, "/").concat(p3);
9219
+ }).replace(/(api\/gateway)/, "api/gateway/mock_server.proxy.".concat(mocks.mockId)),
9220
+ mockId: mocks.mockId
9221
+ };
9222
+ }
9223
+
9224
+ return;
9191
9225
  };
9192
9226
 
9193
9227
  class Router {
@@ -9569,7 +9603,10 @@
9569
9603
  portal.length > 0 && mountTree(portal, mountPoints.portal);
9570
9604
  afterMountTree(mountPoints.main);
9571
9605
  afterMountTree(mountPoints.portal);
9572
- afterMountTree(mountPoints.bg);
9606
+ afterMountTree(mountPoints.bg); // Scroll to top after each rendering.
9607
+ // See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
9608
+
9609
+ window.scrollTo(0, 0);
9573
9610
 
9574
9611
  if (!failed) {
9575
9612
  _this3.locationContext.handlePageLoad();
@@ -9579,11 +9616,8 @@
9579
9616
  _this3.locationContext.resolver.scheduleRefreshing();
9580
9617
 
9581
9618
  _this3.locationContext.handleMessage();
9582
- } // Scroll to top after each rendering.
9583
- // See https://github.com/ReactTraining/react-router/blob/master/packages/react-router-dom/docs/guides/scroll-restoration.md
9584
-
9619
+ }
9585
9620
 
9586
- window.scrollTo(0, 0);
9587
9621
  pageTracker === null || pageTracker === void 0 ? void 0 : pageTracker(locationContext.getCurrentMatch().path); // analytics page_view event
9588
9622
 
9589
9623
  easyopsAnalytics.userAnalytics.event("page_view", _objectSpread__default["default"]({
@@ -10881,9 +10915,289 @@
10881
10915
  };
10882
10916
  var defaultLocale = localeValues;
10883
10917
 
10884
- var emptyImage = "empty-image.8e18d87fea570ef0.png";
10918
+ function _extends$1() { _extends$1 = 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$1.apply(this, arguments); }
10919
+
10920
+ var _ref$1 = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("linearGradient", {
10921
+ x1: "5.718%",
10922
+ y1: "4.311%",
10923
+ x2: "83.05%",
10924
+ y2: "88.915%",
10925
+ id: "empty-image_svg__a"
10926
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
10927
+ stopColor: "#D4D8E4",
10928
+ offset: "0%"
10929
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
10930
+ stopColor: "#A9B0C4",
10931
+ offset: "100%"
10932
+ })), /*#__PURE__*/React__namespace.createElement("linearGradient", {
10933
+ x1: "0%",
10934
+ y1: "11.08%",
10935
+ x2: "80.548%",
10936
+ y2: "107.704%",
10937
+ id: "empty-image_svg__d"
10938
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
10939
+ stopColor: "#C2C7DA",
10940
+ offset: "0%"
10941
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
10942
+ stopColor: "#8F96B3",
10943
+ offset: "100%"
10944
+ })), /*#__PURE__*/React__namespace.createElement("path", {
10945
+ d: "M23.672 23.607h2.492a4 4 0 0 1 4 4v2.491a4 4 0 0 1-4 4h-2.492a4 4 0 0 1-4-4v-2.491a4 4 0 0 1 4-4z",
10946
+ id: "empty-image_svg__c"
10947
+ }), /*#__PURE__*/React__namespace.createElement("filter", {
10948
+ x: "-57.2%",
10949
+ y: "-47.7%",
10950
+ width: "233.4%",
10951
+ height: "233.4%",
10952
+ filterUnits: "objectBoundingBox",
10953
+ id: "empty-image_svg__b"
10954
+ }, /*#__PURE__*/React__namespace.createElement("feOffset", {
10955
+ dx: 1,
10956
+ dy: 2,
10957
+ in: "SourceAlpha",
10958
+ result: "shadowOffsetOuter1"
10959
+ }), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
10960
+ stdDeviation: 2,
10961
+ in: "shadowOffsetOuter1",
10962
+ result: "shadowBlurOuter1"
10963
+ }), /*#__PURE__*/React__namespace.createElement("feComposite", {
10964
+ in: "shadowBlurOuter1",
10965
+ in2: "SourceAlpha",
10966
+ operator: "out",
10967
+ result: "shadowBlurOuter1"
10968
+ }), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
10969
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
10970
+ in: "shadowBlurOuter1"
10971
+ })), /*#__PURE__*/React__namespace.createElement("linearGradient", {
10972
+ x1: "41.823%",
10973
+ y1: "24.795%",
10974
+ x2: "8.813%",
10975
+ y2: "86.427%",
10976
+ id: "empty-image_svg__g"
10977
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
10978
+ stopColor: "#CCD0DD",
10979
+ offset: "0%"
10980
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
10981
+ stopColor: "#9DA3B9",
10982
+ offset: "100%"
10983
+ })), /*#__PURE__*/React__namespace.createElement("path", {
10984
+ d: "M37.311 12.459a4 4 0 0 1 4 4v3.419l-7.418-7.419h3.418z",
10985
+ id: "empty-image_svg__f"
10986
+ }), /*#__PURE__*/React__namespace.createElement("filter", {
10987
+ x: "-94.4%",
10988
+ y: "-121.3%",
10989
+ width: "288.7%",
10990
+ height: "288.7%",
10991
+ filterUnits: "objectBoundingBox",
10992
+ id: "empty-image_svg__e"
10993
+ }, /*#__PURE__*/React__namespace.createElement("feOffset", {
10994
+ dy: -2,
10995
+ in: "SourceAlpha",
10996
+ result: "shadowOffsetOuter1"
10997
+ }), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
10998
+ stdDeviation: 2,
10999
+ in: "shadowOffsetOuter1",
11000
+ result: "shadowBlurOuter1"
11001
+ }), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
11002
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
11003
+ in: "shadowBlurOuter1"
11004
+ })));
11005
+
11006
+ var _ref2$1 = /*#__PURE__*/React__namespace.createElement("g", {
11007
+ fill: "none",
11008
+ fillRule: "evenodd"
11009
+ }, /*#__PURE__*/React__namespace.createElement("path", {
11010
+ d: "M39.682 33.967H10.81a2.8 2.8 0 0 0-1.94.782l-5.197 4.999v6.98a5.6 5.6 0 0 0 5.6 5.6H41.22a5.6 5.6 0 0 0 5.6-5.6v-6.98l-5.196-4.999a2.8 2.8 0 0 0-1.942-.782z",
11011
+ fill: "#A6AAC3"
11012
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11013
+ d: "M33.893 12.459l7.418 7.419v22.568a2.8 2.8 0 0 1-2.8 2.8h-26.53a2.8 2.8 0 0 1-2.8-2.8V18.459a6 6 0 0 1 6-6h18.712z",
11014
+ fill: "url(#empty-image_svg__a)"
11015
+ }), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("use", {
11016
+ fill: "#000",
11017
+ filter: "url(#empty-image_svg__b)",
11018
+ xlinkHref: "#empty-image_svg__c"
11019
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11020
+ stroke: "#FFF",
11021
+ d: "M26.164 24.107c.966 0 1.841.391 2.475 1.025a3.489 3.489 0 0 1 1.025 2.475h0v2.491c0 .967-.392 1.842-1.025 2.475a3.489 3.489 0 0 1-2.475 1.025h0-2.492a3.489 3.489 0 0 1-2.475-1.025 3.489 3.489 0 0 1-1.025-2.475h0v-2.491c0-.967.392-1.842 1.025-2.475a3.489 3.489 0 0 1 2.475-1.025h0z",
11022
+ strokeLinejoin: "square",
11023
+ fill: "url(#empty-image_svg__d)"
11024
+ })), /*#__PURE__*/React__namespace.createElement("g", {
11025
+ transform: "rotate(180 37.602 16.168)"
11026
+ }, /*#__PURE__*/React__namespace.createElement("use", {
11027
+ fill: "#000",
11028
+ filter: "url(#empty-image_svg__e)",
11029
+ xlinkHref: "#empty-image_svg__f"
11030
+ }), /*#__PURE__*/React__namespace.createElement("use", {
11031
+ fill: "url(#empty-image_svg__g)",
11032
+ xlinkHref: "#empty-image_svg__f"
11033
+ })), /*#__PURE__*/React__namespace.createElement("path", {
11034
+ d: "M54.164 27.541c.253 0 .459.205.459.459v.918h.918a.459.459 0 1 1 0 .918h-.918v.918a.459.459 0 0 1-.918 0v-.918h-.918a.459.459 0 0 1 0-.918h.918V28c0-.254.205-.459.459-.459zM1.377 20.197c.19 0 .344.154.344.344v.574h.574a.459.459 0 1 1 0 .918h-.574v.574a.344.344 0 0 1-.688 0l-.001-.574H.459a.459.459 0 0 1 0-.918h.573v-.574c0-.19.155-.344.345-.344z",
11035
+ fill: "#D6D8E4",
11036
+ opacity: 0.3
11037
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11038
+ d: "M24.787 43.53h.014c7.087.143 9.817-3.834 12.785-4.046l.19-.008h9.044v10.052a2.8 2.8 0 0 1-2.63 2.795l-.17.005H6.472l-.17-.005a2.8 2.8 0 0 1-2.63-2.795V39.475h8.126l.144-.004c2.485.004 5.214 3.898 12.83 4.06l.015-.002z",
11039
+ fill: "#D6D8E4"
11040
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11041
+ d: "M13.77 2.2s2.308-.555 2.962-2.2c.943 1.35 1.429 1.933 2.547 2.189-1.522.453-2.183.963-2.704 2.401-.598-1.695-1.142-1.914-2.805-2.39",
11042
+ fill: "#D6D8E4",
11043
+ opacity: 0.5
11044
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11045
+ d: "M41.311 6.64S47.464 5.194 49.21.917c2.514 3.508 3.81 5.025 6.791 5.691-4.059 1.18-5.822 2.503-7.21 6.243-1.594-4.406-3.045-4.976-7.479-6.213",
11046
+ fill: "#D6D8E4",
11047
+ opacity: 0.8
11048
+ }));
10885
11049
 
10886
- var bigEmptyImage = "big-empty-image.397ff6359f4066d8.png";
11050
+ function SvgEmptyImage(props) {
11051
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
11052
+ width: 56,
11053
+ height: 53,
11054
+ viewBox: "0 0 56 53",
11055
+ xmlns: "http://www.w3.org/2000/svg",
11056
+ xmlnsXlink: "http://www.w3.org/1999/xlink"
11057
+ }, props), _ref$1, _ref2$1);
11058
+ }
11059
+
11060
+ 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); }
11061
+
11062
+ var _ref = /*#__PURE__*/React__namespace.createElement("defs", null, /*#__PURE__*/React__namespace.createElement("linearGradient", {
11063
+ x1: "5.718%",
11064
+ y1: "4.311%",
11065
+ x2: "83.05%",
11066
+ y2: "88.915%",
11067
+ id: "big-empty-image_svg__a"
11068
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
11069
+ stopColor: "#D4D8E4",
11070
+ offset: "0%"
11071
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
11072
+ stopColor: "#A9B0C4",
11073
+ offset: "100%"
11074
+ })), /*#__PURE__*/React__namespace.createElement("linearGradient", {
11075
+ x1: "0%",
11076
+ y1: "11.08%",
11077
+ x2: "80.548%",
11078
+ y2: "107.704%",
11079
+ id: "big-empty-image_svg__d"
11080
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
11081
+ stopColor: "#C2C7DA",
11082
+ offset: "0%"
11083
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
11084
+ stopColor: "#8F96B3",
11085
+ offset: "100%"
11086
+ })), /*#__PURE__*/React__namespace.createElement("path", {
11087
+ 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",
11088
+ id: "big-empty-image_svg__c"
11089
+ }), /*#__PURE__*/React__namespace.createElement("filter", {
11090
+ x: "-37.5%",
11091
+ y: "-31.3%",
11092
+ width: "187.5%",
11093
+ height: "187.5%",
11094
+ filterUnits: "objectBoundingBox",
11095
+ id: "big-empty-image_svg__b"
11096
+ }, /*#__PURE__*/React__namespace.createElement("feOffset", {
11097
+ dx: 1,
11098
+ dy: 2,
11099
+ in: "SourceAlpha",
11100
+ result: "shadowOffsetOuter1"
11101
+ }), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
11102
+ stdDeviation: 2,
11103
+ in: "shadowOffsetOuter1",
11104
+ result: "shadowBlurOuter1"
11105
+ }), /*#__PURE__*/React__namespace.createElement("feComposite", {
11106
+ in: "shadowBlurOuter1",
11107
+ in2: "SourceAlpha",
11108
+ operator: "out",
11109
+ result: "shadowBlurOuter1"
11110
+ }), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
11111
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0",
11112
+ in: "shadowBlurOuter1"
11113
+ })), /*#__PURE__*/React__namespace.createElement("linearGradient", {
11114
+ x1: "41.823%",
11115
+ y1: "24.795%",
11116
+ x2: "8.813%",
11117
+ y2: "86.427%",
11118
+ id: "big-empty-image_svg__g"
11119
+ }, /*#__PURE__*/React__namespace.createElement("stop", {
11120
+ stopColor: "#CCD0DD",
11121
+ offset: "0%"
11122
+ }), /*#__PURE__*/React__namespace.createElement("stop", {
11123
+ stopColor: "#9DA3B9",
11124
+ offset: "100%"
11125
+ })), /*#__PURE__*/React__namespace.createElement("path", {
11126
+ d: "M59 19a4 4 0 0 1 4 4v7.314L51.686 19H59z",
11127
+ id: "big-empty-image_svg__f"
11128
+ }), /*#__PURE__*/React__namespace.createElement("filter", {
11129
+ x: "-61.9%",
11130
+ y: "-79.5%",
11131
+ width: "223.7%",
11132
+ height: "223.7%",
11133
+ filterUnits: "objectBoundingBox",
11134
+ id: "big-empty-image_svg__e"
11135
+ }, /*#__PURE__*/React__namespace.createElement("feOffset", {
11136
+ dy: -2,
11137
+ in: "SourceAlpha",
11138
+ result: "shadowOffsetOuter1"
11139
+ }), /*#__PURE__*/React__namespace.createElement("feGaussianBlur", {
11140
+ stdDeviation: 2,
11141
+ in: "shadowOffsetOuter1",
11142
+ result: "shadowBlurOuter1"
11143
+ }), /*#__PURE__*/React__namespace.createElement("feColorMatrix", {
11144
+ values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",
11145
+ in: "shadowBlurOuter1"
11146
+ })));
11147
+
11148
+ var _ref2 = /*#__PURE__*/React__namespace.createElement("g", {
11149
+ fill: "none",
11150
+ fillRule: "evenodd"
11151
+ }, /*#__PURE__*/React__namespace.createElement("path", {
11152
+ 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",
11153
+ fill: "#A6AAC3"
11154
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11155
+ 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",
11156
+ fill: "url(#big-empty-image_svg__a)"
11157
+ }), /*#__PURE__*/React__namespace.createElement("g", null, /*#__PURE__*/React__namespace.createElement("use", {
11158
+ fill: "#000",
11159
+ filter: "url(#big-empty-image_svg__b)",
11160
+ xlinkHref: "#big-empty-image_svg__c"
11161
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11162
+ stroke: "#FFF",
11163
+ 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",
11164
+ strokeLinejoin: "square",
11165
+ fill: "url(#big-empty-image_svg__d)"
11166
+ })), /*#__PURE__*/React__namespace.createElement("g", {
11167
+ transform: "rotate(180 57.343 24.657)"
11168
+ }, /*#__PURE__*/React__namespace.createElement("use", {
11169
+ fill: "#000",
11170
+ filter: "url(#big-empty-image_svg__e)",
11171
+ xlinkHref: "#big-empty-image_svg__f"
11172
+ }), /*#__PURE__*/React__namespace.createElement("use", {
11173
+ fill: "url(#big-empty-image_svg__g)",
11174
+ xlinkHref: "#big-empty-image_svg__f"
11175
+ })), /*#__PURE__*/React__namespace.createElement("path", {
11176
+ 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",
11177
+ fill: "#D6D8E4",
11178
+ opacity: 0.3
11179
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11180
+ 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",
11181
+ fill: "#D6D8E4"
11182
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11183
+ 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",
11184
+ fill: "#D6D8E4",
11185
+ opacity: 0.5
11186
+ }), /*#__PURE__*/React__namespace.createElement("path", {
11187
+ 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",
11188
+ fill: "#D6D8E4",
11189
+ opacity: 0.8
11190
+ }));
11191
+
11192
+ function SvgBigEmptyImage(props) {
11193
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
11194
+ width: 86,
11195
+ height: 80,
11196
+ viewBox: "0 0 86 80",
11197
+ xmlns: "http://www.w3.org/2000/svg",
11198
+ xmlnsXlink: "http://www.w3.org/1999/xlink"
11199
+ }, props), _ref, _ref2);
11200
+ }
10887
11201
 
10888
11202
  /**
10889
11203
  * 用于展示空数据的 React 组件。
@@ -10893,29 +11207,25 @@
10893
11207
 
10894
11208
  var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
10895
11209
 
10896
- var _emptyImage = props.useBigEmptyImage ? bigEmptyImage : emptyImage;
11210
+ var _emptyImage = props.useBigEmptyImage ? SvgBigEmptyImage : SvgEmptyImage;
10897
11211
 
10898
- var image = props.illustration ? illustration : getImageUrl(_emptyImage);
11212
+ var image = props.illustration ? illustration : /*#__PURE__*/React__default["default"].createElement(_emptyImage);
10899
11213
  var imageStyle = (_props$imageStyle = props.imageStyle) !== null && _props$imageStyle !== void 0 ? _props$imageStyle : props.useBigEmptyImage ? undefined : {
10900
11214
  height: "60px"
10901
11215
  };
10902
11216
  return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {
10903
11217
  image: image,
10904
11218
  imageStyle: imageStyle,
10905
- description: props.description
11219
+ description: props.description,
11220
+ style: {
11221
+ color: "var(--text-color-secondary)"
11222
+ }
10906
11223
  });
10907
11224
  }
10908
-
10909
- function getImageUrl(url) {
10910
- var _window$CORE_ROOT;
10911
-
10912
- return "".concat((_window$CORE_ROOT = window.CORE_ROOT) !== null && _window$CORE_ROOT !== void 0 ? _window$CORE_ROOT : "", "assets/").concat(url);
10913
- }
10914
11225
  /**
10915
11226
  * 调用后获得一个默认的展示空数据的 React 组件。
10916
11227
  */
10917
11228
 
10918
-
10919
11229
  function renderEasyopsEmpty() {
10920
11230
  return /*#__PURE__*/React__default["default"].createElement(EasyopsEmpty, null);
10921
11231
  }
@@ -11413,7 +11723,7 @@
11413
11723
  exports.event = event;
11414
11724
  exports.getAuth = getAuth;
11415
11725
  exports.getHistory = getHistory;
11416
- exports.getMockId = getMockId;
11726
+ exports.getMockInfo = getMockInfo;
11417
11727
  exports.getRuntime = getRuntime;
11418
11728
  exports.handleHttpError = handleHttpError;
11419
11729
  exports.httpErrorToString = httpErrorToString;