@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,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"/api": {
|
|
3
|
-
"target": "http://127.0.0.1:3000",
|
|
4
|
-
"secure": false
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"/api": {
|
|
3
|
+
"target": "http://127.0.0.1:3000",
|
|
4
|
+
"secure": false
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
2
|
-
"/api": {
|
|
3
|
-
"target": "http://localhost:7001",
|
|
4
|
-
"secure": false
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"/api": {
|
|
3
|
+
"target": "http://localhost:7001",
|
|
4
|
+
"secure": false
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"ignorePatterns": [
|
|
4
|
-
"**/node_modules/**",
|
|
5
|
-
"**/dist/**",
|
|
6
|
-
"**/coverage/**",
|
|
7
|
-
"**/e2e/**",
|
|
8
|
-
"**/test/**"
|
|
9
|
-
],
|
|
10
|
-
"overrides": [
|
|
11
|
-
{
|
|
12
|
-
"files": [
|
|
13
|
-
"*.ts"
|
|
14
|
-
],
|
|
15
|
-
"parserOptions": {
|
|
16
|
-
"project": [
|
|
17
|
-
"tsconfig.json",
|
|
18
|
-
"e2e/tsconfig.json"
|
|
19
|
-
],
|
|
20
|
-
"createDefaultProgram": true
|
|
21
|
-
},
|
|
22
|
-
"extends": [
|
|
23
|
-
"plugin:@angular-eslint/ng-cli-compat",
|
|
24
|
-
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
|
|
25
|
-
"plugin:@angular-eslint/template/process-inline-templates"
|
|
26
|
-
],
|
|
27
|
-
"rules": {
|
|
28
|
-
"@angular-eslint/component-selector": [
|
|
29
|
-
"error",
|
|
30
|
-
{
|
|
31
|
-
"type": "element",
|
|
32
|
-
"prefix": ["app", "app"],
|
|
33
|
-
"style": "kebab-case"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
36
|
-
"@angular-eslint/directive-selector": [
|
|
37
|
-
"error",
|
|
38
|
-
{
|
|
39
|
-
"type": "attribute",
|
|
40
|
-
"prefix": ["app", "eui"],
|
|
41
|
-
"style": "camelCase"
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
"@typescript-eslint/ban-ts-comment": "off",
|
|
45
|
-
"@typescript-eslint/ban-types": "error",
|
|
46
|
-
"@typescript-eslint/consistent-type-definitions": "off",
|
|
47
|
-
"@typescript-eslint/dot-notation": "off",
|
|
48
|
-
"@typescript-eslint/explicit-member-accessibility": [
|
|
49
|
-
"off",
|
|
50
|
-
{
|
|
51
|
-
"accessibility": "explicit"
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
"@typescript-eslint/no-require-imports": "error",
|
|
55
|
-
"@typescript-eslint/no-unused-vars": "off",
|
|
56
|
-
"@typescript-eslint/no-var-requires": "error",
|
|
57
|
-
"@typescript-eslint/require-await": "error",
|
|
58
|
-
"brace-style": [
|
|
59
|
-
"error",
|
|
60
|
-
"1tbs"
|
|
61
|
-
],
|
|
62
|
-
"id-blacklist": "off",
|
|
63
|
-
"id-match": "off",
|
|
64
|
-
"no-duplicate-case": "error",
|
|
65
|
-
"no-duplicate-imports": "off",
|
|
66
|
-
"no-invalid-this": "error",
|
|
67
|
-
"no-multiple-empty-lines": [
|
|
68
|
-
"error",
|
|
69
|
-
{
|
|
70
|
-
"max": 1
|
|
71
|
-
}
|
|
72
|
-
],
|
|
73
|
-
"no-new-func": "error",
|
|
74
|
-
"no-redeclare": "off",
|
|
75
|
-
"@typescript-eslint/no-redeclare": [
|
|
76
|
-
"error"
|
|
77
|
-
],
|
|
78
|
-
"no-template-curly-in-string": "error",
|
|
79
|
-
"no-underscore-dangle": "off",
|
|
80
|
-
"@typescript-eslint/naming-convention": [
|
|
81
|
-
"error",
|
|
82
|
-
{
|
|
83
|
-
"selector": "enum",
|
|
84
|
-
"format": [
|
|
85
|
-
"PascalCase",
|
|
86
|
-
"UPPER_CASE"
|
|
87
|
-
]
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
"@typescript-eslint/member-ordering": [
|
|
91
|
-
"error",
|
|
92
|
-
{
|
|
93
|
-
"default": [
|
|
94
|
-
"public-static-field",
|
|
95
|
-
"public-instance-field",
|
|
96
|
-
"private-static-field",
|
|
97
|
-
"private-instance-field",
|
|
98
|
-
"public-constructor",
|
|
99
|
-
"private-constructor",
|
|
100
|
-
"public-instance-method",
|
|
101
|
-
"protected-instance-method",
|
|
102
|
-
"private-instance-method"
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"files": [
|
|
110
|
-
"*.html"
|
|
111
|
-
],
|
|
112
|
-
"extends": [
|
|
113
|
-
"plugin:@angular-eslint/template/recommended"
|
|
114
|
-
],
|
|
115
|
-
"rules": {}
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"root": true,
|
|
3
|
+
"ignorePatterns": [
|
|
4
|
+
"**/node_modules/**",
|
|
5
|
+
"**/dist/**",
|
|
6
|
+
"**/coverage/**",
|
|
7
|
+
"**/e2e/**",
|
|
8
|
+
"**/test/**"
|
|
9
|
+
],
|
|
10
|
+
"overrides": [
|
|
11
|
+
{
|
|
12
|
+
"files": [
|
|
13
|
+
"*.ts"
|
|
14
|
+
],
|
|
15
|
+
"parserOptions": {
|
|
16
|
+
"project": [
|
|
17
|
+
"tsconfig.json",
|
|
18
|
+
"e2e/tsconfig.json"
|
|
19
|
+
],
|
|
20
|
+
"createDefaultProgram": true
|
|
21
|
+
},
|
|
22
|
+
"extends": [
|
|
23
|
+
"plugin:@angular-eslint/ng-cli-compat",
|
|
24
|
+
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
|
|
25
|
+
"plugin:@angular-eslint/template/process-inline-templates"
|
|
26
|
+
],
|
|
27
|
+
"rules": {
|
|
28
|
+
"@angular-eslint/component-selector": [
|
|
29
|
+
"error",
|
|
30
|
+
{
|
|
31
|
+
"type": "element",
|
|
32
|
+
"prefix": ["app", "app"],
|
|
33
|
+
"style": "kebab-case"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"@angular-eslint/directive-selector": [
|
|
37
|
+
"error",
|
|
38
|
+
{
|
|
39
|
+
"type": "attribute",
|
|
40
|
+
"prefix": ["app", "eui"],
|
|
41
|
+
"style": "camelCase"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"@typescript-eslint/ban-ts-comment": "off",
|
|
45
|
+
"@typescript-eslint/ban-types": "error",
|
|
46
|
+
"@typescript-eslint/consistent-type-definitions": "off",
|
|
47
|
+
"@typescript-eslint/dot-notation": "off",
|
|
48
|
+
"@typescript-eslint/explicit-member-accessibility": [
|
|
49
|
+
"off",
|
|
50
|
+
{
|
|
51
|
+
"accessibility": "explicit"
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"@typescript-eslint/no-require-imports": "error",
|
|
55
|
+
"@typescript-eslint/no-unused-vars": "off",
|
|
56
|
+
"@typescript-eslint/no-var-requires": "error",
|
|
57
|
+
"@typescript-eslint/require-await": "error",
|
|
58
|
+
"brace-style": [
|
|
59
|
+
"error",
|
|
60
|
+
"1tbs"
|
|
61
|
+
],
|
|
62
|
+
"id-blacklist": "off",
|
|
63
|
+
"id-match": "off",
|
|
64
|
+
"no-duplicate-case": "error",
|
|
65
|
+
"no-duplicate-imports": "off",
|
|
66
|
+
"no-invalid-this": "error",
|
|
67
|
+
"no-multiple-empty-lines": [
|
|
68
|
+
"error",
|
|
69
|
+
{
|
|
70
|
+
"max": 1
|
|
71
|
+
}
|
|
72
|
+
],
|
|
73
|
+
"no-new-func": "error",
|
|
74
|
+
"no-redeclare": "off",
|
|
75
|
+
"@typescript-eslint/no-redeclare": [
|
|
76
|
+
"error"
|
|
77
|
+
],
|
|
78
|
+
"no-template-curly-in-string": "error",
|
|
79
|
+
"no-underscore-dangle": "off",
|
|
80
|
+
"@typescript-eslint/naming-convention": [
|
|
81
|
+
"error",
|
|
82
|
+
{
|
|
83
|
+
"selector": "enum",
|
|
84
|
+
"format": [
|
|
85
|
+
"PascalCase",
|
|
86
|
+
"UPPER_CASE"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"@typescript-eslint/member-ordering": [
|
|
91
|
+
"error",
|
|
92
|
+
{
|
|
93
|
+
"default": [
|
|
94
|
+
"public-static-field",
|
|
95
|
+
"public-instance-field",
|
|
96
|
+
"private-static-field",
|
|
97
|
+
"private-instance-field",
|
|
98
|
+
"public-constructor",
|
|
99
|
+
"private-constructor",
|
|
100
|
+
"public-instance-method",
|
|
101
|
+
"protected-instance-method",
|
|
102
|
+
"private-instance-method"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"files": [
|
|
110
|
+
"*.html"
|
|
111
|
+
],
|
|
112
|
+
"extends": [
|
|
113
|
+
"plugin:@angular-eslint/template/recommended"
|
|
114
|
+
],
|
|
115
|
+
"rules": {}
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
const routes: Routes = [
|
|
5
|
-
{ path: '', redirectTo: 'screen/home', pathMatch: 'full' },
|
|
6
|
-
{ path: 'index.jsp', redirectTo: 'screen/home' },
|
|
7
|
-
{ path: 'screen/home', loadChildren: () => import('./features/home/home.module').then(m => m.Module) },
|
|
8
|
-
{ path: 'screen/module1', loadChildren: () => import('./features/module1/module1.module').then(m => m.Module) },
|
|
9
|
-
{ path: 'screen/module2', loadChildren: () => import('./features/module2/module2.module').then(m => m.Module) },
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
@NgModule({
|
|
13
|
-
imports: [
|
|
14
|
-
RouterModule.forRoot(routes),
|
|
15
|
-
],
|
|
16
|
-
})
|
|
17
|
-
export class AppRoutingModule {}
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
const routes: Routes = [
|
|
5
|
+
{ path: '', redirectTo: 'screen/home', pathMatch: 'full' },
|
|
6
|
+
{ path: 'index.jsp', redirectTo: 'screen/home' },
|
|
7
|
+
{ path: 'screen/home', loadChildren: () => import('./features/home/home.module').then(m => m.Module) },
|
|
8
|
+
{ path: 'screen/module1', loadChildren: () => import('./features/module1/module1.module').then(m => m.Module) },
|
|
9
|
+
{ path: 'screen/module2', loadChildren: () => import('./features/module2/module2.module').then(m => m.Module) },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
@NgModule({
|
|
13
|
+
imports: [
|
|
14
|
+
RouterModule.forRoot(routes),
|
|
15
|
+
],
|
|
16
|
+
})
|
|
17
|
+
export class AppRoutingModule {}
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
CONFIG_TOKEN,
|
|
4
|
-
UserService,
|
|
5
|
-
EuiAppConfig,
|
|
6
|
-
UserDetails,
|
|
7
|
-
UserPreferences,
|
|
8
|
-
I18nService,
|
|
9
|
-
} from '@eui/core';
|
|
10
|
-
import { HttpClient } from '@angular/common/http';
|
|
11
|
-
import { Observable, of, zip } from 'rxjs';
|
|
12
|
-
import { switchMap } from 'rxjs/operators';
|
|
13
|
-
|
|
14
|
-
@Injectable({
|
|
15
|
-
providedIn: 'root',
|
|
16
|
-
})
|
|
17
|
-
export class AppStarterService {
|
|
18
|
-
defaultUserPreferences: UserPreferences;
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
protected userService: UserService,
|
|
22
|
-
protected i18nService: I18nService,
|
|
23
|
-
@Inject(CONFIG_TOKEN) private config: EuiAppConfig,
|
|
24
|
-
protected http: HttpClient,
|
|
25
|
-
) {
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
start(): Observable<any> {
|
|
29
|
-
|
|
30
|
-
return zip(
|
|
31
|
-
this.initUserService().pipe(
|
|
32
|
-
switchMap((userStatus) => {
|
|
33
|
-
console.log(userStatus);
|
|
34
|
-
return this.i18nService.init();
|
|
35
|
-
}),
|
|
36
|
-
),
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Fetches user details,
|
|
42
|
-
* create user: UserState object
|
|
43
|
-
* then initialise to the UserService on run time
|
|
44
|
-
*/
|
|
45
|
-
initUserService(): Observable<any> {
|
|
46
|
-
return zip(
|
|
47
|
-
this.fetchUserDetails(),
|
|
48
|
-
).pipe(
|
|
49
|
-
switchMap(([userDetails]) => this.userService.init(userDetails)));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Fetches user details
|
|
54
|
-
*/
|
|
55
|
-
private fetchUserDetails(): Observable<UserDetails> {
|
|
56
|
-
// const url = this.config.modules.your_custom_module.your_custom_endpoint
|
|
57
|
-
const moduleCoreApi = this.config.modules.core;
|
|
58
|
-
const url = `${moduleCoreApi.base}${moduleCoreApi.userDetails}`;
|
|
59
|
-
const user = { userId: 'anonymous' };
|
|
60
|
-
|
|
61
|
-
if (!url) {
|
|
62
|
-
return of(user);
|
|
63
|
-
}
|
|
64
|
-
return this.http.get<UserDetails>(url);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
import { Inject, Injectable } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
CONFIG_TOKEN,
|
|
4
|
+
UserService,
|
|
5
|
+
EuiAppConfig,
|
|
6
|
+
UserDetails,
|
|
7
|
+
UserPreferences,
|
|
8
|
+
I18nService,
|
|
9
|
+
} from '@eui/core';
|
|
10
|
+
import { HttpClient } from '@angular/common/http';
|
|
11
|
+
import { Observable, of, zip } from 'rxjs';
|
|
12
|
+
import { switchMap } from 'rxjs/operators';
|
|
13
|
+
|
|
14
|
+
@Injectable({
|
|
15
|
+
providedIn: 'root',
|
|
16
|
+
})
|
|
17
|
+
export class AppStarterService {
|
|
18
|
+
defaultUserPreferences: UserPreferences;
|
|
19
|
+
|
|
20
|
+
constructor(
|
|
21
|
+
protected userService: UserService,
|
|
22
|
+
protected i18nService: I18nService,
|
|
23
|
+
@Inject(CONFIG_TOKEN) private config: EuiAppConfig,
|
|
24
|
+
protected http: HttpClient,
|
|
25
|
+
) {
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
start(): Observable<any> {
|
|
29
|
+
|
|
30
|
+
return zip(
|
|
31
|
+
this.initUserService().pipe(
|
|
32
|
+
switchMap((userStatus) => {
|
|
33
|
+
console.log(userStatus);
|
|
34
|
+
return this.i18nService.init();
|
|
35
|
+
}),
|
|
36
|
+
),
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Fetches user details,
|
|
42
|
+
* create user: UserState object
|
|
43
|
+
* then initialise to the UserService on run time
|
|
44
|
+
*/
|
|
45
|
+
initUserService(): Observable<any> {
|
|
46
|
+
return zip(
|
|
47
|
+
this.fetchUserDetails(),
|
|
48
|
+
).pipe(
|
|
49
|
+
switchMap(([userDetails]) => this.userService.init(userDetails)));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Fetches user details
|
|
54
|
+
*/
|
|
55
|
+
private fetchUserDetails(): Observable<UserDetails> {
|
|
56
|
+
// const url = this.config.modules.your_custom_module.your_custom_endpoint
|
|
57
|
+
const moduleCoreApi = this.config.modules.core;
|
|
58
|
+
const url = `${moduleCoreApi.base}${moduleCoreApi.userDetails}`;
|
|
59
|
+
const user = { userId: 'anonymous' };
|
|
60
|
+
|
|
61
|
+
if (!url) {
|
|
62
|
+
return of(user);
|
|
63
|
+
}
|
|
64
|
+
return this.http.get<UserDetails>(url);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<eui-app [userInfos]="userInfos?.fullName">
|
|
2
|
-
<eui-app-toolbar>
|
|
3
|
-
<eui-toolbar>
|
|
4
|
-
<eui-toolbar-logo></eui-toolbar-logo>
|
|
5
|
-
<eui-toolbar-app appName="appName"></eui-toolbar-app>
|
|
6
|
-
<eui-toolbar-environment>MOCK</eui-toolbar-environment>
|
|
7
|
-
<eui-toolbar-items euiPositionRight>
|
|
8
|
-
<eui-toolbar-item-user-profile>
|
|
9
|
-
<eui-user-profile-menu>
|
|
10
|
-
<eui-user-profile-menu-item>
|
|
11
|
-
<eui-icon-svg icon="old-eui-person-thin"></eui-icon-svg> {{ 'eui.my-profile-informations' | translate }}
|
|
12
|
-
</eui-user-profile-menu-item>
|
|
13
|
-
<eui-user-profile-menu-item>
|
|
14
|
-
<eui-icon-svg icon="old-eui-logout-thin"></eui-icon-svg> {{ 'eui.sign-out' | translate }}
|
|
15
|
-
</eui-user-profile-menu-item>
|
|
16
|
-
</eui-user-profile-menu>
|
|
17
|
-
</eui-toolbar-item-user-profile>
|
|
18
|
-
<eui-toolbar-item-notifications>
|
|
19
|
-
<eui-notifications [count]="notificationItems?.length" [items]="notificationItems"></eui-notifications>
|
|
20
|
-
</eui-toolbar-item-notifications>
|
|
21
|
-
</eui-toolbar-items>
|
|
22
|
-
</eui-toolbar>
|
|
23
|
-
</eui-app-toolbar>
|
|
24
|
-
<eui-app-sidebar>
|
|
25
|
-
<eui-app-sidebar-body>
|
|
26
|
-
<eui-app-sidebar-menu [items]="sidebarItems"></eui-app-sidebar-menu>
|
|
27
|
-
</eui-app-sidebar-body>
|
|
28
|
-
</eui-app-sidebar>
|
|
29
|
-
</eui-app>
|
|
1
|
+
<eui-app [userInfos]="userInfos?.fullName">
|
|
2
|
+
<eui-app-toolbar>
|
|
3
|
+
<eui-toolbar>
|
|
4
|
+
<eui-toolbar-logo></eui-toolbar-logo>
|
|
5
|
+
<eui-toolbar-app appName="appName"></eui-toolbar-app>
|
|
6
|
+
<eui-toolbar-environment>MOCK</eui-toolbar-environment>
|
|
7
|
+
<eui-toolbar-items euiPositionRight>
|
|
8
|
+
<eui-toolbar-item-user-profile>
|
|
9
|
+
<eui-user-profile-menu>
|
|
10
|
+
<eui-user-profile-menu-item>
|
|
11
|
+
<eui-icon-svg icon="old-eui-person-thin"></eui-icon-svg> {{ 'eui.my-profile-informations' | translate }}
|
|
12
|
+
</eui-user-profile-menu-item>
|
|
13
|
+
<eui-user-profile-menu-item>
|
|
14
|
+
<eui-icon-svg icon="old-eui-logout-thin"></eui-icon-svg> {{ 'eui.sign-out' | translate }}
|
|
15
|
+
</eui-user-profile-menu-item>
|
|
16
|
+
</eui-user-profile-menu>
|
|
17
|
+
</eui-toolbar-item-user-profile>
|
|
18
|
+
<eui-toolbar-item-notifications>
|
|
19
|
+
<eui-notifications [count]="notificationItems?.length" [items]="notificationItems"></eui-notifications>
|
|
20
|
+
</eui-toolbar-item-notifications>
|
|
21
|
+
</eui-toolbar-items>
|
|
22
|
+
</eui-toolbar>
|
|
23
|
+
</eui-app-toolbar>
|
|
24
|
+
<eui-app-sidebar>
|
|
25
|
+
<eui-app-sidebar-body>
|
|
26
|
+
<eui-app-sidebar-menu [items]="sidebarItems"></eui-app-sidebar-menu>
|
|
27
|
+
</eui-app-sidebar-body>
|
|
28
|
+
</eui-app-sidebar>
|
|
29
|
+
</eui-app>
|
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
|
-
import {
|
|
4
|
-
getUserState,
|
|
5
|
-
UserState,
|
|
6
|
-
} from '@eui/core';
|
|
7
|
-
import { Observable, Subscription } from 'rxjs';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: 'app-root',
|
|
11
|
-
templateUrl: './app.component.html',
|
|
12
|
-
})
|
|
13
|
-
export class AppComponent implements OnInit, OnDestroy {
|
|
14
|
-
userInfos: UserState;
|
|
15
|
-
// Observe state changes
|
|
16
|
-
userState: Observable<UserState>;
|
|
17
|
-
// an array to keep all subscriptions and easily unsubscribe
|
|
18
|
-
subs: Subscription[] = [];
|
|
19
|
-
|
|
20
|
-
sidebarItems = [
|
|
21
|
-
{ label: 'Home', url: 'screen/home' },
|
|
22
|
-
{ label: 'Module 1', url: 'screen/module1', children: [
|
|
23
|
-
{ label: 'page 1', url: 'screen/module1/page1' },
|
|
24
|
-
{ label: 'page 2', url: 'screen/module1/page2' },
|
|
25
|
-
] },
|
|
26
|
-
{ label: 'Module 2', url: 'screen/module2' },
|
|
27
|
-
];
|
|
28
|
-
notificationItems = [
|
|
29
|
-
{ label: 'Title label 1', subLabel: 'Subtitle label' },
|
|
30
|
-
{ label: 'Title label 2', subLabel: 'Subtitle label' },
|
|
31
|
-
{ label: 'Title label 3', subLabel: 'Subtitle label' },
|
|
32
|
-
{ label: 'Title label 4', subLabel: 'Subtitle label' },
|
|
33
|
-
];
|
|
34
|
-
|
|
35
|
-
constructor(
|
|
36
|
-
private store: Store<any>,
|
|
37
|
-
) {
|
|
38
|
-
this.userState = this.store.select(getUserState);
|
|
39
|
-
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
40
|
-
this.userInfos = { ...user };
|
|
41
|
-
console.log(user);
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
ngOnInit() {
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ngOnDestroy() {
|
|
49
|
-
this.subs.forEach((s: Subscription) => s.unsubscribe());
|
|
50
|
-
}
|
|
51
|
-
}
|
|
1
|
+
import { Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Store } from '@ngrx/store';
|
|
3
|
+
import {
|
|
4
|
+
getUserState,
|
|
5
|
+
UserState,
|
|
6
|
+
} from '@eui/core';
|
|
7
|
+
import { Observable, Subscription } from 'rxjs';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'app-root',
|
|
11
|
+
templateUrl: './app.component.html',
|
|
12
|
+
})
|
|
13
|
+
export class AppComponent implements OnInit, OnDestroy {
|
|
14
|
+
userInfos: UserState;
|
|
15
|
+
// Observe state changes
|
|
16
|
+
userState: Observable<UserState>;
|
|
17
|
+
// an array to keep all subscriptions and easily unsubscribe
|
|
18
|
+
subs: Subscription[] = [];
|
|
19
|
+
|
|
20
|
+
sidebarItems = [
|
|
21
|
+
{ label: 'Home', url: 'screen/home' },
|
|
22
|
+
{ label: 'Module 1', url: 'screen/module1', children: [
|
|
23
|
+
{ label: 'page 1', url: 'screen/module1/page1' },
|
|
24
|
+
{ label: 'page 2', url: 'screen/module1/page2' },
|
|
25
|
+
] },
|
|
26
|
+
{ label: 'Module 2', url: 'screen/module2' },
|
|
27
|
+
];
|
|
28
|
+
notificationItems = [
|
|
29
|
+
{ label: 'Title label 1', subLabel: 'Subtitle label' },
|
|
30
|
+
{ label: 'Title label 2', subLabel: 'Subtitle label' },
|
|
31
|
+
{ label: 'Title label 3', subLabel: 'Subtitle label' },
|
|
32
|
+
{ label: 'Title label 4', subLabel: 'Subtitle label' },
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
constructor(
|
|
36
|
+
private store: Store<any>,
|
|
37
|
+
) {
|
|
38
|
+
this.userState = this.store.select(getUserState);
|
|
39
|
+
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
40
|
+
this.userInfos = { ...user };
|
|
41
|
+
console.log(user);
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
ngOnInit() {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
ngOnDestroy() {
|
|
49
|
+
this.subs.forEach((s: Subscription) => s.unsubscribe());
|
|
50
|
+
}
|
|
51
|
+
}
|