mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 05:00:25 +08:00
优化JS加载速度/修改蓝色背景
This commit is contained in:
@@ -8,7 +8,6 @@ import (
|
||||
"github.com/iwind/TeaGo/actions"
|
||||
"github.com/iwind/TeaGo/files"
|
||||
"github.com/iwind/TeaGo/logs"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
type ComponentsAction actions.Action
|
||||
@@ -19,7 +18,7 @@ func (this *ComponentsAction) RunGet(params struct{}) {
|
||||
this.AddHeader("Content-Type", "text/javascript; charset=utf-8")
|
||||
|
||||
if !Tea.IsTesting() && len(componentsData) > 0 {
|
||||
this.AddHeader("Content-Length", strconv.Itoa(len(componentsData)))
|
||||
this.AddHeader("Last-Modified", "Fri, 06 Sep 2019 08:29:50 GMT")
|
||||
this.Write(componentsData)
|
||||
return
|
||||
}
|
||||
@@ -61,6 +60,5 @@ func (this *ComponentsAction) RunGet(params struct{}) {
|
||||
}
|
||||
|
||||
componentsData = buffer.Bytes()
|
||||
this.AddHeader("Content-Length", strconv.Itoa(len(componentsData)))
|
||||
this.Write(componentsData)
|
||||
}
|
||||
|
||||
@@ -248,7 +248,7 @@ body.expanded .main {
|
||||
z-index: 1000;
|
||||
overflow-x: auto;
|
||||
border: 0 !important;
|
||||
background: #276ac6 !important;
|
||||
background: #14539A !important;
|
||||
}
|
||||
.top-nav img.avatar {
|
||||
width: 1.6em !important;
|
||||
@@ -385,11 +385,11 @@ body.expanded .main {
|
||||
top: 2em;
|
||||
bottom: 0;
|
||||
overflow-y: auto;
|
||||
background: #276ac6 !important;
|
||||
background: #14539A !important;
|
||||
z-index: 10;
|
||||
}
|
||||
.main-menu .menu {
|
||||
background: #276ac6 !important;
|
||||
background: #14539A !important;
|
||||
border: 0 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ body.expanded .main {
|
||||
z-index: 1000;
|
||||
overflow-x: auto;
|
||||
border: 0 !important;
|
||||
background: #276ac6 !important;
|
||||
background: #14539A !important;
|
||||
|
||||
img.avatar {
|
||||
width: 1.6em !important;
|
||||
@@ -387,11 +387,11 @@ body.expanded .main {
|
||||
top: 2em;
|
||||
bottom: 0;
|
||||
overflow-y: auto;
|
||||
background: #276ac6 !important;
|
||||
background: #14539A !important;
|
||||
z-index: 10;
|
||||
|
||||
.menu {
|
||||
background: #276ac6 !important;
|
||||
background: #14539A !important;
|
||||
border: 0 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user