From cbdccaa60e0969d551debc75aa053462a17a9df8 Mon Sep 17 00:00:00 2001 From: oiov Date: Wed, 11 Jun 2025 20:08:32 +0800 Subject: [PATCH] add notification and chore list codes --- app/(marketing)/layout.tsx | 2 + app/(protected)/admin/system/app-configs.tsx | 3 +- app/(protected)/admin/system/domain-list.tsx | 2 +- app/(protected)/admin/system/plan-list.tsx | 2 +- app/(protected)/layout.tsx | 2 + app/api/configs/route.ts | 17 +- app/api/feature/route.ts | 2 + components/forms/plan-form.tsx | 142 +- components/forms/record-form.tsx | 2 +- components/layout/notification.tsx | 56 + components/layout/user-account-nav.tsx | 4 +- components/shared/user-avatar.tsx | 2 - locales/en.json | 9 +- locales/zh.json | 21 +- public/sw.js | 102 +- public/sw.js.map | 1 + public/workbox-8817a5e5.js | 2456 ++++++++++++++++++ public/workbox-8817a5e5.js.map | 1 + public/workbox-e9849328.js | 1 - 19 files changed, 2783 insertions(+), 44 deletions(-) create mode 100644 components/layout/notification.tsx create mode 100644 public/sw.js.map create mode 100644 public/workbox-8817a5e5.js create mode 100644 public/workbox-8817a5e5.js.map delete mode 100644 public/workbox-e9849328.js diff --git a/app/(marketing)/layout.tsx b/app/(marketing)/layout.tsx index fb42356..671de1d 100644 --- a/app/(marketing)/layout.tsx +++ b/app/(marketing)/layout.tsx @@ -1,5 +1,6 @@ import { NavMobile } from "@/components/layout/mobile-nav"; import { NavBar } from "@/components/layout/navbar"; +import { Notification } from "@/components/layout/notification"; import { SiteFooter } from "@/components/layout/site-footer"; interface MarketingLayoutProps { @@ -11,6 +12,7 @@ export default function MarketingLayout({ children }: MarketingLayoutProps) {
+
{children}
diff --git a/app/(protected)/admin/system/app-configs.tsx b/app/(protected)/admin/system/app-configs.tsx index 6b4a504..eec27b0 100644 --- a/app/(protected)/admin/system/app-configs.tsx +++ b/app/(protected)/admin/system/app-configs.tsx @@ -58,7 +58,7 @@ export default function AppConfigs({}: {}) { } return ( - + {t("App Configs")} @@ -111,6 +111,7 @@ export default function AppConfigs({}: {}) {