From d39220e3e848a04afb6200c77b237d2b82c3e1c5 Mon Sep 17 00:00:00 2001 From: zernonia Date: Fri, 8 Sep 2023 14:35:04 +0800 Subject: [PATCH] fix: missing import --- .../theme/components/theming/Theming.vue | 37 ++++++++++--------- .../.vitepress/theme/layout/ThemingLayout.vue | 1 + apps/www/package.json | 1 - apps/www/tsconfig.json | 2 +- pnpm-lock.yaml | 21 ----------- 5 files changed, 21 insertions(+), 41 deletions(-) diff --git a/apps/www/.vitepress/theme/components/theming/Theming.vue b/apps/www/.vitepress/theme/components/theming/Theming.vue index 304b799c..912de1e0 100644 --- a/apps/www/.vitepress/theme/components/theming/Theming.vue +++ b/apps/www/.vitepress/theme/components/theming/Theming.vue @@ -3,6 +3,13 @@ import { ref } from 'vue' import { ChevronDown, Minus, Plus, Send } from 'lucide-vue-next' import { addDays, startOfToday } from 'date-fns' import ThemingLayout from './../../layout/ThemingLayout.vue' +import { + months, + payments, + roles, + teamMembers, + years, +} from './utils/data' import { Card, CardContent, @@ -10,15 +17,15 @@ import { CardFooter, CardHeader, CardTitle, -} from './../../../../src/lib/registry/new-york/ui/card' +} from '@/lib/registry/new-york/ui/card' import { Avatar, AvatarFallback, AvatarImage, -} from './../../../../src/lib/registry/new-york/ui/avatar' -import { Button } from './../../../../src/lib/registry/new-york/ui/button' -import { Textarea } from './../../../../src/lib/registry/new-york/ui/textarea' -import { Calendar } from './../../../../src/lib/registry/new-york/ui/calendar' +} from '@/lib/registry/new-york/ui/avatar' +import { Button } from '@/lib/registry/new-york/ui/button' +import { Textarea } from '@/lib/registry/new-york/ui/textarea' +import { Calendar } from '@/lib/registry/new-york/ui/calendar' import { DropdownMenu, DropdownMenuContent, @@ -27,9 +34,9 @@ import { DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, -} from './../../../../src/lib/registry/new-york/ui/dropdown-menu' -import { Label } from './../../../../src/lib/registry/new-york/ui/label' -import { Switch } from './../../../../src/lib/registry/new-york/ui/switch' +} from '@/lib/registry/new-york/ui/dropdown-menu' +import { Label } from '@/lib/registry/new-york/ui/label' +import { Switch } from '@/lib/registry/new-york/ui/switch' import { Select, SelectContent, @@ -37,21 +44,15 @@ import { SelectItem, SelectTrigger, SelectValue, -} from './../../../../src/lib/registry/new-york/ui/select' -import { Input } from './../../../../src/lib/registry/new-york/ui/input' +} from '@/lib/registry/new-york/ui/select' +import { Input } from '@/lib/registry/new-york/ui/input' import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, -} from './../../../../src/lib/registry/new-york/ui/tooltip' -import { - months, - payments, - roles, - teamMembers, - years, -} from './utils/data' +} from '@/lib/registry/new-york/ui/tooltip' +import { Separator } from '@/lib/registry/new-york/ui/separator' import RadixIconsGithubLogo from '~icons/radix-icons/github-logo' import RiGoogleLine from '~icons/ri/google-line' diff --git a/apps/www/.vitepress/theme/layout/ThemingLayout.vue b/apps/www/.vitepress/theme/layout/ThemingLayout.vue index 09204fce..416f0ced 100644 --- a/apps/www/.vitepress/theme/layout/ThemingLayout.vue +++ b/apps/www/.vitepress/theme/layout/ThemingLayout.vue @@ -8,6 +8,7 @@ import PageHeaderDescription from '../components/PageHeaderDescription.vue' import { RADII, useConfigStore } from '@/stores/config' import { colors } from '@/lib/registry' import { Button } from '@/lib/registry/new-york/ui/button' +import { Label } from '@/lib/registry/new-york/ui/label' import { Popover, PopoverContent, PopoverTrigger } from '@/lib/registry/new-york/ui/popover' import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/lib/registry/new-york/ui/tooltip' import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, DialogTrigger } from '@/lib/registry/new-york/ui/dialog' diff --git a/apps/www/package.json b/apps/www/package.json index a189fd36..d1b400ce 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -21,7 +21,6 @@ "clsx": "^2.0.0", "date-fns": "^2.30.0", "lucide-vue-next": "^0.268.0", - "pinia": "^2.1.6", "tailwindcss-animate": "^1.0.6", "v-calendar": "^3.0.3", "vitepress": "^1.0.0-rc.10", diff --git a/apps/www/tsconfig.json b/apps/www/tsconfig.json index 31eccecc..df9456a7 100644 --- a/apps/www/tsconfig.json +++ b/apps/www/tsconfig.json @@ -1,5 +1,5 @@ { - "include": ["/**/*.vue", ".vitepress/**/*.vue", "/**/*.ts", ".vitepress/**/*.mts", "src/lib/**/*"], + "include": ["/**/*.vue", ".vitepress/**/*.vue", "/**/*.ts", ".vitepress/**/*.mts", ".vitepress/**/*.vue", "src/lib/**/*"], "exclude": ["node_modules", "./scripts/build-registry.ts"], "compilerOptions": { "target": "esnext", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b28c2d64..695c6b99 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -65,9 +65,6 @@ importers: lucide-vue-next: specifier: ^0.268.0 version: 0.268.0(vue@3.3.4) - pinia: - specifier: ^2.1.6 - version: 2.1.6(typescript@5.0.2)(vue@3.3.4) tailwindcss-animate: specifier: ^1.0.6 version: 1.0.6(tailwindcss@3.3.3) @@ -6232,24 +6229,6 @@ packages: resolution: {integrity: sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==} engines: {node: '>=0.10.0'} - /pinia@2.1.6(typescript@5.0.2)(vue@3.3.4): - resolution: {integrity: sha512-bIU6QuE5qZviMmct5XwCesXelb5VavdOWKWaB17ggk++NUwQWWbP5YnsONTk3b752QkW9sACiR81rorpeOMSvQ==} - peerDependencies: - '@vue/composition-api': ^1.4.0 - typescript: '>=4.4.4' - vue: ^2.6.14 || ^3.3.0 - peerDependenciesMeta: - '@vue/composition-api': - optional: true - typescript: - optional: true - dependencies: - '@vue/devtools-api': 6.5.0 - typescript: 5.0.2 - vue: 3.3.4 - vue-demi: 0.14.5(vue@3.3.4) - dev: false - /pirates@4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} engines: {node: '>= 6'}