-
Notifications
You must be signed in to change notification settings - Fork 1
feat(general): add 404 error page #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chlongng
wants to merge
38
commits into
release/v0.2
Choose a base branch
from
feature/POND-14-404-error
base: release/v0.2
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
2b7260a
[POND-1] add first components
aheartforspinach 1eb5691
[POND-1] add wishlist icon in header
aheartforspinach a72d0b7
[POND-1] add shadcn
aheartforspinach 075d749
[POND-1] push broken stuff
aheartforspinach 9610f87
[POND-1] fix import topic
aheartforspinach 110fa93
[POND-1] add inner and outer
aheartforspinach e176fd6
[POND-12] add cms handling
aheartforspinach 426bd05
[POND-12] adjust throw error
aheartforspinach 09a59f0
[POND-1] fix linter
aheartforspinach 1bf00a7
[POND-1] fix formatting
aheartforspinach ec5d6b8
[POND-1] add code comments
aheartforspinach 6eedace
[POND-1] use line items instead of number
aheartforspinach 0a3a3a6
[POND-1] Merge remote-tracking branch 'origin/release/v0.2' into feat…
aheartforspinach d5ee09c
Apply suggestions from code review
aheartforspinach ae98044
[POND-1] adjust spacing, add snippets for closing stuff
aheartforspinach 631d21f
Merge branch 'feature/POND-1-header' into feature/POND-12-cms-pages
aheartforspinach 7fca445
[POND-12] update branch
aheartforspinach 1401254
[POND-12] use shopware cms base layer
aheartforspinach 2afc7bb
[POND-12] write documentation
aheartforspinach 27f18f8
[POND-12] remove unused code
aheartforspinach 680152a
[POND-12] edit env and add more in docs
aheartforspinach a3a1539
Apply suggestions from code review
aheartforspinach 0c816da
change title
aheartforspinach 820f772
Merge remote-tracking branch 'origin/release/v0.2' into feature/POND-…
aheartforspinach bfcb852
solve megre conflicts
aheartforspinach d4548e9
Merge remote-tracking branch 'origin/feature/POND-12-cms-pages' into …
chlongng 5357abc
Merge remote-tracking branch 'origin/release/v0.2' into feature/POND-…
aheartforspinach 93616f3
fix merge conflicts
aheartforspinach dd097da
POND-14: add 404 error page
chlongng 36321ef
Merge remote-tracking branch 'origin/feature/POND-12-cms-pages' into …
chlongng a9313a8
POND-14: fix spacing
chlongng 8b7f1c7
POND-14: add link
chlongng ed5479a
POND-14: add a general error layout
chlongng 803c699
POND-14: refactored filenames
chlongng dd13e34
POND-14: update docs
chlongng 02f3370
Merge remote-tracking branch 'origin/release/v0.2' into feature/POND-…
chlongng 1cd6447
POND-8: renamed component
chlongng aef15a3
POND-14: fixed documentation naming
chlongng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<template> | ||
<ErrorLayoutInner> | ||
<template #wrapper> | ||
<slot name="wrapper" /> | ||
</template> | ||
<template #container> | ||
<slot name="container" /> | ||
</template> | ||
<template #title> | ||
<slot name="title" /> | ||
</template> | ||
<template #subTitle> | ||
<slot name="subTitle" /> | ||
</template> | ||
<template #button> | ||
<slot name="button" /> | ||
</template> | ||
</ErrorLayoutInner> | ||
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<template> | ||
<slot name="wrapper"> | ||
<div class="container mt-12"> | ||
<slot name="container"> | ||
<h1 class="mb-4 text-center text-4xl uppercase"> | ||
<slot name="title">{{ $t('error.generalHeadline') }}</slot> | ||
</h1> | ||
<p class="mb-4 text-center"> | ||
<slot name="subTitle" /> | ||
</p> | ||
<div class="text-center"> | ||
<slot name="button"> | ||
<NuxtLinkLocale to="/"> | ||
<UiButton variant="link">{{ $t('error.generalButton') }}</UiButton> | ||
</NuxtLinkLocale> | ||
</slot> | ||
</div> | ||
</slot> | ||
</div> | ||
</slot> | ||
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<ErrorNotFoundInner /> | ||
</template> | ||
jkniest marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<template> | ||
<ErrorLayout> | ||
<template #title> | ||
{{ $t('error.404.heading') }} | ||
</template> | ||
<template #subTitle> | ||
{{ $t('error.404.detail') }} | ||
chlongng marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</template> | ||
</ErrorLayout> | ||
</template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Http Error Handling | ||
|
||
## ErrorLayout | ||
The ErrorLayout component is used to display an error page. It comes with customizable slots that allow you to override key elements of the page, including the title, subtitle, button, layout. This documentation will guide you through how to use and customize these slots. | ||
|
||
### Default Structure | ||
|
||
By default, the ErrorLayout component includes the following: | ||
|
||
| Name | Comment | | ||
|:----------|:----------------------------------------------------------------------------------------------| | ||
| Title | A large text that indicates the error (e.g., "Page Not Found") | | ||
| Subtitle | A smaller description of the error (e.g., "Sorry, the page you're looking for doesn't exist") | | ||
| Button | A button that users can click to navigate back to a home or specific page | | ||
| Container | The container for the error message | | ||
| Wrapper | The wrapper for the container | | ||
|
||
### Basic Usage | ||
|
||
```vue | ||
<template> | ||
<ErrorLayout> | ||
<template #title> | ||
Page Not Found | ||
</template> | ||
<template #subTitle> | ||
The requested page could not be found | ||
</template> | ||
<template #button> | ||
<div class="text-center"><a href="/"> | ||
<UiButton>Back to homepage</UiButton> | ||
</a></div> | ||
</template> | ||
</ErrorLayout> | ||
</template> | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.