@live-change/user-frontend 0.8.19 → 0.8.20

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.
@@ -38,8 +38,13 @@
38
38
  <div class="flex flex-row flex-wrap">
39
39
  <router-link v-for="contactType in contactsTypes"
40
40
  :to="{ name: 'user:connect-'+contactType.contactType }" class="mr-2 no-underline block mb-1">
41
- <Button :label="'Add '+contactType.contactType" icon="pi pi-envelope" id="connect"></Button>
41
+ <Button :label="'Add '+contactType.contactType" icon="pi pi-envelope" id="connect" />
42
42
  </router-link>
43
+ <router-link v-for="accountType in accountTypes"
44
+ :to="{ name: 'user:connect-'+accountType.accountType }" class="mr-2 no-underline block mb-1">
45
+ <Button :label="'Add '+accountType.accountType" icon="pi pi-google" id="connect" />
46
+ </router-link>
47
+
43
48
  </div>
44
49
  </div>
45
50
 
@@ -11,6 +11,9 @@ export function routes(config = {}) {
11
11
  route({ name: 'user:connect-phone', path: prefix + 'connect-phone',
12
12
  component: () => import("./ConnectPhone.vue") }),
13
13
 
14
+ /// redirect user:connect-google to google auth
15
+ route({ name: 'user:connect-google', path: prefix + 'connect-google',
16
+ redirect: { name: 'user:googleAuth', params: { action: 'connectGoogle' } } }),
14
17
 
15
18
  route({ name: 'user:connectFinished', path: prefix + 'connect-finished',
16
19
  component: () => import("./ConnectFinished.vue") }),
@@ -84,7 +84,7 @@
84
84
  try {
85
85
  const result = await workingZone.addPromise(`google ${action.value}`,
86
86
  api.command(['googleAuthentication', action.value], {
87
- accessToken: response.getAuthResponse().id_token
87
+ accessToken: response.getAuthResponse().id_token
88
88
  })
89
89
  )
90
90
  //console.log("GAUTH RESULT", result)
@@ -82,6 +82,8 @@
82
82
  router.push({ name: 'user:signInFinished' })
83
83
  } else if(actionDone === 'signUp') {
84
84
  router.push({ name: 'user:signUpFinished' })
85
+ } else if(actionDone === 'connectGoogle') {
86
+ router.push({ name: 'user:connected' })
85
87
  } else {
86
88
  console.error("Unknown action", actionDone)
87
89
  }
@@ -4,7 +4,7 @@ export function routes(config = {}) {
4
4
  return [
5
5
 
6
6
  route({ name: 'user:googleAuth', path: prefix + 'google-auth/:action',
7
- component: () => import("./GoogleAuth.vue"), props: true, meta: { signedOut: true } }),
7
+ component: () => import("./GoogleAuth.vue"), props: true, meta: { } }),
8
8
  route({ name: 'user:googleAuthReturn', path: prefix + 'google-auth-return/:action',
9
9
  component: () => import("./GoogleAuthReturn.vue"), props: true }),
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-frontend",
3
- "version": "0.8.19",
3
+ "version": "0.8.20",
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.19",
26
- "@live-change/dao": "^0.8.19",
27
- "@live-change/dao-vue3": "^0.8.19",
28
- "@live-change/dao-websocket": "^0.8.19",
29
- "@live-change/email-service": "^0.8.19",
30
- "@live-change/framework": "^0.8.19",
31
- "@live-change/identicon-service": "^0.8.19",
32
- "@live-change/image-frontend": "^0.8.19",
33
- "@live-change/message-authentication-service": "^0.8.19",
34
- "@live-change/notification-service": "^0.8.19",
35
- "@live-change/password-authentication-service": "^0.8.19",
36
- "@live-change/pattern": "^0.8.19",
37
- "@live-change/secret-code-service": "^0.8.19",
38
- "@live-change/secret-link-service": "^0.8.19",
39
- "@live-change/security-frontend": "^0.8.19",
40
- "@live-change/security-service": "^0.8.19",
41
- "@live-change/session-service": "^0.8.19",
42
- "@live-change/timer-service": "^0.8.19",
43
- "@live-change/upload-service": "^0.8.19",
44
- "@live-change/user-identification-service": "^0.8.19",
45
- "@live-change/user-service": "^0.8.19",
46
- "@live-change/vue3-components": "^0.8.19",
47
- "@live-change/vue3-ssr": "^0.8.19",
25
+ "@live-change/cli": "^0.8.20",
26
+ "@live-change/dao": "^0.8.20",
27
+ "@live-change/dao-vue3": "^0.8.20",
28
+ "@live-change/dao-websocket": "^0.8.20",
29
+ "@live-change/email-service": "^0.8.20",
30
+ "@live-change/framework": "^0.8.20",
31
+ "@live-change/identicon-service": "^0.8.20",
32
+ "@live-change/image-frontend": "^0.8.20",
33
+ "@live-change/message-authentication-service": "^0.8.20",
34
+ "@live-change/notification-service": "^0.8.20",
35
+ "@live-change/password-authentication-service": "^0.8.20",
36
+ "@live-change/pattern": "^0.8.20",
37
+ "@live-change/secret-code-service": "^0.8.20",
38
+ "@live-change/secret-link-service": "^0.8.20",
39
+ "@live-change/security-frontend": "^0.8.20",
40
+ "@live-change/security-service": "^0.8.20",
41
+ "@live-change/session-service": "^0.8.20",
42
+ "@live-change/timer-service": "^0.8.20",
43
+ "@live-change/upload-service": "^0.8.20",
44
+ "@live-change/user-identification-service": "^0.8.20",
45
+ "@live-change/user-service": "^0.8.20",
46
+ "@live-change/vue3-components": "^0.8.20",
47
+ "@live-change/vue3-ssr": "^0.8.20",
48
48
  "@vueuse/core": "^10.9.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.19",
68
+ "@live-change/codeceptjs-helper": "^0.8.20",
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": "b7118ab6b4b64371aee082260c1b85f9d5a72d71"
79
+ "gitHead": "e238d89b80f45ddaf9e92bc3d07459870a14e07b"
80
80
  }