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
26d3fb77
Commit
26d3fb77
authored
Nov 21, 2017
by
liuzheng712
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix some mock bug
parent
c435a758
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
3 deletions
+39
-3
app.js
app.js
+31
-0
proxy.conf.json
proxy.conf.json
+2
-2
nav.component.html
src/app/BasicPage/nav/nav.component.html
+1
-1
cleftbar.component.css
src/app/ControlPage/cleftbar/cleftbar.component.css
+5
-0
No files found.
app.js
View file @
26d3fb77
...
...
@@ -170,6 +170,37 @@ server.run = function (options) {
}]
}])
});
apis
.
route
(
'/hostlist'
)
.
get
(
function
(
req
,
res
)
{
res
.
json
([{
"name"
:
"测试服务器组1"
,
"id"
:
1
,
"children"
:
[{
"name"
:
"测试服务器1"
,
"uuid"
:
""
,
"type"
:
"ssh"
,
"users"
:
[
"root"
,
"test"
]},
{
"name"
:
"测试服务器2"
,
"uuid"
:
""
,
"type"
:
"ssh"
,
"users"
:
[
"root"
,
"test"
]
}]
},
{
"name"
:
"樱花庄服务器组"
,
"id"
:
2
,
"children"
:
[{
"name"
:
"测试服务器1"
,
"uuid"
:
""
,
"type"
:
"ssh"
,
"users"
:
[
"root"
,
"test"
]},
{
"name"
:
"测试服务器2"
,
"uuid"
:
""
,
"type"
:
"ssh"
,
"users"
:
[
"root"
,
"test"
]
}]
},
{
"name"
:
"阿里云服务器组"
,
"id"
:
3
,
"children"
:
[{
"name"
:
"测试服务器1"
,
"uuid"
:
""
,
"type"
:
"ssh"
,
"users"
:
[
"root"
,
"test"
]},
{
"name"
:
"测试服务器2"
,
"uuid"
:
""
,
"type"
:
"ssh"
,
"users"
:
[
"root"
,
"test"
]
}]
}])
});
app
.
use
(
"/api"
,
apis
);
// let server listen on the port
...
...
proxy.conf.json
View file @
26d3fb77
{
"/api"
:
{
"target"
:
"http://localhost:
7871
"
,
"target"
:
"http://localhost:
3000
"
,
"secure"
:
false
},
"/socket.io/"
:
{
"target"
:
"http://127.0.0.1:
7871
"
,
"target"
:
"http://127.0.0.1:
3000
"
,
"secure"
:
false
},
"/rdp/socket.io/"
:
{
...
...
src/app/BasicPage/nav/nav.component.html
View file @
26d3fb77
<div
class=
"nav"
*
ngIf=
"User.logined"
>
<div
class=
"nav"
>
<ul>
<li><a
[
routerLink
]="['
Index
']"
><img
src=
"assets/imgs/logo.png"
height=
"26px"
/></a>
</li>
...
...
src/app/ControlPage/cleftbar/cleftbar.component.css
View file @
26d3fb77
...
...
@@ -58,3 +58,8 @@
background-size
:
33px
63px
;
}
}
app-search
{
border-left-width
:
0
;
border-bottom
:
gold
7px
inset
;
}
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