-
Notifications
You must be signed in to change notification settings - Fork 171
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
Improve 404 handling #310
Merged
Merged
Improve 404 handling #310
Changes from 8 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b964617
Migrate to babel-preset -env
parostatkiem-zz 2492e63
Make 404 error configurable & dismiss the alert on route change
parostatkiem-zz 9ff7368
Update docu & comments
parostatkiem-zz 1abea87
Defauld child mechanizm works with NotExactRoute error
parostatkiem-zz 3d71069
Update missing dependencies
parostatkiem-zz b163080
Fix problems
parostatkiem-zz f964361
Add e2e tets
parostatkiem-zz 9a38c64
Downgrade to the stable version of babel-loader
parostatkiem-zz e62c853
Rename variable & change navPath length check
parostatkiem-zz 1fd5824
rename handle404 variable and move it to Routing
parostatkiem-zz b968710
rename handle404 variable
parostatkiem-zz 6d401c2
Update docu
parostatkiem-zz 188d6c5
Add additional check if aler.ttl is number
parostatkiem-zz a4276b6
disable pageNotFoundHandler
parostatkiem-zz adb63f0
Rename variable & css class
parostatkiem-zz b37fd0f
Add custom handling of 'partly wrong link'
parostatkiem-zz f95e34b
Update docu related to pageNotFoundHandler
parostatkiem-zz f541d5d
Redirect to root's default node in case of "total" 404
parostatkiem-zz 04d8228
Merge branch 'master' of https://github.com/kyma-project/luigi into i…
parostatkiem-zz f7aaca0
Update docs/navigation-configuration.md
bszwarc cc390ef
Update docs/navigation-configuration.md
bszwarc 63eca12
Merge branch 'master' of github.com:kyma-project/luigi into improve-4…
kwiatekus 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 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"presets": [ "es2015" ] | ||
} | ||
"presets": ["@babel/preset-env"] | ||
} |
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,87 @@ | ||
<!DOCTYPE html> | ||
<html lang="en_EN"> | ||
<head> | ||
<title>Page not found</title> | ||
<link rel='stylesheet' href='/fiori-fundamentals/fiori-fundamentals.min.css'> | ||
<style type="text/css"> | ||
body { | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
@keyframes goAndHitSomeCorners { | ||
0% { | ||
transform: scaleX(1); | ||
} | ||
33% { | ||
transform: scaleX(0); | ||
} | ||
|
||
66% { | ||
transform: scaleX(-1); | ||
} | ||
100% { | ||
transform: scaleX(1); | ||
} | ||
} | ||
.section-spacer { | ||
height: 800px; | ||
} | ||
.fd-panel { | ||
padding: 15px; | ||
} | ||
a { | ||
color: #0a6ed1; | ||
text-decoration: none; | ||
} | ||
a:hover { | ||
color: #085caf; | ||
} | ||
.fd-page__header { | ||
padding: 1em; | ||
text-align: center; | ||
} | ||
|
||
.fd-action-bar__title { | ||
font-size: 6em; | ||
} | ||
.fd-action-bar__description { | ||
font-size: 4em; | ||
} | ||
|
||
.error-number--fake { | ||
visibility: hidden; | ||
color: yellow; | ||
} | ||
.error-number--real { | ||
color: #34495f; | ||
transition: 1s; | ||
animation-name: goAndHitSomeCorners; | ||
animation-delay: 5s; | ||
position: absolute; | ||
animation-duration: 3s; | ||
animation-iteration-count: infinite; | ||
animation-timing-function: ease; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header class="fd-page__header"> | ||
<h1 class="fd-action-bar__title"> | ||
Ooooooooops :( | ||
</h1> | ||
<h2 class="fd-action-bar__description">Yes, you guessed right, it's a | ||
<strong class="error-number--real">404</strong> | ||
<strong class='error-number--fake'>404</strong> | ||
error | ||
</h2> | ||
</header> | ||
|
||
|
||
|
||
<script type="text/javascript" src="/luigi-client/luigi-client.js"></script> | ||
<script type="text/javascript"> | ||
|
||
|
||
</script> | ||
|
||
</body> | ||
</html> |
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
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.
--spacer instead of fake?