@eui/cli 15.0.0-next.1 → 15.0.0-next.11
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/lib/build.js +0 -66
- package/lib/cli.js +8 -32
- package/lib/config.js +0 -60
- package/lib/generators.js +5 -77
- package/lib/maven-build/build.xml +0 -104
- package/lib/maven-build/pom.xml +0 -37
- package/lib/skeletons/_angular/base/angular.json +5 -8
- package/lib/skeletons/_angular/base/package.json +3 -3
- package/lib/skeletons/_angular/base/src/app/app.component.html +1 -1
- package/lib/skeletons/_angular/base/src/app/app.component.ts +3 -3
- package/lib/skeletons/_angular/base/src/app/core/core.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/features/home/home.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.module.ts +1 -1
- package/lib/skeletons/_angular/base/src/app/shared/shared.module.ts +28 -6
- package/lib/skeletons/_angular/base/tsconfig.json +11 -4
- package/lib/skeletons/_angular/base-mobile/package.json +5 -28
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +1 -1
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +1 -1
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +1 -1
- package/lib/skeletons/_angular/options/ecl/angular.json +11 -1
- package/lib/skeletons/_angular/options/ecl/package.json +5 -5
- package/lib/skeletons/_angular/options/ecl/src/app/app.component.ts +2 -2
- package/lib/skeletons/_angular/options/ecl/src/config/global.ts +1 -5
- package/lib/skeletons/_angular/options/openid-jwt/package.json +4 -4
- package/lib/skeletons/_angular/options/openid-jwt/src/app/core/core.module.ts +1 -1
- package/lib/skeletons/web-symfony/myapp-web/package.json +2 -2
- package/lib/utils.js +0 -2
- package/package.json +2 -2
- package/lib/__old-to-review/build-feature.js +0 -74
- package/lib/__old-to-review/build-module.js +0 -113
- package/lib/__old-to-review/cli-feature.js +0 -42
- package/lib/__old-to-review/cli-module.js +0 -65
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/.editorconfig +0 -16
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/.euirc.json +0 -29
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/.stylelintrc +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/README.md +0 -26
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/angular.json +0 -203
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/protractor.conf.js +0 -28
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/src/app.e2e-spec.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/src/app.po.ts +0 -11
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/e2e/tsconfig.e2e.json +0 -13
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/gitignore_TO_REPLACE +0 -44
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/buildings.js +0 -22
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/config.js +0 -32
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/people.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/translated.api.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/core/user.js +0 -34
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/lowdb.js +0 -29
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/delay.js +0 -10
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/errors.js +0 -73
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/middlewares/sse.js +0 -28
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/routes.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/json/server.js +0 -75
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/models/user.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/config_route.js +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/index.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/app/routes/user_routes.js +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/db/db.json +0 -12
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/mock/mean/server.js +0 -16
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/package.json +0 -44
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/proxy-mock.conf.json +0 -6
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/proxy.conf.json +0 -13
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app-routing.module.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app-starter.service.ts +0 -251
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.html +0 -43
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.spec.ts +0 -93
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.component.ts +0 -137
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/app.module.ts +0 -27
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/components/.gitkeep +0 -0
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/core.module.ts +0 -86
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/operators.ts +0 -10
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/core/reducers/index.ts +0 -33
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home-routing.module.ts +0 -15
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.html +0 -39
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.spec.ts +0 -77
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.component.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/home/home.module.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.html +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.spec.ts +0 -35
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page1/page1.component.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.html +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.spec.ts +0 -35
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/components/page2/page2.component.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1-routing.module.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.html +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.spec.ts +0 -43
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.component.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module1/module1.module.ts +0 -21
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2-routing.module.ts +0 -16
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.html +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.spec.ts +0 -35
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.component.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/features/module2/module2.module.ts +0 -17
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/shared/shared.module.ts +0 -21
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/app/shared/testing/router.mock.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/.gitkeep +0 -0
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/config/env-json-config.json +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/configuration.json +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/i18n/en.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/assets/i18n/fr.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/browserslist +0 -11
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/global.ts +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/index.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/config/modules.ts +0 -4
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.dev.ts +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.prod.ts +0 -28
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/environments/environment.ts +0 -9
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/favicon.ico +0 -0
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/index.html +0 -24
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/main.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/polyfills.ts +0 -86
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/styles.scss +0 -1
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/test.ts +0 -33
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tsconfig.app.json +0 -14
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tsconfig.spec.json +0 -18
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/src/tslint.json +0 -17
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/tsconfig-ci.json +0 -23
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/tsconfig.json +0 -23
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/tslint.json +0 -128
- package/lib/__old-to-review/skeletons/_angular/_base-advanced/webpack.extra.js +0 -6
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/api-queue.module.ts +0 -30
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.html +0 -38
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.spec.ts +0 -101
- package/lib/__old-to-review/skeletons/_angular/features/ApiQueue/src/app/features/api-queue/form/form.component.ts +0 -142
- package/lib/__old-to-review/skeletons/_angular/features/DynamicComponent/src/app/features/dynamic-component/dynamic-component.module.ts +0 -10
- package/lib/__old-to-review/skeletons/_angular/features/DynamicConfiguration/src/app/features/dynamic-configuration/dynamic-configuration.module.ts +0 -31
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/core/core.module.ts +0 -74
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/api.service.spec.ts +0 -49
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/api.service.ts +0 -30
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.html +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.spec.ts +0 -81
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.component.ts +0 -31
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/features/error-handling/error-handling.module.ts +0 -62
- package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/config/index.ts +0 -49
- package/lib/__old-to-review/skeletons/_angular/features/HttpInterceptor/src/app/features/http-interceptor/http-interceptor.module.ts +0 -10
- package/lib/__old-to-review/skeletons/_angular/features/Migration/src/app/features/migration/migration.module.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.html +0 -29
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.spec.ts +0 -123
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/accessible/accessible.component.ts +0 -37
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/auth-guard.service.spec.ts +0 -49
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/auth-guard.service.ts +0 -40
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.html +0 -3
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.spec.ts +0 -25
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/inaccessible/inaccessible.component.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.html +0 -3
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.spec.ts +0 -33
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/main/main.component.ts +0 -13
- package/lib/__old-to-review/skeletons/_angular/features/Permission/src/app/features/permission/permission.module.ts +0 -34
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.html +0 -18
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.spec.ts +0 -30
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/components/main/main.component.ts +0 -56
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/pipes/service-translate.pipe.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/services/api.service.ts +0 -43
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/app/features/translation/translation.module.ts +0 -37
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/assets/i18n/en.json +0 -31
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/assets/i18n/fr.json +0 -27
- package/lib/__old-to-review/skeletons/_angular/features/Translation/src/config/index.ts +0 -24
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.html +0 -46
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.spec.ts +0 -25
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/main/main.component.ts +0 -93
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/web-routing.module.ts +0 -18
- package/lib/__old-to-review/skeletons/_angular/features/WebStorage/src/app/features/web-storage/web-storage.module.ts +0 -53
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/buildings.js +0 -22
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/config.js +0 -32
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/people.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/translated.api.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/core/user.js +0 -34
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/lowdb.js +0 -29
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/delay.js +0 -10
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/errors.js +0 -73
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/middlewares/sse.js +0 -28
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/routes.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/features/full-json-mock/server.js +0 -75
- package/lib/__old-to-review/skeletons/_angular/module-base/assets/i18n/en.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/module-base/assets/i18n/fr.json +0 -3
- package/lib/__old-to-review/skeletons/_angular/module-base/karma.conf.js +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-base/ng-package.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-base/package.json +0 -4
- package/lib/__old-to-review/skeletons/_angular/module-base/src/index.ts +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.html +0 -1
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.spec.ts +0 -25
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/components/cmp1/cmp1.component.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/core/module.service.spec.ts +0 -12
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/core/module.service.ts +0 -8
- package/lib/__old-to-review/skeletons/_angular/module-base/src/lib/module.module.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/module-base/src/test.ts +0 -22
- package/lib/__old-to-review/skeletons/_angular/module-base/tsconfig.lib.json +0 -32
- package/lib/__old-to-review/skeletons/_angular/module-base/tsconfig.spec.json +0 -17
- package/lib/__old-to-review/skeletons/_angular/module-base/tslint.json +0 -17
- package/lib/__old-to-review/skeletons/_angular/module-element/package.json +0 -7
- package/lib/__old-to-review/skeletons/_angular/module-options/route-module/src/lib/module-routing.module.ts +0 -14
- package/lib/__old-to-review/skeletons/_angular/module-options/route-module/src/lib/module.module.ts +0 -17
- package/lib/skeletons/_commons/web-java-commons/jetty-run.bat +0 -3
- package/lib/skeletons/_commons/web-java-commons/pom.xml +0 -423
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/angular2starter/servlet/Angular2RouterFilter.java +0 -25
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/common/dto/UserDTO.java +0 -86
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/entity/User.java +0 -97
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/repository/UserPredicates.java +0 -32
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/repository/UserRepository.java +0 -23
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/service/UserService.java +0 -63
- package/lib/skeletons/_commons/web-java-commons/src/main/java/eu/europa/ec/digit/eui/web/api/ApiController.java +0 -40
- package/lib/skeletons/_commons/web-java-commons/src/main/resources/hsql-db-init.sql +0 -12
- package/lib/skeletons/_commons/web-java-commons/src/main/resources/jetty-webdefault.xml +0 -535
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/applicationContext.xml +0 -12
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/datasourceContext-hsql-db.xml +0 -49
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/spring-REST-servlet.xml +0 -18
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/web.xml +0 -35
- package/lib/skeletons/_commons/web-java-commons/src/main/webapp/WEB-INF/weblogic.xml +0 -41
- package/lib/skeletons/full-stack/maven.settings.template.xml +0 -144
- package/lib/skeletons/full-stack/myapp-common/pom.xml +0 -24
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/Constant.java +0 -10
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/RightDTO.java +0 -52
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/RoleDTO.java +0 -48
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/dto/security/UserDTO.java +0 -67
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/ecas/UserHolder.java +0 -53
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/AppException.java +0 -57
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/CodedException.java +0 -7
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/NotFoundException.java +0 -17
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/exception/person/IdentityNotFoundException.java +0 -33
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/helper/ConversionHelper.java +0 -44
- package/lib/skeletons/full-stack/myapp-common/src/main/java/myapp/common/security/UserContext.java +0 -184
- package/lib/skeletons/full-stack/myapp-ear/pom.xml +0 -81
- package/lib/skeletons/full-stack/myapp-ear/src/main/application/META-INF/weblogic-application.xml +0 -18
- package/lib/skeletons/full-stack/myapp-persistence/pom.xml +0 -106
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/Right.java +0 -58
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/Role.java +0 -71
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/entity/security/User.java +0 -59
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityRightRepository.java +0 -9
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityRoleRepository.java +0 -10
- package/lib/skeletons/full-stack/myapp-persistence/src/main/java/myapp/repository/security/SecurityUserRepository.java +0 -10
- package/lib/skeletons/full-stack/myapp-persistence/src/main/resources/META-INF/persistence.xml.tmp +0 -27
- package/lib/skeletons/full-stack/myapp-service/pom.xml +0 -122
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/RightMapper.java +0 -24
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/RoleMapper.java +0 -19
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/mapper/security/UserMapper.java +0 -19
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/service/security/SecurityService.java +0 -242
- package/lib/skeletons/full-stack/myapp-service/src/main/java/myapp/service/security/UserDetailsServiceCustom.java +0 -85
- package/lib/skeletons/full-stack/myapp-web/pom.xml +0 -73
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext-hsql-db.xml +0 -49
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext-hsql.xml +0 -50
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/datasourceContext.xml +0 -40
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/ecas-config-myapp.xml +0 -40
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/hsql-db-init.sql +0 -22
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/log4j.xml +0 -36
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/log4j.xml.ecas +0 -156
- package/lib/skeletons/full-stack/myapp-web/src/main/resources/spring-security.xml +0 -42
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/applicationContext.xml +0 -18
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/spring-REST-servlet.xml +0 -17
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/web.xml +0 -113
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/WEB-INF/weblogic.xml +0 -45
- package/lib/skeletons/full-stack/myapp-web/src/main/webapp/index.jsp +0 -26
- package/lib/skeletons/full-stack/myapp-web-rest/pom.xml +0 -155
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/SingleSignoutController.java +0 -106
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/ExceptionControllerAdvice.java +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/ExceptionResponse.java +0 -19
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/exception/RestException.java +0 -17
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/filter/UserFilter.java +0 -48
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/rest/TestResource.java +0 -42
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/rest/UserDetailsResource.java +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest/src/main/java/myapp/web/util/ecas/RbacEcasExtraGroupHandler.java +0 -35
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/pom.xml +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/java/myapp/codegen/AbstractTypescriptClientCodegen.java +0 -362
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/java/myapp/codegen/TypescriptClientCodegen.java +0 -245
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/META-INF/services/io.swagger.codegen.CodegenConfig +0 -1
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/README.mustache +0 -44
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/api.mustache +0 -228
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/apis.mustache +0 -7
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/classType.mustache +0 -3
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/configuration.mustache +0 -6
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/index.mustache +0 -5
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/licenseInfo.mustache +0 -23
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/model.mustache +0 -80
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/models.mustache +0 -5
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/package.mustache +0 -46
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/tsconfig.mustache +0 -27
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/typings.mustache +0 -5
- package/lib/skeletons/full-stack/myapp-web-rest-swagger/src/main/resources/typescript-codegen/variables.mustache +0 -3
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/pom.xml +0 -40
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/WEB-INF/web.xml +0 -9
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/WEB-INF/weblogic.xml +0 -30
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/print.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/reset.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/screen.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/style.css +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/css/typography.css +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/fonts/DroidSans-Bold.ttf +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/fonts/DroidSans.ttf +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/collapse.gif +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/expand.gif +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/explorer_icons.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon-16x16.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon-32x32.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/favicon.ico +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/logo_small.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/pet_store_api.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/throbber.gif +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/images/wordnik_api.png +0 -0
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/index.html +0 -108
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ca.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/el.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/en.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/es.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/fr.js +0 -54
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/geo.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/it.js +0 -52
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ja.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ko-kr.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/pl.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/pt.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/ru.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/tr.js +0 -53
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/translator.js +0 -39
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lang/zh-cn.js +0 -56
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/backbone-min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/es5-shim.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/handlebars-4.0.5.js +0 -3
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/highlight.9.1.0.pack.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/highlight.9.1.0.pack_extended.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery-1.8.0.min.js +0 -3
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.ba-bbq.min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.slideto.min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jquery.wiggle.min.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/js-yaml.min.js +0 -2
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/jsoneditor.min.js +0 -5
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/lodash.min.js +0 -2
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/marked.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/object-assign-pollyfill.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/sanitize-html.min.js +0 -4
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/lib/swagger-oauth.js +0 -1
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/o2c.html +0 -20
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/swagger-ui.js +0 -25378
- package/lib/skeletons/full-stack/myapp-web-swagger-ui/src/main/webapp/swagger-ui.min.js +0 -15
- package/lib/skeletons/full-stack/package.json +0 -17
- package/lib/skeletons/full-stack/pom.xml +0 -500
- package/lib/skeletons/web-spring-boot-todo/myapp-web/pom.xml +0 -65
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/app-routing.module.ts +0 -18
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/buildings-routing.module.ts +0 -16
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/buildings.module.ts +0 -18
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.css +0 -11
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.html +0 -66
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/components/buildings-overview.component.ts +0 -72
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/models/address.model.ts +0 -11
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/models/building.model.ts +0 -7
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/buildings/services/buildings.service.ts +0 -20
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/features/home/home.component.html +0 -9
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/app/shared/models/page.model.ts +0 -63
- package/lib/skeletons/web-spring-boot-todo/myapp-web/src/main/angular/src/environments/environment.ts +0 -9
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/pom.xml +0 -84
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/MyappApplication.java +0 -46
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/domain/Address.java +0 -65
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/domain/Building.java +0 -44
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +0 -11
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +0 -26
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +0 -21
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +0 -45
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +0 -25
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +0 -17
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +0 -29
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +0 -35
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +0 -372
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +0 -42
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +0 -26
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +0 -10
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +0 -26
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/resources/application.properties +0 -0
- package/lib/skeletons/web-spring-boot-todo/myapp-web-rest/src/main/resources/data.sql +0 -11
- package/lib/skeletons/web-spring-boot-todo/pom.xml +0 -30
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": [
|
|
3
|
-
"tslint-eslint-rules"
|
|
4
|
-
],
|
|
5
|
-
"rulesDirectory": [
|
|
6
|
-
"node_modules/codelyzer"
|
|
7
|
-
],
|
|
8
|
-
"rules": {
|
|
9
|
-
"array-bracket-spacing": [true, "never"],
|
|
10
|
-
"callable-types": true,
|
|
11
|
-
"class-name": true,
|
|
12
|
-
"comment-format": [
|
|
13
|
-
true,
|
|
14
|
-
"check-space"
|
|
15
|
-
],
|
|
16
|
-
"curly": true,
|
|
17
|
-
"eofline": true,
|
|
18
|
-
"forin": true,
|
|
19
|
-
"import-destructuring-spacing": true,
|
|
20
|
-
"import-spacing": true,
|
|
21
|
-
"indent": [
|
|
22
|
-
true,
|
|
23
|
-
"spaces",
|
|
24
|
-
4
|
|
25
|
-
],
|
|
26
|
-
"interface-over-type-literal": false,
|
|
27
|
-
"label-position": true,
|
|
28
|
-
"max-line-length": [
|
|
29
|
-
true,
|
|
30
|
-
140
|
|
31
|
-
],
|
|
32
|
-
"member-access": false,
|
|
33
|
-
"member-ordering": [
|
|
34
|
-
true,
|
|
35
|
-
{
|
|
36
|
-
"order": [
|
|
37
|
-
"static-field",
|
|
38
|
-
"instance-field",
|
|
39
|
-
"constructor",
|
|
40
|
-
"public-instance-method",
|
|
41
|
-
"protected-instance-method",
|
|
42
|
-
"private-instance-method"
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"no-arg": true,
|
|
47
|
-
"no-bitwise": true,
|
|
48
|
-
"no-consecutive-blank-lines": [true, 1],
|
|
49
|
-
"no-console": [
|
|
50
|
-
true,
|
|
51
|
-
"debug",
|
|
52
|
-
"info",
|
|
53
|
-
"time",
|
|
54
|
-
"timeEnd",
|
|
55
|
-
"trace"
|
|
56
|
-
],
|
|
57
|
-
"no-construct": true,
|
|
58
|
-
"no-debugger": true,
|
|
59
|
-
"no-duplicate-variable": true,
|
|
60
|
-
"no-empty": false,
|
|
61
|
-
"no-empty-interface": true,
|
|
62
|
-
"no-eval": true,
|
|
63
|
-
"no-multi-spaces": [
|
|
64
|
-
true
|
|
65
|
-
],
|
|
66
|
-
"no-shadowed-variable": true,
|
|
67
|
-
"no-string-literal": false,
|
|
68
|
-
"no-string-throw": true,
|
|
69
|
-
"no-switch-case-fall-through": true,
|
|
70
|
-
"no-trailing-whitespace": true,
|
|
71
|
-
"no-unused-expression": true,
|
|
72
|
-
"no-var-keyword": true,
|
|
73
|
-
"object-curly-spacing": [true,"always"],
|
|
74
|
-
"object-literal-sort-keys": false,
|
|
75
|
-
"one-line": [
|
|
76
|
-
true,
|
|
77
|
-
"check-open-brace",
|
|
78
|
-
"check-catch",
|
|
79
|
-
"check-else",
|
|
80
|
-
"check-whitespace"
|
|
81
|
-
],
|
|
82
|
-
"quotemark": [
|
|
83
|
-
true,
|
|
84
|
-
"single"
|
|
85
|
-
],
|
|
86
|
-
"radix": true,
|
|
87
|
-
"semicolon": [
|
|
88
|
-
true,
|
|
89
|
-
"always"
|
|
90
|
-
],
|
|
91
|
-
"triple-equals": [
|
|
92
|
-
true,
|
|
93
|
-
"allow-null-check"
|
|
94
|
-
],
|
|
95
|
-
"typedef-whitespace": [
|
|
96
|
-
true,
|
|
97
|
-
{
|
|
98
|
-
"call-signature": "nospace",
|
|
99
|
-
"index-signature": "nospace",
|
|
100
|
-
"parameter": "nospace",
|
|
101
|
-
"property-declaration": "nospace",
|
|
102
|
-
"variable-declaration": "nospace"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"unified-signatures": true,
|
|
106
|
-
"variable-name": false,
|
|
107
|
-
"whitespace": [
|
|
108
|
-
true,
|
|
109
|
-
"check-branch",
|
|
110
|
-
"check-decl",
|
|
111
|
-
"check-operator",
|
|
112
|
-
"check-separator",
|
|
113
|
-
"check-type"
|
|
114
|
-
],
|
|
115
|
-
|
|
116
|
-
"directive-selector": [true, "attribute", "app", "camelCase"],
|
|
117
|
-
"no-input-rename": true,
|
|
118
|
-
"no-output-rename": true,
|
|
119
|
-
"use-pipe-transform-interface": true,
|
|
120
|
-
"component-class-suffix": true,
|
|
121
|
-
"directive-class-suffix": true,
|
|
122
|
-
"no-access-missing-member": false,
|
|
123
|
-
"component-selector": [true, "element", "app", "kebab-case"],
|
|
124
|
-
"no-forward-ref": false,
|
|
125
|
-
"pipe-prefix": [true, "camelCase", "app"]
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { FormComponent } from './form/form.component';
|
|
6
|
-
import {
|
|
7
|
-
UxAlertComponentModule,
|
|
8
|
-
UxButtonComponentModule,
|
|
9
|
-
UxFormGroupComponentModule,
|
|
10
|
-
UxPanelComponentModule,
|
|
11
|
-
UxFormControlComponentModule
|
|
12
|
-
} from '@eui/components';
|
|
13
|
-
|
|
14
|
-
const routes: Routes = [{ path: '', component: FormComponent }];
|
|
15
|
-
|
|
16
|
-
@NgModule({
|
|
17
|
-
declarations: [FormComponent],
|
|
18
|
-
imports: [
|
|
19
|
-
CommonModule,
|
|
20
|
-
ReactiveFormsModule,
|
|
21
|
-
RouterModule.forChild(routes),
|
|
22
|
-
UxAlertComponentModule,
|
|
23
|
-
UxButtonComponentModule,
|
|
24
|
-
UxFormGroupComponentModule,
|
|
25
|
-
UxPanelComponentModule,
|
|
26
|
-
UxFormControlComponentModule
|
|
27
|
-
],
|
|
28
|
-
entryComponents: [FormComponent]
|
|
29
|
-
})
|
|
30
|
-
export class ApiQueueModule { }
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<ux-alert typeClass="success" *ngIf="online">
|
|
2
|
-
<strong>Network is online</strong>
|
|
3
|
-
</ux-alert>
|
|
4
|
-
|
|
5
|
-
<ux-alert typeClass="warning" *ngIf="!online">
|
|
6
|
-
<strong>Network is Offline :(</strong>
|
|
7
|
-
</ux-alert>
|
|
8
|
-
|
|
9
|
-
<ux-panel label="This could be a huge form">
|
|
10
|
-
<form [formGroup]="form">
|
|
11
|
-
<ux-form-group label="ID">
|
|
12
|
-
<ux-form-control formControlName="id"></ux-form-control>
|
|
13
|
-
</ux-form-group>
|
|
14
|
-
<ux-form-group label="Name">
|
|
15
|
-
<ux-form-control formControlName="name"></ux-form-control>
|
|
16
|
-
</ux-form-group>
|
|
17
|
-
<ux-form-group label="surname">
|
|
18
|
-
<ux-form-control formControlName="surname"></ux-form-control>
|
|
19
|
-
</ux-form-group>
|
|
20
|
-
</form>
|
|
21
|
-
<ux-button (click)="onSubmit()">Submit</ux-button>
|
|
22
|
-
<ux-button style="margin-left: 2rem;" typeClass="warning" (click)="fail()">Simulate Failure</ux-button>
|
|
23
|
-
<hr>
|
|
24
|
-
<h2>Http call Status: {{status}}</h2>
|
|
25
|
-
</ux-panel>
|
|
26
|
-
|
|
27
|
-
<ux-panel label="Items in Queue">
|
|
28
|
-
<uxPanelHeaderRightContent>
|
|
29
|
-
<ux-button (click)="processAll()">Process All Queue Items</ux-button>
|
|
30
|
-
</uxPanelHeaderRightContent>
|
|
31
|
-
<div *ngFor="let item of (queue$|async|keyvalue)">
|
|
32
|
-
<pre>{{item.value|json}}</pre>
|
|
33
|
-
<ux-button (click)="processQueue(item.key)">Execute</ux-button>
|
|
34
|
-
<ux-button typeClass="danger" style="margin-left: 2rem;" (click)="removeQueue(item.key)">Remove</ux-button>
|
|
35
|
-
<hr>
|
|
36
|
-
</div>
|
|
37
|
-
<h1 *ngIf="(queue$|async|keyvalue).length < 1">No item in the Queue!</h1>
|
|
38
|
-
</ux-panel>
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { RouterTestingModule } from '@angular/router/testing';
|
|
3
|
-
import { ReactiveFormsModule } from '@angular/forms';
|
|
4
|
-
import { provideMockStore } from '@ngrx/store/testing';
|
|
5
|
-
import {
|
|
6
|
-
UxAlertComponentModule,
|
|
7
|
-
UxButtonComponentModule,
|
|
8
|
-
UxFormGroupComponentModule,
|
|
9
|
-
UxPanelComponentModule,
|
|
10
|
-
UxFormControlComponentModule,
|
|
11
|
-
ApiQueueService,
|
|
12
|
-
UxDynamicModalService,
|
|
13
|
-
} from '@eui/core';
|
|
14
|
-
|
|
15
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
16
|
-
import { of } from 'rxjs';
|
|
17
|
-
import { FormComponent } from './form.component';
|
|
18
|
-
|
|
19
|
-
class TranslateServiceMock {
|
|
20
|
-
|
|
21
|
-
onTranslationChange = of({ lang: null });
|
|
22
|
-
onLangChange = of({ lang: null });
|
|
23
|
-
onDefaultLangChange = of({ lang: null });
|
|
24
|
-
lang = 'en';
|
|
25
|
-
|
|
26
|
-
constructor() {
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
use(lang) {
|
|
30
|
-
return null;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
public get(key: any, interpolateParams?: any): any {
|
|
34
|
-
return of(key);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
public updateValue(key: any, interpolateParams: any, translations: any) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
public transform(query: any) {
|
|
42
|
-
return null;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
class ApiQueueServiceMock {
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
class UxDomServiceMock {
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
class UxDynamicModalServiceMock {
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
class UxServiceMock {
|
|
56
|
-
uniqueId() {}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
fdescribe('FormComponent', () => {
|
|
60
|
-
let component: FormComponent;
|
|
61
|
-
let fixture: ComponentFixture<FormComponent>;
|
|
62
|
-
const initialState = {
|
|
63
|
-
'app': {
|
|
64
|
-
apiQueue: {
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
beforeEach(async(() => {
|
|
70
|
-
TestBed.configureTestingModule({
|
|
71
|
-
imports: [
|
|
72
|
-
RouterTestingModule.withRoutes([{ path: '', component: FormComponent }]),
|
|
73
|
-
UxAlertComponentModule,
|
|
74
|
-
UxButtonComponentModule,
|
|
75
|
-
UxFormGroupComponentModule,
|
|
76
|
-
UxPanelComponentModule,
|
|
77
|
-
UxFormControlComponentModule,
|
|
78
|
-
ReactiveFormsModule
|
|
79
|
-
],
|
|
80
|
-
declarations: [FormComponent],
|
|
81
|
-
providers: [
|
|
82
|
-
provideMockStore({ initialState }),
|
|
83
|
-
{ provide: TranslateService, useClass: TranslateServiceMock },
|
|
84
|
-
{ provide: ApiQueueService, useClass: ApiQueueServiceMock },
|
|
85
|
-
{ provide: UxDynamicModalService, UxDynamicModalServiceMock },
|
|
86
|
-
{ provide: UxDomService, UxDomServiceMock },
|
|
87
|
-
{ provide: UxService, useClass: UxServiceMock }
|
|
88
|
-
]
|
|
89
|
-
}).compileComponents();
|
|
90
|
-
}));
|
|
91
|
-
|
|
92
|
-
beforeEach(() => {
|
|
93
|
-
fixture = TestBed.createComponent(FormComponent);
|
|
94
|
-
component = fixture.componentInstance;
|
|
95
|
-
fixture.detectChanges();
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
it('should create', () => {
|
|
99
|
-
expect(component).toBeTruthy();
|
|
100
|
-
});
|
|
101
|
-
});
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { Component, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
ApiQueueService,
|
|
4
|
-
ApiQueueItem,
|
|
5
|
-
UxAppShellService,
|
|
6
|
-
} from '@eui/core';
|
|
7
|
-
import {
|
|
8
|
-
UxDynamicModalService,
|
|
9
|
-
UxDynamicModalConfig
|
|
10
|
-
} from '@eui/components'
|
|
11
|
-
import { FormGroup, FormControl, Validators, } from '@angular/forms';
|
|
12
|
-
import { Store } from '@ngrx/store';
|
|
13
|
-
import { map, take } from 'rxjs/operators';
|
|
14
|
-
import { Observable, fromEvent } from 'rxjs';
|
|
15
|
-
import { Subscription } from 'rxjs/Subscription';
|
|
16
|
-
|
|
17
|
-
@Component({
|
|
18
|
-
selector: 'app-form',
|
|
19
|
-
templateUrl: './form.component.html'
|
|
20
|
-
})
|
|
21
|
-
export class FormComponent implements OnInit, OnDestroy {
|
|
22
|
-
|
|
23
|
-
form: FormGroup;
|
|
24
|
-
queue$: Observable<any>;
|
|
25
|
-
online$: Observable<any>;
|
|
26
|
-
offline$: Observable<any>;
|
|
27
|
-
status: string;
|
|
28
|
-
online: boolean = true;
|
|
29
|
-
protected queueProcess$: Subscription = new Subscription();
|
|
30
|
-
|
|
31
|
-
constructor(private apiQueueService: ApiQueueService,
|
|
32
|
-
private appService: UxAppShellService,
|
|
33
|
-
private uxDynamicModalService: UxDynamicModalService,
|
|
34
|
-
private store: Store<any>) { }
|
|
35
|
-
|
|
36
|
-
ngOnInit() {
|
|
37
|
-
// register events network online/offline
|
|
38
|
-
this.online$ = fromEvent(window, 'online');
|
|
39
|
-
this.offline$ = fromEvent(window, 'offline');
|
|
40
|
-
|
|
41
|
-
this.queue$ = this.store.select('app').pipe(map((res) => res.apiQueue));
|
|
42
|
-
this.form = new FormGroup({
|
|
43
|
-
id: new FormControl('my-form', [Validators.required]),
|
|
44
|
-
name: new FormControl('', [Validators.required]),
|
|
45
|
-
surname: new FormControl('', [Validators.required])
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// subscribe to online offline events
|
|
49
|
-
this.online$.subscribe((event) => {
|
|
50
|
-
this.online = true;
|
|
51
|
-
|
|
52
|
-
const config = new UxDynamicModalConfig({
|
|
53
|
-
id: 'Pending_Submission',
|
|
54
|
-
content: '<p>From Last time during network failure some of the forms were not submitted.' +
|
|
55
|
-
'</p><br><h2>Do you want to handle them?</h2>',
|
|
56
|
-
titleLabel: 'Pending Submission',
|
|
57
|
-
isHandleCloseOnAccept: true,
|
|
58
|
-
acceptLabel: 'Process Items',
|
|
59
|
-
onAccept: () => this.processAll()
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
this.uxDynamicModalService.openModal(config);
|
|
63
|
-
});
|
|
64
|
-
this.offline$.subscribe((event) => {
|
|
65
|
-
this.online = false;
|
|
66
|
-
console.log(event);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
processItemsInQueue() {
|
|
71
|
-
this.apiQueueService.processQueueItem('');
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
onSubmit(): void {
|
|
75
|
-
if (!this.form.valid) {
|
|
76
|
-
this.appService.growlWarning('Form is not valid');
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
const item: ApiQueueItem = {
|
|
81
|
-
uri: '/api/form',
|
|
82
|
-
method: 'post',
|
|
83
|
-
payload: this.form.value,
|
|
84
|
-
timestamp: new Date().getUTCDate()
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
const id = this.form.value.id;
|
|
88
|
-
|
|
89
|
-
// remove previous form in the queue if any
|
|
90
|
-
this.removeQueue(id);
|
|
91
|
-
|
|
92
|
-
// adding Api to queue
|
|
93
|
-
this.apiQueueService.addQueueItem(id, item);
|
|
94
|
-
|
|
95
|
-
// process item
|
|
96
|
-
this.processQueue(id);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
removeQueue(id: string): void {
|
|
100
|
-
this.apiQueueService.removeQueueItem(id);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
processQueue(id: string): void {
|
|
104
|
-
this.status = 'Http call in process...';
|
|
105
|
-
|
|
106
|
-
// processing API request
|
|
107
|
-
this.queueProcess$.add(this.apiQueueService.processQueueItem(id)
|
|
108
|
-
.subscribe(
|
|
109
|
-
res => {
|
|
110
|
-
this.appService.growlInfo(`Queue with ${id} run: Form Data has been posted successfully.`);
|
|
111
|
-
},
|
|
112
|
-
err => {
|
|
113
|
-
this.status = 'error';
|
|
114
|
-
},
|
|
115
|
-
() => {
|
|
116
|
-
this.status = 'completed';
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
ngOnDestroy(): void {
|
|
124
|
-
if (this.queueProcess$) {
|
|
125
|
-
this.queueProcess$.unsubscribe();
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
fail(): void {
|
|
130
|
-
this.status = 'cancelled';
|
|
131
|
-
this.queueProcess$.unsubscribe();
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
processAll(): void {
|
|
135
|
-
this.queue$
|
|
136
|
-
.pipe(take(1))
|
|
137
|
-
.subscribe(res => Object
|
|
138
|
-
.keys(res)
|
|
139
|
-
.forEach(item => this.processQueue(item))
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Component, NgModule, Inject } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { RouterModule } from '@angular/router';
|
|
4
|
-
import { AppConfig, CONFIG_TOKEN } from '@eui/core';
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'app-main',
|
|
8
|
-
template: `
|
|
9
|
-
<h1>This is the configuration</h1>
|
|
10
|
-
<pre>{{config|json}}</pre>
|
|
11
|
-
<p>The configuration above is used to instantiate services and eUI application.<br>
|
|
12
|
-
You can play with is delete or update values in it. Although we don't recommend to.
|
|
13
|
-
</p>
|
|
14
|
-
<p>Pay special attention to the <b>Config/config.ts</b> file.</p>
|
|
15
|
-
`
|
|
16
|
-
})
|
|
17
|
-
export class MainComponent {
|
|
18
|
-
constructor(@Inject(CONFIG_TOKEN) public config: AppConfig) {
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@NgModule({
|
|
23
|
-
declarations: [MainComponent],
|
|
24
|
-
imports: [
|
|
25
|
-
CommonModule,
|
|
26
|
-
RouterModule.forChild([
|
|
27
|
-
{ path: '', component: MainComponent }
|
|
28
|
-
])
|
|
29
|
-
]
|
|
30
|
-
})
|
|
31
|
-
export class DynamicConfigurationModule { }
|
package/lib/__old-to-review/skeletons/_angular/features/ErrorHandling/src/app/core/core.module.ts
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
3
|
-
import { StoreModule } from '@ngrx/store';
|
|
4
|
-
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
5
|
-
|
|
6
|
-
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
7
|
-
import {
|
|
8
|
-
CachePreventionInterceptor,
|
|
9
|
-
CorsSecurityInterceptor,
|
|
10
|
-
CsrfPreventionInterceptor,
|
|
11
|
-
EuLoginSessionTimeoutHandlingInterceptor,
|
|
12
|
-
CoreModule as UxCoreModule,
|
|
13
|
-
translateConfig,
|
|
14
|
-
HttpErrorHandlerInterceptor
|
|
15
|
-
} from '@eui/core';
|
|
16
|
-
|
|
17
|
-
import './operators';
|
|
18
|
-
|
|
19
|
-
import { appConfig } from '../../config/index';
|
|
20
|
-
import { environment } from '../../environments/environment';
|
|
21
|
-
|
|
22
|
-
import { REDUCER_TOKEN, getReducers, metaReducers } from './reducers/index';
|
|
23
|
-
|
|
24
|
-
import { SharedModule } from '../shared/shared.module';
|
|
25
|
-
|
|
26
|
-
@NgModule({
|
|
27
|
-
imports: [
|
|
28
|
-
SharedModule,
|
|
29
|
-
UxCoreModule.forRoot({ appConfig: appConfig, environment: environment }),
|
|
30
|
-
TranslateModule.forRoot(translateConfig),
|
|
31
|
-
StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
|
|
32
|
-
!environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
|
|
33
|
-
],
|
|
34
|
-
declarations: [
|
|
35
|
-
],
|
|
36
|
-
exports: [
|
|
37
|
-
SharedModule,
|
|
38
|
-
],
|
|
39
|
-
providers: [
|
|
40
|
-
{
|
|
41
|
-
provide: REDUCER_TOKEN,
|
|
42
|
-
deps: [],
|
|
43
|
-
useFactory: getReducers
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
provide: HTTP_INTERCEPTORS,
|
|
47
|
-
useClass: CorsSecurityInterceptor,
|
|
48
|
-
multi: true,
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
provide: HTTP_INTERCEPTORS,
|
|
52
|
-
useClass: EuLoginSessionTimeoutHandlingInterceptor,
|
|
53
|
-
multi: true,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
provide: HTTP_INTERCEPTORS,
|
|
57
|
-
useClass: CsrfPreventionInterceptor,
|
|
58
|
-
multi: true,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
provide: HTTP_INTERCEPTORS,
|
|
62
|
-
useClass: CachePreventionInterceptor,
|
|
63
|
-
multi: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
provide: HTTP_INTERCEPTORS,
|
|
67
|
-
useClass: HttpErrorHandlerInterceptor,
|
|
68
|
-
multi: true
|
|
69
|
-
},
|
|
70
|
-
]
|
|
71
|
-
})
|
|
72
|
-
export class CoreModule {
|
|
73
|
-
|
|
74
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { TestBed } from '@angular/core/testing';
|
|
2
|
-
import { HttpClientTestingModule, HttpTestingController } from '@angular/common/http/testing';
|
|
3
|
-
import { Observable , of } from 'rxjs';
|
|
4
|
-
import { CONFIG_TOKEN } from '@eui/core';
|
|
5
|
-
|
|
6
|
-
import { ApiService } from './api.service';
|
|
7
|
-
|
|
8
|
-
export class ApiServiceMock {
|
|
9
|
-
getAdmin(): Observable<any> { return of(null); }
|
|
10
|
-
getError500(): Observable<any> { return of(null); }
|
|
11
|
-
getError400(): Observable<any> { return of(null); }
|
|
12
|
-
getNonExistingContent404(): Observable<any> { return of(null); }
|
|
13
|
-
getNonExistentAPI(): Observable<any> { return of(null); }
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
fdescribe('ApiService', () => {
|
|
17
|
-
let httpMock: HttpTestingController;
|
|
18
|
-
let apiService: ApiService;
|
|
19
|
-
|
|
20
|
-
beforeEach(() => {
|
|
21
|
-
TestBed.configureTestingModule({
|
|
22
|
-
imports: [HttpClientTestingModule],
|
|
23
|
-
providers: [
|
|
24
|
-
{ provide: ApiService, useClass: ApiServiceMock },
|
|
25
|
-
{
|
|
26
|
-
provide: CONFIG_TOKEN,
|
|
27
|
-
useValue: {
|
|
28
|
-
modules: {
|
|
29
|
-
errorHandling: {
|
|
30
|
-
api: {
|
|
31
|
-
error500: null,
|
|
32
|
-
custom400: null,
|
|
33
|
-
notExist: null,
|
|
34
|
-
admin: null,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
});
|
|
42
|
-
apiService = TestBed.inject(ApiService);
|
|
43
|
-
httpMock = TestBed.inject(HttpTestingController);
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
it('should be created', () => {
|
|
47
|
-
expect(apiService).toBeTruthy();
|
|
48
|
-
});
|
|
49
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Injectable, Inject } from '@angular/core';
|
|
2
|
-
import { HttpClient } from '@angular/common/http';
|
|
3
|
-
import { AppConfig, CONFIG_TOKEN } from '@eui/core';
|
|
4
|
-
|
|
5
|
-
@Injectable()
|
|
6
|
-
export class ApiService {
|
|
7
|
-
|
|
8
|
-
constructor(private http: HttpClient, @Inject(CONFIG_TOKEN) private config: AppConfig) {}
|
|
9
|
-
|
|
10
|
-
getError500() {
|
|
11
|
-
return this.http.get(this.config.modules.errorHandling.api.error500);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
getError400() {
|
|
15
|
-
return this.http.get(this.config.modules.errorHandling.api.custom400);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
getNonExistingContent404() {
|
|
19
|
-
return this.http.get(this.config.modules.errorHandling.api.notExist);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
getAdmin() {
|
|
23
|
-
return this.http.get(this.config.modules.errorHandling.api.admin);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
getNonExistentAPI() {
|
|
27
|
-
return this.http.get(this.config.modules.errorHandling.notExist);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<ux-panel [label]="'HTTP Error handling Mechanism'">
|
|
2
|
-
<div class="row">
|
|
3
|
-
<ux-a-label [label]="'Get a 500 Http response and redirect to 500 page.'"></ux-a-label>
|
|
4
|
-
<ux-button (click)="getError500()">{{'call'}}</ux-button>
|
|
5
|
-
</div>
|
|
6
|
-
<div class="row">
|
|
7
|
-
<ux-a-label [label]="'Get a 400 Http response and execute the CustomHttpErrorCallbackHander function at config/index.'"></ux-a-label>
|
|
8
|
-
<ux-button (click)="getError400()">{{'call'}}</ux-button>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="row">
|
|
11
|
-
<ux-a-label [label]="'Get a 404 Http response, write error in console and redirect to 404 page.'"></ux-a-label>
|
|
12
|
-
<ux-button (click)="getError404()">{{'call'}}</ux-button>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="row">
|
|
15
|
-
<ux-a-label [label]="'Get a 401 Http response, call the logService.'"></ux-a-label>
|
|
16
|
-
<ux-button (click)="getAdmin()">{{'call'}}</ux-button>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="row">
|
|
19
|
-
<ux-a-label [label]="'On 401 or 404 or 500 Http error on a non /api/ path show a growl error.'"></ux-a-label>
|
|
20
|
-
<ux-button (click)="getNonExistent()">{{'call'}}</ux-button>
|
|
21
|
-
</div>
|
|
22
|
-
</ux-panel>
|