fcad-core-dragon 2.1.2 → 2.2.0-beta.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/.gitlab-ci.yml CHANGED
@@ -1,4 +1,4 @@
1
- image: node:lts
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: 'true'
21
+ GIT_CHECKOUT: "true"
22
22
  GIT_SUBMODULE_STRATEGY: recursive
23
23
  GIT_DEPTH: 1 # Faster, shallow clone
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
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 -- --run --reporter=junit --outputFile=junit-report.xml
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-corage.xml
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 show-report
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:20
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 - ${NPM_TOKEM} "
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
 
@@ -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,12 @@
1
+ 2.2.0-beta.1(19 décembre 2025) ***Changements majeurs*** main.js et i18n.js doivent être remplacés dans vos cours
2
+ Correction texte troué et texte troué listes déroulantes (fin de texte manquante)
3
+
4
+ Correction de l’affichage des vidéos en plein écran
5
+
6
+ Correction de l’affichage de la barre de lecture des vidéos
7
+
8
+ Correction de l’icône triangle des listes déroulantes
9
+
1
10
  2.1.0(24 novembre 2025)
2
11
  Correction de 2.1.0-beta.10 à 2.1.0-beta.1
3
12