@eui/cli 19.0.0-next.5 → 19.0.0-next.7

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 (25) hide show
  1. package/.version.properties +1 -1
  2. package/lib/skeletons/_angular/base/package.json +2 -2
  3. package/lib/skeletons/_angular/base/src/app/app.component.ts +12 -6
  4. package/lib/skeletons/_angular/base/src/app/app.config.ts +61 -8
  5. package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +3 -1
  6. package/lib/skeletons/_angular/base-mobile/package.json +1 -1
  7. package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +20 -2
  8. package/lib/skeletons/_angular/{base/src/app/core/core.module.ts → options/ecl-ec/src/app/app.config.ts} +22 -41
  9. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.ts +16 -0
  10. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.ts +7 -0
  11. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.ts +7 -0
  12. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.ts +7 -0
  13. package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.ts +7 -0
  14. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +20 -2
  15. package/lib/skeletons/_angular/options/ecl-eu/src/app/app.config.ts +69 -0
  16. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.ts +16 -0
  17. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.ts +7 -0
  18. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.ts +7 -0
  19. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.ts +7 -0
  20. package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.ts +7 -0
  21. package/lib/skeletons/web-symfony/myapp-web/package.json +2 -2
  22. package/package.json +1 -1
  23. package/lib/skeletons/_angular/base/src/app/core/components/.gitkeep +0 -0
  24. package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +0 -33
  25. package/lib/skeletons/_angular/options/ecl-ec/src/app/shared/shared.module.ts +0 -19
@@ -1 +1 @@
1
- 19.0.0-next.5
1
+ 19.0.0-next.7
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "19.0.0-next.5",
3
+ "version": "19.0.0-next.7",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "private": true,
23
23
  "dependencies": {
24
- "@eui/deps-base": "19.0.0-next.5"
24
+ "@eui/deps-base": "19.0.0-next.7"
25
25
  },
