react-terminal-viewer-cicd 3.0.0-beta.28 → 3.0.0-beta.29
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function LogWorker() {
|
|
2
2
|
var workerPath = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '/worker';
|
|
3
3
|
var worker = null;
|
|
4
|
-
var version = "3.0.0-beta.
|
|
4
|
+
var version = "3.0.0-beta.29" || '0.0.0';
|
|
5
5
|
var path = workerPath.includes('http') ? "".concat(workerPath, "/log.worker.js") : "".concat(window.location.origin).concat(workerPath, "/log.worker.js");
|
|
6
6
|
var blob = new Blob(["importScripts(\"".concat(path, "?v=").concat(version, "\")")], {
|
|
7
7
|
type: 'application/javascript'
|
|
@@ -42,7 +42,6 @@ var LoadingDots = function LoadingDots() {
|
|
|
42
42
|
};
|
|
43
43
|
// 在组件中添加自定义的 Footer 组件
|
|
44
44
|
var VirtuosoComponents = {
|
|
45
|
-
LoadingDots: LoadingDots,
|
|
46
45
|
Footer: function Footer() {
|
|
47
46
|
return /*#__PURE__*/React.createElement("div", {
|
|
48
47
|
style: {
|
|
@@ -56,12 +55,7 @@ var VirtuosoComponents = {
|
|
|
56
55
|
className: "terminal-viewer-virtuoso-list-footer"
|
|
57
56
|
}, /*#__PURE__*/React.createElement("div", {
|
|
58
57
|
className: "terminal-viewer-virtuoso-list-footer-loading"
|
|
59
|
-
}, /*#__PURE__*/React.createElement(LoadingDots, null))
|
|
60
|
-
style: {
|
|
61
|
-
height: '25vh',
|
|
62
|
-
minHeight: '300px'
|
|
63
|
-
}
|
|
64
|
-
}));
|
|
58
|
+
}, /*#__PURE__*/React.createElement(LoadingDots, null)));
|
|
65
59
|
},
|
|
66
60
|
EmptyFooter: function EmptyFooter() {
|
|
67
61
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -446,13 +440,16 @@ var ReactVirtuoso = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
446
440
|
}
|
|
447
441
|
}, [searcherRef, onAddonReady]);
|
|
448
442
|
var footerComponent = VirtuosoComponents.EmptyFooter;
|
|
449
|
-
if (isAllCollapsed) {
|
|
450
|
-
|
|
451
|
-
}
|
|
452
|
-
if (!isAllCollapsed && lastCollapseRef.current) {
|
|
453
|
-
|
|
454
|
-
}
|
|
455
|
-
if (!isAllCollapsed && !lastCollapseRef.current && isLastStageRunningRef.current) {
|
|
443
|
+
// if (isAllCollapsed) {
|
|
444
|
+
// footerComponent = VirtuosoComponents.EmptyFooter;
|
|
445
|
+
// }
|
|
446
|
+
// if (!isAllCollapsed && lastCollapseRef.current) {
|
|
447
|
+
// footerComponent = VirtuosoComponents.Footer;
|
|
448
|
+
// }
|
|
449
|
+
// if (!isAllCollapsed && !lastCollapseRef.current && isLastStageRunningRef.current) {
|
|
450
|
+
// footerComponent = VirtuosoComponents.FooterWithLoading;
|
|
451
|
+
// }
|
|
452
|
+
if (isLastStageRunningRef.current) {
|
|
456
453
|
footerComponent = VirtuosoComponents.FooterWithLoading;
|
|
457
454
|
}
|
|
458
455
|
return /*#__PURE__*/React.createElement("div", {
|