Skip to content

Commit

Permalink
Restore syntax highlighting for json documents
Browse files Browse the repository at this point in the history
  • Loading branch information
darsney authored Oct 18, 2022
1 parent 01c43a1 commit 0e736ef
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 25 deletions.
39 changes: 22 additions & 17 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,4 @@
"engines": {
"node": ">=10"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class GraphViewerRelationshipViewerComponent extends Component {
<h3>Incoming</h3>
<div className="relationships">
<pre>
<code className="language-json">
<code className="language-js">
{JSON.stringify(incomingRelationships, null, 1)}
</code>
</pre>
Expand All @@ -114,7 +114,7 @@ export class GraphViewerRelationshipViewerComponent extends Component {
<h3>Outgoing</h3>
<div className="relationships">
<pre>
<code className="language-json">
<code className="language-js">
{JSON.stringify(outgoingRelationships, null, 1)}
</code>
</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ModelGraphViewerModelDetailComponent extends React.Component {
<div className="detail-title">Model Detail</div>
{model && (
<pre tabIndex="0">
<code className="language-json">
<code className="language-js">
{JSON.stringify(model, null, 1)}
</code>
</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ModelUploadMessageBar = ({ modelUploadResults, onDismiss, t }) => {
{
lastUploadResults.current &&
<pre tabIndex="0" id="code-container">
<code className="language-json">
<code className="language-js">
{JSON.stringify(lastUploadResults.current, null, 2)}
</code>
</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class ModelViewerViewComponent extends Component {
<h2 className="heading-2" id="model-information-heading" tabIndex="0">{this.props.t("modelViewerViewComponent.heading")}</h2>
<div className="pre-wrapper modal-scroll">
{model && <pre tabIndex="0" id="code-container">
<code className="language-json">
<code className="language-js">
{JSON.stringify(model, null, 1)}
</code>
</pre>}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class PropertyInspectorPatchInformationComponent extends Component {
<h2 className="heading-2">Patch Information</h2>
<div className="patch-json-data">
<pre>
<code className="language-json">
<code className="language-js">
{JSON.stringify(patch, null, 2)}
</code>
</pre>
Expand Down
2 changes: 1 addition & 1 deletion client/src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ code[class*="language-"], pre[class*="language-"] {
z-index: 103;
}

.language-json {
.language-js {

*::selection {
background:rgba(255,255,255, 0.25) !important;
Expand Down

0 comments on commit 0e736ef

Please sign in to comment.