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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user