-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from sebadob/139-error-page-fix
HTML error template path fixes
- Loading branch information
Showing
15 changed files
with
317 additions
and
127 deletions.
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<script> | ||
import { slide } from 'svelte/transition'; | ||
import IconChevronRight from "$lib/icons/IconChevronRight.svelte"; | ||
import WithI18n from "$lib/WithI18n.svelte"; | ||
import BrowserCheck from "./BrowserCheck.svelte"; | ||
import LangSelector from "$lib/LangSelector.svelte"; | ||
let t; | ||
let showDetails = false; | ||
</script> | ||
|
||
<BrowserCheck> | ||
<WithI18n bind:t content="error"> | ||
<h1>{t.error}</h1> | ||
<p>{t.errorText}</p> | ||
|
||
{#if t.detailsText} | ||
<div | ||
role="button" | ||
tabindex="0" | ||
class="showDetails" | ||
on:click={() => showDetails = !showDetails} | ||
on:keypress={() => showDetails = !showDetails} | ||
> | ||
{t.details} | ||
<div | ||
class="chevron" | ||
style:margin-top={showDetails ? '' : '-5px'} | ||
style:transform={showDetails ? 'rotate(90deg)' : 'rotate(180deg)'} | ||
> | ||
<IconChevronRight | ||
color="var(--col-act2)" | ||
width=16 | ||
/> | ||
</div> | ||
</div> | ||
|
||
{#if showDetails} | ||
<div transition:slide class="details"> | ||
{t.detailsText} | ||
</div> | ||
{/if} | ||
{/if} | ||
|
||
<LangSelector absolute /> | ||
</WithI18n> | ||
</BrowserCheck> | ||
|
||
<style> | ||
.chevron { | ||
transition: all 250ms; | ||
} | ||
.showDetails { | ||
display: inline-flex; | ||
align-items: center; | ||
gap: .1rem; | ||
cursor: pointer; | ||
color: var(--col-act2); | ||
} | ||
.showDetails:hover { | ||
color: var(--col-act2a); | ||
} | ||
</style> |
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,66 +1,5 @@ | ||
<script> | ||
import { slide } from 'svelte/transition'; | ||
import IconChevronRight from "$lib/icons/IconChevronRight.svelte"; | ||
import WithI18n from "$lib/WithI18n.svelte"; | ||
import BrowserCheck from "../../components/BrowserCheck.svelte"; | ||
import LangSelector from "$lib/LangSelector.svelte"; | ||
let t; | ||
let showDetails = false; | ||
import Error from "../../components/Error.svelte"; | ||
</script> | ||
|
||
<BrowserCheck> | ||
<WithI18n bind:t content="error"> | ||
<h1>{t.error}</h1> | ||
<p>{t.errorText}</p> | ||
|
||
{#if t.detailsText} | ||
<div | ||
role="button" | ||
tabindex="0" | ||
class="showDetails" | ||
on:click={() => showDetails = !showDetails} | ||
on:keypress={() => showDetails = !showDetails} | ||
> | ||
{t.details} | ||
<div | ||
class="chevron" | ||
style:margin-top={showDetails ? '' : '-5px'} | ||
style:transform={showDetails ? 'rotate(90deg)' : 'rotate(180deg)'} | ||
> | ||
<IconChevronRight | ||
color="var(--col-act2)" | ||
width=16 | ||
/> | ||
</div> | ||
</div> | ||
|
||
{#if showDetails} | ||
<div transition:slide class="details"> | ||
{t.detailsText} | ||
</div> | ||
{/if} | ||
{/if} | ||
|
||
<LangSelector absolute /> | ||
</WithI18n> | ||
</BrowserCheck> | ||
|
||
<style> | ||
.chevron { | ||
transition: all 250ms; | ||
} | ||
.showDetails { | ||
display: inline-flex; | ||
align-items: center; | ||
gap: .1rem; | ||
cursor: pointer; | ||
color: var(--col-act2); | ||
} | ||
.showDetails:hover { | ||
color: var(--col-act2a); | ||
} | ||
</style> | ||
<Error/> |
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,5 @@ | ||
<script> | ||
import Error from "../../../components/Error.svelte"; | ||
</script> | ||
|
||
<Error/> |
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,5 @@ | ||
<script> | ||
import Error from "../../../../components/Error.svelte"; | ||
</script> | ||
|
||
<Error/> |
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,5 @@ | ||
<script> | ||
import Error from "../../../../../components/Error.svelte"; | ||
</script> | ||
|
||
<Error/> |
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
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
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.