From 6089c569a1bf40a325c2b528a44a1dc4da8e3a65 Mon Sep 17 00:00:00 2001 From: grngxd <36968271+grngxd@users.noreply.github.com> Date: Sun, 8 Jun 2025 16:44:26 +0100 Subject: [PATCH] file deleting --- src/components/Controlbar.tsx | 2 +- src/components/File.tsx | 58 +++++++++++++++++++++++---------- src/components/Icons.tsx | 7 ++++ src/lib/api.ts | 40 +++++++++++++---------- src/routes/api/[path]/index.tsx | 3 +- 5 files changed, 74 insertions(+), 36 deletions(-) diff --git a/src/components/Controlbar.tsx b/src/components/Controlbar.tsx index fc22766..1e7911d 100644 --- a/src/components/Controlbar.tsx +++ b/src/components/Controlbar.tsx @@ -32,7 +32,7 @@ export default component$(() => { } }) return ( -
- {file.ID.split("_").slice(1).join("_") || "Untitled"} + { file.ID.split("_").slice(1).join("_") || "Untitled" }
Uploaded on {new Date(file.CreatedAt).toLocaleDateString()}
+Uploaded on { new Date(file.CreatedAt).toLocaleDateString() }