@live-change/user-frontend 0.8.140 → 0.8.142
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.
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
const isMounted = ref(false)
|
|
27
27
|
onMounted(() => isMounted.value = true)
|
|
28
28
|
|
|
29
|
-
import { computed } from 'vue'
|
|
29
|
+
import { computed, onUnmounted } from 'vue'
|
|
30
30
|
import { currentTime } from "@live-change/frontend-base"
|
|
31
31
|
|
|
32
32
|
import { useRouter } from 'vue-router'
|
|
@@ -36,15 +36,20 @@
|
|
|
36
36
|
|
|
37
37
|
const afterSignIn = computed( () => isMounted.value && localStorage.redirectAfterSignIn )
|
|
38
38
|
const redirectTime = ref()
|
|
39
|
+
let timeout
|
|
39
40
|
onMounted(() => {
|
|
40
41
|
redirectTime.value = new Date(Date.now() + 10 * 1000)
|
|
41
|
-
setTimeout(() => {
|
|
42
|
+
timeout = setTimeout(() => {
|
|
42
43
|
if (afterSignIn.value) {
|
|
43
44
|
localStorage.removeItem('redirectAfterSignIn')
|
|
44
45
|
router.push(JSON.parse(afterSignIn.value))
|
|
45
46
|
}
|
|
46
47
|
}, redirectTime.value - currentTime.value)
|
|
47
48
|
})
|
|
49
|
+
onUnmounted(() => {
|
|
50
|
+
clearTimeout(timeout)
|
|
51
|
+
})
|
|
52
|
+
|
|
48
53
|
</script>
|
|
49
54
|
|
|
50
55
|
<style>
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
import Password from "../password/Password.vue"
|
|
89
89
|
|
|
90
90
|
import { live, path } from '@live-change/vue3-ssr'
|
|
91
|
-
import { computed, ref, onMounted } from 'vue'
|
|
91
|
+
import { computed, ref, onMounted, onUnmounted } from 'vue'
|
|
92
92
|
|
|
93
93
|
import { currentTime } from "@live-change/frontend-base"
|
|
94
94
|
|
|
@@ -113,15 +113,19 @@
|
|
|
113
113
|
|
|
114
114
|
const afterSignIn = computed( () => isMounted.value && localStorage.redirectAfterSignIn )
|
|
115
115
|
const redirectTime = ref()
|
|
116
|
+
let timeout
|
|
116
117
|
onMounted(() => {
|
|
117
118
|
redirectTime.value = new Date(Date.now() + 10 * 1000)
|
|
118
|
-
setTimeout(() => {
|
|
119
|
+
timeout = setTimeout(() => {
|
|
119
120
|
if (afterSignIn.value) {
|
|
120
121
|
localStorage.removeItem('redirectAfterSignIn')
|
|
121
122
|
router.push(JSON.parse(afterSignIn.value))
|
|
122
123
|
}
|
|
123
124
|
}, redirectTime.value - currentTime.value)
|
|
124
125
|
})
|
|
126
|
+
onUnmounted(() => {
|
|
127
|
+
clearTimeout(timeout)
|
|
128
|
+
})
|
|
125
129
|
|
|
126
130
|
const needPassword = computed(() => (!passwordExists.value
|
|
127
131
|
&& (emails.value?.length > 0 || phones.value?.length > 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/user-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.142",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node --inspect --expose-gc server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
|
|
@@ -22,29 +22,29 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/cli": "^0.8.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/email-service": "^0.8.
|
|
30
|
-
"@live-change/framework": "^0.8.
|
|
31
|
-
"@live-change/identicon-service": "^0.8.
|
|
32
|
-
"@live-change/image-frontend": "^0.8.
|
|
33
|
-
"@live-change/message-authentication-service": "^0.8.
|
|
34
|
-
"@live-change/notification-service": "^0.8.
|
|
35
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
36
|
-
"@live-change/pattern": "^0.8.
|
|
37
|
-
"@live-change/secret-code-service": "^0.8.
|
|
38
|
-
"@live-change/secret-link-service": "^0.8.
|
|
39
|
-
"@live-change/security-frontend": "^0.8.
|
|
40
|
-
"@live-change/security-service": "^0.8.
|
|
41
|
-
"@live-change/session-service": "^0.8.
|
|
42
|
-
"@live-change/timer-service": "^0.8.
|
|
43
|
-
"@live-change/upload-service": "^0.8.
|
|
44
|
-
"@live-change/user-identification-service": "^0.8.
|
|
45
|
-
"@live-change/user-service": "^0.8.
|
|
46
|
-
"@live-change/vue3-components": "^0.8.
|
|
47
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
25
|
+
"@live-change/cli": "^0.8.142",
|
|
26
|
+
"@live-change/dao": "^0.8.142",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.142",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.142",
|
|
29
|
+
"@live-change/email-service": "^0.8.142",
|
|
30
|
+
"@live-change/framework": "^0.8.142",
|
|
31
|
+
"@live-change/identicon-service": "^0.8.142",
|
|
32
|
+
"@live-change/image-frontend": "^0.8.142",
|
|
33
|
+
"@live-change/message-authentication-service": "^0.8.142",
|
|
34
|
+
"@live-change/notification-service": "^0.8.142",
|
|
35
|
+
"@live-change/password-authentication-service": "^0.8.142",
|
|
36
|
+
"@live-change/pattern": "^0.8.142",
|
|
37
|
+
"@live-change/secret-code-service": "^0.8.142",
|
|
38
|
+
"@live-change/secret-link-service": "^0.8.142",
|
|
39
|
+
"@live-change/security-frontend": "^0.8.142",
|
|
40
|
+
"@live-change/security-service": "^0.8.142",
|
|
41
|
+
"@live-change/session-service": "^0.8.142",
|
|
42
|
+
"@live-change/timer-service": "^0.8.142",
|
|
43
|
+
"@live-change/upload-service": "^0.8.142",
|
|
44
|
+
"@live-change/user-identification-service": "^0.8.142",
|
|
45
|
+
"@live-change/user-service": "^0.8.142",
|
|
46
|
+
"@live-change/vue3-components": "^0.8.142",
|
|
47
|
+
"@live-change/vue3-ssr": "^0.8.142",
|
|
48
48
|
"@vueuse/core": "^10.11.0",
|
|
49
49
|
"codeceptjs-assert": "^0.0.5",
|
|
50
50
|
"codeceptjs-video-helper": "0.1.3",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"wtfnode": "^0.9.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@live-change/codeceptjs-helper": "^0.8.
|
|
68
|
+
"@live-change/codeceptjs-helper": "^0.8.142",
|
|
69
69
|
"codeceptjs": "^3.6.5",
|
|
70
70
|
"generate-password": "1.7.1",
|
|
71
71
|
"playwright": "^1.41.2",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
77
77
|
"license": "BSD-3-Clause",
|
|
78
78
|
"description": "",
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "6c6de9015268e09f3517dc2dbb28e673ea19fe74"
|
|
80
80
|
}
|