-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix stepper scrolling * redirect on 401 error * prevent multiple applications middleware * add override option to middleware * generic error page * update href * update info collection notice modal content for platforms * platforms text update * update stepper to match figma styling * hide overflow on stepper * updates from pr comments
- Loading branch information
Showing
20 changed files
with
186 additions
and
30 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
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,38 @@ | ||
<script setup lang="ts"> | ||
import type { NuxtError } from '#app' | ||
const { t } = useI18n() | ||
const localePath = useLocalePath() | ||
const props = defineProps({ | ||
error: { type: Object as () => NuxtError, default: undefined } | ||
}) | ||
// TODO: update with other error codes? | ||
const errorKey: string | number = props.error?.statusCode === 404 ? 404 : 'unknown' | ||
// cant use definePageMeta in error.vue | ||
useRoute().meta.hideBreadcrumbs = true | ||
useHead({ | ||
title: errorKey === 404 ? t('page.error.404.title') : t('page.error.unknown.title') | ||
}) | ||
</script> | ||
|
||
<template> | ||
<NuxtLayout> | ||
<div class="m-auto flex flex-col items-center gap-4"> | ||
<h1> | ||
{{ $t(`page.error.${errorKey}.h1`) }} | ||
</h1> | ||
<p>{{ $t(`page.error.${errorKey}.content`) }}</p> | ||
<UButton | ||
:label="$t('btn.goHome')" | ||
icon="i-mdi-home" | ||
size="bcGov" | ||
:to="localePath('/')" | ||
/> | ||
</div> | ||
</NuxtLayout> | ||
</template> |
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
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
25 changes: 25 additions & 0 deletions
25
strr-platform-web/app/components/modal/info/CollectionNotice.vue
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,25 @@ | ||
<template> | ||
<ModalBase :title="$t('modal.info.collectionNotice.title')"> | ||
<div class="space-y-8"> | ||
<i18n-t keypath="modal.info.collectionNotice.content" tag="p" scope="global"> | ||
<template #straAct> | ||
<em class="italic">{{ $t('act.strrAccomodations') }}</em> | ||
</template> | ||
|
||
<template #fippaAct> | ||
<em class="italic">{{ $t('act.fippa') }}</em> | ||
</template> | ||
|
||
<template #email> | ||
<a | ||
class="text-blue-500 underline" | ||
href="mailto:[email protected]" | ||
target="_blank" | ||
> | ||
[email protected] | ||
</a> | ||
</template> | ||
</i18n-t> | ||
</div> | ||
</ModalBase> | ||
</template> |
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,15 @@ | ||
export default defineNuxtRouteMiddleware(async (to) => { | ||
const localePath = useLocalePath() | ||
const { application, loadPermitData } = useStrrBasePermit() | ||
|
||
// TODO: update with unique code check for renewals? | ||
if (to.query.override === 'true') { | ||
return | ||
} | ||
|
||
await loadPermitData(undefined, ApplicationType.PLATFORM) | ||
|
||
if (application.value !== undefined) { | ||
return navigateTo(localePath('/platform/dashboard')) | ||
} | ||
}) |
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.