2 Commits

Author SHA1 Message Date
70bddc6c1b customize scrollbar background color 2023-09-21 15:00:36 +08:00
db0a36fc00 update 404 tips 2023-09-20 14:58:41 +08:00
3 changed files with 24 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
::-webkit-scrollbar-thumb {
background: rgba(199, 199, 199, 0.8);
}
.layui-bg-blue { .layui-bg-blue {
background-color: #58b7ff !important; background-color: #58b7ff !important;
} }
@@ -132,6 +136,10 @@ section.proxy-list .proxy-info .layui-row .layui-row > div:first-child {
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
::-webkit-scrollbar-thumb {
background: rgba(107, 107, 107, 0.8);
}
.login-title, .login-title,
.login-title a { .login-title a {
color: #99a9bf !important; color: #99a9bf !important;

View File

@@ -1,3 +1,13 @@
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-thumb {
border-radius: 4px;
transition: 0.3s ease-in-out;
}
html, body { html, body {
padding: 0; padding: 0;
word-break: break-all; word-break: break-all;

View File

@@ -586,10 +586,14 @@ func (c *HandleController) MakeProxyFunc() func(context *gin.Context) {
if res.Code == http.StatusOK { if res.Code == http.StatusOK {
res.Success = true res.Success = true
res.Data = string(body) res.Data = string(body)
res.Message = "Proxy to " + requestUrl + " success" res.Message = fmt.Sprintf("Proxy to %s success", requestUrl)
} else { } else {
res.Success = false res.Success = false
res.Message = "Proxy to " + requestUrl + " error: " + string(body) if res.Code == http.StatusNotFound {
res.Message = fmt.Sprintf("Proxy to %s error: url not found", requestUrl)
} else {
res.Message = fmt.Sprintf("Proxy to %s error: %s", requestUrl, string(body))
}
} }
} }
log.Printf(res.Message) log.Printf(res.Message)