mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
Add ACE JSON worker
This commit is contained in:
parent
f31bf99a90
commit
6147eaa064
@ -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")
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
@ -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
|
||||
|
1
public/js/ace/worker-json.js
Normal file
1
public/js/ace/worker-json.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user