@eui/cli 21.0.0-alpha.4 → 21.0.0-alpha.40

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 (252) hide show
  1. package/README.md +1 -1
  2. package/bin/eui-cli.js +67 -0
  3. package/bin/scripts/build-app.js +12 -0
  4. package/bin/scripts/lint-app.js +22 -0
  5. package/bin/scripts/new.js +39 -0
  6. package/bin/scripts/serve-app.js +12 -0
  7. package/lib/app-utils/build.js +176 -0
  8. package/lib/app-utils/projects.js +41 -0
  9. package/lib/app-utils/serve.js +78 -0
  10. package/lib/build.js +130 -0
  11. package/lib/cli.js +140 -0
  12. package/lib/config.js +59 -0
  13. package/lib/generators.js +72 -0
  14. package/lib/install.js +45 -0
  15. package/lib/maven-build/build.xml +115 -0
  16. package/lib/maven-build/lib/ant-contrib-20061014.jar +0 -0
  17. package/lib/maven-build/pom.xml +64 -0
  18. package/lib/post-build.js +31 -0
  19. package/lib/skeletons/_angular/base/.browserslistrc +16 -0
  20. package/lib/skeletons/_angular/base/.editorconfig +16 -0
  21. package/lib/skeletons/_angular/base/README.md +26 -0
  22. package/lib/skeletons/_angular/base/angular.json +129 -0
  23. package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +51 -0
  24. package/lib/skeletons/_angular/base/mock/app/models/user.js +6 -0
  25. package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -0
  26. package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +44 -0
  27. package/lib/skeletons/_angular/base/mock/db/db.json +10 -0
  28. package/lib/skeletons/_angular/base/mock/server.js +23 -0
  29. package/lib/skeletons/_angular/base/package.json +39 -0
  30. package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -0
  31. package/lib/skeletons/_angular/base/proxy.conf.json +6 -0
  32. package/lib/skeletons/_angular/base/src/.eslintrc.json +121 -0
  33. package/lib/skeletons/_angular/base/src/app/app-starter.service.spec.ts +68 -0
  34. package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +68 -0
  35. package/lib/skeletons/_angular/base/src/app/app.component.html +35 -0
  36. package/lib/skeletons/_angular/base/src/app/app.component.spec.ts +60 -0
  37. package/lib/skeletons/_angular/base/src/app/app.component.ts +35 -0
  38. package/lib/skeletons/_angular/base/src/app/app.config.ts +84 -0
  39. package/lib/skeletons/_angular/base/src/app/app.routes.ts +9 -0
  40. package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +41 -0
  41. package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +17 -0
  42. package/lib/skeletons/_angular/base/src/app/features/home/home.routes.ts +6 -0
  43. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -0
  44. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +10 -0
  45. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -0
  46. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +10 -0
  47. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -0
  48. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +10 -0
  49. package/lib/skeletons/_angular/base/src/app/features/module1/module1.routes.ts +10 -0
  50. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -0
  51. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +10 -0
  52. package/lib/skeletons/_angular/base/src/app/features/module2/module2.routes.ts +6 -0
  53. package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -0
  54. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -0
  55. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -0
  56. package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -0
  57. package/lib/skeletons/_angular/base/src/assets/i18n/en.json +7 -0
  58. package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +7 -0
  59. package/lib/skeletons/_angular/base/src/config/global.ts +33 -0
  60. package/lib/skeletons/_angular/base/src/config/index.ts +8 -0
  61. package/lib/skeletons/_angular/base/src/config/modules.ts +7 -0
  62. package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -0
  63. package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -0
  64. package/lib/skeletons/_angular/base/src/environments/environment.ts +15 -0
  65. package/lib/skeletons/_angular/base/src/favicon.ico +0 -0
  66. package/lib/skeletons/_angular/base/src/index.html +20 -0
  67. package/lib/skeletons/_angular/base/src/karma.conf.js +47 -0
  68. package/lib/skeletons/_angular/base/src/main.ts +20 -0
  69. package/lib/skeletons/_angular/base/src/styles.scss +1 -0
  70. package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -0
  71. package/lib/skeletons/_angular/base/src/tsconfig.spec.json +10 -0
  72. package/lib/skeletons/_angular/base/tsconfig.json +27 -0
  73. package/lib/skeletons/_angular/base-mobile/angular.json +156 -0
  74. package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -0
  75. package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -0
  76. package/lib/skeletons/_angular/base-mobile/package.json +27 -0
  77. package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +18 -0
  78. package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -0
  79. package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +47 -0
  80. package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +81 -0
  81. package/lib/skeletons/_angular/base-mobile/src/app/app.config.ts +81 -0
  82. package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -0
  83. package/lib/skeletons/_angular/base-mobile/src/app/core/components/.gitkeep +0 -0
  84. package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -0
  85. package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +32 -0
  86. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about-routing.module.ts +45 -0
  87. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.html +70 -0
  88. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.ts +19 -0
  89. package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.module.ts +30 -0
  90. package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.html +11 -0
  91. package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.ts +102 -0
  92. package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.html +20 -0
  93. package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.ts +75 -0
  94. package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.html +12 -0
  95. package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.ts +8 -0
  96. package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.html +48 -0
  97. package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.ts +7 -0
  98. package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.html +11 -0
  99. package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.ts +31 -0
  100. package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.html +11 -0
  101. package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.ts +103 -0
  102. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -0
  103. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +11 -0
  104. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +9 -0
  105. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -0
  106. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -0
  107. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +8 -0
  108. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -0
  109. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +8 -0
  110. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -0
  111. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -0
  112. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -0
  113. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -0
  114. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -0
  115. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -0
  116. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -0
  117. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -0
  118. package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -0
  119. package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -0
  120. package/lib/skeletons/_angular/base-mobile/src/assets/docs/pdf-test.pdf +0 -0
  121. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/en.json +25 -0
  122. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/es.json +24 -0
  123. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/fr.json +25 -0
  124. package/lib/skeletons/_angular/base-mobile/src/assets/i18n/tr.json +25 -0
  125. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-1024.png +0 -0
  126. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-114.png +0 -0
  127. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-120.png +0 -0
  128. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-128.png +0 -0
  129. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-144.png +0 -0
  130. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-152.png +0 -0
  131. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-16.png +0 -0
  132. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-180.png +0 -0
  133. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-192.png +0 -0
  134. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-32.png +0 -0
  135. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-36.png +0 -0
  136. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-384.png +0 -0
  137. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-48.png +0 -0
  138. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-512.png +0 -0
  139. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-57.png +0 -0
  140. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-60.png +0 -0
  141. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-72.png +0 -0
  142. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-76.png +0 -0
  143. package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-96.png +0 -0
  144. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1125-2436.png +0 -0
  145. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1170-2532.png +0 -0
  146. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1179-2556.png +0 -0
  147. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2208.png +0 -0
  148. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2688.png +0 -0
  149. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1284-2778.png +0 -0
  150. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1290-2796.png +0 -0
  151. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1488-2266.png +0 -0
  152. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1536-2048.png +0 -0
  153. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1620-2160.png +0 -0
  154. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1640-2360.png +0 -0
  155. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2224.png +0 -0
  156. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2388.png +0 -0
  157. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-2048-2732.png +0 -0
  158. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-640-1136.png +0 -0
  159. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-750-1334.png +0 -0
  160. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-828-1792.png +0 -0
  161. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1125-2436.png +0 -0
  162. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1170-2532.png +0 -0
  163. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1179-2556.png +0 -0
  164. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2208.png +0 -0
  165. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2688.png +0 -0
  166. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1284-2778.png +0 -0
  167. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1290-2796.png +0 -0
  168. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1488-2266.png +0 -0
  169. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1536-2048.png +0 -0
  170. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1620-2160.png +0 -0
  171. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1640-2360.png +0 -0
  172. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2224.png +0 -0
  173. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2388.png +0 -0
  174. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-2048-2732.png +0 -0
  175. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-640-1136.png +0 -0
  176. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-750-1334.png +0 -0
  177. package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-828-1792.png +0 -0
  178. package/lib/skeletons/_angular/base-mobile/src/assets/images/app-icon.svg +10 -0
  179. package/lib/skeletons/_angular/base-mobile/src/config/global.ts +39 -0
  180. package/lib/skeletons/_angular/base-mobile/src/config/index.ts +8 -0
  181. package/lib/skeletons/_angular/base-mobile/src/config/modules.ts +7 -0
  182. package/lib/skeletons/_angular/base-mobile/src/index.html +76 -0
  183. package/lib/skeletons/_angular/base-mobile/src/main.ts +23 -0
  184. package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +66 -0
  185. package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +20 -0
  186. package/lib/skeletons/_angular/base-mobile/tsconfig.json +27 -0
  187. package/lib/skeletons/_angular/options/ecl-ec/angular.json +181 -0
  188. package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.html +237 -0
  189. package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +65 -0
  190. package/lib/skeletons/_angular/options/ecl-ec/src/app/app.config.ts +84 -0
  191. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.html +71 -0
  192. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.ts +20 -0
  193. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.html +1 -0
  194. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.ts +7 -0
  195. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.html +1 -0
  196. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.ts +7 -0
  197. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.html +1 -0
  198. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.ts +7 -0
  199. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.html +1 -0
  200. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.ts +7 -0
  201. package/lib/skeletons/_angular/options/ecl-ec/src/config/global.ts +23 -0
  202. package/lib/skeletons/_angular/options/ecl-eu/angular.json +181 -0
  203. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.html +203 -0
  204. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +65 -0
  205. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.config.ts +84 -0
  206. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.html +71 -0
  207. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.ts +20 -0
  208. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.html +1 -0
  209. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.ts +7 -0
  210. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.html +1 -0
  211. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.ts +7 -0
  212. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.html +1 -0
  213. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.ts +7 -0
  214. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.html +1 -0
  215. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.ts +7 -0
  216. package/lib/skeletons/_angular/options/ecl-eu/src/app/shared/shared.module.ts +15 -0
  217. package/lib/skeletons/_angular/options/ecl-eu/src/config/global.ts +23 -0
  218. package/lib/skeletons/_angular/options/pnpm/package.json +72 -0
  219. package/lib/skeletons/web-maven/package.json +17 -0
  220. package/lib/skeletons/web-maven/pom.xml +55 -0
  221. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -0
  222. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -0
  223. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -0
  224. package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -0
  225. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +11 -0
  226. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -0
  227. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +16 -0
  228. package/lib/skeletons/web-maven/src/main/webapp/index.jsp +30 -0
  229. package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +83 -0
  230. package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +83 -0
  231. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -0
  232. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -0
  233. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -0
  234. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +11 -0
  235. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -0
  236. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +16 -0
  237. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -0
  238. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -0
  239. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -0
  240. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -0
  241. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -0
  242. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -0
  243. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -0
  244. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +26 -0
  245. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +10 -0
  246. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +26 -0
  247. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/application.properties +0 -0
  248. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +11 -0
  249. package/lib/skeletons/web-spring-boot/pom.xml +30 -0
  250. package/lib/utils.js +217 -0
  251. package/package.json +10 -13
  252. package/sonar-project.properties +14 -0
