From 1cbc42e7b49c8af063fb322b883a85ae7ab60bf9 Mon Sep 17 00:00:00 2001 From: Nexmoe <16796652+nexmoe@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:20:21 +0800 Subject: [PATCH] chore: shadcn init (#110) * chore: shadcn init * chore: header&catalog --- components.json | 16 + components/public/Catalog.vue | 37 +- components/public/Header.vue | 14 +- components/public/Tool.vue | 2 +- components/ui/sheet/Sheet.vue | 14 + components/ui/sheet/SheetClose.vue | 11 + components/ui/sheet/SheetContent.vue | 56 + components/ui/sheet/SheetDescription.vue | 22 + components/ui/sheet/SheetFooter.vue | 19 + components/ui/sheet/SheetHeader.vue | 16 + components/ui/sheet/SheetTitle.vue | 22 + components/ui/sheet/SheetTrigger.vue | 11 + components/ui/sheet/index.ts | 31 + lib/utils.ts | 6 + modules/shadcn.ts | 96 + nuxt.config.ts | 11 + package.json | 8 +- pnpm-lock.yaml | 15729 +++++++++------------ tailwind.config.js | 3 + 19 files changed, 7202 insertions(+), 8922 deletions(-) create mode 100644 components.json create mode 100644 components/ui/sheet/Sheet.vue create mode 100644 components/ui/sheet/SheetClose.vue create mode 100644 components/ui/sheet/SheetContent.vue create mode 100644 components/ui/sheet/SheetDescription.vue create mode 100644 components/ui/sheet/SheetFooter.vue create mode 100644 components/ui/sheet/SheetHeader.vue create mode 100644 components/ui/sheet/SheetTitle.vue create mode 100644 components/ui/sheet/SheetTrigger.vue create mode 100644 components/ui/sheet/index.ts create mode 100644 lib/utils.ts create mode 100644 modules/shadcn.ts diff --git a/components.json b/components.json new file mode 100644 index 0000000..c8d107c --- /dev/null +++ b/components.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://shadcn-vue.com/schema.json", + "style": "default", + "typescript": true, + "tailwind": { + "config": "tailwind.config.js", + "css": "assets/css/tailwind.css", + "baseColor": "slate", + "cssVariables": true + }, + "framework": "nuxt", + "aliases": { + "components": "@/components", + "utils": "@/lib/utils" + } +} diff --git a/components/public/Catalog.vue b/components/public/Catalog.vue index daf5905..e46bbed 100644 --- a/components/public/Catalog.vue +++ b/components/public/Catalog.vue @@ -1,4 +1,10 @@ diff --git a/components/public/Header.vue b/components/public/Header.vue index 6182713..1b0be3b 100644 --- a/components/public/Header.vue +++ b/components/public/Header.vue @@ -1,9 +1,9 @@ @@ -32,7 +32,7 @@ const config = await useGetConfig() - + diff --git a/components/public/Tool.vue b/components/public/Tool.vue index a42dc86..d88cd2b 100644 --- a/components/public/Tool.vue +++ b/components/public/Tool.vue @@ -28,7 +28,7 @@ onUnmounted(() => {
- +