@abi-software/mapintegratedvuer 0.7.0-vue3.9 → 0.7.1-auth.1

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.0-vue3.9",
3
+ "version": "0.7.1-auth.1",
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-vue3.8",
45
+ "@abi-software/flatmapvuer": "^0.6.1-auth.2",
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,6 +85,7 @@ 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,
88
89
  }
89
90
  }
90
91
  },
@@ -233,6 +233,7 @@ 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
236
237
  }
237
238
  },
238
239
  mounted: async function() {
@@ -16,6 +16,7 @@
16
16
  :enableOpenMapUI="true"
17
17
  :flatmapAPI="flatmapAPI"
18
18
  :sparcAPI="apiLocation"
19
+ :userApiKey="userApiKey"
19
20
  @open-map="openMap"
20
21
  />
21
22
  </template>
@@ -15,6 +15,7 @@
15
15
  :openMapOptions="openMapOptions"
16
16
  :flatmapAPI="flatmapAPI"
17
17
  :sparcAPI="apiLocation"
18
+ :userApiKey="userApiKey"
18
19
  @pan-zoom-callback="flatmapPanZoomCallback"
19
20
  @open-map="openMap"
20
21
  />
@@ -21,6 +21,7 @@
21
21
  :view-u-r-l="entry.viewUrl"
22
22
  :markerLabels="markerLabels"
23
23
  :flatmapAPI="flatmapAPI"
24
+ :userApiKey="userApiKey"
24
25
  />
25
26
  </template>
26
27
 
@@ -430,9 +430,12 @@ export default {
430
430
  created: function () {
431
431
  this.flatmapAPI = undefined;
432
432
  this.apiLocation = undefined;
433
+ this.userApiKey = undefined;
433
434
  if (this.settingsStore.flatmapAPI)
434
435
  this.flatmapAPI = this.settingsStore.flatmapAPI;
435
436
  if (this.settingsStore.sparcApi)
436
437
  this.apiLocation = this.settingsStore.sparcApi;
438
+ if (this.settingsStore.userToken)
439
+ this.userApiKey = this.settingsStore.userToken;
437
440
  },
438
441
  };
@@ -14,6 +14,7 @@ export const useSettingsStore = defineStore('settings', {
14
14
  flatmapAPI: undefined,
15
15
  nlLinkPrefix: undefined,
16
16
  rootUrl: undefined,
17
+ userToken: undefined,
17
18
  facets: { species: [], gender: [], organ: [] },
18
19
  facetLabels: [],
19
20
  markers: [],
@@ -64,6 +65,9 @@ export const useSettingsStore = defineStore('settings', {
64
65
  updateRootUrl(rootUrl) {
65
66
  this.rootUrl = rootUrl;
66
67
  },
68
+ updateUserToken(userToken) {
69
+ this.userToken = userToken;
70
+ },
67
71
  updateMarkers(markers) {
68
72
  this.markers = markers;
69
73
  },