@coorpacademy/components 10.0.40 → 10.0.44-alpha.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.
Files changed (233) hide show
  1. package/es/atom/input-checkbox/index.js +16 -5
  2. package/es/atom/input-checkbox/index.js.map +1 -1
  3. package/es/atom/input-checkbox/style.css +54 -25
  4. package/es/{template/back-office/brand-update/test/fixtures/home.js → atom/input-checkbox/test/fixtures/checked-disabled.js} +3 -5
  5. package/es/atom/input-checkbox/test/fixtures/checked-disabled.js.map +1 -0
  6. package/es/atom/input-checkbox/test/fixtures.js +2 -0
  7. package/es/atom/input-checkbox/test/fixtures.js.map +1 -1
  8. package/es/atom/title/index.js +28 -4
  9. package/es/atom/title/index.js.map +1 -1
  10. package/es/atom/title/style.css +24 -2
  11. package/es/atom/title/test/fixtures/form-group-title-without-subtitle.js +7 -0
  12. package/es/atom/title/test/fixtures/form-group-title-without-subtitle.js.map +1 -0
  13. package/es/atom/title/test/fixtures/form-group-title.js +8 -0
  14. package/es/atom/title/test/fixtures/form-group-title.js.map +1 -0
  15. package/es/atom/title/test/fixtures/{fixture.js → page-title.js} +2 -1
  16. package/es/atom/title/test/fixtures/page-title.js.map +1 -0
  17. package/es/atom/title/test/fixtures.js +6 -2
  18. package/es/atom/title/test/fixtures.js.map +1 -1
  19. package/es/molecule/add-to-my-list/test/fixtures.js +15 -0
  20. package/es/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  21. package/es/molecule/brand-form-group/index.js +17 -3
  22. package/es/molecule/brand-form-group/index.js.map +1 -1
  23. package/es/molecule/brand-form-group/style.css +38 -22
  24. package/es/molecule/brand-tabs/test/fixtures.js +2 -0
  25. package/es/molecule/brand-tabs/test/fixtures.js.map +1 -1
  26. package/es/molecule/coorp-manager-roles/index.js +31 -0
  27. package/es/molecule/coorp-manager-roles/index.js.map +1 -0
  28. package/es/molecule/coorp-manager-roles/style.css +38 -0
  29. package/es/molecule/coorp-manager-roles/test/default.js +23 -0
  30. package/es/molecule/coorp-manager-roles/test/default.js.map +1 -0
  31. package/es/molecule/coorp-manager-roles/test/fixtures.js +11 -0
  32. package/es/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  33. package/es/molecule/discipline-scope/test/fixtures.js +6 -0
  34. package/es/molecule/discipline-scope/test/fixtures.js.map +1 -1
  35. package/es/molecule/popin/index.js +1 -1
  36. package/es/molecule/popin/index.js.map +1 -1
  37. package/es/molecule/popin/style.css +5 -0
  38. package/es/molecule/popin/test/fixtures.js +21 -0
  39. package/es/molecule/popin/test/fixtures.js.map +1 -0
  40. package/es/molecule/quick-access-card/index.js +9 -7
  41. package/es/molecule/quick-access-card/index.js.map +1 -1
  42. package/es/molecule/quick-access-card/style.css +20 -7
  43. package/es/molecule/quick-access-card/test/fixtures/analytics.js +1 -1
  44. package/es/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -1
  45. package/es/molecule/quick-access-card/test/fixtures/default.js +1 -1
  46. package/es/molecule/quick-access-card/test/fixtures/default.js.map +1 -1
  47. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js +1 -1
  48. package/es/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -1
  49. package/es/molecule/quick-access-card/test/fixtures/massive-battle.js +9 -0
  50. package/es/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -0
  51. package/es/molecule/quick-access-card/test/fixtures/upload-users.js +1 -1
  52. package/es/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -1
  53. package/es/molecule/quick-access-card/test/fixtures.js +21 -0
  54. package/es/molecule/quick-access-card/test/fixtures.js.map +1 -0
  55. package/es/molecule/quick-access-cards-group/index.js +35 -0
  56. package/es/molecule/quick-access-cards-group/index.js.map +1 -0
  57. package/es/molecule/quick-access-cards-group/style.css +38 -0
  58. package/es/molecule/quick-access-cards-group/test/fixtures/default.js +12 -0
  59. package/es/molecule/quick-access-cards-group/test/fixtures/default.js.map +1 -0
  60. package/es/molecule/quick-access-cards-group/test/fixtures/loading.js +7 -0
  61. package/es/molecule/quick-access-cards-group/test/fixtures/loading.js.map +1 -0
  62. package/es/molecule/quick-access-cards-group/test/fixtures/one-card.js +8 -0
  63. package/es/molecule/quick-access-cards-group/test/fixtures/one-card.js.map +1 -0
  64. package/es/molecule/quick-access-cards-group/test/fixtures/three-cards.js +10 -0
  65. package/es/molecule/quick-access-cards-group/test/fixtures/three-cards.js.map +1 -0
  66. package/es/molecule/quick-access-cards-group/test/fixtures/two-cards.js +9 -0
  67. package/es/molecule/quick-access-cards-group/test/fixtures/two-cards.js.map +1 -0
  68. package/es/molecule/quick-access-cards-group/test/fixtures.js +21 -0
  69. package/es/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  70. package/es/molecule/scope-content/test/fixtures.js +6 -0
  71. package/es/molecule/scope-content/test/fixtures.js.map +1 -1
  72. package/es/organism/accordion/coorp-manager/part/test/fixtures/defaut.js +10 -1
  73. package/es/organism/accordion/coorp-manager/part/test/fixtures/defaut.js.map +1 -1
  74. package/es/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js +11 -0
  75. package/es/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js.map +1 -0
  76. package/es/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js +11 -0
  77. package/es/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js.map +1 -0
  78. package/es/organism/accordion/coorp-manager/part/test/fixtures.js +17 -0
  79. package/es/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  80. package/es/organism/accordion/coorp-manager/test/fixtures.js +13 -0
  81. package/es/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  82. package/es/organism/brand-analytics/test/fixtures.js +23 -0
  83. package/es/organism/brand-analytics/test/fixtures.js.map +1 -0
  84. package/es/organism/brand-dashboard/index.js +25 -7
  85. package/es/organism/brand-dashboard/index.js.map +1 -1
  86. package/es/organism/brand-dashboard/style.css +17 -20
  87. package/es/organism/brand-dashboard/test/fixtures/default.js +9 -1
  88. package/es/organism/brand-dashboard/test/fixtures/default.js.map +1 -1
  89. package/es/organism/brand-dashboard/test/fixtures/three-cards.js +14 -0
  90. package/es/organism/brand-dashboard/test/fixtures/three-cards.js.map +1 -0
  91. package/es/organism/brand-dashboard/test/fixtures.js +15 -0
  92. package/es/organism/brand-dashboard/test/fixtures.js.map +1 -0
  93. package/es/organism/brand-form/style.css +1 -0
  94. package/es/organism/brand-form/test/fixtures/manageusers-edit.js +64 -22
  95. package/es/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
  96. package/es/organism/mooc-header/test/fixtures.js +6 -0
  97. package/es/organism/mooc-header/test/fixtures.js.map +1 -1
  98. package/es/template/app-player/player/test/fixtures.js +2 -0
  99. package/es/template/app-player/player/test/fixtures.js.map +1 -1
  100. package/es/template/back-office/brand-update/index.js +1 -1
  101. package/es/template/back-office/brand-update/index.js.map +1 -1
  102. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +17 -0
  103. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -0
  104. package/es/template/back-office/brand-update/test/fixtures.js +4 -0
  105. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  106. package/es/template/common/discipline/test/fixtures.js +10 -0
  107. package/es/template/common/discipline/test/fixtures.js.map +1 -1
  108. package/es/template/teams-dashboard/test/fixtures.js +2 -0
  109. package/es/template/teams-dashboard/test/fixtures.js.map +1 -1
  110. package/es/variables/colors.css +6 -1
  111. package/lib/atom/input-checkbox/index.js +18 -5
  112. package/lib/atom/input-checkbox/index.js.map +1 -1
  113. package/lib/atom/input-checkbox/style.css +54 -25
  114. package/lib/{template/back-office/brand-update/test/fixtures/home.js → atom/input-checkbox/test/fixtures/checked-disabled.js} +3 -5
  115. package/lib/atom/input-checkbox/test/fixtures/checked-disabled.js.map +1 -0
  116. package/lib/atom/input-checkbox/test/fixtures.js +3 -0
  117. package/lib/atom/input-checkbox/test/fixtures.js.map +1 -1
  118. package/lib/atom/title/index.js +28 -4
  119. package/lib/atom/title/index.js.map +1 -1
  120. package/lib/atom/title/style.css +24 -2
  121. package/lib/atom/title/test/fixtures/form-group-title-without-subtitle.js +12 -0
  122. package/lib/atom/title/test/fixtures/form-group-title-without-subtitle.js.map +1 -0
  123. package/lib/atom/title/test/fixtures/form-group-title.js +13 -0
  124. package/lib/atom/title/test/fixtures/form-group-title.js.map +1 -0
  125. package/lib/atom/title/test/fixtures/{fixture.js → page-title.js} +2 -1
  126. package/lib/atom/title/test/fixtures/page-title.js.map +1 -0
  127. package/lib/atom/title/test/fixtures.js +8 -2
  128. package/lib/atom/title/test/fixtures.js.map +1 -1
  129. package/lib/molecule/add-to-my-list/test/fixtures.js +25 -0
  130. package/lib/molecule/add-to-my-list/test/fixtures.js.map +1 -0
  131. package/lib/molecule/brand-form-group/index.js +20 -3
  132. package/lib/molecule/brand-form-group/index.js.map +1 -1
  133. package/lib/molecule/brand-form-group/style.css +38 -22
  134. package/lib/molecule/brand-tabs/test/fixtures.js +3 -0
  135. package/lib/molecule/brand-tabs/test/fixtures.js.map +1 -1
  136. package/lib/molecule/coorp-manager-roles/index.js +42 -0
  137. package/lib/molecule/coorp-manager-roles/index.js.map +1 -0
  138. package/lib/molecule/coorp-manager-roles/style.css +38 -0
  139. package/lib/molecule/coorp-manager-roles/test/default.js +28 -0
  140. package/lib/molecule/coorp-manager-roles/test/default.js.map +1 -0
  141. package/lib/molecule/coorp-manager-roles/test/fixtures.js +19 -0
  142. package/lib/molecule/coorp-manager-roles/test/fixtures.js.map +1 -0
  143. package/lib/molecule/discipline-scope/test/fixtures.js +9 -0
  144. package/lib/molecule/discipline-scope/test/fixtures.js.map +1 -1
  145. package/lib/molecule/popin/index.js +1 -1
  146. package/lib/molecule/popin/index.js.map +1 -1
  147. package/lib/molecule/popin/style.css +5 -0
  148. package/lib/molecule/popin/test/fixtures.js +34 -0
  149. package/lib/molecule/popin/test/fixtures.js.map +1 -0
  150. package/lib/molecule/quick-access-card/index.js +9 -11
  151. package/lib/molecule/quick-access-card/index.js.map +1 -1
  152. package/lib/molecule/quick-access-card/style.css +20 -7
  153. package/lib/molecule/quick-access-card/test/fixtures/analytics.js +1 -1
  154. package/lib/molecule/quick-access-card/test/fixtures/analytics.js.map +1 -1
  155. package/lib/molecule/quick-access-card/test/fixtures/default.js +1 -1
  156. package/lib/molecule/quick-access-card/test/fixtures/default.js.map +1 -1
  157. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js +1 -1
  158. package/lib/molecule/quick-access-card/test/fixtures/look-and-feel.js.map +1 -1
  159. package/lib/molecule/quick-access-card/test/fixtures/massive-battle.js +14 -0
  160. package/lib/molecule/quick-access-card/test/fixtures/massive-battle.js.map +1 -0
  161. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js +1 -1
  162. package/lib/molecule/quick-access-card/test/fixtures/upload-users.js.map +1 -1
  163. package/lib/molecule/quick-access-card/test/fixtures.js +34 -0
  164. package/lib/molecule/quick-access-card/test/fixtures.js.map +1 -0
  165. package/lib/molecule/quick-access-cards-group/index.js +47 -0
  166. package/lib/molecule/quick-access-cards-group/index.js.map +1 -0
  167. package/lib/molecule/quick-access-cards-group/style.css +38 -0
  168. package/lib/molecule/quick-access-cards-group/test/fixtures/default.js +25 -0
  169. package/lib/molecule/quick-access-cards-group/test/fixtures/default.js.map +1 -0
  170. package/lib/molecule/quick-access-cards-group/test/fixtures/loading.js +12 -0
  171. package/lib/molecule/quick-access-cards-group/test/fixtures/loading.js.map +1 -0
  172. package/lib/molecule/quick-access-cards-group/test/fixtures/one-card.js +17 -0
  173. package/lib/molecule/quick-access-cards-group/test/fixtures/one-card.js.map +1 -0
  174. package/lib/molecule/quick-access-cards-group/test/fixtures/three-cards.js +21 -0
  175. package/lib/molecule/quick-access-cards-group/test/fixtures/three-cards.js.map +1 -0
  176. package/lib/molecule/quick-access-cards-group/test/fixtures/two-cards.js +19 -0
  177. package/lib/molecule/quick-access-cards-group/test/fixtures/two-cards.js.map +1 -0
  178. package/lib/molecule/quick-access-cards-group/test/fixtures.js +34 -0
  179. package/lib/molecule/quick-access-cards-group/test/fixtures.js.map +1 -0
  180. package/lib/molecule/scope-content/test/fixtures.js +9 -0
  181. package/lib/molecule/scope-content/test/fixtures.js.map +1 -1
  182. package/lib/organism/accordion/coorp-manager/part/test/fixtures/defaut.js +10 -1
  183. package/lib/organism/accordion/coorp-manager/part/test/fixtures/defaut.js.map +1 -1
  184. package/lib/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js +16 -0
  185. package/lib/organism/accordion/coorp-manager/part/test/fixtures/icon-link.js.map +1 -0
  186. package/lib/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js +16 -0
  187. package/lib/organism/accordion/coorp-manager/part/test/fixtures/simpletab.js.map +1 -0
  188. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js +28 -0
  189. package/lib/organism/accordion/coorp-manager/part/test/fixtures.js.map +1 -0
  190. package/lib/organism/accordion/coorp-manager/test/fixtures.js +22 -0
  191. package/lib/organism/accordion/coorp-manager/test/fixtures.js.map +1 -0
  192. package/lib/organism/brand-analytics/test/fixtures.js +37 -0
  193. package/lib/organism/brand-analytics/test/fixtures.js.map +1 -0
  194. package/lib/organism/brand-dashboard/index.js +27 -7
  195. package/lib/organism/brand-dashboard/index.js.map +1 -1
  196. package/lib/organism/brand-dashboard/style.css +17 -20
  197. package/lib/organism/brand-dashboard/test/fixtures/default.js +13 -1
  198. package/lib/organism/brand-dashboard/test/fixtures/default.js.map +1 -1
  199. package/lib/organism/brand-dashboard/test/fixtures/three-cards.js +23 -0
  200. package/lib/organism/brand-dashboard/test/fixtures/three-cards.js.map +1 -0
  201. package/lib/organism/brand-dashboard/test/fixtures.js +25 -0
  202. package/lib/organism/brand-dashboard/test/fixtures.js.map +1 -0
  203. package/lib/organism/brand-form/style.css +1 -0
  204. package/lib/organism/brand-form/test/fixtures/manageusers-edit.js +64 -22
  205. package/lib/organism/brand-form/test/fixtures/manageusers-edit.js.map +1 -1
  206. package/lib/organism/mooc-header/test/fixtures.js +9 -0
  207. package/lib/organism/mooc-header/test/fixtures.js.map +1 -1
  208. package/lib/template/app-player/player/test/fixtures.js +3 -0
  209. package/lib/template/app-player/player/test/fixtures.js.map +1 -1
  210. package/lib/template/back-office/brand-update/index.js +1 -1
  211. package/lib/template/back-office/brand-update/index.js.map +1 -1
  212. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +27 -0
  213. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -0
  214. package/lib/template/back-office/brand-update/test/fixtures.js +6 -0
  215. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  216. package/lib/template/common/discipline/test/fixtures.js +15 -0
  217. package/lib/template/common/discipline/test/fixtures.js.map +1 -1
  218. package/lib/template/teams-dashboard/test/fixtures.js +3 -0
  219. package/lib/template/teams-dashboard/test/fixtures.js.map +1 -1
  220. package/lib/variables/colors.css +6 -1
  221. package/package.json +3 -3
  222. package/es/atom/title/test/fixtures/fixture.js.map +0 -1
  223. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  224. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  225. package/es/molecule/quick-access-card/test/fixtures/manage-email.js +0 -9
  226. package/es/molecule/quick-access-card/test/fixtures/manage-email.js.map +0 -1
  227. package/es/template/back-office/brand-update/test/fixtures/home.js.map +0 -1
  228. package/lib/atom/title/test/fixtures/fixture.js.map +0 -1
  229. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  230. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  231. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js +0 -14
  232. package/lib/molecule/quick-access-card/test/fixtures/manage-email.js.map +0 -1
  233. package/lib/template/back-office/brand-update/test/fixtures/home.js.map +0 -1
