@live-change/user-frontend 0.9.32 → 0.9.34

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.
Files changed (54) hide show
  1. package/front/locales/en.json +3 -1
  2. package/front/src/App.vue +32 -1
  3. package/front/src/Index.vue +3 -3
  4. package/front/src/NavBar.vue +8 -8
  5. package/front/src/SettingsTabs.vue +1 -1
  6. package/front/src/config.js +19 -0
  7. package/front/src/connected/ConnectEmail.vue +13 -10
  8. package/front/src/connected/ConnectFinished.vue +4 -4
  9. package/front/src/connected/ConnectPhone.vue +13 -9
  10. package/front/src/connected/Connected.vue +13 -13
  11. package/front/src/delete/Delete.vue +5 -5
  12. package/front/src/delete/DeleteFeedbackSent.vue +4 -4
  13. package/front/src/delete/DeleteFinished.vue +6 -6
  14. package/front/src/google-access/GoogleAccess.vue +4 -4
  15. package/front/src/google-access/GoogleAccessGained.vue +6 -6
  16. package/front/src/identification/IdentificationSettings.vue +17 -14
  17. package/front/src/identification/UserIdentification.vue +8 -8
  18. package/front/src/locale/LocaleSettings.vue +9 -7
  19. package/front/src/message-auth/MessageLink.vue +12 -12
  20. package/front/src/message-auth/MessageSent.vue +20 -17
  21. package/front/src/message-auth/email/ConnectEmail.vue +1 -1
  22. package/front/src/message-auth/email/ResetPasswordEmail.vue +1 -1
  23. package/front/src/message-auth/email/SignInEmail.vue +1 -1
  24. package/front/src/message-auth/email/SignUpEmail.vue +1 -1
  25. package/front/src/nav/UserIcon.vue +11 -12
  26. package/front/src/nav/UserMenu.vue +20 -15
  27. package/front/src/notifications/NotificationButtons.vue +3 -3
  28. package/front/src/notifications/NotificationListPage.vue +2 -2
  29. package/front/src/notifications/NotificationsIcon.vue +12 -10
  30. package/front/src/notifications/NotificationsList.vue +4 -4
  31. package/front/src/notifications/NotificationsSettings.vue +4 -4
  32. package/front/src/notifications/SimpleNotification.vue +3 -3
  33. package/front/src/password/ChangePassword.vue +19 -14
  34. package/front/src/password/ChangePasswordFinished.vue +4 -4
  35. package/front/src/password/Password.vue +406 -449
  36. package/front/src/password/ResetPassword.vue +11 -8
  37. package/front/src/password/ResetPasswordFinished.vue +4 -4
  38. package/front/src/password/ResetPasswordForm.vue +22 -19
  39. package/front/src/phone/CountryInput.vue +13 -15
  40. package/front/src/phone/PhoneInput.vue +3 -3
  41. package/front/src/settings/Settings.vue +5 -5
  42. package/front/src/settings/SettingsIndex.vue +4 -4
  43. package/front/src/settings/SettingsMenu.vue +10 -10
  44. package/front/src/sign/GoogleAuth.vue +4 -4
  45. package/front/src/sign/GoogleAuthReturn.vue +4 -4
  46. package/front/src/sign/LinkedinAuth.vue +4 -4
  47. package/front/src/sign/LinkedinAuthReturn.vue +4 -4
  48. package/front/src/sign/SignInEmail.vue +22 -21
  49. package/front/src/sign/SignInFinished.vue +6 -6
  50. package/front/src/sign/SignOut.vue +5 -5
  51. package/front/src/sign/SignOutFinished.vue +4 -4
  52. package/front/src/sign/SignUpEmail.vue +14 -13
  53. package/front/src/sign/SignUpFinished.vue +19 -16
  54. package/package.json +26 -26
@@ -1,21 +1,21 @@
1
1
  <template>
