feat(#48): Add location picker for acquisition, type info and appraisal pages
This commit is contained in:
1 parent
3419f3d4c9
commit
fb9567eee5
7 files changed
+55
-12
No files matched your search
@@ -1,2 +1,3 @@
|
||||
export * from './location';
|
||||
export * from './MarketLocation';
|
||||
export { default as MarketLocationInput } from './MarketLocationInput.vue';
|
||||
@@ -0,0 +1,18 @@
|
||||
import {useLocalStorage} from "@vueuse/core";
|
||||
import {defineStore} from "pinia";
|
||||
import type {MarketLocation} from "./MarketLocation";
|
||||
|
||||
const defaultLocation: MarketLocation = {
|
||||
id: 60003760,
|
||||
name: 'Jita IV - Moon 4 - Caldari Navy Assembly Plant',
|
||||
systemId: 30000142,
|
||||
systemName: 'Jita',
|
||||
regionId: 10000002,
|
||||
regionName: 'The Forge',
|
||||
};
|
||||
|
||||
export const useMarketLocationStore = defineStore("marketLocation", () => {
|
||||
const location = useLocalStorage<MarketLocation>("market-location", defaultLocation);
|
||||
|
||||
return {location};
|
||||
});
|
||||
Reference in new issue
Block a user