@icvdeveloper/common-module 0.0.26 → 0.0.28

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "v3plus-common-module",
3
3
  "configKey": "v3plusCommonModule",
4
- "version": "0.0.26"
4
+ "version": "0.0.28"
5
5
  }
@@ -26,7 +26,7 @@ const { loginError, handleLogin, email, password, tooManySessions, showReset } =
26
26
  <div class="px-2">
27
27
  <div class="flex flex-1 flex-col text-center pt-8">
28
28
  <h1 class="mb-3 heading-color-3">Log In</h1>
29
- <Message
29
+ <CommonMessage
30
30
  v-if="loginError"
31
31
  :success="false"
32
32
  class="w-full max-w-xs mx-auto"
@@ -44,7 +44,7 @@ const { loginError, handleLogin, email, password, tooManySessions, showReset } =
44
44
  @click="showReset"
45
45
  >Forgot Your Password?</a
46
46
  >
47
- </Message>
47
+ </CommonMessage>
48
48
 
49
49
  <div class="max-w-xs mx-auto" @keyup.enter="handleLogin()">
50
50
  <input
@@ -62,13 +62,13 @@ const { loginError, handleLogin, email, password, tooManySessions, showReset } =
62
62
  <button v-if="!tooManySessions" class="btn" @click="handleLogin()">
63
63
  Log In
64
64
  </button>
65
- <Message
65
+ <CommonMessage
66
66
  v-if="tooManySessions"
67
67
  :success="false"
68
68
  class="w-full max-w-xs mx-auto"
69
69
  >
70
70
  This user access is logged in on another device!
71
- </Message>
71
+ </CommonMessage>
72
72
  <button v-if="tooManySessions" class="btn" @click="handleLogin(true)">
73
73
  Sign out other Device
74
74
  </button>
@@ -1,8 +1,15 @@
1
1
  <script lang="ts" setup>
2
+ import { ref } from "vue";
2
3
  import { storeToRefs } from "pinia";
4
+ import { useRouter } from "vue-router";
3
5
  import { useDateFormat } from "../../composables/useDateFormat";
4
6
  import { useConferenceHelpers } from "../../composables/useConferenceHelpers";
5
7
  import { Conference } from "../../models/conference";
8
+ import {
9
+ useConferencesStore,
10
+ useAuthStore,
11
+ useTemplateConfigsStore,
12
+ } from "../../store";
6
13
 
7
14
  const router = useRouter();
8
15
 
@@ -1,6 +1,6 @@
1
1
  import { storeToRefs } from "pinia";
2
2
  import { useRouter } from "vue-router";
3
- import { defineEmits, ref } from "vue";
3
+ import { ref } from "vue";
4
4
  import {
5
5
  useConferencesStore,
6
6
  useAuthStore,
@@ -15,7 +15,6 @@ export const useLogin = (conference) => {
15
15
  const password = ref("");
16
16
  const tooManySessions = ref(false);
17
17
  const loginError = ref(false);
18
- const emit = defineEmits(["showReset", "loggedIn"]);
19
18
  const router = useRouter();
20
19
  const shouldRedirect = () => {
21
20
  let redirectUrl = null;
@@ -38,7 +37,6 @@ export const useLogin = (conference) => {
38
37
  };
39
38
  const handleLogin = (revoke = false) => {
40
39
  login({ email: email.value, password: password.value, revoke }).then(() => {
41
- emit("loggedIn");
42
40
  shouldRedirect();
43
41
  }).catch((error) => {
44
42
  if (error.response.status === 423) {
@@ -51,7 +49,6 @@ export const useLogin = (conference) => {
51
49
  const showReset = () => {
52
50
  email.value = "";
53
51
  password.value = "";
54
- emit("showReset");
55
52
  };
56
53
  return {
57
54
  email,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {