From c4244c1097a7378125d639c539e845b26d243fdf Mon Sep 17 00:00:00 2001 From: lethdat Date: Mon, 19 Jan 2026 23:58:45 +0700 Subject: [PATCH] feat: update icon components to support filled state and improve upload page layout - Refactored HardDriveUpload, Home, Layout, LinkIcon, Upload, and Video components to include a 'filled' prop for conditional rendering of SVGs. - Enhanced the Upload.vue page with a more structured layout, including a PageHeader and improved button interactions for local and remote upload modes. - Added visual feedback for upload tips and improved accessibility with better button labeling. - Updated the upload queue display and added loading states for files being fetched from external sources. --- src/api/client.ts | 3 +- src/api/httpClientAdapter.server.ts | 3 +- src/components/DashboardLayout.vue | 5 +- src/components/dashboard/PageHeader.vue | 12 +- src/components/icons/Bell.vue | 4 +- src/components/icons/Credit.vue | 4 +- src/components/icons/HardDriveUpload.vue | 6 +- src/components/icons/Home.vue | 5 +- src/components/icons/LinkIcon.vue | 8 +- src/components/icons/Upload.vue | 6 +- src/components/icons/Video.vue | 4 +- src/index.tsx | 17 +- src/routes/upload/Upload.vue | 252 ++++++++++++++--------- 13 files changed, 211 insertions(+), 118 deletions(-) diff --git a/src/api/client.ts b/src/api/client.ts index 0e8bb74..693994c 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -673,6 +673,7 @@ export class Api< } export const client = new Api({ - baseUrl: 'http://localhost:8080', + baseUrl: 'r', + // baseUrl: 'https://carey-novelty-various-manufacturers.trycloudflare.com', customFetch }); \ No newline at end of file diff --git a/src/api/httpClientAdapter.server.ts b/src/api/httpClientAdapter.server.ts index 6152e73..0da3ffb 100644 --- a/src/api/httpClientAdapter.server.ts +++ b/src/api/httpClientAdapter.server.ts @@ -10,7 +10,8 @@ export const customFetch = async (url: string, options: RequestInit) => { Object.assign(options, { headers: c.req.header() }); - const res = await fetch(url, options); + const res = await fetch(["https://carey-novelty-various-manufacturers.trycloudflare.com", url.replace(/r\//, '')].join('/'), options); + console.log('Fetching URL:', res); res.headers.forEach((value, key) => { c.header(key, value); }); diff --git a/src/components/DashboardLayout.vue b/src/components/DashboardLayout.vue index 38c2650..3f6a9ad 100644 --- a/src/components/DashboardLayout.vue +++ b/src/components/DashboardLayout.vue @@ -6,11 +6,8 @@ import Video from "@/components/icons/Video.vue"; import Credit from "@/components/icons/Credit.vue"; import Upload from "./icons/Upload.vue"; import { cn } from "@/lib/utils"; -import { useAuthStore } from "@/stores/auth"; import { createStaticVNode } from "vue"; -const auth = useAuthStore(); - const className = ":uno: w-12 h-12 p-2 rounded-2xl hover:bg-primary/15 flex press-animated items-center justify-center"; const homeHoist = createStaticVNode(`Logo`, 1); const profileHoist = createStaticVNode(`
@@ -33,7 +30,7 @@ const links = [ - +
diff --git a/src/components/dashboard/PageHeader.vue b/src/components/dashboard/PageHeader.vue index 67ef7a9..109c96f 100644 --- a/src/components/dashboard/PageHeader.vue +++ b/src/components/dashboard/PageHeader.vue @@ -1,4 +1,6 @@