From 90d8409aa9ce24618812040f6cf2f40a6b845d10 Mon Sep 17 00:00:00 2001 From: "Mr.Dat" Date: Mon, 16 Mar 2026 17:09:31 +0700 Subject: [PATCH] refactor: update UI styles to use new header background color - Changed background color for various select elements and containers in Users.vue and Videos.vue to use 'bg-header'. - Updated background color for status and role filters in the admin section. - Adjusted background colors in Home.vue, QuickActions.vue, and other components to enhance UI consistency. - Refactored Billing.vue and DomainsDns.vue to align with new design standards. - Modified settings components to utilize new header color for better visual hierarchy. - Improved accessibility and visual feedback in the SettingsRow and SettingsSectionCard components. - Updated authentication middleware to include timestamp cookie for session management. - Enhanced gRPC client to build internal metadata for service calls. --- src/api/httpClientAdapter.server.ts | 4 + src/components/DashboardLayout.vue | 6 +- src/components/DashboardNav.vue | 4 +- src/components/app/AppButton.vue | 93 ++++++++----------- src/components/app/AppDialog.vue | 4 +- src/components/app/AppInput.vue | 2 +- src/components/dashboard/StatsCard.vue | 2 +- src/components/icons/Add.vue | 4 +- src/components/icons/AdvertisementIcon.vue | 2 +- src/components/icons/Chart.vue | 4 +- src/components/icons/Credit.vue | 4 +- src/components/icons/FileUploadType.vue | 4 +- src/components/icons/HardDriveUpload.vue | 4 +- src/components/icons/Home.vue | 2 +- src/components/icons/Layout.vue | 4 +- src/components/icons/LinkIcon.vue | 2 +- src/components/icons/Upload.vue | 4 +- src/components/icons/UserIcon.vue | 4 +- src/components/icons/Video.vue | 2 +- src/components/icons/VideoPlayIcon.vue | 4 +- src/index.tsx | 5 +- src/routes/admin/AdTemplates.vue | 8 +- src/routes/admin/Jobs.vue | 6 +- src/routes/admin/Payments.vue | 6 +- src/routes/admin/Plans.vue | 12 +-- src/routes/admin/Users.vue | 8 +- src/routes/admin/Videos.vue | 10 +- src/routes/home/Home.vue | 4 +- .../overview/components/QuickActions.vue | 8 +- src/routes/overview/components/Referral.vue | 4 +- .../overview/components/StatsOverview.vue | 6 +- src/routes/settings/Billing/Billing.vue | 12 +-- src/routes/settings/DomainsDns/DomainsDns.vue | 4 +- .../SecurityNConnected/SecurityNConnected.vue | 74 ++------------- src/routes/settings/Settings.vue | 24 ++--- .../settings/components/SettingsRow.vue | 6 +- .../components/SettingsSectionCard.vue | 4 +- src/routes/upload/components/UploadQueue.vue | 3 +- src/routes/video/components/VideoTable.vue | 4 +- src/server/middlewares/authenticate.ts | 39 ++++---- src/server/middlewares/setup.ts | 4 +- src/server/services/grpcClient.ts | 2 +- uno.config.ts | 3 +- 43 files changed, 174 insertions(+), 241 deletions(-) diff --git a/src/api/httpClientAdapter.server.ts b/src/api/httpClientAdapter.server.ts index 2453acd..cfbc77c 100644 --- a/src/api/httpClientAdapter.server.ts +++ b/src/api/httpClientAdapter.server.ts @@ -47,6 +47,7 @@ export function httpClientAdapter(opts: { } else { res = await fetch(req); } + if (!res.ok) { // throw new Error(`HTTP error: ${res.status}`); throw new Error( @@ -59,6 +60,9 @@ export function httpClientAdapter(opts: { ); // throw TinyRpcError.deserialize(res.status); } + // if (res.headers.get("set-cookie")) { + // console.log("Response has set-cookie header:", res.headers.get("set-cookie")); + // } const result: Result = JSON.parse( await res.text() ); diff --git a/src/components/DashboardLayout.vue b/src/components/DashboardLayout.vue index fb77edc..3da885f 100644 --- a/src/components/DashboardLayout.vue +++ b/src/components/DashboardLayout.vue @@ -1,14 +1,14 @@