Unverified Commit a4d464b2 authored by liuzheng712's avatar liuzheng712

Merge branch 'dev' into test

parents 456bc3e4 24141d3f
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
.tabs ul li.active { .tabs ul li.active {
box-sizing: border-box; box-sizing: border-box;
border-bottom: 3px solid #19aa8d !important; border-bottom: 5px solid #19aa8d !important;
} }
.tabs ul li span { .tabs ul li span {
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
*/ */
.tabs::-webkit-scrollbar-track { .tabs::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
background-color: #F5F5F5; background-color: #676a6c;
} }
.tabs::-webkit-scrollbar { .tabs::-webkit-scrollbar {
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
} }
.tabs::-webkit-scrollbar-thumb { .tabs::-webkit-scrollbar-thumb {
background-color: #19aa8d; background-color: #F5F5F5;
} }
.scroll-botton { .scroll-botton {
......
...@@ -70,7 +70,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit { ...@@ -70,7 +70,7 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
if (this.host) { if (this.host) {
NavList.List[this.index].Term = this.term; 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}); TermWS.emit('host', {'uuid': this.host.id, 'userid': this.userid, 'secret': this.secret});
...@@ -87,6 +87,12 @@ export class ElementTermComponent implements OnInit, AfterViewInit { ...@@ -87,6 +87,12 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
TermWS.on('disconnect', function () { TermWS.on('disconnect', function () {
that.TerminalDisconnect(); 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) { TermWS.on('room', function (data) {
if (data['secret'] === that.secret) { if (data['secret'] === that.secret) {
NavList.List[that.index].room = data['room']; NavList.List[that.index].room = data['room'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment