@abi-software/mapintegratedvuer 0.7.1-auth.1 → 0.7.1-auth.3

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.1",
3
+ "version": "0.7.1-auth.3",
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.4",
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",
package/src/App.vue CHANGED
@@ -85,7 +85,6 @@ export default {
85
85
  flatmapAPI: import.meta.env.VITE_FLATMAPAPI_LOCATION,
86
86
  nlLinkPrefix: import.meta.env.VITE_NL_LINK_PREFIX,
87
87
  rootUrl: import.meta.env.VITE_ROOT_URL,
88
- userToken: undefined,
89
88
  }
90
89
  }
91
90
  },
@@ -233,7 +233,6 @@ export default {
233
233
  this.options.flatmapAPI ? this.settingsStore.updateFlatmapAPI(this.options.flatmapAPI) : null,
234
234
  this.options.nlLinkPrefix ? this.settingsStore.updateNLLinkPrefix(this.options.nlLinkPrefix) : null
235
235
  this.options.rootUrl ? this.settingsStore.updateRootUrl(this.options.rootUrl) : null
236
- this.options.userToken ? this.settingsStore.updateUserToken(this.options.userToken) : null
237
236
  }
238
237
  },
239
238
  mounted: async function() {
@@ -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()
@@ -430,12 +430,9 @@ export default {
430
430
  created: function () {
431
431
  this.flatmapAPI = undefined;
432
432
  this.apiLocation = undefined;
433
- this.userApiKey = undefined;
434
433
  if (this.settingsStore.flatmapAPI)
435
434
  this.flatmapAPI = this.settingsStore.flatmapAPI;
436
435
  if (this.settingsStore.sparcApi)
437
436
  this.apiLocation = this.settingsStore.sparcApi;
438
- if (this.settingsStore.userToken)
439
- this.userApiKey = this.settingsStore.userToken;
440
437
  },
441
438
  };
@@ -1,16 +1,15 @@
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
+ marker: 'mapintegratedvuer marker'
9
+ }),
10
+ getters: {
11
+ userToken(state) {
12
+ return state.userProfile.token
13
+ },
14
+ },
15
+ })
@@ -14,7 +14,6 @@ export const useSettingsStore = defineStore('settings', {
14
14
  flatmapAPI: undefined,
15
15
  nlLinkPrefix: undefined,
16
16
  rootUrl: undefined,
17
- userToken: undefined,
18
17
  facets: { species: [], gender: [], organ: [] },
19
18
  facetLabels: [],
20
19
  markers: [],
@@ -65,9 +64,6 @@ export const useSettingsStore = defineStore('settings', {
65
64
  updateRootUrl(rootUrl) {
66
65
  this.rootUrl = rootUrl;
67
66
  },
68
- updateUserToken(userToken) {
69
- this.userToken = userToken;
70
- },
71
67
  updateMarkers(markers) {
72
68
  this.markers = markers;
73
69
  },
package/vite.config.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import path from "path";
2
- const pathSrc = path.resolve(__dirname, "./src");
3
2
  import { defineConfig } from 'vite'
4
3
  import vue from '@vitejs/plugin-vue'
5
4
  import Components from 'unplugin-vue-components/vite'