@abi-software/flatmapvuer 0.6.1-auth.3 → 0.6.1-auth.5
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/flatmapvuer.js +5 -8
- package/dist/flatmapvuer.umd.cjs +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/AnnotationTool.vue +1 -0
- package/src/main.js +1 -1
- package/src/store/index.js +0 -7
package/package.json
CHANGED
|
@@ -306,6 +306,7 @@ export default {
|
|
|
306
306
|
`${this.flatmapAPI}annotator`
|
|
307
307
|
)
|
|
308
308
|
}
|
|
309
|
+
console.log("🚀 ~ flatmapvuer userToken ~ state:", this.userApiKey)
|
|
309
310
|
this.$annotator.authenticate(this.userApiKey).then((userData) => {
|
|
310
311
|
if (userData.name && userData.email) {
|
|
311
312
|
this.authenticated = true
|
package/src/main.js
CHANGED
package/src/store/index.js
CHANGED
|
@@ -5,17 +5,10 @@ export const useMainStore = defineStore('main', {
|
|
|
5
5
|
userProfile: {
|
|
6
6
|
token: ''
|
|
7
7
|
},
|
|
8
|
-
marker: 'flatmapvuer marker'
|
|
9
8
|
}),
|
|
10
9
|
getters: {
|
|
11
10
|
userToken(state) {
|
|
12
11
|
return state.userProfile.token
|
|
13
12
|
},
|
|
14
13
|
},
|
|
15
|
-
actions: {
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
persist: {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
14
|
})
|