From caaa1fe62fff5f332c4d1dbff6787425ab1a9d73 Mon Sep 17 00:00:00 2001 From: Jack Westbrook Date: Wed, 4 Dec 2024 10:24:06 +0100 Subject: [PATCH] chore(backend): comment out swagger related assets and redundant css keys --- pkg/api/dtos/index.go | 28 ++++++++++++++-------------- public/views/index.html | 6 +----- public/views/swagger.html | 8 +------- 3 files changed, 16 insertions(+), 26 deletions(-) diff --git a/pkg/api/dtos/index.go b/pkg/api/dtos/index.go index c1bfb6429e9..93d967e3402 100644 --- a/pkg/api/dtos/index.go +++ b/pkg/api/dtos/index.go @@ -40,11 +40,11 @@ type IndexViewData struct { type EntryPointAssets struct { ContentDeliveryURL string `json:"cdn,omitempty"` JSFiles []EntryPointAsset `json:"jsFiles"` - CSSFiles []EntryPointAsset `json:"cssFiles"` - Dark string `json:"dark"` - Light string `json:"light"` - Swagger []EntryPointAsset `json:"swagger"` - SwaggerCSSFiles []EntryPointAsset `json:"swaggerCssFiles"` + // CSSFiles []EntryPointAsset `json:"cssFiles"` + Dark string `json:"dark"` + Light string `json:"light"` + // Swagger []EntryPointAsset `json:"swagger"` + // SwaggerCSSFiles []EntryPointAsset `json:"swaggerCssFiles"` } type EntryPointAsset struct { @@ -62,13 +62,13 @@ func (a *EntryPointAssets) SetContentDeliveryURL(prefix string) { for i, p := range a.JSFiles { a.JSFiles[i].FilePath = prefix + p.FilePath } - for i, p := range a.CSSFiles { - a.CSSFiles[i].FilePath = prefix + p.FilePath - } - for i, p := range a.Swagger { - a.Swagger[i].FilePath = prefix + p.FilePath - } - for i, p := range a.SwaggerCSSFiles { - a.SwaggerCSSFiles[i].FilePath = prefix + p.FilePath - } + // for i, p := range a.CSSFiles { + // a.CSSFiles[i].FilePath = prefix + p.FilePath + // } + // for i, p := range a.Swagger { + // a.Swagger[i].FilePath = prefix + p.FilePath + // } + // for i, p := range a.SwaggerCSSFiles { + // a.SwaggerCSSFiles[i].FilePath = prefix + p.FilePath + // } } diff --git a/public/views/index.html b/public/views/index.html index 1a6a3ab5f2c..9a0d061e5cd 100644 --- a/public/views/index.html +++ b/public/views/index.html @@ -18,10 +18,6 @@ - [[range $asset := .Assets.CSSFiles]] - - [[end]] - [[ if eq .ThemeType "light" ]] @@ -358,7 +354,7 @@ [[ if and .IsDevelopmentEnv .FrontendDevServer ]]
- [[range $asset := .Assets.Swagger]] - - [[end]] +