From e356b25d13c6957953ccb4071d69ea05ad0bdb92 Mon Sep 17 00:00:00 2001 From: zernonia Date: Mon, 15 Apr 2024 00:31:14 +0800 Subject: [PATCH] chore: fix type, import missing error --- .../.vitepress/theme/components/MobileNav.vue | 1 + .../theme/components/ThemePopover.vue | 109 +------ apps/www/package.json | 1 + .../default/example/AreaChartDemo.vue | 4 +- .../registry/default/example/BarChartDemo.vue | 4 +- .../default/example/LineChartDemo.vue | 273 +++++++++++++++++- .../default/ui/chart-bar/BarChart.vue | 6 +- .../default/ui/chart-line/LineChart.vue | 6 +- .../default/ui/chart/ChartCrosshair.vue | 2 +- .../new-york/example/AreaChartDemo.vue | 4 +- .../new-york/example/BarChartDemo.vue | 4 +- .../new-york/example/LineChartDemo.vue | 4 +- .../new-york/ui/chart-bar/BarChart.vue | 6 +- .../new-york/ui/chart-line/LineChart.vue | 6 +- pnpm-lock.yaml | 9 + 15 files changed, 309 insertions(+), 130 deletions(-) diff --git a/apps/www/.vitepress/theme/components/MobileNav.vue b/apps/www/.vitepress/theme/components/MobileNav.vue index 5872ed56..1d1c1819 100644 --- a/apps/www/.vitepress/theme/components/MobileNav.vue +++ b/apps/www/.vitepress/theme/components/MobileNav.vue @@ -5,6 +5,7 @@ import Logo from './Logo.vue' import { Sheet, SheetContent, SheetTrigger } from '@/lib/registry/default/ui/sheet' import { Button } from '@/lib/registry/default/ui/button' import { ScrollArea } from '@/lib/registry/default/ui/scroll-area' +import { Badge } from '@/lib/registry/new-york/ui/badge' const open = ref(false) diff --git a/apps/www/.vitepress/theme/components/ThemePopover.vue b/apps/www/.vitepress/theme/components/ThemePopover.vue index 91c9a1e5..d862ec98 100644 --- a/apps/www/.vitepress/theme/components/ThemePopover.vue +++ b/apps/www/.vitepress/theme/components/ThemePopover.vue @@ -1,21 +1,13 @@ diff --git a/apps/www/src/lib/registry/default/example/BarChartDemo.vue b/apps/www/src/lib/registry/default/example/BarChartDemo.vue index d63d78c7..7fae02ac 100644 --- a/apps/www/src/lib/registry/default/example/BarChartDemo.vue +++ b/apps/www/src/lib/registry/default/example/BarChartDemo.vue @@ -10,15 +10,13 @@ const data = [ { name: 'Jun', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, { name: 'Jul', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, ] - -const categories = ['total', 'predicted'] diff --git a/apps/www/src/lib/registry/new-york/example/BarChartDemo.vue b/apps/www/src/lib/registry/new-york/example/BarChartDemo.vue index e0c263b3..0d68f9b3 100644 --- a/apps/www/src/lib/registry/new-york/example/BarChartDemo.vue +++ b/apps/www/src/lib/registry/new-york/example/BarChartDemo.vue @@ -10,15 +10,13 @@ const data = [ { name: 'Jun', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, { name: 'Jul', total: Math.floor(Math.random() * 2000) + 500, predicted: Math.floor(Math.random() * 2000) + 500 }, ] - -const categories = ['total', 'predicted']