@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/dist/mapintegratedvuer.js +97586 -74278
- package/dist/mapintegratedvuer.umd.cjs +1457 -423
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +1 -0
- package/src/components/MapContent.vue +1 -0
- package/src/components/viewers/Flatmap.vue +1 -0
- package/src/components/viewers/MultiFlatmap.vue +1 -0
- package/src/components/viewers/Scaffold.vue +1 -0
- package/src/mixins/ContentMixin.js +3 -0
- package/src/stores/settings.js +4 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abi-software/mapintegratedvuer",
|
3
|
-
"version": "0.7.
|
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-
|
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
@@ -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() {
|
@@ -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
|
};
|
package/src/stores/settings.js
CHANGED
@@ -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
|
},
|