fcad-core-dragon 2.1.2 → 2.2.0-beta.2
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/.gitlab-ci.yml +24 -42
- package/.vscode/settings.json +0 -30
- package/CHANGELOG +16 -0
- package/artifacts/playwright-report/index.html +85 -0
- package/package.json +29 -26
- package/src/components/AppBasePage.vue +3 -8
- package/src/components/AppCompAudio.vue +3 -3
- package/src/components/AppCompBranchButtons.vue +6 -3
- package/src/components/AppCompInputCheckBoxNx.vue +2 -1
- package/src/components/AppCompInputDropdownNx.vue +5 -5
- package/src/components/AppCompInputRadioNx.vue +2 -1
- package/src/components/AppCompInputTextNx.vue +0 -2
- package/src/components/AppCompInputTextTableNx.vue +4 -4
- package/src/components/AppCompInputTextToFillDropdownNx.vue +4 -6
- package/src/components/AppCompInputTextToFillNx.vue +1 -24
- package/src/components/AppCompNoteCredit.vue +9 -7
- package/src/components/AppCompPlayBarNext.vue +17 -11
- package/src/components/AppCompQuizRecall.vue +10 -6
- package/src/components/AppCompVideoPlayer.vue +2 -1
- package/src/main.js +20 -6
- package/src/plugins/i18n.js +8 -7
- package/tests/mocks/routes.mock.js +2 -0
- package/tests/unit/AppCompAudio.spec.js +139 -0
- package/tests/unit/AppCompBranchButtons.spec.js +172 -0
- package/tests/unit/AppCompCarousel.spec.js +62 -0
- package/tests/unit/AppCompNoteCredit.spec.js +49 -0
- package/tests/unit/AppCompVideoPlayer.spec.js +97 -102
- package/tests/unit/useQuiz.spec.js +72 -0
- package/tests/utility/colors.js +10 -0
- package/vitest.config.js +49 -23
- package/vitest.setup.js +70 -1
- package/junit-report.xml +0 -182
- package/tests/unit/AppCompQuizNext.spec.js +0 -114
package/.gitlab-ci.yml
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
image: node:
|
|
1
|
+
image: node:22
|
|
2
2
|
|
|
3
3
|
stages:
|
|
4
4
|
- install
|
|
@@ -18,11 +18,11 @@ cache:
|
|
|
18
18
|
# Global variables to ensure clean clones and token-based authentication
|
|
19
19
|
variables:
|
|
20
20
|
GIT_STRATEGY: clone
|
|
21
|
-
GIT_CHECKOUT:
|
|
21
|
+
GIT_CHECKOUT: "true"
|
|
22
22
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
23
23
|
GIT_DEPTH: 1 # Faster, shallow clone
|
|
24
|
-
GIT_SSL_NO_VERIFY:
|
|
25
|
-
NPM_TOKEN:
|
|
24
|
+
GIT_SSL_NO_VERIFY: "true" # Optional: if your GitLab server uses self-signed SSL
|
|
25
|
+
NPM_TOKEN: "$NPM_ACCESS_KEY" # hold value of Auth key for npm access
|
|
26
26
|
|
|
27
27
|
# Install stage
|
|
28
28
|
install_dependencies:
|
|
@@ -38,33 +38,36 @@ lint_code:
|
|
|
38
38
|
script:
|
|
39
39
|
- npm run lintfix # Run configured linting script
|
|
40
40
|
|
|
41
|
-
|
|
42
41
|
#unit-test stage
|
|
43
42
|
run_tests_unit:
|
|
44
43
|
stage: test
|
|
44
|
+
dependencies:
|
|
45
|
+
- install_dependencies
|
|
45
46
|
script:
|
|
46
47
|
- echo "🏃 Running tests..."
|
|
47
|
-
- npm run test:unit -- --
|
|
48
|
+
- npm run test:unit:coverage -- --reporter=junit --outputFile=junit-report.xml
|
|
48
49
|
artifacts:
|
|
49
50
|
when: always
|
|
50
|
-
reports:
|
|
51
|
+
reports:
|
|
51
52
|
junit: junit-report.xml
|
|
52
53
|
coverage_report:
|
|
53
54
|
coverage_format: cobertura
|
|
54
|
-
path: coverage/cobertura-
|
|
55
|
+
path: coverage/cobertura-coverage.xml
|
|
55
56
|
paths:
|
|
56
57
|
- junit-report.xml
|
|
57
58
|
- coverage/
|
|
59
|
+
coverage: '/All files\s*\|\s*([\d\.]+)/' # regex to extract coverage percentage
|
|
58
60
|
allow_failure: true
|
|
59
61
|
|
|
60
|
-
|
|
61
62
|
#Components-test stage with playwright
|
|
62
63
|
run_components_test:
|
|
63
64
|
stage: test
|
|
64
65
|
image: mcr.microsoft.com/playwright:v1.48.0-jammy
|
|
66
|
+
dependencies:
|
|
67
|
+
- install_dependencies
|
|
65
68
|
script:
|
|
66
69
|
- echo "🏃 Running Components tests..."
|
|
67
|
-
- npx playwright
|
|
70
|
+
- npx playwright install
|
|
68
71
|
- npm run test-ct
|
|
69
72
|
- mkdir -p artifacts
|
|
70
73
|
- cp -r playwright-report artifacts/playwright-report || true
|
|
@@ -78,47 +81,26 @@ run_components_test:
|
|
|
78
81
|
- artifacts/results.xml
|
|
79
82
|
allow_failure: true
|
|
80
83
|
|
|
81
|
-
# # unit-test stage
|
|
82
|
-
# build_app:
|
|
83
|
-
# stage: build
|
|
84
|
-
# script:
|
|
85
|
-
# - echo "🏃 Building app..."
|
|
86
|
-
# - npm run build # build the App
|
|
87
|
-
# artifacts:
|
|
88
|
-
# paths:
|
|
89
|
-
# - dist/
|
|
90
|
-
|
|
91
|
-
# run job for publication on Gitlab Pages
|
|
92
|
-
# pages:
|
|
93
|
-
# stage: deploy
|
|
94
|
-
# image: alpine:latest # smaller docker image
|
|
95
|
-
# needs: ['build_app', 'run_components_test']
|
|
96
|
-
# script:
|
|
97
|
-
# - echo "🏃 Deploying for production"
|
|
98
|
-
# - mkdir -p public
|
|
99
|
-
# - cp -r dist/. public/
|
|
100
|
-
# - if [ -d "public/dist" ]; then mv public/dist/* public/ && rm -r public/dist; fi
|
|
101
|
-
# artifacts:
|
|
102
|
-
# paths:
|
|
103
|
-
# - public
|
|
104
|
-
# environment:
|
|
105
|
-
# name: production/pages
|
|
106
|
-
# url: $CI_PAGES_URL # url is handle by Gitlab
|
|
107
|
-
# rules:
|
|
108
|
-
# - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Deploy only from the default branch (e.g., main)
|
|
109
|
-
|
|
110
84
|
#Deploy to npm
|
|
111
85
|
publish_to_npm:
|
|
112
86
|
stage: deploy
|
|
113
|
-
#image: node:
|
|
87
|
+
#image: node:22
|
|
114
88
|
script:
|
|
89
|
+
# Get version from package.json
|
|
90
|
+
- VERSION=$(node -p "require('./package.json').version")
|
|
91
|
+
- echo "Detected version => $VERSION"
|
|
92
|
+
# Set the right tag (next or latest) according to version
|
|
93
|
+
- if [[ "$VERSION" == *beta* ]]; then TAG="next"; else TAG="latest"; fi
|
|
94
|
+
- echo "Using dist-tag => $TAG"
|
|
115
95
|
- echo " //registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
|
|
116
|
-
- echo "👀 Check token - ${
|
|
96
|
+
- echo "👀 Check token - ${NPM_TOKEN} "
|
|
117
97
|
- cat ~/.npmrc
|
|
118
98
|
- npm whoami || true
|
|
119
99
|
- echo "🚀 Publishing package version from tag $CI_COMMIT_TAG"
|
|
120
|
-
- npm publish --access public # scoped of publication (public)
|
|
100
|
+
- npm publish --access public --tag "$TAG" # scoped of publication (public)
|
|
121
101
|
when: on_success
|
|
122
102
|
rules:
|
|
123
103
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH # Deploy only from the default branch (e.g., main)
|
|
104
|
+
changes:
|
|
105
|
+
- package.json # run job only when package.json is modified
|
|
124
106
|
|
package/.vscode/settings.json
CHANGED
|
@@ -12,35 +12,5 @@
|
|
|
12
12
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
13
13
|
"[vue]": {
|
|
14
14
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
15
|
-
},
|
|
16
|
-
"workbench.colorCustomizations": {
|
|
17
|
-
"[Material Theme Darker]": {
|
|
18
|
-
"activityBar.activeBorder": "#2979FF",
|
|
19
|
-
"activityBarBadge.background": "#2979FF",
|
|
20
|
-
"breadcrumb.activeSelectionForeground": "#2979FF",
|
|
21
|
-
"editor.findMatchBorder": "#2979FF",
|
|
22
|
-
"editorSuggestWidget.highlightForeground": "#2979FF",
|
|
23
|
-
"editorWidget.border": "#2979FF",
|
|
24
|
-
"editorWidget.resizeBorder": "#2979FF",
|
|
25
|
-
"list.activeSelectionForeground": "#2979FF",
|
|
26
|
-
"list.highlightForeground": "#2979FF",
|
|
27
|
-
"list.inactiveSelectionForeground": "#2979FF",
|
|
28
|
-
"menu.selectionForeground": "#2979FF",
|
|
29
|
-
"menubar.selectionForeground": "#2979FF",
|
|
30
|
-
"notificationLink.foreground": "#2979FF",
|
|
31
|
-
"panelTitle.activeBorder": "#2979FF",
|
|
32
|
-
"pickerGroup.foreground": "#2979FF",
|
|
33
|
-
"progressBar.background": "#2979FF",
|
|
34
|
-
"scrollbarSlider.activeBackground": "#2979FF50",
|
|
35
|
-
"selection.background": "#2979FF40",
|
|
36
|
-
"settings.headerForeground": "#2979FF",
|
|
37
|
-
"settings.modifiedItemIndicator": "#2979FF",
|
|
38
|
-
"statusBarItem.remoteBackground": "#2979FF",
|
|
39
|
-
"tab.activeBorder": "#2979FF",
|
|
40
|
-
"textLink.foreground": "#2979FF"
|
|
41
|
-
},
|
|
42
|
-
"activityBar.background": "#113505",
|
|
43
|
-
"titleBar.activeBackground": "#184A07",
|
|
44
|
-
"titleBar.activeForeground": "#F3FEEF"
|
|
45
15
|
}
|
|
46
16
|
}
|
package/CHANGELOG
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
2.2.0-beta.2(8 janvier 2026)
|
|
2
|
+
Correction du comportement de la playbar du lecteur vidéo (elle reste toujours visible, sauf en plein écran)
|
|
3
|
+
|
|
4
|
+
Correction de l’affichage du contenu de la section info (notes et sources) quand il n’y a que des notes ou que des sources
|
|
5
|
+
|
|
6
|
+
Correction du rappel de réponse ("skeleton" qui restait bloqué)
|
|
7
|
+
|
|
8
|
+
2.2.0-beta.1(19 décembre 2025) ***Changements majeurs*** main.js et i18n.js doivent être remplacés dans vos cours
|
|
9
|
+
Correction texte troué et texte troué listes déroulantes (fin de texte manquante)
|
|
10
|
+
|
|
11
|
+
Correction de l’affichage des vidéos en plein écran
|
|
12
|
+
|
|
13
|
+
Correction de l’affichage de la barre de lecture des vidéos
|
|
14
|
+
|
|
15
|
+
Correction de l’icône triangle des listes déroulantes
|
|
16
|
+
|
|
1
17
|
2.1.0(24 novembre 2025)
|
|
2
18
|
Correction de 2.1.0-beta.10 à 2.1.0-beta.1
|
|
3
19
|
|