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
584c1787
Unverified
Commit
584c1787
authored
Apr 26, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix the windows sharding bug
parent
98030def
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
12 deletions
+15
-12
guacamole.component.html
src/app/elements/guacamole/guacamole.component.html
+1
-1
guacamole.component.ts
src/app/elements/guacamole/guacamole.component.ts
+0
-1
term.component.html
src/app/elements/term/term.component.html
+1
-1
term.component.ts
src/app/elements/term/term.component.ts
+4
-0
nav.component.ts
src/app/pages/control/control/controlnav/nav.component.ts
+9
-9
No files found.
src/app/elements/guacamole/guacamole.component.html
View file @
584c1787
<iframe
#
rdp
[
src
]="
trust
(
target
)"
(
mouse
ent
er
)="
active
()"
></iframe>
<iframe
#
rdp
[
src
]="
trust
(
target
)"
(
mouse
ov
er
)="
active
()"
></iframe>
src/app/elements/guacamole/guacamole.component.ts
View file @
584c1787
...
...
@@ -76,7 +76,6 @@ export class ElementGuacamoleComponent implements OnInit {
}
active
()
{
this
.
_logger
.
debug
(
'focus'
);
this
.
el
.
nativeElement
.
focus
();
}
...
...
src/app/elements/term/term.component.html
View file @
584c1787
<div
#
term
></div>
<div
#
term
(
mouseover
)="
active
()"
></div>
src/app/elements/term/term.component.ts
View file @
584c1787
...
...
@@ -113,4 +113,8 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
// this.term.write('\r\n\x1b[31mBye Bye!\x1b[m\r\n');
TermWS
.
emit
(
'logout'
,
NavList
.
List
[
this
.
index
].
room
);
}
active
()
{
this
.
term
.
focus
();
}
}
src/app/pages/control/control/controlnav/nav.component.ts
View file @
584c1787
...
...
@@ -40,15 +40,15 @@ export class PagesControlNavComponent implements OnInit {
});
NavList
.
List
[
index
].
hide
=
false
;
NavList
.
Active
=
index
;
if
(
!
NavList
.
List
[
index
].
edit
)
{
if
(
NavList
.
List
[
index
].
type
===
'ssh'
)
{
NavList
.
List
[
index
].
Term
.
focus
();
}
else
if
(
NavList
.
List
[
index
].
type
===
'rdp'
)
{
NavList
.
List
[
index
].
Rdp
.
focus
();
}
}
else
{
}
//
if (!NavList.List[index].edit) {
//
if (NavList.List[index].type === 'ssh') {
//
NavList.List[index].Term.focus();
//
} else if (NavList.List[index].type === 'rdp') {
//
NavList.List[index].Rdp.focus();
//
}
//
} else {
//
//
}
}
constructor
()
{
...
...
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