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.
- package/CHANGELOG +2 -2
- package/package.json +1 -1
- package/src/components/AppBasePage.vue +866 -866
- package/src/components/AppCompMenu.vue +0 -1
- package/src/main.js +5 -5
- package/src/plugins/analytics.js +4 -4
- package/src/plugins/gsap.js +4 -2
- package/src/plugins/helper.js +4 -4
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
|
|
50
|
-
app.use(GsapPlugin
|
|
51
|
-
app.use(xapiPlugin
|
|
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
|
|
474
|
-
app.use(analytics
|
|
473
|
+
app.use(helper)
|
|
474
|
+
app.use(analytics)
|
|
475
475
|
}
|
|
476
476
|
}
|
package/src/plugins/analytics.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { event } from 'vue-gtag'
|
|
2
2
|
import VueGtag from 'vue-gtag'
|
|
3
3
|
|
|
4
|
-
export default
|
|
5
|
-
|
|
6
|
-
|
|
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
|
}
|
package/src/plugins/gsap.js
CHANGED
|
@@ -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
|
|
14
|
-
app
|
|
13
|
+
export default {
|
|
14
|
+
install: (app) => {
|
|
15
|
+
app.config.globalProperties.$gsap = gsap
|
|
16
|
+
}
|
|
15
17
|
}
|
package/src/plugins/helper.js
CHANGED
|
@@ -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
|
|
11
|
-
|
|
12
|
-
|
|
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
|
}
|