From 91defb70293477b695e212ca2c77884bc6b641e0 Mon Sep 17 00:00:00 2001 From: Isaac Hatilima Date: Tue, 8 Oct 2024 21:53:27 +0200 Subject: [PATCH] Fixed Typescript errors --- app/Services/AlbumService.php | 2 +- resources/js/Layouts/AuthenticatedLayout.vue | 8 ++-- resources/js/Layouts/GuestLayout.vue | 4 +- resources/js/Pages/Albums.vue | 48 +++++++++++-------- resources/js/Pages/Auth/ConfirmPassword.vue | 10 ++-- resources/js/Pages/Auth/ForgotPassword.vue | 10 ++-- resources/js/Pages/Auth/Login.vue | 12 ++--- resources/js/Pages/Auth/Register.vue | 12 ++--- resources/js/Pages/Auth/ResetPassword.vue | 10 ++-- resources/js/Pages/Auth/TwoFactorAuthCode.vue | 8 ++-- resources/js/Pages/Auth/VerifyEmail.vue | 4 +- resources/js/Pages/Dashboard.vue | 2 +- .../Pages/Profile/Partials/DeleteUserForm.vue | 12 ++--- .../Pages/Profile/Partials/TwoFactorAuth.vue | 6 +-- .../Profile/Partials/UpdatePasswordForm.vue | 10 ++-- .../Partials/UpdateProfileInformationForm.vue | 12 ++--- .../ApplicationLogo.vue | 0 .../{Components => components}/Dropdown.vue | 0 .../DropdownLink.vue | 0 .../{Components => components}/InputError.vue | 0 .../js/{Components => components}/Modal.vue | 0 .../js/{Components => components}/NavLink.vue | 0 .../ResponsiveNavLink.vue | 0 .../js/{Components => components}/TopNav.vue | 12 ++--- .../sidenav/SideNav.vue | 6 +-- .../sidenav/SideNavContent.vue | 0 .../ui/accordion/Accordion.vue | 0 .../ui/accordion/AccordionContent.vue | 0 .../ui/accordion/AccordionItem.vue | 0 .../ui/accordion/AccordionTrigger.vue | 0 .../ui/accordion/index.ts | 0 .../ui/alert-dialog/AlertDialog.vue | 0 .../ui/alert-dialog/AlertDialogAction.vue | 0 .../ui/alert-dialog/AlertDialogCancel.vue | 0 .../ui/alert-dialog/AlertDialogContent.vue | 0 .../alert-dialog/AlertDialogDescription.vue | 0 .../ui/alert-dialog/AlertDialogFooter.vue | 0 .../ui/alert-dialog/AlertDialogHeader.vue | 0 .../ui/alert-dialog/AlertDialogTitle.vue | 0 .../ui/alert-dialog/AlertDialogTrigger.vue | 0 .../ui/alert-dialog/index.ts | 0 .../ui/badge/Badge.vue | 0 .../ui/badge/index.ts | 0 .../ui/breadcrumb/Breadcrumb.vue | 0 .../ui/breadcrumb/BreadcrumbEllipsis.vue | 0 .../ui/breadcrumb/BreadcrumbItem.vue | 0 .../ui/breadcrumb/BreadcrumbLink.vue | 0 .../ui/breadcrumb/BreadcrumbList.vue | 0 .../ui/breadcrumb/BreadcrumbPage.vue | 0 .../ui/breadcrumb/BreadcrumbSeparator.vue | 0 .../ui/breadcrumb/index.ts | 0 .../ui/button/Button.vue | 0 .../ui/button/index.ts | 0 .../ui/calendar/Calendar.vue | 0 .../ui/calendar/CalendarCell.vue | 0 .../ui/calendar/CalendarCellTrigger.vue | 2 +- .../ui/calendar/CalendarGrid.vue | 0 .../ui/calendar/CalendarGridBody.vue | 0 .../ui/calendar/CalendarGridHead.vue | 0 .../ui/calendar/CalendarGridRow.vue | 0 .../ui/calendar/CalendarHeadCell.vue | 0 .../ui/calendar/CalendarHeader.vue | 0 .../ui/calendar/CalendarHeading.vue | 0 .../ui/calendar/CalendarNextButton.vue | 2 +- .../ui/calendar/CalendarPrevButton.vue | 2 +- .../ui/calendar/index.ts | 0 .../ui/card/Card.vue | 0 .../ui/card/CardContent.vue | 0 .../ui/card/CardDescription.vue | 0 .../ui/card/CardFooter.vue | 0 .../ui/card/CardHeader.vue | 0 .../ui/card/CardTitle.vue | 0 .../ui/card/index.ts | 0 .../ui/checkbox/Checkbox.vue | 0 .../ui/checkbox/index.ts | 0 .../ui/dialog/Dialog.vue | 0 .../ui/dialog/DialogClose.vue | 0 .../ui/dialog/DialogContent.vue | 0 .../ui/dialog/DialogDescription.vue | 0 .../ui/dialog/DialogFooter.vue | 0 .../ui/dialog/DialogHeader.vue | 0 .../ui/dialog/DialogScrollContent.vue | 0 .../ui/dialog/DialogTitle.vue | 0 .../ui/dialog/DialogTrigger.vue | 0 .../ui/dialog/index.ts | 0 .../ui/dropdown-menu/DropdownMenu.vue | 0 .../DropdownMenuCheckboxItem.vue | 0 .../ui/dropdown-menu/DropdownMenuContent.vue | 0 .../ui/dropdown-menu/DropdownMenuGroup.vue | 0 .../ui/dropdown-menu/DropdownMenuItem.vue | 0 .../ui/dropdown-menu/DropdownMenuLabel.vue | 0 .../dropdown-menu/DropdownMenuRadioGroup.vue | 0 .../dropdown-menu/DropdownMenuRadioItem.vue | 0 .../dropdown-menu/DropdownMenuSeparator.vue | 0 .../ui/dropdown-menu/DropdownMenuShortcut.vue | 0 .../ui/dropdown-menu/DropdownMenuSub.vue | 0 .../dropdown-menu/DropdownMenuSubContent.vue | 0 .../dropdown-menu/DropdownMenuSubTrigger.vue | 0 .../ui/dropdown-menu/DropdownMenuTrigger.vue | 0 .../ui/dropdown-menu/index.ts | 0 .../ui/input/Input.vue | 0 .../ui/input/index.ts | 0 .../ui/label/Label.vue | 0 .../ui/label/index.ts | 0 .../ui/navigation-menu/NavigationMenu.vue | 0 .../navigation-menu/NavigationMenuContent.vue | 0 .../NavigationMenuIndicator.vue | 0 .../ui/navigation-menu/NavigationMenuItem.vue | 0 .../ui/navigation-menu/NavigationMenuLink.vue | 0 .../ui/navigation-menu/NavigationMenuList.vue | 0 .../navigation-menu/NavigationMenuTrigger.vue | 0 .../NavigationMenuViewport.vue | 0 .../ui/navigation-menu/index.ts | 0 .../ui/pin-input/PinInput.vue | 0 .../ui/pin-input/PinInputGroup.vue | 0 .../ui/pin-input/PinInputInput.vue | 0 .../ui/pin-input/PinInputSeparator.vue | 0 .../ui/pin-input/index.ts | 0 .../ui/popover/Popover.vue | 0 .../ui/popover/PopoverContent.vue | 0 .../ui/popover/PopoverTrigger.vue | 0 .../ui/popover/index.ts | 0 .../ui/radio-group/RadioGroup.vue | 0 .../ui/radio-group/RadioGroupItem.vue | 0 .../ui/radio-group/index.ts | 0 .../ui/scroll-area/ScrollArea.vue | 0 .../ui/scroll-area/ScrollBar.vue | 0 .../ui/scroll-area/index.ts | 0 .../ui/select/Select.vue | 0 .../ui/select/SelectContent.vue | 0 .../ui/select/SelectGroup.vue | 0 .../ui/select/SelectItem.vue | 0 .../ui/select/SelectItemText.vue | 0 .../ui/select/SelectLabel.vue | 0 .../ui/select/SelectScrollDownButton.vue | 0 .../ui/select/SelectScrollUpButton.vue | 0 .../ui/select/SelectSeparator.vue | 0 .../ui/select/SelectTrigger.vue | 0 .../ui/select/SelectValue.vue | 0 .../ui/select/index.ts | 0 .../ui/sheet/Sheet.vue | 0 .../ui/sheet/SheetClose.vue | 0 .../ui/sheet/SheetContent.vue | 0 .../ui/sheet/SheetDescription.vue | 0 .../ui/sheet/SheetFooter.vue | 0 .../ui/sheet/SheetHeader.vue | 0 .../ui/sheet/SheetTitle.vue | 0 .../ui/sheet/SheetTrigger.vue | 0 .../ui/sheet/index.ts | 0 .../ui/table/Table.vue | 0 .../ui/table/TableBody.vue | 0 .../ui/table/TableCaption.vue | 0 .../ui/table/TableCell.vue | 0 .../ui/table/TableEmpty.vue | 0 .../ui/table/TableFooter.vue | 0 .../ui/table/TableHead.vue | 0 .../ui/table/TableHeader.vue | 0 .../ui/table/TableRow.vue | 0 .../ui/table/index.ts | 0 .../ui/tabs/Tabs.vue | 0 .../ui/tabs/TabsContent.vue | 0 .../ui/tabs/TabsList.vue | 0 .../ui/tabs/TabsTrigger.vue | 0 .../ui/tabs/index.ts | 0 .../ui/toast/Toast.vue | 0 .../ui/toast/ToastAction.vue | 0 .../ui/toast/ToastClose.vue | 0 .../ui/toast/ToastDescription.vue | 0 .../ui/toast/ToastProvider.vue | 0 .../ui/toast/ToastTitle.vue | 0 .../ui/toast/ToastViewport.vue | 0 .../ui/toast/Toaster.vue | 0 .../ui/toast/index.ts | 0 .../ui/toast/use-toast.ts | 0 resources/js/types/index.d.ts | 1 + 175 files changed, 101 insertions(+), 94 deletions(-) rename resources/js/{Components => components}/ApplicationLogo.vue (100%) rename resources/js/{Components => components}/Dropdown.vue (100%) rename resources/js/{Components => components}/DropdownLink.vue (100%) rename resources/js/{Components => components}/InputError.vue (100%) rename resources/js/{Components => components}/Modal.vue (100%) rename resources/js/{Components => components}/NavLink.vue (100%) rename resources/js/{Components => components}/ResponsiveNavLink.vue (100%) rename resources/js/{Components => components}/TopNav.vue (91%) rename resources/js/{Components => components}/sidenav/SideNav.vue (82%) rename resources/js/{Components => components}/sidenav/SideNavContent.vue (100%) rename resources/js/{Components => components}/ui/accordion/Accordion.vue (100%) rename resources/js/{Components => components}/ui/accordion/AccordionContent.vue (100%) rename resources/js/{Components => components}/ui/accordion/AccordionItem.vue (100%) rename resources/js/{Components => components}/ui/accordion/AccordionTrigger.vue (100%) rename resources/js/{Components => components}/ui/accordion/index.ts (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialog.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogAction.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogCancel.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogContent.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogDescription.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogFooter.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogHeader.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogTitle.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/AlertDialogTrigger.vue (100%) rename resources/js/{Components => components}/ui/alert-dialog/index.ts (100%) rename resources/js/{Components => components}/ui/badge/Badge.vue (100%) rename resources/js/{Components => components}/ui/badge/index.ts (100%) rename resources/js/{Components => components}/ui/breadcrumb/Breadcrumb.vue (100%) rename resources/js/{Components => components}/ui/breadcrumb/BreadcrumbEllipsis.vue (100%) rename resources/js/{Components => components}/ui/breadcrumb/BreadcrumbItem.vue (100%) rename resources/js/{Components => components}/ui/breadcrumb/BreadcrumbLink.vue (100%) rename resources/js/{Components => components}/ui/breadcrumb/BreadcrumbList.vue (100%) rename resources/js/{Components => components}/ui/breadcrumb/BreadcrumbPage.vue (100%) rename resources/js/{Components => components}/ui/breadcrumb/BreadcrumbSeparator.vue (100%) rename resources/js/{Components => components}/ui/breadcrumb/index.ts (100%) rename resources/js/{Components => components}/ui/button/Button.vue (100%) rename resources/js/{Components => components}/ui/button/index.ts (100%) rename resources/js/{Components => components}/ui/calendar/Calendar.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarCell.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarCellTrigger.vue (96%) rename resources/js/{Components => components}/ui/calendar/CalendarGrid.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarGridBody.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarGridHead.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarGridRow.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarHeadCell.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarHeader.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarHeading.vue (100%) rename resources/js/{Components => components}/ui/calendar/CalendarNextButton.vue (93%) rename resources/js/{Components => components}/ui/calendar/CalendarPrevButton.vue (93%) rename resources/js/{Components => components}/ui/calendar/index.ts (100%) rename resources/js/{Components => components}/ui/card/Card.vue (100%) rename resources/js/{Components => components}/ui/card/CardContent.vue (100%) rename resources/js/{Components => components}/ui/card/CardDescription.vue (100%) rename resources/js/{Components => components}/ui/card/CardFooter.vue (100%) rename resources/js/{Components => components}/ui/card/CardHeader.vue (100%) rename resources/js/{Components => components}/ui/card/CardTitle.vue (100%) rename resources/js/{Components => components}/ui/card/index.ts (100%) rename resources/js/{Components => components}/ui/checkbox/Checkbox.vue (100%) rename resources/js/{Components => components}/ui/checkbox/index.ts (100%) rename resources/js/{Components => components}/ui/dialog/Dialog.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogClose.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogContent.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogDescription.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogFooter.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogHeader.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogScrollContent.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogTitle.vue (100%) rename resources/js/{Components => components}/ui/dialog/DialogTrigger.vue (100%) rename resources/js/{Components => components}/ui/dialog/index.ts (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenu.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuCheckboxItem.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuContent.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuGroup.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuItem.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuLabel.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuRadioGroup.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuRadioItem.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuSeparator.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuShortcut.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuSub.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuSubContent.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuSubTrigger.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/DropdownMenuTrigger.vue (100%) rename resources/js/{Components => components}/ui/dropdown-menu/index.ts (100%) rename resources/js/{Components => components}/ui/input/Input.vue (100%) rename resources/js/{Components => components}/ui/input/index.ts (100%) rename resources/js/{Components => components}/ui/label/Label.vue (100%) rename resources/js/{Components => components}/ui/label/index.ts (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenu.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenuContent.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenuIndicator.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenuItem.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenuLink.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenuList.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenuTrigger.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/NavigationMenuViewport.vue (100%) rename resources/js/{Components => components}/ui/navigation-menu/index.ts (100%) rename resources/js/{Components => components}/ui/pin-input/PinInput.vue (100%) rename resources/js/{Components => components}/ui/pin-input/PinInputGroup.vue (100%) rename resources/js/{Components => components}/ui/pin-input/PinInputInput.vue (100%) rename resources/js/{Components => components}/ui/pin-input/PinInputSeparator.vue (100%) rename resources/js/{Components => components}/ui/pin-input/index.ts (100%) rename resources/js/{Components => components}/ui/popover/Popover.vue (100%) rename resources/js/{Components => components}/ui/popover/PopoverContent.vue (100%) rename resources/js/{Components => components}/ui/popover/PopoverTrigger.vue (100%) rename resources/js/{Components => components}/ui/popover/index.ts (100%) rename resources/js/{Components => components}/ui/radio-group/RadioGroup.vue (100%) rename resources/js/{Components => components}/ui/radio-group/RadioGroupItem.vue (100%) rename resources/js/{Components => components}/ui/radio-group/index.ts (100%) rename resources/js/{Components => components}/ui/scroll-area/ScrollArea.vue (100%) rename resources/js/{Components => components}/ui/scroll-area/ScrollBar.vue (100%) rename resources/js/{Components => components}/ui/scroll-area/index.ts (100%) rename resources/js/{Components => components}/ui/select/Select.vue (100%) rename resources/js/{Components => components}/ui/select/SelectContent.vue (100%) rename resources/js/{Components => components}/ui/select/SelectGroup.vue (100%) rename resources/js/{Components => components}/ui/select/SelectItem.vue (100%) rename resources/js/{Components => components}/ui/select/SelectItemText.vue (100%) rename resources/js/{Components => components}/ui/select/SelectLabel.vue (100%) rename resources/js/{Components => components}/ui/select/SelectScrollDownButton.vue (100%) rename resources/js/{Components => components}/ui/select/SelectScrollUpButton.vue (100%) rename resources/js/{Components => components}/ui/select/SelectSeparator.vue (100%) rename resources/js/{Components => components}/ui/select/SelectTrigger.vue (100%) rename resources/js/{Components => components}/ui/select/SelectValue.vue (100%) rename resources/js/{Components => components}/ui/select/index.ts (100%) rename resources/js/{Components => components}/ui/sheet/Sheet.vue (100%) rename resources/js/{Components => components}/ui/sheet/SheetClose.vue (100%) rename resources/js/{Components => components}/ui/sheet/SheetContent.vue (100%) rename resources/js/{Components => components}/ui/sheet/SheetDescription.vue (100%) rename resources/js/{Components => components}/ui/sheet/SheetFooter.vue (100%) rename resources/js/{Components => components}/ui/sheet/SheetHeader.vue (100%) rename resources/js/{Components => components}/ui/sheet/SheetTitle.vue (100%) rename resources/js/{Components => components}/ui/sheet/SheetTrigger.vue (100%) rename resources/js/{Components => components}/ui/sheet/index.ts (100%) rename resources/js/{Components => components}/ui/table/Table.vue (100%) rename resources/js/{Components => components}/ui/table/TableBody.vue (100%) rename resources/js/{Components => components}/ui/table/TableCaption.vue (100%) rename resources/js/{Components => components}/ui/table/TableCell.vue (100%) rename resources/js/{Components => components}/ui/table/TableEmpty.vue (100%) rename resources/js/{Components => components}/ui/table/TableFooter.vue (100%) rename resources/js/{Components => components}/ui/table/TableHead.vue (100%) rename resources/js/{Components => components}/ui/table/TableHeader.vue (100%) rename resources/js/{Components => components}/ui/table/TableRow.vue (100%) rename resources/js/{Components => components}/ui/table/index.ts (100%) rename resources/js/{Components => components}/ui/tabs/Tabs.vue (100%) rename resources/js/{Components => components}/ui/tabs/TabsContent.vue (100%) rename resources/js/{Components => components}/ui/tabs/TabsList.vue (100%) rename resources/js/{Components => components}/ui/tabs/TabsTrigger.vue (100%) rename resources/js/{Components => components}/ui/tabs/index.ts (100%) rename resources/js/{Components => components}/ui/toast/Toast.vue (100%) rename resources/js/{Components => components}/ui/toast/ToastAction.vue (100%) rename resources/js/{Components => components}/ui/toast/ToastClose.vue (100%) rename resources/js/{Components => components}/ui/toast/ToastDescription.vue (100%) rename resources/js/{Components => components}/ui/toast/ToastProvider.vue (100%) rename resources/js/{Components => components}/ui/toast/ToastTitle.vue (100%) rename resources/js/{Components => components}/ui/toast/ToastViewport.vue (100%) rename resources/js/{Components => components}/ui/toast/Toaster.vue (100%) rename resources/js/{Components => components}/ui/toast/index.ts (100%) rename resources/js/{Components => components}/ui/toast/use-toast.ts (100%) diff --git a/app/Services/AlbumService.php b/app/Services/AlbumService.php index 9dda173..88f567a 100644 --- a/app/Services/AlbumService.php +++ b/app/Services/AlbumService.php @@ -25,7 +25,7 @@ public function createAlbum($request) public function updateAlbum($request,$album) { - $album->name = $request->name; + $album->name = strtoupper($request->name); $album->description = $request->description; return $album->save(); } diff --git a/resources/js/Layouts/AuthenticatedLayout.vue b/resources/js/Layouts/AuthenticatedLayout.vue index 715f898..50c4053 100644 --- a/resources/js/Layouts/AuthenticatedLayout.vue +++ b/resources/js/Layouts/AuthenticatedLayout.vue @@ -1,8 +1,8 @@