From 8134734442640c1cc78104174fd81384960b2172 Mon Sep 17 00:00:00 2001 From: ItsANameToo Date: Mon, 13 Feb 2023 08:58:30 +0100 Subject: [PATCH 1/6] chore: add 402 images and boilerplate --- resources/assets/images/errors/402.svg | 130 ++++++++++++++++++++++++ resources/lang/en/errors.php | 1 + resources/views/errors/402.blade.php | 1 + resources/views/errors/layout.blade.php | 1 + 4 files changed, 133 insertions(+) create mode 100644 resources/assets/images/errors/402.svg create mode 100644 resources/views/errors/402.blade.php diff --git a/resources/assets/images/errors/402.svg b/resources/assets/images/errors/402.svg new file mode 100644 index 000000000..7d3a1d9f5 --- /dev/null +++ b/resources/assets/images/errors/402.svg @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/resources/lang/en/errors.php b/resources/lang/en/errors.php index 95a332032..78c2360e0 100644 --- a/resources/lang/en/errors.php +++ b/resources/lang/en/errors.php @@ -6,6 +6,7 @@ 'heading' => 'Oops, something went wrong ...', 'message' => 'Please try again or get in touch if the issue persists.', '401' => 'Unauthorized', + '402' => 'Payment Required', '403' => 'Forbidden', '403_heading' => 'Oops, this is a restricted area!', '403_message' => 'You don\'t have the proper security clearance to access this part of the site.', diff --git a/resources/views/errors/402.blade.php b/resources/views/errors/402.blade.php new file mode 100644 index 000000000..d1f4e766e --- /dev/null +++ b/resources/views/errors/402.blade.php @@ -0,0 +1 @@ +@extends('errors::layout', ['code' => 402]) diff --git a/resources/views/errors/layout.blade.php b/resources/views/errors/layout.blade.php index 2c9c49b03..72e5a2153 100644 --- a/resources/views/errors/layout.blade.php +++ b/resources/views/errors/layout.blade.php @@ -2,6 +2,7 @@ @php $code = match ($code) { 401 => 401, + 402 => 402, 403 => 403, 404 => 404, 419 => 419, From 644aca8f728a29e228fb4ad0d9906b14c02893b6 Mon Sep 17 00:00:00 2001 From: ItsANameToo Date: Mon, 13 Feb 2023 07:59:11 +0000 Subject: [PATCH 2/6] Optimize 1 SVG(s) --- resources/assets/images/errors/402.svg | 131 +------------------------ 1 file changed, 1 insertion(+), 130 deletions(-) diff --git a/resources/assets/images/errors/402.svg b/resources/assets/images/errors/402.svg index 7d3a1d9f5..80deaf165 100644 --- a/resources/assets/images/errors/402.svg +++ b/resources/assets/images/errors/402.svg @@ -1,130 +1 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + \ No newline at end of file From 463d93a6c2d4bdeece75b8447995b18e0f071544 Mon Sep 17 00:00:00 2001 From: ItsANameToo Date: Mon, 13 Feb 2023 07:59:27 +0000 Subject: [PATCH 3/6] Optimize 1 SVG(s) --- resources/assets/images/errors/402.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/images/errors/402.svg b/resources/assets/images/errors/402.svg index 80deaf165..bcdfa6f3f 100644 --- a/resources/assets/images/errors/402.svg +++ b/resources/assets/images/errors/402.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file From c052d0c954b88081954b6b5090644c08434a767f Mon Sep 17 00:00:00 2001 From: ItsANameToo Date: Mon, 13 Feb 2023 09:00:13 +0100 Subject: [PATCH 4/6] wip --- tests/UserInterface/Exceptions/HandlerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/UserInterface/Exceptions/HandlerTest.php b/tests/UserInterface/Exceptions/HandlerTest.php index ae52c262d..bf5331de6 100644 --- a/tests/UserInterface/Exceptions/HandlerTest.php +++ b/tests/UserInterface/Exceptions/HandlerTest.php @@ -18,7 +18,6 @@ $this->assertStringContainsString(''.trans('ui::errors.500').' | Laravel', $response->getContent()); })->with([ - [402, 'Oops, something went wrong'], [408, 'Oops, something went wrong'], [501, 'Oops, something went wrong'], [519, 'Oops, something went wrong'], @@ -38,6 +37,7 @@ $this->assertStringContainsString(''.trans("ui::errors.${errorCode}").' | Laravel', $response->getContent()); })->with([ [401, 'Oops, something went wrong'], + [402, 'Payment Required'], [403, 'Oops, this is a restricted area!'], [404, 'Oops, something went wrong'], [419, 'Oops, something went wrong'], From e38672b6fe6d575aa914fe035f746064c8617d0e Mon Sep 17 00:00:00 2001 From: ItsANameToo Date: Mon, 13 Feb 2023 09:05:29 +0100 Subject: [PATCH 5/6] wip --- resources/assets/images/errors/402.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/images/errors/402.svg b/resources/assets/images/errors/402.svg index bcdfa6f3f..f47b5579b 100644 --- a/resources/assets/images/errors/402.svg +++ b/resources/assets/images/errors/402.svg @@ -1 +1 @@ - \ No newline at end of file + From 2bd7619a93c070c09520335fe05224dc3706246e Mon Sep 17 00:00:00 2001 From: ItsANameToo Date: Mon, 13 Feb 2023 08:05:48 +0000 Subject: [PATCH 6/6] Optimize 1 SVG(s) --- resources/assets/images/errors/402.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/images/errors/402.svg b/resources/assets/images/errors/402.svg index f47b5579b..801584bf8 100644 --- a/resources/assets/images/errors/402.svg +++ b/resources/assets/images/errors/402.svg @@ -1 +1 @@ - + \ No newline at end of file