From 4cfccb0f67238f6182aacb87550e582c153d4463 Mon Sep 17 00:00:00 2001 From: Gabriel Alencar Date: Fri, 3 Feb 2023 14:17:46 -0300 Subject: [PATCH] fix: lint fixes --- frontend/src/components/Sidebar.vue | 4 +++- http/static.go | 32 ++++++++++++++--------------- settings/branding.go | 10 ++++----- 3 files changed, 24 insertions(+), 22 deletions(-) diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index 25b9fce1..9b284a8d 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -82,7 +82,9 @@
diff --git a/http/static.go b/http/static.go index 9ae5485b..f438d76c 100644 --- a/http/static.go +++ b/http/static.go @@ -27,23 +27,23 @@ func handleWithStaticData(w http.ResponseWriter, _ *http.Request, d *data, fSys } data := map[string]interface{}{ - "Name": d.settings.Branding.Name, - "DisableExternal": d.settings.Branding.DisableExternal, + "Name": d.settings.Branding.Name, + "DisableExternal": d.settings.Branding.DisableExternal, "DisableUsedPercentage": d.settings.Branding.DisableUsedPercentage, - "Color": d.settings.Branding.Color, - "BaseURL": d.server.BaseURL, - "Version": version.Version, - "StaticURL": path.Join(d.server.BaseURL, "/static"), - "Signup": d.settings.Signup, - "NoAuth": d.settings.AuthMethod == auth.MethodNoAuth, - "AuthMethod": d.settings.AuthMethod, - "LoginPage": auther.LoginPage(), - "CSS": false, - "ReCaptcha": false, - "Theme": d.settings.Branding.Theme, - "EnableThumbs": d.server.EnableThumbnails, - "ResizePreview": d.server.ResizePreview, - "EnableExec": d.server.EnableExec, + "Color": d.settings.Branding.Color, + "BaseURL": d.server.BaseURL, + "Version": version.Version, + "StaticURL": path.Join(d.server.BaseURL, "/static"), + "Signup": d.settings.Signup, + "NoAuth": d.settings.AuthMethod == auth.MethodNoAuth, + "AuthMethod": d.settings.AuthMethod, + "LoginPage": auther.LoginPage(), + "CSS": false, + "ReCaptcha": false, + "Theme": d.settings.Branding.Theme, + "EnableThumbs": d.server.EnableThumbnails, + "ResizePreview": d.server.ResizePreview, + "EnableExec": d.server.EnableExec, } if d.settings.Branding.Files != "" { diff --git a/settings/branding.go b/settings/branding.go index f635ce35..cd196236 100644 --- a/settings/branding.go +++ b/settings/branding.go @@ -2,10 +2,10 @@ package settings // Branding contains the branding settings of the app. type Branding struct { - Name string `json:"name"` - DisableExternal bool `json:"disableExternal"` + Name string `json:"name"` + DisableExternal bool `json:"disableExternal"` DisableUsedPercentage bool `json:"disableUsedPercentage"` - Files string `json:"files"` - Theme string `json:"theme"` - Color string `json:"color"` + Files string `json:"files"` + Theme string `json:"theme"` + Color string `json:"color"` }