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
a82a6d17
Commit
a82a6d17
authored
Dec 26, 2017
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: reflact
parent
9d55b7ea
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
40 additions
and
44 deletions
+40
-44
mock.py
mock.py
+3
-3
not-found.component.ts
src/app/BasicPage/not-found/not-found.component.ts
+2
-2
app.component.css
src/app/app.component.css
+1
-1
app.component.html
src/app/app.component.html
+1
-1
app.module.ts
src/app/app.module.ts
+6
-7
footer.component.css
src/app/elements/footer/footer.component.css
+0
-0
footer.component.html
src/app/elements/footer/footer.component.html
+0
-0
footer.component.spec.ts
src/app/elements/footer/footer.component.spec.ts
+6
-6
footer.component.ts
src/app/elements/footer/footer.component.ts
+4
-7
nav.component.css
src/app/elements/nav/nav.component.css
+0
-0
nav.component.html
src/app/elements/nav/nav.component.html
+0
-0
nav.component.spec.ts
src/app/elements/nav/nav.component.spec.ts
+6
-6
nav.component.ts
src/app/elements/nav/nav.component.ts
+3
-3
popup.component.css
src/app/elements/popup/popup.component.css
+0
-0
popup.component.html
src/app/elements/popup/popup.component.html
+0
-0
popup.component.spec.ts
src/app/elements/popup/popup.component.spec.ts
+6
-6
popup.component.ts
src/app/elements/popup/popup.component.ts
+2
-2
No files found.
mock.py
View file @
a82a6d17
...
...
@@ -114,10 +114,10 @@ def asset_groups_assets():
},
{
"id"
:
4
,
"hostname"
:
"
testserver123
"
,
"hostname"
:
"
windows server
"
,
"ip"
:
"123.57.183.135"
,
"port"
:
8022
,
"system"
:
"
linux
"
,
"port"
:
3389
,
"system"
:
"
windows
"
,
"assets_granted"
:
[
{
"id"
:
1
,
...
...
src/app/BasicPage/not-found/not-found.component.ts
View file @
a82a6d17
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
NavComponent
}
from
'../nav/nav.component'
import
{
DataStore
}
from
'../../globals'
;
@
Component
({
selector
:
'app-not-found'
,
...
...
@@ -13,7 +13,7 @@ export class NotFoundComponent implements OnInit {
}
ngOnInit
()
{
NavComponent
.
Hide
()
DataStore
.
NavShow
=
false
;
}
}
src/app/app.component.css
View file @
a82a6d17
app-nav
{
app-
element-
nav
{
font-family
:
'Roboto'
,
sans-serif
;
font-size
:
13px
;
font-weight
:
300
;
...
...
src/app/app.component.html
View file @
a82a6d17
<app-
nav
*
ngIf=
"DataStore.NavShow"
></app
-nav>
<app-
element-nav
*
ngIf=
"DataStore.NavShow"
></app-element
-nav>
<nav
*
ngIf=
"DataStore.NavShow"
></nav>
<router-outlet></router-outlet>
src/app/app.module.ts
View file @
a82a6d17
...
...
@@ -18,11 +18,11 @@ import {HttpModule} from '@angular/http';
import
{
AppRoutingModule
}
from
'./app-routing.module'
;
import
{
AppComponent
}
from
'./app.component'
;
import
{
ElementFooterComponent
}
from
'./elements/footer/footer.component'
;
import
{
NavComponent
}
from
'./BasicPage
/nav/nav.component'
;
import
{
ElementNavComponent
}
from
'./elements
/nav/nav.component'
;
import
{
LoginComponent
}
from
'./BasicPage/login/login.component'
;
import
{
FooterComponent
}
from
'./BasicPage/footer/footer.component'
;
import
{
ElementPopupComponent
}
from
'./elements/popup/popup.component'
;
import
{
IleftbarComponent
}
from
'./IndexPage/ileftbar/ileftbar.component'
;
import
{
SearchComponent
,
SearchFilter
}
from
'./ControlPage/search/search.component'
;
import
{
CleftbarComponent
}
from
'./ControlPage/cleftbar/cleftbar.component'
;
...
...
@@ -33,7 +33,6 @@ import {SshComponent} from './ControlPage/control/ssh/ssh.component';
import
{
ControlPageComponent
}
from
'./ControlPage/controlpage.component'
;
import
{
IndexPageComponent
}
from
'./IndexPage/index-page.component'
;
import
{
NotFoundComponent
}
from
'./BasicPage/not-found/not-found.component'
;
import
{
PopupComponent
}
from
'./BasicPage/popup/popup.component'
;
import
{
RdppageComponent
}
from
'./rdppage/rdppage.component'
;
import
{
TermpageComponent
}
from
'./termpage/termpage.component'
;
import
{
ReplayPageComponent
}
from
'./replay-page/replay-page.component'
;
...
...
@@ -54,9 +53,10 @@ import {WindowsComponent} from './monitor-page/windows/windows.component';
],
declarations
:
[
AppComponent
,
NavComponent
,
ElementNavComponent
,
ElementFooterComponent
,
ElementPopupComponent
,
LoginComponent
,
FooterComponent
,
RdpComponent
,
SshComponent
,
SearchComponent
,
...
...
@@ -68,7 +68,6 @@ import {WindowsComponent} from './monitor-page/windows/windows.component';
ControlPageComponent
,
IndexPageComponent
,
NotFoundComponent
,
PopupComponent
,
RdppageComponent
,
TermpageComponent
,
ReplayPageComponent
,
...
...
src/app/
BasicPage
/footer/footer.component.css
→
src/app/
elements
/footer/footer.component.css
View file @
a82a6d17
File moved
src/app/
BasicPage
/footer/footer.component.html
→
src/app/
elements
/footer/footer.component.html
View file @
a82a6d17
File moved
src/app/
BasicPage
/footer/footer.component.spec.ts
→
src/app/
elements
/footer/footer.component.spec.ts
View file @
a82a6d17
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
FooterComponent
}
from
'./footer.component'
;
import
{
Element
FooterComponent
}
from
'./footer.component'
;
describe
(
'FooterComponent'
,
()
=>
{
let
component
:
FooterComponent
;
let
fixture
:
ComponentFixture
<
FooterComponent
>
;
let
component
:
Element
FooterComponent
;
let
fixture
:
ComponentFixture
<
Element
FooterComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
FooterComponent
]
declarations
:
[
Element
FooterComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
FooterComponent
);
fixture
=
TestBed
.
createComponent
(
Element
FooterComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
it
(
'should
be created
'
,
()
=>
{
it
(
'should
create
'
,
()
=>
{
expect
(
component
).
toBeTruthy
();
});
});
src/app/
BasicPage
/footer/footer.component.ts
→
src/app/
elements
/footer/footer.component.ts
View file @
a82a6d17
...
...
@@ -6,19 +6,16 @@
* @author liuzheng <liuzheng712@gmail.com>
*/
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Logger
}
from
'angular2-logger/core'
;
import
{
AppService
}
from
'../../app.service'
;
import
{
Logger
}
from
'angular2-logger/core'
;
import
{
DataStore
,
User
}
from
'../../globals'
;
@
Component
({
selector
:
'app-footer'
,
selector
:
'app-
element-
footer'
,
templateUrl
:
'./footer.component.html'
,
styleUrls
:
[
'./footer.component.css'
],
providers
:
[
AppService
]
styleUrls
:
[
'./footer.component.css'
]
})
export
class
FooterComponent
implements
OnInit
{
export
class
ElementFooterComponent
implements
OnInit
{
DataStore
=
DataStore
;
User
=
User
;
...
...
src/app/
BasicPage
/nav/nav.component.css
→
src/app/
elements
/nav/nav.component.css
View file @
a82a6d17
File moved
src/app/
BasicPage
/nav/nav.component.html
→
src/app/
elements
/nav/nav.component.html
View file @
a82a6d17
File moved
src/app/
BasicPage
/nav/nav.component.spec.ts
→
src/app/
elements
/nav/nav.component.spec.ts
View file @
a82a6d17
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
NavComponent
}
from
'./nav.component'
;
import
{
Element
NavComponent
}
from
'./nav.component'
;
describe
(
'NavComponent'
,
()
=>
{
let
component
:
NavComponent
;
let
fixture
:
ComponentFixture
<
NavComponent
>
;
describe
(
'
Element
NavComponent'
,
()
=>
{
let
component
:
Element
NavComponent
;
let
fixture
:
ComponentFixture
<
Element
NavComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
NavComponent
]
declarations
:
[
Element
NavComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
NavComponent
);
fixture
=
TestBed
.
createComponent
(
Element
NavComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
...
...
src/app/
BasicPage
/nav/nav.component.ts
→
src/app/
elements
/nav/nav.component.ts
View file @
a82a6d17
...
...
@@ -19,15 +19,15 @@ declare let layer: any;
declare
let
jQuery
:
any
;
@
Component
({
selector
:
'app-nav'
,
selector
:
'app-
element-
nav'
,
templateUrl
:
'./nav.component.html'
,
styleUrls
:
[
'./nav.component.css'
],
})
export
class
NavComponent
implements
OnInit
{
export
class
Element
NavComponent
implements
OnInit
{
DataStore
=
DataStore
;
static
Hide
()
{
jQuery
(
'app-nav'
).
hide
();
jQuery
(
'app-
element-
nav'
).
hide
();
}
constructor
(
private
_appService
:
AppService
,
...
...
src/app/
BasicPage
/popup/popup.component.css
→
src/app/
elements
/popup/popup.component.css
View file @
a82a6d17
File moved
src/app/
BasicPage
/popup/popup.component.html
→
src/app/
elements
/popup/popup.component.html
View file @
a82a6d17
File moved
src/app/
BasicPage
/popup/popup.component.spec.ts
→
src/app/
elements
/popup/popup.component.spec.ts
View file @
a82a6d17
import
{
async
,
ComponentFixture
,
TestBed
}
from
'@angular/core/testing'
;
import
{
PopupComponent
}
from
'./popup.component'
;
import
{
Element
PopupComponent
}
from
'./popup.component'
;
describe
(
'PopupComponent'
,
()
=>
{
let
component
:
PopupComponent
;
let
fixture
:
ComponentFixture
<
PopupComponent
>
;
describe
(
'
Element
PopupComponent'
,
()
=>
{
let
component
:
Element
PopupComponent
;
let
fixture
:
ComponentFixture
<
Element
PopupComponent
>
;
beforeEach
(
async
(()
=>
{
TestBed
.
configureTestingModule
({
declarations
:
[
PopupComponent
]
declarations
:
[
Element
PopupComponent
]
})
.
compileComponents
();
}));
beforeEach
(()
=>
{
fixture
=
TestBed
.
createComponent
(
PopupComponent
);
fixture
=
TestBed
.
createComponent
(
Element
PopupComponent
);
component
=
fixture
.
componentInstance
;
fixture
.
detectChanges
();
});
...
...
src/app/
BasicPage
/popup/popup.component.ts
→
src/app/
elements
/popup/popup.component.ts
View file @
a82a6d17
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-popup'
,
selector
:
'app-
element-
popup'
,
templateUrl
:
'./popup.component.html'
,
styleUrls
:
[
'./popup.component.css'
]
})
export
class
PopupComponent
implements
OnInit
{
export
class
Element
PopupComponent
implements
OnInit
{
constructor
()
{
}
...
...
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