mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 00:05:15 +02:00
- Bringing back browser, navigation, input, dashboard and shell templates.
This commit is contained in:
11
res/app/control-panes/dashboard/input/index.js
Normal file
11
res/app/control-panes/dashboard/input/index.js
Normal file
@@ -0,0 +1,11 @@
|
||||
require('./input.css')
|
||||
|
||||
module.exports = angular.module('stf.input', [
|
||||
|
||||
])
|
||||
.run(["$templateCache", function ($templateCache) {
|
||||
$templateCache.put('control-panes/dashboard/input/input.jade',
|
||||
require('./input.jade')
|
||||
)
|
||||
}])
|
||||
.controller('InputCtrl', require('./input-controller'))
|
||||
@@ -0,0 +1,3 @@
|
||||
module.exports = function InputCtrl($scope) {
|
||||
|
||||
}
|
||||
17
res/app/control-panes/dashboard/input/input-spec.js
Normal file
17
res/app/control-panes/dashboard/input/input-spec.js
Normal file
@@ -0,0 +1,17 @@
|
||||
describe('InputCtrl', function () {
|
||||
|
||||
beforeEach(module('stf.input'));
|
||||
|
||||
var scope, ctrl;
|
||||
|
||||
beforeEach(inject(function ($rootScope, $controller) {
|
||||
scope = $rootScope.$new();
|
||||
ctrl = $controller('InputCtrl', {$scope: scope});
|
||||
}));
|
||||
|
||||
it('should ...', inject(function () {
|
||||
expect(1).toEqual(1);
|
||||
|
||||
}));
|
||||
|
||||
});
|
||||
3
res/app/control-panes/dashboard/input/input.css
Normal file
3
res/app/control-panes/dashboard/input/input.css
Normal file
@@ -0,0 +1,3 @@
|
||||
.stf-input {
|
||||
|
||||
}
|
||||
17
res/app/control-panes/dashboard/input/input.jade
Normal file
17
res/app/control-panes/dashboard/input/input.jade
Normal file
@@ -0,0 +1,17 @@
|
||||
.widget-container.fluid-height
|
||||
.heading
|
||||
i.fa.fa-gear
|
||||
span(translate) Keyboard Input
|
||||
button(title='{{"Switch Charset"|translate}}', ng-click='press("KEYCODE_SWITCH_CHARSET")').btn.btn-sm.btn-primary-outline.pull-right
|
||||
span(translate) Aa
|
||||
button(tooltip='{{"Power Button"|translate}}', ng-click='press("KEYCODE_POWER")').btn.btn-sm.btn-danger-outline.pull-right
|
||||
i.fa.fa-power-off
|
||||
|
||||
.widget-content.padded
|
||||
.input-group.form-inline
|
||||
textarea.form-control(rows='1', ng-model='textType', ng-keydown='textTypeKeydown($event)'
|
||||
ng-focus='$parent.textTypeIsFocused = true', ng-blur='$parent.textTypeIsFocused = false',
|
||||
title='{{"Types text. Only ASCII characters are supported."|translate}}')
|
||||
span.input-group-btn
|
||||
button(title='{{"Type text"|translate', type='button', ng-click='type(textType)', ng-disabled='!textType').btn.btn-primary-outline
|
||||
i.fa.fa-keyboard-o
|
||||
Reference in New Issue
Block a user