Removed nanostore logic

This module was way too cumbersome for such a simple implementation ; now the resources are just plain json loaded in astro instead of full on API routes.
This also eliminates the need to have a backend service to serve the API and the app can be deployed statically
This commit is contained in:
Alexis
2023-12-08 14:01:59 +01:00
parent 888d08c545
commit db69bd7e6f
18 changed files with 640 additions and 697 deletions

View File

@@ -1,15 +1,14 @@
<script setup lang="ts">
import { allTasks } from 'nanostores';
import { useStore } from '@nanostores/vue'
import { $world } from '../worldStore';
import type { MapMarker, PlayerMarker } from '@/types/Leaflet';
import { useFocus, useMagicKeys, whenever } from '@vueuse/core';
import { computed, onMounted, ref, onUpdated } from 'vue';
$world.listen(() => {})
await allTasks()
const props = defineProps<{
markers: MapMarker[],
players: PlayerMarker,
}>()
const { markers } = useStore($world).value
const markers = props.markers
// Search functions
const qInput = ref()