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
a4d464b2
Unverified
Commit
a4d464b2
authored
Jan 25, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
456bc3e4
24141d3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
controlnav.component.css
...p/ControlPage/control/controlnav/controlnav.component.css
+3
-3
term.component.ts
src/app/elements/term/term.component.ts
+7
-1
No files found.
src/app/ControlPage/control/controlnav/controlnav.component.css
View file @
a4d464b2
...
...
@@ -32,7 +32,7 @@
.tabs
ul
li
.active
{
box-sizing
:
border-box
;
border-bottom
:
3
px
solid
#19aa8d
!important
;
border-bottom
:
5
px
solid
#19aa8d
!important
;
}
.tabs
ul
li
span
{
...
...
@@ -87,7 +87,7 @@
*/
.tabs
::-webkit-scrollbar-track
{
-webkit-box-shadow
:
inset
0
0
6px
rgba
(
0
,
0
,
0
,
0.3
);
background-color
:
#
F5F5F5
;
background-color
:
#
676a6c
;
}
.tabs
::-webkit-scrollbar
{
...
...
@@ -95,7 +95,7 @@
}
.tabs
::-webkit-scrollbar-thumb
{
background-color
:
#
19aa8d
;
background-color
:
#
F5F5F5
;
}
.scroll-botton
{
...
...
src/app/elements/term/term.component.ts
View file @
a4d464b2
...
...
@@ -70,7 +70,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
if
(
this
.
host
)
{
NavList
.
List
[
this
.
index
].
Term
=
this
.
term
;
this
.
term
.
write
(
'
\
x1b[31mWelcome to Jumpserver!
\
x1b[m
\
r
\
n'
);
//
this.term.write('\x1b[31mWelcome to Jumpserver!\x1b[m\r\n');
TermWS
.
emit
(
'host'
,
{
'uuid'
:
this
.
host
.
id
,
'userid'
:
this
.
userid
,
'secret'
:
this
.
secret
});
...
...
@@ -87,6 +87,12 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
TermWS
.
on
(
'disconnect'
,
function
()
{
that
.
TerminalDisconnect
();
});
TermWS
.
on
(
'logout'
,
function
(
data
)
{
if
(
data
[
'room'
]
===
NavList
.
List
[
that
.
index
].
room
)
{
NavList
.
List
[
this
.
index
].
connected
=
false
;
this
.
term
.
write
(
'
\
r
\
n
\
x1b[31mBye Bye!
\
x1b[m
\
r
\
n'
);
}
});
TermWS
.
on
(
'room'
,
function
(
data
)
{
if
(
data
[
'secret'
]
===
that
.
secret
)
{
NavList
.
List
[
that
.
index
].
room
=
data
[
'room'
];
...
...
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