From 55f467a10e20627c561ab8e1a0cb9b38f93c4105 Mon Sep 17 00:00:00 2001 From: lethdat Date: Fri, 23 Jan 2026 02:21:55 +0700 Subject: [PATCH] update ui --- src/api/client.ts | 2 +- src/api/httpClientAdapter.server.ts | 2 +- src/components/DashboardLayout.vue | 2 +- src/components/dashboard/PageHeader.vue | 2 + src/index.tsx | 11 +- src/lib/utils.ts | 6 +- src/routes/add/Add.vue | 50 +++- src/routes/index.ts | 8 +- src/routes/plans/Plans.vue | 358 ++++++++++++++++++++---- src/routes/profile/Profile.vue | 182 ++++++++++++ src/routes/video/Videos.vue | 40 ++- 11 files changed, 582 insertions(+), 81 deletions(-) create mode 100644 src/routes/profile/Profile.vue diff --git a/src/api/client.ts b/src/api/client.ts index efff94c..528e28a 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -681,6 +681,6 @@ export class Api< export const client = new Api({ baseUrl: 'r', - // baseUrl: 'https://cheapest-representations-corporations-related.trycloudflare.com', + // baseUrl: 'https://api.pipic.fun', customFetch }); \ No newline at end of file diff --git a/src/api/httpClientAdapter.server.ts b/src/api/httpClientAdapter.server.ts index 3edb0d1..18ddc72 100644 --- a/src/api/httpClientAdapter.server.ts +++ b/src/api/httpClientAdapter.server.ts @@ -10,7 +10,7 @@ export const customFetch = async (url: string, options: RequestInit) => { Object.assign(options, { headers: c.req.header() }); - const res = await fetch(["https://cheapest-representations-corporations-related.trycloudflare.com", url.replace(/r\//, '')].join('/'), options); + const res = await fetch(["https://api.pipic.fun", url.replace(/r\//, '')].join('/'), options); res.headers.forEach((value, key) => { c.header(key, value); }); diff --git a/src/components/DashboardLayout.vue b/src/components/DashboardLayout.vue index 3f6a9ad..764a738 100644 --- a/src/components/DashboardLayout.vue +++ b/src/components/DashboardLayout.vue @@ -19,7 +19,7 @@ const links = [ { href: "/", label: "Overview", icon: Home, type: "a", className }, { href: "/upload", label: "Upload", icon: Upload, type: "a", className }, { href: "/video", label: "Video", icon: Video, type: "a", className }, - { href: "/plans", label: "Plans", icon: Credit, type: "a", className }, + { href: "/payments-and-plans", label: "Payments & Plans", icon: Credit, type: "a", className }, { href: "/notification", label: "Notification", icon: Bell, type: "a", className }, { href: "/profile", label: "Profile", icon: profileHoist, type: "a", className: 'w-12 h-12 rounded-2xl hover:bg-primary/15 flex' }, ]; diff --git a/src/components/dashboard/PageHeader.vue b/src/components/dashboard/PageHeader.vue index 1291ae2..d3e3e7b 100644 --- a/src/components/dashboard/PageHeader.vue +++ b/src/components/dashboard/PageHeader.vue @@ -1,6 +1,7 @@ + + diff --git a/src/routes/profile/Profile.vue b/src/routes/profile/Profile.vue new file mode 100644 index 0000000..6ff27a7 --- /dev/null +++ b/src/routes/profile/Profile.vue @@ -0,0 +1,182 @@ + + + + + diff --git a/src/routes/video/Videos.vue b/src/routes/video/Videos.vue index 0f3d718..7c4df58 100644 --- a/src/routes/video/Videos.vue +++ b/src/routes/video/Videos.vue @@ -1,9 +1,11 @@