@eui/cli 15.4.1 → 15.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/.version.properties +1 -1
  2. package/LICENSE +296 -296
  3. package/README.md +26 -26
  4. package/bin/eui-cli.js +70 -70
  5. package/lib/build.js +153 -153
  6. package/lib/cli.js +111 -111
  7. package/lib/config.js +54 -54
  8. package/lib/generators.js +64 -64
  9. package/lib/install.js +54 -54
  10. package/lib/maven-build/build.xml +115 -115
  11. package/lib/maven-build/pom.xml +64 -64
  12. package/lib/post-build.js +33 -33
  13. package/lib/skeletons/_angular/base/.browserslistrc +16 -16
  14. package/lib/skeletons/_angular/base/.editorconfig +16 -16
  15. package/lib/skeletons/_angular/base/.euirc.json +8 -8
  16. package/lib/skeletons/_angular/base/.stylelintrc +24 -24
  17. package/lib/skeletons/_angular/base/README.md +26 -26
  18. package/lib/skeletons/_angular/base/angular.json +176 -176
  19. package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +50 -50
  20. package/lib/skeletons/_angular/base/mock/app/models/user.js +8 -8
  21. package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -5
  22. package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +24 -24
  23. package/lib/skeletons/_angular/base/mock/db/db.json +12 -12
  24. package/lib/skeletons/_angular/base/mock/server.js +21 -21
  25. package/lib/skeletons/_angular/base/package.json +24 -24
  26. package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -6
  27. package/lib/skeletons/_angular/base/proxy.conf.json +6 -6
  28. package/lib/skeletons/_angular/base/src/.eslintrc.json +118 -118
  29. package/lib/skeletons/_angular/base/src/app/app-routing.module.ts +17 -17
  30. package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +66 -66
  31. package/lib/skeletons/_angular/base/src/app/app.component.html +29 -29
  32. package/lib/skeletons/_angular/base/src/app/app.component.ts +51 -51
  33. package/lib/skeletons/_angular/base/src/app/app.module.ts +35 -35
  34. package/lib/skeletons/_angular/base/src/app/core/core.module.ts +87 -87
  35. package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +31 -31
  36. package/lib/skeletons/_angular/base/src/app/features/home/home-routing.module.ts +15 -15
  37. package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +39 -39
  38. package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +11 -11
  39. package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +18 -18
  40. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -7
  41. package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +7 -7
  42. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -7
  43. package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +7 -7
  44. package/lib/skeletons/_angular/base/src/app/features/module1/module1-routing.module.ts +18 -18
  45. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -7
  46. package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +8 -8
  47. package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +21 -21
  48. package/lib/skeletons/_angular/base/src/app/features/module2/module2-routing.module.ts +16 -16
  49. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -7
  50. package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +7 -7
  51. package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +17 -17
  52. package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +45 -45
  53. package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -18
  54. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -8
  55. package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -8
  56. package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -7
  57. package/lib/skeletons/_angular/base/src/assets/i18n/en.json +6 -6
  58. package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +6 -6
  59. package/lib/skeletons/_angular/base/src/config/global.ts +20 -20
  60. package/lib/skeletons/_angular/base/src/config/index.ts +8 -8
  61. package/lib/skeletons/_angular/base/src/config/modules.ts +7 -7
  62. package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -6
  63. package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -11
  64. package/lib/skeletons/_angular/base/src/environments/environment.ts +11 -11
  65. package/lib/skeletons/_angular/base/src/index.html +21 -21
  66. package/lib/skeletons/_angular/base/src/karma.conf.js +7 -7
  67. package/lib/skeletons/_angular/base/src/main.ts +14 -14
  68. package/lib/skeletons/_angular/base/src/polyfills.ts +89 -89
  69. package/lib/skeletons/_angular/base/src/styles.scss +1 -1
  70. package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -18
  71. package/lib/skeletons/_angular/base/src/tsconfig.spec.json +14 -14
  72. package/lib/skeletons/_angular/base/tsconfig.json +27 -27
  73. package/lib/skeletons/_angular/base-mobile/angular.json +160 -160
  74. package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -5
  75. package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -33
  76. package/lib/skeletons/_angular/base-mobile/package.json +28 -28
  77. package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +17 -17
  78. package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -73
  79. package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +27 -27
  80. package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +55 -55
  81. package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -44
  82. package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -89
  83. package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +31 -31
  84. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -15
  85. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +14 -14
  86. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +11 -11
  87. package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -18
  88. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -11
  89. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +7 -7
  90. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -11
  91. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +7 -7
  92. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -18
  93. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -15
  94. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -17
  95. package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -21
  96. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -16
  97. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -11
  98. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -7
  99. package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -17
  100. package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -16
  101. package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -18
  102. package/lib/skeletons/_angular/base-mobile/src/index.html +27 -27
  103. package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +51 -51
  104. package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +19 -19
  105. package/lib/skeletons/_angular/options/ecl/angular.json +193 -193
  106. package/lib/skeletons/_angular/options/ecl/src/app/app.component.html +262 -262
  107. package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +59 -59
  108. package/lib/skeletons/_angular/options/ecl/src/app/features/home/home.component.html +70 -70
  109. package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page1/page1.component.html +1 -1
  110. package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page2/page2.component.html +1 -1
  111. package/lib/skeletons/_angular/options/ecl/src/app/features/module1/module1.component.html +1 -1
  112. package/lib/skeletons/_angular/options/ecl/src/app/features/module2/module2.component.html +1 -1
  113. package/lib/skeletons/_angular/options/ecl/src/app/shared/shared.module.ts +19 -19
  114. package/lib/skeletons/_angular/options/ecl/src/config/global.ts +20 -20
  115. package/lib/skeletons/_angular/options/openid-jwt/package.json +22 -22
  116. package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +94 -94
  117. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-dev.json +24 -24
  118. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local-mock.json +10 -10
  119. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local.json +23 -23
  120. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json +23 -23
  121. package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config.json +10 -10
  122. package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.prod.ts +11 -11
  123. package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.ts +11 -11
  124. package/lib/skeletons/_angular/options/openid-jwt/src/index.html +21 -21
  125. package/lib/skeletons/web-maven/package.json +17 -17
  126. package/lib/skeletons/web-maven/pom.xml +55 -55
  127. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -22
  128. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -24
  129. package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -23
  130. package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -7
  131. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +10 -10
  132. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -38
  133. package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +15 -15
  134. package/lib/skeletons/web-maven/src/main/webapp/index.jsp +29 -29
  135. package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +77 -77
  136. package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +84 -84
  137. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -46
  138. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -65
  139. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -44
  140. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +10 -10
  141. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -26
  142. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +20 -20
  143. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -45
  144. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -25
  145. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -17
  146. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -29
  147. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -35
  148. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -372
  149. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -47
  150. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +25 -25
  151. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +9 -9
  152. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +25 -25
  153. package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +10 -10
  154. package/lib/skeletons/web-spring-boot/pom.xml +30 -30
  155. package/lib/skeletons/web-symfony/myapp-web/angular.json +170 -170
  156. package/lib/skeletons/web-symfony/myapp-web/package.json +23 -23
  157. package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +18 -18
  158. package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +77 -77
  159. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +160 -160
  160. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +104 -104
  161. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +6 -6
  162. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +16 -16
  163. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +16 -16
  164. package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +29 -29
  165. package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +17 -17
  166. package/lib/skeletons/web-symfony/myapp-web-rest/.env +28 -28
  167. package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +42 -42
  168. package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +67 -67
  169. package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +3572 -3572
  170. package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +21 -21
  171. package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +12 -12
  172. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +19 -19
  173. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +3 -3
  174. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +29 -29
  175. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +5 -5
  176. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +17 -17
  177. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +32 -32
  178. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +4 -4
  179. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +3 -3
  180. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +4 -4
  181. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +3 -3
  182. package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +4 -4
  183. package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +3 -3
  184. package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +3 -3
  185. package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +3 -3
  186. package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +27 -27
  187. package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +27 -27
  188. package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +196 -196
  189. package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +99 -99
  190. package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +53 -53
  191. package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +31 -31
  192. package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +35 -35
  193. package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +51 -51
  194. package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +274 -274
  195. package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +12 -12
  196. package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +20 -20
  197. package/lib/utils.js +17 -17
  198. package/package.json +3 -3
