@next-core/brick-kit 2.91.2 → 2.92.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 +11 -0
- package/dist/EasyopsEmpty/empty-image.397ff6359f4066d8.png +0 -0
- package/dist/index.bundle.js +7 -166
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +46 -187
- package/dist/index.esm.js.map +1 -1
- package/dist/types/EasyopsEmpty/EasyopsEmpty.d.ts.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.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)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* expose http code ([#1227](https://github.com/easyops-cn/next-core/issues/1227)) ([9e22deb](https://github.com/easyops-cn/next-core/commit/9e22deb2dc27b7d907bb782790fa4a59960ccc82))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [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)
|
|
7
18
|
|
|
8
19
|
|
|
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 {
|
|
@@ -9390,7 +9371,8 @@
|
|
|
9390
9371
|
mountRoutesResult.main = [{
|
|
9391
9372
|
type: brickPageError,
|
|
9392
9373
|
properties: {
|
|
9393
|
-
error: httpErrorToString(error)
|
|
9374
|
+
error: httpErrorToString(error),
|
|
9375
|
+
code: error instanceof brickHttp.HttpResponseError ? error.response.status : null
|
|
9394
9376
|
},
|
|
9395
9377
|
events: {}
|
|
9396
9378
|
}];
|
|
@@ -10814,155 +10796,14 @@
|
|
|
10814
10796
|
};
|
|
10815
10797
|
var defaultLocale = localeValues;
|
|
10816
10798
|
|
|
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
|
-
}
|
|
10799
|
+
var emptyImage = "../EasyopsEmpty/empty-image.397ff6359f4066d8.png";
|
|
10958
10800
|
|
|
10959
10801
|
/**
|
|
10960
10802
|
* 用于展示空数据的 React 组件。
|
|
10961
10803
|
*/
|
|
10962
10804
|
function EasyopsEmpty(props) {
|
|
10963
|
-
var emptyImage = SvgEmptyImage;
|
|
10964
10805
|
var illustration = React.useMemo(() => props.illustration && illustrations.getIllustration(props.illustration), [props.illustration]);
|
|
10965
|
-
var image = props.illustration ? illustration :
|
|
10806
|
+
var image = props.illustration ? illustration : emptyImage;
|
|
10966
10807
|
return /*#__PURE__*/React__default["default"].createElement(antd.Empty, {
|
|
10967
10808
|
image: image,
|
|
10968
10809
|
imageStyle: props.imageStyle,
|