Unverified Commit 36dd06e6 authored by liuzheng's avatar liuzheng

feat: update

parent 9cbd0b43
...@@ -129,18 +129,18 @@ export class ElementNavComponent implements OnInit { ...@@ -129,18 +129,18 @@ export class ElementNavComponent implements OnInit {
'id': 'File', 'id': 'File',
'name': 'Server', 'name': 'Server',
'children': [ 'children': [
{ // {
'id': 'NewConnection', // 'id': 'NewConnection',
'href': '', // 'href': '',
'name': 'New connection', // 'name': 'New connection',
'disable': true // 'disable': true
}, // },
{ // {
'id': 'Connect', // 'id': 'Connect',
'click': 'Connect', // 'click': 'Connect',
'name': 'Connect', // 'name': 'Connect',
'disable': true // 'disable': true
}, // },
{ {
'id': 'Disconnect', 'id': 'Disconnect',
'click': 'Disconnect', 'click': 'Disconnect',
...@@ -151,35 +151,35 @@ export class ElementNavComponent implements OnInit { ...@@ -151,35 +151,35 @@ export class ElementNavComponent implements OnInit {
'click': 'DisconnectAll', 'click': 'DisconnectAll',
'name': 'Disconnect all' 'name': 'Disconnect all'
}, },
{ // {
'id': 'Duplicate', // 'id': 'Duplicate',
'href': '', // 'href': '',
'name': 'Duplicate', // 'name': 'Duplicate',
'disable': true // 'disable': true
}, // },
{ // {
'id': 'Upload', // 'id': 'Upload',
'href': '', // 'href': '',
'name': 'Upload', // 'name': 'Upload',
'disable': true // 'disable': true
}, // },
{ // {
'id': 'Download', // 'id': 'Download',
'href': '', // 'href': '',
'name': 'Download', // 'name': 'Download',
'disable': true // 'disable': true
}, // },
{ // {
'id': ' Search', // 'id': ' Search',
'href': '', // 'href': '',
'name': 'Search', // 'name': 'Search',
'disable': true // 'disable': true
}, // },
{ // {
'id': 'Reload', // 'id': 'Reload',
'click': 'ReloadLeftbar', // 'click': 'ReloadLeftbar',
'name': 'Reload' // 'name': 'Reload'
} // }
] ]
}, { }, {
'id': 'View', 'id': 'View',
...@@ -218,11 +218,11 @@ export class ElementNavComponent implements OnInit { ...@@ -218,11 +218,11 @@ export class ElementNavComponent implements OnInit {
'id': 'Help', 'id': 'Help',
'name': 'Help', 'name': 'Help',
'children': [ 'children': [
{ // {
'id': 'EnterLicense', // 'id': 'EnterLicense',
'click': 'EnterLicense', // 'click': 'EnterLicense',
'name': 'Enter License' // 'name': 'Enter License'
}, // },
{ {
'id': 'Website', 'id': 'Website',
'click': 'Website', 'click': 'Website',
......
...@@ -20,12 +20,16 @@ export class LinuxComponent implements OnInit { ...@@ -20,12 +20,16 @@ export class LinuxComponent implements OnInit {
Monitor.socket.emit('room', Monitor.sessionid); Monitor.socket.emit('room', Monitor.sessionid);
Monitor.socket.on('room', function (room) { Monitor.socket.on('room', function (room) {
Monitor.room = room; Monitor.room = room;
console.log(room);
Monitor.socket.emit('join', room); Monitor.socket.emit('join', room);
console.log(Monitor); console.log(Monitor);
}); });
Monitor.socket.on('data', function (data) { Monitor.socket.on('data', function (data) {
term.term.write(data); term.term.write(data);
}); });
Monitor.socket.on('error', function (data) {
alert(data);
});
}); });
} }
......
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