GUACAMOLE-1509: Add contextual CSS classes to containers/elements that are otherwise ambiguous.

This commit is contained in:
Michael Jumper
2022-01-21 08:38:50 -08:00
parent a7cf01064a
commit d1bbfd18ab
28 changed files with 89 additions and 67 deletions

View File

@@ -1,4 +1,4 @@
<div class="connection">
<div class="connection-select-menu-connection connection">
<input type="checkbox"
ng-model="context.attachedClients[item.getClientIdentifier()]"
ng-change="context.updateAttachedClients(item.getClientIdentifier())">

View File

@@ -1,4 +1,4 @@
<div class="connection-group">
<div class="connection-select-menu-connection-group connection-group">
<input type="checkbox"
ng-show="item.balancing"
ng-model="context.attachedClients[item.getClientIdentifier()]"

View File

@@ -1,4 +1,4 @@
<div class="list-item">
<div class="file-browser-file list-item">
<!-- Filename and icon -->
<div class="caption">

View File

@@ -1,4 +1,4 @@
<div class="main"
<div class="client-main main"
ng-class="{ 'drop-pending': dropPending }"
guac-resize="mainElementResized"
guac-touch-drag="clientDrag"

View File

@@ -91,7 +91,7 @@ angular.module('form').provider('formService', function formServiceProvider() {
* @type FieldType
*/
'USERNAME' : {
templateUrl : 'app/form/templates/textField.html'
templateUrl : 'app/form/templates/usernameField.html'
},
/**

View File

@@ -1,8 +1,10 @@
<input type="checkbox"
ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-disabled="disabled"
ng-model="typedValue"
guac-focus="focused"
autocorrect="off"
autocapitalize="off">
<div class="checkbox-field">
<input type="checkbox"
ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-disabled="disabled"
ng-model="typedValue"
guac-focus="focused"
autocorrect="off"
autocapitalize="off">
</div>

View File

@@ -1,5 +1,7 @@
<select guac-focus="focused"
ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model"
ng-options="language.key as language.value for language in languages | toArray | orderBy: key"></select>
<div class="language-field">
<select guac-focus="focused"
ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model"
ng-options="language.key as language.value for language in languages | toArray | orderBy: key"></select>
</div>

View File

@@ -1,8 +1,10 @@
<input type="number"
ng-disabled="disabled"
ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="typedValue"
guac-focus="focused"
autocorrect="off"
autocapitalize="off">
<div class="number-field">
<input type="number"
ng-disabled="disabled"
ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="typedValue"
guac-focus="focused"
autocorrect="off"
autocapitalize="off">
</div>

View File

@@ -1,6 +1,8 @@
<select ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-disabled="disabled"
guac-focus="focused"
ng-model="model"
ng-options="option as getFieldOption(option) | translate for option in field.options | orderBy: value"></select>
<div class="select-field">
<select ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-disabled="disabled"
guac-focus="focused"
ng-model="model"
ng-options="option as getFieldOption(option) | translate for option in field.options | orderBy: value"></select>
</div>

View File

@@ -1,7 +1,9 @@
<textarea ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model"
ng-disabled="disabled"
guac-focus="focused"
autocorrect="off"
autocapitalize="off"></textarea>
<div class="text-area-field">
<textarea ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model"
ng-disabled="disabled"
guac-focus="focused"
autocorrect="off"
autocapitalize="off"></textarea>
</div>

View File

@@ -0,0 +1,10 @@
<div class="username-field">
<input type="text"
ng-attr-id="{{ fieldId }}"
ng-attr-name="{{ field.name }}"
ng-model="model"
ng-disabled="disabled"
guac-focus="focused"
autocorrect="off"
autocapitalize="off">
</div>

View File

@@ -1,4 +1,4 @@
<div>
<div class="recent-connections">
<!-- Text displayed if no recent connections exist -->
<p class="placeholder" ng-hide="hasRecentConnections()">{{'HOME.INFO_NO_RECENT_CONNECTIONS' | translate}}</p>

View File

@@ -1,5 +1,4 @@
<div class="view" ng-class="{loading: !isLoaded()}">
<div class="home-view view" ng-class="{loading: !isLoaded()}">
<div class="connection-list-ui">
@@ -8,9 +7,7 @@
<h2>{{'HOME.SECTION_HEADER_RECENT_CONNECTIONS' | translate}}</h2>
<guac-user-menu></guac-user-menu>
</div>
<div class="recent-connections">
<guac-recent-connections root-groups="rootConnectionGroups"></guac-recent-connections>
</div>
<guac-recent-connections root-groups="rootConnectionGroups"></guac-recent-connections>
<!-- All connections for this user -->
<div class="header">

View File

@@ -1,4 +1,4 @@
<div class="choice">
<div class="connection-group-permission choice">
<!-- Connection group icon -->
<div class="icon type"></div>

View File

@@ -1,4 +1,4 @@
<div class="choice">
<div class="connection-permission choice">
<!-- Connection icon -->
<div class="icon type" ng-class="item.protocol"></div>

View File

@@ -1,4 +1,4 @@
<span class="name" ng-click="context.chooseGroup(item.wrappedItem)">
<span class="location-chooser-connection-group name"
ng-click="context.chooseGroup(item.wrappedItem)">
{{item.name}}
</span>

View File

@@ -1,5 +1,5 @@
<div class="view" ng-class="{loading: !isLoaded()}">
<div class="manage-connection view" ng-class="{loading: !isLoaded()}">
<!-- Main property editor -->
<div class="header">

View File

@@ -1,5 +1,5 @@
<div class="view" ng-class="{loading: !isLoaded()}">
<div class="manage-connection-group view" ng-class="{loading: !isLoaded()}">
<!-- Main property editor -->
<div class="header">

View File

@@ -1,4 +1,4 @@
<div class="view" ng-class="{loading: !isLoaded()}">
<div class="manage-sharing-profile view" ng-class="{loading: !isLoaded()}">
<!-- Main property editor -->
<div class="header">

View File

@@ -1,6 +1,6 @@
<div class="action-buttons">
<button ng-show="permissions.canSaveObject" ng-click="saveObject()">{{namespace + '.ACTION_SAVE' | translate}}</button>
<button ng-show="permissions.canCloneObject" ng-click="cloneObject()">{{namespace + '.ACTION_CLONE' | translate}}</button>
<button ng-click="cancel()">{{namespace + '.ACTION_CANCEL' | translate}}</button>
<button ng-show="permissions.canDeleteObject" ng-click="deleteObject()" class="danger">{{namespace + '.ACTION_DELETE' | translate}}</button>
<button ng-show="permissions.canSaveObject" ng-click="saveObject()" class="save">{{namespace + '.ACTION_SAVE' | translate}}</button>
<button ng-show="permissions.canCloneObject" ng-click="cloneObject()" class="clone">{{namespace + '.ACTION_CLONE' | translate}}</button>
<button ng-click="cancel()" class="cancel">{{namespace + '.ACTION_CANCEL' | translate}}</button>
<button ng-show="permissions.canDeleteObject" ng-click="deleteObject()" class="danger delete">{{namespace + '.ACTION_DELETE' | translate}}</button>
</div>

View File

@@ -1,4 +1,4 @@
<div class="choice">
<div class="sharing-profile-permission choice">
<!-- Sharing profile icon -->
<div class="icon type"></div>

View File

@@ -1,5 +1,6 @@
<a ng-href="#/manage/{{item.dataSource}}/connections/{{item.identifier}}"
ng-class="{active: item.getActiveConnections()}">
ng-class="{active: item.getActiveConnections()}"
class="settings-connection">
<!-- Connection icon -->
<div class="icon type" ng-class="item.protocol"></div>

View File

@@ -1,4 +1,5 @@
<a ng-href="#/manage/{{item.dataSource}}/connectionGroups/{{item.identifier}}">
<a ng-href="#/manage/{{item.dataSource}}/connectionGroups/{{item.identifier}}"
class="settings-connection-group">
<!-- Connection group icon -->
<div class="icon type"></div>

View File

@@ -1,3 +1,4 @@
<a ng-href="#/manage/{{item.dataSource}}/connections/?parent={{item.wrappedItem.identifier}}">
<a ng-href="#/manage/{{item.dataSource}}/connections/?parent={{item.wrappedItem.identifier}}"
class="new-connection">
<span class="name">{{'SETTINGS_CONNECTIONS.ACTION_NEW_CONNECTION' | translate}}</span>
</a>

View File

@@ -1,3 +1,4 @@
<a ng-href="#/manage/{{item.dataSource}}/connectionGroups/?parent={{item.wrappedItem.identifier}}">
<a ng-href="#/manage/{{item.dataSource}}/connectionGroups/?parent={{item.wrappedItem.identifier}}"
class="new-connection-group">
<span class="name">{{'SETTINGS_CONNECTIONS.ACTION_NEW_CONNECTION_GROUP' | translate}}</span>
</a>

View File

@@ -1,3 +1,4 @@
<a ng-href="#/manage/{{item.dataSource}}/sharingProfiles/?parent={{item.wrappedItem.identifier}}">
<a ng-href="#/manage/{{item.dataSource}}/sharingProfiles/?parent={{item.wrappedItem.identifier}}"
class="new-sharing-profile">
<span class="name">{{'SETTINGS_CONNECTIONS.ACTION_NEW_SHARING_PROFILE' | translate}}</span>
</a>

View File

@@ -1,5 +1,4 @@
<div class="view">
<div class="settings-view view">
<div class="header tabbed">
<h2>{{'SETTINGS.SECTION_HEADER_SETTINGS' | translate}}</h2>

View File

@@ -1,4 +1,5 @@
<a ng-href="#/manage/{{item.dataSource}}/sharingProfiles/{{item.identifier}}">
<a ng-href="#/manage/{{item.dataSource}}/sharingProfiles/{{item.identifier}}"
class="settings-sharing-profile">
<!-- Sharing profile icon -->
<div class="icon type"></div>