2
- <div class="w-full lg:w-6 md:w-9" v-shared-element:form="{ duration: '300ms', includeChildren: true }">
3
- <div class="surface-card border-round shadow-2 p-4">
4
- <div class="text-center mb-5">
5
- <div class="text-900 text-3xl font-medium mb-3">
2
+ <div class="w-full lg:w-6/12 md:w-9/12" v-shared-element:form="{ duration: '300ms', includeChildren: true }">
3
+ <div class="bg-surface-0 dark:bg-surface-900 rounded-border shadow p-6">
4
+ <div class="text-center mb-8">
5
+ <div class="text-surface-900 dark:text-surface-0 text-3xl font-medium mb-4">
6
6
  Signed Up
7
7
  </div>
8
8
  </div>
9
- <p class="mt-0 p-0 line-height-3">
9
+ <p class="mt-0 p-0 leading-normal">
10
10
  Congratulations! You have successfully created your account.
11
11
  <span v-if="needPassword && !afterSignIn">
12
12
  You can now set password to secure your account.
13
13
  </span>
14
- <div v-else-if="afterSignIn" class="flex flex-row justify-content-center align-items-center">
14
+ <div v-else-if="afterSignIn" class="flex flex-row justify-center items-center">
15
15
  <router-link :to="afterSignIn" class="no-underline">
16
16
  <Button label="Next" v-ripple />
17
17
  </router-link>
18
- <p class="ml-4" v-if="isMounted && redirectTime">
18
+ <p class="ml-6" v-if="isMounted && redirectTime">
19
19
  Redirect in {{ pluralize('second', Math.ceil((redirectTime - currentTime) / 1000), true) }}...
20
20
  </p>
21
21
  </div>
@@ -27,9 +27,9 @@
27
27
  </p>
28
28
  </div>
29
29
 
30
- <div class="surface-card p-4 shadow-2 border-round mt-2" v-if="needPassword && !afterSignIn">
31
- <div class="text-center mb-5">
32
- <div class="text-900 text-3xl font-medium mb-3">
30
+ <div class="bg-surface-0 dark:bg-surface-900 p-6 shadow rounded-border mt-2" v-if="needPassword && !afterSignIn">
31
+ <div class="text-center mb-8">
32
+ <div class="text-surface-900 dark:text-surface-0 text-3xl font-medium mb-4">
33
33
  {{ passwordExists ? 'Change password' : 'Set password' }}
34
34
  </div>
35
35
  </div>
@@ -40,11 +40,11 @@
40
40
 
41
41
  <template v-if="isMounted">
42
42
 
43
- <div class="p-field mb-3">
44
- <label for="newPassword" class="block text-900 font-medium mb-2">New password</label>
43
+ <div class="p-field mb-4">
44
+ <label for="newPassword" class="block text-surface-900 dark:text-surface-0 font-medium mb-2">New password</label>
45
45
  <Password id="newPassword" class="w-full" inputClass="w-full"
46
46
  toggleMask v-model:masked="masked"
47
- :class="{ 'p-invalid': data.passwordHashError }"
47
+ :invalid="!!data.passwordHashError"
48
48
  v-model="data.passwordHash">
49
49
  <template #footer>
50
50
  <Divider />
@@ -57,11 +57,13 @@
57
57
  </ul>
58
58
  </template>
59
59
  </Password>
60
- <small id="newPassword-help" class="p-error">{{ data.passwordHashError }}</small>
60
+ <Message v-if="data.passwordHashError" severity="error" variant="simple" size="small">
61
+ {{ t(`errors.${data.passwordHashError}`) }}
62
+ </Message>
61
63
  </div>
62
64
 
63
- <div class="p-field mb-3">
64
- <label for="reenterPassword" class="block text-900 font-medium mb-2">Re-enter password</label>
65
+ <div class="p-field mb-4">
66
+ <label for="reenterPassword" class="block text-surface-900 dark:text-surface-0 font-medium mb-2">Re-enter password</label>
65
67
  <Password id="reenterPassword" class="w-full" inputClass="w-full"
