MVP #5.3 #75

Merged
matthieu42morin merged 25 commits from master into deploy/prod 2023-03-16 15:12:10 +00:00
4 changed files with 28 additions and 37 deletions
Showing only changes of commit 4eafb2f123 - Show all commits

View File

@ -1,15 +1,13 @@
module.exports = {
env: {
browser: true,
es2021: true
es2021: true,
},
extends: 'standard-with-typescript',
overrides: [
],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
sourceType: 'module',
},
rules: {
}
rules: {},
}

View File

@ -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')) {

View File

@ -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/*"]
}
}
}

View File

@ -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,
}),
}),
],
})