From 6150c983d2fadc32dc6b1a0ad0a744e553303f29 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Fri, 29 Jan 2021 10:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96JS=E5=8A=A0=E8=BD=BD=E9=80=9F?= =?UTF-8?q?=E5=BA=A6/=E4=BF=AE=E6=94=B9=E8=93=9D=E8=89=B2=E8=83=8C?= =?UTF-8?q?=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/actions/default/ui/components.go | 4 +--- web/views/@default/@layout.css | 6 +++--- web/views/@default/@layout.less | 6 +++--- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/internal/web/actions/default/ui/components.go b/internal/web/actions/default/ui/components.go index 8e7ca944..f99bad57 100644 --- a/internal/web/actions/default/ui/components.go +++ b/internal/web/actions/default/ui/components.go @@ -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) } diff --git a/web/views/@default/@layout.css b/web/views/@default/@layout.css index e6e1826d..f0d47a80 100644 --- a/web/views/@default/@layout.css +++ b/web/views/@default/@layout.css @@ -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; } diff --git a/web/views/@default/@layout.less b/web/views/@default/@layout.less index b3d657b9..b20148ab 100644 --- a/web/views/@default/@layout.less +++ b/web/views/@default/@layout.less @@ -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; }