@fishawack/lab-velocity 1.11.1 → 2.0.0-beta.10

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 (138) hide show
  1. package/README.md +177 -49
  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 +17 -19
  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 +10 -11
  11. package/_Build/vue/components/form/Spinner.vue +5 -0
  12. package/{form → _Build/vue/components/form}/Switch.vue +2 -2
  13. package/{form → _Build/vue/components/form}/Upload.vue +4 -6
  14. package/{form → _Build/vue/components/form}/Wysiwyg.vue +14 -14
  15. package/_Build/vue/components/form/Wysiwyg2.vue +577 -0
  16. package/{form → _Build/vue/components/form}/basic.vue +25 -7
  17. package/{form → _Build/vue/components/form}/file.vue +1 -1
  18. package/{form → _Build/vue/components/form}/input.js +2 -2
  19. package/{form → _Build/vue/components/form}/input.vue +31 -11
  20. package/{layout → _Build/vue/components/layout}/Alert.vue +10 -10
  21. package/_Build/vue/components/layout/Footer.vue +50 -0
  22. package/{layout → _Build/vue/components/layout}/Header.vue +5 -7
  23. package/_Build/vue/components/layout/Loader.vue +59 -0
  24. package/{layout → _Build/vue/components/layout}/Tooltip.vue +12 -12
  25. package/{layout → _Build/vue/components/layout}/pageTitle.vue +4 -4
  26. package/{layout → _Build/vue/components/layout}/sideBar.vue +4 -6
  27. package/{navigation → _Build/vue/components/navigation}/Breadcrumbs.vue +15 -10
  28. package/{navigation → _Build/vue/components/navigation}/BreadcrumbsItem.vue +6 -6
  29. package/_Build/vue/components/navigation/Menu.vue +14 -0
  30. package/_Build/vue/components/navigation/MenuItem.vue +20 -0
  31. package/_Build/vue/components/navigation/MenuItemGroup.vue +20 -0
  32. package/_Build/vue/components/navigation/SubMenu.vue +20 -0
  33. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +259 -0
  34. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +62 -0
  35. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +98 -0
  36. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +90 -0
  37. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/partials/form.vue +181 -0
  38. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +267 -0
  39. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +36 -0
  40. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +113 -0
  41. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +101 -0
  42. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +112 -0
  43. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/partials/form.vue +174 -0
  44. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +123 -0
  45. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +36 -0
  46. package/{AuthModule → _Build/vue/modules/AuthModule}/components/AuthModal.vue +30 -35
  47. package/_Build/vue/modules/AuthModule/components/Chip.vue +70 -0
  48. package/_Build/vue/modules/AuthModule/components/Chips.vue +26 -0
  49. package/_Build/vue/modules/AuthModule/components/FormRole.vue +117 -0
  50. package/_Build/vue/modules/AuthModule/components/VBreadcrumbs.vue +33 -0
  51. package/_Build/vue/modules/AuthModule/components/VFormFooter.vue +52 -0
  52. package/_Build/vue/modules/AuthModule/components/VPageHeader.vue +38 -0
  53. package/_Build/vue/modules/AuthModule/components/VPasswordValidation.vue +106 -0
  54. package/_Build/vue/modules/AuthModule/components/VRoleLegend.vue +43 -0
  55. package/_Build/vue/modules/AuthModule/components/VTable.vue +136 -0
  56. package/_Build/vue/modules/AuthModule/components/VTableSorter.vue +252 -0
  57. package/_Build/vue/modules/AuthModule/js/FakeAPI.js +78 -0
  58. package/_Build/vue/modules/AuthModule/js/axios.js +81 -0
  59. package/_Build/vue/modules/AuthModule/js/router.js +295 -0
  60. package/_Build/vue/modules/AuthModule/js/store.js +62 -0
  61. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/account-exists.vue +6 -8
  62. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/change-password.vue +39 -38
  63. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/container.vue +4 -8
  64. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-reset.vue +17 -15
  65. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/expired-verification.vue +21 -20
  66. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/force-reset.vue +45 -40
  67. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/forgot.vue +15 -11
  68. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/login.vue +27 -26
  69. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/logincallback.vue +6 -13
  70. package/_Build/vue/modules/AuthModule/routes/loginheadless.vue +21 -0
  71. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/loginsso.vue +34 -29
  72. package/_Build/vue/modules/AuthModule/routes/logout.vue +19 -0
  73. package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +25 -0
  74. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/register.vue +52 -37
  75. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/reset.vue +29 -19
  76. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-forgot.vue +22 -19
  77. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/success-reset.vue +6 -6
  78. package/_Build/vue/modules/AuthModule/routes/success-verify.vue +30 -0
  79. package/{AuthModule → _Build/vue/modules/AuthModule}/routes/verify.vue +26 -26
  80. package/_base.scss +0 -1
  81. package/_defaults.scss +3 -15
  82. package/_variables.scss +24 -21
  83. package/components/_alert.scss +2 -2
  84. package/components/_auth.scss +163 -0
  85. package/components/_basic.scss +5 -4
  86. package/components/_breadcrumbs.scss +7 -8
  87. package/components/_button.scss +11 -12
  88. package/components/_cascader.scss +1 -1
  89. package/components/_checkbox.scss +27 -26
  90. package/components/_chip.scss +24 -0
  91. package/components/_collapse.scss +2 -3
  92. package/components/_datepicker.scss +7 -6
  93. package/components/_footer.scss +1 -1
  94. package/components/_form.scss +6 -4
  95. package/components/_header.scss +4 -5
  96. package/components/_icon.scss +4 -3
  97. package/components/_inputNumber.scss +4 -3
  98. package/components/_link.scss +7 -7
  99. package/components/_loader.scss +3 -4
  100. package/components/_menu.scss +22 -22
  101. package/{modules → components}/_modal.scss +3 -3
  102. package/components/_pageTitle.scss +3 -3
  103. package/components/_permissionLegend.scss +18 -0
  104. package/components/_select.scss +3 -2
  105. package/components/_sidebar.scss +5 -6
  106. package/components/_switch.scss +2 -2
  107. package/components/_table.scss +3 -3
  108. package/components/_tooltip.scss +2 -2
  109. package/components/_typography.scss +71 -62
  110. package/components/_upload.scss +1 -1
  111. package/components/_wysiwyg.scss +3 -2
  112. package/components/_wysiwyg2.scss +37 -31
  113. package/general.scss +1 -2
  114. package/index.js +38 -30
  115. package/package.json +104 -102
  116. package/vendor.scss +2 -3
  117. package/AuthModule/components/VPasswordValidation.vue +0 -66
  118. package/AuthModule/js/AuthAxios.js +0 -59
  119. package/AuthModule/js/AuthRoutes.js +0 -186
  120. package/AuthModule/js/AuthStore.js +0 -99
  121. package/AuthModule/js/FakeAPI.js +0 -84
  122. package/AuthModule/routes/loginheadless.vue +0 -16
  123. package/AuthModule/routes/logout.vue +0 -21
  124. package/AuthModule/routes/success-verify.vue +0 -29
  125. package/Icon.vue +0 -33
  126. package/Svg.vue +0 -40
  127. package/components/_input.scss +0 -0
  128. package/form/Wysiwyg2.vue +0 -278
  129. package/layout/Footer.vue +0 -35
  130. package/layout/Loader.vue +0 -39
  131. package/modules/_AuthModule.scss +0 -209
  132. package/modules/_AuthVariables.scss +0 -7
  133. package/navigation/Menu.vue +0 -16
  134. package/navigation/MenuItem.vue +0 -20
  135. package/navigation/MenuItemGroup.vue +0 -20
  136. package/navigation/SubMenu.vue +0 -20
  137. /package/{form → _Build/vue/components/form}/Checkbox.vue +0 -0
  138. /package/{form → _Build/vue/components/form}/color.vue +0 -0
@@ -4,15 +4,16 @@
4
4
  <h1 class="h2 h2--small">Reset password</h1>
5
5
  <form class="form" @submit.prevent="submit">
6
6
  <div v-if="!form.successful">
7
- <p class="AM-mt-2 AM-mb-0 AM-color-highlight">
7
+ <p class="mt-2 mb-0 color-highlight">
8
8
  <strong class="">Email: {{ form?.email }}</strong>
9
9
  </p>
10
- <p class="AM-mt-0.5">
11
- Please create a new password. Passwords you have used previously aren’t permitted.
10
+ <p class="mt-0.5">
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"
15
- class="AM-mt-3"
16
+ class="mt-3"
16
17
  label="New Password"
17
18
  placeholder="Enter new password"
18
19
  name="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>
@@ -47,10 +51,10 @@
47
51
  <h4 class="mt" v-text="`Success!`" />
48
52
  <p v-text="`Your password has been reset.`" />
49
53
  </div>
50
- <p class="disclaimer AM-mt-3">
54
+ <p class="disclaimer 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,17 +93,22 @@ 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
  }
102
- this.$root.errors(e);
111
+ console.log(e);
103
112
  }
104
113
  },
105
114
 
@@ -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("../../../components/form/basic.vue").default,
130
+ elButton: require("../../../components/basic/Button.vue").default,
121
131
  },
