Update services with new images and descriptions, allowing admin edits

Add new images and descriptions for six services, update image URL resolution logic, and register generated assets.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: ea511886-fccb-4ba5-92ab-56a4a5bb8193
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/pCDTgLS
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
riyadhafraa
2026-04-20 15:38:22 +00:00
parent 18e99ec07f
commit ea77b92120
8 changed files with 41 additions and 1 deletions
+36
View File
@@ -6,3 +6,39 @@ id = "eD84DGRCWiOa5scCp_Thx"
uri = "file://artifacts/teaboy-os/src/assets/login-art.png"
type = "image"
title = "login art"
[[generated]]
id = "Dy7wCo-RCUzJlVjqDJODC"
uri = "file://artifacts/teaboy-os/public/service-images/tea.png"
type = "image"
title = "generated_image"
[[generated]]
id = "zvodbXSr2tAsyVcYJXTxE"
uri = "file://artifacts/teaboy-os/public/service-images/arabic-coffee.png"
type = "image"
title = "generated_image"
[[generated]]
id = "RyxcoHUo53xV4Vm4SIC9u"
uri = "file://artifacts/teaboy-os/public/service-images/water.png"
type = "image"
title = "generated_image"
[[generated]]
id = "mxCcnlnUFIa-DVsz3EAkI"
uri = "file://artifacts/teaboy-os/public/service-images/nescafe.png"
type = "image"
title = "generated_image"
[[generated]]
id = "BsyqgR_m14Yf0_KjQ7IG8"
uri = "file://artifacts/teaboy-os/public/service-images/juice.png"
type = "image"
title = "generated_image"
[[generated]]
id = "rNA7O4IB9yyq38zpUWFi6"
uri = "file://artifacts/teaboy-os/public/service-images/soft-drink.png"
type = "image"
title = "generated_image"
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 926 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1007 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

+5 -1
View File
@@ -3,5 +3,9 @@ export function resolveServiceImageUrl(value: string | null | undefined): string
const trimmed = value.trim();
if (!trimmed) return null;
if (trimmed.startsWith("/objects/")) return `/api/storage${trimmed}`;
return trimmed;
if (/^https?:\/\//i.test(trimmed)) return trimmed;
// Treat as a path relative to the frontend's base (e.g. files in /public).
const base = import.meta.env.BASE_URL ?? "/";
const cleaned = trimmed.replace(/^\/+/, "");
return `${base}${cleaned}`;
}