@fishawack/lab-velocity 2.0.0-beta.3 → 2.0.0-beta.30
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/README.md +441 -37
- package/_Build/vue/components/basic/Button.vue +1 -1
- package/_Build/vue/components/form/Select.vue +2 -2
- package/_Build/vue/components/form/Spinner.vue +5 -0
- package/_Build/vue/components/layout/Alert.vue +5 -5
- package/_Build/vue/{modules/AuthModule/components/VBreadcrumbs.vue → components/layout/Breadcrumbs.vue} +4 -4
- package/_Build/vue/{modules/AuthModule/components → components/layout}/Chips.vue +2 -2
- package/_Build/vue/components/layout/Footer.vue +11 -10
- package/_Build/vue/{modules/AuthModule/components/VFormFooter.vue → components/layout/FormFooter.vue} +13 -7
- package/_Build/vue/{modules/AuthModule/components → components/layout}/FormRole.vue +10 -8
- package/_Build/vue/components/layout/Layout.vue +76 -0
- package/_Build/vue/components/layout/Navigation.vue +77 -0
- package/_Build/vue/{modules/AuthModule/components/VPageHeader.vue → components/layout/PageHeader.vue} +7 -2
- package/_Build/vue/components/layout/SideBar.vue +26 -0
- package/_Build/vue/{modules/AuthModule/components/VTable.vue → components/layout/Table.vue} +32 -16
- package/_Build/vue/{modules/AuthModule/components/VTableSorter.vue → components/layout/TableSorter.vue} +68 -43
- package/_Build/vue/components/layout/pageTitle.vue +1 -1
- package/_Build/vue/components/navigation/MenuItem.vue +7 -2
- package/_Build/vue/components/navigation/MenuItemGroup.vue +7 -2
- package/_Build/vue/modules/AuthModule/js/axios.js +19 -0
- package/_Build/vue/modules/AuthModule/js/router.js +28 -88
- package/_Build/vue/modules/AuthModule/js/store.js +15 -6
- package/_Build/vue/modules/AuthModule/{adminRoutes/PCompanies/Children/partials → routes/PCompanies}/form.vue +50 -18
- package/_Build/vue/modules/AuthModule/routes/PCompanies/resource.js +259 -0
- package/_Build/vue/modules/AuthModule/routes/PTeams/resource.js +308 -0
- package/_Build/vue/modules/AuthModule/{adminRoutes/PUsers/Children/partials → routes/PUsers}/form.vue +30 -18
- package/_Build/vue/modules/AuthModule/routes/PUsers/resource.js +215 -0
- package/_Build/vue/modules/AuthModule/routes/account-exists.vue +2 -2
- package/_Build/vue/modules/AuthModule/routes/change-password.vue +23 -24
- package/_Build/vue/modules/AuthModule/routes/container.vue +2 -11
- package/_Build/vue/modules/AuthModule/routes/expired-reset.vue +4 -4
- package/_Build/vue/modules/AuthModule/routes/expired-verification.vue +9 -8
- package/_Build/vue/modules/AuthModule/routes/force-reset.vue +24 -28
- package/_Build/vue/modules/AuthModule/routes/forgot.vue +4 -4
- package/_Build/vue/modules/AuthModule/routes/login.vue +7 -11
- package/_Build/vue/modules/AuthModule/routes/logincallback.vue +2 -4
- package/_Build/vue/modules/AuthModule/routes/loginsso.vue +7 -9
- package/_Build/vue/modules/AuthModule/routes/logout.vue +1 -3
- package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +1 -3
- package/_Build/vue/modules/AuthModule/routes/register.vue +19 -21
- package/_Build/vue/modules/AuthModule/routes/reset.vue +14 -13
- package/_Build/vue/modules/AuthModule/routes/success-forgot.vue +8 -7
- package/_Build/vue/modules/AuthModule/routes/success-reset.vue +2 -2
- package/_Build/vue/modules/AuthModule/routes/success-verify.vue +1 -3
- package/_Build/vue/modules/AuthModule/routes/verify.vue +11 -14
- package/_Build/vue/modules/resource/Children/create.vue +70 -0
- package/_Build/vue/modules/resource/Children/edit.vue +92 -0
- package/_Build/vue/modules/resource/Children/index.vue +42 -0
- package/_Build/vue/modules/resource/Children/partials/form.vue +57 -0
- package/_Build/vue/modules/resource/Children/show.vue +133 -0
- package/_Build/vue/modules/resource/index.js +486 -0
- package/_Build/vue/modules/resource/parent.vue +63 -0
- package/_base.scss +0 -1
- package/_defaults.scss +2 -13
- package/_variables.scss +9 -4
- package/components/_alert.scss +5 -0
- package/components/_auth.scss +163 -0
- package/components/_basic.scss +55 -0
- package/components/_breadcrumbs.scss +39 -0
- package/components/_button.scss +304 -0
- package/components/_cascader.scss +12 -0
- package/components/_checkbox.scss +41 -0
- package/components/_chip.scss +24 -0
- package/components/_collapse.scss +24 -0
- package/components/_datepicker.scss +52 -0
- package/components/_descriptions.scss +2 -0
- package/components/_footer.scss +47 -0
- package/components/_form.scss +24 -0
- package/components/_header.scss +30 -0
- package/components/_icon.scss +25 -0
- package/components/_inputNumber.scss +22 -0
- package/components/_layout.scss +56 -0
- package/components/_link.scss +44 -0
- package/components/_loader.scss +43 -0
- package/components/_menu.scss +112 -0
- package/components/_modal.scss +24 -0
- package/components/_pageTitle.scss +8 -0
- package/components/_permissionLegend.scss +18 -0
- package/components/_select.scss +29 -0
- package/components/_sidebar.scss +41 -0
- package/components/_switch.scss +14 -0
- package/components/_table.scss +20 -0
- package/components/_tooltip.scss +4 -0
- package/components/_typography.scss +162 -0
- package/components/_upload.scss +15 -0
- package/components/_wysiwyg.scss +7 -0
- package/components/_wysiwyg2.scss +142 -0
- package/index.js +9 -1
- package/package.json +4 -2
- package/vendor.scss +0 -1
- package/_Build/vue/components/layout/sideBar.vue +0 -25
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +0 -251
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +0 -62
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +0 -98
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +0 -90
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +0 -262
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +0 -36
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +0 -112
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +0 -103
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +0 -112
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +0 -120
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +0 -36
- /package/_Build/vue/{modules/AuthModule/components → components/layout}/AuthModal.vue +0 -0
- /package/_Build/vue/{modules/AuthModule/components → components/layout}/Chip.vue +0 -0
- /package/_Build/vue/{modules/AuthModule/components/VPasswordValidation.vue → components/layout/PasswordValidation.vue} +0 -0
- /package/_Build/vue/{modules/AuthModule/components/VRoleLegend.vue → components/layout/RoleLegend.vue} +0 -0
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
/>
|
|
8
8
|
<form class="form" @submit.prevent="submit">
|
|
9
9
|
<div v-if="!form.successful">
|
|
10
|
-
<p class="
|
|
10
|
+
<p class="mt-2 mb-0">
|
|
11
11
|
Please complete the fields below to change your
|
|
12
12
|
password.
|
|
13
13
|
</p>
|
|
14
14
|
|
|
15
15
|
<el-input
|
|
16
|
-
class="
|
|
16
|
+
class="mt-3"
|
|
17
17
|
label="Current password"
|
|
18
18
|
placeholder="Enter your current password"
|
|
19
19
|
name="current_password"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
/>
|
|
26
26
|
<el-input
|
|
27
27
|
v-model="form.password"
|
|
28
|
-
class="
|
|
28
|
+
class="mt-2 mb-2"
|
|
29
29
|
label="New Password"
|
|
30
30
|
placeholder="Enter your new password"
|
|
31
31
|
name="password"
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
:password="true"
|
|
37
37
|
/>
|
|
38
38
|
|
|
39
|
-
<
|
|
39
|
+
<VelPasswordValidation
|
|
40
40
|
:password="form.password"
|
|
41
41
|
@passwordValid="updatePasswordValidity"
|
|
42
42
|
/>
|
|
43
|
-
<div class="flex
|
|
43
|
+
<div class="flex mt-3">
|
|
44
44
|
<elButton
|
|
45
45
|
native-type="submit"
|
|
46
46
|
class=""
|
|
@@ -66,7 +66,11 @@
|
|
|
66
66
|
>Email: {{ $store.state.auth?.user?.email }}</strong
|
|
67
67
|
>
|
|
68
68
|
<p v-text="`Your password has been updated.`" />
|
|
69
|
-
<elButton
|
|
69
|
+
<elButton
|
|
70
|
+
tag="router-link"
|
|
71
|
+
type="primary"
|
|
72
|
+
:to="{ name: $store.state.auth.redirect }"
|
|
73
|
+
>
|
|
70
74
|
<span v-text="'Continue'" />
|
|
71
75
|
</elButton>
|
|
72
76
|
</div>
|
|
@@ -79,6 +83,14 @@
|
|
|
79
83
|
import Form from "form-backend-validation";
|
|
80
84
|
|
|
81
85
|
export default {
|
|
86
|
+
components: {
|
|
87
|
+
VelPasswordValidation:
|
|
88
|
+
require("../../../components/layout/PasswordValidation.vue")
|
|
89
|
+
.default,
|
|
90
|
+
elInput: require("../../../components/form/basic.vue").default,
|
|
91
|
+
elButton: require("../../../components/basic/Button.vue").default,
|
|
92
|
+
},
|
|
93
|
+
|
|
82
94
|
data() {
|
|
83
95
|
return {
|
|
84
96
|
form: new Form(
|
|
@@ -94,9 +106,7 @@ export default {
|
|
|
94
106
|
},
|
|
95
107
|
|
|
96
108
|
mounted() {
|
|
97
|
-
this.$store.dispatch("getUser"
|
|
98
|
-
errors: this.$root.errors,
|
|
99
|
-
});
|
|
109
|
+
this.$store.dispatch("getUser");
|
|
100
110
|
},
|
|
101
111
|
|
|
102
112
|
methods: {
|
|
@@ -107,7 +117,7 @@ export default {
|
|
|
107
117
|
await this.form.put("/user/password");
|
|
108
118
|
await this.login();
|
|
109
119
|
} catch (e) {
|
|
110
|
-
|
|
120
|
+
console.log(e);
|
|
111
121
|
} finally {
|
|
112
122
|
this.loading = false;
|
|
113
123
|
}
|
|
@@ -120,15 +130,13 @@ export default {
|
|
|
120
130
|
|
|
121
131
|
if (res["logged-in"]) {
|
|
122
132
|
try {
|
|
123
|
-
await this.$store.dispatch("logout"
|
|
124
|
-
// errors: this.$root.errors,
|
|
125
|
-
});
|
|
133
|
+
await this.$store.dispatch("logout");
|
|
126
134
|
} catch (e) {}
|
|
127
135
|
|
|
128
136
|
await this.form.post("/login");
|
|
129
137
|
}
|
|
130
138
|
} catch (e) {
|
|
131
|
-
|
|
139
|
+
console.log(e);
|
|
132
140
|
} finally {
|
|
133
141
|
this.loading = false;
|
|
134
142
|
this.postLogin();
|
|
@@ -143,9 +151,7 @@ export default {
|
|
|
143
151
|
},
|
|
144
152
|
|
|
145
153
|
async postLogin() {
|
|
146
|
-
const { data: user } = await this.$store.dispatch("getUser"
|
|
147
|
-
errors: this.$root.errors,
|
|
148
|
-
});
|
|
154
|
+
const { data: user } = await this.$store.dispatch("getUser");
|
|
149
155
|
},
|
|
150
156
|
},
|
|
151
157
|
|
|
@@ -154,12 +160,5 @@ export default {
|
|
|
154
160
|
title: "Reset Password",
|
|
155
161
|
};
|
|
156
162
|
},
|
|
157
|
-
|
|
158
|
-
components: {
|
|
159
|
-
VPasswordValidation: require("./../components/VPasswordValidation.vue")
|
|
160
|
-
.default,
|
|
161
|
-
elInput: require("../../../components/form/basic.vue").default,
|
|
162
|
-
elButton: require("../../../components/basic/Button.vue").default,
|
|
163
|
-
},
|
|
164
163
|
};
|
|
165
164
|
</script>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<router-link to="/" class="logo" aria-label="Go to home page">
|
|
6
6
|
<GSvg
|
|
7
7
|
class="AuthModule__logo"
|
|
8
|
-
:name="
|
|
8
|
+
:name="$store.state.auth.logo"
|
|
9
9
|
embed
|
|
10
10
|
asis
|
|
11
11
|
role="presentation"
|
|
@@ -21,14 +21,5 @@
|
|
|
21
21
|
</template>
|
|
22
22
|
|
|
23
23
|
<script>
|
|
24
|
-
export default {
|
|
25
|
-
mounted() {},
|
|
26
|
-
data() {
|
|
27
|
-
return {
|
|
28
|
-
logoName: process.env.HYDRATE_LOGO,
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
components: {},
|
|
33
|
-
};
|
|
24
|
+
export default {};
|
|
34
25
|
</script>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<h1 class="h2 h2--small">Sorry, your password reset has expired</h1>
|
|
3
3
|
|
|
4
|
-
<p class="
|
|
4
|
+
<p class="mt-2 mb-0 color-highlight">
|
|
5
5
|
<strong class="">Email: {{ form?.email }}</strong>
|
|
6
6
|
</p>
|
|
7
|
-
<p class="
|
|
7
|
+
<p class="mt-0.5">
|
|
8
8
|
For security, password reset requests are only
|
|
9
9
|
<strong>active for 1 hour</strong>. If you still want to reset your
|
|
10
10
|
password, please request a new password reset-link.
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
Request new reset-link
|
|
32
32
|
</elButton>
|
|
33
33
|
|
|
34
|
-
<p class="disclaimer
|
|
34
|
+
<p class="disclaimer mt-3">
|
|
35
35
|
<router-link class="color-1 underline" :to="{ name: 'auth.login' }">
|
|
36
36
|
Back to Sign in
|
|
37
37
|
</router-link>
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
66
66
|
query: { email: this.form.email },
|
|
67
67
|
});
|
|
68
68
|
} catch (e) {
|
|
69
|
-
|
|
69
|
+
console.log(e);
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
},
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
<h1 class="h2 h2--small">Verification link expired</h1>
|
|
3
3
|
|
|
4
4
|
<form class="form" @submit.prevent="submit">
|
|
5
|
-
<p class="
|
|
5
|
+
<p class="mt-2 mb-0 color-highlight">
|
|
6
6
|
<strong class="">Email: {{ form?.email }}</strong>
|
|
7
7
|
</p>
|
|
8
|
-
<p class="
|
|
8
|
+
<p class="mt-0.5">
|
|
9
9
|
This email verification link has expired. Not to worry, we can email
|
|
10
10
|
you a new one.
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
13
|
<el-input
|
|
14
|
-
class="
|
|
14
|
+
class="mt-2 mb-2.5 hidden"
|
|
15
15
|
v-model="form.email"
|
|
16
16
|
label="Email address"
|
|
17
17
|
name="email"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</elButton>
|
|
33
33
|
</form>
|
|
34
34
|
|
|
35
|
-
<p class="disclaimer
|
|
35
|
+
<p class="disclaimer mt-3">
|
|
36
36
|
Having trouble singing in?
|
|
37
37
|
<a :href="$store.state.auth.contact" class="underline">Contact us</a>
|
|
38
38
|
</p>
|
|
@@ -40,6 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
42
|
import Form from "form-backend-validation";
|
|
43
|
+
import { ElNotification } from "element-plus";
|
|
43
44
|
|
|
44
45
|
export default {
|
|
45
46
|
components: {
|
|
@@ -66,28 +67,28 @@ export default {
|
|
|
66
67
|
|
|
67
68
|
await this.form.post("/email/verification-notification");
|
|
68
69
|
|
|
69
|
-
|
|
70
|
+
ElNotification.success({
|
|
70
71
|
message: "Email has been re-sent",
|
|
71
72
|
duration: 10000,
|
|
72
73
|
class: "el-notification--success el-notification--right-override",
|
|
73
74
|
});
|
|
74
75
|
} catch (e) {
|
|
75
76
|
if (e.response && e.response.status === 429) {
|
|
76
|
-
this.notification =
|
|
77
|
+
this.notification = ElNotification({
|
|
77
78
|
type: "warning",
|
|
78
79
|
message: "Please allow 10 minutes before re-requesting",
|
|
79
80
|
duration: 0,
|
|
80
81
|
class: "el-notification--warning el-notification--right-override",
|
|
81
82
|
});
|
|
82
83
|
} else if (e.response && e.response.status === 422) {
|
|
83
|
-
this.notification =
|
|
84
|
+
this.notification = ElNotification({
|
|
84
85
|
type: "error",
|
|
85
86
|
message: e.response.data.message,
|
|
86
87
|
duration: 0,
|
|
87
88
|
class: "el-notification--error el-notification--right-override",
|
|
88
89
|
});
|
|
89
90
|
} else {
|
|
90
|
-
|
|
91
|
+
console.log(e);
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
},
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
/>
|
|
8
8
|
<form class="form" @submit.prevent="submit">
|
|
9
9
|
<div v-if="!form.successful">
|
|
10
|
-
<p class="
|
|
10
|
+
<p class="mt-2 mb-0 color-highlight">
|
|
11
11
|
<strong class=""
|
|
12
12
|
>Email:
|
|
13
13
|
{{ $store.state?.auth?.user?.email }}</strong
|
|
14
14
|
>
|
|
15
15
|
</p>
|
|
16
|
-
<p class="
|
|
16
|
+
<p class="mt-0.5">
|
|
17
17
|
<strong
|
|
18
18
|
>Hello {{ $store.state?.auth?.user?.name }}</strong
|
|
19
19
|
>, and welcome to {{ $root.appName }}. To maintain
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</p>
|
|
24
24
|
<el-input
|
|
25
25
|
v-model="form.password"
|
|
26
|
-
class="
|
|
26
|
+
class="mt-2"
|
|
27
27
|
label="New Password"
|
|
28
28
|
placeholder="Enter new password"
|
|
29
29
|
name="password"
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
required
|
|
34
34
|
/>
|
|
35
35
|
|
|
36
|
-
<
|
|
36
|
+
<VelPasswordValidation
|
|
37
37
|
:password="form.password"
|
|
38
38
|
@passwordValid="updatePasswordValidity"
|
|
39
39
|
/>
|
|
40
40
|
|
|
41
41
|
<elButton
|
|
42
42
|
native-type="submit"
|
|
43
|
-
class="
|
|
43
|
+
class="mt-3"
|
|
44
44
|
type="primary"
|
|
45
45
|
:disabled="form.processing || !isPasswordValid"
|
|
46
46
|
:loading="form.processing"
|
|
@@ -54,8 +54,12 @@
|
|
|
54
54
|
>Email: {{ $store.state.auth?.user?.email }}</strong
|
|
55
55
|
>
|
|
56
56
|
<p v-text="`Your password has been updated.`" />
|
|
57
|
-
<elButton
|
|
58
|
-
|
|
57
|
+
<elButton
|
|
58
|
+
tag="router-link"
|
|
59
|
+
type="primary"
|
|
60
|
+
:to="{ name: $store.state.auth.redirect }"
|
|
61
|
+
>
|
|
62
|
+
<span v-text="'Continue'" />
|
|
59
63
|
</elButton>
|
|
60
64
|
</div>
|
|
61
65
|
</form>
|
|
@@ -67,6 +71,14 @@
|
|
|
67
71
|
import Form from "form-backend-validation";
|
|
68
72
|
|
|
69
73
|
export default {
|
|
74
|
+
components: {
|
|
75
|
+
VelPasswordValidation:
|
|
76
|
+
require("../../../components/layout/PasswordValidation.vue")
|
|
77
|
+
.default,
|
|
78
|
+
elInput: require("../../../components/form/basic.vue").default,
|
|
79
|
+
elButton: require("../../../components/basic/Button.vue").default,
|
|
80
|
+
},
|
|
81
|
+
|
|
70
82
|
data() {
|
|
71
83
|
return {
|
|
72
84
|
form: new Form(
|
|
@@ -81,9 +93,7 @@ export default {
|
|
|
81
93
|
},
|
|
82
94
|
|
|
83
95
|
mounted() {
|
|
84
|
-
this.$store.dispatch("getUser"
|
|
85
|
-
errors: this.$root.errors,
|
|
86
|
-
});
|
|
96
|
+
this.$store.dispatch("getUser");
|
|
87
97
|
},
|
|
88
98
|
|
|
89
99
|
methods: {
|
|
@@ -94,7 +104,7 @@ export default {
|
|
|
94
104
|
await this.form.put("/user/password");
|
|
95
105
|
await this.login();
|
|
96
106
|
} catch (e) {
|
|
97
|
-
|
|
107
|
+
console.log(e);
|
|
98
108
|
} finally {
|
|
99
109
|
this.loading = false;
|
|
100
110
|
}
|
|
@@ -107,15 +117,13 @@ export default {
|
|
|
107
117
|
|
|
108
118
|
if (res["logged-in"]) {
|
|
109
119
|
try {
|
|
110
|
-
await this.$store.dispatch("logout"
|
|
111
|
-
errors: this.$root.errors,
|
|
112
|
-
});
|
|
120
|
+
await this.$store.dispatch("logout");
|
|
113
121
|
} catch (e) {}
|
|
114
122
|
|
|
115
123
|
await this.form.post("/login");
|
|
116
124
|
}
|
|
117
125
|
} catch (e) {
|
|
118
|
-
|
|
126
|
+
console.log(e);
|
|
119
127
|
} finally {
|
|
120
128
|
this.loading = false;
|
|
121
129
|
await this.postLogin();
|
|
@@ -123,17 +131,12 @@ export default {
|
|
|
123
131
|
},
|
|
124
132
|
|
|
125
133
|
async postLogin() {
|
|
126
|
-
const { data: user } = await this.$store.dispatch("getUser"
|
|
127
|
-
errors: this.$root.errors,
|
|
128
|
-
});
|
|
134
|
+
const { data: user } = await this.$store.dispatch("getUser");
|
|
129
135
|
},
|
|
130
136
|
|
|
131
137
|
updatePasswordValidity(isValid) {
|
|
132
138
|
this.isPasswordValid = isValid;
|
|
133
139
|
},
|
|
134
|
-
handleButton() {
|
|
135
|
-
this.$emit("close");
|
|
136
|
-
},
|
|
137
140
|
},
|
|
138
141
|
|
|
139
142
|
metaInfo() {
|
|
@@ -141,12 +144,5 @@ export default {
|
|
|
141
144
|
title: "Reset Password",
|
|
142
145
|
};
|
|
143
146
|
},
|
|
144
|
-
|
|
145
|
-
components: {
|
|
146
|
-
VPasswordValidation: require("./../components/VPasswordValidation.vue")
|
|
147
|
-
.default,
|
|
148
|
-
elInput: require("../../../components/form/basic.vue").default,
|
|
149
|
-
elButton: require("../../../components/basic/Button.vue").default,
|
|
150
|
-
},
|
|
151
147
|
};
|
|
152
148
|
</script>
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
<section id="forgotPasswordForm">
|
|
4
4
|
<h1 class="h2 h2--small">Reset password</h1>
|
|
5
5
|
<form class="form" @submit.prevent="submit">
|
|
6
|
-
<p class="
|
|
6
|
+
<p class="mt-2">
|
|
7
7
|
Enter the email address associated with your account to
|
|
8
8
|
continue.
|
|
9
9
|
</p>
|
|
10
10
|
|
|
11
11
|
<el-input
|
|
12
12
|
v-if="!form.successful"
|
|
13
|
-
class="
|
|
13
|
+
class="mt-3 mb-3"
|
|
14
14
|
v-model="form.email"
|
|
15
15
|
label="Email "
|
|
16
16
|
placeholder="Enter email address"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
Continue
|
|
33
33
|
</elButton>
|
|
34
34
|
|
|
35
|
-
<p class="disclaimer
|
|
35
|
+
<p class="disclaimer mt-3">
|
|
36
36
|
<router-link
|
|
37
37
|
class="color-1 underline"
|
|
38
38
|
:to="{ name: 'auth.login' }"
|
|
@@ -73,7 +73,7 @@ export default {
|
|
|
73
73
|
query: { email: this.form.email },
|
|
74
74
|
});
|
|
75
75
|
} catch (e) {
|
|
76
|
-
|
|
76
|
+
console.log(e);
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
},
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<h1 class="h2 h2--small">Sign in</h1>
|
|
3
|
-
<p class="
|
|
3
|
+
<p class="mb-3 mt-2">Enter your password to continue.</p>
|
|
4
4
|
|
|
5
5
|
<form @submit.prevent="submit" class="form" id="memberLoginForm">
|
|
6
6
|
<el-input
|
|
7
|
-
class="
|
|
7
|
+
class="mb-3"
|
|
8
8
|
label="Email"
|
|
9
9
|
placeholder="Enter your email address"
|
|
10
10
|
name="email"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
/>
|
|
16
16
|
|
|
17
17
|
<el-input
|
|
18
|
-
class="
|
|
18
|
+
class="mb-3"
|
|
19
19
|
label="Password"
|
|
20
20
|
placeholder="Enter your password"
|
|
21
21
|
name="password"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
Continue
|
|
48
48
|
</el-button>
|
|
49
49
|
|
|
50
|
-
<p class="disclaimer
|
|
50
|
+
<p class="disclaimer mt-3">
|
|
51
51
|
Having trouble signing in?
|
|
52
52
|
<router-link
|
|
53
53
|
class="color-1 underline"
|
|
@@ -97,9 +97,7 @@ export default {
|
|
|
97
97
|
|
|
98
98
|
if (res["logged-in"]) {
|
|
99
99
|
try {
|
|
100
|
-
await this.$store.dispatch("logout"
|
|
101
|
-
errors: this.$root.errors,
|
|
102
|
-
});
|
|
100
|
+
await this.$store.dispatch("logout");
|
|
103
101
|
} catch (e) {}
|
|
104
102
|
|
|
105
103
|
await this.form.post("/login");
|
|
@@ -107,16 +105,14 @@ export default {
|
|
|
107
105
|
|
|
108
106
|
await this.postLogin();
|
|
109
107
|
} catch (e) {
|
|
110
|
-
|
|
108
|
+
console.log(e);
|
|
111
109
|
} finally {
|
|
112
110
|
this.loading = false;
|
|
113
111
|
}
|
|
114
112
|
},
|
|
115
113
|
|
|
116
114
|
async postLogin() {
|
|
117
|
-
const { data: user } = await this.$store.dispatch("getUser"
|
|
118
|
-
errors: this.$root.errors,
|
|
119
|
-
});
|
|
115
|
+
const { data: user } = await this.$store.dispatch("getUser");
|
|
120
116
|
|
|
121
117
|
if (window.dataLayer) {
|
|
122
118
|
window.dataLayer.push({ event: "login", user });
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<script>
|
|
9
9
|
export default {
|
|
10
10
|
components: {
|
|
11
|
-
VLoader: require("
|
|
11
|
+
VLoader: require("../../../components/layout/Loader.vue").default,
|
|
12
12
|
},
|
|
13
13
|
data() {
|
|
14
14
|
return {};
|
|
@@ -16,9 +16,7 @@ export default {
|
|
|
16
16
|
|
|
17
17
|
methods: {
|
|
18
18
|
async postLogin() {
|
|
19
|
-
const { data: user } = await this.$store.dispatch("getUser"
|
|
20
|
-
errors: this.$root.errors,
|
|
21
|
-
});
|
|
19
|
+
const { data: user } = await this.$store.dispatch("getUser");
|
|
22
20
|
|
|
23
21
|
if (window.dataLayer) {
|
|
24
22
|
window.dataLayer.push({ event: "login", user });
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<template v-if="stage === 1">
|
|
3
3
|
<h1 class="h2 h2--small">Sign in</h1>
|
|
4
|
-
<p class="
|
|
4
|
+
<p class="mb-3 mt-2">Enter your email address to continue.</p>
|
|
5
5
|
|
|
6
6
|
<form @submit.prevent="submit" class="form" id="memberLoginForm">
|
|
7
7
|
<el-input
|
|
8
|
-
class="
|
|
8
|
+
class="mb-3"
|
|
9
9
|
label="Email"
|
|
10
10
|
placeholder="Enter your email address"
|
|
11
11
|
name="email"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
Continue
|
|
36
36
|
</el-button>
|
|
37
37
|
|
|
38
|
-
<p class="disclaimer
|
|
38
|
+
<p class="disclaimer mt-3">
|
|
39
39
|
Having trouble signing in?
|
|
40
40
|
<a :href="$store.state.auth.contact" class="underline"
|
|
41
41
|
>Contact us</a
|
|
@@ -45,13 +45,11 @@
|
|
|
45
45
|
</template>
|
|
46
46
|
<template v-else>
|
|
47
47
|
<h1 class="h2 h2--small">Sign in with SSO</h1>
|
|
48
|
-
<p class="
|
|
48
|
+
<p class="mt-2">
|
|
49
49
|
Redirecting you to your organisation’s Single Sign-On (SSO) gateway
|
|
50
|
-
<span class="
|
|
51
|
-
>in {{ countdown }} seconds...</span
|
|
52
|
-
>
|
|
50
|
+
<span class="color-highlight">in {{ countdown }} seconds...</span>
|
|
53
51
|
</p>
|
|
54
|
-
<p class="disclaimer
|
|
52
|
+
<p class="disclaimer mt-3">
|
|
55
53
|
<a :href="redirect_url" class="underline">Go to SSO gateway</a>
|
|
56
54
|
</p>
|
|
57
55
|
</template>
|
|
@@ -100,7 +98,7 @@ export default {
|
|
|
100
98
|
});
|
|
101
99
|
}
|
|
102
100
|
} catch (e) {
|
|
103
|
-
|
|
101
|
+
console.log(e);
|
|
104
102
|
} finally {
|
|
105
103
|
this.loading = false;
|
|
106
104
|
}
|