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
aa33ca06
Unverified
Commit
aa33ca06
authored
Jan 22, 2018
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
c7d1ed11
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
app.module.ts
src/app/app.module.ts
+7
-4
app.service.ts
src/app/app.service.ts
+1
-0
server-menu.component.ts
src/app/elements/server-menu/server-menu.component.ts
+3
-1
No files found.
src/app/app.module.ts
View file @
aa33ca06
...
...
@@ -18,17 +18,21 @@ import {HttpModule} from '@angular/http';
import
{
AppRoutingModule
}
from
'./app-routing.module'
;
import
{
AppComponent
}
from
'./app.component'
;
// service
import
{
AppService
,
HttpService
}
from
'./app.service'
;
import
{
LayerService
}
from
'./elements/layer/layer.service'
;
// Elements
import
{
ElementFooterComponent
}
from
'./elements/footer/footer.component'
;
import
{
ElementTermComponent
}
from
'./elements/term/term.component'
;
import
{
ElementInteractiveComponent
}
from
'./elements/interactive/interactive.component'
;
import
{
ElementNavComponent
}
from
'./elements/nav/nav.component'
;
import
{
LoginComponent
}
from
'./BasicPage/login/login.component'
;
import
{
ElementPopupComponent
}
from
'./elements/popup/popup.component'
;
import
{
ElementRdpComponent
}
from
'./elements/rdp/rdp.component'
;
import
{
ElementServerMenuComponent
}
from
'./elements/server-menu/server-menu.component'
;
import
{
ElementIframeComponent
}
from
'./elements/iframe/iframe.component'
;
// pages
import
{
LoginComponent
}
from
'./BasicPage/login/login.component'
;
import
{
IleftbarComponent
}
from
'./IndexPage/ileftbar/ileftbar.component'
;
import
{
SearchComponent
,
SearchFilter
}
from
'./ControlPage/search/search.component'
;
import
{
CleftbarComponent
}
from
'./ControlPage/cleftbar/cleftbar.component'
;
...
...
@@ -48,8 +52,6 @@ import {LinuxComponent} from './monitor-page/linux/linux.component';
import
{
WindowsComponent
}
from
'./monitor-page/windows/windows.component'
;
import
{
BrowserXhr
}
from
'@angular/http'
;
import
{
NgProgressModule
,
NgProgressBrowserXhr
}
from
'ngx-progressbar'
;
import
{
AppService
,
HttpService
}
from
'./app.service'
;
import
{
LayerService
}
from
'./elements/layer/layer.service'
;
@
NgModule
({
imports
:
[
...
...
@@ -95,7 +97,8 @@ import {LayerService} from './elements/layer/layer.service';
{
provide
:
BrowserXhr
,
useClass
:
NgProgressBrowserXhr
},
AppService
,
HttpService
,
Logger
LayerService
,
Logger
,
]
})
export
class
AppModule
{
...
...
src/app/app.service.ts
View file @
aa33ca06
...
...
@@ -13,6 +13,7 @@ import {Logger} from 'angular2-logger/core';
import
'rxjs/add/operator/map'
;
import
'rxjs/add/operator/catch'
;
import
{
DataStore
,
User
,
Browser
}
from
'./globals'
;
import
{
NgLayer
}
from
'angular2-layer'
;
declare
function
unescape
(
s
:
string
):
string
;
@
Injectable
()
...
...
src/app/elements/server-menu/server-menu.component.ts
View file @
aa33ca06
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
LayerService
}
from
'../layer/layer.service'
;
export
class
Menu
{
name
:
string
;
type
:
string
;
...
...
@@ -17,7 +18,7 @@ export class ElementServerMenuComponent implements OnInit {
top
:
number
;
left
:
number
;
constructor
()
{
constructor
(
private
ly
:
LayerService
)
{
}
ngOnInit
()
{
...
...
@@ -28,6 +29,7 @@ export class ElementServerMenuComponent implements OnInit {
m
.
type
=
'lll'
;
line
.
type
=
'line'
;
this
.
MenuList
=
[
m
,
m
,
line
,
m
,
m
];
this
.
ly
.
alert
();
}
public
contextmenu
(
top
:
number
,
left
:
number
)
{
...
...
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