1-fix
This commit is contained in:
parent
c4d8e47622
commit
5d0d617aef
|
@ -4,7 +4,7 @@
|
|||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --host 0.0.0.0",
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview",
|
||||
"appwrite": "docker compose -f ./appwrite/docker-compose.yml up"
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
$: if (isReady && !$user) {
|
||||
if (!(location.pathname.startsWith('/login') || location.pathname.startsWith('/register'))) {
|
||||
//navigate('/login')
|
||||
navigate('/login')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ import { getLocationDataFromLatAndLong } from '../locations'
|
|||
export const load = async (pathName: string) => {
|
||||
const checkPoints = []
|
||||
const game = (await databases.listDocuments('63cef30d6da945dd4250', '63cef4bd210fdf2e5888', [Query.equal('ExpURL', pathName)])).documents[0]
|
||||
|
||||
|
||||
const checkPointsIds = game.ExpCPsID
|
||||
|
||||
for (const checkPointId of checkPointsIds) {
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
|
||||
<script>
|
||||
import { account, user } from '$lib/appwrite'
|
||||
import { navigate } from 'svelte-routing'
|
||||
|
@ -9,8 +7,8 @@
|
|||
|
||||
export let purpose = 'login' //possible values login, register
|
||||
|
||||
let email = 'otaprokopec@gmail.com'
|
||||
let password = 'YoYoYoYo'
|
||||
let email = ''
|
||||
let password = ''
|
||||
|
||||
$: console.log($user)
|
||||
|
||||
|
|
Loading…
Reference in New Issue