@antv/dumi-theme-antv 0.8.0-beta.23 → 0.8.0-beta.25
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.
|
@@ -13,7 +13,7 @@ var GlobalLayout = function GlobalLayout() {
|
|
|
13
13
|
if (typeof window !== 'undefined') {
|
|
14
14
|
window.antd = antd;
|
|
15
15
|
}
|
|
16
|
-
console.log("%c @antv/dumi-theme-antv %c ".concat("0.8.0-beta.
|
|
16
|
+
console.log("%c @antv/dumi-theme-antv %c ".concat("0.8.0-beta.25", " %c"), 'background:#35495e; padding: 1px; border-radius: 3px 0 0 3px; color: #fff;', 'background:#41b883; padding: 1px; border-radius: 0 3px 3px 0; color: #fff;', 'background:transparent;');
|
|
17
17
|
}, []);
|
|
18
18
|
return outlet && /*#__PURE__*/React.createElement(QueryClientProvider, {
|
|
19
19
|
client: queryClient
|
|
@@ -93,7 +93,7 @@ export default function LiveExample(props) {
|
|
|
93
93
|
var executionId = "exec-".concat(Date.now(), "-").concat(Math.random().toString(36).substr(2, 9));
|
|
94
94
|
var script = document.createElement('script');
|
|
95
95
|
var modifiedCode = compiledCode.replace(/'container'|"container"/g, "'".concat(containerId, "'"));
|
|
96
|
-
script.textContent = "\n try {\n ".concat(modifiedCode, "\n const successElement = document.createElement('div');\n successElement.id = 'execution-success-").concat(executionId, "';\n successElement.style.display = 'none';\n document.body.appendChild(successElement);\n } catch (error) {\n console.error('\u811A\u672C\u6267\u884C\u65F6\u53D1\u751F\u9519\u8BEF:', error);\n const errorElement = document.createElement('div');\n errorElement.id = 'execution-error-").concat(executionId, "';\n errorElement.textContent = error.message;\n errorElement.style.display = 'none';\n document.body.appendChild(errorElement);\n\n if (!").concat(hasSuccessfulRender, ") {\n const errorContainer = document.getElementById('").concat(containerId, "');\n if (errorContainer) {\n errorContainer.innerHTML = '<div style=\"color: #fb1716; padding: 8px; border-left: 3px solid #ff0000; padding-left: 12px;\">Runtime Error: ' + error.message + '</div>';\n }\n }\n }\n ");
|
|
96
|
+
script.textContent = "\n // Can only have one anonymous define call per script file\n // \u548C monaco loader \u52A0\u8F7D\u51B2\u7A81\n var __runnerDefine = window['define'];\n window['define'] = null;\n try {\n ".concat(modifiedCode, "\n const successElement = document.createElement('div');\n successElement.id = 'execution-success-").concat(executionId, "';\n successElement.style.display = 'none';\n document.body.appendChild(successElement);\n } catch (error) {\n console.error('\u811A\u672C\u6267\u884C\u65F6\u53D1\u751F\u9519\u8BEF:', error);\n const errorElement = document.createElement('div');\n errorElement.id = 'execution-error-").concat(executionId, "';\n errorElement.textContent = error.message;\n errorElement.style.display = 'none';\n document.body.appendChild(errorElement);\n\n if (!").concat(hasSuccessfulRender, ") {\n const errorContainer = document.getElementById('").concat(containerId, "');\n if (errorContainer) {\n errorContainer.innerHTML = '<div style=\"color: #fb1716; padding: 8px; border-left: 3px solid #ff0000; padding-left: 12px;\">Runtime Error: ' + error.message + '</div>';\n }\n }\n } finally {\n window['define'] = __runnerDefine;\n }\n ");
|
|
97
97
|
document.head.appendChild(script);
|
|
98
98
|
|
|
99
99
|
// 检查执行结果并清理
|