@live-change/user-frontend 0.9.56 → 0.9.58

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.
@@ -6,15 +6,15 @@
6
6
  cursor-pointer transition-colors transition-duration-150 border-round">
7
7
  <Image v-if="myIdentification?.image" :image="myIdentification.image" width="56" height="56"
8
8
  class="mr-0 rounded-full border-1 border-surface-400 dark:border-surface-600 object-cover w-12 max-w-none" />
9
- <img v-else-if="ownerData[0] === 'session_Session'" src="/images/empty-user-photo.svg"
9
+ <img v-else-if="ownerData[0] === 'session_Session'" src="/images/empty-user-photo.svg" width="56" height="56"
10
10
  class="mr-0 rounded-full border-1 border-surface-400 dark:border-surface-600 w-12 max-w-none" />
11
- <img v-else :src="identiconUrl"
11
+ <img v-else :src="identiconUrl" width="56" height="56"
12
12
  class="mr-0 rounded-full border-1 border-surface-400 dark:border-surface-600 w-12 max-w-none" />
13
13
  </span>
14
14
  </a>
15
15
  <div class="align-items-center flex-grow-1 justify-content-between hidden absolute w-full md:w-auto
16
- bg-surface-0 dark:bg-surface-950 dark:border-1 dark:border-surface-800
17
- right-0 top-full z-5 shadow">
16
+ bg-surface-0 dark:bg-surface-950 dark:border-1 dark:border-surface-800
17
+ right-0 top-full z-5 shadow">
18
18
  <loading-zone suspense>
19
19
  <template v-slot:loading>
20
20
  <div class="flex items-center justify-center top-0 left-0 notifications-loading">
@@ -2,7 +2,7 @@
2
2
  <div class="w-full lg:w-6/12 md:w-9/12" v-shared-element:form="{ duration: '300ms', includeChildren: true }">
3
3
  <div class="bg-surface-0 dark:bg-surface-900 rounded-border shadow p-6">
4
4
  <div class="text-surface-900 dark:text-surface-0 font-medium mb-4 text-xl mb-6">Signed Out</div>
5
- <p class="mt-0 p-0 leading-normal">You have successfully signed from your account.</p>
5
+ <p class="mt-0 p-0 leading-normal">You have successfully signed out from your account.</p>
6
6
  </div>
7
7
  </div>
8
8
  </template>
@@ -126,9 +126,9 @@
126
126
  const redirectTime = ref()
127
127
  let redirectTimeout
128
128
  function doRedirect() {
129
+ console.log("DO REDIRECT?", localStorage.redirectAfterSignIn)
129
130
  if(localStorage.redirectAfterSignIn) {
130
131
  const route = JSON.parse(localStorage.redirectAfterSignIn)
131
- localStorage.removeItem('redirectAfterSignIn')
132
132
  const delay = route?.meta?.afterSignInRedirectDelay ?? userClientConfig?.afterSignInRedirectDelay ?? 10
133
133
  delete route.meta
134
134
  afterSignIn.value = route
@@ -137,6 +137,7 @@
137
137
  redirectTime.value = new Date(Date.now() + delay * 1000)
138
138
  redirectTimeout = setTimeout(() => {
139
139
  console.log("DO DELAYED REDIRECT AFTER SIGN UP!", route)
140
+ localStorage.removeItem('redirectAfterSignIn')
140
141
  router.push(route)
141
142
  }, redirectTime.value - currentTime.value)
142
143
  } else {
@@ -147,6 +148,7 @@
147
148
  summary: 'Signed up',
148
149
  detail: 'Congratulations! You have successfully created your account.'
149
150
  })
151
+ localStorage.removeItem('redirectAfterSignIn')
150
152
  router.push(route)
151
153
  }, 100)
152
154
  }
@@ -160,6 +162,7 @@
160
162
  await new Promise(resolve => setTimeout(resolve, 200))
161
163
  }
162
164
  console.log("DONE WAITING FOR USER!")
165
+ console.log("FINISHED?", finished)
163
166
  if(!finished) doRedirect()
164
167
  })
165
168
  onUnmounted(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-frontend",
3
- "version": "0.9.56",
3
+ "version": "0.9.58",
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.55",
26
- "@live-change/dao": "^0.9.56",
27
- "@live-change/dao-vue3": "^0.9.56",
28
- "@live-change/dao-websocket": "^0.9.56",
29
- "@live-change/email-service": "^0.9.56",
30
- "@live-change/framework": "^0.9.56",
31
- "@live-change/identicon-service": "^0.9.56",
32
- "@live-change/image-frontend": "^0.9.56",
33
- "@live-change/message-authentication-service": "^0.9.56",
34
- "@live-change/notification-service": "^0.9.56",
35
- "@live-change/password-authentication-service": "^0.9.56",
36
- "@live-change/pattern": "^0.9.56",
37
- "@live-change/secret-code-service": "^0.9.56",
38
- "@live-change/secret-link-service": "^0.9.56",
39
- "@live-change/security-frontend": "^0.9.56",
40
- "@live-change/security-service": "^0.9.56",
41
- "@live-change/session-service": "^0.9.56",
42
- "@live-change/timer-service": "^0.9.56",
43
- "@live-change/upload-service": "^0.9.56",
44
- "@live-change/user-identification-service": "^0.9.56",
45
- "@live-change/user-service": "^0.9.56",
46
- "@live-change/vue3-components": "^0.9.56",
47
- "@live-change/vue3-ssr": "^0.9.56",
25
+ "@live-change/cli": "^0.9.58",
26
+ "@live-change/dao": "^0.9.58",
27
+ "@live-change/dao-vue3": "^0.9.58",
28
+ "@live-change/dao-websocket": "^0.9.58",
29
+ "@live-change/email-service": "^0.9.58",
30
+ "@live-change/framework": "^0.9.58",
31
+ "@live-change/identicon-service": "^0.9.58",
32
+ "@live-change/image-frontend": "^0.9.58",
33
+ "@live-change/message-authentication-service": "^0.9.58",
34
+ "@live-change/notification-service": "^0.9.58",
35
+ "@live-change/password-authentication-service": "^0.9.58",
36
+ "@live-change/pattern": "^0.9.58",
37
+ "@live-change/secret-code-service": "^0.9.58",
38
+ "@live-change/secret-link-service": "^0.9.58",
39
+ "@live-change/security-frontend": "^0.9.58",
40
+ "@live-change/security-service": "^0.9.58",
41
+ "@live-change/session-service": "^0.9.58",
42
+ "@live-change/timer-service": "^0.9.58",
43
+ "@live-change/upload-service": "^0.9.58",
44
+ "@live-change/user-identification-service": "^0.9.58",
45
+ "@live-change/user-service": "^0.9.58",
46
+ "@live-change/vue3-components": "^0.9.58",
47
+ "@live-change/vue3-ssr": "^0.9.58",
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.56",
68
+ "@live-change/codeceptjs-helper": "^0.9.58",
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": "fbc221066a78b7b145948af857126c6adc1c8822"
79
+ "gitHead": "526ab5f7c70f16a84df11518cfb9e54cd960d3fc"
80
80
  }