@@ -0,0 +1,15 @@
1
+ import test from 'ava';
2
+ import forEach from 'lodash/forEach';
3
+ import renderComponentMacro from '../../../test/helpers/render-component';
4
+ import OrganismBrandDashboard from '..';
5
+ import fixtureDefault from './fixtures/default';
6
+ import fixtureThreeCards from './fixtures/three-cards';
7
+ test('Organism › OrganismBrandDashboard > should have valid propTypes', t => {
8
+ t.pass();
9
+ forEach(OrganismBrandDashboard.propTypes, (value, key) => {
10
+ t.not(value, undefined, `PropType for "Organism.OrganismBrandDashboard.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
+ });
12
+ });
13
+ test('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);
14
+ test('Organism › OrganismBrandDashboard › ThreeCards › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureThreeCards);
15
+ //# sourceMappingURL=fixtures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/organism/brand-dashboard/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismBrandDashboard","fixtureDefault","fixtureThreeCards","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AAEAL,IAAI,CAAC,iEAAD,EAAoEM,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,sBAAsB,CAACK,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,sBAA3F,EAAmHC,cAAnH,CAAJ;AACAJ,IAAI,CAAC,qEAAD,EAAwEE,oBAAxE,EAA8FC,sBAA9F,EAAsHE,iBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismBrandDashboard from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureThreeCards from './fixtures/three-cards';\n\ntest('Organism › OrganismBrandDashboard > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismBrandDashboard.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismBrandDashboard.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismBrandDashboard › Default › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureDefault);\ntest('Organism › OrganismBrandDashboard › ThreeCards › should be rendered', renderComponentMacro, OrganismBrandDashboard, fixtureThreeCards);\n"],"file":"fixtures.js"}
@@ -2,6 +2,7 @@
2
2
  @value dark from colors;
3
3
  @value brand from colors;
4
4
  @value light from colors;
5
+ @value cm_grey_400 from colors;
5
6
 
6
7
  .back {
7
8
  margin-bottom: 30px;
@@ -58,31 +58,73 @@ export default {
58
58
  }]
59
59
  }, {
60
60
  title: 'Roles',
61
+ subtitle: 'Elit enim viverra enim, blandit turpis quam pretium id. Et, leo, amet odio proin diam sit lorem accumsan.',
62
+ fieldsLayout: 'grid',
63
+ groupLayout: 'grid',
61
64
  fields: [{
62
- type: 'checkbox',
63
- title: 'RH',
64
- checked: true
65
- }, {
66
- type: 'checkbox',
67
- title: 'CMS',
68
- checked: false
69
- }, {
70
- type: 'checkbox',
71
- title: 'Admin',
72
- checked: true
73
- }, {
74
- type: 'checkbox',
75
- title: 'Super coach'
76
- }, {
77
- type: 'checkbox',
78
- title: 'Moderator'
65
+ title: 'Coorp',
66
+ type: 'roles',
67
+ fields: [{
68
+ type: 'checkbox',
69
+ titleStyle: 'primary',
70
+ title: 'RH',
71
+ checked: true,
72
+ disabled: true
73
+ }, {
74
+ type: 'checkbox',
75
+ titleStyle: 'primary',
76
+ title: 'CMS',
77
+ checked: false
78
+ }, {
79
+ type: 'checkbox',
80
+ titleStyle: 'primary',
81
+ title: 'Admin',
82
+ checked: true
83
+ }]
79
84
  }, {
80
- type: 'checkbox',
81
- title: 'System',
82
- checked: false
85
+ title: 'Mooc',
86
+ type: 'roles',
87
+ fields: [{
88
+ type: 'checkbox',
89
+ title: 'Admin',
90
+ titleStyle: 'secondary',
91
+ checked: true
92
+ }, {
93
+ type: 'checkbox',
94
+ title: 'Super coach',
95
+ titleStyle: 'secondary',
96
+ disabled: true
97
+ }, {
98
+ type: 'checkbox',
99
+ title: 'Moderator',
100
+ titleStyle: 'secondary',
101
+ disabled: true
102
+ }, {
103
+ type: 'checkbox',
104
+ title: 'System',
105
+ titleStyle: 'secondary',
106
+ checked: false
107
+ }, {
108
+ type: 'checkbox',
109
+ title: 'Godmode',
110
+ titleStyle: 'secondary',
111
+ disabled: true,
112
+ checked: true
113
+ }]
83
114
  }, {
84
- type: 'checkbox',
85
- title: 'Godmode'
115
+ title: 'CM',
116
+ type: 'roles',
117
+ fields: [{
118
+ type: 'checkbox',
119
+ title: 'Admin',
120
+ titleStyle: 'tertiary',
121
+ checked: true
122
+ }, {
123
+ type: 'checkbox',
124
+ title: 'Super coach',
125
+ titleStyle: 'tertiary',
126
+ checked: true
127
+ }]
86
128
  }]
87
129
  }, {
88
130
  title: 'Organisation',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/organism/brand-form/test/fixtures/manageusers-edit.js"],"names":["props","groups","title","fields","type","description","onChange","options","name","value","selected","required","checked","back","desc","link","onSubmit","submitValue"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,oBADT;AAEEC,MAAAA,MAAM,EAAE,CACN;AACEC,QAAAA,IAAI,EAAE,QADR;AAEEF,QAAAA,KAAK,EAAE,QAFT;AAGEG,QAAAA,WAAW,EAAE,+BAHf;AAIEC,QAAAA,QAAQ,EAAE,MAAM,IAJlB;AAKEC,QAAAA,O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AI,EAAE,oBADF;AAEJC,MAAAA,IAAI,EAAE;AAFF,KAtID;AA0ILC,IAAAA,QAAQ,EAAE,MAAM,CAAE,CA1Ib;AA2ILC,IAAAA,WAAW,EAAE;AA3IR;AADM,CAAf","sourcesContent":["export default {\n props: {\n groups: [\n {\n title: 'Editing Foo Barbaz',\n fields: [\n {\n type: 'select',\n title: 'Status',\n description: 'Deactivation Date: 01/01/2019',\n onChange: () => true,\n options: [\n {\n name: 'active',\n value: 'active',\n selected: false\n },\n {\n name: 'inactive',\n value: 'inactive',\n selected: true\n }\n ]\n },\n {\n type: 'text',\n title: 'Name',\n required: true\n },\n {\n type: 'text',\n title: 'Last name',\n required: true\n },\n {\n type: 'text',\n title: 'Email',\n required: true\n },\n {\n type: 'text',\n title: 'Login'\n },\n {\n type: 'text',\n title: 'Provider',\n required: true\n },\n {\n type: 'select',\n title: 'Language',\n onChange: () => true,\n options: [\n {\n name: 'foo',\n value: 'A',\n selected: false\n },\n {\n name: 'bar',\n value: 'B',\n selected: true\n },\n {\n name: 'baz',\n value: 'C',\n selected: false\n }\n ]\n },\n {\n type: 'text',\n title: 'Group'\n }\n ]\n },\n {\n title: 'Roles',\n fields: [\n {\n type: 'checkbox',\n title: 'RH',\n checked: true\n },\n {\n type: 'checkbox',\n title: 'CMS',\n checked: false\n },\n {\n type: 'checkbox',\n title: 'Admin',\n checked: true\n },\n {\n type: 'checkbox',\n title: 'Super coach'\n },\n {\n type: 'checkbox',\n title: 'Moderator'\n },\n {\n type: 'checkbox',\n title: 'System',\n checked: false\n },\n {\n type: 'checkbox',\n title: 'Godmode'\n }\n ]\n },\n {\n title: 'Organisation',\n fields: [\n {\n type: 'text',\n title: 'Company'\n },\n {\n type: 'text',\n title: 'Boutique'\n },\n {\n type: 'text',\n title: 'Branch'\n },\n {\n type: 'text',\n title: 'Role'\n }\n ]\n }\n ],\n back: {\n desc: 'Back to users list',\n link: '#'\n },\n onSubmit: () => {},\n submitValue: 'Save changes'\n }\n};\n"],"file":"manageusers-edit.js"}
1
+ {"version":3,"sources":["../../../../../src/organism/brand-form/test/fixtures/manageusers-edit.js"],"names":["props","groups","title","fields","type","description","onChange","options","name","value","selected","required","subtitle","fieldsLayout","groupLayout","titleStyle","checked","disabled","back","desc","link","onSubmit","submitValue"],"mappings":"AAAA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,oBADT;AAEEC,MAAAA,MAAM,EAAE,CACN;AACEC,QAAAA,IAAI,EAAE,QADR;AAEEF,QAAAA,KAAK,EAAE,QAFT;AAGEG,QAAAA,WAAW,EAAE,+BAHf;AAIEC,QAAAA,QAAQ,EAAE,MAAM,IAJlB;AAKEC,QAAAA,OAAO,EAAE,CACP;AACEC,UAAAA,IAAI,EAAE,QADR;AAEEC,UAAAA,KAAK,EAAE,QAFT;AAGEC,UAAAA,QAAQ,EAAE;AAHZ,SADO,EAMP;AACEF,UAAAA,IAAI,EAAE,UADR;AAEEC,UAAAA,KAAK,EAAE,UAFT;AAGEC,UAAAA,QAAQ,EAAE;AAHZ,SANO;AALX,OADM,EAmBN;AACEN,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE,MAFT;AAGES,QAAAA,QAAQ,EAAE;AAHZ,OAnBM,EAwBN;AACEP,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE,WAFT;AAGES,QAAAA,QAAQ,EAAE;AAHZ,OAxBM,EA6BN;AACEP,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE,OAFT;AAGES,QAAAA,QAAQ,EAAE;AAHZ,OA7BM,EAkCN;AACEP,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE;AAFT,OAlCM,EAsCN;AACEE,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE,UAFT;AAGES,QAAAA,QAAQ,EAAE;AAHZ,OAtCM,EA2CN;AACE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AAO,EAAE;AAJX,SAPM;AAHV,OA/DM;AANV,KA1EM,EAmKN;AACEd,MAAAA,KAAK,EAAE,cADT;AAEEC,MAAAA,MAAM,EAAE,CACN;AACEC,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE;AAFT,OADM,EAKN;AACEE,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE;AAFT,OALM,EASN;AACEE,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE;AAFT,OATM,EAaN;AACEE,QAAAA,IAAI,EAAE,MADR;AAEEF,QAAAA,KAAK,EAAE;AAFT,OAbM;AAFV,KAnKM,CADH;AA0LLgB,IAAAA,IAAI,EAAE;AACJC,MAAAA,IAAI,EAAE,oBADF;AAEJC,MAAAA,IAAI,EAAE;AAFF,KA1LD;AA8LLC,IAAAA,QAAQ,EAAE,MAAM,CAAE,CA9Lb;AA+LLC,IAAAA,WAAW,EAAE;AA/LR;AADM,CAAf","sourcesContent":["export default {\n props: {\n groups: [\n {\n title: 'Editing Foo Barbaz',\n fields: [\n {\n type: 'select',\n title: 'Status',\n description: 'Deactivation Date: 01/01/2019',\n onChange: () => true,\n options: [\n {\n name: 'active',\n value: 'active',\n selected: false\n },\n {\n name: 'inactive',\n value: 'inactive',\n selected: true\n }\n ]\n },\n {\n type: 'text',\n title: 'Name',\n required: true\n },\n {\n type: 'text',\n title: 'Last name',\n required: true\n },\n {\n type: 'text',\n title: 'Email',\n required: true\n },\n {\n type: 'text',\n title: 'Login'\n },\n {\n type: 'text',\n title: 'Provider',\n required: true\n },\n {\n type: 'select',\n title: 'Language',\n onChange: () => true,\n options: [\n {\n name: 'foo',\n value: 'A',\n selected: false\n },\n {\n name: 'bar',\n value: 'B',\n selected: true\n },\n {\n name: 'baz',\n value: 'C',\n selected: false\n }\n ]\n },\n {\n type: 'text',\n title: 'Group'\n }\n ]\n },\n {\n title: 'Roles',\n subtitle:\n 'Elit enim viverra enim, blandit turpis quam pretium id. Et, leo, amet odio proin diam sit lorem accumsan.',\n fieldsLayout: 'grid',\n groupLayout: 'grid',\n fields: [\n {\n title: 'Coorp',\n type: 'roles',\n fields: [\n {\n type: 'checkbox',\n titleStyle: 'primary',\n title: 'RH',\n checked: true,\n disabled: true\n },\n {\n type: 'checkbox',\n titleStyle: 'primary',\n title: 'CMS',\n checked: false\n },\n {\n type: 'checkbox',\n titleStyle: 'primary',\n title: 'Admin',\n checked: true\n }\n ]\n },\n {\n title: 'Mooc',\n type: 'roles',\n fields: [\n {\n type: 'checkbox',\n title: 'Admin',\n titleStyle: 'secondary',\n checked: true\n },\n {\n type: 'checkbox',\n title: 'Super coach',\n titleStyle: 'secondary',\n disabled: true\n },\n {\n type: 'checkbox',\n title: 'Moderator',\n titleStyle: 'secondary',\n disabled: true\n },\n {\n type: 'checkbox',\n title: 'System',\n titleStyle: 'secondary',\n checked: false\n },\n {\n type: 'checkbox',\n title: 'Godmode',\n titleStyle: 'secondary',\n disabled: true,\n checked: true\n }\n ]\n },\n {\n title: 'CM',\n type: 'roles',\n fields: [\n {\n type: 'checkbox',\n title: 'Admin',\n titleStyle: 'tertiary',\n checked: true\n },\n {\n type: 'checkbox',\n title: 'Super coach',\n titleStyle: 'tertiary',\n checked: true\n }\n ]\n }\n ]\n },\n {\n title: 'Organisation',\n fields: [\n {\n type: 'text',\n title: 'Company'\n },\n {\n type: 'text',\n title: 'Boutique'\n },\n {\n type: 'text',\n title: 'Branch'\n },\n {\n type: 'text',\n title: 'Role'\n }\n ]\n }\n ],\n back: {\n desc: 'Back to users list',\n link: '#'\n },\n onSubmit: () => {},\n submitValue: 'Save changes'\n }\n};\n"],"file":"manageusers-edit.js"}
@@ -6,6 +6,9 @@ import fixtureDefault from './fixtures/default';
6
6
  import fixtureLinkOnly from './fixtures/link-only';
7
7
  import fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';
8
8
  import fixtureLogged from './fixtures/logged';
9
+ import fixtureMobileSmallLogoFormat from './fixtures/mobile-small-logo-format';
10
+ import fixtureMobileWideLogoFormat from './fixtures/mobile-wide-logo-format';
11
+ import fixtureOnHeaderActionHandlers from './fixtures/on-header-action-handlers';
9
12
  import fixtureTeamsFrench from './fixtures/teams-french';
10
13
  import fixtureTeams from './fixtures/teams';
11
14
  import fixtureUserChangePassword from './fixtures/user-change-password';
@@ -19,6 +22,9 @@ test('Organism › OrganismMoocHeader › Default › should be rendered', rende
19
22
  test('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);
20
23
  test('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);
21
24
  test('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);
25
+ test('Organism › OrganismMoocHeader › MobileSmallLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileSmallLogoFormat);
26
+ test('Organism › OrganismMoocHeader › MobileWideLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileWideLogoFormat);
27
+ test('Organism › OrganismMoocHeader › OnHeaderActionHandlers › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureOnHeaderActionHandlers);
22
28
  test('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);
23
29
  test('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);
24
30
  test('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","fixtureTeamsFrench","fixtureTeams","fixtureUserChangePassword","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,EAAkGC,kBAAlG,EAAsHO,yBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismMoocHeader from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLinkOnly from './fixtures/link-only';\nimport fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';\nimport fixtureLogged from './fixtures/logged';\nimport fixtureTeamsFrench from './fixtures/teams-french';\nimport fixtureTeams from './fixtures/teams';\nimport fixtureUserChangePassword from './fixtures/user-change-password';\n\ntest('Organism › OrganismMoocHeader > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismMoocHeader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismMoocHeader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismMoocHeader › Default › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureDefault);\ntest('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);\ntest('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);\ntest('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);\ntest('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);\ntest('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);\ntest('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../src/organism/mooc-header/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismMoocHeader","fixtureDefault","fixtureLinkOnly","fixtureLoggedWithBattleNotifications","fixtureLogged","fixtureMobileSmallLogoFormat","fixtureMobileWideLogoFormat","fixtureOnHeaderActionHandlers","fixtureTeamsFrench","fixtureTeams","fixtureUserChangePassword","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,kBAAP,MAA+B,IAA/B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,4BAAP,MAAyC,qCAAzC;AACA,OAAOC,2BAAP,MAAwC,oCAAxC;AACA,OAAOC,6BAAP,MAA0C,sCAA1C;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AAEAb,IAAI,CAAC,6DAAD,EAAgEc,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACAd,EAAAA,OAAO,CAACE,kBAAkB,CAACa,SAApB,EAA+B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAlB,IAAI,CAAC,8DAAD,EAAiEE,oBAAjE,EAAuFC,kBAAvF,EAA2GC,cAA3G,CAAJ;AACAJ,IAAI,CAAC,+DAAD,EAAkEE,oBAAlE,EAAwFC,kBAAxF,EAA4GE,eAA5G,CAAJ;AACAL,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,kBAA7G,EAAiIG,oCAAjI,CAAJ;AACAN,IAAI,CAAC,6DAAD,EAAgEE,oBAAhE,EAAsFC,kBAAtF,EAA0GI,aAA1G,CAAJ;AACAP,IAAI,CAAC,4EAAD,EAA+EE,oBAA/E,EAAqGC,kBAArG,EAAyHK,4BAAzH,CAAJ;AACAR,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,kBAApG,EAAwHM,2BAAxH,CAAJ;AACAT,IAAI,CAAC,6EAAD,EAAgFE,oBAAhF,EAAsGC,kBAAtG,EAA0HO,6BAA1H,CAAJ;AACAV,IAAI,CAAC,kEAAD,EAAqEE,oBAArE,EAA2FC,kBAA3F,EAA+GQ,kBAA/G,CAAJ;AACAX,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,kBAArF,EAAyGS,YAAzG,CAAJ;AACAZ,IAAI,CAAC,yEAAD,EAA4EE,oBAA5E,EAAkGC,kBAAlG,EAAsHU,yBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismMoocHeader from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLinkOnly from './fixtures/link-only';\nimport fixtureLoggedWithBattleNotifications from './fixtures/logged-with-battle-notifications';\nimport fixtureLogged from './fixtures/logged';\nimport fixtureMobileSmallLogoFormat from './fixtures/mobile-small-logo-format';\nimport fixtureMobileWideLogoFormat from './fixtures/mobile-wide-logo-format';\nimport fixtureOnHeaderActionHandlers from './fixtures/on-header-action-handlers';\nimport fixtureTeamsFrench from './fixtures/teams-french';\nimport fixtureTeams from './fixtures/teams';\nimport fixtureUserChangePassword from './fixtures/user-change-password';\n\ntest('Organism › OrganismMoocHeader > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismMoocHeader.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismMoocHeader.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismMoocHeader › Default › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureDefault);\ntest('Organism › OrganismMoocHeader › LinkOnly › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLinkOnly);\ntest('Organism › OrganismMoocHeader › LoggedWithBattleNotifications › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLoggedWithBattleNotifications);\ntest('Organism › OrganismMoocHeader › Logged › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureLogged);\ntest('Organism › OrganismMoocHeader › MobileSmallLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileSmallLogoFormat);\ntest('Organism › OrganismMoocHeader › MobileWideLogoFormat › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureMobileWideLogoFormat);\ntest('Organism › OrganismMoocHeader › OnHeaderActionHandlers › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureOnHeaderActionHandlers);\ntest('Organism › OrganismMoocHeader › TeamsFrench › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeamsFrench);\ntest('Organism › OrganismMoocHeader › Teams › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureTeams);\ntest('Organism › OrganismMoocHeader › UserChangePassword › should be rendered', renderComponentMacro, OrganismMoocHeader, fixtureUserChangePassword);\n"],"file":"fixtures.js"}
@@ -5,6 +5,7 @@ import TemplateAppPlayerPlayer from '..';
5
5
  import fixtureArabicQcm from './fixtures/arabic-qcm';
6
6
  import fixtureBackground from './fixtures/background';
7
7
  import fixtureClue from './fixtures/clue';
8
+ import fixtureContextWithAudio from './fixtures/context-with-audio';
8
9
  import fixtureContextWithImage from './fixtures/context-with-image';
9
10
  import fixtureContextWithPdf from './fixtures/context-with-pdf';
10
11
  import fixtureContextWithVideo from './fixtures/context-with-video';
@@ -32,6 +33,7 @@ test('TemplateAppPlayer › TemplateAppPlayerPlayer > should have valid propType
32
33
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ArabicQcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureArabicQcm);
33
34
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › Background › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureBackground);
34
35
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › Clue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureClue);
36
+ test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithAudio › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithAudio);
35
37
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithImage);
36
38
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithPdf › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithPdf);
37
39
  test('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithVideo › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithVideo);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/app-player/player/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateAppPlayerPlayer","fixtureArabicQcm","fixtureBackground","fixtureClue","fixtureContextWithImage","fixtureContextWithPdf","fixtureContextWithVideo","fixtureContext","fixtureDropDown","fixtureEmpty","fixtureError","fixtureFreeText","fixtureMediaImage","fixtureMediaOmniPlayer","fixtureMedia","fixtureNoClue","fixtureOnlyClue","fixtureQcmDrag","fixtureQcmGraphic","fixtureQcmShort","fixtureQcm","fixtureRange","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,uBAAP,MAAoC,IAApC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,uBAAP,MAAoC,+BAApC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;AACAvB,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4HqB,YAA5H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateAppPlayerPlayer from '..';\nimport fixtureArabicQcm from './fixtures/arabic-qcm';\nimport fixtureBackground from './fixtures/background';\nimport fixtureClue from './fixtures/clue';\nimport fixtureContextWithImage from './fixtures/context-with-image';\nimport fixtureContextWithPdf from './fixtures/context-with-pdf';\nimport fixtureContextWithVideo from './fixtures/context-with-video';\nimport fixtureContext from './fixtures/context';\nimport fixtureDropDown from './fixtures/drop-down';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureFreeText from './fixtures/free-text';\nimport fixtureMediaImage from './fixtures/media-image';\nimport fixtureMediaOmniPlayer from './fixtures/media-omni-player';\nimport fixtureMedia from './fixtures/media';\nimport fixtureNoClue from './fixtures/no-clue';\nimport fixtureOnlyClue from './fixtures/only-clue';\nimport fixtureQcmDrag from './fixtures/qcm-drag';\nimport fixtureQcmGraphic from './fixtures/qcm-graphic';\nimport fixtureQcmShort from './fixtures/qcm-short';\nimport fixtureQcm from './fixtures/qcm';\nimport fixtureRange from './fixtures/range';\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateAppPlayerPlayer.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateAppPlayer.TemplateAppPlayerPlayer.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ArabicQcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureArabicQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Background › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureBackground);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Clue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithPdf › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithPdf);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithVideo › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithVideo);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Context › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContext);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › DropDown › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureDropDown);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Empty › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureEmpty);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Error › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureError);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › FreeText › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureFreeText);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaOmniPlayer › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaOmniPlayer);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Media › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMedia);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › NoClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureNoClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › OnlyClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureOnlyClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmDrag › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmDrag);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmGraphic › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmGraphic);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmShort › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmShort);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Qcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Range › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureRange);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/app-player/player/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateAppPlayerPlayer","fixtureArabicQcm","fixtureBackground","fixtureClue","fixtureContextWithAudio","fixtureContextWithImage","fixtureContextWithPdf","fixtureContextWithVideo","fixtureContext","fixtureDropDown","fixtureEmpty","fixtureError","fixtureFreeText","fixtureMediaImage","fixtureMediaOmniPlayer","fixtureMedia","fixtureNoClue","fixtureOnlyClue","fixtureQcmDrag","fixtureQcmGraphic","fixtureQcmShort","fixtureQcm","fixtureRange","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,uBAAP,MAAoC,IAApC;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,WAAP,MAAwB,iBAAxB;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,uBAAP,MAAoC,+BAApC;AACA,OAAOC,qBAAP,MAAkC,6BAAlC;AACA,OAAOC,uBAAP,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AA/H,CAAJ;AACAvB,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,uBAAjG,EAA0HqB,UAA1H,CAAJ;AACAxB,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,uBAAnG,EAA4HsB,YAA5H,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateAppPlayerPlayer from '..';\nimport fixtureArabicQcm from './fixtures/arabic-qcm';\nimport fixtureBackground from './fixtures/background';\nimport fixtureClue from './fixtures/clue';\nimport fixtureContextWithAudio from './fixtures/context-with-audio';\nimport fixtureContextWithImage from './fixtures/context-with-image';\nimport fixtureContextWithPdf from './fixtures/context-with-pdf';\nimport fixtureContextWithVideo from './fixtures/context-with-video';\nimport fixtureContext from './fixtures/context';\nimport fixtureDropDown from './fixtures/drop-down';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureError from './fixtures/error';\nimport fixtureFreeText from './fixtures/free-text';\nimport fixtureMediaImage from './fixtures/media-image';\nimport fixtureMediaOmniPlayer from './fixtures/media-omni-player';\nimport fixtureMedia from './fixtures/media';\nimport fixtureNoClue from './fixtures/no-clue';\nimport fixtureOnlyClue from './fixtures/only-clue';\nimport fixtureQcmDrag from './fixtures/qcm-drag';\nimport fixtureQcmGraphic from './fixtures/qcm-graphic';\nimport fixtureQcmShort from './fixtures/qcm-short';\nimport fixtureQcm from './fixtures/qcm';\nimport fixtureRange from './fixtures/range';\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateAppPlayerPlayer.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateAppPlayer.TemplateAppPlayerPlayer.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ArabicQcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureArabicQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Background › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureBackground);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Clue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithAudio › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithAudio);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithPdf › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithPdf);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › ContextWithVideo › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContextWithVideo);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Context › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureContext);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › DropDown › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureDropDown);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Empty › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureEmpty);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Error › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureError);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › FreeText › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureFreeText);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaImage › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaImage);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › MediaOmniPlayer › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMediaOmniPlayer);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Media › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureMedia);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › NoClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureNoClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › OnlyClue › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureOnlyClue);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmDrag › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmDrag);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmGraphic › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmGraphic);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › QcmShort › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcmShort);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Qcm › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureQcm);\ntest('TemplateAppPlayer › TemplateAppPlayerPlayer › Range › should be rendered', renderComponentMacro, TemplateAppPlayerPlayer, fixtureRange);\n"],"file":"fixtures.js"}
@@ -186,7 +186,7 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
186
186
  type: PropTypes.oneOf(['analytics-dashboards'])
187
187
  })), PropTypes.shape(_extends(_extends({}, BrandDashboard.propTypes), {}, {
188
188
  key: PropTypes.string,
189
- type: PropTypes.oneOf(['dashoard'])
189
+ type: PropTypes.oneOf(['home'])
190
190
  }))]),
191
191
  details: PropTypes.shape(_extends(_extends({}, BrandTable.propTypes), {}, {
192
192
  key: PropTypes.string,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/template/back-office/brand-update/index.js"],"names":["React","PropTypes","map","pipe","get","isEmpty","filter","head","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","Notification","Header","Loader","Accordion","style","SubTab","title","href","selected","propTypes","string","isRequired","bool","BrandUpdate","props","notifications","header","items","content","details","onItemClick","logo","selectedTab","e","formattedTabs","key","type","index","children","iconType","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","formattedTabsViews","tab","tabs","notificationsList","notification","contentView","cont","detailsView","container","dashboardAside","contentWrapper","contentHandler","subTabs","dashboardContent","defaultProps","arrayOf","shape","oneOfType","oneOf","func"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,MAAP,MAAmB,kBAAnB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAAQC,YAAR,EAAsBC,QAAtB,QAAqC,2BAArC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,UAAP,MAAuB,+BAAvB;AACA,OAAOC,WAAP,MAAwB,gCAAxB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,YAAP,MAAyB,4BAAzB;AACA,OAAOC,MAAP,MAAmB,gCAAnB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,SAAP,MAAsB,2CAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,MAAM,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA,IAAR;AAAcC,EAAAA;AAAd,CAAD,KAA6B;AAC1C,sBAAO,gCAAKF,KAAL,CAAP;AACD,CAFD;;AAIAD,MAAM,CAACI,SAAP,2CAAmB;AACjBH,EAAAA,KAAK,EAAErB,SAAS,CAACyB,MAAV,CAAiBC,UADP;AAEjBJ,EAAAA,IAAI,EAAEtB,S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AhB2B,EAqB3BzE,SAAS,CAACuE,KAAV,uBACKzD,cAAc,CAACU,SADpB;AAEEgB,IAAAA,GAAG,EAAExC,SAAS,CAACyB,MAFjB;AAGEgB,IAAAA,IAAI,EAAEzC,SAAS,CAACyE,KAAV,CAAgB,CAAC,UAAD,CAAhB;AAHR,KArB2B,CAApB,CA5Ba;AAuDtBvC,EAAAA,OAAO,EAAElC,SAAS,CAACuE,KAAV,uBACJ5D,UAAU,CAACa,SADP;AAEPgB,IAAAA,GAAG,EAAExC,SAAS,CAACyB,MAFR;AAGPgB,IAAAA,IAAI,EAAEzC,SAAS,CAACyE,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAvDa;AA4DtBtC,EAAAA,WAAW,EAAEnC,SAAS,CAAC0E;AA5DD,CAAxB;AA+DA,eAAe9C,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport filter from 'lodash/fp/filter';\nimport head from 'lodash/fp/head';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport Notification from '../../../atom/notification';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport style from './style.css';\n\nconst SubTab = ({title, href, selected}) => {\n return <h5>{title}</h5>;\n};\n\nSubTab.propTypes = {\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired\n};\n\nconst BrandUpdate = props => {\n const {notifications, header, items, content, details, onItemClick} = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n const selectedTab = pipe(\n filter(e => e.selected),\n head,\n get('tabs'),\n filter(e => e.selected),\n head\n )(items);\n\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\n const subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.tabs}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Notification {...notification} />\n </div>\n );\n });\n\n const contentView = cont => {\n if (!cont) return <Loader />;\n const {type} = cont;\n switch (type) {\n case 'form':\n return <BrandForm {...cont} />;\n case 'list':\n return <BrandTable {...cont} />;\n case 'upload':\n return <BrandUpload {...cont} />;\n case 'dashboard':\n return <BrandAnalytics {...cont} />;\n case 'home':\n return <BrandDashboard {...cont} />;\n }\n };\n\n const detailsView = cont => {\n if (!cont) return;\n return <BrandTable {...cont} />;\n };\n\n return (\n <div className={style.container}>\n <div className={style.dashboardAside}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n <div className={style.contentWrapper}>\n <Header {...header} />\n <div className={style.notifications}>{notificationsList}</div>\n {content && content.type === 'home' ? (\n contentView(content)\n ) : (\n <div className={style.contentHandler}>\n <div className={style.contentView}>\n {selectedTab && !isEmpty(selectedTab.subTabs) ? (\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n ) : null}\n <div className={style.dashboardContent}>\n <div>{contentView(content)}</div>\n <div>{detailsView(details)}</div>\n </div>\n </div>\n </div>\n )}\n </div>\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(PropTypes.shape(Notification.propTypes)),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['dashoard'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func\n};\n\nexport default BrandUpdate;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../../src/template/back-office/brand-update/index.js"],"names":["React","PropTypes","map","pipe","get","isEmpty","filter","head","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","Notification","Header","Loader","Accordion","style","SubTab","title","href","selected","propTypes","string","isRequired","bool","BrandUpdate","props","notifications","header","items","content","details","onItemClick","logo","selectedTab","e","formattedTabs","key","type","index","children","iconType","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","formattedTabsViews","tab","tabs","notificationsList","notification","contentView","cont","detailsView","container","dashboardAside","contentWrapper","contentHandler","subTabs","dashboardContent","defaultProps","arrayOf","shape","oneOfType","oneOf","func"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,MAAP,MAAmB,kBAAnB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAAQC,YAAR,EAAsBC,QAAtB,QAAqC,2BAArC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,UAAP,MAAuB,+BAAvB;AACA,OAAOC,WAAP,MAAwB,gCAAxB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,YAAP,MAAyB,4BAAzB;AACA,OAAOC,MAAP,MAAmB,gCAAnB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,SAAP,MAAsB,2CAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,MAAM,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA,IAAR;AAAcC,EAAAA;AAAd,CAAD,KAA6B;AAC1C,sBA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V,uBACK1D,cAAc,CAACW,SADpB;AAEEgB,IAAAA,GAAG,EAAExC,SAAS,CAACyB,MAFjB;AAGEgB,IAAAA,IAAI,EAAEzC,SAAS,CAACyE,KAAV,CAAgB,CAAC,sBAAD,CAAhB;AAHR,KAhB2B,EAqB3BzE,SAAS,CAACuE,KAAV,uBACKzD,cAAc,CAACU,SADpB;AAEEgB,IAAAA,GAAG,EAAExC,SAAS,CAACyB,MAFjB;AAGEgB,IAAAA,IAAI,EAAEzC,SAAS,CAACyE,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KArB2B,CAApB,CA5Ba;AAuDtBvC,EAAAA,OAAO,EAAElC,SAAS,CAACuE,KAAV,uBACJ5D,UAAU,CAACa,SADP;AAEPgB,IAAAA,GAAG,EAAExC,SAAS,CAACyB,MAFR;AAGPgB,IAAAA,IAAI,EAAEzC,SAAS,CAACyE,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAvDa;AA4DtBtC,EAAAA,WAAW,EAAEnC,SAAS,CAAC0E;AA5DD,CAAxB;AA+DA,eAAe9C,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport filter from 'lodash/fp/filter';\nimport head from 'lodash/fp/head';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport Notification from '../../../atom/notification';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport style from './style.css';\n\nconst SubTab = ({title, href, selected}) => {\n return <h5>{title}</h5>;\n};\n\nSubTab.propTypes = {\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired\n};\n\nconst BrandUpdate = props => {\n const {notifications, header, items, content, details, onItemClick} = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n const selectedTab = pipe(\n filter(e => e.selected),\n head,\n get('tabs'),\n filter(e => e.selected),\n head\n )(items);\n\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\n const subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.tabs}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Notification {...notification} />\n </div>\n );\n });\n\n const contentView = cont => {\n if (!cont) return <Loader />;\n const {type} = cont;\n switch (type) {\n case 'form':\n return <BrandForm {...cont} />;\n case 'list':\n return <BrandTable {...cont} />;\n case 'upload':\n return <BrandUpload {...cont} />;\n case 'dashboard':\n return <BrandAnalytics {...cont} />;\n case 'home':\n return <BrandDashboard {...cont} />;\n }\n };\n\n const detailsView = cont => {\n if (!cont) return;\n return <BrandTable {...cont} />;\n };\n\n return (\n <div className={style.container}>\n <div className={style.dashboardAside}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n <div className={style.contentWrapper}>\n <Header {...header} />\n <div className={style.notifications}>{notificationsList}</div>\n {content && content.type === 'home' ? (\n contentView(content)\n ) : (\n <div className={style.contentHandler}>\n <div className={style.contentView}>\n {selectedTab && !isEmpty(selectedTab.subTabs) ? (\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n ) : null}\n <div className={style.dashboardContent}>\n <div>{contentView(content)}</div>\n <div>{detailsView(details)}</div>\n </div>\n </div>\n </div>\n )}\n </div>\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(PropTypes.shape(Notification.propTypes)),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func\n};\n\nexport default BrandUpdate;\n"],"file":"index.js"}
@@ -0,0 +1,17 @@
1
+ import _defaultsDeep from "lodash/fp/defaultsDeep";
2
+
3
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+
5
+ import BrandDashboard from '../../../../../organism/brand-dashboard/test/fixtures/default';
6
+ import Default from './default';
7
+ const {
8
+ props
9
+ } = Default;
10
+ export default {
11
+ props: _defaultsDeep(props, {
12
+ content: _extends(_extends({}, BrandDashboard.props), {}, {
13
+ type: 'home'
14
+ })
15
+ })
16
+ };
17
+ //# sourceMappingURL=quick-access.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/quick-access.js"],"names":["BrandDashboard","Default","props","content","type"],"mappings":";;;;AACA,OAAOA,cAAP,MAA2B,+DAA3B;AACA,OAAOC,OAAP,MAAoB,WAApB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,OAAhB;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBC,IAAAA,OAAO,wBACFH,cAAc,CAACE,KADb;AAELE,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep} from 'lodash/fp';\nimport BrandDashboard from '../../../../../organism/brand-dashboard/test/fixtures/default';\nimport Default from './default';\n\nconst {props} = Default;\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...BrandDashboard.props,\n type: 'home'\n }\n })\n};\n"],"file":"quick-access.js"}
@@ -7,6 +7,7 @@ import fixtureAnimations from './fixtures/animations';
7
7
  import fixtureCohortError from './fixtures/cohort-error';
8
8
  import fixtureCohort from './fixtures/cohort';
9
9
  import fixtureDashboard from './fixtures/dashboard';
10
+ import fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';
10
11
  import fixtureDefault from './fixtures/default';
11
12
  import fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';
12
13
  import fixtureGeneralSettings from './fixtures/general-settings';
@@ -23,6 +24,7 @@ import fixtureLookandfeel from './fixtures/lookandfeel';
23
24
  import fixtureManageusersEdit from './fixtures/manageusers-edit';
24
25
  import fixtureManageusersList from './fixtures/manageusers-list';
25
26
  import fixtureManageusers from './fixtures/manageusers';
27
+ import fixtureQuickAccess from './fixtures/quick-access';
26
28
  import fixtureSsoActivate from './fixtures/sso-activate';
27
29
  import fixtureSso from './fixtures/sso';
28
30
  import fixtureUploadusersLoading from './fixtures/uploadusers-loading';
@@ -39,6 +41,7 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › sh
39
41
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);
40
42
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);
41
43
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);
44
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);
42
45
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);
43
46
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);
44
47
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);
@@ -55,6 +58,7 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › s
55
58
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);
56
59
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);
57
60
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);
61
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);
58
62
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);
59
63
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);
60
64
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureManageusers","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,uBAAP,MAAoC,8BAApC;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,yBAAP,MAAsC,gCAAtC;AACA,OAAOC,yBAAP,MAAsC,gCAAtC;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,yBAAP,MAAsC,gCAAtC;AACA,OAAOC,4BAAP,MAAyC,mCAAzC;AACA,OAAOC,kBAAP,MAA+B,wBAA/B;AAEA7B,IAAI,CAAC,kFAAD,EAAqF8B,CAAC,IAAI;AAC5FA,EAAAA,CAAC,CAACC,IAAF;AACA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pers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureManageusers","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,iBAAP,MAA8B,wBAA9B;AACA,OAAOC,UAAP,MAAuB,gBAAvB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,uBAAP,MAAoC,8BAApC;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,yBAAP,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AAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IsB,kBAA/I,CAAJ;AACAzB,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IuB,kBAA/I,CAAJ;AACA1B,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+IwB,kBAA/I,CAAJ;AACA3B,IAAI,CAAC,+EAAD,EAAkFE,oBAAlF,EAAwGC,6BAAxG,EAAuIyB,UAAvI,CAAJ;AACA5B,IAAI,CAAC,8FAAD,EAAiGE,oBAAjG,EAAuHC,6BAAvH,EAAsJ0B,yBAAtJ,CAAJ;AACA7B,IAAI,CAAC,iGAAD,EAAoGE,oBAApG,EAA0HC,6BAA1H,EAAyJ2B,4BAAzJ,CAAJ;AACA9B,IAAI,CAAC,uFAAD,EAA0FE,oBAA1F,EAAgHC,6BAAhH,EAA+I4B,kBAA/I,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureManageusers from './fixtures/manageusers';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\n"],"file":"fixtures.js"}
@@ -2,8 +2,12 @@ import test from 'ava';
2
2
  import forEach from 'lodash/forEach';
3
3
  import renderComponentMacro from '../../../../test/helpers/render-component';
4
4
  import TemplateCommonDiscipline from '..';
5
+ import fixtureAddToMyList from './fixtures/add-to-my-list';
5
6
  import fixtureArabic from './fixtures/arabic';
6
7
  import fixtureDefault from './fixtures/default';
8
+ import fixtureDisableAddToMyList from './fixtures/disable-add-to-my-list';
9
+ import fixtureDisableShareAndAddToMyList from './fixtures/disable-share-and-add-to-my-list';
10
+ import fixtureDisableShare from './fixtures/disable-share';
7
11
  import fixtureDoubleAuthor from './fixtures/double-author';
8
12
  import fixtureEmpty from './fixtures/empty';
9
13
  import fixtureExternalCourseWithVideo from './fixtures/external-course-with-video';
@@ -13,6 +17,7 @@ import fixtureJwplayer from './fixtures/jwplayer';
13
17
  import fixtureLoading from './fixtures/loading';
14
18
  import fixtureNoAuthor from './fixtures/no-author';
15
19
  import fixtureNoVideo from './fixtures/no-video';
20
+ import fixtureShare from './fixtures/share';
16
21
  import fixtureVimeo from './fixtures/vimeo';
17
22
  import fixtureWithOnclick from './fixtures/with-onclick';
18
23
  test('TemplateCommon › TemplateCommonDiscipline > should have valid propTypes', t => {
@@ -21,8 +26,12 @@ test('TemplateCommon › TemplateCommonDiscipline > should have valid propTypes'
21
26
  t.not(value, undefined, `PropType for "TemplateCommon.TemplateCommonDiscipline.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
22
27
  });
23
28
  });
29
+ test('TemplateCommon › TemplateCommonDiscipline › AddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureAddToMyList);
24
30
  test('TemplateCommon › TemplateCommonDiscipline › Arabic › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureArabic);
25
31
  test('TemplateCommon › TemplateCommonDiscipline › Default › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDefault);
32
+ test('TemplateCommon › TemplateCommonDiscipline › DisableAddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableAddToMyList);
33
+ test('TemplateCommon › TemplateCommonDiscipline › DisableShareAndAddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableShareAndAddToMyList);
34
+ test('TemplateCommon › TemplateCommonDiscipline › DisableShare › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableShare);
26
35
  test('TemplateCommon › TemplateCommonDiscipline › DoubleAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDoubleAuthor);
27
36
  test('TemplateCommon › TemplateCommonDiscipline › Empty › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureEmpty);
28
37
  test('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithVideo);
@@ -32,6 +41,7 @@ test('TemplateCommon › TemplateCommonDiscipline › Jwplayer › should be ren
32
41
  test('TemplateCommon › TemplateCommonDiscipline › Loading › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureLoading);
33
42
  test('TemplateCommon › TemplateCommonDiscipline › NoAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoAuthor);
34
43
  test('TemplateCommon › TemplateCommonDiscipline › NoVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoVideo);
44
+ test('TemplateCommon › TemplateCommonDiscipline › Share › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureShare);
35
45
  test('TemplateCommon › TemplateCommonDiscipline › Vimeo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureVimeo);
36
46
  test('TemplateCommon › TemplateCommonDiscipline › WithOnclick › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureWithOnclick);
37
47
  //# sourceMappingURL=fixtures.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/common/discipline/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateCommonDiscipline","fixtureArabic","fixtureDefault","fixtureDoubleAuthor","fixtureEmpty","fixtureExternalCourseWithVideo","fixtureExternalCourseWithoutImage","fixtureExternalCourse","fixtureJwplayer","fixtureLoading","fixtureNoAuthor","fixtureNoVideo","fixtureVimeo","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAO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6FAAD,EAAgGE,oBAAhG,EAAsHC,wBAAtH,EAAgJM,iCAAhJ,CAAJ;AACAT,IAAI,CAAC,iFAAD,EAAoFE,oBAApF,EAA0GC,wBAA1G,EAAoIO,qBAApI,CAAJ;AACAV,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,wBAApG,EAA8HQ,eAA9H,CAAJ;AACAX,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,wBAAnG,EAA6HS,cAA7H,CAAJ;AACAZ,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,wBAApG,EAA8HU,eAA9H,CAAJ;AACAb,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,wBAAnG,EAA6HW,cAA7H,CAAJ;AACAd,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,wBAAjG,EAA2HY,YAA3H,CAAJ;AACAf,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,wBAAvG,EAAiIa,kBAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateCommonDiscipline from '..';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDoubleAuthor from './fixtures/double-author';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalCourseWithVideo from './fixtures/external-course-with-video';\nimport fixtureExternalCourseWithoutImage from './fixtures/external-course-without-image';\nimport fixtureExternalCourse from './fixtures/external-course';\nimport fixtureJwplayer from './fixtures/jwplayer';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureNoAuthor from './fixtures/no-author';\nimport fixtureNoVideo from './fixtures/no-video';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('TemplateCommon › TemplateCommonDiscipline > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateCommonDiscipline.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateCommon.TemplateCommonDiscipline.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateCommon › TemplateCommonDiscipline › Arabic › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureArabic);\ntest('TemplateCommon › TemplateCommonDiscipline › Default › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDefault);\ntest('TemplateCommon › TemplateCommonDiscipline › DoubleAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDoubleAuthor);\ntest('TemplateCommon › TemplateCommonDiscipline › Empty › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureEmpty);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithVideo);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithoutImage › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithoutImage);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourse › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourse);\ntest('TemplateCommon › TemplateCommonDiscipline › Jwplayer › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureJwplayer);\ntest('TemplateCommon › TemplateCommonDiscipline › Loading › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureLoading);\ntest('TemplateCommon › TemplateCommonDiscipline › NoAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoAuthor);\ntest('TemplateCommon › TemplateCommonDiscipline › NoVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoVideo);\ntest('TemplateCommon › TemplateCommonDiscipline › Vimeo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureVimeo);\ntest('TemplateCommon › TemplateCommonDiscipline › WithOnclick › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureWithOnclick);\n"],"file":"fixtures.js"}
1
+ {"version":3,"sources":["../../../../../src/template/common/discipline/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateCommonDiscipline","fixtureAddToMyList","fixtureArabic","fixtureDefault","fixtureDisableAddToMyList","fixtureDisableShareAndAddToMyList","fixtureDisableShare","fixtureDoubleAuthor","fixtureEmpty","fixtureExternalCourseWithVideo","fixtureExternalCourseWithoutImage","fixtureExternalCourse","fixtureJwplayer","fixtureLoading","fixtureNoAuthor","fixtureNoVideo","fixtureShare","fixtureVimeo","fixtureWithOnclick","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,wBAAP,MAAqC,IAArC;AACA,OAAOC,kBAAP,MAA+B,2BAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,yBAAP,MAAsC,mCAAtC;AACA,OAAOC,iCAAP,MAA8C,6CAA9C;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,mBAAP,MAAgC,0BAAhC;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,8BAAP,MAA2C,uCAA3C;AACA,OAAOC,iCAAP,MAA8C,0CAA9C;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AACA,OAAOC,eAAP,MAA4B,qBAA5B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,eAAP,MAA4B,sBAA5B;AACA,OAAOC,cAAP,MAA2B,qBAA3B;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AAEArB,IAAI,CAAC,yEAAD,EAA4EsB,CAAC,IAAI;AACnFA,EAAAA,CAAC,CAACC,IAAF;AACAtB,EAAAA,OAAO,CAACE,wB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,wBAAnG,EAA6Ha,cAA7H,CAAJ;AACAhB,IAAI,CAAC,2EAAD,EAA8EE,oBAA9E,EAAoGC,wBAApG,EAA8Hc,eAA9H,CAAJ;AACAjB,IAAI,CAAC,0EAAD,EAA6EE,oBAA7E,EAAmGC,wBAAnG,EAA6He,cAA7H,CAAJ;AACAlB,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,wBAAjG,EAA2HgB,YAA3H,CAAJ;AACAnB,IAAI,CAAC,wEAAD,EAA2EE,oBAA3E,EAAiGC,wBAAjG,EAA2HiB,YAA3H,CAAJ;AACApB,IAAI,CAAC,8EAAD,EAAiFE,oBAAjF,EAAuGC,wBAAvG,EAAiIkB,kBAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateCommonDiscipline from '..';\nimport fixtureAddToMyList from './fixtures/add-to-my-list';\nimport fixtureArabic from './fixtures/arabic';\nimport fixtureDefault from './fixtures/default';\nimport fixtureDisableAddToMyList from './fixtures/disable-add-to-my-list';\nimport fixtureDisableShareAndAddToMyList from './fixtures/disable-share-and-add-to-my-list';\nimport fixtureDisableShare from './fixtures/disable-share';\nimport fixtureDoubleAuthor from './fixtures/double-author';\nimport fixtureEmpty from './fixtures/empty';\nimport fixtureExternalCourseWithVideo from './fixtures/external-course-with-video';\nimport fixtureExternalCourseWithoutImage from './fixtures/external-course-without-image';\nimport fixtureExternalCourse from './fixtures/external-course';\nimport fixtureJwplayer from './fixtures/jwplayer';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureNoAuthor from './fixtures/no-author';\nimport fixtureNoVideo from './fixtures/no-video';\nimport fixtureShare from './fixtures/share';\nimport fixtureVimeo from './fixtures/vimeo';\nimport fixtureWithOnclick from './fixtures/with-onclick';\n\ntest('TemplateCommon › TemplateCommonDiscipline > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateCommonDiscipline.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateCommon.TemplateCommonDiscipline.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateCommon › TemplateCommonDiscipline › AddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureAddToMyList);\ntest('TemplateCommon › TemplateCommonDiscipline › Arabic › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureArabic);\ntest('TemplateCommon › TemplateCommonDiscipline › Default › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDefault);\ntest('TemplateCommon › TemplateCommonDiscipline › DisableAddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableAddToMyList);\ntest('TemplateCommon › TemplateCommonDiscipline › DisableShareAndAddToMyList › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableShareAndAddToMyList);\ntest('TemplateCommon › TemplateCommonDiscipline › DisableShare › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDisableShare);\ntest('TemplateCommon › TemplateCommonDiscipline › DoubleAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureDoubleAuthor);\ntest('TemplateCommon › TemplateCommonDiscipline › Empty › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureEmpty);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithVideo);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourseWithoutImage › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourseWithoutImage);\ntest('TemplateCommon › TemplateCommonDiscipline › ExternalCourse › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureExternalCourse);\ntest('TemplateCommon › TemplateCommonDiscipline › Jwplayer › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureJwplayer);\ntest('TemplateCommon › TemplateCommonDiscipline › Loading › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureLoading);\ntest('TemplateCommon › TemplateCommonDiscipline › NoAuthor › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoAuthor);\ntest('TemplateCommon › TemplateCommonDiscipline › NoVideo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureNoVideo);\ntest('TemplateCommon › TemplateCommonDiscipline › Share › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureShare);\ntest('TemplateCommon › TemplateCommonDiscipline › Vimeo › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureVimeo);\ntest('TemplateCommon › TemplateCommonDiscipline › WithOnclick › should be rendered', renderComponentMacro, TemplateCommonDiscipline, fixtureWithOnclick);\n"],"file":"fixtures.js"}
@@ -4,6 +4,7 @@ import renderComponentMacro from '../../../test/helpers/render-component';
4
4
  import TemplateTeamsDashboard from '..';
5
5
  import fixtureDefault from './fixtures/default';
6
6
  import fixtureIsLoading from './fixtures/is-loading';
7
+ import fixtureMobile from './fixtures/mobile';
7
8
  test('Template › TemplateTeamsDashboard > should have valid propTypes', t => {
8
9
  t.pass();
9
10
  forEach(TemplateTeamsDashboard.propTypes, (value, key) => {
@@ -12,4 +13,5 @@ test('Template › TemplateTeamsDashboard > should have valid propTypes', t => {
12
13
  });
13
14
  test('Template › TemplateTeamsDashboard › Default › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureDefault);
14
15
  test('Template › TemplateTeamsDashboard › IsLoading › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureIsLoading);
16
+ test('Template › TemplateTeamsDashboard › Mobile › should be rendered', renderComponentMacro, TemplateTeamsDashboard, fixtureMobile);
15
17
  //# sourceMappingURL=fixtures.js.map