From 4eee4604661fc0c29fdc45e015887557e52d1f0b Mon Sep 17 00:00:00 2001 From: ZTL-UwU Date: Tue, 11 Jun 2024 18:32:36 +0800 Subject: [PATCH] feat: page content Signed-off-by: ZTL-UwU --- app.vue | 1 + assets/css/tiptap-theme.css | 18 +- components/PageTitle.vue | 20 ++- components/ui/toast/Toast.vue | 28 +++ components/ui/toast/ToastAction.vue | 19 ++ components/ui/toast/ToastClose.vue | 22 +++ components/ui/toast/ToastDescription.vue | 19 ++ components/ui/toast/ToastProvider.vue | 11 ++ components/ui/toast/ToastTitle.vue | 19 ++ components/ui/toast/ToastViewport.vue | 17 ++ components/ui/toast/Toaster.vue | 30 ++++ components/ui/toast/index.ts | 38 ++++ components/ui/toast/use-toast.ts | 164 ++++++++++++++++++ constants/index.ts | 85 +++++++++ package.json | 2 +- pages/[...slug].vue | 45 +++-- pages/index.vue | 26 +-- pages/new.vue | 86 +++------ server/api/trpc/[trpc].ts | 19 +- .../migrations/meta/0000_snapshot.json | 2 +- server/database/migrations/meta/_journal.json | 2 +- server/trpc/routers/index.ts | 11 +- types/index.ts | 30 ++++ 23 files changed, 569 insertions(+), 145 deletions(-) create mode 100644 components/ui/toast/Toast.vue create mode 100644 components/ui/toast/ToastAction.vue create mode 100644 components/ui/toast/ToastClose.vue create mode 100644 components/ui/toast/ToastDescription.vue create mode 100644 components/ui/toast/ToastProvider.vue create mode 100644 components/ui/toast/ToastTitle.vue create mode 100644 components/ui/toast/ToastViewport.vue create mode 100644 components/ui/toast/Toaster.vue create mode 100644 components/ui/toast/index.ts create mode 100644 components/ui/toast/use-toast.ts create mode 100644 constants/index.ts create mode 100644 types/index.ts diff --git a/app.vue b/app.vue index 06b8a09..234de9c 100644 --- a/app.vue +++ b/app.vue @@ -1,4 +1,5 @@