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
3c9fa1d7
Unverified
Commit
3c9fa1d7
authored
Jan 03, 2018
by
liuzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
264e7589
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
25 deletions
+23
-25
cleftbar.component.css
src/app/ControlPage/cleftbar/cleftbar.component.css
+1
-1
cleftbar.component.ts
src/app/ControlPage/cleftbar/cleftbar.component.ts
+1
-1
controlnav.component.css
...p/ControlPage/control/controlnav/controlnav.component.css
+16
-18
controlnav.component.html
.../ControlPage/control/controlnav/controlnav.component.html
+2
-2
controlnav.component.ts
...pp/ControlPage/control/controlnav/controlnav.component.ts
+1
-1
ssh.component.ts
src/app/ControlPage/control/ssh/ssh.component.ts
+1
-1
controlpage.component.css
src/app/ControlPage/controlpage.component.css
+1
-0
app.component.html
src/app/app.component.html
+0
-1
No files found.
src/app/ControlPage/cleftbar/cleftbar.component.css
View file @
3c9fa1d7
...
@@ -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
;
}
}
src/app/ControlPage/cleftbar/cleftbar.component.ts
View file @
3c9fa1d7
...
@@ -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
=
''
;
...
...
src/app/ControlPage/control/controlnav/controlnav.component.css
View file @
3c9fa1d7
.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%
;
display
:
inline-flex
;
position
:
absolute
;
padding-left
:
0
;
padding-left
:
0
;
}
}
#
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
;
...
@@ -51,7 +49,7 @@
...
@@ -51,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
;
...
@@ -63,17 +61,17 @@
...
@@ -63,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
;
...
...
src/app/ControlPage/control/controlnav/controlnav.component.html
View file @
3c9fa1d7
<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
)"
>
...
...
src/app/ControlPage/control/controlnav/controlnav.component.ts
View file @
3c9fa1d7
...
@@ -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
)
{
...
...
src/app/ControlPage/control/ssh/ssh.component.ts
View file @
3c9fa1d7
...
@@ -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'
;
...
...
src/app/ControlPage/controlpage.component.css
View file @
3c9fa1d7
...
@@ -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
{
...
...
src/app/app.component.html
View file @
3c9fa1d7
<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>-->
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