mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-20 01:53:35 +02:00
Added dummy API endpoint for autofill POST requests. Autofill also reads the CSRF token from cookies and doesn't require an 'about:blank' anymore on the forms.
30 lines
1.2 KiB
Plaintext
30 lines
1.2 KiB
Plaintext
.widget-container.fluid-height.stf-shell(ng-controller='ShellCtrl')
|
|
.heading
|
|
i.fa.fa-terminal
|
|
span(translate) Shell
|
|
clear-button(ng-click='clear()', ng-disabled='!command && !data').btn-xs
|
|
|
|
a(ng-href='/#!/docs/remote-shell').btn.btn-xs.btn-primary-outline.pull-right.transparent-border
|
|
i.fa.fa-book
|
|
.widget-content.padded
|
|
|
|
// TODO: find why autofill doesn't work here
|
|
form(method='post', enable-autofill, ng-submit='run(command)')
|
|
.input-group.form-inline
|
|
input(type=text, ng-model='command', Xtext-focus-select,
|
|
autocapitalize='off', spellcheck='false',
|
|
tabindex='30', accesskey='S', autocomplete='on').form-control.shell-input
|
|
span.input-group-btn
|
|
// , tooltip='{{"Run Command"|translate}}'
|
|
button.btn.btn-primary-outline(ng-click='run(command)', ng-disabled='!command')
|
|
//, tooltip='{{ "Run command" | translate }}')
|
|
i.fa.fa-play
|
|
pre.shell-results.selectable(ng-show='data') {{data}}
|
|
pre.shell-results.selectable.shell-results-empty(ng-show='result.settled && !data') No output
|
|
|
|
|
|
// table
|
|
tr(ng-repeat='result in results track by result.device.serial')
|
|
td {{ result.device.serial }}
|
|
td {{ result.data }}
|