From 7bead3709ab9e6a4904987cf01dc5c5a6e990012 Mon Sep 17 00:00:00 2001 From: Chever John Date: Thu, 21 Aug 2025 17:28:35 +0800 Subject: [PATCH] chore: remove devv-app and external static.devv.ai references; no external data fetch --- index.html | 10 +--------- server/src/index.ts | 17 +---------------- .../purchase/components/DogMotivation.tsx | 13 ++++--------- 3 files changed, 6 insertions(+), 34 deletions(-) diff --git a/index.html b/index.html index 3d67f1a..ab0802b 100644 --- a/index.html +++ b/index.html @@ -9,15 +9,7 @@
- - + diff --git a/server/src/index.ts b/server/src/index.ts index 4480259..fa1e9b7 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -61,22 +61,7 @@ app.get('/health', (_req, res) => { res.json({ ok: true }); }); -// Proxy external devv-app.js to avoid browser CORS for module scripts -app.get('/devv-app.js', async (_req, res) => { - try { - const response = await fetch('https://static.devv.ai/devv-app.js'); - if (!response.ok) { - res.status(response.status).type('text/plain').send(''); - return; - } - res.setHeader('Content-Type', 'application/javascript; charset=utf-8'); - res.setHeader('Cache-Control', 'public, max-age=3600'); - const bodyText = await response.text(); - res.send(bodyText); - } catch (error) { - res.status(502).type('application/javascript').send('// proxy error'); - } -}); + type DbRow = { id: string; diff --git a/src/features/purchase/components/DogMotivation.tsx b/src/features/purchase/components/DogMotivation.tsx index ebd2eca..ed2ed45 100644 --- a/src/features/purchase/components/DogMotivation.tsx +++ b/src/features/purchase/components/DogMotivation.tsx @@ -3,10 +3,9 @@ import { Card, CardContent } from "@/components/ui/card"; export function DogMotivation() { return (
- {/* Blurred background dog image */} + {/* Soft gradient background (no external images) */}
{/* Decorative ribbons with gradient */} @@ -17,12 +16,8 @@ export function DogMotivation() {
{/* Original image in proper size */} -
- 有决心的狗狗 +
+ 🐶