From 0a7bfef49b1c06ce0c3cd5cb16f6c427cb83d21a Mon Sep 17 00:00:00 2001 From: Thinley Date: Wed, 30 Oct 2024 16:57:15 +0530 Subject: [PATCH] FIX: Fix some bugs closes #35 closes #36 --- web/actions/user.ts | 2 +- web/public/arrow.png | Bin 266 -> 0 bytes web/src/app/components/DragDrop.tsx | 4 +- web/src/app/components/InputBox.tsx | 6 +-- web/src/app/components/RemoveApi.tsx | 6 +++ web/src/app/components/SetApi.tsx | 61 +++++++++++++++------- web/src/app/components/SheetSide.tsx | 13 +++-- web/src/app/limit-cross/page.tsx | 22 ++++++++ web/src/app/upload/Components/Sidebar.tsx | 29 ++++++++++ web/src/app/upload/page.tsx | 4 +- 10 files changed, 115 insertions(+), 32 deletions(-) delete mode 100644 web/public/arrow.png create mode 100644 web/src/app/limit-cross/page.tsx create mode 100644 web/src/app/upload/Components/Sidebar.tsx diff --git a/web/actions/user.ts b/web/actions/user.ts index 4fd651d..ea87f8b 100644 --- a/web/actions/user.ts +++ b/web/actions/user.ts @@ -29,7 +29,7 @@ export async function create(question: string, context: string, collectionName: revalidatePath("/chat"); return response.data.message; } catch(e) { - redirect('/upload'); + redirect('/limit-cross'); return e; } } diff --git a/web/public/arrow.png b/web/public/arrow.png deleted file mode 100644 index 3317c8838e2d1dbb0be550f541d29f619c22e988..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 266 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`GjoCO|{#S9GG!XV7ZFl!D-1!HlL zyA#8@b22Z19F}xPUq=Rpjs4tz5?O)#`JOJ0Ar*{oCna(=7zni9Kf>U)q0#LEo7=|5 zz%>ah$~PR8ZzSwvX8m}4&%)me-!vb;QBiGO#_nR*yVcBDLt { console.error("Upload failed", error); alert("File upload failed."); } finally { - setLoading(false); // Stop loading after the process is complete + // setLoading(false); // Stop loading after the process is complete } } } @@ -86,7 +86,7 @@ export const DragDrop = () => {
Drag & Drop to Upload File
OR