26
26
  "resolutions": {
27
27
  "js-yaml": ">=3.13.1",
@@ -1,16 +1,22 @@
1
1
  import { Component } from '@angular/core';
2
- import { BrowserModule } from '@angular/platform-browser';
3
- import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
- import { CoreModule } from './core/core.module';
2
+ // import { BrowserModule } from '@angular/platform-browser';
3
+ // import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
4
+ import { TranslateModule } from '@ngx-translate/core';
5
+ import { EuiLayoutModule } from '@eui/components/layout';
6
+ import { EuiLanguageSelectorModule } from '@eui/components/eui-language-selector';
7
+ import { EuiUserProfileModule } from '@eui/components/eui-user-profile';
8
+ import { EuiIconModule } from '@eui/components/eui-icon';
5
9
 
6
10
  @Component({
7
11
  selector: 'app-root',
8
12
  templateUrl: './app.component.html',
9
13
  standalone: true,
10
14
  imports: [
11
- BrowserModule,
12
- BrowserAnimationsModule,
13
- CoreModule,
15
+ TranslateModule,
16
+ EuiLayoutModule,
17
+ EuiIconModule,
18
+ EuiUserProfileModule,
19
+ EuiLanguageSelectorModule,
14
20
  ],
15
21
  })
16
22
  export class AppComponent {
@@ -1,20 +1,73 @@
1
- import { APP_INITIALIZER, ApplicationConfig } from '@angular/core';
1
+ import { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';
2
2
  import { provideRouter } from '@angular/router';
3
3
 
4
4
  import { routes } from './app.routes';
5
5
  import { AppStarterService } from './app-starter.service';
6
6
 
7
+ import { TranslateModule } from '@ngx-translate/core';
8
+
9
+ import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
10
+ import {
11
+ CachePreventionInterceptor,
12
+ CorsSecurityInterceptor,
13
+ CsrfPreventionInterceptor,
14
+ EuLoginSessionTimeoutHandlingInterceptor,
15
+ CoreModule as EuiCoreModule,
16
+ translateConfig,
17
+ EUI_CONFIG_TOKEN,
18
+ } from '@eui/core';
19
+
20
+ import { appConfig as euiAppConfig} from '../config';
21
+ import { environment } from '../environments/environment';
22
+
7
23
  export const appConfig: ApplicationConfig = {
8
24
  providers: [
9
- AppStarterService,
25
+ importProvidersFrom(EuiCoreModule.forRoot()),
26
+ importProvidersFrom(TranslateModule.forRoot(translateConfig)),
27
+ provideHttpClient(withInterceptorsFromDi()),
28
+ {
29
+ provide: EUI_CONFIG_TOKEN,
30
+ useValue: { euiAppConfig, environment }
31
+ },
32
+ {
33
+ // Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
34
+ // This is necessary when a request is being made to another domain that is protected by EU Login.
35
+ provide: HTTP_INTERCEPTORS,
36
+ useClass: CorsSecurityInterceptor,
37
+ multi: true,
38
+ },
39
+ {
40
+ // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
41
+ // and lets the EU Login client redirect to the official EU Login page.
42
+ provide: HTTP_INTERCEPTORS,
43
+ useClass: EuLoginSessionTimeoutHandlingInterceptor,
44
+ multi: true,
45
+ },
10
46
  {
11
- provide: APP_INITIALIZER,
12
- useFactory: (appStarterService: AppStarterService) => () => new Promise<void>((resolve) => {
13
- appStarterService.start().subscribe(() => resolve());
14
- }),
15
- deps: [AppStarterService],
16
- multi: true
47
+ // Adds HTTP header to each Ajax request that ensures the request is set by a piece of JavaScript code in the application.
48
+ // This prevents dynamically-loaded content from forging a request in the name of the currently logged-in user.
49
+ // Be aware that this assumes that cross-site scripting (XSS) is already put in place, (default setting in Angular).
50
+ provide: HTTP_INTERCEPTORS,
51
+ useClass: CsrfPreventionInterceptor,
52
+ multi: true,
17
53
  },
54
+ {
55
+ // Asks the intermediate proxies not to return a cache copy of the resource.
56
+ // In matter of fact forces each server in the chain to validate the freshness of the resource.
57
+ provide: HTTP_INTERCEPTORS,
58
+ useClass: CachePreventionInterceptor,
59
+ multi: true,
60
+ },
61
+
62
+ AppStarterService,
63
+ // {
64
+ // provide: APP_INITIALIZER,
65
+ // useFactory: (appStarterService: AppStarterService) => () => new Promise<void>((resolve) => {
66
+ // appStarterService.start().subscribe(() => resolve());
67
+ // }),
68
+ // deps: [AppStarterService],
69
+ // multi: true
70
+ // },
18
71
  provideRouter(routes),
19
72
  ],
20
73
  };
@@ -1,16 +1,18 @@
1
1
  import { Component, Inject } from '@angular/core';
2
2
  import { CONFIG_TOKEN, EuiAppConfig } from '@eui/core';
3
3
  import { EuiPageModule } from '@eui/components/eui-page';
4
+ import { TranslateModule } from '@ngx-translate/core';
4
5
 
5
6
  @Component({
6
7
  templateUrl: './home.component.html',
7
8
  standalone: true,
8
9
  imports: [
9
10
  EuiPageModule,
11
+ TranslateModule,
10
12
  ],
11
13
  })
12
14
  export class HomeComponent {
13
- constructor(@Inject(CONFIG_TOKEN) private config: EuiAppConfig) {
15
+ constructor(@Inject(CONFIG_TOKEN) protected config: EuiAppConfig) {
14
16
  console.log(config);
15
17
  }
16
18
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "19.0.0-next.5",
3
+ "version": "19.0.0-next.7",
4
4
  "license": "EUPL-1.1",
5
5
  "scripts": {
6
6
  "ng": "ng",
@@ -6,13 +6,31 @@ import {
6
6
  CoreState,
7
7
  } from '@eui/core';
8
8
  import { Observable, Subscription } from 'rxjs';
9
- import { EclSiteHeaderLoginEvent, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
10
- import { EclMenuItemSelectEvent } from '@eui/ecl/components/ecl-menu';
9
+ import { EclSiteHeaderComponentModule, EclSiteHeaderLoginEvent, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
10
+ import { EclMenuItemSelectEvent, EclMenuComponentModule } from '@eui/ecl/components/ecl-menu';
11
+ import { EclAppComponentModule } from '@eui/ecl/components/ecl-app';
12
+ import { EclIconComponentModule } from '@eui/ecl/components/ecl-icon';
13
+ import { EclSiteFooterComponentModule } from '@eui/ecl/components/ecl-site-footer';
14
+ import { EclBreadcrumbComponentModule } from '@eui/ecl/components/ecl-breadcrumb';
15
+ import { EclPageHeaderComponentModule } from '@eui/ecl/components/ecl-page-header';
16
+ import { RouterOutlet } from '@angular/router';
17
+ import { TranslateModule } from '@ngx-translate/core';
11
18
 
12
19
  @Component({
13
20
  selector: 'app-root',
14
21
  templateUrl: './app.component.html',
15
22
  standalone: true,
23
+ imports: [
24
+ EclAppComponentModule,
25
+ EclBreadcrumbComponentModule,
26
+ EclIconComponentModule,
27
+ EclMenuComponentModule,
28
+ EclPageHeaderComponentModule,
29
+ EclSiteHeaderComponentModule,
30
+ EclSiteFooterComponentModule,
31
+ RouterOutlet,
32
+ TranslateModule,
33
+ ]
16
34
  })
17
35
  export class AppComponent implements OnDestroy {
18
36
  userInfos: UserState;
@@ -1,8 +1,11 @@
1
- import { NgModule } from '@angular/core';
1
+ import { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';
2
+ import { provideRouter } from '@angular/router';
3
+
4
+ import { routes } from './app.routes';
5
+ import { AppStarterService } from './app-starter.service';
6
+ import { EclLanguageService, EclDefaultLanguageService } from '@eui/ecl/core';
2
7
  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';
8
+
6
9
  import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
7
10
  import {
8
11
  CachePreventionInterceptor,
@@ -11,48 +14,20 @@ import {
11
14
  EuLoginSessionTimeoutHandlingInterceptor,
12
15
  CoreModule as EuiCoreModule,
13
16
  translateConfig,
14
- CoreModuleEffects,
15
17
  EUI_CONFIG_TOKEN,
16
18
  } from '@eui/core';
17
- import { EuiLayoutModule } from '@eui/components/layout';
18
- import { EuiUserProfileModule } from '@eui/components/eui-user-profile';
19
-
20
- import { appConfig } from '../../config';
21
- import { environment } from '../../environments/environment';
22
-
23
- import { REDUCER_TOKEN, getReducers, metaReducers } from './reducers';
24
19
 
25
- import { SharedModule } from '@shared/shared.module';
20
+ import { appConfig as euiAppConfig} from '../config';
21
+ import { environment } from '../environments/environment';
26
22
 
27
- @NgModule({
28
- imports: [
29
- EuiLayoutModule,
30
- EuiUserProfileModule,
31
- SharedModule,
32
- EuiCoreModule.forRoot(),
33
- EffectsModule.forRoot([...CoreModuleEffects]),
34
- TranslateModule.forRoot(translateConfig),
35
- StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
36
- StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
37
- !environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
38
- ],
39
- declarations: [
40
- ],
41
- exports: [
42
- EuiLayoutModule,
43
- EuiUserProfileModule,
44
- SharedModule,
45
- ],
23
+ export const appConfig: ApplicationConfig = {
46
24
  providers: [
25
+ importProvidersFrom(EuiCoreModule.forRoot()),
26
+ importProvidersFrom(TranslateModule.forRoot(translateConfig)),
47
27
  provideHttpClient(withInterceptorsFromDi()),
48
- {
49
- provide: REDUCER_TOKEN,
50
- deps: [],
51
- useFactory: getReducers,
52
- },
53
28
  {
54
29
  provide: EUI_CONFIG_TOKEN,
55
- useValue: { appConfig, environment }
30
+ useValue: { euiAppConfig, environment }
56
31
  },
57
32
  {
58
33
  // Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
@@ -83,6 +58,12 @@ import { SharedModule } from '@shared/shared.module';
83
58
  useClass: CachePreventionInterceptor,
84
59
  multi: true,
85
60
  },
86
- ]
87
- })
88
- export class CoreModule {}
61
+
62
+ AppStarterService,
63
+ {
64
+ provide: EclLanguageService,
65
+ useClass: EclDefaultLanguageService
66
+ },
67
+ provideRouter(routes),
68
+ ],
69
+ };
@@ -0,0 +1,16 @@
1
+ import { Component, Inject } from '@angular/core';
2
+ import { CONFIG_TOKEN, EuiAppConfig } from '@eui/core';
3
+ import { TranslateModule } from '@ngx-translate/core';
4
+
5
+ @Component({
6
+ templateUrl: './home.component.html',
7
+ standalone: true,
8
+ imports: [
9
+ TranslateModule,
10
+ ],
11
+ })
12
+ export class HomeComponent {
13
+ constructor(@Inject(CONFIG_TOKEN) protected config: EuiAppConfig) {
14
+ console.log(config);
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './page1.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Page1Component {}
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './page2.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Page2Component {}
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './module1.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Module1Component {}
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './module2.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Module2Component {}
@@ -6,13 +6,31 @@ import {
6
6
  CoreState,
7
7
  } from '@eui/core';
8
8
  import { Observable, Subscription } from 'rxjs';
9
- import { EclSiteHeaderLoginEvent, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
10
- import { EclMenuItemSelectEvent } from '@eui/ecl/components/ecl-menu';
9
+ import { EclSiteHeaderComponentModule, EclSiteHeaderLoginEvent, EclSiteHeaderSearchEvent } from '@eui/ecl/components/ecl-site-header';
10
+ import { EclMenuItemSelectEvent, EclMenuComponentModule } from '@eui/ecl/components/ecl-menu';
11
+ import { EclAppComponentModule } from '@eui/ecl/components/ecl-app';
12
+ import { EclIconComponentModule } from '@eui/ecl/components/ecl-icon';
13
+ import { EclSiteFooterComponentModule } from '@eui/ecl/components/ecl-site-footer';
14
+ import { EclBreadcrumbComponentModule } from '@eui/ecl/components/ecl-breadcrumb';
15
+ import { EclPageHeaderComponentModule } from '@eui/ecl/components/ecl-page-header';
16
+ import { RouterOutlet } from '@angular/router';
17
+ import { TranslateModule } from '@ngx-translate/core';
11
18
 
12
19
  @Component({
13
20
  selector: 'app-root',
14
21
  templateUrl: './app.component.html',
15
22
  standalone: true,
23
+ imports: [
24
+ EclAppComponentModule,
25
+ EclBreadcrumbComponentModule,
26
+ EclIconComponentModule,
27
+ EclMenuComponentModule,
28
+ EclPageHeaderComponentModule,
29
+ EclSiteHeaderComponentModule,
30
+ EclSiteFooterComponentModule,
31
+ RouterOutlet,
32
+ TranslateModule,
33
+ ]
16
34
  })
17
35
  export class AppComponent implements OnDestroy {
18
36
  userInfos: UserState;
@@ -0,0 +1,69 @@
1
+ import { APP_INITIALIZER, ApplicationConfig, importProvidersFrom } from '@angular/core';
2
+ import { provideRouter } from '@angular/router';
3
+
4
+ import { routes } from './app.routes';
5
+ import { AppStarterService } from './app-starter.service';
6
+ import { EclLanguageService, EclDefaultLanguageService } from '@eui/ecl/core';
7
+ import { TranslateModule } from '@ngx-translate/core';
8
+
9
+ import { HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
10
+ import {
11
+ CachePreventionInterceptor,
12
+ CorsSecurityInterceptor,
13
+ CsrfPreventionInterceptor,
14
+ EuLoginSessionTimeoutHandlingInterceptor,
15
+ CoreModule as EuiCoreModule,
16
+ translateConfig,
17
+ EUI_CONFIG_TOKEN,
18
+ } from '@eui/core';
19
+
20
+ import { appConfig as euiAppConfig} from '../config';
21
+ import { environment } from '../environments/environment';
22
+
23
+ export const appConfig: ApplicationConfig = {
24
+ providers: [
25
+ importProvidersFrom(EuiCoreModule.forRoot()),
26
+ importProvidersFrom(TranslateModule.forRoot(translateConfig)),
27
+ provideHttpClient(withInterceptorsFromDi()),
28
+ {
29
+ provide: EUI_CONFIG_TOKEN,
30
+ useValue: { euiAppConfig, environment }
31
+ },
32
+ {
33
+ // Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
34
+ // This is necessary when a request is being made to another domain that is protected by EU Login.
35
+ provide: HTTP_INTERCEPTORS,
36
+ useClass: CorsSecurityInterceptor,
37
+ multi: true,
38
+ },
39
+ {
40
+ // When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
41
+ // and lets the EU Login client redirect to the official EU Login page.
42
+ provide: HTTP_INTERCEPTORS,
43
+ useClass: EuLoginSessionTimeoutHandlingInterceptor,
44
+ multi: true,
45
+ },
46
+ {
47
+ // Adds HTTP header to each Ajax request that ensures the request is set by a piece of JavaScript code in the application.
48
+ // This prevents dynamically-loaded content from forging a request in the name of the currently logged-in user.
49
+ // Be aware that this assumes that cross-site scripting (XSS) is already put in place, (default setting in Angular).
50
+ provide: HTTP_INTERCEPTORS,
51
+ useClass: CsrfPreventionInterceptor,
52
+ multi: true,
53
+ },
54
+ {
55
+ // Asks the intermediate proxies not to return a cache copy of the resource.
56
+ // In matter of fact forces each server in the chain to validate the freshness of the resource.
57
+ provide: HTTP_INTERCEPTORS,
58
+ useClass: CachePreventionInterceptor,
59
+ multi: true,
60
+ },
61
+
62
+ AppStarterService,
63
+ {
64
+ provide: EclLanguageService,
65
+ useClass: EclDefaultLanguageService
66
+ },
67
+ provideRouter(routes),
68
+ ],
69
+ };
@@ -0,0 +1,16 @@
1
+ import { Component, Inject } from '@angular/core';
2
+ import { CONFIG_TOKEN, EuiAppConfig } from '@eui/core';
3
+ import { TranslateModule } from '@ngx-translate/core';
4
+
5
+ @Component({
6
+ templateUrl: './home.component.html',
7
+ standalone: true,
8
+ imports: [
9
+ TranslateModule,
10
+ ],
11
+ })
12
+ export class HomeComponent {
13
+ constructor(@Inject(CONFIG_TOKEN) protected config: EuiAppConfig) {
14
+ console.log(config);
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './page1.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Page1Component {}
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './page2.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Page2Component {}
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './module1.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Module1Component {}
@@ -0,0 +1,7 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ templateUrl: './module2.component.html',
5
+ standalone: true,
6
+ })
7
+ export class Module2Component {}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eui-angular-app",
3
- "version": "19.0.0-next.5",
3
+ "version": "19.0.0-next.7",
4
4
  "license": "EUPL-1.1",
5
5
  "description": "eUI JEE Symfony app scripts",
6
6
  "scripts": {
@@ -18,6 +18,6 @@
18
18
  },
19
19
  "private": true,
20
20
  "dependencies": {
21
- "@eui/deps-base": "19.0.0-next.5"
21
+ "@eui/deps-base": "19.0.0-next.7"
22
22
  }
23
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eui/cli",
3
- "version": "19.0.0-next.5",
3
+ "version": "19.0.0-next.7",
4
4
  "tag": "next",
5
5
  "license": "EUPL-1.1",
6
6
  "description": "eUI CLI app generator",
@@ -1,33 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { MetaReducer } from '@ngrx/store';
3
- import { storeFreeze } from 'ngrx-store-freeze';
4
- import { reducers as coreReducers, localStorageSync } from '@eui/core';
5
- import { CoreState, getAppState } from '@eui/core';
6
-
7
- import { environment } from '../../../environments/environment';
8
-
9
- // eslint-disable-next-line
10
- export const REDUCER_TOKEN = new InjectionToken<any>('Registered Reducers');
11
-
12
- /**
13
- * Define here your app state
14
- *
15
- * [IMPORTANT]
16
- * There are some **reserved** slice of the state
17
- * that you **can not** use in your application ==> app |user | notification
18
- */
19
- // eslint-disable-next-line
20
- export interface AppState extends CoreState {
21
- // [key: string]: fromTaskManager.State | any;
22
- }
23
-
24
- /**
25
- * Define here the reducers of your app
26
- */
27
- const rootReducer = Object.assign({}, coreReducers, {
28
- // [fromTaskManager.namespace]: fromTaskManager.reducers,
29
- });
30
-
31
- export const getReducers = () => rootReducer;
32
-
33
- export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [localStorageSync, storeFreeze] : [localStorageSync];
@@ -1,19 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { RouterModule } from '@angular/router';
3
- import { CommonModule } from '@angular/common';
4
- import { TranslateModule } from '@ngx-translate/core';
5
-
6
- import { EclAllModule } from '@eui/ecl';
7
-
8
- const MODULES = [
9
- RouterModule,
10
- EclAllModule,
11
- TranslateModule,
12
- CommonModule,
13
- ];
14
- @NgModule({
15
- imports: [...MODULES],
16
- declarations: [],
17
- exports: [...MODULES],
18
- })
19
- export class SharedModule {}