@digi-frontend/dgate-api-documentation 2.0.1-test.6 → 2.0.1-test.8
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/index.cjs +45 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.js +45 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -791,20 +791,53 @@ var SidebarErrorBoundary = class extends react.default.Component {
|
|
|
791
791
|
}, 0);
|
|
792
792
|
}
|
|
793
793
|
render() {
|
|
794
|
-
if (this.state.hasError) return /* @__PURE__ */ (0, react_jsx_runtime.
|
|
794
|
+
if (this.state.hasError) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Sider, {
|
|
795
|
+
width: 280,
|
|
795
796
|
style: {
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
border: "1px solid red"
|
|
797
|
+
backgroundColor: "#f5f5f5",
|
|
798
|
+
border: "1px solid #d9d9d9"
|
|
799
799
|
},
|
|
800
|
-
children:
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
800
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
801
|
+
style: { padding: 16 },
|
|
802
|
+
children: [
|
|
803
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", {
|
|
804
|
+
style: {
|
|
805
|
+
color: "#ff4d4f",
|
|
806
|
+
margin: 0,
|
|
807
|
+
marginBottom: 8
|
|
808
|
+
},
|
|
809
|
+
children: "Sidebar Test Mode"
|
|
810
|
+
}),
|
|
811
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
812
|
+
style: {
|
|
813
|
+
margin: 0,
|
|
814
|
+
fontSize: "12px",
|
|
815
|
+
color: "#666"
|
|
816
|
+
},
|
|
817
|
+
children: "Original sidebar failed. This is a test element."
|
|
818
|
+
}),
|
|
819
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
820
|
+
style: {
|
|
821
|
+
marginTop: 8,
|
|
822
|
+
fontSize: "11px"
|
|
823
|
+
},
|
|
824
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", {
|
|
825
|
+
style: {
|
|
826
|
+
cursor: "pointer",
|
|
827
|
+
color: "#1890ff"
|
|
828
|
+
},
|
|
829
|
+
children: "Error Details"
|
|
830
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
831
|
+
style: {
|
|
832
|
+
marginTop: 4,
|
|
833
|
+
fontSize: "10px",
|
|
834
|
+
color: "#ff4d4f"
|
|
835
|
+
},
|
|
836
|
+
children: this.state.error?.message
|
|
837
|
+
})]
|
|
838
|
+
})
|
|
839
|
+
]
|
|
840
|
+
})
|
|
808
841
|
});
|
|
809
842
|
return this.props.children;
|
|
810
843
|
}
|