122
132
  };
123
133
  </script>
@@ -4,16 +4,18 @@
4
4
  <h1 class="h2 h2--small">Reset password</h1>
5
5
 
6
6
  <form class="form" @submit.prevent="submit">
7
- <p class="AM-mt-2 AM-mb-0 AM-color-highlight">
7
+ <p class="mt-2 mb-0 color-highlight">
8
8
  <strong class="">Email: {{ form?.email }}</strong>
9
9
  </p>
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>
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>
12
14
  </p>
13
- <p class="AM-mt-3 AM-mb">
15
+ <p class="mt-3 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"
@@ -34,10 +37,10 @@
34
37
  Re-send instructions
35
38
  </elButton>
36
39
 
37
- <p class="disclaimer AM-mt-3">
40
+ <p class="disclaimer 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>
@@ -49,18 +52,19 @@
49
52
 
50
53
  <script>
51
54
  import Form from "form-backend-validation";
55
+ import { ElNotification } from "element-plus";
52
56
 
53
57
  export default {
54
58
  components: {
55
- elInput: require('../../form/basic.vue').default,
56
- elButton: require('../../basic/Button.vue').default,
59
+ elInput: require("../../../components/form/basic.vue").default,
60
+ elButton: require("../../../components/basic/Button.vue").default,
57
61
  },
58
62
  data: () => ({
59
63
  form: new Form(
60
64
  {
61
65
  email: "",
62
66
  },
63
- { resetOnSuccess: false }
67
+ { resetOnSuccess: false },
64
68
  ),
65
69
  notification: null,
66
70
  }),
@@ -75,23 +79,22 @@ export default {
75
79
 
76
80
  await this.form.post("/forgot-password");
77
81
 
78
- this.$notify({
82
+ ElNotification({
79
83
  type: "success",
80
84
  message: "Email has been re-sent",
81
85
  duration: 10000,
82
- class: 'el-notification--success el-notification--right-override'
86
+ class: "el-notification--success el-notification--right-override",
83
87
  });
84
88
  } catch (e) {
85
89
  if (e.response && e.response.status === 422) {
86
- this.notification = this.$notify({
90
+ this.notification = ElNotification({
87
91
  type: "warning",
88
- message: 'Please allow 10 minutes before re-requesting',
92
+ message: "Please allow 10 minutes before re-requesting",
89
93
  duration: 0,
90
- class: 'el-notification--warning el-notification--right-override'
94
+ class: "el-notification--warning el-notification--right-override",
91
95
  });
92
- }
93
- else {
94
- this.$root.errors(e);
96
+ } else {
97
+ console.log(e);
95
98
  }
96
99
  }
97
100
  },
@@ -103,7 +106,7 @@ export default {
103
106
  // If a user has come here directly then send them off to the original forgot screen to enter an email
104
107
  if (!this.form.email) {
105
108
  this.$router.push({
106
- name: `${this.$store.state.auth.authBase}.forgot`,
109
+ name: `auth.forgot`,
107
110
  });
108
111
  }
109
112
  },
@@ -2,18 +2,18 @@
2
2
  <div class="relative">
3
3
  <section id="resetPasswordForm">
4
4
  <h1 class="h2 h2--small">Success</h1>
5
-
6
- <p class="AM-mt-2 AM-mb-0 AM-color-highlight">
5
+
6
+ <p class="mt-2 mb-0 color-highlight">
7
7
  <strong class="">Email: {{ $route.query.email }}</strong>
8
8
  </p>
9
- <p class="AM-mt">
9
+ <p class="mt">
10
10
  Your password has been reset. Please sign in to continue.
11
11
  </p>
12
12
 
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("../../../components/basic/Button.vue").default,
33
+ },
34
34
  };
35
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>
@@ -2,15 +2,15 @@
2
2
  <h1 class="h2 h2--small">Verify your email address</h1>
3
3
 
4
4
  <form class="form" @submit.prevent="submit">
5
- <p class="AM-mt-2 AM-mb-0 AM-color-highlight">
5
+ <p class="mt-2 mb-0 color-highlight">
6
6
  <strong class="">Email: {{ user?.email }}</strong>
7
7
  </p>
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.
10
- </p>
11
- <p class="AM-mt-0.5 AM-mb-0">
12
- Haven’t received the email after 10 minutes?
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.
13
12
  </p>
13
+ <p class="mt-0.5 mb-0">Haven’t received the email after 10 minutes?</p>
14
14
 
15
15
  <el-input
16
16
  class="hidden"
@@ -24,7 +24,8 @@
24
24
  />
25
25
 
26
26
  <elButton
27
- class="AM-mt AM-mb-3"
27
+ class="mt mb-3"
28
+ native-type="submit"
28
29
  type="primary"
29
30
  :disabled="form.processing"
30
31
  :loading="form.processing"
@@ -33,20 +34,23 @@
33
34
  Re-send verification link
34
35
  </elButton>
35
36
 
36
- <p class="disclaimer AM-mt-1.5">
37
+ <p class="disclaimer mt-1.5">
37
38
  Having trouble singing in?
38
- <a :href="contact" class="underline">Contact us</a>
39
+ <a :href="$store.state.auth.contact" class="underline"
40
+ >Contact us</a
41
+ >
39
42
  </p>
40
43
  </form>
41
44
  </template>
42
45
 
43
46
  <script>
44
47
  import Form from "form-backend-validation";
48
+ import { ElNotification } from "element-plus";
45
49
 
46
50
  export default {
47
51
  components: {
48
- elInput: require('../../form/basic.vue').default,
49
- elButton: require('../../basic/Button.vue').default,
52
+ elInput: require("../../../components/form/basic.vue").default,
53
+ elButton: require("../../../components/basic/Button.vue").default,
50
54
  },
51
55
  data: () => ({
52
56
  user: null,
@@ -54,10 +58,9 @@ export default {
54
58
  {
55
59
  email: "",
56
60
  },
57
- { resetOnSuccess: false }
61
+ { resetOnSuccess: false },
58
62
  ),
59
63
  notification: null,
60
- contact: process.env.HYDRATE_CONTACT ?? 'mailto:EP@avalerehealth.com',
61
64
  }),
62
65
 
63
66
  methods: {
@@ -70,39 +73,36 @@ export default {
70
73
 
71
74
  await this.form.post("/email/verification-notification");
72
75
 
73
- this.$notify({
76
+ ElNotification({
74
77
  type: "success",
75
78
  message: "Email has been re-sent",
76
79
  duration: 10000,
77
- class: 'el-notification--success el-notification--right-override'
80
+ class: "el-notification--success el-notification--right-override",
78
81
  });
79
82
  } catch (e) {
80
83
  if (e.response && e.response.status === 429) {
81
- this.notification = this.$notify({
84
+ this.notification = ElNotification({
82
85
  type: "warning",
83
- message: 'Please allow 10 minutes before re-requesting',
86
+ message: "Please allow 10 minutes before re-requesting",
84
87
  duration: 0,
85
- class: 'el-notification--warning el-notification--right-override'
88
+ class: "el-notification--warning el-notification--right-override",
86
89
  });
87
90
  } else if (e.response && e.response.status === 422) {
88
- this.notification = this.$notify({
91
+ this.notification = ElNotification({
89
92
  type: "error",
90
93
  message: e.response.data.message,
91
94
  duration: 0,
92
- class: 'el-notification--error el-notification--right-override'
95
+ class: "el-notification--error el-notification--right-override",
93
96
  });
94
- }
95
- else {
96
- this.$root.errors(e);
97
+ } else {
98
+ console.log(e);
97
99
  }
98
100
  }
99
101
  },
100
102
  },
101
103
 
102
104
  async mounted() {
103
- this.user = await this.$store.dispatch("getUser", {
104
- errors: this.$root.errors,
105
- });
105
+ this.user = await this.$store.dispatch("getUser");
106
106
 
107
107
  this.form.email = this.user.email;
108
108
  },
package/_base.scss CHANGED
@@ -3,4 +3,3 @@
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";
package/_defaults.scss CHANGED
@@ -2,20 +2,8 @@
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
- $spacing: 8px;
9
- .container {
10
- margin-left: 0;
11
- padding: 0px 5 * $spacing;
12
- }
13
-
14
-
15
- body {
16
- font-family: $primaryFont, sans-serif;
17
- font-size: get-ratio(16px);
18
- line-height: 1.5;
19
- color: $color1;
20
- background-color: $color3;
21
- }
8
+ $fontColor: $color1;
9
+ $fontFamily: $primaryFont, sans-serif;
package/_variables.scss CHANGED
@@ -1,25 +1,21 @@
1
1
  @import "@fishawack/lab-ui/_variables.scss";
2
- // Set global variables here, e.g $color6: red;
3
- @import "./modules/AuthVariables";
4
-
5
-
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
2
 
3
+ // Set global variables here, e.g $color6: red;
4
+ $primaryFont: "Inter";
5
+ $primaryFontThin: "Inter-Thin";
6
+ $primaryFontExtraLight: "Inter-ExtraLight";
7
+ $primaryFontLight: "Inter-Light";
8
+ $primaryFontRegular: "Inter-Regular";
9
+ $primaryFontMedium: "Inter-Medium";
10
+ $primaryFontSemiBold: "Inter-SemiBold";
11
+ $primaryFontBold: "Inter-Bold";
12
+ $secondaryFont: "NotoSerif";
13
+ $secondaryFontMedium: "NotoSerif-Medium";
15
14
 
16
- $secondaryFont: 'NotoSerif';
17
- $secondaryFontMedium: 'NotoSerif-Medium';
18
15
  // Colors
19
-
20
- $color1: #2D2D2D;
16
+ $color1: #2d2d2d;
21
17
  $color2: #333333;
22
- $color3: #F7F7F7;
18
+ $color3: #f7f7f7;
23
19
  $color4: #e6e6e6;
24
20
  $color5: #cccccc;
25
21
  $color6: #999999;
@@ -27,7 +23,14 @@ $color7: #666666;
27
23
  $color8: #f2f2f2; //Used
28
24
  $color9: #ff0000;
29
25
  $color10: #dcdbdb;
30
- $color11: #8C8C8C; //Used
31
- $color12: #5C5C5C;
32
- $color13: #3C976E;
33
- $colorAlert: #D53A3A;
26
+ $color11: #8c8c8c; //Used
27
+ $color12: #5c5c5c;
28
+ $color13: #3c976e;
29
+ $colorAlert: #d53a3a;
30
+
31
+ // Spacing
32
+ $spacing: 8px;
33
+
34
+ // Auth
35
+ $am-spacing: 8px;
36
+ $am-highlight: #3c976e;
@@ -1,5 +1,5 @@
1
1
  @import "element-plus/theme-chalk/el-alert";
2
2
 
3
3
  .vel-alert {
4
- --el-color-error: #D53A3A;
5
- }
4
+ --el-color-error: #d53a3a;
5
+ }
@@ -0,0 +1,163 @@
1
+ .AuthModule {
2
+ position: fixed;
3
+ background-color: black;
4
+ height: 100vh;
5
+ width: 100%;
6
+ background: url("../media/content/images/hero-auth-background-desktop.jpg")
7
+ center top no-repeat;
8
+ background-size: cover;
9
+ z-index: 10;
10
+
11
+ .logo {
12
+ width: 13.3rem;
13
+ z-index: 99;
14
+ }
15
+
16
+ @include breakpoint(max-width $tabletMax) {
17
+ background: url("../media/content/images/hero-auth-background-tablet.jpg")
18
+ center top no-repeat;
19
+ }
20
+
21
+ @include breakpoint(max-width $mobileMax) {
22
+ background: url("../media/content/images/hero-auth-background-mobile.jpg")
23
+ center top no-repeat;
24
+ }
25
+ }
26
+
27
+ .AuthModule__form {
28
+ position: absolute;
29
+ top: 50%;
30
+ left: 50%;
31
+ transform: translate(-50%, -50%);
32
+ background-color: white;
33
+ min-width: 320px;
34
+ width: 460px;
35
+ padding: 48px 40px 40px;
36
+ z-index: 1;
37
+
38
+ @include breakpoint(max-width $mobileMax) {
39
+ top: 84px;
40
+ transform: translate(-50%, 0);
41
+ padding: 24px;
42
+ width: calc(100% - 80px);
43
+
44
+ h2 .h2 {
45
+ font-size: 24px;
46
+ line-height: 32px;
47
+ }
48
+ }
49
+
50
+ h2,
51
+ .h2 {
52
+ line-height: 50px;
53
+ font-size: 48px;
54
+ }
55
+
56
+ .h2--small {
57
+ font-size: 36px;
58
+ line-height: 44px;
59
+ }
60
+
61
+ p {
62
+ font-size: 14px;
63
+ line-height: 20px;
64
+ margin-bottom: 24px;
65
+ letter-spacing: -0.1px;
66
+
67
+ &.disclaimer {
68
+ font-size: 12px;
69
+ color: rgba($color1, 0.5);
70
+ margin: 0;
71
+ }
72
+
73
+ a {
74
+ color: $color1;
75
+ }
76
+
77
+ &.form__error {
78
+ font-size: 12px;
79
+ line-height: 18px;
80
+ }
81
+ }
82
+
83
+ .vel-button {
84
+ max-width: 200px;
85
+ width: 200px;
86
+ padding: 9px 23.5px;
87
+ font-size: 14px;
88
+
89
+ @include breakpoint(max-width $mobileMax) {
90
+ max-width: unset;
91
+ width: 100%;
92
+ }
93
+ }
94
+
95
+ .form {
96
+ &.error {
97
+ .form__input {
98
+ .el-input__wrapper {
99
+ border: 0.4px solid red;
100
+ }
101
+ }
102
+
103
+ .form__input.error {
104
+ border: none;
105
+
106
+ .el-input__wrapper {
107
+ border: 0.4px solid red;
108
+ }
109
+ }
110
+ }
111
+ }
112
+
113
+ .vel-basic__label {
114
+ font-size: 12px;
115
+ color: rgba($color1, 0.5);
116
+ }
117
+
118
+ .vel-basic__textbox {
119
+ --el-border-color: #cfd8dd;
120
+ --el-input-text-color: #666666;
121
+ --el-input-focus-border-color: #cfd8dd;
122
+ --el-input-hover-border-color: #cfd8dd;
123
+ font-size: 14px;
124
+
125
+ .el-input__inner {
126
+ --el-input-inner-height: 38px;
127
+ }
128
+ }
129
+
130
+ .el-button--primary {
131
+ --el-button-text-color: #ffffff;
132
+ }
133
+
134
+ input,
135
+ input:focus {
136
+ @extend .el-input__inner;
137
+ }
138
+ }
139
+
140
+ .AuthModule__logo__container {
141
+ position: absolute;
142
+ top: 48px;
143
+ left: 0%;
144
+ }
145
+
146
+ .AuthModule__logo {
147
+ position: relative;
148
+ }
149
+
150
+ .AuthModule__Content {
151
+ position: absolute;
152
+ z-index: 1;
153
+ top: 50%;
154
+ left: 50%;
155
+ transform: translate(-50%, -50%);
156
+ max-width: 1024px;
157
+ width: 100%;
158
+ height: 100%;
159
+ }
160
+
161
+ .color-highlight {
162
+ color: green;
163
+ }