-
Notifications
You must be signed in to change notification settings - Fork 1
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
error pages #93
Merged
Merged
error pages #93
Changes from 5 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
257eac3
initial draft for error pages
Matisse-Sulzer 51f8240
indentation fixed
Matisse-Sulzer 044f6d7
docs
Matisse-Sulzer 983c721
error pages v1
Matisse-Sulzer 5c51757
indentation fixed
Matisse-Sulzer 2e0f86e
layout adjusted, using RouterProvider instead of BrowserRouter to ren…
Matisse-Sulzer 3b7cb88
linter
Matisse-Sulzer 9a2b0a5
documentation
Matisse-Sulzer 20c0d8d
Merge branch 'development' into frontend/enhancement/error_pages
Matisse-Sulzer d8034f9
Merge branch 'development' of https://github.com/SELab-2/UGent-3 into…
Matisse-Sulzer a47932e
Merge branch 'frontend/enhancement/error_pages' of https://github.com…
Matisse-Sulzer 32e501e
linter error parameters
Matisse-Sulzer e1a9140
Merge branch 'development' into frontend/enhancement/error_pages
Matisse-Sulzer 0c632c0
Added i18n, changed general structure of App component and got rid of…
Matisse-Sulzer 8471fd6
Merge branch 'development' into frontend/enhancement/error_pages
Matisse-Sulzer 8d5178c
linting, package-lock.json fix
Matisse-Sulzer 246cec7
package file
Matisse-Sulzer 8baecd8
changes to paramters in ErrorPage.tsx
Matisse-Sulzer df75fd5
Merge branch 'development' into frontend/enhancement/error_pages
Matisse-Sulzer 28066ff
Merge branch 'development' into frontend/enhancement/error_pages
Matisse-Sulzer 04c19cb
use of keyPrefix
Matisse-Sulzer 775b6b4
Merge branch 'development' into frontend/enhancement/error_pages
Matisse-Sulzer 7a6c25c
Merge branch 'development' into frontend/enhancement/error_pages
Matisse-Sulzer 7634577
keyPrefix
Matisse-Sulzer 3cc8257
fix
Matisse-Sulzer 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 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,22 @@ | ||
import { Box, Typography } from "@mui/material"; | ||
|
||
/** | ||
* This component is the NotFound component that will be rendered when a page is not found. | ||
* @returns - The NotFound component | ||
*/ | ||
export function NotFound() { | ||
return ( | ||
<Box sx={{ flexGrow: 1 }}> | ||
<Typography variant="h1"> | ||
404 | ||
</Typography> | ||
<Typography variant="h3"> | ||
Page Not Found | ||
</Typography> | ||
<Typography variant="body1"> | ||
Sorry, the page you are looking for could not be found. | ||
</Typography> | ||
<Box component="img" src="/error_pigeon.png" alt="icon" /> | ||
</Box> | ||
); | ||
} |
This file contains 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,22 @@ | ||
import { Box, Typography } from "@mui/material"; | ||
|
||
/** | ||
* This component is the ServerError component that will be rendered when a general server error occurs. | ||
* @returns - The ServerError component | ||
*/ | ||
export function ServerError() { | ||
return ( | ||
<Box sx={{ flexGrow: 1 }}> | ||
<Typography variant="h1"> | ||
5XX | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't use 5XX, figure out the actual status code |
||
</Typography> | ||
<Typography variant="h3"> | ||
General Server Error | ||
</Typography> | ||
<Typography variant="body1"> | ||
Sorry, there seems to be a problem with the server. | ||
</Typography> | ||
<Box component="img" src="/error_pigeon.png" alt="icon" /> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, just make sure there is no copy right on this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The image is free of copyright. 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
32e501e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e1a9140