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