diff --git a/oa/builtin/init.go b/oa/builtin/init.go index ef5ba42..0d5d5a4 100644 --- a/oa/builtin/init.go +++ b/oa/builtin/init.go @@ -23,10 +23,8 @@ func Enable(app *rest.Application) { app.SetMux(func(w http.ResponseWriter, r *http.Request) func(http.ResponseWriter, *http.Request) { if r.Host == "ts.oa.v" || r.Header.Get("mux") == "ts" { - logv.Info().Msg(r.RequestURI) return tsPorxy.ServeHTTP } else if r.Host == "fs.oa.v" { - logv.Info().Msg(r.RequestURI) return fsProxy } return nil diff --git a/oa/builtin/webdav/dir.html b/oa/builtin/webdav/dir.html index f17f6d2..6e79dbb 100644 --- a/oa/builtin/webdav/dir.html +++ b/oa/builtin/webdav/dir.html @@ -25,15 +25,31 @@ background: #fff; width: 100vw; height: 4rem; - line-height: 4rem; font-size: 2rem; padding-left: 4rem; box-sizing: border-box; box-shadow: 0px 0px 20px 0px rgb(0 0 0 / 10%); + /* 垂直居中 */ + display: flex; + align-items: center; + } + + .header a, + .header span { + display: contents; + } + + .header svg { + height: 1.75rem; + width: 1.75rem; + } + + .header svg:hover { + opacity: 0.7; } .container { - padding: 2rem; + padding: 2rem 2rem 0.5rem 2rem; box-sizing: border-box; width: 100vw; height: calc(100vh - 4rem); @@ -63,29 +79,63 @@ } .core-box { - padding: 0.5rem 2rem; + padding: 0.5rem 0rem; box-sizing: border-box; height: calc(100% - 3rem); overflow: auto; } .line { + padding: 0.5rem 2rem; display: flex; + align-items: center; height: 2rem; font-size: 1rem; line-height: 2rem; } + .line:hover { + background: rgb(143 185 217 / 19%); + } + a:link { text-decoration: none; font-weight: bold; } + + a:hover { + opacity: 0.8; + } + + .line .icon { + height: 1rem; + width: 1rem; + margin-right: 0.5rem; + } + + .footer { + margin-top: 2rem; + display: flex; + justify-content: center; + align-items: center; + font-size: 0.75rem; + color: #555; + } + + .footer a { + color: inherit; + }