This commit is contained in:
Ota Prokopec 2023-02-25 20:18:55 +01:00
parent c4d8e47622
commit 5d0d617aef
4 changed files with 5 additions and 7 deletions

View File

@ -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"

View File

@ -13,7 +13,7 @@
$: if (isReady && !$user) {
if (!(location.pathname.startsWith('/login') || location.pathname.startsWith('/register'))) {
//navigate('/login')
navigate('/login')
}
}

View File

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

View File

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