- Bringing back browser, navigation, input, dashboard and shell templates.

This commit is contained in:
Gunther Brunner
2014-03-27 21:30:27 +09:00
parent 840dc81f55
commit be6bdcd239
28 changed files with 236 additions and 22 deletions

View 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'))

View File

@@ -0,0 +1,3 @@
module.exports = function InputCtrl($scope) {
}

View 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);
}));
});

View File

@@ -0,0 +1,3 @@
.stf-input {
}

View 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