@fishawack/lab-velocity 2.0.0-beta.1 → 2.0.0-beta.11
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 +160 -38
- package/_Build/vue/components/Icon.vue +33 -0
- package/_Build/vue/components/Svg.vue +45 -0
- package/_Build/vue/components/basic/Button.vue +109 -0
- package/_Build/vue/components/basic/link.vue +64 -0
- package/_Build/vue/components/form/Cascader.vue +85 -0
- package/_Build/vue/components/form/Checkbox.vue +39 -0
- package/_Build/vue/components/form/CheckboxGroup.vue +91 -0
- package/_Build/vue/components/form/DatePicker.vue +116 -0
- package/_Build/vue/components/form/InputNumber.vue +89 -0
- package/_Build/vue/components/form/Select.vue +109 -0
- package/_Build/vue/components/form/Spinner.vue +5 -0
- package/_Build/vue/components/form/Switch.vue +63 -0
- package/_Build/vue/components/form/Upload.vue +101 -0
- package/_Build/vue/components/form/Wysiwyg.vue +127 -0
- package/_Build/vue/components/form/Wysiwyg2.vue +577 -0
- package/_Build/vue/components/form/basic.vue +106 -0
- package/_Build/vue/components/form/color.vue +22 -0
- package/_Build/vue/components/form/file.vue +89 -0
- package/_Build/vue/components/form/input.js +79 -0
- package/_Build/vue/components/form/input.vue +105 -0
- package/_Build/vue/components/layout/Alert.vue +38 -0
- package/_Build/vue/components/layout/Footer.vue +50 -0
- package/_Build/vue/components/layout/Header.vue +13 -0
- package/_Build/vue/components/layout/Loader.vue +59 -0
- package/_Build/vue/components/layout/Tooltip.vue +46 -0
- package/_Build/vue/components/layout/pageTitle.vue +18 -0
- package/_Build/vue/components/layout/sideBar.vue +25 -0
- package/_Build/vue/components/navigation/Breadcrumbs.vue +37 -0
- package/_Build/vue/components/navigation/BreadcrumbsItem.vue +19 -0
- 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 +259 -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 +181 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +267 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +36 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +113 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +101 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +112 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/partials/form.vue +174 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +123 -0
- package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +36 -0
- package/_Build/vue/modules/AuthModule/components/AuthModal.vue +105 -0
- 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 +117 -0
- package/_Build/vue/modules/AuthModule/components/VBreadcrumbs.vue +33 -0
- package/_Build/vue/modules/AuthModule/components/VFormFooter.vue +52 -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 +136 -0
- package/_Build/vue/modules/AuthModule/components/VTableSorter.vue +252 -0
- package/_Build/vue/modules/AuthModule/js/FakeAPI.js +78 -0
- package/_Build/vue/modules/AuthModule/js/axios.js +81 -0
- package/_Build/vue/modules/AuthModule/js/router.js +295 -0
- package/_Build/vue/modules/AuthModule/js/store.js +62 -0
- package/_Build/vue/modules/AuthModule/routes/account-exists.vue +33 -0
- package/_Build/vue/modules/AuthModule/routes/change-password.vue +163 -0
- package/_Build/vue/modules/AuthModule/routes/container.vue +34 -0
- package/_Build/vue/modules/AuthModule/routes/expired-reset.vue +78 -0
- package/_Build/vue/modules/AuthModule/routes/expired-verification.vue +101 -0
- package/_Build/vue/modules/AuthModule/routes/force-reset.vue +147 -0
- package/_Build/vue/modules/AuthModule/routes/forgot.vue +91 -0
- package/_Build/vue/modules/AuthModule/routes/login.vue +139 -0
- package/_Build/vue/modules/AuthModule/routes/logincallback.vue +39 -0
- package/_Build/vue/modules/AuthModule/routes/loginheadless.vue +21 -0
- package/_Build/vue/modules/AuthModule/routes/loginsso.vue +132 -0
- package/_Build/vue/modules/AuthModule/routes/logout.vue +19 -0
- package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +25 -0
- package/_Build/vue/modules/AuthModule/routes/register.vue +171 -0
- package/_Build/vue/modules/AuthModule/routes/reset.vue +133 -0
- package/_Build/vue/modules/AuthModule/routes/success-forgot.vue +120 -0
- package/_Build/vue/modules/AuthModule/routes/success-reset.vue +35 -0
- package/_Build/vue/modules/AuthModule/routes/success-verify.vue +30 -0
- package/_Build/vue/modules/AuthModule/routes/verify.vue +110 -0
- package/_base.scss +0 -1
- package/_defaults.scss +2 -13
- package/_variables.scss +9 -4
- package/{modules/_AuthModule.scss → components/_auth.scss} +19 -68
- package/package.json +3 -8
- package/vendor.scss +0 -1
- package/components/_input.scss +0 -0
- package/modules/_AuthVariables.scss +0 -7
- /package/{modules → components}/_modal.scss +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<section id="resetPasswordForm">
|
|
4
|
+
<h1 class="h2 h2--small">Reset password</h1>
|
|
5
|
+
<form class="form" @submit.prevent="submit">
|
|
6
|
+
<div v-if="!form.successful">
|
|
7
|
+
<p class="mt-2 mb-0 color-highlight">
|
|
8
|
+
<strong class="">Email: {{ form?.email }}</strong>
|
|
9
|
+
</p>
|
|
10
|
+
<p class="mt-0.5">
|
|
11
|
+
Please create a new password. Passwords you have used
|
|
12
|
+
previously aren’t permitted.
|
|
13
|
+
</p>
|
|
14
|
+
<el-input
|
|
15
|
+
v-model="form.password"
|
|
16
|
+
class="mt-3"
|
|
17
|
+
label="New Password"
|
|
18
|
+
placeholder="Enter new password"
|
|
19
|
+
name="password"
|
|
20
|
+
:error="form.errors"
|
|
21
|
+
type="password"
|
|
22
|
+
autocomplete="new-password"
|
|
23
|
+
required
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<VPasswordValidation
|
|
27
|
+
:password="form.password"
|
|
28
|
+
@passwordValid="updatePasswordValidity"
|
|
29
|
+
/>
|
|
30
|
+
|
|
31
|
+
<el-input
|
|
32
|
+
class="hidden"
|
|
33
|
+
v-model="form.token"
|
|
34
|
+
name="token"
|
|
35
|
+
:error="form.errors"
|
|
36
|
+
type="hidden"
|
|
37
|
+
required
|
|
38
|
+
/>
|
|
39
|
+
|
|
40
|
+
<elButton
|
|
41
|
+
native-type="submit"
|
|
42
|
+
type="primary"
|
|
43
|
+
:disabled="form.processing || !isPasswordValid"
|
|
44
|
+
:loading="form.processing"
|
|
45
|
+
@click="onSubmit"
|
|
46
|
+
>
|
|
47
|
+
<span v-text="'Reset password'" />
|
|
48
|
+
</elButton>
|
|
49
|
+
</div>
|
|
50
|
+
<div v-else>
|
|
51
|
+
<h4 class="mt" v-text="`Success!`" />
|
|
52
|
+
<p v-text="`Your password has been reset.`" />
|
|
53
|
+
</div>
|
|
54
|
+
<p class="disclaimer mt-3">
|
|
55
|
+
<router-link
|
|
56
|
+
class="color-1 underline"
|
|
57
|
+
:to="{ name: 'auth.login' }"
|
|
58
|
+
>
|
|
59
|
+
Back to Sign in
|
|
60
|
+
</router-link>
|
|
61
|
+
</p>
|
|
62
|
+
</form>
|
|
63
|
+
</section>
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
66
|
+
|
|
67
|
+
<script>
|
|
68
|
+
import Form from "form-backend-validation";
|
|
69
|
+
|
|
70
|
+
export default {
|
|
71
|
+
data() {
|
|
72
|
+
return {
|
|
73
|
+
form: new Form(
|
|
74
|
+
{
|
|
75
|
+
email: "",
|
|
76
|
+
password: "",
|
|
77
|
+
token: "",
|
|
78
|
+
},
|
|
79
|
+
{ resetOnSuccess: false },
|
|
80
|
+
),
|
|
81
|
+
isPasswordValid: false,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
mounted() {
|
|
86
|
+
this.form.email = this.$route.query.email;
|
|
87
|
+
this.form.token = this.$route.query.token;
|
|
88
|
+
},
|
|
89
|
+
|
|
90
|
+
methods: {
|
|
91
|
+
async onSubmit() {
|
|
92
|
+
try {
|
|
93
|
+
const res = await this.form.post("/reset-password");
|
|
94
|
+
|
|
95
|
+
this.$router.push({
|
|
96
|
+
name: "auth.success-reset",
|
|
97
|
+
query: { email: this.form.email },
|
|
98
|
+
});
|
|
99
|
+
} catch (e) {
|
|
100
|
+
if (
|
|
101
|
+
e.response &&
|
|
102
|
+
e.response.status === 422 &&
|
|
103
|
+
e.response.data.message ===
|
|
104
|
+
"This password reset token is invalid."
|
|
105
|
+
) {
|
|
106
|
+
this.$router.push({
|
|
107
|
+
name: "auth.expired-reset",
|
|
108
|
+
query: { email: this.form.email },
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
console.log(e);
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
|
|
115
|
+
updatePasswordValidity(isValid) {
|
|
116
|
+
this.isPasswordValid = isValid;
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
metaInfo() {
|
|
121
|
+
return {
|
|
122
|
+
title: "Reset Password",
|
|
123
|
+
};
|
|
124
|
+
},
|
|
125
|
+
|
|
126
|
+
components: {
|
|
127
|
+
VPasswordValidation: require("./../components/VPasswordValidation.vue")
|
|
128
|
+
.default,
|
|
129
|
+
elInput: require("../../../components/form/basic.vue").default,
|
|
130
|
+
elButton: require("../../../components/basic/Button.vue").default,
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
</script>
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<section id="forgotPasswordForm">
|
|
4
|
+
<h1 class="h2 h2--small">Reset password</h1>
|
|
5
|
+
|
|
6
|
+
<form class="form" @submit.prevent="submit">
|
|
7
|
+
<p class="mt-2 mb-0 color-highlight">
|
|
8
|
+
<strong class="">Email: {{ form?.email }}</strong>
|
|
9
|
+
</p>
|
|
10
|
+
<p class="mt">
|
|
11
|
+
If this account exists we have sent an email containing
|
|
12
|
+
instructions for resetting the password.
|
|
13
|
+
<strong>Please check your inbox.</strong>
|
|
14
|
+
</p>
|
|
15
|
+
<p class="mt-3 mb">
|
|
16
|
+
Haven’t received the email after 10 minutes?
|
|
17
|
+
</p>
|
|
18
|
+
|
|
19
|
+
<el-input
|
|
20
|
+
class="hidden"
|
|
21
|
+
v-model="form.email"
|
|
22
|
+
label="Email address"
|
|
23
|
+
name="email"
|
|
24
|
+
:error="form.errors"
|
|
25
|
+
type="email"
|
|
26
|
+
placeholder="Email"
|
|
27
|
+
required
|
|
28
|
+
/>
|
|
29
|
+
|
|
30
|
+
<elButton
|
|
31
|
+
native-type="submit"
|
|
32
|
+
type="primary"
|
|
33
|
+
:disabled="form.processing"
|
|
34
|
+
:loading="form.processing"
|
|
35
|
+
@click="onSubmit"
|
|
36
|
+
>
|
|
37
|
+
Re-send instructions
|
|
38
|
+
</elButton>
|
|
39
|
+
|
|
40
|
+
<p class="disclaimer mt-3">
|
|
41
|
+
<router-link
|
|
42
|
+
class="color-1 underline"
|
|
43
|
+
:to="{ name: `auth.login` }"
|
|
44
|
+
>
|
|
45
|
+
Back to Sign in
|
|
46
|
+
</router-link>
|
|
47
|
+
</p>
|
|
48
|
+
</form>
|
|
49
|
+
</section>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
|
|
53
|
+
<script>
|
|
54
|
+
import Form from "form-backend-validation";
|
|
55
|
+
import { ElNotification } from "element-plus";
|
|
56
|
+
|
|
57
|
+
export default {
|
|
58
|
+
components: {
|
|
59
|
+
elInput: require("../../../components/form/basic.vue").default,
|
|
60
|
+
elButton: require("../../../components/basic/Button.vue").default,
|
|
61
|
+
},
|
|
62
|
+
data: () => ({
|
|
63
|
+
form: new Form(
|
|
64
|
+
{
|
|
65
|
+
email: "",
|
|
66
|
+
},
|
|
67
|
+
{ resetOnSuccess: false },
|
|
68
|
+
),
|
|
69
|
+
notification: null,
|
|
70
|
+
}),
|
|
71
|
+
|
|
72
|
+
methods: {
|
|
73
|
+
async onSubmit() {
|
|
74
|
+
try {
|
|
75
|
+
if (this.notification) {
|
|
76
|
+
this.notification.close();
|
|
77
|
+
this.notification = null;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
await this.form.post("/forgot-password");
|
|
81
|
+
|
|
82
|
+
ElNotification({
|
|
83
|
+
type: "success",
|
|
84
|
+
message: "Email has been re-sent",
|
|
85
|
+
duration: 10000,
|
|
86
|
+
class: "el-notification--success el-notification--right-override",
|
|
87
|
+
});
|
|
88
|
+
} catch (e) {
|
|
89
|
+
if (e.response && e.response.status === 422) {
|
|
90
|
+
this.notification = ElNotification({
|
|
91
|
+
type: "warning",
|
|
92
|
+
message: "Please allow 10 minutes before re-requesting",
|
|
93
|
+
duration: 0,
|
|
94
|
+
class: "el-notification--warning el-notification--right-override",
|
|
95
|
+
});
|
|
96
|
+
} else {
|
|
97
|
+
console.log(e);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
mounted() {
|
|
104
|
+
this.form.email = this.$route.query.email;
|
|
105
|
+
|
|
106
|
+
// If a user has come here directly then send them off to the original forgot screen to enter an email
|
|
107
|
+
if (!this.form.email) {
|
|
108
|
+
this.$router.push({
|
|
109
|
+
name: `auth.forgot`,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
metaInfo() {
|
|
115
|
+
return {
|
|
116
|
+
title: "Forgot Password | Success",
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
</script>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<section id="resetPasswordForm">
|
|
4
|
+
<h1 class="h2 h2--small">Success</h1>
|
|
5
|
+
|
|
6
|
+
<p class="mt-2 mb-0 color-highlight">
|
|
7
|
+
<strong class="">Email: {{ $route.query.email }}</strong>
|
|
8
|
+
</p>
|
|
9
|
+
<p class="mt">
|
|
10
|
+
Your password has been reset. Please sign in to continue.
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<elButton
|
|
14
|
+
tag="router-link"
|
|
15
|
+
type="primary"
|
|
16
|
+
:to="{ name: 'auth.login' }"
|
|
17
|
+
>
|
|
18
|
+
<span v-text="'Sign in'" />
|
|
19
|
+
</elButton>
|
|
20
|
+
</section>
|
|
21
|
+
</div>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
export default {
|
|
26
|
+
metaInfo() {
|
|
27
|
+
return {
|
|
28
|
+
title: "Reset Password | Success",
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
components: {
|
|
32
|
+
elButton: require("../../../components/basic/Button.vue").default,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<h1 class="h2 h2--small">Verification complete</h1>
|
|
3
|
+
<p class="mb-0">
|
|
4
|
+
<strong
|
|
5
|
+
>Welcome to {{ $root.appName }},
|
|
6
|
+
{{ $store.state?.auth?.user?.name }}!</strong
|
|
7
|
+
>
|
|
8
|
+
</p>
|
|
9
|
+
<p>Your account has been verified successfully.</p>
|
|
10
|
+
|
|
11
|
+
<elButton
|
|
12
|
+
tag="router-link"
|
|
13
|
+
type="primary"
|
|
14
|
+
:to="{ name: $store.state.auth.redirect }"
|
|
15
|
+
>
|
|
16
|
+
<span v-text="'Continue'" />
|
|
17
|
+
</elButton>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
mounted() {
|
|
23
|
+
this.$store.dispatch("getUser");
|
|
24
|
+
},
|
|
25
|
+
components: {
|
|
26
|
+
elButton: require("../../../components/basic/Button.vue").default,
|
|
27
|
+
},
|
|
28
|
+
// Problem in this file
|
|
29
|
+
};
|
|
30
|
+
</script>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<h1 class="h2 h2--small">Verify your email address</h1>
|
|
3
|
+
|
|
4
|
+
<form class="form" @submit.prevent="submit">
|
|
5
|
+
<p class="mt-2 mb-0 color-highlight">
|
|
6
|
+
<strong class="">Email: {{ user?.email }}</strong>
|
|
7
|
+
</p>
|
|
8
|
+
<p class="mt-0.5">
|
|
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.
|
|
12
|
+
</p>
|
|
13
|
+
<p class="mt-0.5 mb-0">Haven’t received the email after 10 minutes?</p>
|
|
14
|
+
|
|
15
|
+
<el-input
|
|
16
|
+
class="hidden"
|
|
17
|
+
v-model="form.email"
|
|
18
|
+
label="Email address"
|
|
19
|
+
name="email"
|
|
20
|
+
:error="form.errors"
|
|
21
|
+
type="email"
|
|
22
|
+
placeholder="Email "
|
|
23
|
+
required
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<elButton
|
|
27
|
+
class="mt mb-3"
|
|
28
|
+
native-type="submit"
|
|
29
|
+
type="primary"
|
|
30
|
+
:disabled="form.processing"
|
|
31
|
+
:loading="form.processing"
|
|
32
|
+
@click="onSubmit"
|
|
33
|
+
>
|
|
34
|
+
Re-send verification link
|
|
35
|
+
</elButton>
|
|
36
|
+
|
|
37
|
+
<p class="disclaimer mt-1.5">
|
|
38
|
+
Having trouble singing in?
|
|
39
|
+
<a :href="$store.state.auth.contact" class="underline"
|
|
40
|
+
>Contact us</a
|
|
41
|
+
>
|
|
42
|
+
</p>
|
|
43
|
+
</form>
|
|
44
|
+
</template>
|
|
45
|
+
|
|
46
|
+
<script>
|
|
47
|
+
import Form from "form-backend-validation";
|
|
48
|
+
import { ElNotification } from "element-plus";
|
|
49
|
+
|
|
50
|
+
export default {
|
|
51
|
+
components: {
|
|
52
|
+
elInput: require("../../../components/form/basic.vue").default,
|
|
53
|
+
elButton: require("../../../components/basic/Button.vue").default,
|
|
54
|
+
},
|
|
55
|
+
data: () => ({
|
|
56
|
+
user: null,
|
|
57
|
+
form: new Form(
|
|
58
|
+
{
|
|
59
|
+
email: "",
|
|
60
|
+
},
|
|
61
|
+
{ resetOnSuccess: false },
|
|
62
|
+
),
|
|
63
|
+
notification: null,
|
|
64
|
+
}),
|
|
65
|
+
|
|
66
|
+
methods: {
|
|
67
|
+
async onSubmit() {
|
|
68
|
+
try {
|
|
69
|
+
if (this.notification) {
|
|
70
|
+
this.notification.close();
|
|
71
|
+
this.notification = null;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
await this.form.post("/email/verification-notification");
|
|
75
|
+
|
|
76
|
+
ElNotification({
|
|
77
|
+
type: "success",
|
|
78
|
+
message: "Email has been re-sent",
|
|
79
|
+
duration: 10000,
|
|
80
|
+
class: "el-notification--success el-notification--right-override",
|
|
81
|
+
});
|
|
82
|
+
} catch (e) {
|
|
83
|
+
if (e.response && e.response.status === 429) {
|
|
84
|
+
this.notification = ElNotification({
|
|
85
|
+
type: "warning",
|
|
86
|
+
message: "Please allow 10 minutes before re-requesting",
|
|
87
|
+
duration: 0,
|
|
88
|
+
class: "el-notification--warning el-notification--right-override",
|
|
89
|
+
});
|
|
90
|
+
} else if (e.response && e.response.status === 422) {
|
|
91
|
+
this.notification = ElNotification({
|
|
92
|
+
type: "error",
|
|
93
|
+
message: e.response.data.message,
|
|
94
|
+
duration: 0,
|
|
95
|
+
class: "el-notification--error el-notification--right-override",
|
|
96
|
+
});
|
|
97
|
+
} else {
|
|
98
|
+
console.log(e);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
|
|
104
|
+
async mounted() {
|
|
105
|
+
this.user = await this.$store.dispatch("getUser");
|
|
106
|
+
|
|
107
|
+
this.form.email = this.user.email;
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
</script>
|
package/_base.scss
CHANGED
package/_defaults.scss
CHANGED
|
@@ -5,16 +5,5 @@
|
|
|
5
5
|
$colors: variables.dynamic("color", module-variables("variables"));
|
|
6
6
|
|
|
7
7
|
// Override lab-ui defaults here, e.g $button: $color6;
|
|
8
|
-
$
|
|
9
|
-
|
|
10
|
-
margin-left: 0;
|
|
11
|
-
padding: 0px 5 * $spacing;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
body {
|
|
15
|
-
font-family: $primaryFont, sans-serif;
|
|
16
|
-
font-size: get-ratio(16px);
|
|
17
|
-
line-height: 1.5;
|
|
18
|
-
color: $color1;
|
|
19
|
-
background-color: $color3;
|
|
20
|
-
}
|
|
8
|
+
$fontColor: $color1;
|
|
9
|
+
$fontFamily: $primaryFont, sans-serif;
|
package/_variables.scss
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@import "@fishawack/lab-ui/_variables.scss";
|
|
2
|
-
// Set global variables here, e.g $color6: red;
|
|
3
|
-
@import "./modules/AuthVariables";
|
|
4
2
|
|
|
3
|
+
// Set global variables here, e.g $color6: red;
|
|
5
4
|
$primaryFont: "Inter";
|
|
6
5
|
$primaryFontThin: "Inter-Thin";
|
|
7
6
|
$primaryFontExtraLight: "Inter-ExtraLight";
|
|
@@ -10,11 +9,10 @@ $primaryFontRegular: "Inter-Regular";
|
|
|
10
9
|
$primaryFontMedium: "Inter-Medium";
|
|
11
10
|
$primaryFontSemiBold: "Inter-SemiBold";
|
|
12
11
|
$primaryFontBold: "Inter-Bold";
|
|
13
|
-
|
|
14
12
|
$secondaryFont: "NotoSerif";
|
|
15
13
|
$secondaryFontMedium: "NotoSerif-Medium";
|
|
16
|
-
// Colors
|
|
17
14
|
|
|
15
|
+
// Colors
|
|
18
16
|
$color1: #2d2d2d;
|
|
19
17
|
$color2: #333333;
|
|
20
18
|
$color3: #f7f7f7;
|
|
@@ -29,3 +27,10 @@ $color11: #8c8c8c; //Used
|
|
|
29
27
|
$color12: #5c5c5c;
|
|
30
28
|
$color13: #3c976e;
|
|
31
29
|
$colorAlert: #d53a3a;
|
|
30
|
+
|
|
31
|
+
// Spacing
|
|
32
|
+
$spacing: 8px;
|
|
33
|
+
|
|
34
|
+
// Auth
|
|
35
|
+
$am-spacing: 8px;
|
|
36
|
+
$am-highlight: #3c976e;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
@import "./AuthVariables";
|
|
2
|
-
@import "element-plus/theme-chalk/base";
|
|
3
|
-
@import "../components/input.scss";
|
|
4
|
-
@import "../components/button";
|
|
5
|
-
@import "../components/basic";
|
|
6
|
-
@import "./modal";
|
|
7
|
-
|
|
8
|
-
// AuthModule
|
|
9
1
|
.AuthModule {
|
|
10
2
|
position: fixed;
|
|
11
3
|
background-color: black;
|
|
@@ -20,10 +12,12 @@
|
|
|
20
12
|
width: 13.3rem;
|
|
21
13
|
z-index: 99;
|
|
22
14
|
}
|
|
15
|
+
|
|
23
16
|
@include breakpoint(max-width $tabletMax) {
|
|
24
17
|
background: url("../media/content/images/hero-auth-background-tablet.jpg")
|
|
25
18
|
center top no-repeat;
|
|
26
19
|
}
|
|
20
|
+
|
|
27
21
|
@include breakpoint(max-width $mobileMax) {
|
|
28
22
|
background: url("../media/content/images/hero-auth-background-mobile.jpg")
|
|
29
23
|
center top no-repeat;
|
|
@@ -46,6 +40,7 @@
|
|
|
46
40
|
transform: translate(-50%, 0);
|
|
47
41
|
padding: 24px;
|
|
48
42
|
width: calc(100% - 80px);
|
|
43
|
+
|
|
49
44
|
h2 .h2 {
|
|
50
45
|
font-size: 24px;
|
|
51
46
|
line-height: 32px;
|
|
@@ -57,6 +52,7 @@
|
|
|
57
52
|
line-height: 50px;
|
|
58
53
|
font-size: 48px;
|
|
59
54
|
}
|
|
55
|
+
|
|
60
56
|
.h2--small {
|
|
61
57
|
font-size: 36px;
|
|
62
58
|
line-height: 44px;
|
|
@@ -67,14 +63,17 @@
|
|
|
67
63
|
line-height: 20px;
|
|
68
64
|
margin-bottom: 24px;
|
|
69
65
|
letter-spacing: -0.1px;
|
|
66
|
+
|
|
70
67
|
&.disclaimer {
|
|
71
68
|
font-size: 12px;
|
|
72
69
|
color: rgba($color1, 0.5);
|
|
73
70
|
margin: 0;
|
|
74
71
|
}
|
|
72
|
+
|
|
75
73
|
a {
|
|
76
74
|
color: $color1;
|
|
77
75
|
}
|
|
76
|
+
|
|
78
77
|
&.form__error {
|
|
79
78
|
font-size: 12px;
|
|
80
79
|
line-height: 18px;
|
|
@@ -86,6 +85,7 @@
|
|
|
86
85
|
width: 200px;
|
|
87
86
|
padding: 9px 23.5px;
|
|
88
87
|
font-size: 14px;
|
|
88
|
+
|
|
89
89
|
@include breakpoint(max-width $mobileMax) {
|
|
90
90
|
max-width: unset;
|
|
91
91
|
width: 100%;
|
|
@@ -99,43 +99,38 @@
|
|
|
99
99
|
border: 0.4px solid red;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
+
|
|
102
103
|
.form__input.error {
|
|
103
104
|
border: none;
|
|
105
|
+
|
|
104
106
|
.el-input__wrapper {
|
|
105
107
|
border: 0.4px solid red;
|
|
106
108
|
}
|
|
107
109
|
}
|
|
108
110
|
}
|
|
109
|
-
// &__icon-container{
|
|
110
|
-
// position: absolute;
|
|
111
|
-
// top: 50%;
|
|
112
|
-
// right: $spacing * 1.5;
|
|
113
|
-
// transform: translateY(-50%);
|
|
114
|
-
// display: flex;
|
|
115
|
-
// }
|
|
116
|
-
// &__action-icon {
|
|
117
|
-
// margin-left: $spacing * 0.5;
|
|
118
|
-
// cursor: pointer;
|
|
119
|
-
// }
|
|
120
111
|
}
|
|
112
|
+
|
|
121
113
|
.vel-basic__label {
|
|
122
114
|
font-size: 12px;
|
|
123
115
|
color: rgba($color1, 0.5);
|
|
124
116
|
}
|
|
117
|
+
|
|
125
118
|
.vel-basic__textbox {
|
|
126
119
|
--el-border-color: #cfd8dd;
|
|
127
120
|
--el-input-text-color: #666666;
|
|
128
121
|
--el-input-focus-border-color: #cfd8dd;
|
|
129
122
|
--el-input-hover-border-color: #cfd8dd;
|
|
130
123
|
font-size: 14px;
|
|
131
|
-
|
|
124
|
+
|
|
132
125
|
.el-input__inner {
|
|
133
126
|
--el-input-inner-height: 38px;
|
|
134
127
|
}
|
|
135
128
|
}
|
|
129
|
+
|
|
136
130
|
.el-button--primary {
|
|
137
131
|
--el-button-text-color: #ffffff;
|
|
138
132
|
}
|
|
133
|
+
|
|
139
134
|
input,
|
|
140
135
|
input:focus {
|
|
141
136
|
@extend .el-input__inner;
|
|
@@ -147,9 +142,11 @@
|
|
|
147
142
|
top: 48px;
|
|
148
143
|
left: 0%;
|
|
149
144
|
}
|
|
145
|
+
|
|
150
146
|
.AuthModule__logo {
|
|
151
147
|
position: relative;
|
|
152
148
|
}
|
|
149
|
+
|
|
153
150
|
.AuthModule__Content {
|
|
154
151
|
position: absolute;
|
|
155
152
|
z-index: 1;
|
|
@@ -161,52 +158,6 @@
|
|
|
161
158
|
height: 100%;
|
|
162
159
|
}
|
|
163
160
|
|
|
164
|
-
.
|
|
165
|
-
|
|
166
|
-
}
|
|
167
|
-
.AM-mt {
|
|
168
|
-
margin-top: $am-spacing !important;
|
|
169
|
-
}
|
|
170
|
-
.AM-pb {
|
|
171
|
-
padding-bottom: $am-spacing !important;
|
|
172
|
-
}
|
|
173
|
-
.AM-pt {
|
|
174
|
-
padding-top: $am-spacing !important;
|
|
175
|
-
}
|
|
176
|
-
@for $i from 1 through 5 {
|
|
177
|
-
.AM-mb-#{$i - 1} {
|
|
178
|
-
margin-bottom: ($i - 1) * $am-spacing !important;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.AM-mb-#{$i - 1}\.5 {
|
|
182
|
-
margin-bottom: ($i - 0.5) * $am-spacing !important;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.AM-mt-#{$i - 1} {
|
|
186
|
-
margin-top: ($i - 1) * $am-spacing !important;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.AM-mt-#{$i - 1}\.5 {
|
|
190
|
-
margin-top: ($i - 0.5) * $am-spacing !important;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.AM-pt-#{$i - 1} {
|
|
194
|
-
padding-top: ($i - 1) * $am-spacing !important;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.AM-pt-#{$i - 1}\.5 {
|
|
198
|
-
padding-top: ($i - 0.5) * $am-spacing !important;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.AM-pb-#{$i - 1} {
|
|
202
|
-
padding-bottom: ($i - 1) * $am-spacing !important;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.AM-pb-#{$i - 1}\.5 {
|
|
206
|
-
padding-bottom: ($i - 0.5) * $am-spacing !important;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.AM-color-highlight {
|
|
211
|
-
color: $am-highlight;
|
|
161
|
+
.color-highlight {
|
|
162
|
+
color: green;
|
|
212
163
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishawack/lab-velocity",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.11",
|
|
4
4
|
"description": "Avalere Health branded style system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"setup": "npm ci || npm i && npm run content",
|
|
@@ -62,14 +62,9 @@
|
|
|
62
62
|
},
|
|
63
63
|
"files": [
|
|
64
64
|
"*.scss",
|
|
65
|
-
"*.vue",
|
|
66
|
-
"form",
|
|
67
65
|
"components",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"basic",
|
|
71
|
-
"modules",
|
|
72
|
-
"AuthModule"
|
|
66
|
+
"_Build/vue/components",
|
|
67
|
+
"_Build/vue/modules/AuthModule"
|
|
73
68
|
],
|
|
74
69
|
"main": "index.js",
|
|
75
70
|
"release": {
|