File tree 5 files changed +77
-15
lines changed
api/src/devcomp/infrastructure/datasources/learning-content/modules
components/module/element
5 files changed +77
-15
lines changed Original file line number Diff line number Diff line change 61
61
}
62
62
]
63
63
},
64
+ {
65
+ "id" : " 0d4ef09a-ebb8-4514-a037-8fb22e540d7d" ,
66
+ "type" : " lesson" ,
67
+ "title" : " test web component" ,
68
+ "components" : [
69
+ {
70
+ "type" : " element" ,
71
+ "element" : {
72
+ "id" : " 96e2457d-54d3-461a-97e4-69180a30bfb7" ,
73
+ "type" : " text" ,
74
+ "content" : " <p>Voici un web component</p>"
75
+ }
76
+ },
77
+ {
78
+ "type" : " element" ,
79
+ "element" : {
80
+ "id" : " cfec5a0e-2ed5-462f-8974-e5ca25faae39" ,
81
+ "type" : " custom" ,
82
+ "tagName" : " cartes-a-retourner" ,
83
+ "props" : {
84
+ "cardsPerLine" : 4 ,
85
+ "cards" : [
86
+ {
87
+ "frontImageUrl" : " https://i.imgur.com/ynIpt6T.png" ,
88
+ "backImageUrl" : " https://i.imgur.com/prjj6bH.png"
89
+ },
90
+ {
91
+ "frontImageUrl" : " https://i.imgur.com/Gcy9yUl.png" ,
92
+ "backImageUrl" : " https://i.imgur.com/HVZcy58.png"
93
+ },
94
+ {
95
+ "frontImageUrl" : " https://i.imgur.com/k2istl3.png" ,
96
+ "backImageUrl" : " https://i.imgur.com/ww44Phm.png"
97
+ },
98
+ {
99
+ "frontImageUrl" : " https://i.imgur.com/6MLS2tU.png" ,
100
+ "backImageUrl" : " https://i.imgur.com/chQSy0B.png"
101
+ }
102
+ ]
103
+ }
104
+ }
105
+ }
106
+ ]
107
+ },
64
108
{
65
109
"id" : " 0d4ef09a-ebb8-4514-a037-8fb22e540d7c" ,
66
110
"type" : " discovery" ,
Original file line number Diff line number Diff line change 1
1
import './deprecation-workflow' ;
2
- import '@1024pix/web -components' ;
2
+ import '@1024pix/epreuves -components' ;
3
3
4
4
import Application from '@ember/application' ;
5
5
import { init as initSentry } from '@sentry/ember' ;
Original file line number Diff line number Diff line change 1
- import { on } from ' @ember/modifier' ;
2
1
import { action } from ' @ember/object' ;
3
- import { eq } from ' ember-truth-helpers ' ;
2
+ import { element } from ' ember-element-helper ' ;
4
3
5
4
import ModuleElement from ' ./module-element' ;
6
5
@@ -16,9 +15,9 @@ export default class ModulixWebComponent extends ModuleElement {
16
15
<template >
17
16
<div class =" element-webcomponent" >
18
17
<div class =" element-webcomponent__container" >
19
- {{#if ( eq @ component.tagName " qcu-image " ) }}
20
- <qcu-image props ={{@ component.props }} />
21
- {{/if }}
18
+ {{#let ( element @ component.tagName) as | Tag | }}
19
+ <Tag props ={{@ component.props }} />
20
+ {{/let }}
22
21
</div >
23
22
</div >
24
23
</template >
Original file line number Diff line number Diff line change 46
46
"@1024pix/ember-api-actions" : " ^1.1.0" ,
47
47
"@1024pix/ember-matomo-tag-manager" : " ^2.4.3" ,
48
48
"@1024pix/ember-testing-library" : " ^3.0.6" ,
49
+ "@1024pix/epreuves-components" : " ^0.1.0" ,
49
50
"@1024pix/eslint-plugin" : " ^2.1.1" ,
50
51
"@1024pix/pix-ui" : " ^55.6.0" ,
51
52
"@1024pix/stylelint-config" : " ^5.1.28" ,
52
- "@1024pix/web-components" : " ^0.2.7" ,
53
53
"@babel/eslint-parser" : " ^7.25.1" ,
54
54
"@babel/plugin-proposal-decorators" : " ^7.24.7" ,
55
55
"@ember-data/json-api" : " ^5.3.8" ,
85
85
"ember-cookies" : " ^1.0.0" ,
86
86
"ember-data" : " ^5.3.8" ,
87
87
"ember-dayjs" : " ^0.12.0" ,
88
+ "ember-element-helper" : " ^0.8.6" ,
88
89
"ember-eslint-parser" : " ^0.5.0" ,
89
90
"ember-exam" : " ^9.0.0" ,
90
91
"ember-fetch" : " ^8.1.2" ,
You can’t perform that action at this time.
0 commit comments