Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
L
luna
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
luna
Commits
cbc3393d
Unverified
Commit
cbc3393d
authored
Mar 07, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: windows focus
parent
28767ea6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
control.component.ts
src/app/ControlPage/control/control.component.ts
+1
-0
controlnav.component.ts
...pp/ControlPage/control/controlnav/controlnav.component.ts
+2
-1
guacamole.component.html
src/app/elements/guacamole/guacamole.component.html
+1
-1
guacamole.component.ts
src/app/elements/guacamole/guacamole.component.ts
+3
-1
No files found.
src/app/ControlPage/control/control.component.ts
View file @
cbc3393d
...
...
@@ -20,6 +20,7 @@ export class Rdp {
machine
:
string
;
token
:
string
;
client
:
any
;
iframe
:
any
;
}
export
class
View
{
...
...
src/app/ControlPage/control/controlnav/controlnav.component.ts
View file @
cbc3393d
...
...
@@ -7,7 +7,7 @@
* @author liuzheng <liuzheng712@gmail.com>
*/
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
ElementRef
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
ControlComponent
,
NavList
}
from
'../control.component'
;
import
*
as
jQuery
from
'jquery/dist/jquery.min.js'
;
...
...
@@ -44,6 +44,7 @@ export class ControlnavComponent implements OnInit {
if
(
NavList
.
List
[
index
].
type
===
'ssh'
)
{
NavList
.
List
[
index
].
Term
.
focus
();
}
else
if
(
NavList
.
List
[
index
].
type
===
'rdp'
)
{
NavList
.
List
[
index
].
Rdp
.
iframe
.
focus
();
}
}
else
{
...
...
src/app/elements/guacamole/guacamole.component.html
View file @
cbc3393d
<iframe
[
src
]="
trust
(
target
)"
></iframe>
<iframe
#
rdp
[
src
]="
trust
(
target
)"
></iframe>
src/app/elements/guacamole/guacamole.component.ts
View file @
cbc3393d
import
{
Component
,
Input
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
ElementRef
,
Input
,
OnInit
,
ViewChild
}
from
'@angular/core'
;
import
{
CookieService
}
from
'ngx-cookie-service'
;
import
{
HttpService
,
LogService
}
from
'../../app.service'
;
import
{
DataStore
,
User
}
from
'../../globals'
;
...
...
@@ -16,6 +16,7 @@ export class ElementGuacamoleComponent implements OnInit {
@
Input
()
userid
:
any
;
@
Input
()
index
:
number
;
target
:
string
;
@
ViewChild
(
'rdp'
)
el
:
ElementRef
;
constructor
(
private
sanitizer
:
DomSanitizer
,
private
_http
:
HttpService
,
...
...
@@ -45,6 +46,7 @@ export class ElementGuacamoleComponent implements OnInit {
}
else
{
this
.
target
=
this
.
_cookie
.
get
(
'guacamole'
);
}
NavList
.
List
[
this
.
index
].
Rdp
.
iframe
=
this
.
el
.
nativeElement
;
}
trust
(
url
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment