Skip to content

Modern Docker Management, Designed for Everyone

refactor: serve images from backend vs static frontend assets (#671)

Kyle Mendell5e1cbcbe56e7
diff --git a/backend/internal/api/app_images_handler.go b/backend/internal/api/app_images_handler.go
new file mode 100644
index 000000000..bfc9c6b71
--- /dev/null
+++ b/backend/internal/api/app_images_handler.go
@@ -0,0 +1,54 @@
+package api
+
+import (
+ "strconv"
+ "time"
+
+ "github.com/gin-gonic/gin"
+ "github.com/ofkm/arcane-backend/internal/services"
+ apphttp "github.com/ofkm/arcane-backend/internal/utils/http"
+)
+
+type ApplicationImagesHandler struct {
+ appImagesService *services.ApplicationImagesService
+}
+
+func NewApplicationImagesHandler(group *gin.RouterGroup, appImagesService *services.ApplicationImagesService) {
+ appImageHandler := &ApplicationImagesHandler{appImagesService: appImagesService}
+
+ group.GET("/app-images/logo", appImageHandler.getLogo)
+ group.GET("/app-images/favicon", appImageHandler.getFavicon)
+ group.GET("/app-images/profile", appImageHandler.getDefaultProfile)
+}
+
+func (c *ApplicationImagesHandler) getLogo(ctx *gin.Context) {
+ name := "logo"
+
+ if fullParam := ctx.Query("full"); fullParam != "" {
+ if full, err := strconv.ParseBool(fullParam); err == nil && full {
+ name = "logo-full"
+ }
+ }
+
+ c.getImage(ctx, name)
+}
+
+func (c *ApplicationImagesHandler) getFavicon(ctx *gin.Context) {
+ c.getImage(ctx, "favicon")
+}
+
+func (c *ApplicationImagesHandler) getDefaultProfile(ctx *gin.Context) {
+ c.getImage(ctx, "profile")
+}
+
+func (c *ApplicationImagesHandler) getImage(ctx *gin.Context, name string) {
+ imageData, mimeType, err := c.appImagesService.GetImage(name)
+ if err != nil {
+ _ = ctx.Error(err)
+ return
+ }
+
+ ctx.Header("Content-Type", mimeType)
+ apphttp.SetCacheControlHeader(ctx, 15*time.Minute, 24*time.Hour)
+ ctx.Data(200, mimeType, imageData)
+}
diff --git a/backend/internal/bootstrap/router_bootstrap.go b/backend/internal/bootstrap/router_bootstrap.go
index b2a9d24a4..e07037de5 100644
--- a/backend/internal/bootstrap/router_bootstrap.go
+++ b/backend/internal/bootstrap/router_bootstrap.go
@@ -66,6 +66,7 @@ func setupRouter(cfg *config.Config, appServices *Services) *gin.Engine {
apiGroup := router.Group("/api")
+ api.NewApplicationImagesHandler(apiGroup, appServices.AppImages)
api.NewUserHandler(apiGroup, appServices.User, authMiddleware)
api.NewVersionHandler(apiGroup, appServices.Version)
api.NewAuthHandler(apiGroup, appServices.User, appServices.Auth, appServices.Oidc, authMiddleware)
diff --git a/backend/internal/bootstrap/services_bootstrap.go b/backend/internal/bootstrap/services_bootstrap.go
index 755d72322..c5e3033cb 100644
--- a/backend/internal/bootstrap/services_bootstrap.go
+++ b/backend/internal/bootstrap/services_bootstrap.go
@@ -8,9 +8,11 @@ import (
"github.com/ofkm/arcane-backend/internal/config"
"github.com/ofkm/arcane-backend/internal/database"
"github.com/ofkm/arcane-backend/internal/services"
+ "github.com/ofkm/arcane-backend/resources"
)
type Services struct {
+ AppImages *services.ApplicationImagesService
User *services.UserService
Project *services.ProjectService
Environment *services.EnvironmentService
@@ -34,6 +36,7 @@ type Services struct {
func initializeServices(ctx context.Context, db *database.DB, cfg *config.Config, httpClient *http.Client) (svcs *Services, dockerSrvice *services.DockerClientService, err error) {
svcs = &Services{}
+ svcs.AppImages = services.NewApplicationImagesService(resources.FS)
svcs.Event = services.NewEventService(db)
svcs.Settings, err = services.NewSettingsService(ctx, db)
if err != nil {
diff --git a/backend/internal/services/app_images_service.go b/backend/internal/services/app_images_service.go
new file mode 100644
index 000000000..067ccb78a
--- /dev/null
+++ b/backend/internal/services/app_images_service.go
@@ -0,0 +1,70 @@
+package services
+
+import (
+ "embed"
+ "fmt"
+ "io/fs"
+ "path/filepath"
+ "strings"
+ "sync"
+
+ "github.com/ofkm/arcane-backend/internal/utils/image"
+)
+
+type ApplicationImagesService struct {
+ mu sync.RWMutex
+ imageData map[string][]byte
+ mimeTypes map[string]string
+}
+
+func NewApplicationImagesService(embeddedFS embed.FS) *ApplicationImagesService {
+ service := &ApplicationImagesService{
+ imageData: make(map[string][]byte),
+ mimeTypes: make(map[string]string),
+ }
+
+ imageDir := "images"
+ entries, err := fs.ReadDir(embeddedFS, imageDir)
+ if err != nil {
+ return service
+ }
+
+ for _, entry := range entries {
+ if entry.IsDir() {
+ continue
+ }
+
+ filename := entry.Name()
+ ext := strings.ToLower(filepath.Ext(filename))
+ nameWithoutExt := strings.TrimSuffix(filename, ext)
+
+ data, err := embeddedFS.ReadFile(filepath.Join(imageDir, filename))
+ if err != nil {
+ continue
+ }
+
+ extWithoutDot := strings.TrimPrefix(ext, ".")
+ mimeType := image.GetImageMimeType(extWithoutDot)
+ if mimeType == "" {
+ continue
+ }
+
+ service.imageData[nameWithoutExt] = data
+ service.mimeTypes[nameWithoutExt] = mimeType
+ }
+
+ return service
+}
+
+func (s *ApplicationImagesService) GetImage(name string) ([]byte, string, error) {
+ s.mu.RLock()
+ defer s.mu.RUnlock()
+
+ data, ok := s.imageData[name]
+ if !ok {
+ return nil, "", fmt.Errorf("image '%s' not found", name)
+ }
+
+ mimeType := s.mimeTypes[name]
+ return data, mimeType, nil
+}
diff --git a/backend/internal/utils/http/cache.go b/backend/internal/utils/http/cache.go
new file mode 100644
index 000000000..06afb577a
--- /dev/null
+++ b/backend/internal/utils/http/cache.go
@@ -0,0 +1,18 @@
+package http
+
+import (
+ "strconv"
+ "time"
+
+ "github.com/gin-gonic/gin"
+)
+
+func SetCacheControlHeader(ctx *gin.Context, maxAge, staleWhileRevalidate time.Duration) {
+ _, ok := ctx.GetQuery("skip-cache")
+ if !ok {
+ maxAgeSeconds := strconv.Itoa(int(maxAge.Seconds()))
+ staleWhileRevalidateSeconds := strconv.Itoa(int(staleWhileRevalidate.Seconds()))
+ ctx.Header("Cache-Control", "public, max-age="+maxAgeSeconds+", stale-while-revalidate="+staleWhileRevalidateSeconds)
+ }
+
+}
diff --git a/backend/internal/utils/image/image_util.go b/backend/internal/utils/image/image_util.go
new file mode 100644
index 000000000..378e89928
--- /dev/null
+++ b/backend/internal/utils/image/image_util.go
@@ -0,0 +1,24 @@
+package image
+
+func GetImageMimeType(ext string) string {
+ switch ext {
+ case "jpg", "jpeg":
+ return "image/jpeg"
+ case "png":
+ return "image/png"
+ case "svg":
+ return "image/svg+xml"
+ case "ico":
+ return "image/x-icon"
+ case "gif":
+ return "image/gif"
+ case "webp":
+ return "image/webp"
+ case "avif":
+ return "image/avif"
+ case "heic":
+ return "image/heic"
+ default:
+ return ""
+ }
+}
diff --git a/backend/resources/embed.go b/backend/resources/embed.go
index 561af061a..ac17278cd 100644
--- a/backend/resources/embed.go
+++ b/backend/resources/embed.go
@@ -4,5 +4,5 @@ import "embed"
// Embedded file systems for the project
-//go:embed migrations
+//go:embed migrations images
var FS embed.FS
diff --git a/backend/resources/images/favicon.ico b/backend/resources/images/favicon.ico
new file mode 100644
index 000000000..29397860b
Binary files /dev/null and b/backend/resources/images/favicon.ico differ
diff --git a/backend/resources/images/logo-full.svg b/backend/resources/images/logo-full.svg
new file mode 100644
index 000000000..c637603cb
--- /dev/null
+++ b/backend/resources/images/logo-full.svg
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 26.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+
+<svg
+ version="1.1"
+ id="Layer_1"
+ x="0px"
+ y="0px"
+ viewBox="0 0 456.89999 111.85922"
+ xml:space="preserve"
+ width="456.89999"
+ height="111.85922"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg"><defs
+ id="defs19" />
+<style
+ type="text/css"
+ id="style1">
+ .st0{fill:#6D28D9;}
+</style>
+<g
+ id="g19"
+ transform="translate(-320.8,-328.84078)">
+ <path
+ class="st0"
+ d="m 571.4,376.7 c 0,7.8 -3.1,12.8 -9.3,15.1 l 12.3,17.4 H 561 l -10.8,-15.5 h -7.5 v 15.5 h -10.9 v -48.7 h 18.4 c 7.6,0 13,1.3 16.2,3.8 3.4,2.6 5,6.8 5,12.4 z m -13.1,5.8 c 1.3,-1.2 2,-3.1 2,-5.7 0,-2.6 -0.7,-4.4 -2.1,-5.4 -1.4,-1 -3.8,-1.5 -7.3,-1.5 h -8.1 v 14.4 h 7.9 c 3.8,0 6.3,-0.6 7.6,-1.8 z"
+ id="path1" />
+ <path
+ class="st0"
+ d="m 604.9,399.6 c 5.3,0 9.7,-2.1 13.1,-6.3 l 7,7.2 c -5.5,6.2 -12,9.3 -19.5,9.3 -7.5,0 -13.7,-2.4 -18.5,-7.1 -4.8,-4.7 -7.3,-10.7 -7.3,-17.9 0,-7.2 2.5,-13.2 7.4,-18.1 4.9,-4.8 11,-7.2 18.1,-7.2 8,0 14.7,3 20,9.1 l -6.8,7.7 c -3.4,-4.3 -7.7,-6.4 -12.8,-6.4 -4.1,0 -7.6,1.3 -10.5,4 -2.9,2.7 -4.3,6.3 -4.3,10.8 0,4.5 1.4,8.2 4.1,10.9 2.8,2.6 6.1,4 10,4 z"
+ id="path2" />
+ <path
+ class="st0"
+ d="m 719,360.6 h 10.9 v 48.7 H 719 l -23.2,-30.5 v 30.5 H 685 v -48.7 h 10.2 l 23.9,31.3 v -31.3 z"
+ id="path3" />
+ <path
+ class="st0"
+ d="m 741.9,360.6 v 9.7 h 10.9 v -0.1 H 777 v -9.7 h -35.1 z m 10.8,39 v 0 l -10.9,-0.1 v 9.7 h 35.9 v -9.6 z m 0,-10.1 h 21.8 v -9.3 h -32.6 v 9.3 z"
+ id="path4" />
+ <path
+ class="st0"
+ d="m 387.3,390.2 c 0,-1.6 0,-1.6 -1.6,-1.8 -2.8,-0.3 -5.6,-0.6 -8.5,-0.9 -1.7,-0.1 -3.4,-0.7 -5,0.1 -2.1,1 -4.3,2.1 -6.4,3.1 -0.4,0.2 -0.7,0.4 -0.7,0.9 0,0.9 0,1.9 0,2.8 0,0.6 0.2,1 0.9,1 0.5,0 0.8,0.3 0.8,0.9 v 12 c 6.3,-2.2 12.6,-4.1 18.9,-6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 -0.2,0.9 -0.8,0.9 -1.6,-0.1 -3.3,-0.3 -4.9,-0.4 -0.4,0 -0.5,-0.3 -0.6,-0.6 -0.3,-2.2 -0.1,-4.3 -0.1,-6.5 0,-0.6 0.4,-0.8 0.9,-1 1.6,-0.5 3.3,-0.4 5,0 0.5,0.1 0.6,0.6 0.6,1 -0.1,1.1 -0.1,2.2 -0.1,3.3 z"
+ id="path13" />
+ <path
+ class="st0"
+ d="m 411.2,387.4 c 0,-0.8 0,-1.6 0,-2.4 0,-0.7 0.2,-1 0.9,-0.9 2.2,0.3 4.4,0.6 6.7,0.9 0.4,0.1 0.6,0.3 0.6,0.7 0,0.1 0,0.1 0,0.2 0.2,3.1 0.2,3.1 -2.9,3.7 -1.5,0.3 -3,0.6 -4.4,0.9 -0.7,0.2 -0.9,-0.1 -0.9,-0.7 0,-0.8 0,-1.6 0,-2.4 z"
+ id="path14" />
+ <path
+ class="st0"
+ d="m 422.9,433.1 c -0.2,1 -0.6,1.9 -1.2,2.7 -1.3,1.9 -3.7,3.3 -6.5,3.9 -2.9,0.7 -6.2,0.5 -9.5,-0.9 0,0 0,0 0,0 -8,-3.2 -13.2,-3.2 -14,-3.2 -0.8,0 10.1,-4.2 10.1,-4.2 l 5,-0.8 15.2,-4.6 c 0,0 0,0 0,0 0.1,0 1.8,1.6 0.9,7.1 z"
+ id="path15" />
+ <polygon
+ class="st0"
+ points="473.8,409.2 485.3,409.2 489.8,398.7 489.8,398.7 494,389.2 493.9,389.2 500.1,375 514.8,409.2 526.3,409.2 505.3,360.6 494.8,360.6 "
+ id="polygon15" />
+ <path
+ class="st0"
+ d="m 400.6,363.7 c 0.4,0 0.8,-0.4 0.6,-0.9 -1.3,-3.4 -2.7,-6.9 -4.1,-10.3 -3.1,-7.5 -6.1,-15.1 -9.1,-22.6 -0.4,-0.9 -0.9,-1.2 -2.2,-1 -5.7,0.9 -11.4,0.4 -17.2,0 -1,-0.1 -1.4,0.2 -1.7,0.9 -0.9,2.2 -1.8,4.3 -2.7,6.5 -3.7,9.2 -7.4,18.4 -11.1,27.6 -3.8,9.6 -7.7,19.1 -11.6,28.6 -4,10 -7.8,20.1 -12.1,30 -1.6,3.7 -5.6,12.5 -7.4,16.1 -0.4,0.8 -0.8,1.5 -1.2,2.1 h 20.7 c 0.1,-0.3 0.2,-0.6 0.3,-0.9 1,-3 3,-7.6 4.9,-12 v 0 L 357,402.3 c 0,-0.2 0.1,-0.4 0.2,-0.8 0.1,-0.2 0.1,-0.4 0.2,-0.6 1.5,-3.9 3.1,-7.8 4.6,-11.6 4.3,-10.9 8.5,-21.8 12.8,-32.7 0.7,-1.8 1.4,-3.5 2.1,-5.3 0.4,0.3 0.5,0.7 0.6,1 1.4,3.7 2.8,7.3 4.3,11 0.1,0.2 0.3,0.4 0.6,0.4 z"
+ id="path16" />
+ <polygon
+ class="st0"
+ points="386.5,331.8 386.5,332.6 380.7,335.9 376.2,337.4 373.9,338.3 368.6,328.9 385.8,329 "
+ id="polygon16" />
+ <polygon
+ class="st0"
+ points="763.4,365.2 759.8,364.4 753,364.4 741.9,370.3 777,370.2 "
+ id="polygon17" />
+ <polygon
+ class="st0"
+ points="767.2,403.4 759.8,404.4 755,404.4 741.9,399.5 777.7,399.6 "
+ id="polygon18" />
+ <polygon
+ class="st0"
+ points="626.8,409.2 638.4,409.2 642.9,398.7 642.9,398.7 647,389.2 647,389.2 653.1,375 667.8,409.2 679.4,409.2 658.3,360.6 647.8,360.6 "
+ id="polygon19" />
+</g>
+</svg>
diff --git a/backend/resources/images/logo.svg b/backend/resources/images/logo.svg
new file mode 100644
index 000000000..a53e9340e
--- /dev/null
+++ b/backend/resources/images/logo.svg
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Generator: Adobe Illustrator 26.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
+
+<svg
+ version="1.1"
+ id="Layer_1"
+ x="0px"
+ y="0px"
+ viewBox="0 0 179.8371 172.13333"
+ xml:space="preserve"
+ width="179.8371"
+ height="172.13333"
+ xmlns="http://www.w3.org/2000/svg"
+ xmlns:svg="http://www.w3.org/2000/svg"><defs
+ id="defs12" />
+<style
+ type="text/css"
+ id="style1">
+ .st0{fill:#6D28D9;}
+</style>
+<g
+ id="g12"
+ transform="translate(-457.5,-292.86667)">
+ <path
+ class="st0"
+ d="m 559.7,387 c 0,-2.5 0,-2.5 -2.5,-2.7 -4.3,-0.4 -8.7,-1 -13,-1.3 -2.6,-0.2 -5.2,-1 -7.7,0.2 -3.3,1.6 -6.6,3.2 -9.9,4.7 -0.6,0.3 -1.1,0.7 -1.1,1.4 0,1.5 0,2.9 0.1,4.4 0,0.8 0.3,1.5 1.4,1.6 0.8,0.1 1.2,0.5 1.2,1.4 v 18.4 c 9.6,-3.4 19.4,-6.3 29.1,-9.4 2,-0.7 2.5,-1.2 2.5,-3.3 0,-5.2 0,-10.3 -0.1,-15.4 z m -24,11.6 c -0.1,1.1 -1.2,1.1 -1.9,1.1 -0.9,0 -0.5,-0.9 -0.5,-1.4 -0.1,-0.5 0,-1 0,-1.4 0,0 0,0 0,0 0,-0.6 0,-1.2 0,-1.7 0,-1 1.1,-1.9 2,-1.8 0.4,0 0.3,0.3 0.3,0.5 0.4,1.6 0.3,3.2 0.1,4.7 z m 13.5,-0.1 c -1,0.4 -2.2,0.1 -3.3,-0.1 -0.3,-0.1 -0.6,-0.2 -0.6,-0.5 -0.2,-1.4 -0.2,-2.8 0,-4.2 0,-0.3 0.3,-0.4 0.5,-0.5 0.1,0 0.3,0 0.4,0 2.8,-0.2 3.3,0.1 3.3,3.1 -0.2,0.7 0.4,1.9 -0.3,2.2 z m 4.5,0.6 c -0.2,-0.1 -0.5,-0.3 -0.5,-0.5 -0.2,-1.4 -0.2,-2.8 0,-4.2 0.1,-0.4 0.4,-0.7 0.9,-0.6 0.9,0.1 1.7,0.2 2.6,0.3 0.4,0.1 0.6,0.5 0.6,0.9 0,0.6 0,1.2 0,1.7 0,2.7 -1.1,3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5 -20.3,-5 -21.5,-5 -1.2,0 15.5,-6.4 15.5,-6.4 l 7.7,-1.2 23.4,-7.2 c 0,0 0,0 0,0 0.2,0.2 2.8,2.6 1.4,11 z"
+ id="path11" />
+ <path
+ class="st0"
+ d="m 580.2,346.3 c 0.7,0 1.2,-0.7 0.9,-1.3 -2,-5.3 -4.2,-10.5 -6.3,-15.8 -4.7,-11.5 -9.4,-23.1 -14,-34.7 -0.6,-1.4 -1.3,-1.9 -3.5,-1.5 -8.7,1.3 -17.6,0.7 -26.4,-0.1 -1.5,-0.1 -2.2,0.3 -2.7,1.4 -1.3,3.3 -2.7,6.6 -4.1,10 -5.7,14.2 -11.3,28.3 -17,42.5 -5.9,14.7 -11.9,29.3 -17.8,44 -6.2,15.4 -12,30.9 -18.5,46.1 -2.4,5.7 -8.7,19.2 -11.4,24.8 -0.6,1.2 -1.2,2.3 -1.9,3.3 h 31.8 c 0.1,-0.5 0.2,-0.9 0.4,-1.4 1.6,-4.6 4.6,-11.8 7.5,-18.5 v 0 L 513,405.8 c 0,-0.3 0.1,-0.7 0.3,-1.2 0.1,-0.3 0.2,-0.6 0.4,-1 2.4,-6 4.7,-11.9 7.1,-17.9 6.6,-16.8 13.1,-33.6 19.7,-50.3 1.1,-2.7 2.2,-5.4 3.3,-8.2 0.6,0.5 0.7,1.1 0.9,1.5 2.2,5.6 4.4,11.3 6.5,16.9 0.1,0.4 0.5,0.6 0.9,0.6 h 28.1 z"
+ id="path12" />
+ <polygon
+ class="st0"
+ points="558.5,297.2 558.5,298.5 549.5,303.6 542.7,305.8 539.2,307.2 531,292.9 557.3,292.9 "
+ id="polygon12" />
+</g>
+</svg>
diff --git a/backend/resources/images/profile.webp b/backend/resources/images/profile.webp
new file mode 100644
index 000000000..2be908a46
Binary files /dev/null and b/backend/resources/images/profile.webp differ
diff --git a/frontend/src/app.html b/frontend/src/app.html
index 2513d5b39..5ec408266 100644
--- a/frontend/src/app.html
+++ b/frontend/src/app.html
@@ -2,7 +2,7 @@
<html lang="%lang%">
<head>
<meta charset="utf-8" />
- <link rel="icon" href="%sveltekit.assets%/img/arcane.png" />
+ <link rel="icon" href="/api/app-images/favicon" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover" />
<link rel="manifest" href="%sveltekit.assets%/app.webmanifest" />
<meta name="theme-color" content="oklch(1 0 0)" media="(prefers-color-scheme: light)" />
diff --git a/frontend/src/lib/components/sidebar/sidebar-logo.svelte b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
index 7ac59f130..0453cd966 100644
--- a/frontend/src/lib/components/sidebar/sidebar-logo.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-logo.svelte
@@ -2,47 +2,34 @@
import type { AppVersionInformation } from '$lib/types/application-configuration';
import { cn } from '$lib/utils';
import { m } from '$lib/paraglide/messages';
+ import { getApplicationLogo } from '$lib/utils/image.util';
let { isCollapsed, versionInformation }: { isCollapsed: boolean; versionInformation: AppVersionInformation } = $props();
</script>
<div
class={cn(
- 'border-border/30 flex h-16 items-center border-b transition-all duration-300',
- isCollapsed ? 'justify-center px-2' : 'gap-3 px-4'
+ 'border-border/30 flex border-b transition-all duration-300',
+ isCollapsed ? 'h-16 items-center justify-center px-2' : 'h-14 items-center px-4'
)}
>
- <div class="relative flex shrink-0 items-center justify-center">
- <div
- class={cn(
- 'from-primary/20 to-primary/10 text-primary border-primary/20 flex items-center justify-center rounded-full border bg-gradient-to-br font-semibold transition-all duration-300',
- isCollapsed ? 'size-8' : 'size-10'
- )}
- >
- <img
- src="/img/arcane.svg"
- alt={m.layout_title()}
- class={cn('drop-shadow-sm transition-all duration-300', isCollapsed ? 'size-5' : 'size-7')}
- width={isCollapsed ? '20' : '28'}
- height={isCollapsed ? '20' : '28'}
- />
- </div>
- <div
- class={cn(
- 'bg-primary/10 absolute inset-0 rounded-full opacity-60 blur-xl transition-all duration-300',
- isCollapsed ? 'scale-75' : 'scale-100'
- )}
- ></div>
- </div>
- {#if !isCollapsed}
- <div class="flex min-w-0 flex-col justify-center">
- <span
- class="from-foreground to-foreground/80 bg-gradient-to-r bg-clip-text text-lg font-bold leading-none tracking-tight text-transparent"
- >{m.layout_title()}</span
- >
- <span class="text-muted-foreground/80 text-xs font-medium">
+ <div
+ class={cn(
+ 'relative flex shrink-0 items-center transition-all duration-300',
+ isCollapsed ? 'justify-center' : '-translate-y-1 flex-col items-start justify-center'
+ )}
+ >
+ <img
+ src={getApplicationLogo(!isCollapsed)}
+ alt={m.layout_title()}
+ class={cn('drop-shadow-sm transition-all duration-300', isCollapsed ? 'h-6 w-6' : 'h-9 w-auto max-w-[160px]')}
+ width={isCollapsed ? '24' : '160'}
+ height={isCollapsed ? '24' : '72'}
+ />
+ {#if !isCollapsed}
+ <span class="text-muted-foreground/80 absolute bottom-[-0.35rem] left-1/2 translate-x-[20%] text-xs font-medium">
{m.sidebar_version({ version: versionInformation?.currentVersion ?? m.common_unknown() })}
</span>
- </div>
- {/if}
+ {/if}
+ </div>
</div>
diff --git a/frontend/src/lib/components/sidebar/sidebar-user.svelte b/frontend/src/lib/components/sidebar/sidebar-user.svelte
index cf70fbca0..eb9fa40ca 100644
--- a/frontend/src/lib/components/sidebar/sidebar-user.svelte
+++ b/frontend/src/lib/components/sidebar/sidebar-user.svelte
@@ -12,6 +12,7 @@
import settingsStore from '$lib/stores/config-store';
import { m } from '$lib/paraglide/messages';
import LocalePicker from '$lib/components/locale-picker.svelte';
+ import { getDefaultProfilePicture } from '$lib/utils/image.util';
let { user, isCollapsed }: { user: User; isCollapsed: boolean } = $props();
const sidebar = useSidebar();
@@ -52,14 +53,14 @@
<Avatar.Root class="size-8 rounded-lg">
{#if $settingsStore.enableGravatar}
{#await getGravatarUrl(user?.email)}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
+ <Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{:then url}
- <Avatar.Image src={url || '/img/profile.jpg'} alt={user.displayName} />
+ <Avatar.Image src={url} alt={user.displayName} />
{:catch _}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
+ <Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{/await}
{:else}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
+ <Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{/if}
<Avatar.Fallback
class="from-primary/20 to-primary/10 text-primary border-primary/20 rounded-lg border bg-gradient-to-br"
@@ -97,14 +98,14 @@
<Avatar.Root class="size-8 shrink-0 rounded-lg">
{#if $settingsStore.enableGravatar}
{#await getGravatarUrl(user?.email)}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
+ <Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{:then url}
- <Avatar.Image src={url || '/img/profile.jpg'} alt={user.displayName} />
+ <Avatar.Image src={url} alt={user.displayName} />
{:catch _}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
+ <Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{/await}
{:else}
- <Avatar.Image src="/img/profile.jpg" alt={user.displayName} />
+ <Avatar.Image src={getDefaultProfilePicture()} alt={user.displayName} />
{/if}
<Avatar.Fallback
class="from-primary/20 to-primary/10 text-primary border-primary/20 rounded-lg border bg-gradient-to-br"
@@ -120,8 +121,8 @@
</DropdownMenu.Label>
<DropdownMenu.Separator />
- <LocalePicker
- inline={false}
+ <LocalePicker
+ inline={false}
onOpenChange={(open: boolean) => {
localePickerOpen = open;
if (!open && sidebar.state === 'collapsed') {
diff --git a/frontend/src/lib/services/api-service.ts b/frontend/src/lib/services/api-service.ts
index 104bdcd04..6e2901975 100644
--- a/frontend/src/lib/services/api-service.ts
+++ b/frontend/src/lib/services/api-service.ts
@@ -57,6 +57,26 @@ abstract class BaseAPIService {
return new Promise(() => {});
}
}
+
+ try {
+ const data = error?.response?.data;
+ const inner = (data && typeof data === 'object' ? ((data as any).data ?? data) : data) as any;
+ let serverMsg: string | undefined;
+ if (typeof inner === 'string') {
+ serverMsg = inner;
+ } else if (inner) {
+ serverMsg = inner.error || inner.message || inner.error_description;
+ if (!serverMsg && Array.isArray(inner.errors) && inner.errors.length) {
+ serverMsg = inner.errors[0]?.message || inner.errors[0];
+ }
+ }
+ if (serverMsg && typeof serverMsg === 'string') {
+ error.message = serverMsg;
+ }
+ } catch {
+ // ignore extraction issues; fall back to default axios message
+ }
+
return Promise.reject(error);
}
);
diff --git a/frontend/src/lib/utils/image.util.ts b/frontend/src/lib/utils/image.util.ts
new file mode 100644
index 000000000..2950c6547
--- /dev/null
+++ b/frontend/src/lib/utils/image.util.ts
@@ -0,0 +1,37 @@
+type SkipCacheUntil = {
+ [key: string]: number;
+};
+
+export function getApplicationLogo(full = false): string {
+ const url = full ? '/api/app-images/logo?full=true' : '/api/app-images/logo';
+ return getCachedImageUrl(url);
+}
+export function getDefaultProfilePicture(): string {
+ return getCachedImageUrl('/api/app-images/profile');
+}
+
+function getCachedImageUrl(url: string) {
+ const skipCacheUntil = getSkipCacheUntil(url);
+ const skipCache = skipCacheUntil > Date.now();
+ if (skipCache) {
+ const separator = url.includes('?') ? '&' : '?';
+ url += separator + 'skip-cache=' + skipCacheUntil.toString();
+ }
+
+ return url.toString();
+}
+
+function getSkipCacheUntil(url: string) {
+ const skipCacheUntil: SkipCacheUntil = JSON.parse(localStorage.getItem('skip-cache-until') ?? '{}');
+ return skipCacheUntil[hashKey(url)] ?? 0;
+}
+
+function hashKey(key: string): string {
+ let hash = 0;
+ for (let i = 0; i < key.length; i++) {
+ const char = key.charCodeAt(i);
+ hash = (hash << 5) - hash + char;
+ hash = hash & hash;
+ }
+ return Math.abs(hash).toString(36);
+}
diff --git a/frontend/src/routes/auth/login/+page.svelte b/frontend/src/routes/auth/login/+page.svelte
index 9134ad6cc..ea36d8cae 100644
--- a/frontend/src/routes/auth/login/+page.svelte
+++ b/frontend/src/routes/auth/login/+page.svelte
@@ -15,6 +15,7 @@
import { m } from '$lib/paraglide/messages';
import { settingsService } from '$lib/services/settings-service';
import { authService } from '$lib/services/auth-service';
+ import { getApplicationLogo } from '$lib/utils/image.util';
let { data }: { data: PageData } = $props();
@@ -66,8 +67,8 @@
<div class="bg-muted flex min-h-screen flex-col items-center justify-center p-6 md:p-10">
<div class="w-full max-w-sm md:max-w-3xl">
<div class="flex flex-col gap-6">
- <Card.Root class="flex flex-col gap-6 overflow-hidden p-0 py-3">
- <Card.Content class="grid p-0 px-6 md:grid-cols-2">
+ <Card.Root class="flex flex-col gap-6 overflow-hidden p-0">
+ <Card.Content class="grid p-0 md:grid-cols-2">
<div class={showOidcLoginButton && !showLocalLoginForm ? 'flex items-center justify-center p-6 md:p-8' : 'p-6 md:p-8'}>
<div class="flex flex-col gap-6">
<div class="flex flex-col items-center text-center">
@@ -177,9 +178,13 @@
{#if showDivider}
<div
- class="after:border-border relative text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t"
+ class="after:border-border/60 relative my-2 text-center text-sm after:absolute after:inset-0 after:top-1/2 after:z-0 after:flex after:items-center after:border-t"
>
- <span class="bg-card text-muted-foreground relative z-10 px-2"> {m.auth_or_continue()} </span>
+ <span
+ class="bg-card/70 text-muted-foreground supports-[backdrop-filter]:bg-card/50 relative z-10 inline-flex items-center rounded-full px-3 py-0.5 text-xs backdrop-blur"
+ >
+ {m.auth_or_continue()}
+ </span>
</div>
{/if}
@@ -194,11 +199,11 @@
</div>
<div
- class="hidden bg-gradient-to-br from-blue-600/10 via-indigo-600/10 to-purple-600/10 md:flex md:items-center md:justify-center"
+ class="hidden h-full w-full bg-gradient-to-br from-blue-600/10 via-indigo-600/10 to-purple-600/10 md:flex md:items-center md:justify-center"
>
<div class="space-y-4 p-8 text-center">
<div class="mb-8">
- <img class="mx-auto h-32 w-auto opacity-60" src="/img/arcane.svg" alt={m.layout_title()} />
+ <img class="mx-auto h-32 w-auto opacity-60" src={getApplicationLogo()} alt={m.layout_title()} />
</div>
<h2 class="text-foreground/80 text-2xl font-bold">{m.layout_title()}</h2>
<p class="text-muted-foreground max-w-xs text-balance">{m.auth_tagline()}</p>
@@ -210,14 +215,14 @@
</div>
</div>
-<div class="fixed right-0 bottom-0 left-0 p-4">
- <div class="text-muted-foreground text-center text-xs text-balance">
+<div class="fixed bottom-0 left-0 right-0 p-4">
+ <div class="text-muted-foreground text-balance text-center text-xs">
<div class="flex items-center justify-center gap-4">
<a
href="https://github.com/ofkm/arcane"
target="_blank"
rel="noopener noreferrer"
- class="hover:text-primary underline underline-offset-4"
+ class="bg-card/70 text-muted-foreground supports-[backdrop-filter]:bg-card/50 hover:text-primary relative inline-flex items-center rounded-full px-3 py-0.5 text-xs backdrop-blur transition-colors"
>
{m.common_view_on_github()}
</a>
diff --git a/frontend/src/routes/onboarding/+layout.svelte b/frontend/src/routes/onboarding/+layout.svelte
index d852e31c1..38d48f4ad 100644
--- a/frontend/src/routes/onboarding/+layout.svelte
+++ b/frontend/src/routes/onboarding/+layout.svelte
@@ -6,6 +6,7 @@
import ShieldIcon from '@lucide/svelte/icons/shield';
import CircleCheckIcon from '@lucide/svelte/icons/check-circle';
import { page } from '$app/state';
+ import { getApplicationLogo } from '$lib/utils/image.util';
let { children } = $props();
@@ -24,7 +25,7 @@
<div class="flex min-h-screen flex-col">
<header class="border-b px-8 py-8">
<div class="flex items-center">
- <img src="/img/arcane.png" alt="Arcane" class="size-12" />
+ <img src={getApplicationLogo()} alt="Arcane" class="size-12" />
<h1 class="ml-4 text-2xl font-bold">Arcane Setup</h1>
</div>
</header>
diff --git a/frontend/static/img/arcane.png b/frontend/static/img/arcane.png
deleted file mode 100644
index f3ff76e69..000000000
Binary files a/frontend/static/img/arcane.png and /dev/null differ
diff --git a/frontend/static/img/arcane.svg b/frontend/static/img/arcane.svg
deleted file mode 100644
index fbcd19df6..000000000
--- a/frontend/static/img/arcane.svg
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" standalone="no"?>
-<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
- "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
-<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
- width="500.000000pt" height="500.000000pt" viewBox="0 0 500.000000 500.000000"
- preserveAspectRatio="xMidYMid meet">
-
-<g transform="translate(0.000000,500.000000) scale(0.100000,-0.100000)"
-fill="rgb(109, 40, 217)" stroke="none">
-<path d="M2307 3754 c-20 -11 -39 -39 -64 -92 -20 -42 -93 -198 -163 -347 -70
--148 -143 -304 -163 -345 -19 -41 -65 -138 -102 -215 -37 -77 -99 -207 -137
--290 -72 -153 -202 -428 -323 -680 -138 -288 -147 -311 -134 -339 16 -35 40
--38 261 -34 172 3 189 5 207 23 11 11 52 90 92 175 81 173 120 240 187 318 89
-106 226 186 375 221 150 35 207 79 272 210 43 87 41 91 -49 111 -99 22 -190
-23 -291 5 -53 -9 -98 -15 -101 -12 -5 5 26 75 148 327 52 107 103 212 113 233
-24 52 58 73 90 59 25 -12 65 -89 227 -437 105 -224 104 -220 88 -295 -27 -129
--97 -233 -204 -302 -61 -40 -100 -53 -194 -68 -128 -21 -250 -111 -308 -226
--26 -54 -29 -68 -29 -169 0 -102 2 -115 29 -170 38 -77 114 -153 191 -191 55
--27 69 -29 170 -29 102 0 114 2 169 30 152 77 238 230 222 394 -3 36 -9 75
--12 87 -4 16 2 26 28 41 18 11 66 48 105 82 40 33 77 61 81 61 8 0 76 -136
-176 -352 60 -130 55 -128 288 -128 150 0 188 3 206 16 42 29 41 32 -150 434
--103 216 -342 718 -375 790 -20 41 -73 153 -119 249 -46 95 -84 175 -84 176 0
-2 -34 74 -75 160 -41 87 -75 158 -75 160 0 1 -36 77 -80 169 -103 214 -90 206
--305 206 -124 -1 -166 -4 -188 -16z"/>
-</g>
-</svg>
diff --git a/frontend/static/img/profile.jpg b/frontend/static/img/profile.jpg
deleted file mode 100644
index c91545ac3..000000000
Binary files a/frontend/static/img/profile.jpg and /dev/null differ