fcad-core-dragon 2.0.0-beta.3 → 2.0.0-beta.4
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/.editorconfig +33 -33
- package/.eslintignore +29 -29
- package/.eslintrc.cjs +81 -81
- package/CHANGELOG +373 -364
- package/README.md +71 -71
- package/bk.scss +117 -117
- package/package.json +61 -61
- package/src/$locales/en.json +143 -143
- package/src/$locales/fr.json +105 -105
- package/src/assets/data/onboardingMessages.json +47 -47
- package/src/components/AppBase.vue +1147 -1054
- package/src/components/AppBaseButton.vue +87 -87
- package/src/components/AppBaseErrorDisplay.vue +438 -438
- package/src/components/AppBaseFlipCard.vue +84 -84
- package/src/components/AppBaseModule.vue +1636 -1673
- package/src/components/AppBasePage.vue +779 -779
- package/src/components/AppBasePopover.vue +41 -41
- package/src/components/AppCompAudio.vue +234 -234
- package/src/components/AppCompBranchButtons.vue +552 -552
- package/src/components/AppCompButtonProgress.vue +126 -126
- package/src/components/AppCompCarousel.vue +298 -298
- package/src/components/AppCompInputCheckBoxNext.vue +195 -195
- package/src/components/AppCompInputDropdownNext.vue +159 -159
- package/src/components/AppCompInputRadioNext.vue +152 -152
- package/src/components/AppCompInputTextNext.vue +106 -106
- package/src/components/AppCompInputTextTableNext.vue +141 -141
- package/src/components/AppCompInputTextToFillDropdownNext.vue +230 -230
- package/src/components/AppCompInputTextToFillNext.vue +171 -171
- package/src/components/AppCompJauge.vue +74 -74
- package/src/components/AppCompMenu.vue +423 -413
- package/src/components/AppCompMenuItem.vue +228 -228
- package/src/components/AppCompNavigation.vue +959 -960
- package/src/components/AppCompNoteCall.vue +133 -133
- package/src/components/AppCompNoteCredit.vue +292 -292
- package/src/components/AppCompPlayBar.vue +1218 -1218
- package/src/components/AppCompPlayBarNext.vue +2052 -2052
- package/src/components/AppCompPlayBarProgress.vue +82 -82
- package/src/components/AppCompPopUpNext.vue +503 -503
- package/src/components/AppCompQuizNext.vue +2904 -2904
- package/src/components/AppCompQuizRecall.vue +276 -276
- package/src/components/AppCompSVGNext.vue +347 -347
- package/src/components/AppCompSettingsMenu.vue +172 -172
- package/src/components/AppCompTableOfContent.vue +387 -387
- package/src/components/AppCompTranscript.vue +24 -24
- package/src/components/AppCompVideoPlayer.vue +368 -368
- package/src/components/AppCompViewDisplay.vue +6 -6
- package/src/components/BaseModule.vue +72 -72
- package/src/composables/useQuiz.js +206 -206
- package/src/externalComps/ModuleView.vue +22 -22
- package/src/externalComps/SummaryView.vue +91 -91
- package/src/main.js +272 -272
- package/src/mixins/$mediaMixins.js +819 -819
- package/src/mixins/timerMixin.js +155 -155
- package/src/module/stores/appStore.js +901 -893
- package/src/module/xapi/ADL.js +380 -376
- package/src/module/xapi/Crypto/Hasher.js +241 -241
- package/src/module/xapi/Crypto/WordArray.js +278 -278
- package/src/module/xapi/Crypto/algorithms/BufferedBlockAlgorithm.js +103 -103
- package/src/module/xapi/Crypto/algorithms/C_algo.js +315 -315
- package/src/module/xapi/Crypto/algorithms/HMAC.js +9 -9
- package/src/module/xapi/Crypto/algorithms/SHA1.js +9 -9
- package/src/module/xapi/Crypto/encoders/Base.js +105 -105
- package/src/module/xapi/Crypto/encoders/Base64.js +99 -99
- package/src/module/xapi/Crypto/encoders/Hex.js +61 -61
- package/src/module/xapi/Crypto/encoders/Latin1.js +61 -61
- package/src/module/xapi/Crypto/encoders/Utf8.js +45 -45
- package/src/module/xapi/Crypto/index.js +53 -53
- package/src/module/xapi/Statement/activity.js +47 -47
- package/src/module/xapi/Statement/agent.js +55 -55
- package/src/module/xapi/Statement/group.js +26 -26
- package/src/module/xapi/Statement/index.js +259 -259
- package/src/module/xapi/Statement/statement.js +253 -253
- package/src/module/xapi/Statement/statementRef.js +23 -23
- package/src/module/xapi/Statement/substatement.js +22 -22
- package/src/module/xapi/Statement/verb.js +36 -36
- package/src/module/xapi/activitytypes.js +17 -17
- package/src/module/xapi/launch.js +157 -157
- package/src/module/xapi/utils.js +167 -167
- package/src/module/xapi/verbs.js +294 -294
- package/src/module/xapi/wrapper.js +1963 -1963
- package/src/module/xapi/xapiStatement.js +444 -444
- package/src/plugins/bus.js +8 -8
- package/src/plugins/gsap.js +14 -14
- package/src/plugins/helper.js +314 -308
- package/src/plugins/i18n.js +44 -44
- package/src/plugins/idb.js +227 -219
- package/src/plugins/save.js +37 -37
- package/src/plugins/scorm.js +287 -287
- package/src/plugins/xapi.js +11 -11
- package/src/public/index.html +33 -33
- package/src/router/index.js +43 -43
- package/src/router/routes.js +312 -312
- package/src/shared/generalfuncs.js +210 -210
- package/src/shared/validators.js +1069 -1069
- package/vite.config.js +0 -27
package/src/router/index.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
//import VueRouter from 'vue-router'
|
|
2
|
-
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
3
|
-
import routes from './routes'
|
|
4
|
-
import { useAppStore } from '../module/stores/appStore'
|
|
5
|
-
import { inject } from 'vue'
|
|
6
|
-
|
|
7
|
-
//Vue.use(VueRouter)
|
|
8
|
-
|
|
9
|
-
const router = createRouter({
|
|
10
|
-
history: createWebHashHistory(),
|
|
11
|
-
routes,
|
|
12
|
-
scrollBehavior(to, from, savedPosition) {
|
|
13
|
-
if (to.hash) {
|
|
14
|
-
from, savedPosition
|
|
15
|
-
return {
|
|
16
|
-
selector: to.hash
|
|
17
|
-
// , offset: { x: 0, y: 10 }
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
router.beforeResolve((to, from, next) => {
|
|
24
|
-
const appStore = useAppStore()
|
|
25
|
-
const app = inject('app')
|
|
26
|
-
const noNavigationToMenu = appStore.getSettingsFromStore('no_menu')
|
|
27
|
-
|
|
28
|
-
app.config.globalProperties.$bus.$emit('update-route-history', from)
|
|
29
|
-
app.config.globalProperties.$bus.$emit('update-content', to, from, next)
|
|
30
|
-
|
|
31
|
-
if (noNavigationToMenu && to.name == 'menu') {
|
|
32
|
-
const r = app.config.globalProperties.$helper.getRoutesFromVueRouter() //This return all the routes defined for the module
|
|
33
|
-
let safeRoute = r.meta.children[0] //get the first navigable route from the module routes
|
|
34
|
-
|
|
35
|
-
return next({
|
|
36
|
-
name: safeRoute._namedRoute // redirect to safety route //
|
|
37
|
-
})
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return next(true)
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
export default router
|
|
1
|
+
//import VueRouter from 'vue-router'
|
|
2
|
+
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
3
|
+
import routes from './routes'
|
|
4
|
+
import { useAppStore } from '../module/stores/appStore'
|
|
5
|
+
import { inject } from 'vue'
|
|
6
|
+
|
|
7
|
+
//Vue.use(VueRouter)
|
|
8
|
+
|
|
9
|
+
const router = createRouter({
|
|
10
|
+
history: createWebHashHistory(),
|
|
11
|
+
routes,
|
|
12
|
+
scrollBehavior(to, from, savedPosition) {
|
|
13
|
+
if (to.hash) {
|
|
14
|
+
from, savedPosition
|
|
15
|
+
return {
|
|
16
|
+
selector: to.hash
|
|
17
|
+
// , offset: { x: 0, y: 10 }
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
router.beforeResolve((to, from, next) => {
|
|
24
|
+
const appStore = useAppStore()
|
|
25
|
+
const app = inject('app')
|
|
26
|
+
const noNavigationToMenu = appStore.getSettingsFromStore('no_menu')
|
|
27
|
+
|
|
28
|
+
app.config.globalProperties.$bus.$emit('update-route-history', from)
|
|
29
|
+
app.config.globalProperties.$bus.$emit('update-content', to, from, next)
|
|
30
|
+
|
|
31
|
+
if (noNavigationToMenu && to.name == 'menu') {
|
|
32
|
+
const r = app.config.globalProperties.$helper.getRoutesFromVueRouter() //This return all the routes defined for the module
|
|
33
|
+
let safeRoute = r.meta.children[0] //get the first navigable route from the module routes
|
|
34
|
+
|
|
35
|
+
return next({
|
|
36
|
+
name: safeRoute._namedRoute // redirect to safety route //
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return next(true)
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
export default router
|