@carbonorm/carbonreact 3.3.13 → 3.3.14
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.js
CHANGED
|
@@ -4,8 +4,8 @@ var react = require('react');
|
|
|
4
4
|
var carbonnode = require('@carbonorm/carbonnode');
|
|
5
5
|
var reactRouterDom = require('react-router-dom');
|
|
6
6
|
var reactToastify = require('react-toastify');
|
|
7
|
-
var OutsideClickHandler = require('react-outside-click-handler');
|
|
8
7
|
var classNames = require('classnames');
|
|
8
|
+
var OutsideClickHandler = require('react-outside-click-handler');
|
|
9
9
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
10
10
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
11
11
|
var Skeleton = require('react-loading-skeleton');
|
|
@@ -1396,16 +1396,7 @@ var BackendThrowable = () => {
|
|
|
1396
1396
|
const bootstrap = CarbonReact.instance;
|
|
1397
1397
|
const currentThrowable = bootstrap.state.backendThrowable[0];
|
|
1398
1398
|
console.log([bootstrap.state.backendThrowable, currentThrowable]);
|
|
1399
|
-
return
|
|
1400
|
-
const valueIsString = typeof currentThrowable[key] === 'string';
|
|
1401
|
-
const valueIsCode = 'THROWN NEAR' === key;
|
|
1402
|
-
return jsxRuntime_2("div", { children: [jsxRuntime_2("div", { className: styles.errorTextGeneral, children: [" > ", jsxRuntime_1("span", { className: styles.errorKeys, children: key }), ":", valueIsString
|
|
1403
|
-
? (valueIsCode ? jsxRuntime_1("div", { style: { backgroundColor: 'black', fontSize: 'xx-small' }, dangerouslySetInnerHTML: { __html: currentThrowable[key] } }) :
|
|
1404
|
-
jsxRuntime_2("i", { className: styles.errorValues, children: ["\"", currentThrowable[key], "\""] }))
|
|
1405
|
-
: ''] }), valueIsString
|
|
1406
|
-
? ''
|
|
1407
|
-
: jsxRuntime_1("pre", { className: styles.errorPre, children: JSON.stringify(currentThrowable[key], undefined, 4) })] }, index);
|
|
1408
|
-
}) }) })] });
|
|
1399
|
+
return jsxRuntime_1("div", { className: styles.maintenanceHero, children: jsxRuntime_1("h1", { className: styles.httpStatusCode, children: currentThrowable?.status || 500 }) });
|
|
1409
1400
|
};
|
|
1410
1401
|
|
|
1411
1402
|
const range = n => new Array(n).fill(0).map((_, idx) => idx);
|