@cloud-app-dev/vidc 3.0.12 → 3.0.15
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/.eslintrc +3 -2
- package/.hintrc +9 -0
- package/.prettierrc +1 -1
- package/es/CheckGroupFixed/index.js +1 -1
- package/es/DomMove/demo.d.ts +1 -1
- package/es/DomMove/demo.js +1 -1
- package/es/DomMove/index.js +4 -3
- package/es/ErrorFallback/index.d.ts +9 -0
- package/es/ErrorFallback/index.js +36 -0
- package/es/ErrorFallback/inerface.d.ts +48 -0
- package/es/FullScreen/index.js +5 -5
- package/es/IconFont/index.d.ts +2 -2
- package/es/Input/index.js +4 -4
- package/es/List/VList/index.d.ts +1 -1
- package/es/LoaderScript/index.js +3 -3
- package/es/LoaderScript/utils.js +4 -2
- package/es/Map/BasicMap/index.js +3 -2
- package/es/Map/LevelCenter/DragMarker/index.js +2 -2
- package/es/Map/LoaderMap/index.js +3 -3
- package/es/Picture/component/DefaultRects/index.js +1 -1
- package/es/Picture/component/DrawRect/index.js +1 -1
- package/es/Picture/component/RectMenu/index.js +1 -1
- package/es/Picture/index.js +1 -2
- package/es/Player/api/index.d.ts +0 -1
- package/es/Player/api/index.js +0 -1
- package/es/Player/contraller_bar/right_bar.js +2 -3
- package/es/Player/frontend_player.js +3 -2
- package/es/Player/frontend_timeline.js +1 -1
- package/es/Player/iconfont.d.ts +4 -12
- package/es/Player/iconfont.js +7 -9
- package/es/Player/segment_player.js +1 -1
- package/es/Player/single_player.js +2 -2
- package/es/Player/style/iconfont.js +51 -0
- package/es/PlayerExt/index.css +1 -1
- package/es/ScreenPlayer/Live.d.ts +6 -1
- package/es/ScreenPlayer/Live.js +8 -6
- package/es/ScreenPlayer/LiveTools.d.ts +1 -1
- package/es/ScreenPlayer/LiveTools.js +15 -7
- package/es/ScreenPlayer/PlayerWithExt.js +31 -17
- package/es/ScreenPlayer/Record.js +6 -2
- package/es/ScreenPlayer/RecordTools.js +12 -4
- package/es/ScreenPlayer/TimeSlider.js +6 -2
- package/es/ScreenPlayer/demo.js +6 -12
- package/es/ScreenPlayer/index.css +1 -0
- package/es/ScreenPlayer/index.js +4 -3
- package/es/ScreenPlayer/useTimeSlider.js +51 -17
- package/es/Tree/index.js +24 -21
- package/es/index.d.ts +2 -2
- package/es/index.js +3 -3
- package/es/useFullscreen/demo.d.ts +2 -0
- package/es/useFullscreen/demo.js +51 -0
- package/es/useFullscreen/index.d.ts +12 -0
- package/es/useFullscreen/index.js +95 -0
- package/es/utils.js +1 -1
- package/package.json +4 -2
- package/test.html +16 -0
- package/test.js +93 -45
- package/es/ErrorBoundary/index.d.ts +0 -18
- package/es/ErrorBoundary/index.js +0 -79
- package/es/List/renderItem.d.ts +0 -20
- package/es/List/renderItem.js +0 -71
- package/es/Player/style/iconfont.css +0 -179
- package/es/Player/style/iconfont.ttf +0 -0
- package/es/Player/style/iconfont.woff +0 -0
- package/es/Player/style/iconfont.woff2 +0 -0
- package/es/withErrorBoundary/index.d.ts +0 -9
- package/es/withErrorBoundary/index.js +0 -45
package/test.js
CHANGED
|
@@ -1,48 +1,96 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
const igrone_tag = ['table', 'ul', 'ol', 'img'];
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param {string} html
|
|
6
|
+
* @returns {HTMLElement}
|
|
7
|
+
*/
|
|
8
|
+
function parseHtml(html) {
|
|
9
|
+
let htmlstr = '';
|
|
10
|
+
const doc = new DOMParser().parseFromString(html, 'text/html');
|
|
11
|
+
Array.from(doc.body.childNodes).forEach((item) => {
|
|
12
|
+
const tag = item.tagName ? item.tagName.toLowerCase() : '';
|
|
13
|
+
const html_str = getNodeHTML(item);
|
|
14
|
+
htmlstr += igrone_tag.includes(tag) ? html_str : `<p class="parse-html-p">${html_str}</p>`;
|
|
15
|
+
});
|
|
16
|
+
return htmlstr;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const filter_map = {
|
|
20
|
+
img: filterImgAttr,
|
|
21
|
+
table: filterTableAttr,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @param {HTMLElement} node HTML
|
|
27
|
+
* @returns {string}
|
|
28
|
+
*/
|
|
29
|
+
function getNodeHTML(node, html = '') {
|
|
30
|
+
if (node.nodeType === 3) {
|
|
31
|
+
html += node.textContent.replace(/\s/, '');
|
|
32
|
+
return html;
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
34
|
+
|
|
35
|
+
// 过滤其他
|
|
36
|
+
if (node.nodeType !== 1) {
|
|
37
|
+
return html;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const tag = node.tagName.toLowerCase();
|
|
41
|
+
|
|
42
|
+
switch (tag) {
|
|
43
|
+
case 'img':
|
|
44
|
+
case 'table':
|
|
45
|
+
filter_map[tag](node);
|
|
46
|
+
html += node.outerHTML;
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
const childNodes = node.childNodes;
|
|
50
|
+
if (childNodes.length > 0) {
|
|
51
|
+
Array.from(childNodes).forEach((item) => {
|
|
52
|
+
html += getNodeHTML(item); // 合并标签处理,并且递归处理子元素
|
|
53
|
+
});
|
|
54
|
+
} else {
|
|
55
|
+
html += node.innerText.replace(/\s/, '');
|
|
56
|
+
}
|
|
57
|
+
break;
|
|
45
58
|
}
|
|
46
|
-
return
|
|
59
|
+
return html;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @param {HTMLElement} node
|
|
65
|
+
*/
|
|
66
|
+
function filterImgAttr(node) {
|
|
67
|
+
node.removeAttribute('width');
|
|
68
|
+
node.removeAttribute('height');
|
|
69
|
+
|
|
70
|
+
// 非顶层的img定义成行内元素,顶层定义为块元素
|
|
71
|
+
if (node.parentNode !== document.body) {
|
|
72
|
+
node.setAttribute('width', 40);
|
|
73
|
+
node.setAttribute('class', 'parse-html-img-inline');
|
|
74
|
+
} else {
|
|
75
|
+
node.style.display = 'block';
|
|
76
|
+
node.setAttribute('class', 'parse-html-img-block');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @param {HTMLTableElement} node
|
|
83
|
+
*/
|
|
84
|
+
function filterTableAttr(node) {
|
|
85
|
+
// 表格自适应
|
|
86
|
+
node.setAttribute('width', '100%');
|
|
87
|
+
node.setAttribute('class', 'parse-html-table');
|
|
88
|
+
const tds = node.querySelectorAll('td');
|
|
89
|
+
Array.from(tds).forEach((item_td) => {
|
|
90
|
+
//td 自适应
|
|
91
|
+
item_td.removeAttribute('width');
|
|
92
|
+
|
|
93
|
+
//格式化td内容
|
|
94
|
+
item_td.innerHTML = parseHtml(item_td.innerHTML);
|
|
95
|
+
});
|
|
47
96
|
}
|
|
48
|
-
console.log(completionSegments(1660492800000, 1660579199000, data))
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { Component, ErrorInfo } from 'react';
|
|
2
|
-
export declare type IErrorBoundaryProps = {
|
|
3
|
-
fallback?: React.ReactNode;
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
};
|
|
6
|
-
declare type State = {
|
|
7
|
-
error: boolean;
|
|
8
|
-
};
|
|
9
|
-
declare class ErrorBoundary extends Component<IErrorBoundaryProps, State> {
|
|
10
|
-
state: State;
|
|
11
|
-
static defaultProps: {
|
|
12
|
-
fallback: () => JSX.Element;
|
|
13
|
-
};
|
|
14
|
-
static getDerivedStateFromError(error: Error): State;
|
|
15
|
-
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
16
|
-
render(): React.ReactNode;
|
|
17
|
-
}
|
|
18
|
-
export default ErrorBoundary;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
|
|
3
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
4
|
-
|
|
5
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
6
|
-
|
|
7
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
|
-
|
|
9
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
10
|
-
|
|
11
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12
|
-
|
|
13
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
14
|
-
|
|
15
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
16
|
-
|
|
17
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
18
|
-
|
|
19
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
20
|
-
|
|
21
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
22
|
-
|
|
23
|
-
import React, { Component } from 'react';
|
|
24
|
-
|
|
25
|
-
var ErrorBoundary = /*#__PURE__*/function (_Component) {
|
|
26
|
-
_inherits(ErrorBoundary, _Component);
|
|
27
|
-
|
|
28
|
-
var _super = _createSuper(ErrorBoundary);
|
|
29
|
-
|
|
30
|
-
function ErrorBoundary() {
|
|
31
|
-
var _this;
|
|
32
|
-
|
|
33
|
-
_classCallCheck(this, ErrorBoundary);
|
|
34
|
-
|
|
35
|
-
_this = _super.apply(this, arguments);
|
|
36
|
-
_this.state = {
|
|
37
|
-
error: false
|
|
38
|
-
};
|
|
39
|
-
return _this;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
_createClass(ErrorBoundary, [{
|
|
43
|
-
key: "componentDidCatch",
|
|
44
|
-
value: function componentDidCatch(error, info) {
|
|
45
|
-
console.error('ErrorBoundary:', error, info);
|
|
46
|
-
}
|
|
47
|
-
}, {
|
|
48
|
-
key: "render",
|
|
49
|
-
value: function render() {
|
|
50
|
-
var error = this.state.error;
|
|
51
|
-
var _this$props = this.props,
|
|
52
|
-
children = _this$props.children,
|
|
53
|
-
fallback = _this$props.fallback;
|
|
54
|
-
|
|
55
|
-
if (error) {
|
|
56
|
-
return fallback;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return children;
|
|
60
|
-
}
|
|
61
|
-
}], [{
|
|
62
|
-
key: "getDerivedStateFromError",
|
|
63
|
-
value: function getDerivedStateFromError(error) {
|
|
64
|
-
console.error(error);
|
|
65
|
-
return {
|
|
66
|
-
error: true
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}]);
|
|
70
|
-
|
|
71
|
-
return ErrorBoundary;
|
|
72
|
-
}(Component);
|
|
73
|
-
|
|
74
|
-
ErrorBoundary.defaultProps = {
|
|
75
|
-
fallback: function fallback() {
|
|
76
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
export default ErrorBoundary;
|
package/es/List/renderItem.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { CheckboxChangeEvent } from 'antd/lib/checkbox';
|
|
3
|
-
interface IRenderItempProps<T> {
|
|
4
|
-
item: T;
|
|
5
|
-
checkedKeys: any[];
|
|
6
|
-
activeKey: any;
|
|
7
|
-
style?: React.CSSProperties;
|
|
8
|
-
itemNameKey: string;
|
|
9
|
-
renderItemExt?: (item: T) => JSX.Element;
|
|
10
|
-
whatIcon?: (item: T) => JSX.Element;
|
|
11
|
-
itemKey?: string;
|
|
12
|
-
checkable?: boolean;
|
|
13
|
-
keywords?: string;
|
|
14
|
-
onChecked?: (e: CheckboxChangeEvent) => void;
|
|
15
|
-
onClickItem?: (item: T) => void;
|
|
16
|
-
onMouseOverItem?: (item: T) => void;
|
|
17
|
-
onMouseOutItem?: (item: T) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare function RenderItem({ item, checkedKeys, activeKey, style, itemNameKey, itemKey, checkable, keywords, ...props }: IRenderItempProps<any>): JSX.Element;
|
|
20
|
-
export {};
|
package/es/List/renderItem.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import "antd/lib/checkbox/style";
|
|
2
|
-
import _Checkbox from "antd/lib/checkbox";
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
|
-
import React, { useCallback, useMemo } from 'react';
|
|
5
|
-
import HightLevel from '../HightLevel';
|
|
6
|
-
export function RenderItem(_a) {
|
|
7
|
-
var item = _a.item,
|
|
8
|
-
checkedKeys = _a.checkedKeys,
|
|
9
|
-
activeKey = _a.activeKey,
|
|
10
|
-
style = _a.style,
|
|
11
|
-
itemNameKey = _a.itemNameKey,
|
|
12
|
-
itemKey = _a.itemKey,
|
|
13
|
-
checkable = _a.checkable,
|
|
14
|
-
keywords = _a.keywords,
|
|
15
|
-
props = __rest(_a, ["item", "checkedKeys", "activeKey", "style", "itemNameKey", "itemKey", "checkable", "keywords"]);
|
|
16
|
-
|
|
17
|
-
var renderItemExt = props.renderItemExt,
|
|
18
|
-
whatIcon = props.whatIcon,
|
|
19
|
-
onChecked = props.onChecked,
|
|
20
|
-
onClickItem = props.onClickItem,
|
|
21
|
-
onMouseOverItem = props.onMouseOverItem,
|
|
22
|
-
onMouseOutItem = props.onMouseOutItem;
|
|
23
|
-
var checked = checkedKeys ? checkedKeys.includes(item[itemKey]) : false;
|
|
24
|
-
var active = !activeKey ? false : Array.isArray(activeKey) ? activeKey.includes(item[itemKey]) : activeKey === item[itemKey];
|
|
25
|
-
var itemIcon = whatIcon ? whatIcon(item) : null;
|
|
26
|
-
var itemClick = useCallback(function (e) {
|
|
27
|
-
return e.stopPropagation();
|
|
28
|
-
}, []);
|
|
29
|
-
|
|
30
|
-
var _onMouseOver = useCallback(function (item) {
|
|
31
|
-
return onMouseOverItem && onMouseOverItem(item);
|
|
32
|
-
}, []);
|
|
33
|
-
|
|
34
|
-
var _onMouseOut = useCallback(function (item) {
|
|
35
|
-
return onMouseOutItem && onMouseOutItem(item);
|
|
36
|
-
}, []);
|
|
37
|
-
|
|
38
|
-
var _onClick = useCallback(function (item) {
|
|
39
|
-
return onClickItem && onClickItem(item);
|
|
40
|
-
}, []);
|
|
41
|
-
|
|
42
|
-
var className = useMemo(function () {
|
|
43
|
-
return "list-item ".concat(checkable ? 'has-check-box' : '', " ").concat(active ? 'list-item-active' : '');
|
|
44
|
-
}, [checkable, active]);
|
|
45
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
style: style,
|
|
47
|
-
className: className,
|
|
48
|
-
onClick: function onClick() {
|
|
49
|
-
return _onClick(item);
|
|
50
|
-
},
|
|
51
|
-
onMouseOver: function onMouseOver() {
|
|
52
|
-
return _onMouseOver(item);
|
|
53
|
-
},
|
|
54
|
-
onMouseOut: function onMouseOut() {
|
|
55
|
-
return _onMouseOut(item);
|
|
56
|
-
}
|
|
57
|
-
}, /*#__PURE__*/React.createElement("label", null, checkable && /*#__PURE__*/React.createElement(_Checkbox, {
|
|
58
|
-
value: item[itemKey],
|
|
59
|
-
disabled: item.disabled,
|
|
60
|
-
onClick: itemClick,
|
|
61
|
-
checked: checked,
|
|
62
|
-
onChange: onChecked
|
|
63
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
64
|
-
className: "item-info"
|
|
65
|
-
}, itemIcon, keywords ? /*#__PURE__*/React.createElement(HightLevel, {
|
|
66
|
-
name: item[itemNameKey],
|
|
67
|
-
keyword: keywords
|
|
68
|
-
}) : /*#__PURE__*/React.createElement("span", {
|
|
69
|
-
title: item[itemNameKey]
|
|
70
|
-
}, item[itemNameKey])), renderItemExt && renderItemExt(item)));
|
|
71
|
-
}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: "lm-player-iconfont"; /* Project id 1153292 */
|
|
3
|
-
src: url('iconfont.woff2?t=1661511384224') format('woff2'),
|
|
4
|
-
url('iconfont.woff?t=1661511384224') format('woff'),
|
|
5
|
-
url('iconfont.ttf?t=1661511384224') format('truetype');
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.lm-player-iconfont {
|
|
9
|
-
font-family: "lm-player-iconfont" !important;
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
font-style: normal;
|
|
12
|
-
-webkit-font-smoothing: antialiased;
|
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.lm-player-xiazai:before {
|
|
17
|
-
content: "\e6d0";
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.lm-player-bofang:before {
|
|
21
|
-
content: "\e6cf";
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.lm-player-tingzhi:before {
|
|
25
|
-
content: "\e6ce";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.lm-player-quanbuguanbi:before {
|
|
29
|
-
content: "\e6cc";
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.lm-player-huamianshiying:before {
|
|
33
|
-
content: "\e6cb";
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.lm-player-quanping:before {
|
|
37
|
-
content: "\e6c6";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.lm-player-a-guanbi_close-one11:before {
|
|
41
|
-
content: "\e623";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.lm-player-lunxunkaishi:before {
|
|
45
|
-
content: "\e6c3";
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.lm-player-fenping16:before {
|
|
49
|
-
content: "\e6c5";
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.lm-player-xiangji1fill:before {
|
|
53
|
-
content: "\e77e";
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.lm-player-M_Device_jiazaishibai:before {
|
|
57
|
-
content: "\e6de";
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.lm-player-M_Bar_CloudAuto:before {
|
|
61
|
-
content: "\e6c9";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.lm-player-S_Box_VideoCloud:before {
|
|
65
|
-
content: "\e6ca";
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.lm-player-S_Bar_LatLongYes:before {
|
|
69
|
-
content: "\e792";
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.lm-player-S_Device_kuaijin:before {
|
|
73
|
-
content: "\e6c7";
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.lm-player-S_Device_shezhi:before {
|
|
77
|
-
content: "\e6c8";
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.lm-player-S_View_Playerpley:before {
|
|
81
|
-
content: "\e827";
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.lm-player-S_View_RotateRight:before {
|
|
85
|
-
content: "\e828";
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.lm-player-S_View_ScreenSizeFull:before {
|
|
89
|
-
content: "\e82d";
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.lm-player-S_View_SoundMiddle:before {
|
|
93
|
-
content: "\e835";
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.lm-player-S_Edit_LoadDown:before {
|
|
97
|
-
content: "\e7b6";
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.lm-player-S_Edit_Reset:before {
|
|
101
|
-
content: "\e7c3";
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.lm-player-S_View_SearchBox:before {
|
|
105
|
-
content: "\e833";
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.lm-player-S_View_PlayerPlay1:before {
|
|
109
|
-
content: "\e6b7";
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.lm-player-YesorNo_No_Dark:before {
|
|
113
|
-
content: "\e6dd";
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.lm-player-Refresh_Main:before {
|
|
117
|
-
content: "\e687";
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.lm-player-SearchBox:before {
|
|
121
|
-
content: "\e706";
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.lm-player-ZoomIn_Main:before {
|
|
125
|
-
content: "\e663";
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.lm-player-ZoomDefault_Main:before {
|
|
129
|
-
content: "\e664";
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.lm-player-ZoomOut_Main:before {
|
|
133
|
-
content: "\e665";
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.lm-player-PrevFast:before {
|
|
137
|
-
content: "\e71f";
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.lm-player-NextFast_Light:before {
|
|
141
|
-
content: "\e720";
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.lm-player-volume-close:before {
|
|
145
|
-
content: "\e602";
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.lm-player-volume-normal-fuben:before {
|
|
149
|
-
content: "\e604";
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.lm-player-volume-max:before {
|
|
153
|
-
content: "\e605";
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.lm-player-ExitFull_Main:before {
|
|
157
|
-
content: "\e68e";
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.lm-player-Full_Main:before {
|
|
161
|
-
content: "\e690";
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
.lm-player-Loading:before {
|
|
165
|
-
content: "\e65d";
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.lm-player-Pause_Main:before {
|
|
169
|
-
content: "\e652";
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.lm-player-Play_Main:before {
|
|
173
|
-
content: "\e654";
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.lm-player-PlaySource:before {
|
|
177
|
-
content: "\e6cd";
|
|
178
|
-
}
|
|
179
|
-
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IErrorBoundaryProps } from '../ErrorBoundary';
|
|
3
|
-
/**
|
|
4
|
-
* HOC
|
|
5
|
-
* @param Component 业务组件
|
|
6
|
-
* @param errorBoundaryProps error boundary的props
|
|
7
|
-
*/
|
|
8
|
-
declare function withErrorBoundary<P>(Component: React.ComponentType<P>, errorBoundaryProps?: IErrorBoundaryProps): React.ComponentType<P>;
|
|
9
|
-
export default withErrorBoundary;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import "antd/lib/button/style";
|
|
2
|
-
import _Button from "antd/lib/button";
|
|
3
|
-
import "antd/lib/result/style";
|
|
4
|
-
import _Result from "antd/lib/result";
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import ErrorBoundary from '../ErrorBoundary';
|
|
7
|
-
|
|
8
|
-
var Fallback = function Fallback() {
|
|
9
|
-
return /*#__PURE__*/React.createElement(_Result, {
|
|
10
|
-
status: "warning",
|
|
11
|
-
title: "\u7EC4\u4EF6\u65E0\u6CD5\u6210\u529F\u6E32\u67D3\uFF0C\u8BF7\u5237\u65B0\u91CD\u8BD5",
|
|
12
|
-
style: {
|
|
13
|
-
width: '100%',
|
|
14
|
-
height: '100%'
|
|
15
|
-
},
|
|
16
|
-
extra: /*#__PURE__*/React.createElement(_Button, {
|
|
17
|
-
type: "primary",
|
|
18
|
-
key: "refresh",
|
|
19
|
-
onClick: function onClick() {
|
|
20
|
-
return window.location.reload();
|
|
21
|
-
}
|
|
22
|
-
}, "\u5237\u65B0\uFF0C\u91CD\u8BD5")
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* HOC
|
|
27
|
-
* @param Component 业务组件
|
|
28
|
-
* @param errorBoundaryProps error boundary的props
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
function withErrorBoundary(Component, errorBoundaryProps) {
|
|
33
|
-
var Wrapped = function Wrapped(props) {
|
|
34
|
-
return /*#__PURE__*/React.createElement(ErrorBoundary, Object.assign({
|
|
35
|
-
fallback: /*#__PURE__*/React.createElement(Fallback, null)
|
|
36
|
-
}, errorBoundaryProps), /*#__PURE__*/React.createElement(Component, Object.assign({}, props)));
|
|
37
|
-
}; // DevTools 显示的组件名
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
var name = Component.displayName || Component.name || 'Unknown';
|
|
41
|
-
Wrapped.displayName = "withErrorBoundary(".concat(name, ")");
|
|
42
|
-
return Wrapped;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export default withErrorBoundary;
|