v1.27.0-a #10

Closed
jonathanface wants to merge 473 commits from v1.27.0-a into master
2 changed files with 6 additions and 5 deletions
Showing only changes of commit 7798916a9a - Show all commits

View File

@ -8,7 +8,11 @@
<td>{{.Start}}</td> <td>{{.Start}}</td>
<td>{{.End}}</td> <td>{{.End}}</td>
<td>{{if .Result}}<span class="success">success</span>{{else}}<span class="error">error</span>{{end}}</td> <td>{{if .Result}}<span class="success">success</span>{{else}}<span class="error">error</span>{{end}}</td>
<td>{{.Err}}</td> <td style="max-width: 25vh">
<div style="overflow: hidden; white-space: nowrap; text-overflow: ellipsis" title="{{.Err}}">
{{.Err}}
</div>
</td>
</tr> </tr>
{{end}} {{end}}
{{end}} {{end}}

View File

@ -39,12 +39,9 @@ func GetSrv(ctx context.Context, deps *deps.Deps) (*http.Server, error) {
} }
api.Routes(mx.PathPrefix("/api").Subrouter(), deps) api.Routes(mx.PathPrefix("/api").Subrouter(), deps)
basePath := basePath
var static fs.FS = static var static fs.FS = static
if webDev { if webDev {
basePath = "cmd/lotus-provider/web/static" static = os.DirFS("./cmd/lotus-provider/web")
static = os.DirFS(basePath)
} }
mx.NotFoundHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { mx.NotFoundHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {