@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.
Files changed (132) hide show
  1. package/README.md +13 -7
  2. package/_Build/vue/components/Icon.vue +33 -0
  3. package/_Build/vue/components/Svg.vue +45 -0
  4. package/{basic → _Build/vue/components/basic}/Button.vue +16 -18
  5. package/{basic → _Build/vue/components/basic}/link.vue +8 -7
  6. package/{form → _Build/vue/components/form}/Cascader.vue +13 -13
  7. package/{form → _Build/vue/components/form}/CheckboxGroup.vue +28 -6
  8. package/{form → _Build/vue/components/form}/DatePicker.vue +23 -7
  9. package/{form → _Build/vue/components/form}/InputNumber.vue +1 -2
  10. package/{form → _Build/vue/components/form}/Select.vue +8 -9
  11. package/{form → _Build/vue/components/form}/Switch.vue +2 -2
  12. package/{form → _Build/vue/components/form}/Upload.vue +4 -6
  13. package/{form → _Build/vue/components/form}/Wysiwyg.vue +14 -14
  14. package/_Build/vue/components/form/Wysiwyg2.vue +577 -0
  15. package/{form → _Build/vue/components/form}/basic.vue +25 -7
  16. package/{form → _Build/vue/components/form}/file.vue +1 -1
  17. package/{form → _Build/vue/components/form}/input.js +2 -2
  18. package/{form → _Build/vue/components/form}/input.vue +31 -11
  19. package/{layout → _Build/vue/components/layout}/Alert.vue +10 -10
  20. package/_Build/vue/components/layout/Footer.vue +50 -0
  21. package/{layout → _Build/vue/components/layout}/Header.vue +5 -7
  22. package/_Build/vue/components/layout/Loader.vue +59 -0
  23. package/{layout → _Build/vue/components/layout}/Tooltip.vue +12 -12
  24. package/{layout → _Build/vue/components/layout}/pageTitle.vue +4 -4
  25. package/{layout → _Build/vue/components/layout}/sideBar.vue +4 -6
  26. package/{navigation → _Build/vue/components/navigation}/Breadcrumbs.vue +15 -10
  27. package/{navigation → _Build/vue/components/navigation}/BreadcrumbsItem.vue +6 -6
  28. package/_Build/vue/components/navigation/Menu.vue +14 -0
  29. package/_Build/vue/components/navigation/MenuItem.vue +20 -0
  30. package/_Build/vue/components/navigation/MenuItemGroup.vue +20 -0
  31. package/_Build/vue/components/navigation/SubMenu.vue +20 -0
  32. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +251 -0
  33. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +62 -0
  34. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +98 -0
  35. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +90 -0
  36. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/partials/form.vue +173 -0
  37. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +262 -0
  38. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +36 -0
  39. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +112 -0
  40. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +103 -0
  41. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +112 -0
  42. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/partials/form.vue +169 -0
  43. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +120 -0
  44. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +36 -0
  45. package/{AuthModule → _Build/vue/modules/AuthModule}/components/AuthModal.vue +30 -35
  46. package/_Build/vue/modules/AuthModule/components/Chip.vue +70 -0
  47. package/_Build/vue/modules/AuthModule/components/Chips.vue +26 -0
  48. package/_Build/vue/modules/AuthModule/components/FormRole.vue +115 -0
  49. package/_Build/vue/modules/AuthModule/components/VBreadcrumbs.vue +32 -0
  50. package/_Build/vue/modules/AuthModule/components/VFormFooter.vue +46 -0
  51. package/_Build/vue/modules/AuthModule/components/VPageHeader.vue +38 -0
  52. package/_Build/vue/modules/AuthModule/components/VPasswordValidation.vue +106 -0
  53. package/_Build/vue/modules/AuthModule/components/VRoleLegend.vue +43 -0
  54. package/_Build/vue/modules/AuthModule/components/VTable.vue +127 -0
  55. package/_Build/vue/modules/AuthModule/components/VTableSorter.vue +240 -0
  56. package/_Build/vue/modules/AuthModule/js/FakeAPI.js +78 -0
  57. package/_Build/vue/modules/AuthModule/js/axios.js +62 -0
  58. package/_Build/vue/modules/AuthModule/js/router.js +295 -0
  59. package/_Build/vue/modules/AuthModule/js/store.js +62 -0
  60. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/account-exists.vue +5 -7
  61. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/change-password.vue +28 -25
  62. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/container.vue +4 -8
  63. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-reset.vue +13 -11
  64. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-verification.vue +12 -12
  65. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/force-reset.vue +36 -26
  66. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/forgot.vue +11 -7
  67. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/login.vue +20 -15
  68. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logincallback.vue +5 -10
  69. package/_Build/vue/modules/AuthModule/routes/loginheadless.vue +21 -0
  70. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/loginsso.vue +32 -25
  71. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logout.vue +6 -6
  72. package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +27 -0
  73. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/register.vue +43 -25
  74. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/reset.vue +24 -14
  75. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-forgot.vue +14 -12
  76. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-reset.vue +4 -4
  77. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-verify.vue +10 -7
  78. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/verify.vue +15 -12
  79. package/_base.scss +1 -1
  80. package/_defaults.scss +2 -3
  81. package/_variables.scss +16 -18
  82. package/general.scss +1 -2
  83. package/index.js +38 -30
  84. package/package.json +103 -102
  85. package/vendor.scss +2 -2
  86. package/AuthModule/components/VPasswordValidation.vue +0 -66
  87. package/AuthModule/js/AuthAxios.js +0 -59
  88. package/AuthModule/js/AuthRoutes.js +0 -186
  89. package/AuthModule/js/AuthStore.js +0 -99
  90. package/AuthModule/js/FakeAPI.js +0 -84
  91. package/AuthModule/routes/loginheadless.vue +0 -16
  92. package/Icon.vue +0 -33
  93. package/Svg.vue +0 -40
  94. package/components/_alert.scss +0 -5
  95. package/components/_basic.scss +0 -54
  96. package/components/_breadcrumbs.scss +0 -40
  97. package/components/_button.scss +0 -305
  98. package/components/_cascader.scss +0 -12
  99. package/components/_checkbox.scss +0 -40
  100. package/components/_collapse.scss +0 -25
  101. package/components/_datepicker.scss +0 -51
  102. package/components/_footer.scss +0 -46
  103. package/components/_form.scss +0 -22
  104. package/components/_header.scss +0 -55
  105. package/components/_icon.scss +0 -24
  106. package/components/_input.scss +0 -0
  107. package/components/_inputNumber.scss +0 -21
  108. package/components/_link.scss +0 -44
  109. package/components/_loader.scss +0 -44
  110. package/components/_menu.scss +0 -112
  111. package/components/_pageTitle.scss +0 -8
  112. package/components/_select.scss +0 -28
  113. package/components/_sidebar.scss +0 -57
  114. package/components/_switch.scss +0 -14
  115. package/components/_table.scss +0 -20
  116. package/components/_tooltip.scss +0 -4
  117. package/components/_typography.scss +0 -153
  118. package/components/_upload.scss +0 -15
  119. package/components/_wysiwyg.scss +0 -6
  120. package/components/_wysiwyg2.scss +0 -136
  121. package/form/Wysiwyg2.vue +0 -278
  122. package/layout/Footer.vue +0 -35
  123. package/layout/Loader.vue +0 -39
  124. package/modules/_AuthModule.scss +0 -209
  125. package/modules/_AuthVariables.scss +0 -7
  126. package/modules/_modal.scss +0 -24
  127. package/navigation/Menu.vue +0 -16
  128. package/navigation/MenuItem.vue +0 -20
  129. package/navigation/MenuItemGroup.vue +0 -20
  130. package/navigation/SubMenu.vue +0 -20
  131. /package/{form → _Build/vue/components/form}/Checkbox.vue +0 -0
  132. /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">Please enter your personal details to complete your registration.</p>
4
-
5
- <form @submit.prevent="submit" :class="form.errors && form.errors.any() ? 'form error' : 'form'" id="memberLoginForm">
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 :password="form.password" @passwordValid="updatePasswordValidity" />
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="loading || (form.name?.length < 1 || form.email?.length < 5 || !isPasswordValid)"
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">Contact us</a>
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['redirect']) {
121
+ if (res["redirect"]) {
107
122
  // Redirect here
108
- this.$router.push({ name: `${this.$store.state.auth.authBase}.login`, query: {company:res['company']} });
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({ name: `${this.$store.state.auth.authBase}.verify` });
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").default,
152
- elInput: require('../../form/basic.vue').default,
153
- elButton: require('../../basic/Button.vue').default,
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 previously aren’t permitted.
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 :password="form.password" @passwordValid="updatePasswordValidity" />
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: `${$store.state.auth.authBase}.login` }"
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: `${this.$store.state.auth.authBase}.success-reset`,
96
+ name: "auth.success-reset",
93
97
  query: { email: this.form.email },
94
98
  });
95
99
  } catch (e) {
96
- if (e.response && e.response.status === 422 && e.response.data.message === "This password reset token is invalid.") {
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: `${this.$store.state.auth.authBase}.expired-reset`,
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").default,
119
- elInput: require('../../form/basic.vue').default,
120
- elButton: require('../../basic/Button.vue').default,
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 instructions for resetting the password. <strong>Please check your inbox.</strong>
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: `${$store.state.auth.authBase}.login` }"
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('../../form/basic.vue').default,
56
- elButton: require('../../basic/Button.vue').default,
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: 'el-notification--success el-notification--right-override'
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: 'Please allow 10 minutes before re-requesting',
91
+ message: "Please allow 10 minutes before re-requesting",
89
92
  duration: 0,
90
- class: 'el-notification--warning el-notification--right-override'
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: `${this.$store.state.auth.authBase}.forgot`,
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: `${$store.state.auth.authBase}.login`}"
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('../../basic/Button.vue').default,
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"><strong>Welcome to {{ $store.state?.auth?.platformName }}, {{ $store.state?.auth?.user?.name }}!</strong></p>
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('../../basic/Button.vue').default,
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 from {{ $store.state?.auth?.platformName }}. Click the link in that email to verify your email address and complete your registration.
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">Contact us</a>
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('../../form/basic.vue').default,
49
- elButton: require('../../basic/Button.vue').default,
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: 'el-notification--success el-notification--right-override'
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: 'Please allow 10 minutes before re-requesting',
87
+ message: "Please allow 10 minutes before re-requesting",
84
88
  duration: 0,
