frontend: add map view

Signed-off-by: Nicolas Froger <nicolas@kektus.xyz>
This commit is contained in:
Nicolas Froger 2024-07-25 19:25:08 +02:00
commit 4e848fe952
No known key found for this signature in database
13 changed files with 765 additions and 13 deletions

View file

@ -21,7 +21,7 @@ import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert/index
import { useAuthStore } from '@/stores/auth.js'
import { API_BASE_URL, S3_BUCKET, S3_ENDPOINT } from '@/config.js'
const authStore = useAuthStore();
const authStore = useAuthStore()
const formSchema = toTypedSchema(z.object({
description: z.string().min(1),
@ -62,7 +62,7 @@ const onSubmit = form.handleSubmit(async (values) => {
method: 'POST',
headers: {
'Content-Type': 'application/json',
"X-admin-token": authStore.adminToken
'X-admin-token': authStore.adminToken
},
body: JSON.stringify({ filename: file.file.name })
})
@ -105,7 +105,7 @@ const onSubmit = form.handleSubmit(async (values) => {
method: 'POST',
headers: {
'Content-Type': 'application/json',
"X-admin-token": authStore.adminToken
'X-admin-token': authStore.adminToken
},
body: JSON.stringify({
description: values.description,