auth path / verification only
This commit is contained in:
parent
37755eeac9
commit
4eafb2f123
|
@ -1,15 +1,13 @@
|
|||
module.exports = {
|
||||
env: {
|
||||
browser: true,
|
||||
es2021: true
|
||||
},
|
||||
extends: 'standard-with-typescript',
|
||||
overrides: [
|
||||
],
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module'
|
||||
},
|
||||
rules: {
|
||||
}
|
||||
env: {
|
||||
browser: true,
|
||||
es2021: true,
|
||||
},
|
||||
extends: 'standard-with-typescript',
|
||||
overrides: [],
|
||||
parserOptions: {
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {},
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
let isMounted = false
|
||||
$: isReady = $localeLoading === false && $authLoading === false && isMounted
|
||||
|
||||
$: if (isReady && !$user) {
|
||||
$: if (isReady && $user?.emailVerification) {
|
||||
console.log('change')
|
||||
|
||||
if (!location.pathname.startsWith('/login') && !location.pathname.startsWith('/register')) {
|
||||
|
|
|
@ -7,19 +7,12 @@
|
|||
"isolatedModules": true,
|
||||
"noEmit": true,
|
||||
"resolveJsonModule": true,
|
||||
|
||||
"paths": {
|
||||
"$lib/*": [
|
||||
"./src/lib/*"
|
||||
],
|
||||
"$root/*": [
|
||||
"./*"
|
||||
],
|
||||
"$src/*": [
|
||||
"./src/*"
|
||||
],
|
||||
"$routes/*": [
|
||||
"./src/routes/*"
|
||||
],
|
||||
},
|
||||
"$lib/*": ["./src/lib/*"],
|
||||
"$root/*": ["./*"],
|
||||
"$src/*": ["./src/*"],
|
||||
"$routes/*": ["./src/routes/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,24 +1,24 @@
|
|||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
import preprocess from "svelte-preprocess"
|
||||
import preprocess from 'svelte-preprocess'
|
||||
import path from 'path'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'$lib': path.resolve(__dirname, 'src', 'lib'),
|
||||
'$root': path.resolve(__dirname),
|
||||
'$src': path.resolve(__dirname, 'src'),
|
||||
'$routes': path.resolve(__dirname, 'src', 'routes')
|
||||
}
|
||||
$lib: path.resolve(__dirname, 'src', 'lib'),
|
||||
$root: path.resolve(__dirname),
|
||||
$src: path.resolve(__dirname, 'src'),
|
||||
$routes: path.resolve(__dirname, 'src', 'routes'),
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
svelte({
|
||||
preprocess: preprocess({
|
||||
scss: true,
|
||||
postcss: true
|
||||
})
|
||||
})
|
||||
]
|
||||
postcss: true,
|
||||
}),
|
||||
}),
|
||||
],
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue