diff --git a/guacamole/src/main/frontend/src/app/import/styles/help.css b/guacamole/src/main/frontend/src/app/import/styles/help.css new file mode 100644 index 000000000..e78acea4a --- /dev/null +++ b/guacamole/src/main/frontend/src/app/import/styles/help.css @@ -0,0 +1,60 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +.import.help { + + text-transform: none; + +} + +.import.help p { + + max-width: 70em; + +} + +.import.help h2 { + + padding-top: 0px; + padding-bottom: 0px; + +} + +.import.help p, .import.help pre { + + margin-left: 1em; + +} + +.import.help pre { + + background-color: rgba(0,0,0,0.15); + padding: 10px; + width: fit-content; + +} + +.import.help .footnotes { + + border-top: 1px solid gray; + padding-top: 1em; + width: fit-content; + margin-left: 1em; + +} \ No newline at end of file diff --git a/guacamole/src/main/frontend/src/app/import/templates/connectionImportFileHelp.html b/guacamole/src/main/frontend/src/app/import/templates/connectionImportFileHelp.html new file mode 100644 index 000000000..bd7f21845 --- /dev/null +++ b/guacamole/src/main/frontend/src/app/import/templates/connectionImportFileHelp.html @@ -0,0 +1,93 @@ +
{{'CONNECTION_IMPORT.HELP_FILE_TYPE_DESCRIPTION' | translate}}
+ +{{'CONNECTION_IMPORT.HELP_CSV_DESCRIPTION' | translate}}
+{{'CONNECTION_IMPORT.HELP_CSV_MORE_DETAILS' | translate}}
+name,protocol,hostname,group,users,groups,guacd-encryption (attribute) +conn1,vnc,conn1.web.com,ROOT,guac user 1;guac user 2,Connection 1 Users,none +conn2,rdp,conn2.web.com,ROOT/Parent Group,guac user 1,,ssl +conn3,ssh,conn3.web.com,ROOT/Parent Group/Child Group,guac user 2;guac user 3,, +conn4,kubernetes,,,,,+ +
{{'CONNECTION_IMPORT.HELP_JSON_DESCRIPTION' | translate}}
+{{'CONNECTION_IMPORT.HELP_JSON_MORE_DETAILS' | translate}}
+[
+ {
+ "name": "conn1",
+ "protocol": "vnc",
+ "parameters": { "hostname": "conn1.web.com" },
+ "parentIdentifier": "ROOT",
+ "users": [ "guac user 1", "guac user 2" ],
+ "groups": [ "Connection 1 Users" ],
+ "attributes": { "guacd-encryption": "none" }
+ },
+ {
+ "name": "conn2",
+ "protocol": "rdp",
+ "parameters": { "hostname": "conn2.web.com" },
+ "group": "ROOT/Parent Group",
+ "users": [ "guac user 1" ],
+ "attributes": { "guacd-encryption": "none" }
+ },
+ {
+ "name": "conn3",
+ "protocol": "ssh",
+ "parameters": { "hostname": "conn3.web.com" },
+ "group": "ROOT/Parent Group/Child Group",
+ "users": [ "guac user 2", "guac user 3" ],
+ },
+ {
+ "name": "conn4",
+ "protocol": "kubernetes",
+ }
+]
+
+ {{'CONNECTION_IMPORT.HELP_YAML_DESCRIPTION' | translate}}
+--- + - name: conn1 + protocol: vnc + parameters: + hostname: conn1.web.com + group: ROOT + users: + - guac user 1 + - guac user 2 + groups: + - AWS EC2 Administrators + attributes: + guacd-encryption: none + - name: conn2 + protocol: rdp + parameters: + hostname: conn2.web.com + group: ROOT/Parent Group + users: + - guac user 1 + attributes: + guacd-encryption: none + - name: conn3 + protocol: ssh + parameters: + hostname: conn3.web.com + group: ROOT/Parent Group/Child Group + users: + - guac user 2 + - guac user 3 + - name: conn4 + protocol: kubernetes+ +