@eui/cli 15.4.0 → 15.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.version.properties +1 -1
- package/LICENSE +296 -296
- package/README.md +26 -26
- package/bin/eui-cli.js +70 -70
- package/lib/build.js +153 -153
- package/lib/cli.js +111 -111
- package/lib/config.js +54 -54
- package/lib/generators.js +64 -64
- package/lib/install.js +54 -54
- package/lib/maven-build/build.xml +115 -115
- package/lib/maven-build/pom.xml +64 -64
- package/lib/post-build.js +33 -33
- package/lib/skeletons/_angular/base/.browserslistrc +16 -16
- package/lib/skeletons/_angular/base/.editorconfig +16 -16
- package/lib/skeletons/_angular/base/.euirc.json +8 -8
- package/lib/skeletons/_angular/base/.stylelintrc +24 -24
- package/lib/skeletons/_angular/base/README.md +26 -26
- package/lib/skeletons/_angular/base/angular.json +176 -175
- package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +50 -50
- package/lib/skeletons/_angular/base/mock/app/models/user.js +8 -8
- package/lib/skeletons/_angular/base/mock/app/routes/index.js +5 -5
- package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +24 -24
- package/lib/skeletons/_angular/base/mock/db/db.json +12 -12
- package/lib/skeletons/_angular/base/mock/server.js +21 -21
- package/lib/skeletons/_angular/base/package.json +24 -24
- package/lib/skeletons/_angular/base/proxy-mock.conf.json +6 -6
- package/lib/skeletons/_angular/base/proxy.conf.json +6 -6
- package/lib/skeletons/_angular/base/src/.eslintrc.json +118 -118
- package/lib/skeletons/_angular/base/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +66 -66
- package/lib/skeletons/_angular/base/src/app/app.component.html +29 -29
- package/lib/skeletons/_angular/base/src/app/app.component.ts +51 -51
- package/lib/skeletons/_angular/base/src/app/app.module.ts +35 -35
- package/lib/skeletons/_angular/base/src/app/core/core.module.ts +87 -87
- package/lib/skeletons/_angular/base/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +39 -39
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +8 -8
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +45 -45
- package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +8 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +7 -7
- package/lib/skeletons/_angular/base/src/assets/i18n/en.json +6 -6
- package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +6 -6
- package/lib/skeletons/_angular/base/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/base/src/config/index.ts +8 -8
- package/lib/skeletons/_angular/base/src/config/modules.ts +7 -7
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +6 -6
- package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/base/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/base/src/index.html +21 -21
- package/lib/skeletons/_angular/base/src/karma.conf.js +7 -7
- package/lib/skeletons/_angular/base/src/main.ts +14 -14
- package/lib/skeletons/_angular/base/src/polyfills.ts +89 -89
- package/lib/skeletons/_angular/base/src/styles.scss +1 -1
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +18 -18
- package/lib/skeletons/_angular/base/src/tsconfig.spec.json +14 -14
- package/lib/skeletons/_angular/base/tsconfig.json +27 -27
- package/lib/skeletons/_angular/base-mobile/angular.json +160 -160
- package/lib/skeletons/_angular/base-mobile/ionic.config.json +5 -5
- package/lib/skeletons/_angular/base-mobile/ngsw-config.json +33 -33
- package/lib/skeletons/_angular/base-mobile/package.json +28 -28
- package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +73 -73
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +55 -55
- package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +44 -44
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +89 -89
- package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +31 -31
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +14 -14
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +15 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +21 -21
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +11 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +7 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +17 -17
- package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +16 -16
- package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +18 -18
- package/lib/skeletons/_angular/base-mobile/src/index.html +27 -27
- package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +51 -51
- package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +19 -19
- package/lib/skeletons/_angular/options/ecl/angular.json +193 -193
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.html +262 -262
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +59 -59
- package/lib/skeletons/_angular/options/ecl/src/app/features/home/home.component.html +70 -70
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page1/page1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/components/page2/page2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module1/module1.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/features/module2/module2.component.html +1 -1
- package/lib/skeletons/_angular/options/ecl/src/app/shared/shared.module.ts +19 -19
- package/lib/skeletons/_angular/options/ecl/src/config/global.ts +20 -20
- package/lib/skeletons/_angular/options/openid-jwt/package.json +22 -22
- package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +94 -94
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-dev.json +24 -24
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local-mock.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-local.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config-prod.json +23 -23
- package/lib/skeletons/_angular/options/openid-jwt/src/assets/config/env-json-config.json +10 -10
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.prod.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/environments/environment.ts +11 -11
- package/lib/skeletons/_angular/options/openid-jwt/src/index.html +21 -21
- package/lib/skeletons/web-maven/package.json +17 -17
- package/lib/skeletons/web-maven/pom.xml +55 -55
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +22 -22
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +24 -24
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +23 -23
- package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +7 -7
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +10 -10
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +38 -38
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +15 -15
- package/lib/skeletons/web-maven/src/main/webapp/index.jsp +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +77 -77
- package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +84 -84
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +46 -46
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +65 -65
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +44 -44
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +10 -10
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +26 -26
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +20 -20
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +45 -45
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +17 -17
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +29 -29
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +35 -35
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +372 -372
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +47 -47
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +9 -9
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +25 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +10 -10
- package/lib/skeletons/web-spring-boot/pom.xml +30 -30
- package/lib/skeletons/web-symfony/myapp-web/angular.json +170 -170
- package/lib/skeletons/web-symfony/myapp-web/package.json +23 -23
- package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +18 -18
- package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +77 -77
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +160 -160
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +104 -104
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +6 -6
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +16 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +29 -29
- package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/.env +28 -28
- package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +42 -42
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +67 -67
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +3572 -3572
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +21 -21
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +19 -19
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +29 -29
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +5 -5
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +17 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +32 -32
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +4 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +3 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +27 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +196 -196
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +99 -99
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +53 -53
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +31 -31
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +35 -35
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +51 -51
- package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +274 -274
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +12 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +20 -20
- package/lib/utils.js +17 -17
- package/package.json +2 -2
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Module1RoutingModule } from './module1-routing.module';
|
|
3
|
-
import { Module1Component } from './module1.component';
|
|
4
|
-
import { Page1Component } from './components/page1/page1.component';
|
|
5
|
-
import { Page2Component } from './components/page2/page2.component';
|
|
6
|
-
|
|
7
|
-
import { SharedModule } from '@shared/shared.module';
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
imports: [
|
|
11
|
-
SharedModule,
|
|
12
|
-
Module1RoutingModule,
|
|
13
|
-
],
|
|
14
|
-
declarations: [
|
|
15
|
-
Module1Component,
|
|
16
|
-
Page1Component,
|
|
17
|
-
Page2Component,
|
|
18
|
-
],
|
|
19
|
-
})
|
|
20
|
-
export class Module {
|
|
21
|
-
}
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { Module1RoutingModule } from './module1-routing.module';
|
|
3
|
+
import { Module1Component } from './module1.component';
|
|
4
|
+
import { Page1Component } from './components/page1/page1.component';
|
|
5
|
+
import { Page2Component } from './components/page2/page2.component';
|
|
6
|
+
|
|
7
|
+
import { SharedModule } from '@shared/shared.module';
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
imports: [
|
|
11
|
+
SharedModule,
|
|
12
|
+
Module1RoutingModule,
|
|
13
|
+
],
|
|
14
|
+
declarations: [
|
|
15
|
+
Module1Component,
|
|
16
|
+
Page1Component,
|
|
17
|
+
Page2Component,
|
|
18
|
+
],
|
|
19
|
+
})
|
|
20
|
+
export class Module {
|
|
21
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { Module2Component } from './module2.component';
|
|
4
|
-
|
|
5
|
-
const routes: Routes = [
|
|
6
|
-
{ path: '', component: Module2Component },
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
imports: [
|
|
11
|
-
RouterModule.forChild([
|
|
12
|
-
{ path: '', component: Module2Component }
|
|
13
|
-
])
|
|
14
|
-
],
|
|
15
|
-
})
|
|
16
|
-
export class Module2RoutingModule {}
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
+
import { Module2Component } from './module2.component';
|
|
4
|
+
|
|
5
|
+
const routes: Routes = [
|
|
6
|
+
{ path: '', component: Module2Component },
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
@NgModule({
|
|
10
|
+
imports: [
|
|
11
|
+
RouterModule.forChild([
|
|
12
|
+
{ path: '', component: Module2Component }
|
|
13
|
+
])
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
export class Module2RoutingModule {}
|
|
@@ -1,7 +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>
|
|
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>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
templateUrl: './module2.component.html'
|
|
5
|
-
})
|
|
6
|
-
export class Module2Component {
|
|
7
|
-
}
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
templateUrl: './module2.component.html'
|
|
5
|
+
})
|
|
6
|
+
export class Module2Component {
|
|
7
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Module2RoutingModule } from './module2-routing.module';
|
|
3
|
-
import { Module2Component } from './module2.component';
|
|
4
|
-
|
|
5
|
-
import { SharedModule } from '@shared/shared.module';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [
|
|
9
|
-
SharedModule,
|
|
10
|
-
Module2RoutingModule,
|
|
11
|
-
],
|
|
12
|
-
declarations: [
|
|
13
|
-
Module2Component,
|
|
14
|
-
],
|
|
15
|
-
})
|
|
16
|
-
export class Module {
|
|
17
|
-
}
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { Module2RoutingModule } from './module2-routing.module';
|
|
3
|
+
import { Module2Component } from './module2.component';
|
|
4
|
+
|
|
5
|
+
import { SharedModule } from '@shared/shared.module';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
imports: [
|
|
9
|
+
SharedModule,
|
|
10
|
+
Module2RoutingModule,
|
|
11
|
+
],
|
|
12
|
+
declarations: [
|
|
13
|
+
Module2Component,
|
|
14
|
+
],
|
|
15
|
+
})
|
|
16
|
+
export class Module {
|
|
17
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
// Angular
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
|
|
6
|
-
// Common 3rd party module used accross the app
|
|
7
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
8
|
-
|
|
9
|
-
// eUI specific modules - commonly used accross the app - prefered way
|
|
10
|
-
// keep here to avoid imports within features modules
|
|
11
|
-
import { EuiPageModule } from '@eui/components/eui-page';
|
|
12
|
-
import { EuiIconModule } from '@eui/components/eui-icon';
|
|
13
|
-
|
|
14
|
-
// import ALL eUI components
|
|
15
|
-
// import { EuiAllModule } from '@eui/components';
|
|
16
|
-
|
|
17
|
-
// if declared, add eui-legacy.css + eui-legacy-utilities.css in angular.json styles config
|
|
18
|
-
// import { UxAllModule } from '@eui/components/legacy';
|
|
19
|
-
|
|
20
|
-
const MODULES = [
|
|
21
|
-
CommonModule,
|
|
22
|
-
FormsModule, ReactiveFormsModule,
|
|
23
|
-
|
|
24
|
-
TranslateModule,
|
|
25
|
-
|
|
26
|
-
// put here commonly used eUI modules components throughout the application
|
|
27
|
-
EuiPageModule,
|
|
28
|
-
EuiIconModule,
|
|
29
|
-
|
|
30
|
-
// in case of you really want to import all eUI components, see commented imports above
|
|
31
|
-
// EuiAllModule,
|
|
32
|
-
// UxAllModule,
|
|
33
|
-
];
|
|
34
|
-
|
|
35
|
-
@NgModule({
|
|
36
|
-
imports: [
|
|
37
|
-
...MODULES,
|
|
38
|
-
],
|
|
39
|
-
declarations: [
|
|
40
|
-
],
|
|
41
|
-
exports: [
|
|
42
|
-
...MODULES,
|
|
43
|
-
]
|
|
44
|
-
})
|
|
45
|
-
export class SharedModule {}
|
|
1
|
+
// Angular
|
|
2
|
+
import { NgModule } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
|
|
6
|
+
// Common 3rd party module used accross the app
|
|
7
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
8
|
+
|
|
9
|
+
// eUI specific modules - commonly used accross the app - prefered way
|
|
10
|
+
// keep here to avoid imports within features modules
|
|
11
|
+
import { EuiPageModule } from '@eui/components/eui-page';
|
|
12
|
+
import { EuiIconModule } from '@eui/components/eui-icon';
|
|
13
|
+
|
|
14
|
+
// import ALL eUI components
|
|
15
|
+
// import { EuiAllModule } from '@eui/components';
|
|
16
|
+
|
|
17
|
+
// if declared, add eui-legacy.css + eui-legacy-utilities.css in angular.json styles config
|
|
18
|
+
// import { UxAllModule } from '@eui/components/legacy';
|
|
19
|
+
|
|
20
|
+
const MODULES = [
|
|
21
|
+
CommonModule,
|
|
22
|
+
FormsModule, ReactiveFormsModule,
|
|
23
|
+
|
|
24
|
+
TranslateModule,
|
|
25
|
+
|
|
26
|
+
// put here commonly used eUI modules components throughout the application
|
|
27
|
+
EuiPageModule,
|
|
28
|
+
EuiIconModule,
|
|
29
|
+
|
|
30
|
+
// in case of you really want to import all eUI components, see commented imports above
|
|
31
|
+
// EuiAllModule,
|
|
32
|
+
// UxAllModule,
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
@NgModule({
|
|
36
|
+
imports: [
|
|
37
|
+
...MODULES,
|
|
38
|
+
],
|
|
39
|
+
declarations: [
|
|
40
|
+
],
|
|
41
|
+
exports: [
|
|
42
|
+
...MODULES,
|
|
43
|
+
]
|
|
44
|
+
})
|
|
45
|
+
export class SharedModule {}
|
|
@@ -1,18 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modules": {
|
|
3
|
-
"core": {
|
|
4
|
-
"base": "SERVER_HOST/api",
|
|
5
|
-
"userDetails": "/user-details"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"modules": {
|
|
3
|
+
"core": {
|
|
4
|
+
"base": "SERVER_HOST/api",
|
|
5
|
+
"userDetails": "/user-details"
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modules": {
|
|
3
|
-
"core": {
|
|
4
|
-
"base": "SERVER_HOST/api",
|
|
5
|
-
"userDetails": "/user-details"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"modules": {
|
|
3
|
+
"core": {
|
|
4
|
+
"base": "SERVER_HOST/api",
|
|
5
|
+
"userDetails": "/user-details"
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"modules": {
|
|
3
|
-
"core": {
|
|
4
|
-
"userDetails": "/user-details"
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"modules": {
|
|
3
|
+
"core": {
|
|
4
|
+
"userDetails": "/user-details"
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -1,7 +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"
|
|
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
7
|
}
|
|
@@ -1,7 +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"
|
|
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
7
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
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: ['en', 'fr'],
|
|
9
|
-
},
|
|
10
|
-
i18nLoader: {
|
|
11
|
-
i18nFolders: ['i18n-eui', 'i18n', 'i18n-ecl'],
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
user: {
|
|
15
|
-
defaultUserPreferences: {
|
|
16
|
-
dashboard: { },
|
|
17
|
-
lang: 'en',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
};
|
|
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: ['en', 'fr'],
|
|
9
|
+
},
|
|
10
|
+
i18nLoader: {
|
|
11
|
+
i18nFolders: ['i18n-eui', 'i18n', 'i18n-ecl'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
user: {
|
|
15
|
+
defaultUserPreferences: {
|
|
16
|
+
dashboard: { },
|
|
17
|
+
lang: 'en',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
};
|
|
@@ -1,8 +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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ModulesConfig } from '@eui/core';
|
|
2
|
-
|
|
3
|
-
export const MODULES: ModulesConfig = {
|
|
4
|
-
core: {
|
|
5
|
-
base: '/api',
|
|
6
|
-
}
|
|
7
|
-
};
|
|
1
|
+
import { ModulesConfig } from '@eui/core';
|
|
2
|
+
|
|
3
|
+
export const MODULES: ModulesConfig = {
|
|
4
|
+
core: {
|
|
5
|
+
base: '/api',
|
|
6
|
+
}
|
|
7
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
// Dummy test
|
|
2
|
-
describe('Test', () => {
|
|
3
|
-
it('should work', () => {
|
|
4
|
-
expect(true).toBe(true);
|
|
5
|
-
});
|
|
6
|
-
});
|
|
1
|
+
// Dummy test
|
|
2
|
+
describe('Test', () => {
|
|
3
|
+
it('should work', () => {
|
|
4
|
+
expect(true).toBe(true);
|
|
5
|
+
});
|
|
6
|
+
});
|
|
@@ -1,11 +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
|
-
};
|
|
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
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EuiEnvConfig } from '@eui/core';
|
|
2
|
-
|
|
3
|
-
export const environment: EuiEnvConfig = {
|
|
4
|
-
production: false,
|
|
5
|
-
enableDevToolRedux: true,
|
|
6
|
-
envDynamicConfig: {
|
|
7
|
-
uri: 'assets/env-json-config.json',
|
|
8
|
-
deepMerge: true,
|
|
9
|
-
merge: ['modules'],
|
|
10
|
-
},
|
|
11
|
-
};
|
|
1
|
+
import { EuiEnvConfig } from '@eui/core';
|
|
2
|
+
|
|
3
|
+
export const environment: EuiEnvConfig = {
|
|
4
|
+
production: false,
|
|
5
|
+
enableDevToolRedux: true,
|
|
6
|
+
envDynamicConfig: {
|
|
7
|
+
uri: 'assets/env-json-config.json',
|
|
8
|
+
deepMerge: true,
|
|
9
|
+
merge: ['modules'],
|
|
10
|
+
},
|
|
11
|
+
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="utf-8">
|
|
6
|
-
<title>Application name</title>
|
|
7
|
-
<base href="/">
|
|
8
|
-
|
|
9
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
10
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
11
|
-
</head>
|
|
12
|
-
|
|
13
|
-
<body>
|
|
14
|
-
<app-root>
|
|
15
|
-
<div id="loader-wrapper">
|
|
16
|
-
<div id="loader"></div>
|
|
17
|
-
</div>
|
|
18
|
-
</app-root>
|
|
19
|
-
</body>
|
|
20
|
-
|
|
21
|
-
</html>
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<title>Application name</title>
|
|
7
|
+
<base href="/">
|
|
8
|
+
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
10
|
+
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
11
|
+
</head>
|
|
12
|
+
|
|
13
|
+
<body>
|
|
14
|
+
<app-root>
|
|
15
|
+
<div id="loader-wrapper">
|
|
16
|
+
<div id="loader"></div>
|
|
17
|
+
</div>
|
|
18
|
+
</app-root>
|
|
19
|
+
</body>
|
|
20
|
+
|
|
21
|
+
</html>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const karmaConfig = require('@eui/tools/karma/karma.conf');
|
|
2
|
-
|
|
3
|
-
module.exports = function (config) {
|
|
4
|
-
config.set(
|
|
5
|
-
karmaConfig.get(config)
|
|
6
|
-
);
|
|
7
|
-
}
|
|
1
|
+
const karmaConfig = require('@eui/tools/karma/karma.conf');
|
|
2
|
+
|
|
3
|
+
module.exports = function (config) {
|
|
4
|
+
config.set(
|
|
5
|
+
karmaConfig.get(config)
|
|
6
|
+
);
|
|
7
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
|
-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
-
import { preInitApp } from '@eui/core';
|
|
4
|
-
|
|
5
|
-
import { AppModule } from './app/app.module';
|
|
6
|
-
import { environment } from './environments/environment';
|
|
7
|
-
|
|
8
|
-
if (environment.production) {
|
|
9
|
-
enableProdMode();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
preInitApp(environment).then(() => platformBrowserDynamic().bootstrapModule(AppModule)
|
|
13
|
-
.catch(err => console.error(err)),
|
|
14
|
-
);
|
|
1
|
+
import { enableProdMode } from '@angular/core';
|
|
2
|
+
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|
3
|
+
import { preInitApp } from '@eui/core';
|
|
4
|
+
|
|
5
|
+
import { AppModule } from './app/app.module';
|
|
6
|
+
import { environment } from './environments/environment';
|
|
7
|
+
|
|
8
|
+
if (environment.production) {
|
|
9
|
+
enableProdMode();
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
preInitApp(environment).then(() => platformBrowserDynamic().bootstrapModule(AppModule)
|
|
13
|
+
.catch(err => console.error(err)),
|
|
14
|
+
);
|