Compare commits
3 Commits
48201132bd
...
c8759e03d5
Author | SHA1 | Date | |
---|---|---|---|
c8759e03d5 | |||
f5abdfdf3f | |||
7a55735cc4 |
@ -30,6 +30,7 @@ func (ws wsHost) register(rws *restful.WebService, alterRB func(*restful.RouteBu
|
|||||||
|
|
||||||
for _, rb := range []*restful.RouteBuilder{
|
for _, rb := range []*restful.RouteBuilder{
|
||||||
rws.GET("").To(ws.get).
|
rws.GET("").To(ws.get).
|
||||||
|
Produces(mime.JSON).
|
||||||
Doc("Get the "+ws.hostDoc+"'s details").
|
Doc("Get the "+ws.hostDoc+"'s details").
|
||||||
Returns(200, "OK", localconfig.Host{}),
|
Returns(200, "OK", localconfig.Host{}),
|
||||||
|
|
||||||
|
@ -65,8 +65,6 @@ createApp({
|
|||||||
(this.state.Clusters||[]).forEach((c) => views.push({type: "cluster", name: c.Name, title: `Cluster ${c.Name}`}));
|
(this.state.Clusters||[]).forEach((c) => views.push({type: "cluster", name: c.Name, title: `Cluster ${c.Name}`}));
|
||||||
(this.state.Hosts ||[]).forEach((c) => views.push({type: "host", name: c.Name, title: `Host ${c.Name}`}));
|
(this.state.Hosts ||[]).forEach((c) => views.push({type: "host", name: c.Name, title: `Host ${c.Name}`}));
|
||||||
|
|
||||||
console.log("views:",views);
|
|
||||||
|
|
||||||
return views.filter((v) => v.name.includes(this.viewFilter));
|
return views.filter((v) => v.name.includes(this.viewFilter));
|
||||||
},
|
},
|
||||||
viewObj() {
|
viewObj() {
|
||||||
|
14
modd.conf
14
modd.conf
@ -4,23 +4,9 @@ modd.conf {}
|
|||||||
prep: go test ./...
|
prep: go test ./...
|
||||||
prep: mkdir -p dist
|
prep: mkdir -p dist
|
||||||
prep: hack/build ./...
|
prep: hack/build ./...
|
||||||
#prep: docker build --build-arg GOPROXY=$GOPROXY -t dls .
|
|
||||||
#daemon +sigterm: bash test-run
|
#daemon +sigterm: bash test-run
|
||||||
}
|
}
|
||||||
|
|
||||||
html/**/* {
|
html/**/* {
|
||||||
prep: hack/build ./cmd/dkl-local-server
|
prep: hack/build ./cmd/dkl-local-server
|
||||||
}
|
}
|
||||||
|
|
||||||
#dist/dkl-local-server {
|
|
||||||
# prep: mkdir -p tmp
|
|
||||||
# daemon +sigterm: dist/dkl-local-server -data tmp -auto-unlock test
|
|
||||||
#}
|
|
||||||
|
|
||||||
dist/dkl-dir2config {
|
|
||||||
# prep: dist/dkl-dir2config --debug --in test-dir2config
|
|
||||||
}
|
|
||||||
|
|
||||||
#**/*.proto !dist/**/* {
|
|
||||||
# prep: for mod in @mods; do protoc -I ./ --go_out=plugins=grpc,paths=source_relative:. $mod; done
|
|
||||||
#}
|
|
||||||
|
Reference in New Issue
Block a user