fcad-core-dragon 2.1.0 → 2.1.1

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.
@@ -4,7 +4,6 @@
4
4
  -->
5
5
  <template>
6
6
  <div class="menu-container">
7
- test sss
8
7
  <div
9
8
  id="page_info_section"
10
9
  class="sr-only"
package/src/main.js CHANGED
@@ -46,9 +46,9 @@ const pinia = createPinia()
46
46
  export default {
47
47
  install(app, options) {
48
48
  app.use(pinia)
49
- app.use(scormPlugin, '$scorm')
50
- app.use(GsapPlugin, '$gsap')
51
- app.use(xapiPlugin, '$xapi')
49
+ app.use(scormPlugin)
50
+ app.use(GsapPlugin)
51
+ app.use(xapiPlugin)
52
52
  app.use(VueSafeTeleport)
53
53
  app.component('FocusTrap', FocusTrap)
54
54
 
@@ -470,7 +470,7 @@ export default {
470
470
 
471
471
  //mergeLocales
472
472
  mergeLocales(options.i18n.global)
473
- app.use(helper, '$helper')
474
- app.use(analytics, '$analytics')
473
+ app.use(helper)
474
+ app.use(analytics)
475
475
  }
476
476
  }
@@ -1,9 +1,9 @@
1
1
  import { event } from 'vue-gtag'
2
2
  import VueGtag from 'vue-gtag'
3
3
 
4
- export default function analytics(app, name) {
5
- Object.defineProperty(app.config.globalProperties, name, {
6
- value: {
4
+ export default {
5
+ install: (app) => {
6
+ app.config.globalProperties.$analytics = {
7
7
  analyticsEnabled: false,
8
8
  //Initialize the vue-gtag plugin if a valid analytics id is provided in App.vue
9
9
  init(analytics_id, router) {
@@ -30,5 +30,5 @@ export default function analytics(app, name) {
30
30
  }
31
31
  }
32
32
  }
33
- })
33
+ }
34
34
  }
@@ -10,6 +10,8 @@ import { Flip } from 'gsap/Flip'
10
10
 
11
11
  gsap.registerPlugin(MotionPathPlugin, ScrollTrigger, Flip)
12
12
  gsap.ScrollTrigger = ScrollTrigger
13
- export default function GsapPlugin(app, name) {
14
- app.config.globalProperties.$gsap = gsap
13
+ export default {
14
+ install: (app) => {
15
+ app.config.globalProperties.$gsap = gsap
16
+ }
15
17
  }
@@ -7,9 +7,9 @@ import axios from 'axios'
7
7
  import locale_en from '../$locales/en.json'
8
8
  import locale_fr from '../$locales/fr.json'
9
9
 
10
- export default function helper(app, name) {
11
- Object.defineProperty(app.config.globalProperties, name, {
12
- value: {
10
+ export default {
11
+ install: (app) => {
12
+ app.config.globalProperties.$helper = {
13
13
  /***
14
14
  * @description: helper to get the collection of routes of activies from vue-Router.
15
15
  * @note If need more info from the router , use directly the vue-router
@@ -354,5 +354,5 @@ export default function helper(app, name) {
354
354
  return array.includes(value)
355
355
  }
356
356
  }
357
- })
357
+ }
358
358
  }