initial version

This commit is contained in:
2023-11-01 20:27:34 +01:00
commit a5f25d1cd7
27 changed files with 7072 additions and 0 deletions

21
store/pinia.js Normal file
View File

@@ -0,0 +1,21 @@
import { defineStore } from 'pinia';
export const useMainStore = defineStore({
id: 'main',
state: () => ({
isMobile: false,
selectedLocation: null,
mapCenter: [48.371, 10.898],
mapZoom: 13,
}),
actions: {
setIsMobile(value) {
this.isMobile = value;
},
selectLocation(location) {
this.selectedLocation = location;
this.mapCenter = location.coordinates;
this.mapZoom = 15;
},
}
});