@abi-software/mapintegratedvuer 0.7.1-auth.2 → 0.7.1-auth.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/mapintegratedvuer",
3
- "version": "0.7.1-auth.2",
3
+ "version": "0.7.1-auth.4",
4
4
  "license": "Apache-2.0",
5
5
  "scripts": {
6
6
  "serve": "vite --host --force",
@@ -42,7 +42,7 @@
42
42
  "*.js"
43
43
  ],
44
44
  "dependencies": {
45
- "@abi-software/flatmapvuer": "^0.6.1-auth.2",
45
+ "@abi-software/flatmapvuer": "^0.6.1-auth.5",
46
46
  "@abi-software/map-side-bar": "^1.7.0-vue3.4",
47
47
  "@abi-software/plotvuer": "^0.4.0-vue-3-alpha.10",
48
48
  "@abi-software/scaffoldvuer": "^0.4.0-vue3.6",
@@ -16,7 +16,6 @@
16
16
  :enableOpenMapUI="true"
17
17
  :flatmapAPI="flatmapAPI"
18
18
  :sparcAPI="apiLocation"
19
- :userApiKey="userApiKey"
20
19
  @open-map="openMap"
21
20
  />
22
21
  </template>
@@ -15,7 +15,6 @@
15
15
  :openMapOptions="openMapOptions"
16
16
  :flatmapAPI="flatmapAPI"
17
17
  :sparcAPI="apiLocation"
18
- :userApiKey="userApiKey"
19
18
  @pan-zoom-callback="flatmapPanZoomCallback"
20
19
  @open-map="openMap"
21
20
  />
@@ -21,7 +21,6 @@
21
21
  :view-u-r-l="entry.viewUrl"
22
22
  :markerLabels="markerLabels"
23
23
  :flatmapAPI="flatmapAPI"
24
- :userApiKey="userApiKey"
25
24
  />
26
25
  </template>
27
26
 
package/src/main.js CHANGED
@@ -3,6 +3,7 @@ import { createApp } from 'vue'
3
3
  import { createPinia } from 'pinia'
4
4
  import * as VueRouter from 'vue-router'
5
5
  import App from './App.vue'
6
+ import { useMainStore } from './stores/index'
6
7
 
7
8
  const routes = [
8
9
  { path: '/'},
@@ -20,3 +21,5 @@ const app = createApp(App)
20
21
  app.use(pinia)
21
22
  app.use(router)
22
23
  app.mount('#app')
24
+
25
+ useMainStore()
@@ -9,7 +9,6 @@ import markerZoomLevels from "../components/markerZoomLevelsHardCoded.js";
9
9
  import { mapStores } from 'pinia';
10
10
  import { useSettingsStore } from '../stores/settings';
11
11
  import { useSplitFlowStore } from '../stores/splitFlow';
12
- import { useMainStore } from '@/store/index';
13
12
 
14
13
  function capitalise(text) {
15
14
  return text[0].toUpperCase() + text.substring(1)
@@ -33,13 +32,10 @@ export default {
33
32
  },
34
33
  },
35
34
  computed: {
36
- ...mapStores(useSettingsStore, useSplitFlowStore, useMainStore),
35
+ ...mapStores(useSettingsStore, useSplitFlowStore),
37
36
  syncMode() {
38
37
  return this.splitFlowStore.syncMode;
39
38
  },
40
- userApiKey() {
41
- return this.mainStore.userToken;
42
- }
43
39
  },
44
40
  mounted: function () {
45
41
  EventBus.on("startHelp", () => {
@@ -432,7 +428,6 @@ export default {
432
428
  };
433
429
  },
434
430
  created: function () {
435
- console.log("🚀 ~ useMainStore:", useMainStore())
436
431
  this.flatmapAPI = undefined;
437
432
  this.apiLocation = undefined;
438
433
  if (this.settingsStore.flatmapAPI)
@@ -1,16 +1,14 @@
1
- import Vue from 'vue';
2
- import Vuex from 'vuex';
3
- import entries from './modules/entries';
4
- import settings from './modules/settings';
5
- import splitFlow from './modules/splitFlow';
6
- Vue.use(Vuex);
1
+ import { defineStore } from 'pinia'
7
2
 
8
- export const store = new Vuex.Store({
9
- modules: {
10
- entries,
11
- splitFlow,
12
- settings,
13
- }
14
- });
15
-
16
- export default store;
3
+ export const useMainStore = defineStore('main', {
4
+ state: () => ({
5
+ userProfile: {
6
+ token: ''
7
+ },
8
+ }),
9
+ getters: {
10
+ userToken(state) {
11
+ return state.userProfile.token
12
+ },
13
+ },
14
+ })
package/vite.config.js CHANGED
@@ -32,11 +32,6 @@ export default defineConfig(({ command, mode }) => {
32
32
  // https://github.com/antfu/unocss
33
33
  // see unocss.config.ts for config
34
34
  ],
35
- resolve: {
36
- alias: {
37
- '@': path.resolve(__dirname, './src'),
38
- }
39
- },
40
35
  build: {
41
36
  lib: {
42
37
  entry: path.resolve(__dirname, "./src/components/index.js"),
@@ -1,20 +0,0 @@
1
- import { defineStore } from 'pinia'
2
-
3
- export const useMainStore = defineStore('main', {
4
- state: () => ({
5
- userProfile: {
6
- token: ''
7
- }
8
- }),
9
- getters: {
10
- userToken(state) {
11
- return state.userProfile.token
12
- },
13
- },
14
- actions: {
15
-
16
- },
17
- persist: {
18
-
19
- }
20
- })