@eui/cli 19.3.2 → 19.3.3-snapshot-1754401010018
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/package.json +4 -3
- package/.version.properties +0 -1
- package/bin/eui-cli.js +0 -47
- package/lib/build.js +0 -155
- package/lib/cli.js +0 -123
- package/lib/config.js +0 -58
- package/lib/generators.js +0 -75
- package/lib/install.js +0 -45
- package/lib/maven-build/build.xml +0 -115
- package/lib/maven-build/lib/ant-contrib-20061014.jar +0 -0
- package/lib/maven-build/pom.xml +0 -64
- package/lib/post-build.js +0 -33
- package/lib/skeletons/_angular/base/.browserslistrc +0 -16
- package/lib/skeletons/_angular/base/.editorconfig +0 -16
- package/lib/skeletons/_angular/base/.euirc.json +0 -8
- package/lib/skeletons/_angular/base/README.md +0 -26
- package/lib/skeletons/_angular/base/angular.json +0 -158
- package/lib/skeletons/_angular/base/gitignore_TO_REPLACE +0 -51
- package/lib/skeletons/_angular/base/mock/app/models/user.js +0 -6
- package/lib/skeletons/_angular/base/mock/app/routes/index.js +0 -5
- package/lib/skeletons/_angular/base/mock/app/routes/user_routes.js +0 -44
- package/lib/skeletons/_angular/base/mock/db/db.json +0 -10
- package/lib/skeletons/_angular/base/mock/server.js +0 -23
- package/lib/skeletons/_angular/base/package.json +0 -38
- package/lib/skeletons/_angular/base/proxy-mock.conf.json +0 -6
- package/lib/skeletons/_angular/base/proxy.conf.json +0 -6
- package/lib/skeletons/_angular/base/src/.eslintrc.json +0 -121
- package/lib/skeletons/_angular/base/src/app/app-starter.service.spec.ts +0 -68
- package/lib/skeletons/_angular/base/src/app/app-starter.service.ts +0 -68
- package/lib/skeletons/_angular/base/src/app/app.component.html +0 -35
- package/lib/skeletons/_angular/base/src/app/app.component.spec.ts +0 -60
- package/lib/skeletons/_angular/base/src/app/app.component.ts +0 -35
- package/lib/skeletons/_angular/base/src/app/app.config.ts +0 -84
- package/lib/skeletons/_angular/base/src/app/app.routes.ts +0 -9
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.html +0 -41
- package/lib/skeletons/_angular/base/src/app/features/home/home.component.ts +0 -17
- package/lib/skeletons/_angular/base/src/app/features/home/home.routes.ts +0 -6
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.html +0 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page1/page1.component.ts +0 -10
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.html +0 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/components/page2/page2.component.ts +0 -10
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.html +0 -7
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.component.ts +0 -10
- package/lib/skeletons/_angular/base/src/app/features/module1/module1.routes.ts +0 -10
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.html +0 -7
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.component.ts +0 -10
- package/lib/skeletons/_angular/base/src/app/features/module2/module2.routes.ts +0 -6
- package/lib/skeletons/_angular/base/src/app/shared/testing/router.mock.ts +0 -18
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-dev.json +0 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config-prod.json +0 -8
- package/lib/skeletons/_angular/base/src/assets/config/env-json-config.json +0 -7
- package/lib/skeletons/_angular/base/src/assets/i18n/en.json +0 -7
- package/lib/skeletons/_angular/base/src/assets/i18n/fr.json +0 -7
- package/lib/skeletons/_angular/base/src/config/global.ts +0 -33
- package/lib/skeletons/_angular/base/src/config/index.ts +0 -8
- package/lib/skeletons/_angular/base/src/config/modules.ts +0 -7
- package/lib/skeletons/_angular/base/src/dummy.spec.ts +0 -6
- package/lib/skeletons/_angular/base/src/environments/environment.prod.ts +0 -11
- package/lib/skeletons/_angular/base/src/environments/environment.ts +0 -15
- package/lib/skeletons/_angular/base/src/favicon.ico +0 -0
- package/lib/skeletons/_angular/base/src/index.html +0 -20
- package/lib/skeletons/_angular/base/src/karma.conf.js +0 -7
- package/lib/skeletons/_angular/base/src/main.ts +0 -20
- package/lib/skeletons/_angular/base/src/styles.scss +0 -1
- package/lib/skeletons/_angular/base/src/tsconfig.app.json +0 -18
- package/lib/skeletons/_angular/base/src/tsconfig.spec.json +0 -14
- package/lib/skeletons/_angular/base/tsconfig.json +0 -27
- package/lib/skeletons/_angular/base-mobile/angular.json +0 -156
- package/lib/skeletons/_angular/base-mobile/ionic.config.json +0 -5
- package/lib/skeletons/_angular/base-mobile/ngsw-config.json +0 -33
- package/lib/skeletons/_angular/base-mobile/package.json +0 -27
- package/lib/skeletons/_angular/base-mobile/src/app/app-routing.module.ts +0 -18
- package/lib/skeletons/_angular/base-mobile/src/app/app-starter.service.ts +0 -73
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.html +0 -47
- package/lib/skeletons/_angular/base-mobile/src/app/app.component.ts +0 -81
- package/lib/skeletons/_angular/base-mobile/src/app/app.config.ts +0 -81
- package/lib/skeletons/_angular/base-mobile/src/app/app.module.ts +0 -44
- package/lib/skeletons/_angular/base-mobile/src/app/core/components/.gitkeep +0 -0
- package/lib/skeletons/_angular/base-mobile/src/app/core/core.module.ts +0 -89
- package/lib/skeletons/_angular/base-mobile/src/app/core/reducers/index.ts +0 -32
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about-routing.module.ts +0 -45
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.html +0 -70
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.component.ts +0 -19
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/about.module.ts +0 -30
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.html +0 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/change-log/changelog.component.ts +0 -102
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.html +0 -20
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/help-support/help-support.component.ts +0 -75
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.html +0 -12
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/legal-notice/legal-notice.component.ts +0 -8
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.html +0 -48
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/licence-details/licence-details.component.ts +0 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.html +0 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/opensource-licences/opensource-licences.component.ts +0 -31
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.html +0 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/about/privacy-statement/privacy-statement.component.ts +0 -103
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home-routing.module.ts +0 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.html +0 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.component.ts +0 -9
- package/lib/skeletons/_angular/base-mobile/src/app/features/home/home.module.ts +0 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.html +0 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page1/page1.component.ts +0 -8
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.html +0 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/components/page2/page2.component.ts +0 -8
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1-routing.module.ts +0 -18
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.html +0 -15
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.component.ts +0 -17
- package/lib/skeletons/_angular/base-mobile/src/app/features/module1/module1.module.ts +0 -21
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2-routing.module.ts +0 -16
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.html +0 -11
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.component.ts +0 -7
- package/lib/skeletons/_angular/base-mobile/src/app/features/module2/module2.module.ts +0 -17
- package/lib/skeletons/_angular/base-mobile/src/app/shared/shared.module.ts +0 -16
- package/lib/skeletons/_angular/base-mobile/src/app/shared/testing/router.mock.ts +0 -18
- package/lib/skeletons/_angular/base-mobile/src/assets/docs/pdf-test.pdf +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/en.json +0 -25
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/es.json +0 -24
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/fr.json +0 -25
- package/lib/skeletons/_angular/base-mobile/src/assets/i18n/tr.json +0 -25
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-1024.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-114.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-120.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-128.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-144.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-152.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-16.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-180.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-192.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-32.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-36.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-384.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-48.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-512.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-57.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-60.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-72.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-76.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/app-icon-96.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1125-2436.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1170-2532.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1179-2556.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2208.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1242-2688.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1284-2778.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1290-2796.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1488-2266.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1536-2048.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1620-2160.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1640-2360.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2224.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-1668-2388.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-2048-2732.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-640-1136.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-750-1334.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-landscape-828-1792.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1125-2436.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1170-2532.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1179-2556.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2208.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1242-2688.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1284-2778.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1290-2796.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1488-2266.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1536-2048.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1620-2160.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1640-2360.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2224.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-1668-2388.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-2048-2732.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-640-1136.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-750-1334.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/icons/apple-splash-portrait-828-1792.png +0 -0
- package/lib/skeletons/_angular/base-mobile/src/assets/images/app-icon.svg +0 -10
- package/lib/skeletons/_angular/base-mobile/src/config/global.ts +0 -39
- package/lib/skeletons/_angular/base-mobile/src/config/index.ts +0 -8
- package/lib/skeletons/_angular/base-mobile/src/config/modules.ts +0 -7
- package/lib/skeletons/_angular/base-mobile/src/index.html +0 -76
- package/lib/skeletons/_angular/base-mobile/src/main.ts +0 -23
- package/lib/skeletons/_angular/base-mobile/src/manifest.webmanifest +0 -66
- package/lib/skeletons/_angular/base-mobile/src/tsconfig.app.json +0 -20
- package/lib/skeletons/_angular/options/ecl-ec/angular.json +0 -181
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.html +0 -237
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.component.ts +0 -65
- package/lib/skeletons/_angular/options/ecl-ec/src/app/app.config.ts +0 -84
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.html +0 -71
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/home/home.component.ts +0 -20
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page1/page1.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/components/page2/page2.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module1/module1.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-ec/src/app/features/module2/module2.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-ec/src/config/global.ts +0 -23
- package/lib/skeletons/_angular/options/ecl-eu/angular.json +0 -181
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.html +0 -203
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.component.ts +0 -65
- package/lib/skeletons/_angular/options/ecl-eu/src/app/app.config.ts +0 -84
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.html +0 -71
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/home/home.component.ts +0 -20
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page1/page1.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/components/page2/page2.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module1/module1.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.html +0 -1
- package/lib/skeletons/_angular/options/ecl-eu/src/app/features/module2/module2.component.ts +0 -7
- package/lib/skeletons/_angular/options/ecl-eu/src/app/shared/shared.module.ts +0 -19
- package/lib/skeletons/_angular/options/ecl-eu/src/config/global.ts +0 -23
- package/lib/skeletons/web-maven/package.json +0 -17
- package/lib/skeletons/web-maven/pom.xml +0 -55
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/servlet/SpringWebApplicationInitializer.java +0 -22
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/SpringRestConfiguration.java +0 -24
- package/lib/skeletons/web-maven/src/main/java/eu/europa/ec/digit/eui/angular2clistarter/spring/rest/UserDetailsResource.java +0 -23
- package/lib/skeletons/web-maven/src/main/resources/ecas-config-application-name.xml +0 -7
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/dispatcher-servlet.xml +0 -11
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/web.xml +0 -38
- package/lib/skeletons/web-maven/src/main/webapp/WEB-INF/weblogic.xml +0 -16
- package/lib/skeletons/web-maven/src/main/webapp/index.jsp +0 -30
- package/lib/skeletons/web-spring-boot/myapp-web/pom.xml +0 -83
- package/lib/skeletons/web-spring-boot/myapp-web-rest/pom.xml +0 -83
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/MyappApplication.java +0 -46
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Address.java +0 -65
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/domain/Building.java +0 -44
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/repositories/BuildingRepository.java +0 -11
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/BuildingResource.java +0 -26
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/SwaggerConfig.java +0 -16
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HateoasPageableHandlerMethodArgumentResolver.java +0 -45
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/HypermediaSupport.java +0 -25
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/resources/support/PageJsonSerializer.java +0 -17
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CachingPreventionFilter.java +0 -29
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/CsrfPreventionFilter.java +0 -35
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/FakeAuthenticationFilter.java +0 -372
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/security/SecurityConfig.java +0 -47
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingSearchCriteria.java +0 -26
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingService.java +0 -10
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/java/myapp/services/BuildingServiceImpl.java +0 -26
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/application.properties +0 -0
- package/lib/skeletons/web-spring-boot/myapp-web-rest/src/main/resources/data.sql +0 -11
- package/lib/skeletons/web-spring-boot/pom.xml +0 -30
- package/lib/skeletons/web-symfony/myapp-web/angular.json +0 -169
- package/lib/skeletons/web-symfony/myapp-web/package.json +0 -23
- package/lib/skeletons/web-symfony/myapp-web/src/app/app-routing.module.ts +0 -18
- package/lib/skeletons/web-symfony/myapp-web/src/app/app.component.ts +0 -77
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.html +0 -160
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.scss +0 -0
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/components/products.component.ts +0 -104
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/models/product.model.ts +0 -6
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products-routing.module.ts +0 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/products.module.ts +0 -16
- package/lib/skeletons/web-symfony/myapp-web/src/app/features/products/services/products.service.ts +0 -29
- package/lib/skeletons/web-symfony/myapp-web/src/environments/environment.ts +0 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/.env +0 -28
- package/lib/skeletons/web-symfony/myapp-web-rest/bin/console +0 -42
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.json +0 -67
- package/lib/skeletons/web-symfony/myapp-web-rest/composer.lock +0 -3572
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bootstrap.php +0 -21
- package/lib/skeletons/web-symfony/myapp-web-rest/config/bundles.php +0 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/config/config.yml +0 -0
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/cache.yaml +0 -19
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/dev/routing.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine.yaml +0 -29
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/doctrine_migrations.yaml +0 -5
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/framework.yaml +0 -17
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/prod/doctrine.yaml +0 -32
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/routing.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/sensio_framework_extra.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/framework.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/test/routing.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/packages/twig.yaml +0 -4
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/annotations.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes/dev/twig.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/routes.yaml +0 -3
- package/lib/skeletons/web-symfony/myapp-web-rest/config/services.yaml +0 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/public/index.php +0 -27
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Controller/ProductController.php +0 -196
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Entity/Product.php +0 -99
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Kernel.php +0 -53
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101623.php +0 -31
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Migrations/Version20190604101638.php +0 -35
- package/lib/skeletons/web-symfony/myapp-web-rest/src/Repository/ProductRepository.php +0 -51
- package/lib/skeletons/web-symfony/myapp-web-rest/symfony.lock +0 -274
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/base.html.twig +0 -12
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/lucky/number.html.twig +0 -1
- package/lib/skeletons/web-symfony/myapp-web-rest/templates/product/index.html.twig +0 -20
- package/lib/utils.js +0 -13
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { EuiEnvConfig } from '@eui/core';
|
|
2
|
-
|
|
3
|
-
interface EnvConfig extends EuiEnvConfig {
|
|
4
|
-
production: boolean;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const environment: EnvConfig = {
|
|
8
|
-
production: false,
|
|
9
|
-
enableDevToolRedux: true,
|
|
10
|
-
envDynamicConfig: {
|
|
11
|
-
uri: 'assets/env-json-config.json',
|
|
12
|
-
deepMerge: true,
|
|
13
|
-
merge: ['modules'],
|
|
14
|
-
},
|
|
15
|
-
};
|
|
Binary file
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html>
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<title>Application name</title>
|
|
6
|
-
<base href="/">
|
|
7
|
-
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
|
10
|
-
</head>
|
|
11
|
-
|
|
12
|
-
<body>
|
|
13
|
-
<app-root>
|
|
14
|
-
<div id="loader-wrapper">
|
|
15
|
-
<div id="loader"></div>
|
|
16
|
-
</div>
|
|
17
|
-
</app-root>
|
|
18
|
-
</body>
|
|
19
|
-
|
|
20
|
-
</html>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { enableProdMode } from '@angular/core';
|
|
2
|
-
import { preInitApp } from '@eui/core';
|
|
3
|
-
import { environment } from './environments/environment';
|
|
4
|
-
import { bootstrapApplication } from '@angular/platform-browser';
|
|
5
|
-
import { AppComponent } from './app/app.component';
|
|
6
|
-
import { appConfig } from './app/app.config';
|
|
7
|
-
|
|
8
|
-
if (environment.production) {
|
|
9
|
-
enableProdMode();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
preInitApp(environment).then(() =>
|
|
13
|
-
bootstrapApplication(AppComponent, appConfig).catch((err) => console.error(err)));
|
|
14
|
-
|
|
15
|
-
declare global {
|
|
16
|
-
interface Window {
|
|
17
|
-
global: Window;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
window.global = window;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/* You can add global styles to this file, and also import other style files */
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../out-tsc/app",
|
|
5
|
-
"types": []
|
|
6
|
-
},
|
|
7
|
-
"angularCompilerOptions": {
|
|
8
|
-
"annotateForClosureCompiler": true,
|
|
9
|
-
"strictTemplates": true,
|
|
10
|
-
"strictInjectionParameters": true,
|
|
11
|
-
},
|
|
12
|
-
"exclude": [
|
|
13
|
-
"**/*.spec.ts",
|
|
14
|
-
"app/shared/testing/router.mock.ts",
|
|
15
|
-
"environments/environment.prod.ts",
|
|
16
|
-
"environments/environment.dev.ts"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compileOnSave": false,
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"baseUrl": "./",
|
|
5
|
-
"outDir": "./dist/out-tsc",
|
|
6
|
-
"target": "ES2022",
|
|
7
|
-
"module": "ES2022",
|
|
8
|
-
"useDefineForClassFields": false,
|
|
9
|
-
"lib": [
|
|
10
|
-
"ES2022",
|
|
11
|
-
"dom"
|
|
12
|
-
],
|
|
13
|
-
"sourceMap": true,
|
|
14
|
-
"declaration": false,
|
|
15
|
-
"moduleResolution": "node",
|
|
16
|
-
"emitDecoratorMetadata": false,
|
|
17
|
-
"experimentalDecorators": true,
|
|
18
|
-
"allowSyntheticDefaultImports": true,
|
|
19
|
-
"importHelpers": true,
|
|
20
|
-
"typeRoots": [
|
|
21
|
-
"node_modules/@types"
|
|
22
|
-
],
|
|
23
|
-
"paths": {
|
|
24
|
-
"@shared/*": ["src/app/shared/*"],
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
3
|
-
"version": 1,
|
|
4
|
-
"newProjectRoot": "projects",
|
|
5
|
-
"cli": {
|
|
6
|
-
"analytics": false
|
|
7
|
-
},
|
|
8
|
-
"projects": {
|
|
9
|
-
"app": {
|
|
10
|
-
"root": "",
|
|
11
|
-
"sourceRoot": "src",
|
|
12
|
-
"projectType": "application",
|
|
13
|
-
"prefix": "app",
|
|
14
|
-
"schematics": {
|
|
15
|
-
"@schematics/angular:component": {
|
|
16
|
-
"style": "scss"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
"architect": {
|
|
20
|
-
"build": {
|
|
21
|
-
"builder": "@angular-devkit/build-angular:browser",
|
|
22
|
-
"options": {
|
|
23
|
-
"outputPath": "dist",
|
|
24
|
-
"index": "src/index.html",
|
|
25
|
-
"main": "src/main.ts",
|
|
26
|
-
"polyfills": ["zone.js"],
|
|
27
|
-
"tsConfig": "src/tsconfig.app.json",
|
|
28
|
-
"assets": [
|
|
29
|
-
"src/favicon.ico",
|
|
30
|
-
"src/assets",
|
|
31
|
-
"src/manifest.webmanifest",
|
|
32
|
-
{
|
|
33
|
-
"glob": "**/*",
|
|
34
|
-
"input": "src/assets",
|
|
35
|
-
"output": "assets"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"glob": "**/*",
|
|
39
|
-
"input": "node_modules/@eui/core/assets/",
|
|
40
|
-
"output": "./assets"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"glob": "**/*",
|
|
44
|
-
"input": "node_modules/@eui/ecl-core/assets/",
|
|
45
|
-
"output": "./assets"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"glob": "**/*",
|
|
49
|
-
"input": "node_modules/@eui/styles/dist/assets/images",
|
|
50
|
-
"output": "./assets/images"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"glob": "**/*.svg",
|
|
54
|
-
"input": "node_modules/ionicons/dist/ionicons/svg",
|
|
55
|
-
"output": "./svg"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"styles": [
|
|
59
|
-
"node_modules/@eui/mobile-styles/dist/eui-mobile.css",
|
|
60
|
-
"src/styles.scss"
|
|
61
|
-
]
|
|
62
|
-
},
|
|
63
|
-
"configurations": {
|
|
64
|
-
"production": {
|
|
65
|
-
"fileReplacements": [
|
|
66
|
-
{
|
|
67
|
-
"replace": "src/environments/environment.ts",
|
|
68
|
-
"with": "src/environments/environment.prod.ts"
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"optimization": false,
|
|
72
|
-
"outputHashing": "all",
|
|
73
|
-
"sourceMap": false,
|
|
74
|
-
"aot": true,
|
|
75
|
-
"extractLicenses": true,
|
|
76
|
-
"budgets": [
|
|
77
|
-
{
|
|
78
|
-
"type": "initial",
|
|
79
|
-
"maximumWarning": "6mb",
|
|
80
|
-
"maximumError": "9mb"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
},
|
|
84
|
-
"production-optimized": {
|
|
85
|
-
"fileReplacements": [
|
|
86
|
-
{
|
|
87
|
-
"replace": "src/environments/environment.ts",
|
|
88
|
-
"with": "src/environments/environment.prod.ts"
|
|
89
|
-
}
|
|
90
|
-
],
|
|
91
|
-
"optimization": {
|
|
92
|
-
"scripts": true,
|
|
93
|
-
"styles": {
|
|
94
|
-
"minify": false,
|
|
95
|
-
"inlineCritical": true
|
|
96
|
-
},
|
|
97
|
-
"fonts": true
|
|
98
|
-
},
|
|
99
|
-
"outputHashing": "all",
|
|
100
|
-
"sourceMap": false,
|
|
101
|
-
"extractLicenses": true,
|
|
102
|
-
"budgets": [
|
|
103
|
-
{
|
|
104
|
-
"type": "initial",
|
|
105
|
-
"maximumWarning": "2mb",
|
|
106
|
-
"maximumError": "6mb"
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
"development": {
|
|
111
|
-
"optimization": false,
|
|
112
|
-
"extractLicenses": false,
|
|
113
|
-
"sourceMap": true
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
"defaultConfiguration": "production"
|
|
117
|
-
},
|
|
118
|
-
"serve": {
|
|
119
|
-
"builder": "@angular-devkit/build-angular:dev-server",
|
|
120
|
-
"options": {
|
|
121
|
-
"browserTarget": "app:build"
|
|
122
|
-
},
|
|
123
|
-
"configurations": {
|
|
124
|
-
"proxy-mock": {
|
|
125
|
-
"browserTarget": "app:build:development",
|
|
126
|
-
"proxyConfig": "proxy-mock.conf.json"
|
|
127
|
-
},
|
|
128
|
-
"production": {
|
|
129
|
-
"browserTarget": "app:build:production"
|
|
130
|
-
},
|
|
131
|
-
"development": {
|
|
132
|
-
"browserTarget": "app:build:development"
|
|
133
|
-
}
|
|
134
|
-
},
|
|
135
|
-
"defaultConfiguration": "development"
|
|
136
|
-
},
|
|
137
|
-
"test": {
|
|
138
|
-
"builder": "@angular-devkit/build-angular:karma",
|
|
139
|
-
"options": {
|
|
140
|
-
"polyfills": ["zone.js", "zone.js/testing"],
|
|
141
|
-
"tsConfig": "src/tsconfig.spec.json",
|
|
142
|
-
"karmaConfig": "src/karma.conf.js",
|
|
143
|
-
"inlineStyleLanguage": "scss"
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
"lint": {
|
|
147
|
-
"builder": "@angular-eslint/builder:lint",
|
|
148
|
-
"options": {
|
|
149
|
-
"lintFilePatterns": ["src/**/*.ts", "src/**/*.html"],
|
|
150
|
-
"eslintConfig": "src/.eslintrc.json"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "./node_modules/@angular/service-worker/config/schema.json",
|
|
3
|
-
"index": "/index.html",
|
|
4
|
-
"appData": {
|
|
5
|
-
"version": "1.1.2"
|
|
6
|
-
},
|
|
7
|
-
"assetGroups": [
|
|
8
|
-
{
|
|
9
|
-
"name": "app",
|
|
10
|
-
"installMode": "prefetch",
|
|
11
|
-
"resources": {
|
|
12
|
-
"files": [
|
|
13
|
-
"/favicon.ico",
|
|
14
|
-
"/index.html",
|
|
15
|
-
"/manifest.webmanifest",
|
|
16
|
-
"/*.css",
|
|
17
|
-
"/*.js"
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "assets",
|
|
23
|
-
"installMode": "lazy",
|
|
24
|
-
"updateMode": "prefetch",
|
|
25
|
-
"resources": {
|
|
26
|
-
"files": [
|
|
27
|
-
"/assets/**",
|
|
28
|
-
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
]
|
|
33
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "eui-angular-app",
|
|
3
|
-
"version": "19.3.2",
|
|
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": "18.2.15",
|
|
24
|
-
"@eui/mobile-core": "18.1.1",
|
|
25
|
-
"@eui/mobile-styles": "18.1.1"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
const routes: Routes = [
|
|
5
|
-
{ path: '', redirectTo: 'screen/home', pathMatch: 'full' },
|
|
6
|
-
{ path: 'index.jsp', redirectTo: 'screen/home' },
|
|
7
|
-
{ path: 'screen/home', loadChildren: () => import('./features/home/home.module').then(m => m.Module) },
|
|
8
|
-
{ path: 'screen/module1', loadChildren: () => import('./features/module1/module1.module').then(m => m.Module) },
|
|
9
|
-
{ path: 'screen/module2', loadChildren: () => import('./features/module2/module2.module').then(m => m.Module) },
|
|
10
|
-
{ path: 'screen/about', loadChildren: () => import('./features/about/about.module').then(m => m.Module) },
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
@NgModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterModule.forRoot(routes),
|
|
16
|
-
],
|
|
17
|
-
})
|
|
18
|
-
export class AppRoutingModule {}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
CONFIG_TOKEN,
|
|
4
|
-
UserService,
|
|
5
|
-
EuiAppConfig,
|
|
6
|
-
UserDetails,
|
|
7
|
-
UserPreferences,
|
|
8
|
-
I18nService,
|
|
9
|
-
} from '@eui/core';
|
|
10
|
-
import { HttpClient } from '@angular/common/http';
|
|
11
|
-
import { Observable, of, zip, catchError } from 'rxjs';
|
|
12
|
-
import { switchMap } from 'rxjs/operators';
|
|
13
|
-
|
|
14
|
-
@Injectable({
|
|
15
|
-
providedIn: 'root',
|
|
16
|
-
})
|
|
17
|
-
export class AppStarterService {
|
|
18
|
-
defaultUserPreferences: UserPreferences;
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
protected userService: UserService,
|
|
22
|
-
protected i18nService: I18nService,
|
|
23
|
-
@Inject(CONFIG_TOKEN) private config: EuiAppConfig,
|
|
24
|
-
protected http: HttpClient,
|
|
25
|
-
) {
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
start(): Observable<any> {
|
|
29
|
-
|
|
30
|
-
return zip(
|
|
31
|
-
this.initUserService().pipe(
|
|
32
|
-
switchMap((userStatus) => {
|
|
33
|
-
return this.i18nService.init();
|
|
34
|
-
}),
|
|
35
|
-
),
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Fetches user details,
|
|
41
|
-
* create user: UserState object
|
|
42
|
-
* then initialise to the UserService on run time
|
|
43
|
-
*/
|
|
44
|
-
initUserService(): Observable<any> {
|
|
45
|
-
return zip(
|
|
46
|
-
this.fetchUserDetails(),
|
|
47
|
-
).pipe(
|
|
48
|
-
switchMap(([userDetails]) => {
|
|
49
|
-
return this.userService.init(userDetails);
|
|
50
|
-
}),
|
|
51
|
-
catchError((err) => {
|
|
52
|
-
return of(null);
|
|
53
|
-
})
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Fetches user details
|
|
59
|
-
*/
|
|
60
|
-
private fetchUserDetails(): Observable<UserDetails> {
|
|
61
|
-
// const url = this.config.modules.your_custom_module.your_custom_endpoint
|
|
62
|
-
const moduleCoreApi = this.config.modules.core;
|
|
63
|
-
const url = `${moduleCoreApi.base}${moduleCoreApi.userDetails}`;
|
|
64
|
-
const user = { userId: 'anonymous' };
|
|
65
|
-
|
|
66
|
-
if (!url) {
|
|
67
|
-
return of(user);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return this.http.get<UserDetails>(url)
|
|
71
|
-
.pipe(catchError(err => { return of(null); }));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
<euim-app>
|
|
2
|
-
<euim-sidebar id="mainSidebar">
|
|
3
|
-
<euim-user-profile>
|
|
4
|
-
<euim-user-profile-avatar>
|
|
5
|
-
<euim-avatar color="branding" size="m" fill="solid">
|
|
6
|
-
<euim-avatar-icon>
|
|
7
|
-
<ion-icon name="person-circle"></ion-icon>
|
|
8
|
-
</euim-avatar-icon>
|
|
9
|
-
</euim-avatar>
|
|
10
|
-
</euim-user-profile-avatar>
|
|
11
|
-
<euim-user-profile-infos>
|
|
12
|
-
<euim-user-profile-infos-item>
|
|
13
|
-
<div euimLabel euimLabelTitle>John Doe</div>
|
|
14
|
-
</euim-user-profile-infos-item>
|
|
15
|
-
<euim-user-profile-infos-item>
|
|
16
|
-
<div euimLabel euimLabelSubTitle>DG DIGIT</div>
|
|
17
|
-
</euim-user-profile-infos-item>
|
|
18
|
-
</euim-user-profile-infos>
|
|
19
|
-
<euim-user-profile-action>
|
|
20
|
-
<euim-language-selector color="branding"></euim-language-selector>
|
|
21
|
-
</euim-user-profile-action>
|
|
22
|
-
</euim-user-profile>
|
|
23
|
-
<euim-sidebar-content>
|
|
24
|
-
<ng-container *ngFor="let menuItem of sidebarItems">
|
|
25
|
-
<ion-item-divider *ngIf="menuItem?.isSection">
|
|
26
|
-
<ion-label>{{menuItem?.label}}</ion-label>
|
|
27
|
-
</ion-item-divider>
|
|
28
|
-
<ion-item *ngIf="!menuItem?.isSection"
|
|
29
|
-
(click)="onItemClick(menuItem)"
|
|
30
|
-
button
|
|
31
|
-
lines="none">
|
|
32
|
-
<ion-icon [color]="menuItem.iconColor" [name]="menuItem.icon"
|
|
33
|
-
slot="start"></ion-icon>
|
|
34
|
-
<ion-label>
|
|
35
|
-
<div euimDark euimLabel>{{menuItem?.label}}</div>
|
|
36
|
-
</ion-label>
|
|
37
|
-
</ion-item>
|
|
38
|
-
</ng-container>
|
|
39
|
-
</euim-sidebar-content>
|
|
40
|
-
<ion-footer>
|
|
41
|
-
<ion-item>
|
|
42
|
-
<div euimDark euimLabel euimSizeM>eUl/Mobile</div>
|
|
43
|
-
<div euimDefault euimLabel euimSizeS slot="end"></div>
|
|
44
|
-
</ion-item>
|
|
45
|
-
</ion-footer>
|
|
46
|
-
</euim-sidebar>
|
|
47
|
-
</euim-app>
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { Component, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
|
-
import {
|
|
4
|
-
getUserState,
|
|
5
|
-
UserState,
|
|
6
|
-
} from '@eui/core';
|
|
7
|
-
import { Observable, Subscription } from 'rxjs';
|
|
8
|
-
import { NavController } from "@ionic/angular";
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'app-root',
|
|
12
|
-
templateUrl: './app.component.html',
|
|
13
|
-
})
|
|
14
|
-
export class AppComponent implements OnDestroy {
|
|
15
|
-
userInfos: UserState;
|
|
16
|
-
// Observe state changes
|
|
17
|
-
userState: Observable<UserState>;
|
|
18
|
-
// an array to keep all subscriptions and easily unsubscribe
|
|
19
|
-
subs: Subscription[] = [];
|
|
20
|
-
|
|
21
|
-
public sidebarItems: MenuItem[] = [
|
|
22
|
-
{
|
|
23
|
-
label: 'Home', url: 'screen/home', icon: 'home-outline',
|
|
24
|
-
iconColor: 'dark',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
isSection: true,
|
|
28
|
-
label: 'MODULE 1',
|
|
29
|
-
},
|
|
30
|
-
{ label: 'Module Page', url: 'screen/module1',
|
|
31
|
-
icon: 'document-outline', iconColor: 'dark', },
|
|
32
|
-
{ label: 'Page 1', url: 'screen/module1/page1',
|
|
33
|
-
icon: 'document-outline', iconColor: 'dark', },
|
|
34
|
-
{ label: 'Page 2', url: 'screen/module1/page2',
|
|
35
|
-
icon: 'document-outline', iconColor: 'dark', },
|
|
36
|
-
{
|
|
37
|
-
isSection: true,
|
|
38
|
-
label: 'MODULE 2',
|
|
39
|
-
},
|
|
40
|
-
{ label: 'Module Page', url: 'screen/module2',
|
|
41
|
-
icon: 'document-outline', iconColor: 'dark', },
|
|
42
|
-
{
|
|
43
|
-
label: 'About this app', url: 'screen/about',
|
|
44
|
-
icon: 'phone-portrait-outline', iconColor: 'dark',
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
];
|
|
48
|
-
|
|
49
|
-
constructor(
|
|
50
|
-
private store: Store<any>,
|
|
51
|
-
private navCtrl:NavController,
|
|
52
|
-
) {
|
|
53
|
-
this.userState = this.store.select(getUserState);
|
|
54
|
-
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
55
|
-
this.userInfos = { ...user };
|
|
56
|
-
}));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
ngOnDestroy() {
|
|
60
|
-
this.subs.forEach((s: Subscription) => s.unsubscribe());
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
onItemClick(menuItem: MenuItem): void {
|
|
64
|
-
if (menuItem && menuItem.url) {
|
|
65
|
-
if (menuItem.url.indexOf('http') > -1) {
|
|
66
|
-
window.open(menuItem.url, '_blank');
|
|
67
|
-
} else {
|
|
68
|
-
this.navCtrl.navigateRoot(menuItem.url).then();
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface MenuItem {
|
|
76
|
-
icon?: string;
|
|
77
|
-
iconColor?: string;
|
|
78
|
-
label: string;
|
|
79
|
-
url?: string;
|
|
80
|
-
isSection?: boolean;
|
|
81
|
-
}
|