Skip to content

Commit

Permalink
Add ACE JSON worker
Browse files Browse the repository at this point in the history
  • Loading branch information
fiftin committed Feb 28, 2018
1 parent f31bf99 commit 6147eaa
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion public/html/projects/createTaskModal.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.form-group
label.control-label.col-sm-4 Environment Override (*MUST* be valid JSON)
.col-sm-6
div(ui-ace="{mode: 'json', showGutter: false}" class="form-control" style="height: 100px" ng-model="task.environment")
div(ui-ace="{mode: 'json', showGutter: false, workerPath: '/public/js/ace/'}" class="form-control" style="height: 100px" ng-model="task.environment")
.form-group
.col-sm-6.col-sm-offset-4: .checkbox: label
input(type="checkbox" ng-model="task.debug")
Expand Down
2 changes: 1 addition & 1 deletion public/html/projects/environment/add.pug
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
input.form-control(type="text" ng-model="env.name" placeholder="Friendly name to identify your environment")

label.control-label Environment
div(ui-ace=true class="form-control" style="height: 200px" ng-model="env.json")
div(ui-ace="{workerPath: '/public/js/ace/'}" class="form-control" style="height: 200px" ng-model="env.json")
//textarea.form-control(ng-model="env.json" rows="20" placeholder="This has to be a JSON object")
p.help-block Must be valid JSON

Expand Down
2 changes: 1 addition & 1 deletion public/html/projects/inventory/edit.pug
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
h3.modal-title Edit Inventory

.modal-body(style="padding: 0")
div(ui-ace="{mode: 'json'}" style="height: 200px" ng-model="inventory")
div(ui-ace="{mode: 'json', workerPath: '/public/js/ace/'}" style="height: 200px" ng-model="inventory")
.modal-footer
button.btn.btn-default.pull-left(ng-click="$dismiss()") Cancel
button.btn.btn-success(ng-click="$close(inventory)") Save Changes
2 changes: 1 addition & 1 deletion public/html/projects/templates/add.pug
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
.form-group
label.control-label.col-sm-4 Extra CLI Arguments (*MUST* be a JSON array!)
.col-sm-6
div(ui-ace="{mode: 'json', showGutter: false}" style="height: 100px" class="form-control" ng-model="task.environment")
div(ui-ace="{mode: 'json', showGutter: false, workerPath: '/public/js/ace/'}" style="height: 100px" class="form-control" ng-model="task.environment")
//textarea.form-control(placeholder='*MUST* be a JSON array! Each argument must be an element of the array, for example: ["-i", "@myinventory.sh", "--private-key=/there/id_rsa", "-vvvv"]' ng-model="tpl.arguments" rows="5")
.form-group
Expand Down
1 change: 1 addition & 0 deletions public/js/ace/worker-json.js

Large diffs are not rendered by default.

0 comments on commit 6147eaa

Please sign in to comment.