From ae0acf84d0101798cb4316ea1bd5f9dd1858fbd5 Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Fri, 22 Aug 2025 11:18:06 +0700 Subject: [PATCH] refactor(ui): update import paths from @/lib/utils to ~/lib/utils Standardize import paths across UI components to use ~/lib/utils alias instead of @/lib/utils for better consistency and maintainability. --- app/components/flow/dashboard/index.vue | 11 ++--------- app/components/pub/nav/data-table.vue | 2 +- app/components/pub/ui/accordion/AccordionContent.vue | 3 ++- app/components/pub/ui/accordion/AccordionItem.vue | 3 ++- app/components/pub/ui/accordion/AccordionTrigger.vue | 3 ++- .../pub/ui/alert-dialog/AlertDialogAction.vue | 3 ++- .../pub/ui/alert-dialog/AlertDialogCancel.vue | 3 ++- .../pub/ui/alert-dialog/AlertDialogContent.vue | 3 ++- .../pub/ui/alert-dialog/AlertDialogDescription.vue | 3 ++- .../pub/ui/alert-dialog/AlertDialogFooter.vue | 3 ++- .../pub/ui/alert-dialog/AlertDialogHeader.vue | 3 ++- .../pub/ui/alert-dialog/AlertDialogTitle.vue | 3 ++- app/components/pub/ui/alert/Alert.vue | 3 ++- app/components/pub/ui/alert/AlertDescription.vue | 3 ++- app/components/pub/ui/alert/AlertTitle.vue | 3 ++- app/components/pub/ui/avatar/Avatar.vue | 3 ++- app/components/pub/ui/badge/Badge.vue | 3 ++- .../pub/ui/breadcrumb/BreadcrumbEllipsis.vue | 3 ++- app/components/pub/ui/breadcrumb/BreadcrumbItem.vue | 3 ++- app/components/pub/ui/breadcrumb/BreadcrumbLink.vue | 3 ++- app/components/pub/ui/breadcrumb/BreadcrumbList.vue | 3 ++- app/components/pub/ui/breadcrumb/BreadcrumbPage.vue | 3 ++- .../pub/ui/breadcrumb/BreadcrumbSeparator.vue | 3 ++- app/components/pub/ui/calendar/Calendar.vue | 3 ++- app/components/pub/ui/calendar/CalendarCell.vue | 3 ++- .../pub/ui/calendar/CalendarCellTrigger.vue | 3 ++- app/components/pub/ui/calendar/CalendarGrid.vue | 3 ++- app/components/pub/ui/calendar/CalendarGridRow.vue | 3 ++- app/components/pub/ui/calendar/CalendarHeadCell.vue | 3 ++- app/components/pub/ui/calendar/CalendarHeader.vue | 3 ++- app/components/pub/ui/calendar/CalendarHeading.vue | 3 ++- app/components/pub/ui/calendar/CalendarNextButton.vue | 3 ++- app/components/pub/ui/calendar/CalendarPrevButton.vue | 3 ++- app/components/pub/ui/card/Card.vue | 3 ++- app/components/pub/ui/card/CardContent.vue | 3 ++- app/components/pub/ui/card/CardDescription.vue | 3 ++- app/components/pub/ui/card/CardFooter.vue | 3 ++- app/components/pub/ui/card/CardHeader.vue | 3 ++- app/components/pub/ui/card/CardTitle.vue | 3 ++- app/components/pub/ui/carousel/Carousel.vue | 3 ++- app/components/pub/ui/carousel/CarouselContent.vue | 3 ++- app/components/pub/ui/carousel/CarouselItem.vue | 3 ++- app/components/pub/ui/carousel/CarouselNext.vue | 3 ++- app/components/pub/ui/carousel/CarouselPrevious.vue | 3 ++- app/components/pub/ui/chart-area/AreaChart.vue | 3 ++- app/components/pub/ui/chart-bar/BarChart.vue | 3 ++- app/components/pub/ui/chart-donut/DonutChart.vue | 3 ++- app/components/pub/ui/chart-line/LineChart.vue | 3 ++- app/components/pub/ui/checkbox/Checkbox.vue | 3 ++- app/components/pub/ui/command/Command.vue | 3 ++- app/components/pub/ui/command/CommandEmpty.vue | 3 ++- app/components/pub/ui/command/CommandGroup.vue | 3 ++- app/components/pub/ui/command/CommandInput.vue | 3 ++- app/components/pub/ui/command/CommandItem.vue | 3 ++- app/components/pub/ui/command/CommandList.vue | 3 ++- app/components/pub/ui/command/CommandSeparator.vue | 3 ++- app/components/pub/ui/command/CommandShortcut.vue | 3 ++- .../pub/ui/context-menu/ContextMenuCheckboxItem.vue | 3 ++- .../pub/ui/context-menu/ContextMenuContent.vue | 3 ++- .../pub/ui/context-menu/ContextMenuItem.vue | 3 ++- .../pub/ui/context-menu/ContextMenuLabel.vue | 3 ++- .../pub/ui/context-menu/ContextMenuRadioItem.vue | 3 ++- .../pub/ui/context-menu/ContextMenuSeparator.vue | 3 ++- .../pub/ui/context-menu/ContextMenuShortcut.vue | 3 ++- .../pub/ui/context-menu/ContextMenuSubContent.vue | 3 ++- .../pub/ui/context-menu/ContextMenuSubTrigger.vue | 3 ++- app/components/pub/ui/dialog/DialogContent.vue | 3 ++- app/components/pub/ui/dialog/DialogDescription.vue | 3 ++- app/components/pub/ui/dialog/DialogFooter.vue | 3 ++- app/components/pub/ui/dialog/DialogHeader.vue | 3 ++- app/components/pub/ui/dialog/DialogScrollContent.vue | 3 ++- app/components/pub/ui/dialog/DialogTitle.vue | 3 ++- app/components/pub/ui/drawer/DrawerContent.vue | 3 ++- app/components/pub/ui/drawer/DrawerDescription.vue | 3 ++- app/components/pub/ui/drawer/DrawerFooter.vue | 3 ++- app/components/pub/ui/drawer/DrawerHeader.vue | 3 ++- app/components/pub/ui/drawer/DrawerOverlay.vue | 3 ++- app/components/pub/ui/drawer/DrawerTitle.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuCheckboxItem.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuContent.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuItem.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuLabel.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuRadioItem.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuSeparator.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuShortcut.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuSubContent.vue | 3 ++- .../pub/ui/dropdown-menu/DropdownMenuSubTrigger.vue | 3 ++- app/components/pub/ui/form/FormDescription.vue | 3 ++- app/components/pub/ui/form/FormItem.vue | 3 ++- app/components/pub/ui/form/FormLabel.vue | 5 +++-- app/components/pub/ui/hover-card/HoverCardContent.vue | 3 ++- app/components/pub/ui/input/Input.vue | 3 ++- app/components/pub/ui/label/Label.vue | 3 ++- app/components/pub/ui/menubar/Menubar.vue | 3 ++- app/components/pub/ui/menubar/MenubarCheckboxItem.vue | 3 ++- app/components/pub/ui/menubar/MenubarContent.vue | 3 ++- app/components/pub/ui/menubar/MenubarItem.vue | 3 ++- app/components/pub/ui/menubar/MenubarLabel.vue | 3 ++- app/components/pub/ui/menubar/MenubarRadioItem.vue | 3 ++- app/components/pub/ui/menubar/MenubarSeparator.vue | 3 ++- app/components/pub/ui/menubar/MenubarShortcut.vue | 3 ++- app/components/pub/ui/menubar/MenubarSubContent.vue | 3 ++- app/components/pub/ui/menubar/MenubarSubTrigger.vue | 3 ++- app/components/pub/ui/menubar/MenubarTrigger.vue | 3 ++- .../pub/ui/navigation-menu/NavigationMenu.vue | 3 ++- .../pub/ui/navigation-menu/NavigationMenuContent.vue | 3 ++- .../ui/navigation-menu/NavigationMenuIndicator.vue | 3 ++- .../pub/ui/navigation-menu/NavigationMenuList.vue | 3 ++- .../pub/ui/navigation-menu/NavigationMenuTrigger.vue | 3 ++- .../pub/ui/navigation-menu/NavigationMenuViewport.vue | 3 ++- app/components/pub/ui/number-field/NumberField.vue | 3 ++- .../pub/ui/number-field/NumberFieldContent.vue | 3 ++- .../pub/ui/number-field/NumberFieldDecrement.vue | 3 ++- .../pub/ui/number-field/NumberFieldIncrement.vue | 3 ++- .../pub/ui/number-field/NumberFieldInput.vue | 3 ++- .../pub/ui/pagination/PaginationEllipsis.vue | 3 ++- app/components/pub/ui/pagination/PaginationFirst.vue | 5 +++-- app/components/pub/ui/pagination/PaginationLast.vue | 5 +++-- app/components/pub/ui/pagination/PaginationNext.vue | 5 +++-- app/components/pub/ui/pagination/PaginationPrev.vue | 5 +++-- app/components/pub/ui/pin-input/PinInput.vue | 3 ++- app/components/pub/ui/pin-input/PinInputGroup.vue | 3 ++- app/components/pub/ui/pin-input/PinInputInput.vue | 3 ++- app/components/pub/ui/popover/PopoverContent.vue | 3 ++- app/components/pub/ui/progress/Progress.vue | 3 ++- app/components/pub/ui/radio-group/RadioGroup.vue | 3 ++- app/components/pub/ui/radio-group/RadioGroupItem.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendar.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarCell.vue | 3 ++- .../ui/range-calendar/RangeCalendarCellTrigger.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarGrid.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarGridRow.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarHeadCell.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarHeader.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarHeading.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarNextButton.vue | 3 ++- .../pub/ui/range-calendar/RangeCalendarPrevButton.vue | 3 ++- app/components/pub/ui/resizable/ResizableHandle.vue | 3 ++- .../pub/ui/resizable/ResizablePanelGroup.vue | 3 ++- app/components/pub/ui/scroll-area/ScrollArea.vue | 3 ++- app/components/pub/ui/scroll-area/ScrollBar.vue | 3 ++- app/components/pub/ui/select/SelectContent.vue | 3 ++- app/components/pub/ui/select/SelectGroup.vue | 3 ++- app/components/pub/ui/select/SelectItem.vue | 3 ++- app/components/pub/ui/select/SelectLabel.vue | 3 ++- .../pub/ui/select/SelectScrollDownButton.vue | 3 ++- app/components/pub/ui/select/SelectScrollUpButton.vue | 3 ++- app/components/pub/ui/select/SelectSeparator.vue | 3 ++- app/components/pub/ui/select/SelectTrigger.vue | 3 ++- app/components/pub/ui/separator/Separator.vue | 3 ++- app/components/pub/ui/sheet/SheetContent.vue | 3 ++- app/components/pub/ui/sheet/SheetDescription.vue | 3 ++- app/components/pub/ui/sheet/SheetFooter.vue | 3 ++- app/components/pub/ui/sheet/SheetHeader.vue | 3 ++- app/components/pub/ui/sheet/SheetTitle.vue | 3 ++- app/components/pub/ui/sidebar/Sidebar.vue | 7 ++++--- app/components/pub/ui/sidebar/SidebarContent.vue | 3 ++- app/components/pub/ui/sidebar/SidebarFooter.vue | 3 ++- app/components/pub/ui/sidebar/SidebarGroup.vue | 3 ++- app/components/pub/ui/sidebar/SidebarGroupAction.vue | 3 ++- app/components/pub/ui/sidebar/SidebarGroupContent.vue | 3 ++- app/components/pub/ui/sidebar/SidebarGroupLabel.vue | 3 ++- app/components/pub/ui/sidebar/SidebarHeader.vue | 3 ++- app/components/pub/ui/sidebar/SidebarInput.vue | 5 +++-- app/components/pub/ui/sidebar/SidebarInset.vue | 3 ++- app/components/pub/ui/sidebar/SidebarMenu.vue | 3 ++- app/components/pub/ui/sidebar/SidebarMenuAction.vue | 3 ++- app/components/pub/ui/sidebar/SidebarMenuBadge.vue | 3 ++- app/components/pub/ui/sidebar/SidebarMenuButton.vue | 6 +++--- .../pub/ui/sidebar/SidebarMenuButtonChild.vue | 3 ++- app/components/pub/ui/sidebar/SidebarMenuItem.vue | 3 ++- app/components/pub/ui/sidebar/SidebarMenuSkeleton.vue | 5 +++-- app/components/pub/ui/sidebar/SidebarMenuSub.vue | 3 ++- .../pub/ui/sidebar/SidebarMenuSubButton.vue | 3 ++- app/components/pub/ui/sidebar/SidebarProvider.vue | 3 ++- app/components/pub/ui/sidebar/SidebarRail.vue | 3 ++- app/components/pub/ui/sidebar/SidebarSeparator.vue | 5 +++-- app/components/pub/ui/sidebar/SidebarTrigger.vue | 5 +++-- app/components/pub/ui/skeleton/Skeleton.vue | 3 ++- app/components/pub/ui/slider/Slider.vue | 3 ++- app/components/pub/ui/stepper/Stepper.vue | 3 ++- app/components/pub/ui/stepper/StepperDescription.vue | 3 ++- app/components/pub/ui/stepper/StepperIndicator.vue | 3 ++- app/components/pub/ui/stepper/StepperItem.vue | 3 ++- app/components/pub/ui/stepper/StepperSeparator.vue | 3 ++- app/components/pub/ui/stepper/StepperTitle.vue | 3 ++- app/components/pub/ui/stepper/StepperTrigger.vue | 2 +- app/components/pub/ui/switch/Switch.vue | 3 ++- app/components/pub/ui/table/Table.vue | 3 ++- app/components/pub/ui/table/TableBody.vue | 3 ++- app/components/pub/ui/table/TableCaption.vue | 3 ++- app/components/pub/ui/table/TableCell.vue | 3 ++- app/components/pub/ui/table/TableEmpty.vue | 3 ++- app/components/pub/ui/table/TableFooter.vue | 3 ++- app/components/pub/ui/table/TableHead.vue | 3 ++- app/components/pub/ui/table/TableHeader.vue | 3 ++- app/components/pub/ui/table/TableRow.vue | 3 ++- app/components/pub/ui/table/separator/Separator.vue | 3 ++- app/components/pub/ui/tabs/TabsContent.vue | 3 ++- app/components/pub/ui/tabs/TabsList.vue | 3 ++- app/components/pub/ui/tabs/TabsTrigger.vue | 3 ++- app/components/pub/ui/tags-input/TagsInput.vue | 3 ++- app/components/pub/ui/tags-input/TagsInputInput.vue | 3 ++- app/components/pub/ui/tags-input/TagsInputItem.vue | 3 ++- .../pub/ui/tags-input/TagsInputItemDelete.vue | 3 ++- .../pub/ui/tags-input/TagsInputItemText.vue | 3 ++- app/components/pub/ui/textarea/Textarea.vue | 3 ++- app/components/pub/ui/toast/Toast.vue | 3 ++- app/components/pub/ui/toast/ToastAction.vue | 3 ++- app/components/pub/ui/toast/ToastClose.vue | 3 ++- app/components/pub/ui/toast/ToastDescription.vue | 3 ++- app/components/pub/ui/toast/ToastTitle.vue | 3 ++- app/components/pub/ui/toast/ToastViewport.vue | 3 ++- app/components/pub/ui/toggle-group/ToggleGroup.vue | 2 +- .../pub/ui/toggle-group/ToggleGroupItem.vue | 5 +++-- app/components/pub/ui/toggle/Toggle.vue | 3 ++- app/components/pub/ui/tooltip/TooltipContent.vue | 3 ++- 217 files changed, 444 insertions(+), 239 deletions(-) diff --git a/app/components/flow/dashboard/index.vue b/app/components/flow/dashboard/index.vue index 9b591024..bcb3b251 100644 --- a/app/components/flow/dashboard/index.vue +++ b/app/components/flow/dashboard/index.vue @@ -1,10 +1,6 @@ diff --git a/app/components/pub/ui/dialog/DialogHeader.vue b/app/components/pub/ui/dialog/DialogHeader.vue index b2c9085d..914ebd02 100644 --- a/app/components/pub/ui/dialog/DialogHeader.vue +++ b/app/components/pub/ui/dialog/DialogHeader.vue @@ -1,6 +1,7 @@ diff --git a/app/components/pub/ui/menubar/MenubarRadioItem.vue b/app/components/pub/ui/menubar/MenubarRadioItem.vue index 688034dc..e8ebf57d 100644 --- a/app/components/pub/ui/menubar/MenubarRadioItem.vue +++ b/app/components/pub/ui/menubar/MenubarRadioItem.vue @@ -8,7 +8,8 @@ import { useForwardPropsEmits, } from 'radix-vue' import { computed } from 'vue' -import { cn } from '@/lib/utils' +import { cn } from '~/lib/utils' + const props = defineProps() const emits = defineEmits() diff --git a/app/components/pub/ui/menubar/MenubarSeparator.vue b/app/components/pub/ui/menubar/MenubarSeparator.vue index 4e71fd84..c86c762d 100644 --- a/app/components/pub/ui/menubar/MenubarSeparator.vue +++ b/app/components/pub/ui/menubar/MenubarSeparator.vue @@ -3,7 +3,8 @@ import type { MenubarSeparatorProps } from 'radix-vue' import type { HTMLAttributes } from 'vue' import { MenubarSeparator, useForwardProps } from 'radix-vue' import { computed } from 'vue' -import { cn } from '@/lib/utils' +import { cn } from '~/lib/utils' + const props = defineProps() diff --git a/app/components/pub/ui/menubar/MenubarShortcut.vue b/app/components/pub/ui/menubar/MenubarShortcut.vue index 0d4da921..08383795 100644 --- a/app/components/pub/ui/menubar/MenubarShortcut.vue +++ b/app/components/pub/ui/menubar/MenubarShortcut.vue @@ -1,6 +1,7 @@