Commit e2ef80e1 authored by liuzheng712's avatar liuzheng712

Merge branch 'dev' of github.com:jumpserver/luna

parents 0f35b88d 26d3fb77
...@@ -170,6 +170,37 @@ server.run = function (options) { ...@@ -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); app.use("/api", apis);
// let server listen on the port // let server listen on the port
......
{ {
"/api": { "/api": {
"target": "http://localhost:7871", "target": "http://localhost:3000",
"secure": false "secure": false
}, },
"/socket.io/": { "/socket.io/": {
"target": "http://127.0.0.1:7871", "target": "http://127.0.0.1:3000",
"secure": false "secure": false
}, },
"/rdp/socket.io/": { "/rdp/socket.io/": {
......
<div class="nav" *ngIf="User.logined"> <div class="nav">
<ul> <ul>
<li><a [routerLink]="['Index']"><img src="assets/imgs/logo.png" height="26px"/></a> <li><a [routerLink]="['Index']"><img src="assets/imgs/logo.png" height="26px"/></a>
</li> </li>
......
...@@ -58,3 +58,8 @@ ...@@ -58,3 +58,8 @@
background-size: 33px 63px; background-size: 33px 63px;
} }
} }
app-search {
border-left-width: 0;
border-bottom: gold 7px inset;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment