From 6ad99d45f2838be08939c5250c6212a2a8e30ccd Mon Sep 17 00:00:00 2001 From: Khafid Prayoga Date: Wed, 27 Aug 2025 13:06:40 +0700 Subject: [PATCH] Fix/linter (#10) * fix(style): formatting inconsistencies across codebase - Remove trailing semicolons from TypeScript imports - Fix Vue template indentation and line breaks - Standardize component attribute formatting - Remove unnecessary empty lines - Reorder import statements for consistency * chore: update import path and add editorconfig Update SidebarNavLink import path to match new component structure and add standard editorconfig for consistent code formatting --- .editorconfig | 30 +++++++++++++++++ .vscode/launch.json | 2 +- app/components/app/doctor/list-cfg.ts | 2 +- app/components/app/satusehat/card-summary.vue | 2 +- app/components/app/satusehat/list.vue | 6 ++-- app/components/flow/doctor/list.vue | 3 +- app/components/flow/patient/list.vue | 2 +- .../rehab/registration/sep-prosedur/list.vue | 2 +- app/components/flow/satusehat/list.vue | 20 ++++++++---- app/components/layout/SidebarNavLink.vue | 2 +- .../pub/base/data-table/data-table.vue | 12 ++++--- .../pub/custom-ui/nav-header/header.vue | 6 ++-- .../pub/custom-ui/nav-header/prep.vue | 19 +++++------ .../pub/custom-ui/nav-header/search.vue | 4 +-- .../pub/ui/accordion/AccordionContent.vue | 1 - .../pub/ui/accordion/AccordionItem.vue | 1 - .../pub/ui/accordion/AccordionTrigger.vue | 1 - .../ui/alert-dialog/AlertDialogContent.vue | 1 - .../alert-dialog/AlertDialogDescription.vue | 1 - .../pub/ui/alert-dialog/AlertDialogFooter.vue | 1 - .../pub/ui/alert-dialog/AlertDialogHeader.vue | 1 - .../pub/ui/alert-dialog/AlertDialogTitle.vue | 1 - .../pub/ui/alert/AlertDescription.vue | 1 - app/components/pub/ui/alert/AlertTitle.vue | 1 - .../pub/ui/breadcrumb/BreadcrumbEllipsis.vue | 1 - .../pub/ui/breadcrumb/BreadcrumbItem.vue | 1 - .../pub/ui/breadcrumb/BreadcrumbLink.vue | 1 - .../pub/ui/breadcrumb/BreadcrumbList.vue | 1 - .../pub/ui/breadcrumb/BreadcrumbPage.vue | 1 - .../pub/ui/breadcrumb/BreadcrumbSeparator.vue | 1 - app/components/pub/ui/button/Button.vue | 2 +- .../pub/ui/calendar/CalendarCell.vue | 1 - .../pub/ui/calendar/CalendarGrid.vue | 1 - .../pub/ui/calendar/CalendarGridRow.vue | 1 - .../pub/ui/calendar/CalendarHeadCell.vue | 1 - .../pub/ui/calendar/CalendarHeader.vue | 1 - .../pub/ui/calendar/CalendarHeading.vue | 1 - app/components/pub/ui/card/Card.vue | 1 - app/components/pub/ui/card/CardContent.vue | 1 - .../pub/ui/card/CardDescription.vue | 1 - app/components/pub/ui/card/CardFooter.vue | 1 - app/components/pub/ui/card/CardHeader.vue | 1 - app/components/pub/ui/card/CardTitle.vue | 1 - app/components/pub/ui/checkbox/Checkbox.vue | 1 - app/components/pub/ui/command/Command.vue | 1 - .../pub/ui/command/CommandEmpty.vue | 1 - .../pub/ui/command/CommandGroup.vue | 1 - .../pub/ui/command/CommandInput.vue | 1 - app/components/pub/ui/command/CommandItem.vue | 1 - app/components/pub/ui/command/CommandList.vue | 1 - .../pub/ui/command/CommandSeparator.vue | 1 - .../pub/ui/command/CommandShortcut.vue | 1 - .../context-menu/ContextMenuCheckboxItem.vue | 1 - .../ui/context-menu/ContextMenuContent.vue | 1 - .../pub/ui/context-menu/ContextMenuItem.vue | 1 - .../pub/ui/context-menu/ContextMenuLabel.vue | 1 - .../ui/context-menu/ContextMenuRadioItem.vue | 1 - .../ui/context-menu/ContextMenuSeparator.vue | 1 - .../ui/context-menu/ContextMenuShortcut.vue | 1 - .../ui/context-menu/ContextMenuSubContent.vue | 1 - .../ui/context-menu/ContextMenuSubTrigger.vue | 1 - .../pub/ui/dialog/DialogContent.vue | 1 - .../pub/ui/dialog/DialogDescription.vue | 1 - app/components/pub/ui/dialog/DialogFooter.vue | 1 - app/components/pub/ui/dialog/DialogHeader.vue | 1 - .../pub/ui/dialog/DialogScrollContent.vue | 1 - app/components/pub/ui/dialog/DialogTitle.vue | 1 - .../pub/ui/drawer/DrawerDescription.vue | 1 - app/components/pub/ui/drawer/DrawerFooter.vue | 1 - app/components/pub/ui/drawer/DrawerHeader.vue | 1 - .../pub/ui/drawer/DrawerOverlay.vue | 1 - app/components/pub/ui/drawer/DrawerTitle.vue | 1 - .../DropdownMenuCheckboxItem.vue | 1 - .../ui/dropdown-menu/DropdownMenuContent.vue | 1 - .../pub/ui/dropdown-menu/DropdownMenuItem.vue | 1 - .../ui/dropdown-menu/DropdownMenuLabel.vue | 1 - .../dropdown-menu/DropdownMenuRadioItem.vue | 1 - .../dropdown-menu/DropdownMenuSeparator.vue | 1 - .../ui/dropdown-menu/DropdownMenuShortcut.vue | 1 - .../dropdown-menu/DropdownMenuSubContent.vue | 1 - .../dropdown-menu/DropdownMenuSubTrigger.vue | 1 - .../pub/ui/hover-card/HoverCardContent.vue | 1 - app/components/pub/ui/input/Input.vue | 1 - app/components/pub/ui/label/Label.vue | 1 - app/components/pub/ui/menubar/Menubar.vue | 1 - .../pub/ui/menubar/MenubarCheckboxItem.vue | 1 - .../pub/ui/menubar/MenubarContent.vue | 1 - app/components/pub/ui/menubar/MenubarItem.vue | 1 - .../pub/ui/menubar/MenubarLabel.vue | 1 - .../pub/ui/menubar/MenubarRadioItem.vue | 1 - .../pub/ui/menubar/MenubarSeparator.vue | 1 - .../pub/ui/menubar/MenubarShortcut.vue | 1 - .../pub/ui/menubar/MenubarSubContent.vue | 1 - .../pub/ui/menubar/MenubarSubTrigger.vue | 1 - .../pub/ui/menubar/MenubarTrigger.vue | 1 - .../navigation-menu/NavigationMenuContent.vue | 1 - .../NavigationMenuIndicator.vue | 1 - .../ui/navigation-menu/NavigationMenuList.vue | 1 - .../NavigationMenuViewport.vue | 1 - .../pub/ui/number-field/NumberField.vue | 1 - .../ui/number-field/NumberFieldContent.vue | 1 - .../ui/number-field/NumberFieldDecrement.vue | 1 - .../ui/number-field/NumberFieldIncrement.vue | 1 - .../pub/ui/number-field/NumberFieldInput.vue | 1 - .../pub/ui/pagination/PaginationEllipsis.vue | 2 +- .../pub/ui/pagination/PaginationFirst.vue | 6 ++-- .../pub/ui/pagination/PaginationLast.vue | 6 ++-- .../pub/ui/pagination/PaginationNext.vue | 6 ++-- .../pub/ui/pagination/PaginationPrev.vue | 6 ++-- app/components/pub/ui/pin-input/PinInput.vue | 1 - .../pub/ui/pin-input/PinInputGroup.vue | 1 - .../pub/ui/pin-input/PinInputInput.vue | 1 - .../pub/ui/popover/PopoverContent.vue | 1 - app/components/pub/ui/progress/Progress.vue | 1 - .../pub/ui/radio-group/RadioGroup.vue | 1 - .../pub/ui/radio-group/RadioGroupItem.vue | 1 - .../ui/range-calendar/RangeCalendarCell.vue | 1 - .../ui/range-calendar/RangeCalendarGrid.vue | 1 - .../range-calendar/RangeCalendarGridRow.vue | 1 - .../range-calendar/RangeCalendarHeadCell.vue | 1 - .../ui/range-calendar/RangeCalendarHeader.vue | 1 - .../range-calendar/RangeCalendarHeading.vue | 1 - .../pub/ui/resizable/ResizableHandle.vue | 1 - .../pub/ui/resizable/ResizablePanelGroup.vue | 1 - .../pub/ui/scroll-area/ScrollBar.vue | 1 - app/components/pub/ui/select/SelectGroup.vue | 1 - app/components/pub/ui/select/SelectItem.vue | 1 - app/components/pub/ui/select/SelectLabel.vue | 1 - .../pub/ui/select/SelectScrollDownButton.vue | 1 - .../pub/ui/select/SelectScrollUpButton.vue | 1 - .../pub/ui/select/SelectSeparator.vue | 1 - .../pub/ui/select/SelectTrigger.vue | 1 - app/components/pub/ui/separator/Separator.vue | 1 - .../pub/ui/sheet/SheetDescription.vue | 1 - app/components/pub/ui/sheet/SheetFooter.vue | 1 - app/components/pub/ui/sheet/SheetHeader.vue | 1 - app/components/pub/ui/sheet/SheetTitle.vue | 1 - .../pub/ui/sidebar/SidebarContent.vue | 1 - .../pub/ui/sidebar/SidebarFooter.vue | 1 - .../pub/ui/sidebar/SidebarGroup.vue | 1 - .../pub/ui/sidebar/SidebarGroupAction.vue | 1 - .../pub/ui/sidebar/SidebarGroupContent.vue | 1 - .../pub/ui/sidebar/SidebarGroupLabel.vue | 1 - .../pub/ui/sidebar/SidebarHeader.vue | 1 - .../pub/ui/sidebar/SidebarInput.vue | 1 - .../pub/ui/sidebar/SidebarInset.vue | 1 - app/components/pub/ui/sidebar/SidebarMenu.vue | 1 - .../pub/ui/sidebar/SidebarMenuAction.vue | 1 - .../pub/ui/sidebar/SidebarMenuBadge.vue | 1 - .../pub/ui/sidebar/SidebarMenuItem.vue | 1 - .../pub/ui/sidebar/SidebarMenuSkeleton.vue | 1 - .../pub/ui/sidebar/SidebarMenuSub.vue | 1 - .../pub/ui/sidebar/SidebarMenuSubButton.vue | 1 - .../pub/ui/sidebar/SidebarSeparator.vue | 1 - app/components/pub/ui/skeleton/Skeleton.vue | 1 - app/components/pub/ui/slider/Slider.vue | 1 - app/components/pub/ui/stepper/Stepper.vue | 1 - .../pub/ui/stepper/StepperDescription.vue | 1 - .../pub/ui/stepper/StepperIndicator.vue | 1 - app/components/pub/ui/stepper/StepperItem.vue | 1 - .../pub/ui/stepper/StepperSeparator.vue | 1 - .../pub/ui/stepper/StepperTitle.vue | 1 - app/components/pub/ui/switch/Switch.vue | 1 - app/components/pub/ui/table/Table.vue | 1 - app/components/pub/ui/table/TableBody.vue | 1 - app/components/pub/ui/table/TableCaption.vue | 1 - app/components/pub/ui/table/TableCell.vue | 1 - app/components/pub/ui/table/TableFooter.vue | 1 - app/components/pub/ui/table/TableHead.vue | 1 - app/components/pub/ui/table/TableHeader.vue | 1 - app/components/pub/ui/table/TableRow.vue | 1 - .../pub/ui/table/separator/Separator.vue | 1 - app/components/pub/ui/tabs/TabsContent.vue | 1 - app/components/pub/ui/tabs/TabsList.vue | 1 - app/components/pub/ui/tabs/TabsTrigger.vue | 1 - .../pub/ui/tags-input/TagsInput.vue | 1 - .../pub/ui/tags-input/TagsInputInput.vue | 1 - .../pub/ui/tags-input/TagsInputItem.vue | 1 - .../pub/ui/tags-input/TagsInputItemDelete.vue | 1 - .../pub/ui/tags-input/TagsInputItemText.vue | 1 - app/components/pub/ui/textarea/Textarea.vue | 1 - app/components/pub/ui/toast/ToastAction.vue | 1 - app/components/pub/ui/toast/ToastClose.vue | 1 - .../pub/ui/toast/ToastDescription.vue | 1 - app/components/pub/ui/toast/ToastTitle.vue | 1 - app/components/pub/ui/toast/ToastViewport.vue | 1 - .../pub/ui/toggle-group/ToggleGroupItem.vue | 1 - .../pub/ui/tooltip/TooltipContent.vue | 1 - app/lib/utils.ts | 3 +- server/api/[...req].ts | 1 + server/api/v1/satusehat/list.post.ts | 32 +++++++++---------- 191 files changed, 108 insertions(+), 236 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..6e16f543 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,30 @@ +# top-most EditorConfig file +root = true + +# Default settings for all files +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true + +# For Markdown files, don't trim trailing whitespace (karena kadang dipakai untuk line break) +[*.md] +trim_trailing_whitespace = false + +# For JSON, YAML, and config files +[*.{json,yml,yaml}] +indent_style = space +indent_size = 2 + +# For JS, TS, Vue files +[*.{js,ts,vue}] +indent_style = space +indent_size = 2 + +# For CSS, SCSS, PostCSS +[*.{css,scss,pcss}] +indent_style = space +indent_size = 2 diff --git a/.vscode/launch.json b/.vscode/launch.json index 9c243a03..4b1147d4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -12,4 +12,4 @@ "webRoot": "${workspaceFolder}" } ] -} \ No newline at end of file +} diff --git a/app/components/app/doctor/list-cfg.ts b/app/components/app/doctor/list-cfg.ts index fcd73e98..0cff0cce 100644 --- a/app/components/app/doctor/list-cfg.ts +++ b/app/components/app/doctor/list-cfg.ts @@ -13,7 +13,7 @@ type SmallDetailDto = any const action = defineAsyncComponent(() => import('~/components/pub/custom-ui/data/dropdown-action-dud.vue')) const statusBadge = defineAsyncComponent(() => import('./status-badge.vue')) -const doctorStatus = { +const _doctorStatus = { 0: 'Tidak Aktif', 1: 'Aktif', } diff --git a/app/components/app/satusehat/card-summary.vue b/app/components/app/satusehat/card-summary.vue index d0c142df..6d139044 100644 --- a/app/components/app/satusehat/card-summary.vue +++ b/app/components/app/satusehat/card-summary.vue @@ -1,5 +1,5 @@ diff --git a/app/components/flow/doctor/list.vue b/app/components/flow/doctor/list.vue index e71096de..98a6a6c9 100644 --- a/app/components/flow/doctor/list.vue +++ b/app/components/flow/doctor/list.vue @@ -1,6 +1,6 @@ @@ -24,20 +24,17 @@ function btnClick() {
- - {{ prep.title }} + + {{ props.prep.title }}
-
+
+/>