@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/dist/mapintegratedvuer.js +40923 -40602
- package/dist/mapintegratedvuer.umd.cjs +429 -421
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/App.vue +0 -1
- package/src/components/MapContent.vue +0 -1
- package/src/components/viewers/Flatmap.vue +0 -1
- package/src/components/viewers/MultiFlatmap.vue +0 -1
- package/src/components/viewers/Scaffold.vue +0 -1
- package/src/main.js +3 -0
- package/src/mixins/ContentMixin.js +0 -3
- package/src/stores/index.js +14 -15
- package/src/stores/settings.js +0 -4
- package/vite.config.js +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abi-software/mapintegratedvuer",
|
3
|
-
"version": "0.7.1-auth.
|
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.
|
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
@@ -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() {
|
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
|
};
|
package/src/stores/index.js
CHANGED
@@ -1,16 +1,15 @@
|
|
1
|
-
import
|
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
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
})
|
15
|
-
|
16
|
-
|
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
|
+
})
|
package/src/stores/settings.js
CHANGED
@@ -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
|
},
|