@live-change/user-frontend 0.2.46 → 0.2.48
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.
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
</div>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
<div class="flex flex-wrap align-items-center" v-if="userData !== undefined">
|
|
11
|
-
<div class="relative" @click="openImageEditor">
|
|
10
|
+
<div class="flex flex-wrap align-items-center justify-content-center" v-if="userData !== undefined">
|
|
11
|
+
<div class="relative mb-3" @click="openImageEditor">
|
|
12
12
|
<Image v-if="userData?.image" :image="userData.image" class="mr-2 border-circle profile-image"
|
|
13
13
|
domResize width="200" height="200" />
|
|
14
14
|
<img v-else :src="identiconUrl" class="mr-2 border-circle profile-image">
|
package/front/src/router.js
CHANGED
|
@@ -42,6 +42,12 @@ export function userRoutes(config = {}) {
|
|
|
42
42
|
]
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export {
|
|
46
|
+
messageAuthRoutes, signRoutes, passwordResetRoutes, notificationsRoutes,
|
|
47
|
+
deleteRoutes, passwordChangeRoutes, connectedRoutes, identificationRoutes,
|
|
48
|
+
notificationsSettingsRoutes
|
|
49
|
+
}
|
|
50
|
+
|
|
45
51
|
export async function sitemap(route, api) {
|
|
46
52
|
route({ name: 'SignIn' })
|
|
47
53
|
route({ name: 'SignUp' })
|
|
@@ -7,13 +7,16 @@
|
|
|
7
7
|
<router-link :to="afterSignIn" class="no-underline">
|
|
8
8
|
<Button label="Next" v-ripple />
|
|
9
9
|
</router-link>
|
|
10
|
-
|
|
10
|
+
<p class="ml-4" v-if="isMounted && redirectTime">
|
|
11
|
+
Redirect in {{ pluralize('second', Math.ceil((redirectTime - currentTime) / 1000), true) }}...
|
|
12
|
+
</p>
|
|
11
13
|
</div>
|
|
12
14
|
</div>
|
|
13
15
|
</div>
|
|
14
16
|
</template>
|
|
15
17
|
|
|
16
18
|
<script setup>
|
|
19
|
+
|
|
17
20
|
import Button from 'primevue/button'
|
|
18
21
|
|
|
19
22
|
import { onMounted, ref } from 'vue'
|
|
@@ -21,8 +24,25 @@
|
|
|
21
24
|
onMounted(() => isMounted.value = true)
|
|
22
25
|
|
|
23
26
|
import { computed } from 'vue'
|
|
27
|
+
import { currentTime } from "@live-change/frontend-base"
|
|
28
|
+
|
|
29
|
+
import { useRouter } from 'vue-router'
|
|
30
|
+
const router = useRouter()
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
import pluralize from 'pluralize'
|
|
24
34
|
|
|
25
35
|
const afterSignIn = computed( () => isMounted.value && localStorage.redirectAfterSignIn )
|
|
36
|
+
let redirectTime
|
|
37
|
+
onMounted(() => {
|
|
38
|
+
redirectTime = new Date(Date.now() + 10 * 1000)
|
|
39
|
+
setTimeout(() => {
|
|
40
|
+
if (afterSignIn.value) {
|
|
41
|
+
localStorage.removeItem('redirectAfterSignIn')
|
|
42
|
+
router.push(afterSignIn.value)
|
|
43
|
+
}
|
|
44
|
+
}, 10 * 1000)
|
|
45
|
+
})
|
|
26
46
|
</script>
|
|
27
47
|
|
|
28
48
|
<style>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="w-full lg:w-6 md:w-9" v-shared-element:form="{ duration: '300ms', includeChildren: true }">
|
|
3
3
|
<div class="surface-card border-round shadow-2 p-4">
|
|
4
4
|
<div class="text-900 font-medium mb-3 text-xl mb-4">Signed Out</div>
|
|
5
|
-
<p class="mt-0 p-0 line-height-3">You have successfully signed
|
|
5
|
+
<p class="mt-0 p-0 line-height-3">You have successfully signed from your account.</p>
|
|
6
6
|
</div>
|
|
7
7
|
</div>
|
|
8
8
|
</template>
|
package/index.js
CHANGED
|
@@ -10,5 +10,4 @@ export { NotificationsIcon, SimpleNotification, notificationTypes }
|
|
|
10
10
|
import UserIcon from "./front/src/nav/UserIcon.vue"
|
|
11
11
|
export { UserIcon }
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
export { userRoutes, installUserRedirects }
|
|
13
|
+
export * from "./front/src/router.js"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/user-frontend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.48",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"@live-change/email-service": "0.3.23",
|
|
28
28
|
"@live-change/framework": "0.7.24",
|
|
29
29
|
"@live-change/identicon-service": "0.3.23",
|
|
30
|
-
"@live-change/image-frontend": "^0.2.
|
|
30
|
+
"@live-change/image-frontend": "^0.2.48",
|
|
31
31
|
"@live-change/message-authentication-service": "0.3.23",
|
|
32
32
|
"@live-change/notification-service": "0.3.23",
|
|
33
33
|
"@live-change/password-authentication-service": "0.3.23",
|
|
34
34
|
"@live-change/pattern": "0.2.1",
|
|
35
35
|
"@live-change/secret-code-service": "0.3.23",
|
|
36
36
|
"@live-change/secret-link-service": "0.3.23",
|
|
37
|
-
"@live-change/security-frontend": "^0.2.
|
|
37
|
+
"@live-change/security-frontend": "^0.2.48",
|
|
38
38
|
"@live-change/security-service": "0.3.23",
|
|
39
39
|
"@live-change/session-service": "0.3.23",
|
|
40
40
|
"@live-change/timer-service": "0.3.23",
|
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"compression": "^1.7.4",
|
|
50
50
|
"cross-env": "^7.0.3",
|
|
51
51
|
"get-port-sync": "1.0.1",
|
|
52
|
+
"pluralize": "^8.0.0",
|
|
52
53
|
"primeflex": "^3.3.0",
|
|
53
54
|
"primeicons": "^6.0.1",
|
|
54
55
|
"primevue": "^3.28.0",
|
|
@@ -77,5 +78,5 @@
|
|
|
77
78
|
"author": "",
|
|
78
79
|
"license": "BSD-3-Clause",
|
|
79
80
|
"description": "",
|
|
80
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "5985597dfda3e8b0b8651d28dde2c32333a16132"
|
|
81
82
|
}
|