From a89101acaf7adb4ed2947e9aff00b474ef342825 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 20 Dec 2014 16:07:57 -0800 Subject: [PATCH] GUAC-810: Reorganize client view to support text input. Handle text input choice in menu. --- .../main/webapp/app/client/clientModule.js | 2 +- .../client/controllers/clientController.js | 5 +- .../main/webapp/app/client/styles/client.css | 30 +-- .../webapp/app/client/templates/client.html | 182 +++++++++--------- .../app/client/templates/clientError.html | 35 ---- 5 files changed, 117 insertions(+), 137 deletions(-) delete mode 100644 guacamole/src/main/webapp/app/client/templates/clientError.html diff --git a/guacamole/src/main/webapp/app/client/clientModule.js b/guacamole/src/main/webapp/app/client/clientModule.js index 944189dd4..38eee4bbb 100644 --- a/guacamole/src/main/webapp/app/client/clientModule.js +++ b/guacamole/src/main/webapp/app/client/clientModule.js @@ -23,4 +23,4 @@ /** * The module for code used to connect to a connection or balancing group. */ -angular.module('client', ['auth', 'history', 'osk', 'rest']); +angular.module('client', ['auth', 'history', 'osk', 'rest', 'textInput']); diff --git a/guacamole/src/main/webapp/app/client/controllers/clientController.js b/guacamole/src/main/webapp/app/client/controllers/clientController.js index ec2690ee6..e0efc341c 100644 --- a/guacamole/src/main/webapp/app/client/controllers/clientController.js +++ b/guacamole/src/main/webapp/app/client/controllers/clientController.js @@ -204,8 +204,9 @@ angular.module('home').controller('clientController', ['$scope', '$routeParams', // Show/hide UI elements depending on input method $scope.$watch('inputMethod', function setInputMethod(inputMethod) { - // Show on-screen keyboard only if selected - $scope.showOSK = (inputMethod === 'osk'); + // Show input methods only if selected + $scope.showOSK = (inputMethod === 'osk'); + $scope.showTextInput = (inputMethod === 'text'); }); diff --git a/guacamole/src/main/webapp/app/client/styles/client.css b/guacamole/src/main/webapp/app/client/styles/client.css index 615849ca3..6f20b41b4 100644 --- a/guacamole/src/main/webapp/app/client/styles/client.css +++ b/guacamole/src/main/webapp/app/client/styles/client.css @@ -27,18 +27,6 @@ body.client { overflow: hidden; } -/* Viewport Clone */ - -#viewportClone { - display: table; - height: 100%; - width: 100%; - position: fixed; - left: 0; - top: 0; - visibility: hidden; -} - #preload { visibility: hidden; position: absolute; @@ -48,3 +36,21 @@ body.client { height: 0; overflow: hidden; } + +.client-view { + display: table; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; +} + +.client-view .client-body { + display: table-row; +} + +.client-view .client-bottom { + display: table-row; + height: 0; +} diff --git a/guacamole/src/main/webapp/app/client/templates/client.html b/guacamole/src/main/webapp/app/client/templates/client.html index 460e71641..fd6fbc406 100644 --- a/guacamole/src/main/webapp/app/client/templates/client.html +++ b/guacamole/src/main/webapp/app/client/templates/client.html @@ -20,99 +20,107 @@ THE SOFTWARE. --> -
- - - + +
- -
+ +
- -
+ + - - - -
- + +
+ + +
+ +
+
- -
- - +
+ + +
+ +
+ + + \ No newline at end of file +
+ + +
+ + +
diff --git a/guacamole/src/main/webapp/app/client/templates/clientError.html b/guacamole/src/main/webapp/app/client/templates/clientError.html deleted file mode 100644 index 735d7ca0a..000000000 --- a/guacamole/src/main/webapp/app/client/templates/clientError.html +++ /dev/null @@ -1,35 +0,0 @@ - - -
-
-
-

{{'client.error.connectionErrorTitle' | translate}}

- -

{{errorStatus}}

- -
- -
-
-
-
\ No newline at end of file