66
68
  toggleMask v-model:masked="masked"
67
69
  v-model="secondPassword"
@@ -85,6 +87,7 @@
85
87
 
86
88
  import Button from "primevue/button"
87
89
  import Divider from "primevue/divider"
90
+ import Message from "primevue/message"
88
91
  import Password from "../password/Password.vue"
89
92
 
90
93
  import { live, path, useApi } from '@live-change/vue3-ssr'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-frontend",
3
- "version": "0.9.32",
3
+ "version": "0.9.34",
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.9.32",
26
- "@live-change/dao": "^0.9.32",
27
- "@live-change/dao-vue3": "^0.9.32",
28
- "@live-change/dao-websocket": "^0.9.32",
29
- "@live-change/email-service": "^0.9.32",
30
- "@live-change/framework": "^0.9.32",
31
- "@live-change/identicon-service": "^0.9.32",
32
- "@live-change/image-frontend": "^0.9.32",
33
- "@live-change/message-authentication-service": "^0.9.32",
34
- "@live-change/notification-service": "^0.9.32",
35
- "@live-change/password-authentication-service": "^0.9.32",
36
- "@live-change/pattern": "^0.9.32",
37
- "@live-change/secret-code-service": "^0.9.32",
38
- "@live-change/secret-link-service": "^0.9.32",
39
- "@live-change/security-frontend": "^0.9.32",
40
- "@live-change/security-service": "^0.9.32",
41
- "@live-change/session-service": "^0.9.32",
42
- "@live-change/timer-service": "^0.9.32",
43
- "@live-change/upload-service": "^0.9.32",
44
- "@live-change/user-identification-service": "^0.9.32",
45
- "@live-change/user-service": "^0.9.32",
46
- "@live-change/vue3-components": "^0.9.32",
47
- "@live-change/vue3-ssr": "^0.9.32",
25
+ "@live-change/cli": "^0.9.34",
26
+ "@live-change/dao": "^0.9.34",
27
+ "@live-change/dao-vue3": "^0.9.34",
28
+ "@live-change/dao-websocket": "^0.9.34",
29
+ "@live-change/email-service": "^0.9.34",
30
+ "@live-change/framework": "^0.9.34",
31
+ "@live-change/identicon-service": "^0.9.34",
32
+ "@live-change/image-frontend": "^0.9.34",
33
+ "@live-change/message-authentication-service": "^0.9.34",
34
+ "@live-change/notification-service": "^0.9.34",
35
+ "@live-change/password-authentication-service": "^0.9.34",
36
+ "@live-change/pattern": "^0.9.34",
37
+ "@live-change/secret-code-service": "^0.9.34",
38
+ "@live-change/secret-link-service": "^0.9.34",
39
+ "@live-change/security-frontend": "^0.9.34",
40
+ "@live-change/security-service": "^0.9.34",
41
+ "@live-change/session-service": "^0.9.34",
42
+ "@live-change/timer-service": "^0.9.34",
43
+ "@live-change/upload-service": "^0.9.34",
44
+ "@live-change/user-identification-service": "^0.9.34",
45
+ "@live-change/user-service": "^0.9.34",
46
+ "@live-change/vue3-components": "^0.9.34",
47
+ "@live-change/vue3-ssr": "^0.9.34",
48
48
  "@vueuse/core": "^12.3.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.9.32",
68
+ "@live-change/codeceptjs-helper": "^0.9.34",
69
69
  "codeceptjs": "^3.6.10",
70
70
  "generate-password": "1.7.1",
71
71
  "playwright": "1.49.1",
@@ -76,5 +76,5 @@
76
76
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
77
77
  "license": "BSD-3-Clause",
78
78
  "description": "",
79
- "gitHead": "41022fc283020e2da3e82aa27274401052d2379a"
79
+ "gitHead": "e5f22de77fe6a3c0a0e1b91d17593e195aaae3b3"
80
80
  }