@basic-genomics/hivtrace-viz 1.1.2 → 1.1.4
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/embed/hivtrace.js +1 -1
- package/dist/embed/hivtrace.js.LICENSE.txt +28 -0
- package/dist/embed/hivtrace.js.map +1 -1
- package/dist/embed/index.html +7 -1
- package/dist/hivtrace.js +1 -1
- package/dist/hivtrace.js.LICENSE.txt +28 -0
- package/dist/hivtrace.js.map +1 -1
- package/dist/react/HivtraceViz.d.ts +1 -1
- package/dist/react/HivtraceViz.d.ts.map +1 -1
- package/dist/react/HivtraceViz.js +5 -2
- package/dist/react/types.d.ts +2 -0
- package/dist/react/types.d.ts.map +1 -1
- package/package.json +3 -4
- /package/dist/vite-plugin/{index.js → index.mjs} +0 -0
package/dist/embed/index.html
CHANGED
|
@@ -1303,11 +1303,17 @@
|
|
|
1303
1303
|
overlay.innerHTML = `
|
|
1304
1304
|
<i class="fa fa-exclamation-triangle hivtrace-error-icon"></i>
|
|
1305
1305
|
<div class="hivtrace-error-message">${message}</div>
|
|
1306
|
-
<button class="hivtrace-retry-btn" onclick="
|
|
1306
|
+
<button class="hivtrace-retry-btn" onclick="requestRetry()">重试</button>
|
|
1307
1307
|
`;
|
|
1308
1308
|
window.parent.postMessage({ type: 'ERROR', message: message }, '*');
|
|
1309
1309
|
}
|
|
1310
1310
|
|
|
1311
|
+
// 请求宿主应用重试
|
|
1312
|
+
function requestRetry() {
|
|
1313
|
+
window.parent.postMessage({ type: 'HIVTRACE_RETRY' }, '*');
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
|
|
1311
1317
|
|
|
1312
1318
|
function in_progress() {
|
|
1313
1319
|
return $(".progress").length > 0;
|