Commit 47e4af1e authored by zheng liu's avatar zheng liu

Merged in dev (pull request #18)

Dev
parents 538dec5c 4c348f78
...@@ -10572,6 +10572,11 @@ ...@@ -10572,6 +10572,11 @@
} }
} }
}, },
"npm-font-open-sans": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/npm-font-open-sans/-/npm-font-open-sans-1.1.0.tgz",
"integrity": "sha512-t1y5ShWm6a8FSLwBdINT47XYMcuKY2rkTBsTdz/76YB2MtX0YD89RUkY2eSS2/XOmlZfBe1HFBAwD+b9+/UfmQ=="
},
"npm-run-path": { "npm-run-path": {
"version": "2.0.2", "version": "2.0.2",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
"ngx-bootstrap": "^1.6.6", "ngx-bootstrap": "^1.6.6",
"node": "^9.3.0", "node": "^9.3.0",
"npm": "^5.6.0", "npm": "^5.6.0",
"npm-font-open-sans": "^1.1.0",
"peity": "^3.2.1", "peity": "^3.2.1",
"popper.js": "^1.12.9", "popper.js": "^1.12.9",
"roboto-fontface": "^0.8.0", "roboto-fontface": "^0.8.0",
......
...@@ -68,6 +68,6 @@ label { ...@@ -68,6 +68,6 @@ label {
font-size: 9pt; font-size: 9pt;
border-top-width: 1px; border-top-width: 1px;
left: 0; left: 0;
padding: 1px 20px 30px 20px; padding: 1px 20px 0 20px;
position: absolute; position: absolute;
} }
...@@ -96,7 +96,7 @@ export class CleftbarComponent implements OnInit { ...@@ -96,7 +96,7 @@ export class CleftbarComponent implements OnInit {
} }
Connect(host) { Connect(host) {
console.log(host); // console.log(host);
let userid: string; let userid: string;
if (host.system_users_granted.length > 1) { if (host.system_users_granted.length > 1) {
let options = ''; let options = '';
......
.tabs {
#tabs {
height: 30px; height: 30px;
width: 100% overflow-y: hidden;
overflow-x: auto;
} }
#tabs ul li.disconnected { .tabs ul li.disconnected {
background-color: darkgray; background-color: darkgray;
} }
#tabs ul li.hidden { .tabs ul li.hidden {
display: none; display: none;
} }
#tabs ul { .tabs ul {
list-style-type: none; list-style-type: none;
height: 30px; height: 30px;
background-color: #3a3333; background-color: #3a3333;
overflow-y: hidden; display: block;
overflow-x: auto; min-width: 100%;
width: 100%; padding-left: 0;
display: inline-flex;
position: absolute;
} }
#tabs ul li { .tabs ul li {
display: inline-table; display: inline-table;
width: 150px; width: 150px;
height: 30px; height: 30px;
position: relative; position: relative;
box-sizing: content-box; box-sizing: content-box;
float: left;;
} }
#tabs ul li.active { .tabs ul li.active {
box-sizing: border-box; box-sizing: border-box;
border-bottom: 3px solid #7f3f98 !important; border-bottom: 3px solid #7f3f98 !important;
} }
#tabs ul li span { .tabs ul li span {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
...@@ -50,7 +49,7 @@ ...@@ -50,7 +49,7 @@
height: 21px; height: 21px;
} }
#tabs ul li a.close { .tabs ul li a.close {
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 13px; font-size: 13px;
position: absolute; position: absolute;
...@@ -62,17 +61,17 @@ ...@@ -62,17 +61,17 @@
display: inline-block; display: inline-block;
} }
#tabs ul li.active a { .tabs ul li.active a {
color: white; color: white;
} }
#tabs ul li.active span { .tabs ul li.active span {
padding: 5px 20px 4px 15px; padding: 5px 20px 4px 15px;
color: white; color: white;
height: 18px; height: 18px;
} }
#tabs ul li input { .tabs ul li input {
font-family: 'Roboto', sans-serif; font-family: 'Roboto', sans-serif;
font-size: 13px; font-size: 13px;
width: 115px; width: 115px;
......
<div id="tabs"> <div class="tabs">
<ul> <ul [ngStyle]="{'width':150*NavList.List.length+'px'}">
<li *ngFor="let m of NavList.List;let i = index" <li *ngFor="let m of NavList.List;let i = index"
[ngClass]="{'active':i==NavList.Active,'disconnected':!m.connected, 'hidden': m.closed != false}" [ngClass]="{'active':i==NavList.Active,'disconnected':!m.connected, 'hidden': m.closed != false}"
id="termnav-{{i}}" (click)="setActive(i)"> id="termnav-{{i}}" (click)="setActive(i)">
......
...@@ -34,7 +34,7 @@ export class ControlnavComponent implements OnInit { ...@@ -34,7 +34,7 @@ export class ControlnavComponent implements OnInit {
} else { } else {
NavList.Active = index; NavList.Active = index;
} }
ControlnavComponent.setActive(NavList.Active) ControlnavComponent.setActive(NavList.Active);
} }
static setActive(index) { static setActive(index) {
......
...@@ -47,7 +47,7 @@ export class SshComponent implements OnInit { ...@@ -47,7 +47,7 @@ export class SshComponent implements OnInit {
} }
TerminalConnect(host, userid) { TerminalConnect(host, userid) {
console.log(host, userid); // console.log(host, userid);
const socket = io.connect('/ssh'); const socket = io.connect('/ssh');
let cols = '80'; let cols = '80';
let rows = '24'; let rows = '24';
......
...@@ -7,6 +7,7 @@ div, term-leftbar, term-body { ...@@ -7,6 +7,7 @@ div, term-leftbar, term-body {
div { div {
background-color: black; background-color: black;
margin: 0; margin: 0;
padding-top:30px;
} }
app-cleftbar { app-cleftbar {
......
<app-element-nav *ngIf="DataStore.NavShow"></app-element-nav> <app-element-nav *ngIf="DataStore.NavShow"></app-element-nav>
<nav *ngIf="DataStore.NavShow"></nav>
<router-outlet></router-outlet> <router-outlet></router-outlet>
<!--<app-element-interactive></app-element-interactive>--> <!--<app-element-interactive></app-element-interactive>-->
...@@ -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);
});
}); });
} }
......
...@@ -4,3 +4,8 @@ $fa-font-path: "~font-awesome/fonts"; ...@@ -4,3 +4,8 @@ $fa-font-path: "~font-awesome/fonts";
// bootstrap // bootstrap
@import "~bootstrap/scss/bootstrap"; @import "~bootstrap/scss/bootstrap";
$FontPathOpenSans: "~npm-font-open-sans/fonts";
@import '~npm-font-open-sans/open-sans';
$roboto-font-path: "~roboto-fontface/fonts";
@import "~roboto-fontface/css/mixins.scss";
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