Skip to content

Commit

Permalink
update line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
fr0tt committed Oct 27, 2023
1 parent e03546d commit 5144664
Show file tree
Hide file tree
Showing 33 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace App\Exceptions;

use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;

Expand Down Expand Up @@ -56,20 +58,22 @@ public function render($request, Throwable $exception)
{
if ($exception instanceof \PHPOpenSourceSaver\JWTAuth\Exceptions\TokenExpiredException) {
return response()->json('Token has expired', 401);
} else if ($exception instanceof \PHPOpenSourceSaver\JWTAuth\Exceptions\TokenBlacklistedException ||
$exception instanceof \PHPOpenSourceSaver\JWTAuth\Exceptions\TokenInvalidException) {
} else if (
$exception instanceof \PHPOpenSourceSaver\JWTAuth\Exceptions\TokenBlacklistedException ||
$exception instanceof \PHPOpenSourceSaver\JWTAuth\Exceptions\TokenInvalidException
) {
return response()->json('Token is invalid', 401);
} else if ($exception instanceof \Intervention\Image\Exception\NotWritableException) {
return response()->json('Storage path not writable.', 403);
} else if ($exception instanceof AuthorizationException) {
return response()->json('This action is unauthorized.', 403);
} else if ($exception instanceof ModelNotFoundException) {
return response()->json(
str_replace('App\\', '', $exception->getModel()) . ' not found.'
, 404);
str_replace('App\\', '', $exception->getModel()) . ' not found.',
404
);
}

return parent::render($request, $exception);
}

}
Binary file modified public/fonts/Inter-Black.woff
Binary file not shown.
Binary file modified public/fonts/Inter-Black.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-BlackItalic.woff
Binary file not shown.
Binary file modified public/fonts/Inter-BlackItalic.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-Bold.woff
Binary file not shown.
Binary file modified public/fonts/Inter-Bold.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-BoldItalic.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-ExtraBold.woff
Binary file not shown.
Binary file modified public/fonts/Inter-ExtraBold.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-ExtraBoldItalic.woff
Binary file not shown.
Binary file modified public/fonts/Inter-ExtraBoldItalic.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-ExtraLight.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-ExtraLightItalic.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-Italic.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-Light.woff
Binary file not shown.
Binary file modified public/fonts/Inter-Light.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-LightItalic.woff
Binary file not shown.
Binary file modified public/fonts/Inter-LightItalic.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-Medium.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-MediumItalic.woff
Binary file not shown.
Binary file modified public/fonts/Inter-Regular.woff
Binary file not shown.
Binary file modified public/fonts/Inter-Regular.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-SemiBold.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-SemiBoldItalic.woff
Binary file not shown.
Binary file modified public/fonts/Inter-ThinItalic.woff
Binary file not shown.
Binary file modified public/fonts/Inter-ThinItalic.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-italic.var.woff2
Binary file not shown.
Binary file modified public/fonts/Inter-roman.var.woff2
Binary file not shown.
Binary file modified public/fonts/Inter.var.woff2
Binary file not shown.
Binary file modified public/logo_144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/js/store/modules/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
name: name,
parent_id: parentId,
icon_id: iconId,
is_root: parentId == null
is_root: parentId == null,
})
.then((response) => {
context.dispatch('fetchCollections', {
Expand Down
Empty file added storage/database.sqlite
Empty file.

0 comments on commit 5144664

Please sign in to comment.