@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/dist/mapintegratedvuer.js +40925 -40616
- package/dist/mapintegratedvuer.umd.cjs +429 -421
- package/dist/style.css +1 -1
- package/package.json +2 -2
- 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 +1 -6
- package/src/stores/index.js +13 -15
- package/vite.config.js +0 -5
- package/src/store/index.js +0 -20
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.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.
|
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",
|
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
|
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)
|
package/src/stores/index.js
CHANGED
@@ -1,16 +1,14 @@
|
|
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
|
+
}),
|
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"),
|
package/src/store/index.js
DELETED
@@ -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
|
-
})
|