@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,175 +1,176 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"newProjectRoot": "projects",
|
|
5
|
-
"defaultProject": "app",
|
|
6
|
-
"cli": {
|
|
7
|
-
"analytics": false
|
|
8
|
-
},
|
|
9
|
-
"projects": {
|
|
10
|
-
"app": {
|
|
11
|
-
"root": "",
|
|
12
|
-
"sourceRoot": "src",
|
|
13
|
-
"projectType": "application",
|
|
14
|
-
"prefix": "app",
|
|
15
|
-
"schematics": {
|
|
16
|
-
"@schematics/angular:component": {
|
|
17
|
-
"style": "scss"
|
|
18
|
-
},
|
|
19
|
-
"@schematics/angular:application": {
|
|
20
|
-
"strict": true
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"architect": {
|
|
24
|
-
"build": {
|
|
25
|
-
"builder": "@angular-devkit/build-angular:browser",
|
|
26
|
-
"options": {
|
|
27
|
-
"outputPath": "dist",
|
|
28
|
-
"index": "src/index.html",
|
|
29
|
-
"main": "src/main.ts",
|
|
30
|
-
"polyfills": "src/polyfills.ts",
|
|
31
|
-
"tsConfig": "src/tsconfig.app.json",
|
|
32
|
-
"inlineStyleLanguage": "scss",
|
|
33
|
-
"assets": [
|
|
34
|
-
"src/favicon.ico",
|
|
35
|
-
"src/assets",
|
|
36
|
-
{
|
|
37
|
-
"glob": "**/*",
|
|
38
|
-
"input": "node_modules/@eui/core/assets/",
|
|
39
|
-
"output": "./assets"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"glob": "**/*",
|
|
43
|
-
"input": "node_modules/@eui/styles-base/src/assets/",
|
|
44
|
-
"output": "./assets"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"styles": [
|
|
48
|
-
"node_modules/@eui/styles/dist/styles/eui.css",
|
|
49
|
-
"node_modules/@eui/styles/dist/styles/eui-extra-utilities.css",
|
|
50
|
-
"node_modules/@eui/styles/dist/styles/eui-legacy-bootstrap.css",
|
|
51
|
-
"node_modules/@eui/styles/dist/styles/eui-legacy-icons-font.css",
|
|
52
|
-
"src/styles.scss"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"configurations": {
|
|
56
|
-
"production": {
|
|
57
|
-
"fileReplacements": [
|
|
58
|
-
{
|
|
59
|
-
"replace": "src/environments/environment.ts",
|
|
60
|
-
"with": "src/environments/environment.prod.ts"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
"optimization": false,
|
|
64
|
-
"outputHashing": "all",
|
|
65
|
-
"sourceMap": false,
|
|
66
|
-
"namedChunks": true,
|
|
67
|
-
"aot": true,
|
|
68
|
-
"extractLicenses": true,
|
|
69
|
-
"vendorChunk": false,
|
|
70
|
-
"buildOptimizer": false,
|
|
71
|
-
"budgets": [
|
|
72
|
-
{
|
|
73
|
-
"type": "initial",
|
|
74
|
-
"maximumWarning": "2mb",
|
|
75
|
-
"maximumError": "11mb"
|
|
76
|
-
}
|
|
77
|
-
]
|
|
78
|
-
},
|
|
79
|
-
"production-optimized": {
|
|
80
|
-
"fileReplacements": [
|
|
81
|
-
{
|
|
82
|
-
"replace": "src/environments/environment.ts",
|
|
83
|
-
"with": "src/environments/environment.prod.ts"
|
|
84
|
-
}
|
|
85
|
-
],
|
|
86
|
-
"optimization": {
|
|
87
|
-
"scripts": true,
|
|
88
|
-
"styles": {
|
|
89
|
-
"minify": false,
|
|
90
|
-
"inlineCritical": true
|
|
91
|
-
},
|
|
92
|
-
"fonts": true
|
|
93
|
-
},
|
|
94
|
-
"outputHashing": "all",
|
|
95
|
-
"sourceMap": false,
|
|
96
|
-
"namedChunks": true,
|
|
97
|
-
"aot": true,
|
|
98
|
-
"extractLicenses": true,
|
|
99
|
-
"vendorChunk": false,
|
|
100
|
-
"buildOptimizer": true,
|
|
101
|
-
"budgets": [
|
|
102
|
-
{
|
|
103
|
-
"type": "initial",
|
|
104
|
-
"maximumWarning": "2mb",
|
|
105
|
-
"maximumError": "6mb"
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
},
|
|
109
|
-
"development": {
|
|
110
|
-
"buildOptimizer": false,
|
|
111
|
-
"optimization": false,
|
|
112
|
-
"vendorChunk": true,
|
|
113
|
-
"extractLicenses": false,
|
|
114
|
-
"sourceMap": true,
|
|
115
|
-
"namedChunks": true
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"defaultConfiguration": "production"
|
|
119
|
-
},
|
|
120
|
-
"serve": {
|
|
121
|
-
"builder": "@angular-devkit/build-angular:dev-server",
|
|
122
|
-
"options": {
|
|
123
|
-
"browserTarget": "app:build"
|
|
124
|
-
},
|
|
125
|
-
"configurations": {
|
|
126
|
-
"proxy-mock": {
|
|
127
|
-
"browserTarget": "app:build:development",
|
|
128
|
-
"proxyConfig": "proxy-mock.conf.json"
|
|
129
|
-
},
|
|
130
|
-
"production": {
|
|
131
|
-
"browserTarget": "app:build:production"
|
|
132
|
-
},
|
|
133
|
-
"development": {
|
|
134
|
-
"browserTarget": "app:build:development"
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
"defaultConfiguration": "development"
|
|
138
|
-
},
|
|
139
|
-
"lint": {
|
|
140
|
-
"builder": "@angular-eslint/builder:lint",
|
|
141
|
-
"options": {
|
|
142
|
-
"lintFilePatterns": [
|
|
143
|
-
"src/**/*.ts",
|
|
144
|
-
"src/**/*.html"
|
|
145
|
-
],
|
|
146
|
-
"eslintConfig": "src/.eslintrc.json"
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"test": {
|
|
150
|
-
"builder": "@angular-devkit/build-angular:karma",
|
|
151
|
-
"options": {
|
|
152
|
-
"polyfills": [
|
|
153
|
-
"zone.js",
|
|
154
|
-
"zone.js/testing"
|
|
155
|
-
],
|
|
156
|
-
"tsConfig": "src/tsconfig.spec.json",
|
|
157
|
-
"karmaConfig": "src/karma.conf.js",
|
|
158
|
-
"inlineStyleLanguage": "scss",
|
|
159
|
-
"assets": [
|
|
160
|
-
{
|
|
161
|
-
"glob": "**/*",
|
|
162
|
-
"input": "node_modules/@eui/core/assets/",
|
|
163
|
-
"output": "./assets"
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"glob": "**/*",
|
|
167
|
-
"input": "node_modules/@eui/styles-base/src/assets/",
|
|
168
|
-
"output": "./assets"
|
|
169
|
-
}
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"newProjectRoot": "projects",
|
|
5
|
+
"defaultProject": "app",
|
|
6
|
+
"cli": {
|
|
7
|
+
"analytics": false
|
|
8
|
+
},
|
|
9
|
+
"projects": {
|
|
10
|
+
"app": {
|
|
11
|
+
"root": "",
|
|
12
|
+
"sourceRoot": "src",
|
|
13
|
+
"projectType": "application",
|
|
14
|
+
"prefix": "app",
|
|
15
|
+
"schematics": {
|
|
16
|
+
"@schematics/angular:component": {
|
|
17
|
+
"style": "scss"
|
|
18
|
+
},
|
|
19
|
+
"@schematics/angular:application": {
|
|
20
|
+
"strict": true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"architect": {
|
|
24
|
+
"build": {
|
|
25
|
+
"builder": "@angular-devkit/build-angular:browser",
|
|
26
|
+
"options": {
|
|
27
|
+
"outputPath": "dist",
|
|
28
|
+
"index": "src/index.html",
|
|
29
|
+
"main": "src/main.ts",
|
|
30
|
+
"polyfills": "src/polyfills.ts",
|
|
31
|
+
"tsConfig": "src/tsconfig.app.json",
|
|
32
|
+
"inlineStyleLanguage": "scss",
|
|
33
|
+
"assets": [
|
|
34
|
+
"src/favicon.ico",
|
|
35
|
+
"src/assets",
|
|
36
|
+
{
|
|
37
|
+
"glob": "**/*",
|
|
38
|
+
"input": "node_modules/@eui/core/assets/",
|
|
39
|
+
"output": "./assets"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"glob": "**/*",
|
|
43
|
+
"input": "node_modules/@eui/styles-base/src/assets/",
|
|
44
|
+
"output": "./assets"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"styles": [
|
|
48
|
+
"node_modules/@eui/styles/dist/styles/eui.css",
|
|
49
|
+
"node_modules/@eui/styles/dist/styles/eui-extra-utilities.css",
|
|
50
|
+
"node_modules/@eui/styles/dist/styles/eui-legacy-bootstrap.css",
|
|
51
|
+
"node_modules/@eui/styles/dist/styles/eui-legacy-icons-font.css",
|
|
52
|
+
"src/styles.scss"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"configurations": {
|
|
56
|
+
"production": {
|
|
57
|
+
"fileReplacements": [
|
|
58
|
+
{
|
|
59
|
+
"replace": "src/environments/environment.ts",
|
|
60
|
+
"with": "src/environments/environment.prod.ts"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"optimization": false,
|
|
64
|
+
"outputHashing": "all",
|
|
65
|
+
"sourceMap": false,
|
|
66
|
+
"namedChunks": true,
|
|
67
|
+
"aot": true,
|
|
68
|
+
"extractLicenses": true,
|
|
69
|
+
"vendorChunk": false,
|
|
70
|
+
"buildOptimizer": false,
|
|
71
|
+
"budgets": [
|
|
72
|
+
{
|
|
73
|
+
"type": "initial",
|
|
74
|
+
"maximumWarning": "2mb",
|
|
75
|
+
"maximumError": "11mb"
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"production-optimized": {
|
|
80
|
+
"fileReplacements": [
|
|
81
|
+
{
|
|
82
|
+
"replace": "src/environments/environment.ts",
|
|
83
|
+
"with": "src/environments/environment.prod.ts"
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
"optimization": {
|
|
87
|
+
"scripts": true,
|
|
88
|
+
"styles": {
|
|
89
|
+
"minify": false,
|
|
90
|
+
"inlineCritical": true
|
|
91
|
+
},
|
|
92
|
+
"fonts": true
|
|
93
|
+
},
|
|
94
|
+
"outputHashing": "all",
|
|
95
|
+
"sourceMap": false,
|
|
96
|
+
"namedChunks": true,
|
|
97
|
+
"aot": true,
|
|
98
|
+
"extractLicenses": true,
|
|
99
|
+
"vendorChunk": false,
|
|
100
|
+
"buildOptimizer": true,
|
|
101
|
+
"budgets": [
|
|
102
|
+
{
|
|
103
|
+
"type": "initial",
|
|
104
|
+
"maximumWarning": "2mb",
|
|
105
|
+
"maximumError": "6mb"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"development": {
|
|
110
|
+
"buildOptimizer": false,
|
|
111
|
+
"optimization": false,
|
|
112
|
+
"vendorChunk": true,
|
|
113
|
+
"extractLicenses": false,
|
|
114
|
+
"sourceMap": true,
|
|
115
|
+
"namedChunks": true
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"defaultConfiguration": "production"
|
|
119
|
+
},
|
|
120
|
+
"serve": {
|
|
121
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
122
|
+
"options": {
|
|
123
|
+
"browserTarget": "app:build"
|
|
124
|
+
},
|
|
125
|
+
"configurations": {
|
|
126
|
+
"proxy-mock": {
|
|
127
|
+
"browserTarget": "app:build:development",
|
|
128
|
+
"proxyConfig": "proxy-mock.conf.json"
|
|
129
|
+
},
|
|
130
|
+
"production": {
|
|
131
|
+
"browserTarget": "app:build:production"
|
|
132
|
+
},
|
|
133
|
+
"development": {
|
|
134
|
+
"browserTarget": "app:build:development"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"defaultConfiguration": "development"
|
|
138
|
+
},
|
|
139
|
+
"lint": {
|
|
140
|
+
"builder": "@angular-eslint/builder:lint",
|
|
141
|
+
"options": {
|
|
142
|
+
"lintFilePatterns": [
|
|
143
|
+
"src/**/*.ts",
|
|
144
|
+
"src/**/*.html"
|
|
145
|
+
],
|
|
146
|
+
"eslintConfig": "src/.eslintrc.json"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"test": {
|
|
150
|
+
"builder": "@angular-devkit/build-angular:karma",
|
|
151
|
+
"options": {
|
|
152
|
+
"polyfills": [
|
|
153
|
+
"zone.js",
|
|
154
|
+
"zone.js/testing"
|
|
155
|
+
],
|
|
156
|
+
"tsConfig": "src/tsconfig.spec.json",
|
|
157
|
+
"karmaConfig": "src/karma.conf.js",
|
|
158
|
+
"inlineStyleLanguage": "scss",
|
|
159
|
+
"assets": [
|
|
160
|
+
{
|
|
161
|
+
"glob": "**/*",
|
|
162
|
+
"input": "node_modules/@eui/core/assets/",
|
|
163
|
+
"output": "./assets"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"glob": "**/*",
|
|
167
|
+
"input": "node_modules/@eui/styles-base/src/assets/",
|
|
168
|
+
"output": "./assets"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# compiled output
|
|
4
|
-
**/node_modules
|
|
5
|
-
**/target
|
|
6
|
-
**/build
|
|
7
|
-
**/dist
|
|
8
|
-
**/out-tsc
|
|
9
|
-
**/tmp
|
|
10
|
-
**/test/reports
|
|
11
|
-
|
|
12
|
-
# IDEs and editors
|
|
13
|
-
/.idea
|
|
14
|
-
.project
|
|
15
|
-
.classpath
|
|
16
|
-
.c9/
|
|
17
|
-
*.launch
|
|
18
|
-
.settings/
|
|
19
|
-
*.sublime-workspace
|
|
20
|
-
|
|
21
|
-
# IDE - VSCode
|
|
22
|
-
.vscode/*
|
|
23
|
-
!.vscode/settings.json
|
|
24
|
-
!.vscode/tasks.json
|
|
25
|
-
!.vscode/launch.json
|
|
26
|
-
!.vscode/extensions.json
|
|
27
|
-
|
|
28
|
-
# misc
|
|
29
|
-
/.sass-cache
|
|
30
|
-
/connect.lock
|
|
31
|
-
/coverage
|
|
32
|
-
/libpeerconnection.log
|
|
33
|
-
npm-debug.log
|
|
34
|
-
testem.log
|
|
35
|
-
/typings
|
|
36
|
-
yarn-error.log
|
|
37
|
-
|
|
38
|
-
# e2e
|
|
39
|
-
/e2e/*.js
|
|
40
|
-
/e2e/*.map
|
|
41
|
-
|
|
42
|
-
# Angular specific
|
|
43
|
-
.angular
|
|
44
|
-
|
|
45
|
-
# System Files
|
|
46
|
-
.DS_Store
|
|
47
|
-
Thumbs.db
|
|
48
|
-
|
|
49
|
-
/assets/env-json-config.json
|
|
50
|
-
/assets/openid-login-config.json
|
|
1
|
+
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
+
|
|
3
|
+
# compiled output
|
|
4
|
+
**/node_modules
|
|
5
|
+
**/target
|
|
6
|
+
**/build
|
|
7
|
+
**/dist
|
|
8
|
+
**/out-tsc
|
|
9
|
+
**/tmp
|
|
10
|
+
**/test/reports
|
|
11
|
+
|
|
12
|
+
# IDEs and editors
|
|
13
|
+
/.idea
|
|
14
|
+
.project
|
|
15
|
+
.classpath
|
|
16
|
+
.c9/
|
|
17
|
+
*.launch
|
|
18
|
+
.settings/
|
|
19
|
+
*.sublime-workspace
|
|
20
|
+
|
|
21
|
+
# IDE - VSCode
|
|
22
|
+
.vscode/*
|
|
23
|
+
!.vscode/settings.json
|
|
24
|
+
!.vscode/tasks.json
|
|
25
|
+
!.vscode/launch.json
|
|
26
|
+
!.vscode/extensions.json
|
|
27
|
+
|
|
28
|
+
# misc
|
|
29
|
+
/.sass-cache
|
|
30
|
+
/connect.lock
|
|
31
|
+
/coverage
|
|
32
|
+
/libpeerconnection.log
|
|
33
|
+
npm-debug.log
|
|
34
|
+
testem.log
|
|
35
|
+
/typings
|
|
36
|
+
yarn-error.log
|
|
37
|
+
|
|
38
|
+
# e2e
|
|
39
|
+
/e2e/*.js
|
|
40
|
+
/e2e/*.map
|
|
41
|
+
|
|
42
|
+
# Angular specific
|
|
43
|
+
.angular
|
|
44
|
+
|
|
45
|
+
# System Files
|
|
46
|
+
.DS_Store
|
|
47
|
+
Thumbs.db
|
|
48
|
+
|
|
49
|
+
/assets/env-json-config.json
|
|
50
|
+
/assets/openid-login-config.json
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
id: 0,
|
|
3
|
-
firstName: '',
|
|
4
|
-
lastName: '',
|
|
5
|
-
email: '',
|
|
6
|
-
isAdmin: false,
|
|
7
|
-
birthdate: null
|
|
8
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
id: 0,
|
|
3
|
+
firstName: '',
|
|
4
|
+
lastName: '',
|
|
5
|
+
email: '',
|
|
6
|
+
isAdmin: false,
|
|
7
|
+
birthdate: null
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const userRoutes = require('./user_routes');
|
|
2
|
-
|
|
3
|
-
module.exports = function (app, db) {
|
|
4
|
-
userRoutes(app, db);
|
|
5
|
-
};
|
|
1
|
+
const userRoutes = require('./user_routes');
|
|
2
|
+
|
|
3
|
+
module.exports = function (app, db) {
|
|
4
|
+
userRoutes(app, db);
|
|
5
|
+
};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
const User = require('../models/user');
|
|
2
|
-
const uuid = require('uuid');
|
|
3
|
-
|
|
4
|
-
module.exports = function (app, db) {
|
|
5
|
-
db.then(db => {
|
|
6
|
-
|
|
7
|
-
app.get('/api/user-details', (req, res) => {
|
|
8
|
-
res.send(db.get('user-details'))
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
app.get('/api/users', (req, res) => {
|
|
12
|
-
res.send(db.get('users'))
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
app.post('/api/users', (req, res) => {
|
|
16
|
-
db.get('users')
|
|
17
|
-
.push({ ...User, ...req.body, ...{ id: uuid.v1() } })
|
|
18
|
-
.last()
|
|
19
|
-
.write()
|
|
20
|
-
.then(user => res.send(user))
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
};
|
|
1
|
+
const User = require('../models/user');
|
|
2
|
+
const uuid = require('uuid');
|
|
3
|
+
|
|
4
|
+
module.exports = function (app, db) {
|
|
5
|
+
db.then(db => {
|
|
6
|
+
|
|
7
|
+
app.get('/api/user-details', (req, res) => {
|
|
8
|
+
res.send(db.get('user-details'))
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
app.get('/api/users', (req, res) => {
|
|
12
|
+
res.send(db.get('users'))
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
app.post('/api/users', (req, res) => {
|
|
16
|
+
db.get('users')
|
|
17
|
+
.push({ ...User, ...req.body, ...{ id: uuid.v1() } })
|
|
18
|
+
.last()
|
|
19
|
+
.write()
|
|
20
|
+
.then(user => res.send(user))
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
});
|
|
24
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"user-details": {
|
|
3
|
-
"firstName": "John",
|
|
4
|
-
"lastName": "Doe",
|
|
5
|
-
"fullName": "John Doe",
|
|
6
|
-
"organisationRef": {
|
|
7
|
-
"id": "123456", "abbreviation": "DIGIT.B.3"
|
|
8
|
-
},
|
|
9
|
-
"userId": "doejohn",
|
|
10
|
-
"email": "John.DOE@ec.europa.eu"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"user-details": {
|
|
3
|
+
"firstName": "John",
|
|
4
|
+
"lastName": "Doe",
|
|
5
|
+
"fullName": "John Doe",
|
|
6
|
+
"organisationRef": {
|
|
7
|
+
"id": "123456", "abbreviation": "DIGIT.B.3"
|
|
8
|
+
},
|
|
9
|
+
"userId": "doejohn",
|
|
10
|
+
"email": "John.DOE@ec.europa.eu"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const express = require('express');
|
|
2
|
-
const bodyParser = require('body-parser');
|
|
3
|
-
const app = express();
|
|
4
|
-
const low = require('lowdb');
|
|
5
|
-
const FileAsync = require('lowdb/adapters/FileAsync');
|
|
6
|
-
const adapter = new FileAsync('mock/db/db.json');
|
|
7
|
-
const db = low(adapter);
|
|
8
|
-
const cors = require('cors');
|
|
9
|
-
const port = 3000;
|
|
10
|
-
|
|
11
|
-
app.use(bodyParser.urlencoded({ extended: true }));
|
|
12
|
-
app.use(cors({
|
|
13
|
-
origin: 'http://127.0.0.1:8080', // adapt to your need
|
|
14
|
-
credentials: true,
|
|
15
|
-
}));
|
|
16
|
-
|
|
17
|
-
require('./app/routes')(app, db);
|
|
18
|
-
|
|
19
|
-
app.listen(port, () => {
|
|
20
|
-
console.log('We are live on ' + port);
|
|
21
|
-
});
|
|
1
|
+
const express = require('express');
|
|
2
|
+
const bodyParser = require('body-parser');
|
|
3
|
+
const app = express();
|
|
4
|
+
const low = require('lowdb');
|
|
5
|
+
const FileAsync = require('lowdb/adapters/FileAsync');
|
|
6
|
+
const adapter = new FileAsync('mock/db/db.json');
|
|
7
|
+
const db = low(adapter);
|
|
8
|
+
const cors = require('cors');
|
|
9
|
+
const port = 3000;
|
|
10
|
+
|
|
11
|
+
app.use(bodyParser.urlencoded({ extended: true }));
|
|
12
|
+
app.use(cors({
|
|
13
|
+
origin: 'http://127.0.0.1:8080', // adapt to your need
|
|
14
|
+
credentials: true,
|
|
15
|
+
}));
|
|
16
|
+
|
|
17
|
+
require('./app/routes')(app, db);
|
|
18
|
+
|
|
19
|
+
app.listen(port, () => {
|
|
20
|
+
console.log('We are live on ' + port);
|
|
21
|
+
});
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "eui-angular-app",
|
|
3
|
-
"version": "15.4.
|
|
4
|
-
"license": "EUPL-1.1",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"ng": "ng",
|
|
7
|
-
"start-mock-server": "nodemon --watch ./mock ./mock/server.js",
|
|
8
|
-
"start-serve": "eui-scripts serve-app --configuration=proxy-mock",
|
|
9
|
-
"start": "npm-run-all --parallel start-mock-server start-serve",
|
|
10
|
-
"start-proxy": "eui-scripts serve-app --configuration=proxy",
|
|
11
|
-
"start-local": "eui-scripts serve-app",
|
|
12
|
-
"build": "eui-scripts build-app",
|
|
13
|
-
"build-dev": "eui-scripts build-app --configuration=development --configEnvTarget=dev",
|
|
14
|
-
"build-prod": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod",
|
|
15
|
-
"build-prod-skip-test": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod --skipTest",
|
|
16
|
-
"build-prod-stats": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod --statsJson",
|
|
17
|
-
"app:build": "eui-scripts build-app",
|
|
18
|
-
"app:inject-config": "eui-scripts inject-config-app",
|
|
19
|
-
"generate-changelog": "eui-scripts generate-changelog"
|
|
20
|
-
},
|
|
21
|
-
"private": true,
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@eui/deps-base": "15.4.
|
|
24
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "eui-angular-app",
|
|
3
|
+
"version": "15.4.1-snapshot-1690986565745",
|
|
4
|
+
"license": "EUPL-1.1",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"ng": "ng",
|
|
7
|
+
"start-mock-server": "nodemon --watch ./mock ./mock/server.js",
|
|
8
|
+
"start-serve": "eui-scripts serve-app --configuration=proxy-mock",
|
|
9
|
+
"start": "npm-run-all --parallel start-mock-server start-serve",
|
|
10
|
+
"start-proxy": "eui-scripts serve-app --configuration=proxy",
|
|
11
|
+
"start-local": "eui-scripts serve-app",
|
|
12
|
+
"build": "eui-scripts build-app",
|
|
13
|
+
"build-dev": "eui-scripts build-app --configuration=development --configEnvTarget=dev",
|
|
14
|
+
"build-prod": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod",
|
|
15
|
+
"build-prod-skip-test": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod --skipTest",
|
|
16
|
+
"build-prod-stats": "eui-scripts build-app --configuration=production-optimized --configEnvTarget=prod --statsJson",
|
|
17
|
+
"app:build": "eui-scripts build-app",
|
|
18
|
+
"app:inject-config": "eui-scripts inject-config-app",
|
|
19
|
+
"generate-changelog": "eui-scripts generate-changelog"
|
|
20
|
+
},
|
|
21
|
+
"private": true,
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@eui/deps-base": "15.4.1-snapshot-1690986565745"
|
|
24
|
+
}
|
|
25
25
|
}
|