Skip to content

Commit

Permalink
Merge pull request #214 from hogpilot/ace-editor
Browse files Browse the repository at this point in the history
Improved JSON viewing/editing with Ace editor
  • Loading branch information
rwmajor2 authored Oct 24, 2017
2 parents c6b5c5f + 8e8c2b7 commit a5a4e10
Show file tree
Hide file tree
Showing 12 changed files with 144 additions and 108 deletions.
22 changes: 19 additions & 3 deletions src/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ body {
white-space: normal;
}

.list-group-item pre{
.list-group-item pre, .jsonEditor {
font-size: .8em;
}

Expand Down Expand Up @@ -96,8 +96,24 @@ body {

.edit-controls {
position: absolute;
top: 20px;
right: 25px;
top: -38px;
right: 3px;
}

.edit-controls button span {
pointer-events: none;
}

.jsonViewer.ace-tomorrow .ace_invisible.ace_invisible_space.ace_invalid {
background-color: rgba(0, 0, 0, 0);
color: #777;
outline: 1px #ccc solid;
}

.jsonViewer.ace-tomorrow-night .ace_invisible.ace_invisible_space.ace_invalid {
background-color: rgba(0, 0, 0, 0);
color: #999;
outline: 1px #555 solid;
}

.portal-signin {
Expand Down
3 changes: 1 addition & 2 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<link rel="stylesheet" href="js/lib/bootstrap/css/bootstrap-3.3.4.min.css"/>
<link rel="stylesheet" href="css/styles.css"/>
<link rel="stylesheet" href="js/lib/nprogress.css" />
<link rel="stylesheet" href="js/lib/tomorrow.min.css">
<link rel="stylesheet" href="css/font-awesome/css/font-awesome-4.2.0.min.css">
<link rel="shortcut icon" href="assets/images/favicon.ico">
</head>
Expand Down Expand Up @@ -463,12 +462,12 @@ <h3 id="deepCopyModalLabel">Copy information</h3>
{name: "bootstrap-shim", location: location.pathname.replace(/\/[^/]*$/, '') + "/js/lib", main: "bootstrap-shim"},
{name: "mustache", location: location.pathname.replace(/\/[^/]*$/, '') + "/js/lib", main: "mustache-0.7.2"},
{name: "nprogress", location: location.pathname.replace(/\/[^/]*$/, '') + "/js/lib", main: "nprogress-0.1.6"},
{name: "highlight", location: location.pathname.replace(/\/[^/]*$/, '') + "/js/lib", main: "highlight-8.3.min"},
{name: "clipboard", location: location.pathname.replace(/\/[^/]*$/, '') + "/js/lib", main: "clipboard-1.5.15.min"},
{name: "portal", location: location.pathname.replace(/\/[^/]*$/, '') + "/js/lib", main: "portal.min"}
],
};
</script>
<script src="js/lib/ace/ace.js"></script>
<script src="js/lib/arcgis/dojo/dojo.js"></script>
<script src="js/main.min.js"></script>

Expand Down
14 changes: 14 additions & 0 deletions src/js/lib/ace/ace.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/js/lib/ace/ext-searchbox.js

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

1 change: 1 addition & 0 deletions src/js/lib/ace/mode-json.js

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

Loading

0 comments on commit a5a4e10

Please sign in to comment.