From db0c0a3c25fd68c4a56de89470933d2088cb5fb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Tue, 27 May 2025 15:14:49 +0800 Subject: [PATCH] Add shadcn/ui tooltip UI && modify from the entire block being a button to just a button (the news publisher is also buttonm the tailwind tooltip is just for the news publisher plubin ) --- bun.lock | 2 +- components/app/windows/news.vue | 78 +++++++++++++---------- components/ui/tooltip/Tooltip.vue | 14 ++++ components/ui/tooltip/TooltipContent.vue | 28 ++++++++ components/ui/tooltip/TooltipProvider.vue | 11 ++++ components/ui/tooltip/TooltipTrigger.vue | 11 ++++ components/ui/tooltip/index.ts | 4 ++ i18n/locales/zh-tw.json | 2 +- package.json | 2 +- pages/tools/index.vue | 6 +- server/routes/shortforward.ts | 26 ++++---- 11 files changed, 130 insertions(+), 54 deletions(-) create mode 100644 components/ui/tooltip/Tooltip.vue create mode 100644 components/ui/tooltip/TooltipContent.vue create mode 100644 components/ui/tooltip/TooltipProvider.vue create mode 100644 components/ui/tooltip/TooltipTrigger.vue create mode 100644 components/ui/tooltip/index.ts diff --git a/bun.lock b/bun.lock index 8e226a4..0363cb5 100644 --- a/bun.lock +++ b/bun.lock @@ -17,7 +17,7 @@ "@sentry/nuxt": "^9", "@tailwindcss/vite": "^4.1.5", "@uploadthing/nuxt": "^7.1.7", - "@vueuse/core": "^13.1.0", + "@vueuse/core": "^13.2.0", "animate.css": "^4.1.1", "argon2": "^0.43.0", "axios": "^1.9.0", diff --git a/components/app/windows/news.vue b/components/app/windows/news.vue index 6281451..e1e12c0 100644 --- a/components/app/windows/news.vue +++ b/components/app/windows/news.vue @@ -1,4 +1,5 @@