From e45997879730b0e72a1cbebc29fa729e16f9d44b Mon Sep 17 00:00:00 2001 From: Wikid82 Date: Wed, 26 Nov 2025 03:19:12 +0000 Subject: [PATCH 01/57] feat: replace title with banner image in mobile header and main layout --- frontend/src/components/Layout.tsx | 4 ++-- frontend/src/components/__tests__/Layout.test.tsx | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index bf688884..fb583637 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -74,7 +74,7 @@ export default function Layout({ children }: LayoutProps) {
{/* Mobile Header */}
-

CPM+

+ CPM+
@@ -253,7 +253,7 @@ export default function Layout({ children }: LayoutProps) {
-

CPM+

+ CPM+
{user && ( diff --git a/frontend/src/components/__tests__/Layout.test.tsx b/frontend/src/components/__tests__/Layout.test.tsx index f2047584..90080719 100644 --- a/frontend/src/components/__tests__/Layout.test.tsx +++ b/frontend/src/components/__tests__/Layout.test.tsx @@ -44,14 +44,16 @@ const renderWithProviders = (children: ReactNode) => { } describe('Layout', () => { - it('renders the application title', () => { + it('renders the application logo', () => { renderWithProviders(
Test Content
) - expect(screen.getAllByText('CPM+')[0]).toBeInTheDocument() + const logos = screen.getAllByAltText('CPM+') + expect(logos.length).toBeGreaterThan(0) + expect(logos[0]).toBeInTheDocument() }) it('renders all navigation items', () => { From 1891cbb75a1c3449e038b0ff21ea17a271a1b13b Mon Sep 17 00:00:00 2001 From: Wikid82 Date: Wed, 26 Nov 2025 03:49:38 +0000 Subject: [PATCH 02/57] feat: add static file serving for banner, logo, and favicon in router --- backend/internal/server/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/internal/server/server.go b/backend/internal/server/server.go index 45dce379..0d3edd1e 100644 --- a/backend/internal/server/server.go +++ b/backend/internal/server/server.go @@ -15,6 +15,9 @@ func NewRouter(frontendDir string) *gin.Engine { if frontendDir != "" { router.Static("/assets", frontendDir+"/assets") router.StaticFile("/", frontendDir+"/index.html") + router.StaticFile("/banner.png", frontendDir+"/banner.png") + router.StaticFile("/logo.png", frontendDir+"/logo.png") + router.StaticFile("/favicon.png", frontendDir+"/favicon.png") router.NoRoute(func(c *gin.Context) { c.File(frontendDir + "/index.html") }) From 20cf3d1010d0b73b9cae3850d19189acdaf2e25f Mon Sep 17 00:00:00 2001 From: Wikid82 Date: Wed, 26 Nov 2025 03:57:18 +0000 Subject: [PATCH 03/57] feat: update banner image dimensions for improved responsiveness --- frontend/src/components/Layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index fb583637..1760b083 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -74,7 +74,7 @@ export default function Layout({ children }: LayoutProps) {
{/* Mobile Header */}
- CPM+ + CPM+
@@ -253,7 +253,7 @@ export default function Layout({ children }: LayoutProps) {
- CPM+ + CPM+
{user && ( From ba05c5e9451df8bf5aa85027a4569050c75d875c Mon Sep 17 00:00:00 2001 From: Wikid82 Date: Wed, 26 Nov 2025 04:05:37 +0000 Subject: [PATCH 04/57] feat: adjust banner image layout for better alignment and size --- frontend/src/components/Layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 1760b083..f8b94071 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -252,8 +252,8 @@ export default function Layout({ children }: LayoutProps) {
-
- CPM+ +
+ CPM+
{user && ( From 06d0aca8a4bda0f5c54cfe8a268424f301c126b7 Mon Sep 17 00:00:00 2001 From: Wikid82 Date: Wed, 26 Nov 2025 14:23:18 +0000 Subject: [PATCH 05/57] feat: update favicon and adjust logo/banner display in layout --- frontend/index.html | 2 +- frontend/src/components/Layout.tsx | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index 97bdf468..815a2c98 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,7 +2,7 @@ - + Caddy Proxy Manager+ diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index f8b94071..14226868 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -91,8 +91,12 @@ export default function Layout({ children }: LayoutProps) { ${mobileSidebarOpen ? 'translate-x-0' : '-translate-x-full lg:translate-x-0'} ${isCollapsed ? 'w-20' : 'w-64'} `}> -