|
@@ -10,6 +10,7 @@ import Icon from '../../../shared/components/icon'
|
|
|
function PreviewLogsPaneEntry({
|
|
function PreviewLogsPaneEntry({
|
|
|
headerTitle,
|
|
headerTitle,
|
|
|
rawContent,
|
|
rawContent,
|
|
|
|
|
+ logType,
|
|
|
formattedContent,
|
|
formattedContent,
|
|
|
extraInfoURL,
|
|
extraInfoURL,
|
|
|
level,
|
|
level,
|
|
@@ -34,6 +35,7 @@ function PreviewLogsPaneEntry({
|
|
|
level={level}
|
|
level={level}
|
|
|
sourceLocation={sourceLocation}
|
|
sourceLocation={sourceLocation}
|
|
|
headerTitle={headerTitle}
|
|
headerTitle={headerTitle}
|
|
|
|
|
+ logType={logType}
|
|
|
showSourceLocationLink={showSourceLocationLink}
|
|
showSourceLocationLink={showSourceLocationLink}
|
|
|
onSourceLocationClick={handleLogEntryLinkClick}
|
|
onSourceLocationClick={handleLogEntryLinkClick}
|
|
|
showCloseButton={showCloseButton}
|
|
showCloseButton={showCloseButton}
|
|
@@ -54,6 +56,7 @@ function PreviewLogEntryHeader({
|
|
|
sourceLocation,
|
|
sourceLocation,
|
|
|
level,
|
|
level,
|
|
|
headerTitle,
|
|
headerTitle,
|
|
|
|
|
+ logType,
|
|
|
showSourceLocationLink = true,
|
|
showSourceLocationLink = true,
|
|
|
showCloseButton = false,
|
|
showCloseButton = false,
|
|
|
onSourceLocationClick,
|
|
onSourceLocationClick,
|
|
@@ -130,9 +133,11 @@ function PreviewLogEntryHeader({
|
|
|
</Tooltip>
|
|
</Tooltip>
|
|
|
) : null
|
|
) : null
|
|
|
|
|
|
|
|
|
|
+ var headerTitleText = logType ? `${logType} ${headerTitle}` : headerTitle
|
|
|
|
|
+
|
|
|
return (
|
|
return (
|
|
|
<header className={logEntryHeaderClasses}>
|
|
<header className={logEntryHeaderClasses}>
|
|
|
- <h3 className="log-entry-header-title">{headerTitle}</h3>
|
|
|
|
|
|
|
+ <h3 className="log-entry-header-title">{headerTitleText}</h3>
|
|
|
{showLocationTooltip ? (
|
|
{showLocationTooltip ? (
|
|
|
<OverlayTrigger placement="left" overlay={locationTooltip}>
|
|
<OverlayTrigger placement="left" overlay={locationTooltip}>
|
|
|
{locationLink}
|
|
{locationLink}
|
|
@@ -230,6 +235,7 @@ PreviewLogEntryHeader.propTypes = {
|
|
|
}),
|
|
}),
|
|
|
level: PropTypes.string.isRequired,
|
|
level: PropTypes.string.isRequired,
|
|
|
headerTitle: PropTypes.string,
|
|
headerTitle: PropTypes.string,
|
|
|
|
|
+ logType: PropTypes.string,
|
|
|
showSourceLocationLink: PropTypes.bool,
|
|
showSourceLocationLink: PropTypes.bool,
|
|
|
showCloseButton: PropTypes.bool,
|
|
showCloseButton: PropTypes.bool,
|
|
|
onSourceLocationClick: PropTypes.func,
|
|
onSourceLocationClick: PropTypes.func,
|
|
@@ -246,6 +252,7 @@ PreviewLogsPaneEntry.propTypes = {
|
|
|
sourceLocation: PreviewLogEntryHeader.propTypes.sourceLocation,
|
|
sourceLocation: PreviewLogEntryHeader.propTypes.sourceLocation,
|
|
|
headerTitle: PropTypes.string,
|
|
headerTitle: PropTypes.string,
|
|
|
rawContent: PropTypes.string,
|
|
rawContent: PropTypes.string,
|
|
|
|
|
+ logType: PropTypes.string,
|
|
|
formattedContent: PropTypes.node,
|
|
formattedContent: PropTypes.node,
|
|
|
extraInfoURL: PropTypes.string,
|
|
extraInfoURL: PropTypes.string,
|
|
|
level: PropTypes.oneOf(['error', 'warning', 'typesetting', 'raw']).isRequired,
|
|
level: PropTypes.oneOf(['error', 'warning', 'typesetting', 'raw']).isRequired,
|