Run js-beautify and fixjsstyle on code
Found this pointer on stackoverflow:
https://stackoverflow.com/a/31660434/5508494
End goal is to get the code formatted well enough that
clang format will run correctly against it.
Change-Id: I80053e78d253d8eee49233e42d55e5807ae8fdc8
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
diff --git a/app/server-control/controllers/remote-console-window-controller.js b/app/server-control/controllers/remote-console-window-controller.js
index d9a342f..685b45e 100644
--- a/app/server-control/controllers/remote-console-window-controller.js
+++ b/app/server-control/controllers/remote-console-window-controller.js
@@ -6,58 +6,57 @@
* @name remoteConsoleController
*/
-window.angular && (function (angular) {
- 'use strict';
+window.angular && (function(angular) {
+ 'use strict';
- angular
- .module('app.serverControl')
- .controller('remoteConsoleWindowController', [
- '$scope',
- '$window',
- 'APIUtils',
- 'dataService',
- function($scope, $window, APIUtils, dataService){
- $scope.dataService = dataService;
- dataService.showNavigation = false;
+ angular
+ .module('app.serverControl')
+ .controller('remoteConsoleWindowController', [
+ '$scope',
+ '$window',
+ 'APIUtils',
+ 'dataService',
+ function($scope, $window, APIUtils, dataService) {
+ $scope.dataService = dataService;
+ dataService.showNavigation = false;
- // See https://github.com/macton/hterm for available hterm options
+ // See https://github.com/macton/hterm for available hterm options
- //Storage
- hterm.defaultStorage = new lib.Storage.Local();
+ //Storage
+ hterm.defaultStorage = new lib.Storage.Local();
- var term = new hterm.Terminal("foo");
- term.onTerminalReady = function() {
- var io = term.io.push();
- io.onVTKeystroke = function(str) {
- console.log(str)
- term.io.print(str);
- };
- io.sendString = function(str) {
- console.log(str)
- };
- };
- term.decorate(document.querySelector('#terminal'));
+ var term = new hterm.Terminal('foo');
+ term.onTerminalReady = function() {
+ var io = term.io.push();
+ io.onVTKeystroke = function(str) {
+ console.log(str);
+ term.io.print(str);
+ };
+ io.sendString = function(str) {
+ console.log(str);
+ };
+ };
+ term.decorate(document.querySelector('#terminal'));
- //Set cursor color
- term.prefs_.set('cursor-color', 'rgba(83, 146, 255, .5)');
+ //Set cursor color
+ term.prefs_.set('cursor-color', 'rgba(83, 146, 255, .5)');
- //Set background color
- term.prefs_.set('background-color', '#19273c');
+ //Set background color
+ term.prefs_.set('background-color', '#19273c');
- //Print to console window
- term.io.println('OpenBMC ver.00');
- term.io.println('This is not an actual live connection.');
- term.io.print('root@IBM:');
+ //Print to console window
+ term.io.println('OpenBMC ver.00');
+ term.io.println('This is not an actual live connection.');
+ term.io.print('root@IBM:');
- //Allows keyboard input
- term.installKeyboard();
+ //Allows keyboard input
+ term.installKeyboard();
- $scope.close = function(){
- dataService.setRemoteWindowInactive();
- $window.close();
- }
- }
- ]
- );
+ $scope.close = function() {
+ dataService.setRemoteWindowInactive();
+ $window.close();
+ };
+ }
+ ]);
})(angular);