⬆️ Finished upgrading SvelteKit
This commit is contained in:
@@ -3,21 +3,6 @@
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
<script lang="ts" context="module">
|
||||
throw new Error(
|
||||
'@migration task: Check code was safely removed (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292722)'
|
||||
);
|
||||
|
||||
// import { signedIn } from '$lib/stores';
|
||||
|
||||
// export async function load({ session }) {
|
||||
// if (session.authenticated) {
|
||||
// signedIn.set(true);
|
||||
// }
|
||||
// return {};
|
||||
// }
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
import { navbarVisible } from '$lib/stores';
|
||||
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
<script lang="ts">
|
||||
throw new Error(
|
||||
'@migration task: Add data prop (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292707)'
|
||||
);
|
||||
|
||||
import * as Sentry from '@sentry/browser';
|
||||
import { navbarVisible } from '$lib/stores';
|
||||
import { browser } from '$app/env';
|
||||
@@ -20,7 +16,8 @@
|
||||
|
||||
navbarVisible.set(true);
|
||||
|
||||
export let verified: boolean;
|
||||
export let data;
|
||||
const { verified }: boolean = data;
|
||||
|
||||
let loginData = {
|
||||
email: '',
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
import { redirect } from '@sveltejs/kit';
|
||||
|
||||
export async function load({ session, url }) {
|
||||
export async function load({ parent, url }) {
|
||||
const verified = url.searchParams.get('verified');
|
||||
const returnTo =
|
||||
url.searchParams.get('returnTo') !== null ? url.searchParams.get('returnTo') : '/dashboard';
|
||||
if (session.authenticated) {
|
||||
|
||||
const { email } = await parent();
|
||||
if (email) {
|
||||
throw redirect(302, returnTo);
|
||||
}
|
||||
return {
|
||||
|
||||
@@ -4,11 +4,8 @@
|
||||
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
<script lang="ts">
|
||||
throw new Error(
|
||||
'@migration task: Add data prop (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292707)'
|
||||
);
|
||||
|
||||
export let error: string;
|
||||
export let data;
|
||||
const { error } = data;
|
||||
</script>
|
||||
|
||||
<div>
|
||||
|
||||
@@ -4,14 +4,11 @@
|
||||
- file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
-->
|
||||
<script lang="ts">
|
||||
throw new Error(
|
||||
'@migration task: Add data prop (https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3292707)'
|
||||
);
|
||||
|
||||
import { getLocalization } from '../../../lib/i18n';
|
||||
import { getLocalization } from '$lib/i18n';
|
||||
|
||||
const { t } = getLocalization();
|
||||
export let token: string;
|
||||
export let data;
|
||||
let { token }: string = data;
|
||||
let isSubmitting = false;
|
||||
interface PasswordData {
|
||||
password1: string;
|
||||
|
||||
Reference in New Issue
Block a user