From 907e093fef7c4e552c9f83b3b403a4289b172fc9 Mon Sep 17 00:00:00 2001 From: kuekhaoyang Date: Sat, 22 Nov 2025 17:27:27 +0800 Subject: [PATCH] update proxy url --- app/api/proxy/route.ts | 2 +- components/settings/SourceManager.tsx | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/app/api/proxy/route.ts b/app/api/proxy/route.ts index b8a9939..34a1198 100644 --- a/app/api/proxy/route.ts +++ b/app/api/proxy/route.ts @@ -9,7 +9,7 @@ export async function GET(request: NextRequest) { try { // Beijing IP address to simulate request from China - const chinaIP = '202.108.22.5'; + const chinaIP = '113.204.79.230'; const response = await fetch(url, { headers: { diff --git a/components/settings/SourceManager.tsx b/components/settings/SourceManager.tsx index f069aa8..d3bdeba 100644 --- a/components/settings/SourceManager.tsx +++ b/components/settings/SourceManager.tsx @@ -12,7 +12,7 @@ export function SourceManager({ sources, onSourcesChange }: SourceManagerProps) const [editingId, setEditingId] = useState(null); const handleToggle = (id: string) => { - const updated = sources.map(s => + const updated = sources.map(s => s.id === id ? { ...s, enabled: !s.enabled } : s ); onSourcesChange(updated); @@ -32,7 +32,7 @@ export function SourceManager({ sources, onSourcesChange }: SourceManagerProps) const updated = [...sources]; [updated[currentIndex], updated[newIndex]] = [updated[newIndex], updated[currentIndex]]; - + // Update priorities updated.forEach((s, idx) => s.priority = idx + 1); onSourcesChange(updated); @@ -54,16 +54,14 @@ export function SourceManager({ sources, onSourcesChange }: SourceManagerProps) aria-label={`Toggle ${source.name}`} > @@ -88,10 +86,10 @@ export function SourceManager({ sources, onSourcesChange }: SourceManagerProps) aria-label="Move up" > - + - + @@ -110,7 +108,7 @@ export function SourceManager({ sources, onSourcesChange }: SourceManagerProps) aria-label="Delete source" > - +