85
- class: 'el-notification--warning el-notification--right-override'
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: 'el-notification--error el-notification--right-override'
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
@@ -3,4 +3,4 @@
3
3
  @import "element-plus/theme-chalk/el-message";
4
4
  @import "element-plus/theme-chalk/el-notification";
5
5
  @import "element-plus/theme-chalk/el-overlay";
6
- @import "./components/input.scss";
6
+ @import "./components/input.scss";
package/_defaults.scss CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  @import "@fishawack/lab-ui/_defaults.scss";
4
4
 
5
- $colors: variables.dynamic('color', module-variables("variables"));
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
- $primaryFont: 'Inter';
7
- $primaryFontThin: 'Inter-Thin';
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: #2D2D2D;
18
+ $color1: #2d2d2d;
21
19
  $color2: #333333;
22
- $color3: #F7F7F7;
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: #8C8C8C; //Used
31
- $color12: #5C5C5C;
32
- $color13: #3C976E;
33
- $colorAlert: #D53A3A;
28
+ $color11: #8c8c8c; //Used
29
+ $color12: #5c5c5c;
30
+ $color13: #3c976e;
31
+ $colorAlert: #d53a3a;
package/general.scss CHANGED
@@ -31,5 +31,4 @@
31
31
  @import "./components/_loader.scss";
32
32
  @import "./modules/_AuthModule.scss";
33
33
 
34
-
35
- @import "./_base.scss";
34
+ @import "./_base.scss";