@fishawack/lab-velocity 1.11.1 → 2.0.0-beta.2
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 +13 -7
- package/_Build/vue/components/Icon.vue +33 -0
- package/_Build/vue/components/Svg.vue +45 -0
- package/{basic → _Build/vue/components/basic}/Button.vue +16 -18
- package/{basic → _Build/vue/components/basic}/link.vue +8 -7
- package/{form → _Build/vue/components/form}/Cascader.vue +13 -13
- package/{form → _Build/vue/components/form}/CheckboxGroup.vue +28 -6
- package/{form → _Build/vue/components/form}/DatePicker.vue +23 -7
- package/{form → _Build/vue/components/form}/InputNumber.vue +1 -2
- package/{form → _Build/vue/components/form}/Select.vue +8 -9
- package/{form → _Build/vue/components/form}/Switch.vue +2 -2
- package/{form → _Build/vue/components/form}/Upload.vue +4 -6
- package/{form → _Build/vue/components/form}/Wysiwyg.vue +14 -14
- package/_Build/vue/components/form/Wysiwyg2.vue +577 -0
- package/{form → _Build/vue/components/form}/basic.vue +25 -7
- package/{form → _Build/vue/components/form}/file.vue +1 -1
- package/{form → _Build/vue/components/form}/input.js +2 -2
- package/{form → _Build/vue/components/form}/input.vue +31 -11
- package/{layout → _Build/vue/components/layout}/Alert.vue +10 -10
- package/_Build/vue/components/layout/Footer.vue +50 -0
- package/{layout → _Build/vue/components/layout}/Header.vue +5 -7
- package/_Build/vue/components/layout/Loader.vue +59 -0
- package/{layout → _Build/vue/components/layout}/Tooltip.vue +12 -12
- package/{layout → _Build/vue/components/layout}/pageTitle.vue +4 -4
- package/{layout → _Build/vue/components/layout}/sideBar.vue +4 -6
- package/{navigation → _Build/vue/components/navigation}/Breadcrumbs.vue +15 -10
- package/{navigation → _Build/vue/components/navigation}/BreadcrumbsItem.vue +6 -6
- package/_Build/vue/components/navigation/Menu.vue +14 -0
- package/_Build/vue/components/navigation/MenuItem.vue +20 -0
- package/_Build/vue/components/navigation/MenuItemGroup.vue +20 -0
- package/_Build/vue/components/navigation/SubMenu.vue +20 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +251 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +62 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +98 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +90 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/partials/form.vue +173 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +262 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +36 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +112 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +103 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +112 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/partials/form.vue +169 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +120 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +36 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/components/AuthModal.vue +30 -35
- package/_Build/vue/modules/AuthModule/components/Chip.vue +70 -0
- package/_Build/vue/modules/AuthModule/components/Chips.vue +26 -0
- package/_Build/vue/modules/AuthModule/components/FormRole.vue +115 -0
- package/_Build/vue/modules/AuthModule/components/VBreadcrumbs.vue +32 -0
- package/_Build/vue/modules/AuthModule/components/VFormFooter.vue +46 -0
- package/_Build/vue/modules/AuthModule/components/VPageHeader.vue +38 -0
- package/_Build/vue/modules/AuthModule/components/VPasswordValidation.vue +106 -0
- package/_Build/vue/modules/AuthModule/components/VRoleLegend.vue +43 -0
- package/_Build/vue/modules/AuthModule/components/VTable.vue +127 -0
- package/_Build/vue/modules/AuthModule/components/VTableSorter.vue +240 -0
- package/_Build/vue/modules/AuthModule/js/FakeAPI.js +78 -0
- package/_Build/vue/modules/AuthModule/js/axios.js +62 -0
- package/_Build/vue/modules/AuthModule/js/router.js +295 -0
- package/_Build/vue/modules/AuthModule/js/store.js +62 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/account-exists.vue +5 -7
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/change-password.vue +28 -25
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/container.vue +4 -8
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-reset.vue +13 -11
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-verification.vue +12 -12
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/force-reset.vue +36 -26
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/forgot.vue +11 -7
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/login.vue +20 -15
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logincallback.vue +5 -10
- package/_Build/vue/modules/AuthModule/routes/loginheadless.vue +21 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/loginsso.vue +32 -25
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logout.vue +6 -6
- package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +27 -0
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/register.vue +43 -25
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/reset.vue +24 -14
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-forgot.vue +14 -12
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-reset.vue +4 -4
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-verify.vue +10 -7
- package/{AuthModule → _Build/vue/modules/AuthModule}/routes/verify.vue +15 -12
- package/_base.scss +1 -1
- package/_defaults.scss +2 -3
- package/_variables.scss +16 -18
- package/general.scss +1 -2
- package/index.js +38 -30
- package/package.json +103 -102
- package/vendor.scss +2 -2
- package/AuthModule/components/VPasswordValidation.vue +0 -66
- package/AuthModule/js/AuthAxios.js +0 -59
- package/AuthModule/js/AuthRoutes.js +0 -186
- package/AuthModule/js/AuthStore.js +0 -99
- package/AuthModule/js/FakeAPI.js +0 -84
- package/AuthModule/routes/loginheadless.vue +0 -16
- package/Icon.vue +0 -33
- package/Svg.vue +0 -40
- package/components/_alert.scss +0 -5
- package/components/_basic.scss +0 -54
- package/components/_breadcrumbs.scss +0 -40
- package/components/_button.scss +0 -305
- package/components/_cascader.scss +0 -12
- package/components/_checkbox.scss +0 -40
- package/components/_collapse.scss +0 -25
- package/components/_datepicker.scss +0 -51
- package/components/_footer.scss +0 -46
- package/components/_form.scss +0 -22
- package/components/_header.scss +0 -55
- package/components/_icon.scss +0 -24
- package/components/_input.scss +0 -0
- package/components/_inputNumber.scss +0 -21
- package/components/_link.scss +0 -44
- package/components/_loader.scss +0 -44
- package/components/_menu.scss +0 -112
- package/components/_pageTitle.scss +0 -8
- package/components/_select.scss +0 -28
- package/components/_sidebar.scss +0 -57
- package/components/_switch.scss +0 -14
- package/components/_table.scss +0 -20
- package/components/_tooltip.scss +0 -4
- package/components/_typography.scss +0 -153
- package/components/_upload.scss +0 -15
- package/components/_wysiwyg.scss +0 -6
- package/components/_wysiwyg2.scss +0 -136
- package/form/Wysiwyg2.vue +0 -278
- package/layout/Footer.vue +0 -35
- package/layout/Loader.vue +0 -39
- package/modules/_AuthModule.scss +0 -209
- package/modules/_AuthVariables.scss +0 -7
- package/modules/_modal.scss +0 -24
- package/navigation/Menu.vue +0 -16
- package/navigation/MenuItem.vue +0 -20
- package/navigation/MenuItemGroup.vue +0 -20
- package/navigation/SubMenu.vue +0 -20
- /package/{form → _Build/vue/components/form}/Checkbox.vue +0 -0
- /package/{form → _Build/vue/components/form}/color.vue +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<p v-text="done ? 'Logged out' : 'Logging out...'" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
export default {
|
|
7
|
+
metaInfo() {
|
|
8
|
+
return {
|
|
9
|
+
title: "Logout",
|
|
10
|
+
};
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
data: () => ({
|
|
14
|
+
done: false,
|
|
15
|
+
}),
|
|
16
|
+
|
|
17
|
+
async mounted() {
|
|
18
|
+
try {
|
|
19
|
+
await this.$store.dispatch("logout", {
|
|
20
|
+
errors: this.$root.errors,
|
|
21
|
+
});
|
|
22
|
+
} finally {
|
|
23
|
+
this.done = true;
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
</script>
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<h1 class="h2 h2--small">Register</h1>
|
|
3
|
-
<p class="AM-mb-3 AM-mt-2">
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<p class="AM-mb-3 AM-mt-2">
|
|
4
|
+
Please enter your personal details to complete your registration.
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<form
|
|
8
|
+
@submit.prevent="submit"
|
|
9
|
+
:class="form.errors && form.errors.any() ? 'form error' : 'form'"
|
|
10
|
+
id="memberLoginForm"
|
|
11
|
+
>
|
|
6
12
|
<el-input
|
|
7
13
|
class="AM-mb-2"
|
|
8
14
|
label="Full name"
|
|
@@ -12,7 +18,7 @@
|
|
|
12
18
|
v-model="form.name"
|
|
13
19
|
:error="form.errors"
|
|
14
20
|
/>
|
|
15
|
-
|
|
21
|
+
|
|
16
22
|
<el-input
|
|
17
23
|
class="AM-mb-2"
|
|
18
24
|
label="Email"
|
|
@@ -36,7 +42,10 @@
|
|
|
36
42
|
:error="form.errors"
|
|
37
43
|
/>
|
|
38
44
|
|
|
39
|
-
<VPasswordValidation
|
|
45
|
+
<VPasswordValidation
|
|
46
|
+
:password="form.password"
|
|
47
|
+
@passwordValid="updatePasswordValidity"
|
|
48
|
+
/>
|
|
40
49
|
|
|
41
50
|
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
|
|
42
51
|
<div style="position: absolute; left: -5000px" aria-hidden="true">
|
|
@@ -50,8 +59,14 @@
|
|
|
50
59
|
</div>
|
|
51
60
|
|
|
52
61
|
<elButton
|
|
62
|
+
native-type="submit"
|
|
53
63
|
type="primary"
|
|
54
|
-
:disabled="
|
|
64
|
+
:disabled="
|
|
65
|
+
loading ||
|
|
66
|
+
form.name?.length < 1 ||
|
|
67
|
+
form.email?.length < 5 ||
|
|
68
|
+
!isPasswordValid
|
|
69
|
+
"
|
|
55
70
|
@click="onSubmit"
|
|
56
71
|
>
|
|
57
72
|
Register
|
|
@@ -59,7 +74,9 @@
|
|
|
59
74
|
|
|
60
75
|
<p class="disclaimer AM-mt-3">
|
|
61
76
|
Having trouble registering?
|
|
62
|
-
<a :href="contact" class="underline"
|
|
77
|
+
<a :href="$store.state.auth.contact" class="underline"
|
|
78
|
+
>Contact us</a
|
|
79
|
+
>
|
|
63
80
|
</p>
|
|
64
81
|
</form>
|
|
65
82
|
</template>
|
|
@@ -72,18 +89,17 @@ export default {
|
|
|
72
89
|
return {
|
|
73
90
|
form: new Form(
|
|
74
91
|
{
|
|
75
|
-
name:
|
|
76
|
-
email:
|
|
77
|
-
password:
|
|
92
|
+
name: "",
|
|
93
|
+
email: "",
|
|
94
|
+
password: "",
|
|
78
95
|
},
|
|
79
|
-
{ resetOnSuccess: false }
|
|
96
|
+
{ resetOnSuccess: false },
|
|
80
97
|
),
|
|
81
98
|
loading: false,
|
|
82
99
|
isPasswordValid: false,
|
|
83
|
-
contact: process.env.HYDRATE_CONTACT ?? 'mailto:EP@avalerehealth.com',
|
|
84
100
|
};
|
|
85
101
|
},
|
|
86
|
-
|
|
102
|
+
|
|
87
103
|
methods: {
|
|
88
104
|
async onSubmit() {
|
|
89
105
|
if (this.loading) return;
|
|
@@ -101,20 +117,21 @@ export default {
|
|
|
101
117
|
} catch (e) {}
|
|
102
118
|
|
|
103
119
|
await this.form.post("/register");
|
|
104
|
-
|
|
105
120
|
}
|
|
106
|
-
if(res[
|
|
121
|
+
if (res["redirect"]) {
|
|
107
122
|
// Redirect here
|
|
108
|
-
this.$router.push({
|
|
123
|
+
this.$router.push({
|
|
124
|
+
name: `auth.login`,
|
|
125
|
+
query: { company: res["company"] },
|
|
126
|
+
});
|
|
109
127
|
this.$notify.error({
|
|
110
128
|
title: "Domain is SSO enabled",
|
|
111
|
-
message:"Sign in with your company email address",
|
|
129
|
+
message: "Sign in with your company email address",
|
|
112
130
|
duration: 10000,
|
|
113
131
|
});
|
|
114
|
-
} else
|
|
132
|
+
} else {
|
|
115
133
|
await this.postLogin();
|
|
116
134
|
}
|
|
117
|
-
|
|
118
135
|
} catch (e) {
|
|
119
136
|
this.$root.errors(e);
|
|
120
137
|
} finally {
|
|
@@ -123,8 +140,6 @@ export default {
|
|
|
123
140
|
},
|
|
124
141
|
|
|
125
142
|
async postLogin() {
|
|
126
|
-
this.$store.commit("setAuth", true);
|
|
127
|
-
|
|
128
143
|
const { data: user } = await this.$store.dispatch("getUser", {
|
|
129
144
|
errors: this.$root.errors,
|
|
130
145
|
});
|
|
@@ -136,7 +151,9 @@ export default {
|
|
|
136
151
|
if (this.$store.state.auth.intended) {
|
|
137
152
|
this.$router.push(this.$store.state.auth.intended);
|
|
138
153
|
} else {
|
|
139
|
-
this.$router.push({
|
|
154
|
+
this.$router.push({
|
|
155
|
+
name: `auth.verify`,
|
|
156
|
+
});
|
|
140
157
|
// Problem Here
|
|
141
158
|
}
|
|
142
159
|
|
|
@@ -148,9 +165,10 @@ export default {
|
|
|
148
165
|
},
|
|
149
166
|
|
|
150
167
|
components: {
|
|
151
|
-
VPasswordValidation: require("./../components/VPasswordValidation.vue")
|
|
152
|
-
|
|
153
|
-
|
|
168
|
+
VPasswordValidation: require("./../components/VPasswordValidation.vue")
|
|
169
|
+
.default,
|
|
170
|
+
elInput: require("../../form/basic.vue").default,
|
|
171
|
+
elButton: require("../../basic/Button.vue").default,
|
|
154
172
|
},
|
|
155
173
|
};
|
|
156
174
|
</script>
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
<strong class="">Email: {{ form?.email }}</strong>
|
|
9
9
|
</p>
|
|
10
10
|
<p class="AM-mt-0.5">
|
|
11
|
-
Please create a new password. Passwords you have used
|
|
11
|
+
Please create a new password. Passwords you have used
|
|
12
|
+
previously aren’t permitted.
|
|
12
13
|
</p>
|
|
13
14
|
<el-input
|
|
14
15
|
v-model="form.password"
|
|
@@ -22,7 +23,10 @@
|
|
|
22
23
|
required
|
|
23
24
|
/>
|
|
24
25
|
|
|
25
|
-
<VPasswordValidation
|
|
26
|
+
<VPasswordValidation
|
|
27
|
+
:password="form.password"
|
|
28
|
+
@passwordValid="updatePasswordValidity"
|
|
29
|
+
/>
|
|
26
30
|
|
|
27
31
|
<el-input
|
|
28
32
|
class="hidden"
|
|
@@ -34,11 +38,11 @@
|
|
|
34
38
|
/>
|
|
35
39
|
|
|
36
40
|
<elButton
|
|
41
|
+
native-type="submit"
|
|
37
42
|
type="primary"
|
|
38
43
|
:disabled="form.processing || !isPasswordValid"
|
|
39
44
|
:loading="form.processing"
|
|
40
45
|
@click="onSubmit"
|
|
41
|
-
|
|
42
46
|
>
|
|
43
47
|
<span v-text="'Reset password'" />
|
|
44
48
|
</elButton>
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
<p class="disclaimer AM-mt-3">
|
|
51
55
|
<router-link
|
|
52
56
|
class="color-1 underline"
|
|
53
|
-
:to="{ name:
|
|
57
|
+
:to="{ name: 'auth.login' }"
|
|
54
58
|
>
|
|
55
59
|
Back to Sign in
|
|
56
60
|
</router-link>
|
|
@@ -68,11 +72,11 @@ export default {
|
|
|
68
72
|
return {
|
|
69
73
|
form: new Form(
|
|
70
74
|
{
|
|
71
|
-
email:
|
|
72
|
-
password:
|
|
73
|
-
token:
|
|
75
|
+
email: "",
|
|
76
|
+
password: "",
|
|
77
|
+
token: "",
|
|
74
78
|
},
|
|
75
|
-
{ resetOnSuccess: false }
|
|
79
|
+
{ resetOnSuccess: false },
|
|
76
80
|
),
|
|
77
81
|
isPasswordValid: false,
|
|
78
82
|
};
|
|
@@ -89,13 +93,18 @@ export default {
|
|
|
89
93
|
const res = await this.form.post("/reset-password");
|
|
90
94
|
|
|
91
95
|
this.$router.push({
|
|
92
|
-
name:
|
|
96
|
+
name: "auth.success-reset",
|
|
93
97
|
query: { email: this.form.email },
|
|
94
98
|
});
|
|
95
99
|
} catch (e) {
|
|
96
|
-
if (
|
|
100
|
+
if (
|
|
101
|
+
e.response &&
|
|
102
|
+
e.response.status === 422 &&
|
|
103
|
+
e.response.data.message ===
|
|
104
|
+
"This password reset token is invalid."
|
|
105
|
+
) {
|
|
97
106
|
this.$router.push({
|
|
98
|
-
name:
|
|
107
|
+
name: "auth.expired-reset",
|
|
99
108
|
query: { email: this.form.email },
|
|
100
109
|
});
|
|
101
110
|
}
|
|
@@ -115,9 +124,10 @@ export default {
|
|
|
115
124
|
},
|
|
116
125
|
|
|
117
126
|
components: {
|
|
118
|
-
VPasswordValidation: require("./../components/VPasswordValidation.vue")
|
|
119
|
-
|
|
120
|
-
|
|
127
|
+
VPasswordValidation: require("./../components/VPasswordValidation.vue")
|
|
128
|
+
.default,
|
|
129
|
+
elInput: require("../../form/basic.vue").default,
|
|
130
|
+
elButton: require("../../basic/Button.vue").default,
|
|
121
131
|
},
|
|
122
132
|
};
|
|
123
133
|
</script>
|
|
@@ -8,12 +8,14 @@
|
|
|
8
8
|
<strong class="">Email: {{ form?.email }}</strong>
|
|
9
9
|
</p>
|
|
10
10
|
<p class="AM-mt">
|
|
11
|
-
If this account exists we have sent an email containing
|
|
11
|
+
If this account exists we have sent an email containing
|
|
12
|
+
instructions for resetting the password.
|
|
13
|
+
<strong>Please check your inbox.</strong>
|
|
12
14
|
</p>
|
|
13
15
|
<p class="AM-mt-3 AM-mb">
|
|
14
16
|
Haven’t received the email after 10 minutes?
|
|
15
17
|
</p>
|
|
16
|
-
|
|
18
|
+
|
|
17
19
|
<el-input
|
|
18
20
|
class="hidden"
|
|
19
21
|
v-model="form.email"
|
|
@@ -26,6 +28,7 @@
|
|
|
26
28
|
/>
|
|
27
29
|
|
|
28
30
|
<elButton
|
|
31
|
+
native-type="submit"
|
|
29
32
|
type="primary"
|
|
30
33
|
:disabled="form.processing"
|
|
31
34
|
:loading="form.processing"
|
|
@@ -37,7 +40,7 @@
|
|
|
37
40
|
<p class="disclaimer AM-mt-3">
|
|
38
41
|
<router-link
|
|
39
42
|
class="color-1 underline"
|
|
40
|
-
:to="{ name:
|
|
43
|
+
:to="{ name: `auth.login` }"
|
|
41
44
|
>
|
|
42
45
|
Back to Sign in
|
|
43
46
|
</router-link>
|
|
@@ -52,15 +55,15 @@ import Form from "form-backend-validation";
|
|
|
52
55
|
|
|
53
56
|
export default {
|
|
54
57
|
components: {
|
|
55
|
-
elInput: require(
|
|
56
|
-
elButton: require(
|
|
58
|
+
elInput: require("../../form/basic.vue").default,
|
|
59
|
+
elButton: require("../../basic/Button.vue").default,
|
|
57
60
|
},
|
|
58
61
|
data: () => ({
|
|
59
62
|
form: new Form(
|
|
60
63
|
{
|
|
61
64
|
email: "",
|
|
62
65
|
},
|
|
63
|
-
{ resetOnSuccess: false }
|
|
66
|
+
{ resetOnSuccess: false },
|
|
64
67
|
),
|
|
65
68
|
notification: null,
|
|
66
69
|
}),
|
|
@@ -79,18 +82,17 @@ export default {
|
|
|
79
82
|
type: "success",
|
|
80
83
|
message: "Email has been re-sent",
|
|
81
84
|
duration: 10000,
|
|
82
|
-
class:
|
|
85
|
+
class: "el-notification--success el-notification--right-override",
|
|
83
86
|
});
|
|
84
87
|
} catch (e) {
|
|
85
88
|
if (e.response && e.response.status === 422) {
|
|
86
89
|
this.notification = this.$notify({
|
|
87
90
|
type: "warning",
|
|
88
|
-
message:
|
|
91
|
+
message: "Please allow 10 minutes before re-requesting",
|
|
89
92
|
duration: 0,
|
|
90
|
-
class:
|
|
93
|
+
class: "el-notification--warning el-notification--right-override",
|
|
91
94
|
});
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
95
|
+
} else {
|
|
94
96
|
this.$root.errors(e);
|
|
95
97
|
}
|
|
96
98
|
}
|
|
@@ -103,7 +105,7 @@ export default {
|
|
|
103
105
|
// If a user has come here directly then send them off to the original forgot screen to enter an email
|
|
104
106
|
if (!this.form.email) {
|
|
105
107
|
this.$router.push({
|
|
106
|
-
name:
|
|
108
|
+
name: `auth.forgot`,
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
111
|
},
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div class="relative">
|
|
3
3
|
<section id="resetPasswordForm">
|
|
4
4
|
<h1 class="h2 h2--small">Success</h1>
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
<p class="AM-mt-2 AM-mb-0 AM-color-highlight">
|
|
7
7
|
<strong class="">Email: {{ $route.query.email }}</strong>
|
|
8
8
|
</p>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
<elButton
|
|
14
14
|
tag="router-link"
|
|
15
15
|
type="primary"
|
|
16
|
-
:to="{name:
|
|
16
|
+
:to="{ name: 'auth.login' }"
|
|
17
17
|
>
|
|
18
18
|
<span v-text="'Sign in'" />
|
|
19
19
|
</elButton>
|
|
@@ -29,7 +29,7 @@ export default {
|
|
|
29
29
|
};
|
|
30
30
|
},
|
|
31
31
|
components: {
|
|
32
|
-
elButton: require(
|
|
33
|
-
}
|
|
32
|
+
elButton: require("../../basic/Button.vue").default,
|
|
33
|
+
},
|
|
34
34
|
};
|
|
35
35
|
</script>
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<h1 class="h2 h2--small">Verification complete</h1>
|
|
3
|
-
<p class="mb-0"
|
|
3
|
+
<p class="mb-0">
|
|
4
|
+
<strong
|
|
5
|
+
>Welcome to {{ $root.appName }},
|
|
6
|
+
{{ $store.state?.auth?.user?.name }}!</strong
|
|
7
|
+
>
|
|
8
|
+
</p>
|
|
4
9
|
<p>Your account has been verified successfully.</p>
|
|
5
10
|
|
|
6
11
|
<elButton
|
|
7
12
|
tag="router-link"
|
|
8
13
|
type="primary"
|
|
9
|
-
:to="{name: $store.state.auth.redirect}"
|
|
14
|
+
:to="{ name: $store.state.auth.redirect }"
|
|
10
15
|
>
|
|
11
16
|
<span v-text="'Continue'" />
|
|
12
17
|
</elButton>
|
|
@@ -14,16 +19,14 @@
|
|
|
14
19
|
|
|
15
20
|
<script>
|
|
16
21
|
export default {
|
|
17
|
-
mounted(){
|
|
18
|
-
this.$store.commit("setAuth", true);
|
|
19
|
-
|
|
22
|
+
mounted() {
|
|
20
23
|
this.$store.dispatch("getUser", {
|
|
21
24
|
errors: this.$root.errors,
|
|
22
25
|
});
|
|
23
26
|
},
|
|
24
27
|
components: {
|
|
25
|
-
elButton: require(
|
|
26
|
-
}
|
|
28
|
+
elButton: require("../../basic/Button.vue").default,
|
|
29
|
+
},
|
|
27
30
|
// Problem in this file
|
|
28
31
|
};
|
|
29
32
|
</script>
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
<strong class="">Email: {{ user?.email }}</strong>
|
|
7
7
|
</p>
|
|
8
8
|
<p class="AM-mt-0.5">
|
|
9
|
-
<strong>Please check your inbox</strong> for a Verification email
|
|
9
|
+
<strong>Please check your inbox</strong> for a Verification email
|
|
10
|
+
from {{ $root.appName }}. Click the link in that email to verify
|
|
11
|
+
your email address and complete your registration.
|
|
10
12
|
</p>
|
|
11
13
|
<p class="AM-mt-0.5 AM-mb-0">
|
|
12
14
|
Haven’t received the email after 10 minutes?
|
|
@@ -25,6 +27,7 @@
|
|
|
25
27
|
|
|
26
28
|
<elButton
|
|
27
29
|
class="AM-mt AM-mb-3"
|
|
30
|
+
native-type="submit"
|
|
28
31
|
type="primary"
|
|
29
32
|
:disabled="form.processing"
|
|
30
33
|
:loading="form.processing"
|
|
@@ -35,7 +38,9 @@
|
|
|
35
38
|
|
|
36
39
|
<p class="disclaimer AM-mt-1.5">
|
|
37
40
|
Having trouble singing in?
|
|
38
|
-
<a :href="contact" class="underline"
|
|
41
|
+
<a :href="$store.state.auth.contact" class="underline"
|
|
42
|
+
>Contact us</a
|
|
43
|
+
>
|
|
39
44
|
</p>
|
|
40
45
|
</form>
|
|
41
46
|
</template>
|
|
@@ -45,8 +50,8 @@ import Form from "form-backend-validation";
|
|
|
45
50
|
|
|
46
51
|
export default {
|
|
47
52
|
components: {
|
|
48
|
-
elInput: require(
|
|
49
|
-
elButton: require(
|
|
53
|
+
elInput: require("../../form/basic.vue").default,
|
|
54
|
+
elButton: require("../../basic/Button.vue").default,
|
|
50
55
|
},
|
|
51
56
|
data: () => ({
|
|
52
57
|
user: null,
|
|
@@ -54,10 +59,9 @@ export default {
|
|
|
54
59
|
{
|
|
55
60
|
email: "",
|
|
56
61
|
},
|
|
57
|
-
{ resetOnSuccess: false }
|
|
62
|
+
{ resetOnSuccess: false },
|
|
58
63
|
),
|
|
59
64
|
notification: null,
|
|
60
|
-
contact: process.env.HYDRATE_CONTACT ?? 'mailto:EP@avalerehealth.com',
|
|
61
65
|
}),
|
|
62
66
|
|
|
63
67
|
methods: {
|
|
@@ -74,25 +78,24 @@ export default {
|
|
|
74
78
|
type: "success",
|
|
75
79
|
message: "Email has been re-sent",
|
|
76
80
|
duration: 10000,
|
|
77
|
-
class:
|
|
81
|
+
class: "el-notification--success el-notification--right-override",
|
|
78
82
|
});
|
|
79
83
|
} catch (e) {
|
|
80
84
|
if (e.response && e.response.status === 429) {
|
|
81
85
|
this.notification = this.$notify({
|
|
82
86
|
type: "warning",
|
|
83
|
-
message:
|
|
87
|
+
message: "Please allow 10 minutes before re-requesting",
|
|
84
88
|
duration: 0,
|
|
85
|
-
class:
|
|
89
|
+
class: "el-notification--warning el-notification--right-override",
|
|
86
90
|
});
|
|
87
91
|
} else if (e.response && e.response.status === 422) {
|
|
88
92
|
this.notification = this.$notify({
|
|
89
93
|
type: "error",
|
|
90
94
|
message: e.response.data.message,
|
|
91
95
|
duration: 0,
|
|
92
|
-
class:
|
|
96
|
+
class: "el-notification--error el-notification--right-override",
|
|
93
97
|
});
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
98
|
+
} else {
|
|
96
99
|
this.$root.errors(e);
|
|
97
100
|
}
|
|
98
101
|
}
|
package/_base.scss
CHANGED
package/_defaults.scss
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
@import "@fishawack/lab-ui/_defaults.scss";
|
|
4
4
|
|
|
5
|
-
$colors: variables.dynamic(
|
|
5
|
+
$colors: variables.dynamic("color", module-variables("variables"));
|
|
6
6
|
|
|
7
7
|
// Override lab-ui defaults here, e.g $button: $color6;
|
|
8
8
|
$spacing: 8px;
|
|
@@ -11,11 +11,10 @@ $spacing: 8px;
|
|
|
11
11
|
padding: 0px 5 * $spacing;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
body {
|
|
16
15
|
font-family: $primaryFont, sans-serif;
|
|
17
16
|
font-size: get-ratio(16px);
|
|
18
17
|
line-height: 1.5;
|
|
19
18
|
color: $color1;
|
|
20
19
|
background-color: $color3;
|
|
21
|
-
}
|
|
20
|
+
}
|
package/_variables.scss
CHANGED
|
@@ -2,24 +2,22 @@
|
|
|
2
2
|
// Set global variables here, e.g $color6: red;
|
|
3
3
|
@import "./modules/AuthVariables";
|
|
4
4
|
|
|
5
|
+
$primaryFont: "Inter";
|
|
6
|
+
$primaryFontThin: "Inter-Thin";
|
|
7
|
+
$primaryFontExtraLight: "Inter-ExtraLight";
|
|
8
|
+
$primaryFontLight: "Inter-Light";
|
|
9
|
+
$primaryFontRegular: "Inter-Regular";
|
|
10
|
+
$primaryFontMedium: "Inter-Medium";
|
|
11
|
+
$primaryFontSemiBold: "Inter-SemiBold";
|
|
12
|
+
$primaryFontBold: "Inter-Bold";
|
|
5
13
|
|
|
6
|
-
$
|
|
7
|
-
$
|
|
8
|
-
$primaryFontExtraLight: 'Inter-ExtraLight';
|
|
9
|
-
$primaryFontLight: 'Inter-Light';
|
|
10
|
-
$primaryFontRegular: 'Inter-Regular';
|
|
11
|
-
$primaryFontMedium: 'Inter-Medium';
|
|
12
|
-
$primaryFontSemiBold: 'Inter-SemiBold';
|
|
13
|
-
$primaryFontBold: 'Inter-Bold';
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
$secondaryFont: 'NotoSerif';
|
|
17
|
-
$secondaryFontMedium: 'NotoSerif-Medium';
|
|
14
|
+
$secondaryFont: "NotoSerif";
|
|
15
|
+
$secondaryFontMedium: "NotoSerif-Medium";
|
|
18
16
|
// Colors
|
|
19
17
|
|
|
20
|
-
$color1: #
|
|
18
|
+
$color1: #2d2d2d;
|
|
21
19
|
$color2: #333333;
|
|
22
|
-
$color3: #
|
|
20
|
+
$color3: #f7f7f7;
|
|
23
21
|
$color4: #e6e6e6;
|
|
24
22
|
$color5: #cccccc;
|
|
25
23
|
$color6: #999999;
|
|
@@ -27,7 +25,7 @@ $color7: #666666;
|
|
|
27
25
|
$color8: #f2f2f2; //Used
|
|
28
26
|
$color9: #ff0000;
|
|
29
27
|
$color10: #dcdbdb;
|
|
30
|
-
$color11: #
|
|
31
|
-
$color12: #
|
|
32
|
-
$color13: #
|
|
33
|
-
$colorAlert: #
|
|
28
|
+
$color11: #8c8c8c; //Used
|
|
29
|
+
$color12: #5c5c5c;
|
|
30
|
+
$color13: #3c976e;
|
|
31
|
+
$colorAlert: #d53a3a;
|
package/general.scss
CHANGED