@@ -0,0 +1,60 @@
1
+ import { ComponentFixture, TestBed } from '@angular/core/testing';
2
+ import { RouterModule } from '@angular/router';
3
+ import { AppComponent } from './app.component';
4
+ import { EUI_LAYOUT } from '@eui/components/layout';
5
+ import { routes } from './app.routes';
6
+ import { provideHttpClientTesting } from '@angular/common/http/testing';
7
+ import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
8
+ import { AppStarterService } from './app-starter.service';
9
+ import { CONFIG_TOKEN, I18nService, I18nState, UserService} from '@eui/core';
10
+ import { EuiAppConfig } from '@eui/core';
11
+ import { Observable, of } from 'rxjs';
12
+ import { TranslateModule } from '@ngx-translate/core';
13
+ import SpyObj = jasmine.SpyObj;
14
+
15
+ describe('AppComponent', () => {
16
+ let component: AppComponent;
17
+ let fixture: ComponentFixture<AppComponent>;
18
+ let userServiceMock: SpyObj<UserService>;
19
+ let i18nServiceMock: SpyObj<I18nService>;
20
+ let configMock: EuiAppConfig;
21
+
22
+ beforeEach(async () => {
23
+
24
+ // Handle the overloaded getState method
25
+ type GetStateReturnType<T> = T extends keyof I18nState ? Observable<I18nState[T]> : Observable<I18nState>;
26
+
27
+ userServiceMock = jasmine.createSpyObj('UserService', ['init']);
28
+ i18nServiceMock = jasmine.createSpyObj<I18nService>('I18nService', ['init', 'getState']);
29
+ i18nServiceMock.getState.and.callFake(<K extends keyof I18nState>(key?: K): GetStateReturnType<K> => {
30
+ if (typeof key === 'string') {
31
+ return of({ activeLang: 'en' }[key]) as GetStateReturnType<K>;
32
+ }
33
+ return of({ activeLang: 'en' }) as GetStateReturnType<K>;
34
+ });
35
+ configMock = {global: {}, modules: {core: {base: 'localhost:3000', userDetails: 'dummy'}}};
36
+
37
+ await TestBed.configureTestingModule({
38
+ imports: [
39
+ RouterModule.forRoot(routes),
40
+ ...EUI_LAYOUT,
41
+ TranslateModule.forRoot(),
42
+ ],
43
+ providers: [
44
+ provideHttpClient(withInterceptorsFromDi()),
45
+ provideHttpClientTesting(),
46
+ AppStarterService,
47
+ {provide: UserService, useValue: userServiceMock},
48
+ {provide: I18nService, useValue: i18nServiceMock},
49
+ {provide: CONFIG_TOKEN, useValue: configMock},
50
+ ],
51
+ }).compileComponents();
52
+
53
+ fixture = TestBed.createComponent(AppComponent);
54
+ component = fixture.componentInstance;
55
+ });
56
+
57
+ it('should create the app', () => {
58
+ expect(component).toBeTruthy();
59
+ });
60
+ });
@@ -0,0 +1,35 @@
1
+ import { Component } from '@angular/core';
2
+ import { TranslateModule } from '@ngx-translate/core';
3
+ import { EUI_LANGUAGE_SELECTOR } from '@eui/components/eui-language-selector';
4
+ import { EUI_USER_PROFILE } from '@eui/components/eui-user-profile';
5
+ import { EUI_ICON } from '@eui/components/eui-icon';
6
+ import { EuiMenuItem } from '@eui/components/eui-menu';
7
+ import { EUI_LAYOUT } from '@eui/components/layout';
8
+
9
+ @Component({
10
+ selector: 'app-root',
11
+ templateUrl: './app.component.html',
12
+ imports: [
13
+ TranslateModule,
14
+ ...EUI_LAYOUT,
15
+ ...EUI_ICON,
16
+ ...EUI_USER_PROFILE,
17
+ ...EUI_LANGUAGE_SELECTOR,
18
+ ],
19
+ })
20
+ export class AppComponent {
21
+ sidebarItems: EuiMenuItem[] = [
22
+ { label: 'Home', url: 'screen/home' },
23
+ { label: 'Module 1', url: 'screen/module1', children: [
24
+ { label: 'page 1', url: 'screen/module1/page1' },
25
+ { label: 'page 2', url: 'screen/module1/page2' },
26
+ ] },
27
+ { label: 'Module 2', url: 'screen/module2' },
28
+ ];
29
+ notificationItems = [
30
+ { label: 'Title label 1', subLabel: 'Subtitle label' },
31
+ { label: 'Title label 2', subLabel: 'Subtitle label' },
32
+ { label: 'Title label 3', subLabel: 'Subtitle label' },
33
+ { label: 'Title label 4', subLabel: 'Subtitle label' },
34
+ ];
35
+ }
@@ -0,0 +1,84 @@
1
+ import { inject, provideAppInitializer } from '@angular/core';
2
+ import { ApplicationConfig, importProvidersFrom } from '@angular/core';
3
+ import { provideRouter } from '@angular/router';
4
+ import { Observable } from 'rxjs';
5
+
6
+ import { routes } from './app.routes';
7
+ import { AppStarterService } from './app-starter.service';
8
+
9
+ import { TranslateModule } from '@ngx-translate/core';
10
+
11
+ import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
12
+ import {
13
+ CachePreventionInterceptor,
14
+ CorsSecurityInterceptor,
15
+ CsrfPreventionInterceptor,
16
+ EuLoginSessionTimeoutHandlingInterceptor,
17
+ CoreModule as EuiCoreModule,
18
+ translateConfig,
19
+ EUI_CONFIG_TOKEN,
20
+ provideEuiInitializer,
21
+ EuiServiceStatus,
22
+ } from '@eui/core';
23
+
24
+ import { appConfig as euiAppConfig} from '../config';
25
+ import { environment } from '../environments/environment';
26
+ import { provideAnimations } from '@angular/platform-browser/animations';
27
+
28
+ /**
29
+ * The provided function is injected at application startup and executed during
30
+ * app initialization. If the function returns a Promise or an Observable, initialization
31
+ * does not complete until the Promise is resolved or the Observable is completed.
32
+ */
33
+ const init = (): Observable<EuiServiceStatus> => {
34
+ const appStarter = inject(AppStarterService);
35
+ return appStarter.start();
36
+ };
37
+
38
+ export const appConfig: ApplicationConfig = {
39
+ providers: [
40
+ {
41
+ provide: EUI_CONFIG_TOKEN,
42
+ useValue: { appConfig: euiAppConfig, environment }
43
+ },
44
+ {
45
+ // Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
46
+ // This is necessary when a request is being made to another domain that is protected by EU Login.
47
+ provide: HTTP_INTERCEPTORS,
48
+ useClass: CorsSecurityInterceptor,
49
+ multi: true,
50
+ },
51
+ {
52
+ // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
53
+ // and lets the EU Login client redirect to the official EU Login page.
54
+ provide: HTTP_INTERCEPTORS,
55
+ useClass: EuLoginSessionTimeoutHandlingInterceptor,
56
+ multi: true,
57
+ },
58
+ {
59
+ // Adds HTTP header to each Ajax request that ensures the request is set by a piece of JavaScript code in the application.
60
+ // This prevents dynamically-loaded content from forging a request in the name of the currently logged-in user.
61
+ // Be aware that this assumes that cross-site scripting (XSS) is already put in place, (default setting in Angular).
62
+ provide: HTTP_INTERCEPTORS,
63
+ useClass: CsrfPreventionInterceptor,
64
+ multi: true,
65
+ },
66
+ {
67
+ // Asks the intermediate proxies not to return a cache copy of the resource.
68
+ // In matter of fact forces each server in the chain to validate the freshness of the resource.
69
+ provide: HTTP_INTERCEPTORS,
70
+ useClass: CachePreventionInterceptor,
71
+ multi: true,
72
+ },
73
+ provideEuiInitializer(),
74
+ provideAppInitializer(init),
75
+ provideHttpClient(withInterceptorsFromDi()),
76
+ importProvidersFrom(
77
+ EuiCoreModule.forRoot(),
78
+ TranslateModule.forRoot(translateConfig)
79
+ ),
80
+ AppStarterService,
81
+ provideRouter(routes),
82
+ provideAnimations(),
83
+ ],
84
+ };
@@ -0,0 +1,9 @@
1
+ import { Routes } from '@angular/router';
2
+
3
+ export const routes: Routes = [
4
+ { path: '', redirectTo: 'screen/home', pathMatch: 'full' },
5
+ { path: 'index.jsp', redirectTo: 'screen/home' },
6
+ { path: 'screen/home', loadChildren: () => import('./features/home/home.routes').then(m => m.HOME_ROUTES) },
7
+ { path: 'screen/module1', loadChildren: () => import('./features/module1/module1.routes').then(m => m.MODULE1_ROUTES) },
8
+ { path: 'screen/module2', loadChildren: () => import('./features/module2/module2.routes').then(m => m.MODULE2_ROUTES) },
9
+ ];
@@ -0,0 +1,41 @@
1
+ <eui-page>
2
+ <eui-page-header label="{{ 'page.home.title' | translate }}"></eui-page-header>
3
+
4
+ <eui-page-content>
5
+ <h3 class="eui-u-font-bold eui-u-color-info">Overview</h3>
6
+
7
+ <p>The <strong><a href="https://webgate.ec.europa.eu/fpfis/wikis/display/eUI" target="_blank" class="eui-u-text-link-external">eUI
8
+ Platform</a></strong> (eUI) is meant to ease development of <strong>Single Web Page
9
+ Applications</strong> (SPAs) providing rich <strong>User Experience</strong> (UX) starting point
10
+ to directly quick-start applications development.</p>
11
+
12
+ <p>It's also focusing on rationalisation and implementation of <strong><a
13
+ href="https://webgate.ec.europa.eu/fpfis/wikis/display/Europa/User+experience"
14
+ target="_blank" class="eui-u-text-link-external">European Commission's User Experience</a></strong> (UX&#64;EC) and the adoption
15
+ of a common look and feel for your web applications.</p>
16
+
17
+ <p>Thereby, the <strong>eUI framework</strong> provides guidelines and recommendations on
18
+ <strong>collaborative and reusable web components</strong> in order to help
19
+ to build common and homogeneous graphical web interfaces that reflects the <strong>European
20
+ Commission Style Guides</strong> towards a corporate look and feel.
21
+ It also offers consistency from User Experience point of view through various participant projects
22
+ such as Opsys, MyWorkplace, Compass Corporate, Assmal, eProcurement, Sygma, Sedia, etc.</p>
23
+
24
+ <p>The target audience goes from Developers who will find a lot of usefull technical information, but
25
+ also Designers who want to reuse such materials to illustrate their work as well as Analysts and
26
+ Managers to help them during conceptual phases.</p>
27
+
28
+ <p>Feel free to participate and help to improve the eUI platform.</p>
29
+ <p>Contact us at <strong><a
30
+ href="mailto:DIGIT-EUI-SUPPORT@ec.europa.eu" class="eui-u-text-link">DIGIT-EUI-SUPPORT&#64;ec.europa.eu</a></strong> and
31
+ join us on MS Teams : <a href="https://teams.microsoft.com/l/team/19%3a2f5bb6b7d1e24c4aabaa62229d3e1955%40thread.tacv2/conversations?groupId=fb6def72-c57b-4e8f-a82e-49be65d6e1f5&tenantId=b24c8b06-522c-46fe-9080-70926f8dddb1" target="_blank" class="eui-u-text-link-external">
32
+ MS Teams EC_eUI team
33
+ </a>
34
+ </p>
35
+
36
+ <div>
37
+ <strong>The eUI Team</strong>
38
+ </div>
39
+
40
+ </eui-page-content>
41
+ </eui-page>
@@ -0,0 +1,17 @@
1
+ import { Component, Inject } from '@angular/core';
2
+ import { CONFIG_TOKEN, EuiAppConfig } from '@eui/core';
3
+ import { EUI_PAGE } from '@eui/components/eui-page';
4
+ import { TranslateModule } from '@ngx-translate/core';
5
+
6
+ @Component({
7
+ templateUrl: './home.component.html',
8
+ imports: [
9
+ TranslateModule,
10
+ ...EUI_PAGE,
11
+ ],
12
+ })
13
+ export class HomeComponent {
14
+ constructor(@Inject(CONFIG_TOKEN) protected config: EuiAppConfig) {
15
+ console.log(config);
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ import { Routes } from '@angular/router';
2
+ import { HomeComponent } from './home.component';
3
+
4
+ export const HOME_ROUTES: Routes = [
5
+ { path: '', component: HomeComponent },
6
+ ];
@@ -0,0 +1,7 @@
1
+ <eui-page>
2
+ <eui-page-header label="Module 1 - page 1"></eui-page-header>
3
+
4
+ <eui-page-content>
5
+ page 1 content
6
+ </eui-page-content>
7
+ </eui-page>
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+ import { EUI_PAGE } from '@eui/components/eui-page';
3
+
4
+ @Component({
5
+ templateUrl: './page1.component.html',
6
+ imports: [
7
+ ...EUI_PAGE,
8
+ ],
9
+ })
10
+ export class Page1Component {}
@@ -0,0 +1,7 @@
1
+ <eui-page>
2
+ <eui-page-header label="Module 1 - page 2"></eui-page-header>
3
+
4
+ <eui-page-content>
5
+ page 1 content
6
+ </eui-page-content>
7
+ </eui-page>
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+ import { EUI_PAGE } from '@eui/components/eui-page';
3
+
4
+ @Component({
5
+ templateUrl: './page2.component.html',
6
+ imports: [
7
+ ...EUI_PAGE,
8
+ ],
9
+ })
10
+ export class Page2Component {}
@@ -0,0 +1,7 @@
1
+ <eui-page>
2
+ <eui-page-header label="Module 1"></eui-page-header>
3
+
4
+ <eui-page-content>
5
+
6
+ </eui-page-content>
7
+ </eui-page>
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+ import { EUI_PAGE } from '@eui/components/eui-page';
3
+
4
+ @Component({
5
+ templateUrl: './module1.component.html',
6
+ imports: [
7
+ ...EUI_PAGE,
8
+ ],
9
+ })
10
+ export class Module1Component {}
@@ -0,0 +1,10 @@
1
+ import { Routes } from '@angular/router';
2
+ import { Page1Component } from './components/page1/page1.component';
3
+ import { Page2Component } from './components/page2/page2.component';
4
+ import { Module1Component } from './module1.component';
5
+
6
+ export const MODULE1_ROUTES: Routes = [
7
+ { path: '', component: Module1Component },
8
+ { path: 'page1', component: Page1Component },
9
+ { path: 'page2', component: Page2Component },
10
+ ];
@@ -0,0 +1,7 @@
1
+ <eui-page>
2
+ <eui-page-header label="Module 2"></eui-page-header>
3
+
4
+ <eui-page-content>
5
+ Module 2 content
6
+ </eui-page-content>
7
+ </eui-page>
@@ -0,0 +1,10 @@
1
+ import { Component } from '@angular/core';
2
+ import { EUI_PAGE } from '@eui/components/eui-page';
3
+
4
+ @Component({
5
+ templateUrl: './module2.component.html',
6
+ imports: [
7
+ ...EUI_PAGE,
8
+ ],
9
+ })
10
+ export class Module2Component {}
@@ -0,0 +1,6 @@
1
+ import { Routes } from '@angular/router';
2
+ import { Module2Component } from './module2.component';
3
+
4
+ export const MODULE2_ROUTES: Routes = [
5
+ { path: '', component: Module2Component },
6
+ ];
@@ -0,0 +1,18 @@
1
+ import { NavigationEnd } from '@angular/router';
2
+ import { Observable } from 'rxjs/Observable';
3
+
4
+ export class RouterMock {
5
+ routerState = { root: '' };
6
+ public navigationEnd = new NavigationEnd(0, 'http://url1', 'http://url2');
7
+ public events = new Observable(observer => {
8
+ observer.next(this.navigationEnd);
9
+ observer.complete();
10
+ });
11
+
12
+ constructor() {}
13
+
14
+ createUrlTree() {}
15
+
16
+ serializeUrl() {}
17
+
18
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "modules": {
3
+ "core": {
4
+ "base": "SERVER_HOST/api",
5
+ "userDetails": "/user-details"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "modules": {
3
+ "core": {
4
+ "base": "SERVER_HOST/api",
5
+ "userDetails": "/user-details"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "modules": {
3
+ "core": {
4
+ "userDetails": "/user-details"
5
+ }
6
+ }
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "page.home.title": "Welcome to eUI!",
3
+ "app.search.button": "Search",
4
+ "eui.my-profile-informations": "My profile information",
5
+ "eui.you-are-logged-in-as": "You are logged in as",
6
+ "eui.sign-out": "Sign out"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "page.home.title": "Bienvenue dans eUI!",
3
+ "app.search.button": "Chercher",
4
+ "eui.my-profile-informations": "My profile information FR",
5
+ "eui.you-are-logged-in-as": "You are logged in as FR",
6
+ "eui.sign-out": "Sign out FR"
7
+ }
@@ -0,0 +1,33 @@
1
+ import { GlobalConfig } from '@eui/core';
2
+
3
+ export const GLOBAL: GlobalConfig = {
4
+ appTitle: 'CSDR-app',
5
+ i18n: {
6
+ i18nService: {
7
+ defaultLanguage: 'en',
8
+ languages: [
9
+ {
10
+ code: 'en',
11
+ label: 'English'
12
+ },
13
+ {
14
+ code: 'fr',
15
+ label: 'Français'
16
+ }
17
+ ],
18
+ },
19
+ i18nLoader: {
20
+ i18nFolders: [
21
+ 'i18n-eui',
22
+ 'i18n',
23
+ 'i18n-ecl'
24
+ ],
25
+ },
26
+ },
27
+ user: {
28
+ defaultUserPreferences: {
29
+ dashboard: { },
30
+ lang: 'en',
31
+ },
32
+ },
33
+ };
@@ -0,0 +1,8 @@
1
+ import { EuiAppConfig } from '@eui/core';
2
+ import { GLOBAL } from './global';
3
+ import { MODULES } from './modules';
4
+
5
+ export const appConfig: EuiAppConfig = {
6
+ global: GLOBAL,
7
+ modules: MODULES,
8
+ };
@@ -0,0 +1,7 @@
1
+ import { ModulesConfig } from '@eui/core';
2
+
3
+ export const MODULES: ModulesConfig = {
4
+ core: {
5
+ base: '/api',
6
+ }
7
+ };
@@ -0,0 +1,6 @@
1
+ // Dummy test
2
+ describe('Test', () => {
3
+ it('should work', () => {
4
+ expect(true).toBe(true);
5
+ });
6
+ });
@@ -0,0 +1,11 @@
1
+ import { EuiEnvConfig } from '@eui/core';
2
+
3
+ export const environment: EuiEnvConfig = {
4
+ production: true,
5
+ enableDevToolRedux: false,
6
+ envDynamicConfig: {
7
+ uri: 'assets/env-json-config.json',
8
+ deepMerge: true,
9
+ merge: ['modules'],
10
+ },
11
+ };
@@ -0,0 +1,15 @@
1
+ import { EuiEnvConfig } from '@eui/core';
2
+
3
+ interface EnvConfig extends EuiEnvConfig {
4
+ production: boolean;
5
+ }
6
+
7
+ export const environment: EnvConfig = {
8
+ production: false,
9
+ enableDevToolRedux: true,
10
+ envDynamicConfig: {
11
+ uri: 'assets/env-json-config.json',
12
+ deepMerge: true,
13
+ merge: ['modules'],
14
+ },
15
+ };
@@ -0,0 +1,20 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>Application name</title>
6
+ <base href="/">
7
+
8
+ <meta name="viewport" content="width=device-width, initial-scale=1">
9
+ <link rel="icon" type="image/x-icon" href="favicon.ico">
10
+ </head>
11
+
12
+ <body>
13
+ <app-root>
14
+ <div id="loader-wrapper">
15
+ <div id="loader"></div>
16
+ </div>
17
+ </app-root>
18
+ </body>
19
+
20
+ </html>
@@ -0,0 +1,47 @@
1
+ function get(config) {
2
+
3
+ return {
4
+ basePath: '',
5
+ frameworks: ['jasmine', '@angular-devkit/build-angular'],
6
+ plugins: [
7
+ require('karma-jasmine'),
8
+ require('karma-chrome-launcher'),
9
+ require('karma-jasmine-html-reporter'),
10
+ require('karma-coverage-istanbul-reporter'),
11
+ require('karma-coverage'),
12
+ require('karma-sourcemap-loader'),
13
+ require('@angular-devkit/build-angular/plugins/karma')
14
+ ],
15
+ client:{
16
+ clearContext: false // leave Jasmine Spec Runner output visible in browser
17
+ },
18
+ coverageIstanbulReporter: {
19
+ reports: [ 'html', 'lcovonly' ],
20
+ fixWebpackSourcePaths: true
21
+ },
22
+ angularCli: {
23
+ environment: 'dev'
24
+ },
25
+ reporters: ['progress', 'kjhtml'],
26
+ port: 9876,
27
+ colors: true,
28
+ logLevel: config.LOG_INFO,
29
+ autoWatch: true,
30
+ browsers: ['ChromeHeadlessCustom'],
31
+ customLaunchers: {
32
+ ChromeHeadlessCustom: {
33
+ base: 'ChromeHeadless',
34
+ flags: [
35
+ '--no-sandbox',
36
+ ],
37
+ },
38
+ },
39
+ singleRun: false
40
+ }
41
+ }
42
+
43
+ module.exports = function (config) {
44
+ config.set(
45
+ get(config)
46
+ );
47
+ }
@@ -0,0 +1,20 @@
1
+ import { enableProdMode } from '@angular/core';
2
+ import { preInitApp } from '@eui/core';
3
+ import { environment } from './environments/environment';
4
+ import { bootstrapApplication } from '@angular/platform-browser';
5
+ import { AppComponent } from './app/app.component';
6
+ import { appConfig } from './app/app.config';
7
+
8
+ if (environment.production) {
9
+ enableProdMode();
10
+ }
11
+
12
+ preInitApp(environment).then(() =>
13
+ bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err)));
14
+
15
+ declare global {
16
+ interface Window {
17
+ global: Window;
18
+ }
19
+ }
20
+ window.global = window;
@@ -0,0 +1 @@
1
+ /* You can add global styles to this file, and also import other style files */
@@ -0,0 +1,18 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../out-tsc/app",
5
+ "types": []
6
+ },
7
+ "angularCompilerOptions": {
8
+ "annotateForClosureCompiler": true,
9
+ "strictTemplates": true,
10
+ "strictInjectionParameters": true,
11
+ },
12
+ "exclude": [
13
+ "**/*.spec.ts",
14
+ "app/shared/testing/router.mock.ts",
15
+ "environments/environment.prod.ts",
16
+ "environments/environment.dev.ts"
17
+ ]
18
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "../out-tsc/spec"
5
+ },
6
+ "include": [
7
+ "**/*.spec.ts",
8
+ "**/*.d.ts"
9
+ ]
10
+ }