@eui/tools 6.5.6 → 6.6.0
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/.prettierrc.json +19 -0
- package/.version.properties +1 -1
- package/CHANGELOG.md +9 -0
- package/bin/eui-scripts.js +2 -0
- package/bin/scripts/csdr-app-package-init.js +16 -0
- package/bin/scripts/csdr-cli.js +1 -1
- package/package.json +1 -1
- package/scripts/app/public/index.html +22 -170
- package/scripts/app/public/index.js +95 -0
- package/scripts/app/public/package-init.html +254 -0
- package/scripts/app/public/package-init.js +138 -0
- package/scripts/app/public/stats.html +60 -125
- package/scripts/app/public/stats.js +68 -0
- package/scripts/app/routes/index.js +28 -9
- package/scripts/app/server.js +2 -0
- package/scripts/csdr/cli/cli-utils.js +2 -30
- package/scripts/csdr/cli/constants.js +1 -12
- package/scripts/csdr/cli/package-build-backend.js +18 -0
- package/scripts/csdr/cli/package-build-frontend.js +47 -164
- package/scripts/csdr/cli/package-prompt.js +0 -84
- package/scripts/csdr/cli/package.js +65 -14
- package/scripts/csdr/config/register.js +71 -158
- package/scripts/index.js +0 -1
- package/scripts/csdr/cli/app.js +0 -204
- package/scripts/csdr/cli/skeletons/app/angular-config.json +0 -31
- package/scripts/csdr/cli/skeletons/app/dependencies-base.json +0 -2
- package/scripts/csdr/cli/skeletons/app/dependencies-composite.json +0 -6
- package/scripts/csdr/cli/skeletons/app/gitignore_TO_REPLACE +0 -63
- package/scripts/csdr/cli/skeletons/app/mock/json/core/user.js +0 -31
- package/scripts/csdr/cli/skeletons/app/mock/json/lowdb.js +0 -25
- package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/delay.js +0 -10
- package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/errors.js +0 -73
- package/scripts/csdr/cli/skeletons/app/mock/json/middlewares/sse.js +0 -28
- package/scripts/csdr/cli/skeletons/app/mock/json/routes.json +0 -3
- package/scripts/csdr/cli/skeletons/app/mock/json/server.js +0 -38
- package/scripts/csdr/cli/skeletons/app/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app/scripts.json +0 -7
- package/scripts/csdr/cli/skeletons/app/src/app/app-routing.module.ts +0 -32
- package/scripts/csdr/cli/skeletons/app/src/app/app.component.html +0 -1
- package/scripts/csdr/cli/skeletons/app/src/app/app.component.ts +0 -9
- package/scripts/csdr/cli/skeletons/app/src/app/app.module.ts +0 -68
- package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.html +0 -27
- package/scripts/csdr/cli/skeletons/app/src/app/core/app-shell/app-shell.component.ts +0 -188
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.html +0 -30
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/about/about.component.ts +0 -71
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-404/page-404.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/error-pages/page-500/page-500.component.ts +0 -18
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.html +0 -104
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.scss +0 -44
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile/profile.component.ts +0 -39
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.html +0 -26
- package/scripts/csdr/cli/skeletons/app/src/app/core/components/profile-menu/profile-menu.component.ts +0 -104
- package/scripts/csdr/cli/skeletons/app/src/app/core/core.module.ts +0 -46
- package/scripts/csdr/cli/skeletons/app/src/app/core/services/core.service.ts +0 -124
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.html +0 -6
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app/src/app/features/home/home.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app/src/app/features/sample-lib.module.ts +0 -9
- package/scripts/csdr/cli/skeletons/app/src/app/shared/components/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/app/src/app/shared/shared.module.ts +0 -20
- package/scripts/csdr/cli/skeletons/app/src/assets/i18n/en.json +0 -3
- package/scripts/csdr/cli/skeletons/app/src/assets/i18n/fr.json +0 -3
- package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local-mwp-dev.json +0 -144
- package/scripts/csdr/cli/skeletons/app/src/assets/openid-login-config.local.json +0 -36
- package/scripts/csdr/cli/skeletons/app/src/config/global.ts +0 -9
- package/scripts/csdr/cli/skeletons/app/src/config/index.ts +0 -8
- package/scripts/csdr/cli/skeletons/app/src/config/modules.ts +0 -13
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.dev.ts +0 -4
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-mwp-dev-openid.ts +0 -6
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.local-openid.ts +0 -5
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.prod.ts +0 -12
- package/scripts/csdr/cli/skeletons/app/src/environments/environment.ts +0 -5
- package/scripts/csdr/cli/skeletons/app/src/index.html +0 -24
- package/scripts/csdr/cli/skeletons/app/src/styles.scss +0 -1
- package/scripts/csdr/cli/skeletons/app/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/app-eui10/angular-config.json +0 -20
- package/scripts/csdr/cli/skeletons/app-eui10/dependencies-composite.json +0 -5
- package/scripts/csdr/cli/skeletons/app-eui10/gitignore_TO_REPLACE +0 -63
- package/scripts/csdr/cli/skeletons/app-eui10/mock/app/models/user.js +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/index.js +0 -5
- package/scripts/csdr/cli/skeletons/app-eui10/mock/app/routes/user_routes.js +0 -24
- package/scripts/csdr/cli/skeletons/app-eui10/mock/db/db.json +0 -12
- package/scripts/csdr/cli/skeletons/app-eui10/mock/server.js +0 -16
- package/scripts/csdr/cli/skeletons/app-eui10/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app-eui10/scripts.json +0 -5
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-routing.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app-starter.service.ts +0 -68
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.html +0 -29
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.component.ts +0 -55
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/app.module.ts +0 -27
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/components/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/core.module.ts +0 -84
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/core/reducers/index.ts +0 -33
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/home/home.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page1/page1.component.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/components/page2/page2.component.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1-routing.module.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2-routing.module.ts +0 -16
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.html +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.component.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2.module.ts +0 -17
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/shared.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-eui10/src/app/shared/testing/router.mock.ts +0 -18
- package/scripts/csdr/cli/skeletons/app-eui10/src/assets/config/env-json-config.json +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/en.json +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/assets/i18n/fr.json +0 -7
- package/scripts/csdr/cli/skeletons/app-eui10/src/config/global.ts +0 -26
- package/scripts/csdr/cli/skeletons/app-eui10/src/config/index.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-eui10/src/config/modules.ts +0 -4
- package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.prod.ts +0 -9
- package/scripts/csdr/cli/skeletons/app-eui10/src/environments/environment.ts +0 -9
- package/scripts/csdr/cli/skeletons/app-eui10/src/index.html +0 -21
- package/scripts/csdr/cli/skeletons/app-eui10/src/styles.scss +0 -1
- package/scripts/csdr/cli/skeletons/app-eui10/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/app-showcase/angular-config.json +0 -103
- package/scripts/csdr/cli/skeletons/app-showcase/dependencies-composite.json +0 -5
- package/scripts/csdr/cli/skeletons/app-showcase/gitignore_TO_REPLACE +0 -50
- package/scripts/csdr/cli/skeletons/app-showcase/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app-showcase/scripts.json +0 -3
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app-routing.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.html +0 -24
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/app.routes.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase/src/app/features/_home/home.module.ts +0 -17
- package/scripts/csdr/cli/skeletons/app-showcase/src/assets/app-metadata.json +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase/src/assets/config/env-json-config.json +0 -41
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/angular-config.json +0 -33
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/dependencies-composite.json +0 -5
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/gitignore_TO_REPLACE +0 -50
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/package.json +0 -6
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/scripts.json +0 -3
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app-routing.module.ts +0 -21
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.html +0 -26
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.component.ts +0 -19
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/app.routes.ts +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home-routing.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.html +0 -7
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.component.ts +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/_home/home.module.ts +0 -17
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/app/features/shared/shared.module.ts +0 -15
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/app-metadata.json +0 -8
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/assets/config/env-json-config.json +0 -41
- package/scripts/csdr/cli/skeletons/app-showcase-eui13/src/index.html +0 -22
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/assets/remote-sources/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-base.json +0 -2
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/dependencies-composite.json +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/src/dummy.spec.ts.TO_REPLACE +0 -5
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tsconfig.lib.json +0 -32
- package/scripts/csdr/cli/skeletons/package/frontend-eui10/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/package/frontend-eui13/dependencies-composite.json +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/index.ts +0 -2
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.html +0 -1
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.spec.ts.TO_REPLACE +0 -25
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/components/cmp1/cmp1.component.ts +0 -14
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/module.ts +0 -17
- package/scripts/csdr/cli/skeletons/package/frontend-option-route/src/lib/routing.module.ts +0 -14
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/angular.json +0 -90
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/browserslist +0 -6
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-base.json +0 -2
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-ACC.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-DLT.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-INT.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-PROD.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite-TRN.json +0 -4
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/dependencies-composite.json +0 -8
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/gitignore_TO_REPLACE +0 -65
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/karma.conf.js +0 -7
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/package.json_TO_REPLACE +0 -8
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.scss +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/dummy.spec.ts +0 -6
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/eui-components.ts +0 -11
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/fallback.component.ts +0 -11
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.component.ts +0 -91
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/module.ts +0 -87
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/custom-route-serializer.ts +0 -28
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/reducers/index.ts +0 -43
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/app/routing.module.ts +0 -33
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/assets/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/global.ts +0 -42
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/index.ts +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/config/modules.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.prod.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/environments/environment.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/favicon.ico +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/index.html +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/main.ts +0 -12
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/src/polyfills.ts +0 -87
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.app.json +0 -20
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tsconfig.spec.json +0 -18
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint-remote.json +0 -7
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/tslint.json +0 -17
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui10/webpack.extra.js +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.scss +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/dummy.spec.ts +0 -6
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/eui-components.ts +0 -9
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/fallback.component.ts +0 -11
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.component.ts +0 -91
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/module.ts +0 -87
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/custom-route-serializer.ts +0 -28
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/reducers/index.ts +0 -43
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/app/routing.module.ts +0 -33
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/assets/.gitkeep +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/global.ts +0 -55
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/index.ts +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/config/modules.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.prod.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/environments/environment.ts +0 -3
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/favicon.ico +0 -0
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/index.html +0 -10
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/main.ts +0 -12
- package/scripts/csdr/cli/skeletons/package/frontend-remote-eui15/src/polyfills.ts +0 -87
- package/scripts/csdr/cli/skeletons/virtual-remote/10.x/angular-config.json +0 -9
- package/scripts/csdr/cli/skeletons/virtual-remote/10.x/dependencies.json +0 -20
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/en.json +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/assets/i18n/fr.json +0 -0
- /package/scripts/csdr/cli/skeletons/{app-eui10 → package/frontend-eui15}/dependencies-base.json +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/gitignore_TO_REPLACE +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/karma.conf.js +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/ng-package.json +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/package.json +0 -0
- /package/scripts/csdr/cli/skeletons/{app/src/app/core → package/frontend-eui15/src}/dummy.spec.ts.TO_REPLACE +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/index.ts +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/lib/module.ts +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/src/test.ts.TO_REPLACE +0 -0
- /package/scripts/csdr/cli/skeletons/package/{frontend-eui10 → frontend-eui15}/tsconfig.spec.json +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const User = require('../models/user');
|
|
2
|
-
const uuid = require('uuid');
|
|
3
|
-
|
|
4
|
-
module.exports = function (app, db) {
|
|
5
|
-
db.then(db => {
|
|
6
|
-
|
|
7
|
-
app.get('/api/user-details', (req, res) => {
|
|
8
|
-
res.send(db.get('user-details'))
|
|
9
|
-
});
|
|
10
|
-
|
|
11
|
-
app.get('/api/users', (req, res) => {
|
|
12
|
-
res.send(db.get('users'))
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
app.post('/api/users', (req, res) => {
|
|
16
|
-
db.get('users')
|
|
17
|
-
.push({ ...User, ...req.body, ...{ id: uuid.v1() } })
|
|
18
|
-
.last()
|
|
19
|
-
.write()
|
|
20
|
-
.then(user => res.send(user))
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
});
|
|
24
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const express = require('express');
|
|
2
|
-
const bodyParser = require('body-parser');
|
|
3
|
-
const app = express();
|
|
4
|
-
const low = require('lowdb')
|
|
5
|
-
const FileAsync = require('lowdb/adapters/FileAsync')
|
|
6
|
-
const adapter = new FileAsync('apps/@app.name@/mock/db/db.json')
|
|
7
|
-
const db = low(adapter)
|
|
8
|
-
const port = 3000;
|
|
9
|
-
|
|
10
|
-
app.use(bodyParser.urlencoded({ extended: true }));
|
|
11
|
-
|
|
12
|
-
require('./app/routes')(app, db);
|
|
13
|
-
|
|
14
|
-
app.listen(port, () => {
|
|
15
|
-
console.log('We are live on ' + port);
|
|
16
|
-
});
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@app.name@:start-mock-server": "nodemon --ext js --watch ./apps/@app.name@/mock ./apps/@app.name@/mock/server.js",
|
|
3
|
-
"@app.name@:start-serve": "eui-scripts serve-app @app.name@ --configuration=proxy-mock",
|
|
4
|
-
"@app.name@:start": "npm-run-all --parallel @app.name@:start-mock-server @app.name@:start-serve"
|
|
5
|
-
}
|
|
@@ -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: 'home', pathMatch: 'full' },
|
|
6
|
-
{ path: 'index.jsp', redirectTo: 'home' },
|
|
7
|
-
{ path: 'home', loadChildren: './features/home/home.module#Module' },
|
|
8
|
-
{ path: 'module1', loadChildren: './features/module1/module1.module#Module' },
|
|
9
|
-
{ path: 'module2', loadChildren: './features/module2/module2.module#Module' },
|
|
10
|
-
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
@NgModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterModule.forRoot(routes),
|
|
16
|
-
],
|
|
17
|
-
})
|
|
18
|
-
export class AppRoutingModule {}
|
|
@@ -1,68 +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 } from 'rxjs';
|
|
12
|
-
import { switchMap } from 'rxjs/operators';
|
|
13
|
-
|
|
14
|
-
@Injectable({
|
|
15
|
-
providedIn: 'root',
|
|
16
|
-
})
|
|
17
|
-
export class AppStarterService {
|
|
18
|
-
defaultUserPreferences: UserPreferences;
|
|
19
|
-
|
|
20
|
-
constructor(
|
|
21
|
-
protected userService: UserService,
|
|
22
|
-
protected i18nService: I18nService,
|
|
23
|
-
@Inject(CONFIG_TOKEN) private config: EuiAppConfig,
|
|
24
|
-
protected http: HttpClient,
|
|
25
|
-
) {
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
start(): Observable<any> {
|
|
29
|
-
|
|
30
|
-
return zip(
|
|
31
|
-
this.initUserService().pipe(
|
|
32
|
-
switchMap((userStatus) => {
|
|
33
|
-
console.log(userStatus);
|
|
34
|
-
return this.i18nService.init();
|
|
35
|
-
}),
|
|
36
|
-
),
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Fetches user details,
|
|
42
|
-
* create user: UserState object
|
|
43
|
-
* then initialise to the UserService on run time
|
|
44
|
-
*/
|
|
45
|
-
initUserService(): Observable<any> {
|
|
46
|
-
return zip(
|
|
47
|
-
this.fetchUserDetails(),
|
|
48
|
-
).pipe(
|
|
49
|
-
switchMap(([userDetails]) => {
|
|
50
|
-
return this.userService.init(userDetails);
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Fetches user details
|
|
56
|
-
*/
|
|
57
|
-
private fetchUserDetails(): Observable<UserDetails> {
|
|
58
|
-
// const url = this.config.modules.your_custom_module.your_custom_endpoint
|
|
59
|
-
const moduleCoreApi = this.config.modules.core;
|
|
60
|
-
const url = `${moduleCoreApi.base}${moduleCoreApi.userDetails}`;
|
|
61
|
-
const user = { userId: 'anonymous' };
|
|
62
|
-
|
|
63
|
-
if (!url) {
|
|
64
|
-
return of(user);
|
|
65
|
-
}
|
|
66
|
-
return this.http.get<UserDetails>(url);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<eui-app [userInfos]="userInfos?.fullName" isSidebarOpen=true>
|
|
2
|
-
<eui-app-toolbar>
|
|
3
|
-
<eui-toolbar>
|
|
4
|
-
<eui-toolbar-logo></eui-toolbar-logo>
|
|
5
|
-
<eui-toolbar-app appName="@app.name@"></eui-toolbar-app>
|
|
6
|
-
<eui-toolbar-environment>MOCK</eui-toolbar-environment>
|
|
7
|
-
<eui-toolbar-items euiPositionRight>
|
|
8
|
-
<eui-toolbar-item-user-profile>
|
|
9
|
-
<eui-user-profile-menu>
|
|
10
|
-
<eui-user-profile-menu-item>
|
|
11
|
-
<eui-icon iconClass="eui-icon-person-thin"></eui-icon> {{ 'eui.my-profile-informations' | translate }}
|
|
12
|
-
</eui-user-profile-menu-item>
|
|
13
|
-
<eui-user-profile-menu-item>
|
|
14
|
-
<eui-icon iconClass="eui-icon-logout-thin"></eui-icon> {{ 'eui.sign-out' | translate }}
|
|
15
|
-
</eui-user-profile-menu-item>
|
|
16
|
-
</eui-user-profile-menu>
|
|
17
|
-
</eui-toolbar-item-user-profile>
|
|
18
|
-
<eui-toolbar-item-notifications>
|
|
19
|
-
<eui-notifications [count]="notificationItems?.length" [items]="notificationItems"></eui-notifications>
|
|
20
|
-
</eui-toolbar-item-notifications>
|
|
21
|
-
</eui-toolbar-items>
|
|
22
|
-
</eui-toolbar>
|
|
23
|
-
</eui-app-toolbar>
|
|
24
|
-
<eui-app-sidebar>
|
|
25
|
-
<eui-app-sidebar-body>
|
|
26
|
-
<eui-app-sidebar-menu [items]="sidebarItems"></eui-app-sidebar-menu>
|
|
27
|
-
</eui-app-sidebar-body>
|
|
28
|
-
</eui-app-sidebar>
|
|
29
|
-
</eui-app>
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Component, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Store } from '@ngrx/store';
|
|
3
|
-
import {
|
|
4
|
-
getUserState,
|
|
5
|
-
UserState,
|
|
6
|
-
} from '@eui/core';
|
|
7
|
-
import { Observable, Subscription } from 'rxjs';
|
|
8
|
-
import { AppStarterService } from './app-starter.service';
|
|
9
|
-
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'app-root',
|
|
12
|
-
templateUrl: './app.component.html',
|
|
13
|
-
})
|
|
14
|
-
export class AppComponent implements OnInit, 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
|
-
sidebarItems = [
|
|
22
|
-
{ label: 'Home', url: 'home', iconClass: 'eui-icon-home' },
|
|
23
|
-
{ label: 'Module 1', url: 'module1', iconClass: 'eui-icon-work', children: [
|
|
24
|
-
{ label: 'page 1', url: 'module1/page1' },
|
|
25
|
-
{ label: 'page 2', url: 'module1/page2' },
|
|
26
|
-
] },
|
|
27
|
-
{ label: 'Module 2', url: 'module2', iconClass: 'eui-icon-work' },
|
|
28
|
-
];
|
|
29
|
-
notificationItems = [
|
|
30
|
-
{ label: 'Title label 1', subLabel: 'Subtitle label' },
|
|
31
|
-
{ label: 'Title label 2', subLabel: 'Subtitle label' },
|
|
32
|
-
{ label: 'Title label 3', subLabel: 'Subtitle label' },
|
|
33
|
-
{ label: 'Title label 4', subLabel: 'Subtitle label' },
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
constructor(
|
|
37
|
-
private store: Store<any>,
|
|
38
|
-
private appStarterService: AppStarterService,
|
|
39
|
-
) {
|
|
40
|
-
this.appStarterService.start().subscribe(() => {
|
|
41
|
-
this.userState = <any>this.store.select(getUserState);
|
|
42
|
-
this.subs.push(this.userState.subscribe((user: UserState) => {
|
|
43
|
-
this.userInfos = { ...user };
|
|
44
|
-
console.log(user);
|
|
45
|
-
}));
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
ngOnInit() {
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
ngOnDestroy() {
|
|
53
|
-
this.subs.forEach((s: Subscription) => s.unsubscribe());
|
|
54
|
-
}
|
|
55
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BrowserModule } from '@angular/platform-browser';
|
|
2
|
-
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
3
|
-
import { NgModule } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
6
|
-
import { AppComponent } from './app.component';
|
|
7
|
-
import { CoreModule } from './core/core.module';
|
|
8
|
-
import { AppStarterService } from './app-starter.service';
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
declarations: [
|
|
12
|
-
AppComponent,
|
|
13
|
-
],
|
|
14
|
-
imports: [
|
|
15
|
-
BrowserModule,
|
|
16
|
-
BrowserAnimationsModule,
|
|
17
|
-
CoreModule,
|
|
18
|
-
AppRoutingModule,
|
|
19
|
-
],
|
|
20
|
-
providers: [
|
|
21
|
-
AppStarterService,
|
|
22
|
-
],
|
|
23
|
-
bootstrap: [
|
|
24
|
-
AppComponent,
|
|
25
|
-
],
|
|
26
|
-
})
|
|
27
|
-
export class AppModule {}
|
|
File without changes
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
3
|
-
import { StoreModule } from '@ngrx/store';
|
|
4
|
-
import { EffectsModule } from '@ngrx/effects';
|
|
5
|
-
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
6
|
-
|
|
7
|
-
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
8
|
-
import {
|
|
9
|
-
CachePreventionInterceptor,
|
|
10
|
-
CorsSecurityInterceptor,
|
|
11
|
-
CsrfPreventionInterceptor,
|
|
12
|
-
EuLoginSessionTimeoutHandlingInterceptor,
|
|
13
|
-
CoreModule as EuiCoreModule,
|
|
14
|
-
translateConfig,
|
|
15
|
-
CoreModuleEffects,
|
|
16
|
-
EUI_CONFIG_TOKEN,
|
|
17
|
-
} from '@eui/core';
|
|
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
|
-
EuiCoreModule.forRoot(),
|
|
30
|
-
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
31
|
-
TranslateModule.forRoot(translateConfig),
|
|
32
|
-
StoreModule.forRoot(REDUCER_TOKEN, { metaReducers }),
|
|
33
|
-
!environment.production ? StoreDevtoolsModule.instrument({ maxAge: 50 }) : [],
|
|
34
|
-
],
|
|
35
|
-
declarations: [
|
|
36
|
-
],
|
|
37
|
-
exports: [
|
|
38
|
-
SharedModule,
|
|
39
|
-
],
|
|
40
|
-
providers: [
|
|
41
|
-
{
|
|
42
|
-
provide: REDUCER_TOKEN,
|
|
43
|
-
deps: [],
|
|
44
|
-
useFactory: getReducers,
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
provide: EUI_CONFIG_TOKEN,
|
|
48
|
-
useValue: { appConfig: appConfig, environment: environment }
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
// Sets the withCredentials on Ajax Request to send the JSESSIONID cookie to another domain.
|
|
52
|
-
// This is necessary when a request is being made to another domain that is protected by EU Login.
|
|
53
|
-
provide: HTTP_INTERCEPTORS,
|
|
54
|
-
useClass: CorsSecurityInterceptor,
|
|
55
|
-
multi: true,
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
// WARNING: in case of OpenID this is not needed since OpenID is stateless therefore no revalidation needed.
|
|
59
|
-
// When the authentication session is invalid, we need to re-authenticate. The browser refreshes the current URL,
|
|
60
|
-
// and lets the EU Login client redirect to the official EU Login page.
|
|
61
|
-
provide: HTTP_INTERCEPTORS,
|
|
62
|
-
useClass: EuLoginSessionTimeoutHandlingInterceptor,
|
|
63
|
-
multi: true,
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
// Adds HTTP header to each Ajax request that ensures the request is set by a piece of JavaScript code in the application.
|
|
67
|
-
// This prevents dynamically-loaded content from forging a request in the name of the currently logged-in user.
|
|
68
|
-
// Be aware that this assumes that cross-site scripting (XSS) is already put in place, (default setting in Angular).
|
|
69
|
-
provide: HTTP_INTERCEPTORS,
|
|
70
|
-
useClass: CsrfPreventionInterceptor,
|
|
71
|
-
multi: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
// Asks the intermediate proxies not to return a cache copy of the resource.
|
|
75
|
-
// In matter of fact forces each server in the chain to validate the freshness of the resource.
|
|
76
|
-
provide: HTTP_INTERCEPTORS,
|
|
77
|
-
useClass: CachePreventionInterceptor,
|
|
78
|
-
multi: true,
|
|
79
|
-
},
|
|
80
|
-
]
|
|
81
|
-
})
|
|
82
|
-
export class CoreModule {
|
|
83
|
-
|
|
84
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { MetaReducer } from '@ngrx/store';
|
|
3
|
-
import { storeFreeze } from 'ngrx-store-freeze';
|
|
4
|
-
import { reducers as coreReducers, CoreState, getAppState, localStorageSync } from '@eui/core';
|
|
5
|
-
|
|
6
|
-
import { environment } from '../../../environments/environment';
|
|
7
|
-
|
|
8
|
-
export const REDUCER_TOKEN = new InjectionToken<any>('Registered Reducers');
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Define here your app state
|
|
12
|
-
*
|
|
13
|
-
* [IMPORTANT]
|
|
14
|
-
* There are some **reserved** slice of the state
|
|
15
|
-
* that you **can not** use in your application ==> app |user | notification
|
|
16
|
-
*/
|
|
17
|
-
/* tslint:disable-next-line */
|
|
18
|
-
export interface AppState extends CoreState {
|
|
19
|
-
// [key: string]: fromTaskManager.State | any;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Define here the reducers of your app
|
|
24
|
-
*/
|
|
25
|
-
const rootReducer = Object.assign({}, coreReducers, {
|
|
26
|
-
// [fromTaskManager.namespace]: fromTaskManager.reducers,
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
export function getReducers() {
|
|
30
|
-
return rootReducer;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [localStorageSync, storeFreeze] : [localStorageSync];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { HomeComponent } from './home.component';
|
|
5
|
-
|
|
6
|
-
const routes: Routes = [
|
|
7
|
-
{ path: '', component: HomeComponent },
|
|
8
|
-
];
|
|
9
|
-
|
|
10
|
-
@NgModule({
|
|
11
|
-
imports: [
|
|
12
|
-
RouterModule.forChild(routes)
|
|
13
|
-
],
|
|
14
|
-
})
|
|
15
|
-
export class HomeRoutingModule {}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import { UxAppShellService } from '@eui/core';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
templateUrl: './home.component.html',
|
|
6
|
-
})
|
|
7
|
-
export class HomeComponent {
|
|
8
|
-
constructor(
|
|
9
|
-
private asService: UxAppShellService,
|
|
10
|
-
) {
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
onUpdateAppName() {
|
|
14
|
-
this.asService.setState({
|
|
15
|
-
...this.asService.state,
|
|
16
|
-
appName: 'Updated app name'
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { SharedModule } from '../../shared/shared.module';
|
|
4
|
-
|
|
5
|
-
import { HomeRoutingModule } from './home-routing.module';
|
|
6
|
-
|
|
7
|
-
import { HomeComponent } from './home.component';
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
imports: [
|
|
11
|
-
SharedModule,
|
|
12
|
-
HomeRoutingModule,
|
|
13
|
-
],
|
|
14
|
-
declarations: [
|
|
15
|
-
HomeComponent,
|
|
16
|
-
],
|
|
17
|
-
})
|
|
18
|
-
export class Module {}
|
package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module1/module1-routing.module.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { Page1Component } from './components/page1/page1.component';
|
|
4
|
-
import { Page2Component } from './components/page2/page2.component';
|
|
5
|
-
import { Module1Component } from './module1.component';
|
|
6
|
-
|
|
7
|
-
const routes: Routes = [
|
|
8
|
-
{ path: '', component: Module1Component },
|
|
9
|
-
{ path: 'page1', component: Page1Component },
|
|
10
|
-
{ path: 'page2', component: Page2Component },
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
@NgModule({
|
|
14
|
-
imports: [
|
|
15
|
-
RouterModule.forChild(routes)
|
|
16
|
-
],
|
|
17
|
-
})
|
|
18
|
-
export class Module1RoutingModule {}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Module1RoutingModule } from './module1-routing.module';
|
|
3
|
-
import { Module1Component } from './module1.component';
|
|
4
|
-
import { Page1Component } from './components/page1/page1.component';
|
|
5
|
-
import { Page2Component } from './components/page2/page2.component';
|
|
6
|
-
|
|
7
|
-
import { SharedModule } from '../../shared/shared.module';
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
imports: [
|
|
11
|
-
SharedModule,
|
|
12
|
-
Module1RoutingModule,
|
|
13
|
-
],
|
|
14
|
-
declarations: [
|
|
15
|
-
Module1Component,
|
|
16
|
-
Page1Component,
|
|
17
|
-
Page2Component,
|
|
18
|
-
],
|
|
19
|
-
})
|
|
20
|
-
export class Module {
|
|
21
|
-
}
|
package/scripts/csdr/cli/skeletons/app-eui10/src/app/features/module2/module2-routing.module.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes } from '@angular/router';
|
|
3
|
-
import { Module2Component } from './module2.component';
|
|
4
|
-
|
|
5
|
-
const routes: Routes = [
|
|
6
|
-
{ path: '', component: Module2Component },
|
|
7
|
-
];
|
|
8
|
-
|
|
9
|
-
@NgModule({
|
|
10
|
-
imports: [
|
|
11
|
-
RouterModule.forChild([
|
|
12
|
-
{ path: '', component: Module2Component }
|
|
13
|
-
])
|
|
14
|
-
],
|
|
15
|
-
})
|
|
16
|
-
export class Module2RoutingModule {}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { Module2RoutingModule } from './module2-routing.module';
|
|
3
|
-
import { Module2Component } from './module2.component';
|
|
4
|
-
|
|
5
|
-
import { SharedModule } from '../../shared/shared.module';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [
|
|
9
|
-
SharedModule,
|
|
10
|
-
Module2RoutingModule,
|
|
11
|
-
],
|
|
12
|
-
declarations: [
|
|
13
|
-
Module2Component,
|
|
14
|
-
],
|
|
15
|
-
})
|
|
16
|
-
export class Module {
|
|
17
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
3
|
-
|
|
4
|
-
import { UxAllModule } from '@eui/components';
|
|
5
|
-
import { EuiAllModule } from '@eui/components-next';
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [
|
|
9
|
-
UxAllModule,
|
|
10
|
-
EuiAllModule,
|
|
11
|
-
TranslateModule,
|
|
12
|
-
],
|
|
13
|
-
declarations: [
|
|
14
|
-
],
|
|
15
|
-
exports: [
|
|
16
|
-
UxAllModule,
|
|
17
|
-
EuiAllModule,
|
|
18
|
-
TranslateModule,
|
|
19
|
-
]
|
|
20
|
-
})
|
|
21
|
-
export class SharedModule {}
|