@@ -1,35 +1,35 @@
1
- import { BrowserModule } from '@angular/platform-browser';
2
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
3
- import { APP_INITIALIZER, NgModule } from '@angular/core';
4
-
5
- import { AppRoutingModule } from './app-routing.module';
6
- import { AppComponent } from './app.component';
7
- import { CoreModule } from './core/core.module';
8
- import { AppStarterService } from './app-starter.service';
9
-
10
- @NgModule({
11
- declarations: [
12
- AppComponent,
13
- ],
14
- imports: [
15
- BrowserModule,
16
- BrowserAnimationsModule,
17
- CoreModule,
18
- AppRoutingModule,
19
- ],
20
- providers: [
21
- AppStarterService,
22
- {
23
- provide: APP_INITIALIZER,
24
- useFactory: (appStarterService) => () => new Promise<void>((resolve) => {
25
- appStarterService.start().subscribe(() => resolve());
26
- }),
27
- deps: [AppStarterService],
28
- multi: true
29
- },
30
- ],
31
- bootstrap: [
32
- AppComponent,
33
- ],
34
- })
35
- export class AppModule {}
1
+ import { BrowserModule } from '@angular/platform-browser';
2
+ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
3
+ import { APP_INITIALIZER, NgModule } from '@angular/core';
4
+
5
+ import { AppRoutingModule } from './app-routing.module';
6
+ import { AppComponent } from './app.component';
7
+ import { CoreModule } from './core/core.module';
8
+ import { AppStarterService } from './app-starter.service';
9
+
10
+ @NgModule({
11
+ declarations: [
12
+ AppComponent,
13
+ ],
14
+ imports: [
15
+ BrowserModule,
16
+ BrowserAnimationsModule,
17
+ CoreModule,
18
+ AppRoutingModule,
19
+ ],
20
+ providers: [
21
+ AppStarterService,
22
+ {
23
+ provide: APP_INITIALIZER,
24
+ useFactory: (appStarterService) => () => new Promise<void>((resolve) => {
25
+ appStarterService.start().subscribe(() => resolve());
26
+ }),
27
+ deps: [AppStarterService],
28
+ multi: true
29
+ },
30
+ ],
31
+ bootstrap: [
32
+ AppComponent,
33
+ ],
34
+ })
35
+ export class AppModule {}
@@ -1,87 +1,87 @@
1
- import { NgModule } from '@angular/core';
2
- import { TranslateModule } from '@ngx-translate/core';
3
- import { StoreModule } from '@ngrx/store';
4
- import { EffectsModule } from '@ngrx/effects';
5
- import { StoreDevtoolsModule } from '@ngrx/store-devtools';
6
- import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
7
- import {
8
- CachePreventionInterceptor,
9
- CorsSecurityInterceptor,
10
- CsrfPreventionInterceptor,
11
- EuLoginSessionTimeoutHandlingInterceptor,
12
- CoreModule as EuiCoreModule,
13
- translateConfig,
14
- CoreModuleEffects,
15
- EUI_CONFIG_TOKEN,
16
- } from '@eui/core';
17
- import { EuiLayoutModule } from '@eui/components/layout';
18
-
19
- import { appConfig } from '../../config/index';
20
- import { environment } from '../../environments/environment';
21
-
22
- import { REDUCER_TOKEN, getReducers, metaReducers } from './reducers/index';
23
-
24
- import { SharedModule } from '@shared/shared.module';
25
-
26
- @NgModule({
27
- imports: [
28
- EuiLayoutModule,
29
- SharedModule,
30
- HttpClientModule,
31
- EuiCoreModule.forRoot(),
32
- EffectsModule.forRoot([...CoreModuleEffects]),
33
- TranslateModule.forRoot(translateConfig),
34
- StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
35
- !environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
36
- ],
37
- declarations: [
38
- ],
39
- exports: [
40
- EuiLayoutModule,
41
- SharedModule,
42
- ],
43
- providers: [
44
- {
45
- provide: REDUCER_TOKEN,
46
- deps: [],
47
- useFactory: getReducers,
48
- },
49
- {
50
- provide: EUI_CONFIG_TOKEN,
51
- useValue: { appConfig, environment }
52
- },
53
- {
54
- // Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
55
- // This is necessary when a request is being made to another domain that is protected by EU Login.
56
- provide: HTTP_INTERCEPTORS,
57
- useClass: CorsSecurityInterceptor,
58
- multi: true,
59
- },
60
- {
61
- // WARNING: in case of OpenID this is not needed since OpenID is stateless therefore no revalidation needed.
62
- // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
63
- // and lets the EU Login client redirect to the official EU Login page.
64
- provide: HTTP_INTERCEPTORS,
65
- useClass: EuLoginSessionTimeoutHandlingInterceptor,
66
- multi: true,
67
- },
68
- {
69
- // Adds HTTP header to each Ajax request that ensures the request is set by a piece of JavaScript code in the application.
70
- // This prevents dynamically-loaded content from forging a request in the name of the currently logged-in user.
71
- // Be aware that this assumes that cross-site scripting (XSS) is already put in place, (default setting in Angular).
72
- provide: HTTP_INTERCEPTORS,
73
- useClass: CsrfPreventionInterceptor,
74
- multi: true,
75
- },
76
- {
77
- // Asks the intermediate proxies not to return a cache copy of the resource.
78
- // In matter of fact forces each server in the chain to validate the freshness of the resource.
79
- provide: HTTP_INTERCEPTORS,
80
- useClass: CachePreventionInterceptor,
81
- multi: true,
82
- },
83
- ]
84
- })
85
- export class CoreModule {
86
-
87
- }
1
+ import { NgModule } from '@angular/core';
2
+ import { TranslateModule } from '@ngx-translate/core';
3
+ import { StoreModule } from '@ngrx/store';
4
+ import { EffectsModule } from '@ngrx/effects';
5
+ import { StoreDevtoolsModule } from '@ngrx/store-devtools';
6
+ import { HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
7
+ import {
8
+ CachePreventionInterceptor,
9
+ CorsSecurityInterceptor,
10
+ CsrfPreventionInterceptor,
11
+ EuLoginSessionTimeoutHandlingInterceptor,
12
+ CoreModule as EuiCoreModule,
13
+ translateConfig,
14
+ CoreModuleEffects,
15
+ EUI_CONFIG_TOKEN,
16
+ } from '@eui/core';
17
+ import { EuiLayoutModule } from '@eui/components/layout';
18
+
19
+ import { appConfig } from '../../config/index';
20
+ import { environment } from '../../environments/environment';
21
+
22
+ import { REDUCER_TOKEN, getReducers, metaReducers } from './reducers/index';
23
+
24
+ import { SharedModule } from '@shared/shared.module';
25
+
26
+ @NgModule({
27
+ imports: [
28
+ EuiLayoutModule,
29
+ SharedModule,
30
+ HttpClientModule,
31
+ EuiCoreModule.forRoot(),
32
+ EffectsModule.forRoot([...CoreModuleEffects]),
33
+ TranslateModule.forRoot(translateConfig),
34
+ StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
35
+ !environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
36
+ ],
37
+ declarations: [
38
+ ],
39
+ exports: [
40
+ EuiLayoutModule,
41
+ SharedModule,
42
+ ],
43
+ providers: [
44
+ {
45
+ provide: REDUCER_TOKEN,
46
+ deps: [],
47
+ useFactory: getReducers,
48
+ },
49
+ {
50
+ provide: EUI_CONFIG_TOKEN,
51
+ useValue: { appConfig, environment }
52
+ },
53
+ {
54
+ // Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
55
+ // This is necessary when a request is being made to another domain that is protected by EU Login.
56
+ provide: HTTP_INTERCEPTORS,
57
+ useClass: CorsSecurityInterceptor,
58
+ multi: true,
59
+ },
60
+ {
61
+ // WARNING: in case of OpenID this is not needed since OpenID is stateless therefore no revalidation needed.
62
+ // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
63
+ // and lets the EU Login client redirect to the official EU Login page.
64
+ provide: HTTP_INTERCEPTORS,
65
+ useClass: EuLoginSessionTimeoutHandlingInterceptor,
66
+ multi: true,
67
+ },
68
+ {
69
+ // Adds HTTP header to each Ajax request that ensures the request is set by a piece of JavaScript code in the application.
70
+ // This prevents dynamically-loaded content from forging a request in the name of the currently logged-in user.
71
+ // Be aware that this assumes that cross-site scripting (XSS) is already put in place, (default setting in Angular).
72
+ provide: HTTP_INTERCEPTORS,
73
+ useClass: CsrfPreventionInterceptor,
74
+ multi: true,
75
+ },
76
+ {
77
+ // Asks the intermediate proxies not to return a cache copy of the resource.
78
+ // In matter of fact forces each server in the chain to validate the freshness of the resource.
79
+ provide: HTTP_INTERCEPTORS,
80
+ useClass: CachePreventionInterceptor,
81
+ multi: true,
82
+ },
83
+ ]
84
+ })
85
+ export class CoreModule {
86
+
87
+ }
@@ -1,31 +1,31 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { MetaReducer } from '@ngrx/store';
3
- import { storeFreeze } from 'ngrx-store-freeze';
4
- import { reducers as coreReducers, CoreState, getAppState, localStorageSync } from '@eui/core';
5
-
6
- import { environment } from '../../../environments/environment';
7
-
8
- export const REDUCER_TOKEN = new InjectionToken<any>('Registered Reducers');
9
-
10
- /**
11
- * Define here your app state
12
- *
13
- * [IMPORTANT]
14
- * There are some **reserved** slice of the state
15
- * that you **can not** use in your application ==> app |user | notification
16
- */
17
- // eslint-disable-next-line
18
- export interface AppState extends CoreState {
19
- // [key: string]: fromTaskManager.State | any;
20
- }
21
-
22
- /**
23
- * Define here the reducers of your app
24
- */
25
- const rootReducer = Object.assign({}, coreReducers, {
26
- // [fromTaskManager.namespace]: fromTaskManager.reducers,
27
- });
28
-
29
- export const getReducers = () => rootReducer;
30
-
31
- export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [localStorageSync, storeFreeze] : [localStorageSync];
1
+ import { InjectionToken } from '@angular/core';
2
+ import { MetaReducer } from '@ngrx/store';
3
+ import { storeFreeze } from 'ngrx-store-freeze';
4
+ import { reducers as coreReducers, CoreState, getAppState, localStorageSync } from '@eui/core';
5
+
6
+ import { environment } from '../../../environments/environment';
7
+
8
+ export const REDUCER_TOKEN = new InjectionToken<any>('Registered Reducers');
9
+
10
+ /**
11
+ * Define here your app state
12
+ *
13
+ * [IMPORTANT]
14
+ * There are some **reserved** slice of the state
15
+ * that you **can not** use in your application ==> app |user | notification
16
+ */
17
+ // eslint-disable-next-line
18
+ export interface AppState extends CoreState {
19
+ // [key: string]: fromTaskManager.State | any;
20
+ }
21
+
22
+ /**
23
+ * Define here the reducers of your app
24
+ */
25
+ const rootReducer = Object.assign({}, coreReducers, {
26
+ // [fromTaskManager.namespace]: fromTaskManager.reducers,
27
+ });
28
+
29
+ export const getReducers = () => rootReducer;
30
+
31
+ export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [localStorageSync, storeFreeze] : [localStorageSync];
@@ -1,15 +1,15 @@
1
- import { NgModule } from '@angular/core';
2
- import { RouterModule, Routes } from '@angular/router';
3
-
4
- import { HomeComponent } from './home.component';
5
-
6
- const routes: Routes = [
7
- { path: '', component: HomeComponent },
8
- ];
9
-
10
- @NgModule({
11
- imports: [
12
- RouterModule.forChild(routes)
13
- ],
14
- })
15
- export class HomeRoutingModule {}
1
+ import { NgModule } from '@angular/core';
2
+ import { RouterModule, Routes } from '@angular/router';
3
+
4
+ import { HomeComponent } from './home.component';
5
+
6
+ const routes: Routes = [
7
+ { path: '', component: HomeComponent },
8
+ ];
9
+
10
+ @NgModule({
11
+ imports: [
12
+ RouterModule.forChild(routes)
13
+ ],
14
+ })
15
+ export class HomeRoutingModule {}
@@ -1,39 +1,39 @@
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">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">European Commission's User Experience</a></strong> (UX@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, My Workplace, 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">DIGIT-EUI-SUPPORT@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">MS Teams EC_eUI team</a>
32
- </p>
33
-
34
- <div>
35
- <strong>The eUI Team</strong>
36
- </div>
37
-
38
- </eui-page-content>
39
- </eui-page>
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">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">European Commission's User Experience</a></strong> (UX@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, My Workplace, 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">DIGIT-EUI-SUPPORT@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">MS Teams EC_eUI team</a>
32
+ </p>
33
+
34
+ <div>
35
+ <strong>The eUI Team</strong>
36
+ </div>
37
+
38
+ </eui-page-content>
39
+ </eui-page>
@@ -1,11 +1,11 @@
1
- import { Component, Inject } from '@angular/core';
2
- import { CONFIG_TOKEN, EuiAppConfig } from '@eui/core';
3
-
4
- @Component({
5
- templateUrl: './home.component.html',
6
- })
7
- export class HomeComponent {
8
- constructor(@Inject(CONFIG_TOKEN) private config: EuiAppConfig) {
9
- console.log(config);
10
- }
11
- }
1
+ import { Component, Inject } from '@angular/core';
2
+ import { CONFIG_TOKEN, EuiAppConfig } from '@eui/core';
3
+
4
+ @Component({
5
+ templateUrl: './home.component.html',
6
+ })
7
+ export class HomeComponent {
8
+ constructor(@Inject(CONFIG_TOKEN) private config: EuiAppConfig) {
9
+ console.log(config);
10
+ }
11
+ }
@@ -1,18 +1,18 @@
1
- import { NgModule } from '@angular/core';
2
-
3
- import { SharedModule } from '@shared/shared.module';
4
-
5
- import { HomeRoutingModule } from './home-routing.module';
6
-
7
- import { HomeComponent } from './home.component';
8
-
9
- @NgModule({
10
- imports: [
11
- SharedModule,
12
- HomeRoutingModule,
13
- ],
14
- declarations: [
15
- HomeComponent,
16
- ],
17
- })
18
- export class Module {}
1
+ import { NgModule } from '@angular/core';
2
+
3
+ import { SharedModule } from '@shared/shared.module';
4
+
5
+ import { HomeRoutingModule } from './home-routing.module';
6
+
7
+ import { HomeComponent } from './home.component';
8
+
9
+ @NgModule({
10
+ imports: [
11
+ SharedModule,
12
+ HomeRoutingModule,
13
+ ],
14
+ declarations: [
15
+ HomeComponent,
16
+ ],
17
+ })
18
+ export class Module {}
@@ -1,7 +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>
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>
@@ -1,7 +1,7 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- templateUrl: './page1.component.html'
5
- })
6
- export class Page1Component {
7
- }
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './page1.component.html'
5
+ })
6
+ export class Page1Component {
7
+ }
@@ -1,7 +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>
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>
@@ -1,7 +1,7 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- templateUrl: './page2.component.html'
5
- })
6
- export class Page2Component {
7
- }
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './page2.component.html'
5
+ })
6
+ export class Page2Component {
7
+ }
@@ -1,18 +1,18 @@
1
- import { NgModule } from '@angular/core';
2
- import { RouterModule, Routes } from '@angular/router';
3
- import { Page1Component } from './components/page1/page1.component';
4
- import { Page2Component } from './components/page2/page2.component';
5
- import { Module1Component } from './module1.component';
6
-
7
- const routes: Routes = [
8
- { path: '', component: Module1Component },
9
- { path: 'page1', component: Page1Component },
10
- { path: 'page2', component: Page2Component },
11
- ];
12
-
13
- @NgModule({
14
- imports: [
15
- RouterModule.forChild(routes)
16
- ],
17
- })
18
- export class Module1RoutingModule {}
1
+ import { NgModule } from '@angular/core';
2
+ import { RouterModule, Routes } from '@angular/router';
3
+ import { Page1Component } from './components/page1/page1.component';
4
+ import { Page2Component } from './components/page2/page2.component';
5
+ import { Module1Component } from './module1.component';
6
+
7
+ const routes: Routes = [
8
+ { path: '', component: Module1Component },
9
+ { path: 'page1', component: Page1Component },
10
+ { path: 'page2', component: Page2Component },
11
+ ];
12
+
13
+ @NgModule({
14
+ imports: [
15
+ RouterModule.forChild(routes)
16
+ ],
17
+ })
18
+ export class Module1RoutingModule {}
@@ -1,7 +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>
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>
@@ -1,8 +1,8 @@
1
- import { Component } from '@angular/core';
2
-
3
- @Component({
4
- templateUrl: './module1.component.html',
5
- })
6
- export class Module1Component {
7
-
8
- }
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './module1.component.html',
5
+ })
6
+ export class Module1Component {
7
+
8
+ }