@live-change/user-frontend 0.8.15 → 0.8.17
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/front/src/identification/IdentificationSettings.vue +1 -1
- package/front/src/identification/UserIdentification.vue +13 -10
- package/front/src/notifications/NotificationsSettings.vue +2 -2
- package/front/src/sign/SignUpEmail.vue +1 -1
- package/front/src/sign/SignUpFinished.vue +1 -1
- package/package.json +27 -27
- package/front/vite.config.js.timestamp-1711533638521-1cea1a18c0069.mjs +0 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<span>
|
|
3
|
-
<router-link v-if="ownerType
|
|
3
|
+
<router-link v-if="ownerType === 'user_User' && profileRouteExists"
|
|
4
4
|
:to="{ name: 'user:profile', params: { user: owner } }"
|
|
5
5
|
v-ripple
|
|
6
6
|
:class="inline ? inlineClass : blockClass">
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
:style="imageStyle"/>
|
|
9
9
|
<img v-else :src="identiconUrl" class="mr-2 border-circle" :style="imageStyle" domResize />
|
|
10
10
|
<span class="text-overflow-ellipsis white-space-nowrap overflow-hidden"
|
|
11
|
-
:class="[ ownerType
|
|
11
|
+
:class="[ ownerType === 'user_User' ? 'font-medium' : 'font-italic' ]">
|
|
12
12
|
{{ name }}
|
|
13
13
|
</span>
|
|
14
14
|
</router-link>
|
|
15
|
-
<span v-else-if="ownerType
|
|
15
|
+
<span v-else-if="ownerType === 'email_Email'">
|
|
16
16
|
<i class="pi pi-envelope mr-2 ml-1"
|
|
17
17
|
style="font-size: 1.3rem; margin-right: 0.7rem !important; position: relative; top: 3px;" />
|
|
18
18
|
<span class="text-overflow-ellipsis white-space-nowrap overflow-hidden">
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
:style="imageStyle"/>
|
|
25
25
|
<img v-else :src="identiconUrl" class="mr-2 border-circle" :style="imageStyle" domResize />
|
|
26
26
|
<span class="text-overflow-ellipsis white-space-nowrap overflow-hidden"
|
|
27
|
-
:class="[ ownerType
|
|
27
|
+
:class="[ ownerType === 'user_User' ? 'font-medium' : 'font-italic' ]">
|
|
28
28
|
{{ name }}
|
|
29
29
|
</span>
|
|
30
30
|
</span>
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
data: {
|
|
49
49
|
type: Object,
|
|
50
|
-
default:
|
|
50
|
+
default: undefined
|
|
51
51
|
},
|
|
52
52
|
inline: {
|
|
53
53
|
type: Boolean,
|
|
@@ -68,12 +68,15 @@
|
|
|
68
68
|
const router = useRouter()
|
|
69
69
|
const profileRouteExists = router.hasRoute('user:profile')
|
|
70
70
|
|
|
71
|
-
import {
|
|
71
|
+
import { usePath, live, actions } from '@live-change/vue3-ssr'
|
|
72
72
|
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
const path = usePath()
|
|
74
|
+
const userIdentificationPath = path.userIdentification.sessionOrUserOwnedIdentification({
|
|
75
|
+
sessionOrUserType: ownerType, sessionOrUser: owner
|
|
76
|
+
})
|
|
77
|
+
|
|
78
|
+
const dataPromise = data.value !== undefined ? Promise.resolve(data) :
|
|
79
|
+
live(userIdentificationPath)
|
|
77
80
|
|
|
78
81
|
const identiconUrl = `/api/identicon/jdenticon/${ownerType}:${owner}/28.svg`
|
|
79
82
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
phone: 'pi-phone'
|
|
52
52
|
}
|
|
53
53
|
function contactText(contact, type) {
|
|
54
|
-
if(type
|
|
54
|
+
if(type === 'web') return 'Web'
|
|
55
55
|
return contact
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
const settings = computed(() => clientConfig.notificationTypes.map(notificationType => {
|
|
90
90
|
const contacts = allContacts.map(contactsData => contactsData.list.value.map(contact => {
|
|
91
91
|
const contactType = contactsData.type
|
|
92
|
-
const settingSource = computed(() => contact.settings.find(s => s.notificationType
|
|
92
|
+
const settingSource = computed(() => contact.settings.find(s => s.notificationType === notificationType))
|
|
93
93
|
const setting = synchronized({
|
|
94
94
|
source: settingSource,
|
|
95
95
|
update: notificationApi.setOrUpdateContactAndNotificationOwnedNotificationSetting,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<div class="text-center mb-5">
|
|
5
5
|
<div class="text-900 text-3xl font-medium mb-3">Sign Up</div>
|
|
6
6
|
<span class="text-600 font-medium line-height-3">Already have an account?</span>
|
|
7
|
-
<router-link :to="{ name: 'user:
|
|
7
|
+
<router-link :to="{ name: 'user:signInEmail' }"
|
|
8
8
|
class="font-medium no-underline ml-2 text-blue-500 cursor-pointer">
|
|
9
9
|
Sign in</router-link>
|
|
10
10
|
</div>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</span>
|
|
14
14
|
<p v-else>
|
|
15
15
|
|
|
16
|
-
Setup your <router-link to="{ name: 'user:
|
|
16
|
+
Setup your <router-link to="{ name: 'user:identification' }">profile</router-link>
|
|
17
17
|
or return to the <router-link to="/">index page</router-link>.
|
|
18
18
|
</p>
|
|
19
19
|
</p>
|
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.17",
|
|
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,30 +22,30 @@
|
|
|
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.
|
|
48
|
-
"@vueuse/core": "^10.
|
|
25
|
+
"@live-change/cli": "^0.8.17",
|
|
26
|
+
"@live-change/dao": "^0.8.17",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.17",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.17",
|
|
29
|
+
"@live-change/email-service": "^0.8.17",
|
|
30
|
+
"@live-change/framework": "^0.8.17",
|
|
31
|
+
"@live-change/identicon-service": "^0.8.17",
|
|
32
|
+
"@live-change/image-frontend": "^0.8.17",
|
|
33
|
+
"@live-change/message-authentication-service": "^0.8.17",
|
|
34
|
+
"@live-change/notification-service": "^0.8.17",
|
|
35
|
+
"@live-change/password-authentication-service": "^0.8.17",
|
|
36
|
+
"@live-change/pattern": "^0.8.17",
|
|
37
|
+
"@live-change/secret-code-service": "^0.8.17",
|
|
38
|
+
"@live-change/secret-link-service": "^0.8.17",
|
|
39
|
+
"@live-change/security-frontend": "^0.8.17",
|
|
40
|
+
"@live-change/security-service": "^0.8.17",
|
|
41
|
+
"@live-change/session-service": "^0.8.17",
|
|
42
|
+
"@live-change/timer-service": "^0.8.17",
|
|
43
|
+
"@live-change/upload-service": "^0.8.17",
|
|
44
|
+
"@live-change/user-identification-service": "^0.8.17",
|
|
45
|
+
"@live-change/user-service": "^0.8.17",
|
|
46
|
+
"@live-change/vue3-components": "^0.8.17",
|
|
47
|
+
"@live-change/vue3-ssr": "^0.8.17",
|
|
48
|
+
"@vueuse/core": "^10.9.0",
|
|
49
49
|
"codeceptjs-assert": "^0.0.5",
|
|
50
50
|
"codeceptjs-video-helper": "0.1.3",
|
|
51
51
|
"compression": "^1.7.4",
|
|
@@ -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.17",
|
|
69
69
|
"codeceptjs": "^3.5.12",
|
|
70
70
|
"generate-password": "1.7.1",
|
|
71
71
|
"playwright": "^1.41.2",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"author": "",
|
|
77
77
|
"license": "BSD-3-Clause",
|
|
78
78
|
"description": "",
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "a736d9be9e93757a967867b98b840e08de2d713c"
|
|
80
80
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// vite.config.js
|
|
2
|
-
import { defineConfig } from "file:///home/m8/IdeaProjects/live-change/node_modules/vite/dist/node/index.js";
|
|
3
|
-
import baseViteConfig from "file:///home/m8/IdeaProjects/live-change/live-change-stack/frontend/frontend-base/vite-config.js";
|
|
4
|
-
var vite_config_default = defineConfig(async ({ command, mode }) => {
|
|
5
|
-
return {
|
|
6
|
-
...await baseViteConfig({ command, mode })
|
|
7
|
-
};
|
|
8
|
-
});
|
|
9
|
-
export {
|
|
10
|
-
vite_config_default as default
|
|
11
|
-
};
|
|
12
|
-
//# s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