@icvdeveloper/common-module 0.0.2 → 0.0.3

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
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.0.2"
7
+ "version": "0.0.3"
8
8
  }
@@ -1,10 +1,8 @@
1
1
  import { defineNuxtPlugin } from "#app";
2
2
  import { computed } from "vue";
3
3
  import { storeToRefs } from "pinia";
4
- import NProgress from "nprogress";
5
4
  import { createV3plusCommonPlugin } from "./v3plusCommonPlugin.mjs";
6
5
  import { usePortalStore } from "./store/portal.mjs";
7
- import { useConferencesStore } from "./store/conferences.mjs";
8
6
  export default defineNuxtPlugin((nuxtApp) => {
9
7
  const { version, portalHash, apiUrl } = nuxtApp.payload.config.public.v3plusCommonModule;
10
8
  const v3plusCommonModule = createV3plusCommonPlugin({
@@ -12,24 +10,6 @@ export default defineNuxtPlugin((nuxtApp) => {
12
10
  portalHash,
13
11
  apiUrl
14
12
  });
15
- nuxtApp.$router.beforeEach(async (to, from) => {
16
- NProgress.start();
17
- const portalStore = usePortalStore();
18
- const conferencesStore = useConferencesStore();
19
- const { data: portal, errors: portalErrors } = storeToRefs(
20
- usePortalStore()
21
- );
22
- if (portal.value === null) {
23
- Promise.all([
24
- await portalStore.getPortal().then(() => NProgress.inc()),
25
- await conferencesStore.getConferences().then(() => NProgress.inc()),
26
- await conferencesStore.getCurrentConference().then(() => NProgress.inc())
27
- ]);
28
- }
29
- });
30
- nuxtApp.$router.afterEach(() => {
31
- NProgress.done();
32
- });
33
13
  nuxtApp.hook("app:created", (app) => {
34
14
  const { data } = storeToRefs(usePortalStore());
35
15
  app.config.globalProperties.$head.addHeadObjs(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icvdeveloper/common-module",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {