@oceanbase/ui 1.0.0-alpha.10 → 1.0.0-alpha.11
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/dist/ui.min.js +1 -1
- package/es/Action/Group.js +1 -0
- package/es/Action/Item.js +1 -0
- package/es/Action/index.js +1 -0
- package/es/BackgroundTaskManager/RefreshMan.js +1 -0
- package/es/BackgroundTaskManager/index.js +1 -0
- package/es/BasicLayout/Header.js +1 -0
- package/es/BasicLayout/index.js +1 -0
- package/es/BatchOperationBar/index.js +1 -0
- package/es/Boundary/Components/Code.js +1 -0
- package/es/Boundary/Components/Exception.js +1 -0
- package/es/Boundary/Components/Function.js +1 -0
- package/es/Boundary/index.js +1 -0
- package/es/ContentWithIcon/index.js +1 -0
- package/es/ContentWithQuestion/index.js +1 -0
- package/es/DateRanger/PickerPanel.js +1 -0
- package/es/DateRanger/Ranger.js +1 -0
- package/es/DateRanger/index.js +1 -0
- package/es/Dialog/Anchor.js +1 -0
- package/es/Dialog/EventProxy.js +1 -0
- package/es/Dialog/index.js +1 -0
- package/es/DocDialog/index.js +1 -0
- package/es/FooterToolbar/index.js +1 -0
- package/es/FullscreenBox/index.js +1 -0
- package/es/Highlight/DiffView/DiffCells.js +1 -0
- package/es/Highlight/DiffView/index.js +1 -0
- package/es/Highlight/HighlightCell.js +1 -0
- package/es/Highlight/JsonView.js +1 -0
- package/es/Highlight/index.js +1 -0
- package/es/Highlight/useKeyDownCopyEvent.js +1 -0
- package/es/IconFont/index.js +1 -0
- package/es/LightFilter/index.js +1 -0
- package/es/LocaleDropdown/index.js +1 -0
- package/es/Login/ActivateForm.js +1 -0
- package/es/Login/LoginForm.js +1 -0
- package/es/Login/RegisterForm.js +1 -0
- package/es/Login/index.js +1 -0
- package/es/Lottie/index.js +1 -0
- package/es/NavMenu/index.js +1 -0
- package/es/PageContainer/ItemRender.js +1 -0
- package/es/PageContainer/index.js +1 -0
- package/es/PageLoading/index.js +1 -0
- package/es/Password/Content.js +1 -0
- package/es/Password/index.js +1 -0
- package/es/ProCard/index.js +1 -0
- package/es/ProTable/index.js +2 -3
- package/es/Ranger/QuickPicker.js +1 -0
- package/es/Ranger/Ranger.js +1 -0
- package/es/Ranger/index.js +1 -0
- package/es/SideTip/Dragger.js +1 -0
- package/es/SideTip/IconLoading.js +1 -0
- package/es/SideTip/index.js +1 -0
- package/es/TagSelect/Group.js +1 -0
- package/es/TagSelect/Item.js +1 -0
- package/es/TagSelect/index.js +1 -0
- package/es/TreeSearch/index.js +1 -0
- package/es/Welcome/index.js +1 -0
- package/es/Welcome/step.js +1 -0
- package/es/_util/index.js +1 -0
- package/es/constant/index.js +1 -0
- package/es/index.js +1 -0
- package/es/locale/LocaleWrapper.js +1 -0
- package/es/locale/index.js +1 -0
- package/lib/Action/Group.js +189 -162
- package/lib/Action/Item.js +47 -65
- package/lib/Action/index.js +13 -35
- package/lib/Action/style/index.js +25 -43
- package/lib/BackgroundTaskManager/RefreshMan.js +34 -50
- package/lib/BackgroundTaskManager/constants.js +10 -32
- package/lib/BackgroundTaskManager/index.js +118 -126
- package/lib/BasicLayout/Header.js +242 -200
- package/lib/BasicLayout/index.js +265 -307
- package/lib/BasicLayout/locale/en-US.js +16 -34
- package/lib/BasicLayout/locale/ja-JP.js +16 -34
- package/lib/BasicLayout/locale/zh-CN.js +16 -34
- package/lib/BasicLayout/locale/zh-TW.js +16 -34
- package/lib/BasicLayout/style/Header.js +41 -60
- package/lib/BasicLayout/style/index.js +176 -197
- package/lib/BatchOperationBar/index.js +109 -151
- package/lib/BatchOperationBar/locale/en-US.js +10 -28
- package/lib/BatchOperationBar/locale/ja-JP.js +10 -28
- package/lib/BatchOperationBar/locale/zh-CN.js +10 -28
- package/lib/BatchOperationBar/locale/zh-TW.js +10 -28
- package/lib/BatchOperationBar/style/index.js +30 -46
- package/lib/Boundary/Components/Code.js +57 -75
- package/lib/Boundary/Components/Exception.js +103 -123
- package/lib/Boundary/Components/Function.js +47 -62
- package/lib/Boundary/Components/index.js +36 -25
- package/lib/Boundary/IBoundary.js +4 -16
- package/lib/Boundary/constant.js +16 -38
- package/lib/Boundary/index.js +11 -24
- package/lib/Boundary/locale/en-US.js +14 -32
- package/lib/Boundary/locale/ja-JP.js +14 -32
- package/lib/Boundary/locale/zh-CN.js +14 -32
- package/lib/Boundary/locale/zh-TW.js +14 -32
- package/lib/Boundary/style/index.js +28 -47
- package/lib/Boundary/utils.js +9 -31
- package/lib/ContentWithIcon/index.js +101 -114
- package/lib/ContentWithIcon/style/index.js +17 -36
- package/lib/ContentWithQuestion/index.js +40 -52
- package/lib/ContentWithQuestion/style/index.js +16 -35
- package/lib/DateRanger/PickerPanel.js +343 -325
- package/lib/DateRanger/Ranger.js +430 -515
- package/lib/DateRanger/constant/index.js +188 -376
- package/lib/DateRanger/index.js +45 -64
- package/lib/DateRanger/locale/en-US.js +20 -47
- package/lib/DateRanger/locale/ja-JP.js +20 -47
- package/lib/DateRanger/locale/zh-CN.js +20 -47
- package/lib/DateRanger/locale/zh-TW.js +20 -47
- package/lib/DateRanger/style/index.js +41 -62
- package/lib/DateRanger/typing.js +4 -16
- package/lib/Dialog/Anchor.js +70 -95
- package/lib/Dialog/Dock.js +14 -36
- package/lib/Dialog/EventProxy.js +21 -39
- package/lib/Dialog/index.js +327 -370
- package/lib/Dialog/locale/en-US.js +8 -26
- package/lib/Dialog/locale/ja-JP.js +8 -26
- package/lib/Dialog/locale/zh-CN.js +8 -26
- package/lib/Dialog/locale/zh-TW.js +8 -26
- package/lib/Dialog/style/index.js +58 -76
- package/lib/DocDialog/index.js +51 -77
- package/lib/DocDialog/locale/en-US.js +5 -23
- package/lib/DocDialog/locale/ja-JP.js +5 -23
- package/lib/DocDialog/locale/zh-CN.js +5 -23
- package/lib/DocDialog/locale/zh-TW.js +5 -23
- package/lib/FooterToolbar/index.js +27 -45
- package/lib/FooterToolbar/style/index.js +23 -38
- package/lib/FullscreenBox/index.js +151 -138
- package/lib/FullscreenBox/locale/en-US.js +5 -23
- package/lib/FullscreenBox/locale/ja-JP.js +5 -23
- package/lib/FullscreenBox/locale/zh-CN.js +5 -23
- package/lib/FullscreenBox/locale/zh-TW.js +5 -23
- package/lib/FullscreenBox/style/index.js +23 -41
- package/lib/Highlight/DiffView/DiffCells.js +34 -54
- package/lib/Highlight/DiffView/index.js +165 -163
- package/lib/Highlight/HighlightCell.js +28 -47
- package/lib/Highlight/JsonView.js +45 -74
- package/lib/Highlight/index.js +200 -214
- package/lib/Highlight/languages/bash.js +7 -34
- package/lib/Highlight/languages/cpp.js +7 -34
- package/lib/Highlight/languages/css.js +7 -34
- package/lib/Highlight/languages/dockerfile.js +7 -34
- package/lib/Highlight/languages/go.js +7 -34
- package/lib/Highlight/languages/groovy.js +7 -34
- package/lib/Highlight/languages/http.js +7 -34
- package/lib/Highlight/languages/java.js +7 -34
- package/lib/Highlight/languages/javascript.js +7 -34
- package/lib/Highlight/languages/json.js +7 -34
- package/lib/Highlight/languages/markdown.js +7 -34
- package/lib/Highlight/languages/nginx.js +7 -34
- package/lib/Highlight/languages/python.js +7 -34
- package/lib/Highlight/languages/ruby.js +7 -34
- package/lib/Highlight/languages/solidity.js +7 -34
- package/lib/Highlight/languages/sql.js +7 -34
- package/lib/Highlight/languages/typescript.js +7 -34
- package/lib/Highlight/languages/xml.js +7 -34
- package/lib/Highlight/languages/yaml.js +7 -34
- package/lib/Highlight/locale/en-US.js +7 -25
- package/lib/Highlight/locale/ja-JP.js +7 -25
- package/lib/Highlight/locale/zh-CN.js +7 -25
- package/lib/Highlight/locale/zh-TW.js +7 -25
- package/lib/Highlight/style/index.js +128 -144
- package/lib/Highlight/useKeyDownCopyEvent.js +40 -64
- package/lib/IconFont/index.js +23 -28
- package/lib/LightFilter/index.js +29 -43
- package/lib/LightFilter/style/index.js +15 -33
- package/lib/LocaleDropdown/index.js +43 -53
- package/lib/Login/ActivateForm.js +93 -119
- package/lib/Login/LoginForm.js +149 -184
- package/lib/Login/RegisterForm.js +122 -163
- package/lib/Login/index.js +157 -163
- package/lib/Login/locale/en-US.js +31 -49
- package/lib/Login/locale/ja-JP.js +31 -49
- package/lib/Login/locale/zh-CN.js +31 -49
- package/lib/Login/locale/zh-TW.js +30 -48
- package/lib/Login/style/index.js +77 -98
- package/lib/Lottie/index.js +7 -24
- package/lib/NavMenu/index.js +105 -108
- package/lib/NavMenu/style/index.js +31 -49
- package/lib/PageContainer/ItemRender.js +28 -46
- package/lib/PageContainer/index.js +125 -140
- package/lib/PageContainer/locale/en-US.js +8 -26
- package/lib/PageContainer/locale/ja-JP.js +8 -26
- package/lib/PageContainer/locale/zh-CN.js +8 -26
- package/lib/PageContainer/locale/zh-TW.js +8 -26
- package/lib/PageContainer/style/index.js +19 -40
- package/lib/PageLoading/index.js +33 -54
- package/lib/Password/Content.js +92 -80
- package/lib/Password/index.js +125 -160
- package/lib/Password/locale/en-US.js +14 -32
- package/lib/Password/locale/ja-JP.js +16 -34
- package/lib/Password/locale/zh-CN.js +15 -33
- package/lib/Password/locale/zh-TW.js +14 -32
- package/lib/ProCard/index.js +77 -98
- package/lib/ProCard/style/index.js +21 -39
- package/lib/ProTable/index.js +102 -123
- package/lib/ProTable/style/index.js +21 -38
- package/lib/Ranger/QuickPicker.js +92 -94
- package/lib/Ranger/Ranger.js +98 -133
- package/lib/Ranger/constant/index.js +115 -266
- package/lib/Ranger/index.js +61 -69
- package/lib/Ranger/locale/en-US.js +31 -49
- package/lib/Ranger/locale/ja-JP.js +31 -49
- package/lib/Ranger/locale/zh-CN.js +7 -25
- package/lib/Ranger/locale/zh-TW.js +7 -25
- package/lib/Ranger/style/index.js +21 -39
- package/lib/Ranger/typing.js +4 -16
- package/lib/SideTip/Dragger.js +259 -219
- package/lib/SideTip/IconLoading.js +43 -74
- package/lib/SideTip/index.js +124 -126
- package/lib/SideTip/locale/en-US.js +5 -23
- package/lib/SideTip/locale/ja-JP.js +5 -23
- package/lib/SideTip/locale/zh-CN.js +5 -23
- package/lib/SideTip/locale/zh-TW.js +5 -23
- package/lib/SideTip/style/index.js +76 -92
- package/lib/SideTip/utils.js +40 -61
- package/lib/TagSelect/Group.js +64 -83
- package/lib/TagSelect/Item.js +68 -91
- package/lib/TagSelect/TagSelectContext.js +7 -25
- package/lib/TagSelect/index.js +12 -35
- package/lib/TagSelect/style/index.js +41 -64
- package/lib/TreeSearch/index.js +133 -127
- package/lib/TreeSearch/util.js +52 -70
- package/lib/Welcome/index.js +142 -117
- package/lib/Welcome/locale/en-US.js +8 -26
- package/lib/Welcome/locale/ja-JP.js +8 -26
- package/lib/Welcome/locale/zh-CN.js +8 -26
- package/lib/Welcome/locale/zh-TW.js +8 -26
- package/lib/Welcome/step/style/index.js +24 -40
- package/lib/Welcome/step.js +63 -59
- package/lib/Welcome/style/index.js +58 -70
- package/lib/_util/genComponentStyleHook.js +15 -43
- package/lib/_util/index.js +38 -43
- package/lib/_util/useNavigate.js +11 -26
- package/lib/constant/index.js +23 -49
- package/lib/index.js +283 -129
- package/lib/interface.js +4 -16
- package/lib/locale/LocaleWrapper.js +50 -60
- package/lib/locale/en-US.js +37 -64
- package/lib/locale/index.js +5 -16
- package/lib/locale/ja-JP.js +37 -64
- package/lib/locale/zh-CN.js +36 -63
- package/lib/locale/zh-TW.js +32 -59
- package/package.json +3 -3
package/lib/Boundary/constant.js
CHANGED
|
@@ -1,71 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(constant_exports, {
|
|
22
|
-
CODE_PRESET: () => CODE_PRESET,
|
|
23
|
-
EXCEPTION_PRESET: () => EXCEPTION_PRESET
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
24
5
|
});
|
|
25
|
-
|
|
26
|
-
|
|
6
|
+
exports.EXCEPTION_PRESET = exports.CODE_PRESET = void 0;
|
|
7
|
+
const CODE_PRESET = locale => {
|
|
27
8
|
return {
|
|
28
9
|
404: {
|
|
29
10
|
title: locale.noPage,
|
|
30
|
-
imageUrl:
|
|
11
|
+
imageUrl: 'https://gw.alipayobjects.com/mdn/rms_6fd3f1/afts/img/A*Tak4RYcBB_kAAAAAAAAAAAAAARQnAQ',
|
|
31
12
|
buttonText: locale.goHome,
|
|
32
13
|
onClick: () => {
|
|
33
|
-
window.location.href =
|
|
14
|
+
window.location.href = '/';
|
|
34
15
|
}
|
|
35
16
|
},
|
|
36
17
|
403: {
|
|
37
18
|
title: locale.noPermission,
|
|
38
|
-
imageUrl:
|
|
19
|
+
imageUrl: 'https://gw.alipayobjects.com/mdn/rms_6fd3f1/afts/img/A*6wHtQbUwibUAAAAAAAAAAAAAARQnAQ',
|
|
39
20
|
buttonText: locale.goHome,
|
|
40
21
|
onClick: () => {
|
|
41
|
-
window.location.href =
|
|
22
|
+
window.location.href = '/';
|
|
42
23
|
}
|
|
43
24
|
}
|
|
44
25
|
};
|
|
45
26
|
};
|
|
46
|
-
|
|
27
|
+
exports.CODE_PRESET = CODE_PRESET;
|
|
28
|
+
const EXCEPTION_PRESET = locale => {
|
|
47
29
|
return {
|
|
48
30
|
ERROR_BOUNDARY: {
|
|
49
31
|
title: locale.collapse,
|
|
50
|
-
imageUrl:
|
|
32
|
+
imageUrl: 'https://gw.alipayobjects.com/mdn/rms_6fd3f1/afts/img/A*GFuxRoxURRAAAAAAAAAAAAAAARQnAQ',
|
|
51
33
|
buttonText: locale.goHome,
|
|
52
34
|
onClick: () => {
|
|
53
|
-
window.location.href =
|
|
35
|
+
window.location.href = '/';
|
|
54
36
|
}
|
|
55
37
|
},
|
|
56
38
|
INCOMPATIBLE_VERSION: {
|
|
57
39
|
title: locale.incompatible,
|
|
58
|
-
imageUrl:
|
|
40
|
+
imageUrl: 'https://gw.alipayobjects.com/mdn/rms_6fd3f1/afts/img/A*XPYFQ4ZEzzsAAAAAAAAAAAAAARQnAQ',
|
|
59
41
|
buttonText: locale.goHome,
|
|
60
42
|
onClick: () => {
|
|
61
|
-
window.location.href =
|
|
43
|
+
window.location.href = '/';
|
|
62
44
|
},
|
|
63
45
|
subscription: locale.proposal
|
|
64
46
|
}
|
|
65
47
|
};
|
|
66
48
|
};
|
|
67
|
-
|
|
68
|
-
0 && (module.exports = {
|
|
69
|
-
CODE_PRESET,
|
|
70
|
-
EXCEPTION_PRESET
|
|
71
|
-
});
|
|
49
|
+
exports.EXCEPTION_PRESET = EXCEPTION_PRESET;
|
package/lib/Boundary/index.js
CHANGED
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(Boundary_exports, {
|
|
22
|
-
default: () => Boundary_default
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
23
5
|
});
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _Components = require("./Components");
|
|
8
|
+
"use client";
|
|
9
|
+
var _default = exports.default = {
|
|
10
|
+
Code: _Components.Code,
|
|
11
|
+
Function: _Components.BoundaryFunction,
|
|
12
|
+
Exception: _Components.Exception
|
|
13
|
+
};
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(en_US_exports, {
|
|
22
|
-
default: () => en_US_default
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
23
5
|
});
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
goHome:
|
|
27
|
-
noPermission:
|
|
28
|
-
noPage:
|
|
29
|
-
normal:
|
|
30
|
-
test:
|
|
31
|
-
collapse:
|
|
32
|
-
incompatible:
|
|
33
|
-
proposal:
|
|
34
|
-
};
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
goHome: 'Return to home page',
|
|
9
|
+
noPermission: 'You do not have access to this page',
|
|
10
|
+
noPage: 'This page was not found',
|
|
11
|
+
normal: 'normal operation',
|
|
12
|
+
test: 'Click to test crash effect',
|
|
13
|
+
collapse: 'The page crashed',
|
|
14
|
+
incompatible: 'Incompatible browser version',
|
|
15
|
+
proposal: 'The browser version is too low. In order to avoid possible security risks, it is recommended to use Chrome browser version 80 or above'
|
|
16
|
+
};
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(ja_JP_exports, {
|
|
22
|
-
default: () => ja_JP_default
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
23
5
|
});
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
goHome:
|
|
27
|
-
noPermission:
|
|
28
|
-
noPage:
|
|
29
|
-
normal:
|
|
30
|
-
test:
|
|
31
|
-
collapse:
|
|
32
|
-
incompatible:
|
|
33
|
-
proposal:
|
|
34
|
-
};
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
goHome: 'ホームに戻る',
|
|
9
|
+
noPermission: 'このページへのアクセス権限がありません',
|
|
10
|
+
noPage: 'このページが見つかりません',
|
|
11
|
+
normal: '正常動作',
|
|
12
|
+
test: 'クリックしてクラッシュをテスト',
|
|
13
|
+
collapse: 'ページがクラッシュしました',
|
|
14
|
+
incompatible: 'ブラウザがサポートされていません',
|
|
15
|
+
proposal: 'ブラウザのバージョンが古すぎます。セキュリティリスクを避けるため、Chrome 80以上のご利用をおすすめします'
|
|
16
|
+
};
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(zh_CN_exports, {
|
|
22
|
-
default: () => zh_CN_default
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
23
5
|
});
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
goHome:
|
|
27
|
-
noPermission:
|
|
28
|
-
noPage:
|
|
29
|
-
normal:
|
|
30
|
-
test:
|
|
31
|
-
collapse:
|
|
32
|
-
incompatible:
|
|
33
|
-
proposal:
|
|
34
|
-
};
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
goHome: '返回首页',
|
|
9
|
+
noPermission: '你没有此页面的访问权限',
|
|
10
|
+
noPage: '此页面未找到',
|
|
11
|
+
normal: '正常运行',
|
|
12
|
+
test: '点击测试崩溃效果',
|
|
13
|
+
collapse: '页面崩溃了',
|
|
14
|
+
incompatible: '浏览器版本不兼容',
|
|
15
|
+
proposal: '浏览器版本过低,为避免可能存在的安全隐患,建议使用Chrome浏览器的80及以上版本'
|
|
16
|
+
};
|
|
@@ -1,34 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(zh_TW_exports, {
|
|
22
|
-
default: () => zh_TW_default
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
23
5
|
});
|
|
24
|
-
|
|
25
|
-
var
|
|
26
|
-
goHome:
|
|
27
|
-
noPermission:
|
|
28
|
-
noPage:
|
|
29
|
-
normal:
|
|
30
|
-
test:
|
|
31
|
-
collapse:
|
|
32
|
-
incompatible:
|
|
33
|
-
proposal:
|
|
34
|
-
};
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _default = exports.default = {
|
|
8
|
+
goHome: '返回首頁',
|
|
9
|
+
noPermission: '你沒有此頁面的存取權限',
|
|
10
|
+
noPage: '此頁面未找到',
|
|
11
|
+
normal: '正常運行',
|
|
12
|
+
test: '點擊測試崩潰效果',
|
|
13
|
+
collapse: '頁面崩潰了',
|
|
14
|
+
incompatible: '流覽器版本不相容',
|
|
15
|
+
proposal: '流覽器版本過低,為避免可能存在的安全隱患,建議使用Chrome瀏覽器的80及以上版本'
|
|
16
|
+
};
|
|
@@ -1,74 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(style_exports, {
|
|
22
|
-
default: () => style_default,
|
|
23
|
-
genBoundaryStyle: () => genBoundaryStyle
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
24
5
|
});
|
|
25
|
-
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
const {
|
|
6
|
+
exports.genBoundaryStyle = exports.default = void 0;
|
|
7
|
+
var _genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
8
|
+
const genBoundaryStyle = token => {
|
|
9
|
+
const {
|
|
10
|
+
colorTextTertiary
|
|
11
|
+
} = token;
|
|
29
12
|
return {
|
|
30
13
|
[`.boundary-container`]: {
|
|
31
|
-
display:
|
|
32
|
-
alignItems:
|
|
33
|
-
justifyContent:
|
|
34
|
-
height:
|
|
35
|
-
|
|
36
|
-
display:
|
|
37
|
-
flexDirection:
|
|
38
|
-
alignItems:
|
|
39
|
-
justifyContent:
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
justifyContent: 'center',
|
|
17
|
+
height: '100%',
|
|
18
|
+
'.empty': {
|
|
19
|
+
display: 'flex',
|
|
20
|
+
flexDirection: 'column',
|
|
21
|
+
alignItems: 'center',
|
|
22
|
+
justifyContent: 'center',
|
|
40
23
|
paddingBottom: 60,
|
|
41
|
-
|
|
24
|
+
'> img': {
|
|
42
25
|
height: 102,
|
|
43
26
|
marginBottom: 24
|
|
44
27
|
},
|
|
45
|
-
|
|
28
|
+
'> h4': {
|
|
46
29
|
margin: 0,
|
|
47
30
|
fontSize: 18
|
|
48
31
|
},
|
|
49
|
-
|
|
32
|
+
'> span': {
|
|
50
33
|
marginTop: 8,
|
|
51
34
|
color: colorTextTertiary,
|
|
52
35
|
fontSize: 14,
|
|
53
|
-
textAlign:
|
|
36
|
+
textAlign: 'center'
|
|
54
37
|
},
|
|
55
|
-
|
|
38
|
+
'> button': {
|
|
56
39
|
marginTop: 24
|
|
57
40
|
}
|
|
58
41
|
}
|
|
59
42
|
},
|
|
60
43
|
[`.boundary-code`]: {
|
|
61
|
-
minHeight:
|
|
44
|
+
minHeight: 'calc(100vh - 120px)'
|
|
62
45
|
}
|
|
63
46
|
};
|
|
64
47
|
};
|
|
65
|
-
|
|
66
|
-
|
|
48
|
+
exports.genBoundaryStyle = genBoundaryStyle;
|
|
49
|
+
var _default = prefixCls => {
|
|
50
|
+
const useStyle = (0, _genComponentStyleHook.genComponentStyleHook)('Boundary', token => {
|
|
67
51
|
return [genBoundaryStyle(token)];
|
|
68
52
|
});
|
|
69
53
|
return useStyle(prefixCls);
|
|
70
54
|
};
|
|
71
|
-
|
|
72
|
-
0 && (module.exports = {
|
|
73
|
-
genBoundaryStyle
|
|
74
|
-
});
|
|
55
|
+
exports.default = _default;
|
package/lib/Boundary/utils.js
CHANGED
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
__export(utils_exports, {
|
|
22
|
-
getBrowserNameVersion: () => getBrowserNameVersion
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
23
5
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const ua = navigator.userAgent.toLowerCase();
|
|
6
|
+
exports.getBrowserNameVersion = void 0;
|
|
7
|
+
const getBrowserNameVersion = () => {
|
|
8
|
+
const ua = navigator.userAgent.toLowerCase(); //获取用户端信息
|
|
27
9
|
const info = {
|
|
28
10
|
IE: /msie/.test(ua) && !/opera/.test(ua),
|
|
29
11
|
//匹配IE浏览器
|
|
@@ -33,14 +15,10 @@ var getBrowserNameVersion = () => {
|
|
|
33
15
|
//匹配Safari浏览器
|
|
34
16
|
Chrome: /chrome/.test(ua),
|
|
35
17
|
//匹配Chrome浏览器
|
|
36
|
-
Firefox: /gecko/.test(ua) && !/webkit/.test(ua)
|
|
37
|
-
//匹配Firefox浏览器
|
|
18
|
+
Firefox: /gecko/.test(ua) && !/webkit/.test(ua) //匹配Firefox浏览器
|
|
38
19
|
};
|
|
39
|
-
return Object.keys(info).filter(
|
|
20
|
+
return Object.keys(info).filter(item => {
|
|
40
21
|
return info[item];
|
|
41
22
|
});
|
|
42
23
|
};
|
|
43
|
-
|
|
44
|
-
0 && (module.exports = {
|
|
45
|
-
getBrowserNameVersion
|
|
46
|
-
});
|
|
24
|
+
exports.getBrowserNameVersion = getBrowserNameVersion;
|