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
f637f7eb
Commit
f637f7eb
authored
Nov 22, 2017
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: nav update
parent
ce0a0546
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
7 deletions
+30
-7
nav.component.css
src/app/BasicPage/nav/nav.component.css
+1
-0
cleftbar.component.ts
src/app/ControlPage/cleftbar/cleftbar.component.ts
+24
-0
controlnav.component.ts
...pp/ControlPage/control/controlnav/controlnav.component.ts
+1
-2
controlpage.component.html
src/app/ControlPage/controlpage.component.html
+2
-2
app.service.ts
src/app/app.service.ts
+2
-3
No files found.
src/app/BasicPage/nav/nav.component.css
View file @
f637f7eb
...
...
@@ -80,6 +80,7 @@
.dropdown-content
li
:hover
{
background-color
:
#3a3333
;
color
:
black
;
width
:
100%
;
}
.dropdown-content
li
.disabled
:hover
{
...
...
src/app/ControlPage/cleftbar/cleftbar.component.ts
View file @
f637f7eb
...
...
@@ -45,9 +45,33 @@ export class CleftbarComponent implements OnInit {
}
static
Hide
()
{
DataStore
.
leftbarshow
=
false
;
DataStore
.
Nav
.
map
(
function
(
value
,
i
)
{
for
(
var
ii
in
value
[
"children"
])
{
if
(
DataStore
.
Nav
[
i
][
"children"
][
ii
][
"id"
]
===
"HindLeftManager"
)
{
DataStore
.
Nav
[
i
][
"children"
][
ii
]
=
{
"id"
:
"ShowLeftManager"
,
"click"
:
"ShowLeft"
,
"name"
:
"Show left manager"
}
}
}
})
}
static
Show
()
{
DataStore
.
leftbarshow
=
true
;
DataStore
.
Nav
.
map
(
function
(
value
,
i
)
{
for
(
var
ii
in
value
[
"children"
])
{
if
(
DataStore
.
Nav
[
i
][
"children"
][
ii
][
"id"
]
===
"ShowLeftManager"
)
{
DataStore
.
Nav
[
i
][
"children"
][
ii
]
=
{
"id"
:
"HindLeftManager"
,
"click"
:
"HideLeft"
,
"name"
:
"Hind left manager"
}
}
}
})
}
constructor
(
private
_appService
:
AppService
,
...
...
src/app/ControlPage/control/controlnav/controlnav.component.ts
View file @
f637f7eb
...
...
@@ -11,7 +11,6 @@ import {Component, OnInit} from '@angular/core';
import
{
NavList
}
from
'../control.component'
import
{
SshComponent
}
from
'../ssh/ssh.component'
import
{
RdpComponent
}
from
'../rdp/rdp.component'
import
{
NavComponent
}
from
"../../../BasicPage/nav/nav.component"
;
declare
let
jQuery
:
any
;
...
...
@@ -19,7 +18,7 @@ declare let jQuery: any;
@
Component
({
selector
:
'app-controlnav'
,
templateUrl
:
'./controlnav.component.html'
,
styleUrls
:
[
'./controlnav.component.css'
]
styleUrls
:
[
'./controlnav.component.css'
]
,
})
export
class
ControlnavComponent
implements
OnInit
{
setActive
=
ControlnavComponent
.
setActive
;
...
...
src/app/ControlPage/controlpage.component.html
View file @
f637f7eb
<div
class=
"container-fluid row"
>
<app-cleftbar
class=
"col-md-2"
></app-cleftbar>
<app-control
class=
"col-md-10"
></app-control>
<app-cleftbar
class=
"col-md-2"
*
ngIf=
"DataStore.leftbarshow"
></app-cleftbar>
<app-control
[
ngClass
]="{'
col-md-10
'
:DataStore
.
leftbarshow
,'
col-md-12
'
:
!
DataStore
.
leftbarshow
}"
></app-control>
</div>
src/app/app.service.ts
View file @
f637f7eb
...
...
@@ -61,7 +61,7 @@ export let DataStore: {
error
:
{};
msg
:
{};
loglevel
:
number
;
leftbar
hide
:
boolean
;
leftbar
show
:
boolean
;
windowsize
:
Array
<
number
>
;
}
=
{
socket
:
io
.
connect
(),
...
...
@@ -70,7 +70,7 @@ export let DataStore: {
error
:
{},
msg
:
{},
loglevel
:
0
,
leftbar
hide
:
fals
e
,
leftbar
show
:
tru
e
,
windowsize
:
[],
};
export
let
CSRF
:
string
=
''
;
...
...
@@ -264,7 +264,6 @@ export class AppService implements OnInit {
}
//
//
// HideLeft() {
...
...
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