@eui/tools 6.5.5 → 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 +18 -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/csdr/templates/template-utils.js +2 -2
- package/scripts/index.js +0 -1
- package/scripts/utils/sonar/sonar-utils.js +1 -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
package/scripts/csdr/cli/app.js
DELETED
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
// GLOBAL
|
|
4
|
-
const inquirer = require('inquirer');
|
|
5
|
-
const path = require('path');
|
|
6
|
-
const execa = require('execa');
|
|
7
|
-
const replace = require('replace-in-file');
|
|
8
|
-
|
|
9
|
-
// LOCAL
|
|
10
|
-
const tools = require('../../../scripts/utils/tools');
|
|
11
|
-
const configUtils = require('../config/config-utils');
|
|
12
|
-
|
|
13
|
-
// CONSTANTS
|
|
14
|
-
const TARGET_ROOT_PATH = path.join(process.cwd(), 'apps');
|
|
15
|
-
const APP_SKELETON_EUI7_PATH = path.join(__dirname, 'skeletons', 'app');
|
|
16
|
-
const APP_SKELETON_EUI10_PATH = path.join(__dirname, 'skeletons', 'app-eui10');
|
|
17
|
-
const APP_SKELETON_EUI13_PATH = path.join(__dirname, 'skeletons', 'app-eui13');
|
|
18
|
-
const APP_SHOWCASE_SKELETON_PATH = path.join(__dirname, 'skeletons', 'app-showcase');
|
|
19
|
-
const APP_SHOWCASE_SKELETON_EUI13_PATH = path.join(__dirname, 'skeletons', 'app-showcase-eui13');
|
|
20
|
-
|
|
21
|
-
const defaultConfig = {
|
|
22
|
-
appType: {
|
|
23
|
-
DEFAULT: 'default',
|
|
24
|
-
SHOWCASE: 'showcase'
|
|
25
|
-
},
|
|
26
|
-
appVersion: {
|
|
27
|
-
EUI7: 'v7',
|
|
28
|
-
EUI10: 'v10',
|
|
29
|
-
EUI13: 'v13'
|
|
30
|
-
},
|
|
31
|
-
appName: 'my-app',
|
|
32
|
-
appScope: '@app'
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const prompt = () => {
|
|
37
|
-
return Promise.resolve()
|
|
38
|
-
.then(() => {
|
|
39
|
-
return inquirer.prompt([
|
|
40
|
-
{
|
|
41
|
-
type: 'list',
|
|
42
|
-
name: 'appType',
|
|
43
|
-
message: 'Select an app type :',
|
|
44
|
-
choices: [
|
|
45
|
-
{ name: 'CSDR default - with openId connect', value: defaultConfig.appType.DEFAULT },
|
|
46
|
-
{ name: 'Showcase - Playground with pre-generated skeleton sources', value: defaultConfig.appType.SHOWCASE },
|
|
47
|
-
],
|
|
48
|
-
default: defaultConfig.appType.DEFAULT,
|
|
49
|
-
validate: function (value) {
|
|
50
|
-
if (value.length) {
|
|
51
|
-
return true;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
type: 'list',
|
|
57
|
-
name: 'appVersion',
|
|
58
|
-
message: 'Select eUI version target :',
|
|
59
|
-
choices: [
|
|
60
|
-
{ name: 'v10', value: defaultConfig.appVersion.EUI10 },
|
|
61
|
-
{ name: 'v13', value: defaultConfig.appVersion.EUI13 },
|
|
62
|
-
],
|
|
63
|
-
default: defaultConfig.appVersion.EUI10,
|
|
64
|
-
// when: function (answers) {
|
|
65
|
-
// return (answers.appType === defaultConfig.appType.SHOWCASE);
|
|
66
|
-
// },
|
|
67
|
-
validate: function (value) {
|
|
68
|
-
if (value.length) {
|
|
69
|
-
return true;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'appName',
|
|
75
|
-
type: 'input',
|
|
76
|
-
message: 'Give an application name :',
|
|
77
|
-
default: defaultConfig.appName
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'appScope',
|
|
81
|
-
type: 'input',
|
|
82
|
-
message: 'Give an application scope :',
|
|
83
|
-
default: defaultConfig.appScope
|
|
84
|
-
}
|
|
85
|
-
]);
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
.catch((e) => {
|
|
89
|
-
throw e;
|
|
90
|
-
})
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
const build = (name, scope, appType, targetPath, appVersion) => {
|
|
96
|
-
tools.logTitle('Generating application');
|
|
97
|
-
|
|
98
|
-
return Promise.resolve()
|
|
99
|
-
.then(() => {
|
|
100
|
-
tools.logInfo('Cleaning target');
|
|
101
|
-
return tools.rimraf(targetPath + '/**/*');
|
|
102
|
-
})
|
|
103
|
-
|
|
104
|
-
.then(() => {
|
|
105
|
-
tools.logInfo('Copying skeleton to target');
|
|
106
|
-
if (appType === defaultConfig.appType.DEFAULT) {
|
|
107
|
-
if (appVersion === defaultConfig.appVersion.EUI13) {
|
|
108
|
-
return tools.copydir(APP_SKELETON_EUI13_PATH, targetPath, true);
|
|
109
|
-
}
|
|
110
|
-
if (appVersion === defaultConfig.appVersion.EUI10) {
|
|
111
|
-
return tools.copydir(APP_SKELETON_EUI10_PATH, targetPath, true);
|
|
112
|
-
}
|
|
113
|
-
if (appVersion === defaultConfig.appVersion.EUI7) {
|
|
114
|
-
return tools.copydir(APP_SKELETON_EUI7_PATH, targetPath, true);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
} else if (appType === defaultConfig.appType.SHOWCASE) {
|
|
118
|
-
if (appVersion === defaultConfig.appVersion.EUI13) {
|
|
119
|
-
return tools.copydir(APP_SHOWCASE_SKELETON_EUI13_PATH, targetPath, true);
|
|
120
|
-
} else {
|
|
121
|
-
return tools.copydir(APP_SHOWCASE_SKELETON_PATH, targetPath, true);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
.then(() => {
|
|
127
|
-
tools.logInfo('Replacing placeholders');
|
|
128
|
-
|
|
129
|
-
return Promise.resolve()
|
|
130
|
-
.then(() => {
|
|
131
|
-
return replace.sync({
|
|
132
|
-
files: [targetPath + '/**/*.*'],
|
|
133
|
-
from: /@app.name@/g,
|
|
134
|
-
to: name,
|
|
135
|
-
})
|
|
136
|
-
})
|
|
137
|
-
.then(() => {
|
|
138
|
-
return replace.sync({
|
|
139
|
-
files: [targetPath + '/**/*.*'],
|
|
140
|
-
from: /@app.scope@/g,
|
|
141
|
-
to: scope.substr(1),
|
|
142
|
-
})
|
|
143
|
-
})
|
|
144
|
-
.catch((e) => {
|
|
145
|
-
throw e;
|
|
146
|
-
})
|
|
147
|
-
})
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
.then(() => {
|
|
151
|
-
tools.logInfo('Registering app in CSDR global config');
|
|
152
|
-
return configUtils.global.registerCsdrProject(name, appType === defaultConfig.appType.SHOWCASE);
|
|
153
|
-
})
|
|
154
|
-
|
|
155
|
-
.then(() => {
|
|
156
|
-
tools.logInfo('Executing post build operations');
|
|
157
|
-
return tools.move(path.join(targetPath, 'gitignore_TO_REPLACE'), path.join(targetPath, '.gitignore'));
|
|
158
|
-
})
|
|
159
|
-
.then(() => {
|
|
160
|
-
tools.logInfo('Replace extensions');
|
|
161
|
-
return tools.removeFilesExtension(targetPath, '.TO_REPLACE');
|
|
162
|
-
})
|
|
163
|
-
.then(() => {
|
|
164
|
-
tools.logInfo('Syncing app');
|
|
165
|
-
return execa.shellSync('npm run sync', { cwd: process.cwd(), stdio: 'inherit' });
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
.then(() => {
|
|
170
|
-
tools.logSuccess();
|
|
171
|
-
})
|
|
172
|
-
|
|
173
|
-
.catch((e) => {
|
|
174
|
-
throw e;
|
|
175
|
-
})
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
module.exports.generate = () => {
|
|
182
|
-
|
|
183
|
-
return Promise.resolve()
|
|
184
|
-
.then(() => {
|
|
185
|
-
tools.logTitle('Please answer the following questions : ');
|
|
186
|
-
})
|
|
187
|
-
|
|
188
|
-
.then(() => {
|
|
189
|
-
return prompt();
|
|
190
|
-
})
|
|
191
|
-
|
|
192
|
-
.then((answers) => {
|
|
193
|
-
tools.logInfo('Provided options :');
|
|
194
|
-
console.log(answers);
|
|
195
|
-
|
|
196
|
-
const targetPath = path.join(TARGET_ROOT_PATH, answers.appName);
|
|
197
|
-
|
|
198
|
-
return build(answers.appName, answers.appScope, answers.appType, targetPath, answers.appVersion);
|
|
199
|
-
})
|
|
200
|
-
|
|
201
|
-
.catch((e) => {
|
|
202
|
-
throw e;
|
|
203
|
-
})
|
|
204
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"build": {
|
|
3
|
-
"assets": [],
|
|
4
|
-
"styles": [],
|
|
5
|
-
"stylesBuild": [],
|
|
6
|
-
"scripts": []
|
|
7
|
-
},
|
|
8
|
-
"build-default-sample": {
|
|
9
|
-
"assets": [
|
|
10
|
-
"apps/@app.name@/src/favicon.ico",
|
|
11
|
-
"apps/@app.name@/src/assets",
|
|
12
|
-
{
|
|
13
|
-
"glob": "**/*",
|
|
14
|
-
"input": "node_modules/@eui/core/assets/",
|
|
15
|
-
"output": "./assets"
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
"styles": [
|
|
19
|
-
"node_modules/@eui/styles/dist/assets/fonts/webfont/Roboto/Roboto.css",
|
|
20
|
-
"node_modules/@eui/styles/dist/styles/eui-primeng.css",
|
|
21
|
-
"node_modules/@eui/styles/dist/styles/eui.css",
|
|
22
|
-
"node_modules/@eui/styles/dist/styles/eui-shell-extended.css",
|
|
23
|
-
"apps/@app.name@/src/styles.scss"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"configurations": [
|
|
27
|
-
{
|
|
28
|
-
"local-mwp-dev-openid": "openid-login-config.local-mwp-dev.json"
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# See http://help.github.com/ignore-files/ for more about ignoring files.
|
|
2
|
-
|
|
3
|
-
# compiled output
|
|
4
|
-
**/node_modules
|
|
5
|
-
**/target
|
|
6
|
-
**/build
|
|
7
|
-
**/dist
|
|
8
|
-
**/out-tsc
|
|
9
|
-
**/tmp
|
|
10
|
-
**/tests/reports
|
|
11
|
-
# /src/assets/i18n-compiled/*
|
|
12
|
-
# /src/assets/openid-login-config*
|
|
13
|
-
|
|
14
|
-
# IDEs and editors
|
|
15
|
-
/.idea
|
|
16
|
-
.project
|
|
17
|
-
.classpath
|
|
18
|
-
.c9/
|
|
19
|
-
*.launch
|
|
20
|
-
.settings/
|
|
21
|
-
*.sublime-workspace
|
|
22
|
-
|
|
23
|
-
# IDE - VSCode
|
|
24
|
-
.vscode/*
|
|
25
|
-
!.vscode/settings.json
|
|
26
|
-
!.vscode/tasks.json
|
|
27
|
-
!.vscode/launch.json
|
|
28
|
-
!.vscode/extensions.json
|
|
29
|
-
|
|
30
|
-
# misc
|
|
31
|
-
/.sass-cache
|
|
32
|
-
/connect.lock
|
|
33
|
-
/coverage
|
|
34
|
-
/libpeerconnection.log
|
|
35
|
-
npm-debug.log
|
|
36
|
-
testem.log
|
|
37
|
-
/typings
|
|
38
|
-
yarn-error.log
|
|
39
|
-
|
|
40
|
-
# e2e
|
|
41
|
-
/e2e/*.js
|
|
42
|
-
/e2e/*.map
|
|
43
|
-
|
|
44
|
-
# System Files
|
|
45
|
-
.DS_Store
|
|
46
|
-
Thumbs.db
|
|
47
|
-
|
|
48
|
-
/*.iml
|
|
49
|
-
|
|
50
|
-
/proxy-mock.conf.json
|
|
51
|
-
/proxy.conf.json
|
|
52
|
-
/src/assets/dynamic-config.prod.json
|
|
53
|
-
/src/assets/jsrsasign-all-min.js
|
|
54
|
-
/src/assets/oidc-client.min.js
|
|
55
|
-
/src/assets/openid-login-config.json
|
|
56
|
-
/src/assets/openid-login.js
|
|
57
|
-
/src/karma.conf.js
|
|
58
|
-
/src/main.ts
|
|
59
|
-
/src/polyfills.ts
|
|
60
|
-
/src/test.ts
|
|
61
|
-
/tsconfig.app.json
|
|
62
|
-
/tsconfig.spec.json
|
|
63
|
-
/webpack.extra.js
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// var faker = require("faker")
|
|
2
|
-
|
|
3
|
-
function generateUserDetails() {
|
|
4
|
-
return {
|
|
5
|
-
"firstName": "John",
|
|
6
|
-
"lastName": "Doe",
|
|
7
|
-
"fullName": "John Doe",
|
|
8
|
-
"organisationRef": {
|
|
9
|
-
"id": "123456", "abbreviation": "DIGIT.B.3"
|
|
10
|
-
},
|
|
11
|
-
"userId": "johndoe",
|
|
12
|
-
"email": "John.DOE@ec.europa.eu"
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function generateUserPreferences() {
|
|
17
|
-
return {
|
|
18
|
-
"tz": {
|
|
19
|
-
"primary": "Europe/Brussels",
|
|
20
|
-
"secondary": "Europe/Brussels",
|
|
21
|
-
"HQ": "Europe/Brussels"
|
|
22
|
-
},
|
|
23
|
-
"notifications": {
|
|
24
|
-
"isActive": true,
|
|
25
|
-
"pullingFrequency": null
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
module.exports.generateUserDetails = generateUserDetails;
|
|
31
|
-
module.exports.generateUserPreferences = generateUserPreferences;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
const jsonServer = require('json-server');
|
|
2
|
-
|
|
3
|
-
const userDetails = require('./core/user').generateUserDetails();
|
|
4
|
-
const userPreferences = require('./core/user').generateUserPreferences();
|
|
5
|
-
|
|
6
|
-
const generateMocks = () => {
|
|
7
|
-
return Object.assign({
|
|
8
|
-
'user-details': userDetails,
|
|
9
|
-
'user-preferences': userPreferences,
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
// set mocks-obj to the router
|
|
14
|
-
const mocks = generateMocks();
|
|
15
|
-
const router = jsonServer.router(mocks);
|
|
16
|
-
|
|
17
|
-
// expose router and db behind json-server
|
|
18
|
-
// (@{link https://github.com/typicode/lowdb})
|
|
19
|
-
exports.getDb = () => {
|
|
20
|
-
return router.db;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
exports.getRouter = () => {
|
|
24
|
-
return router;
|
|
25
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Simulate server side delay
|
|
2
|
-
exports.delay = (req, res, next) => {
|
|
3
|
-
const randomOutcome = Math.random();
|
|
4
|
-
const minimumDelay = 0;
|
|
5
|
-
if (randomOutcome < 0.03) {
|
|
6
|
-
setTimeout(next, Math.floor((Math.random() * 10000) + 100));
|
|
7
|
-
} else {
|
|
8
|
-
setTimeout(next, minimumDelay+1);
|
|
9
|
-
}
|
|
10
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
const EXCEPTION_LIST = [
|
|
2
|
-
'/notifications',
|
|
3
|
-
'/api/user/',
|
|
4
|
-
'/api/rest/web/',
|
|
5
|
-
];
|
|
6
|
-
|
|
7
|
-
const ALWAYS_FAIL_LIST = [
|
|
8
|
-
// '/api/restproxy/task/api/v1/tasks/this_should_always_fail'
|
|
9
|
-
];
|
|
10
|
-
|
|
11
|
-
const isInExceptionList = (testPath) => EXCEPTION_LIST.some(path => testPath.startsWith(path));
|
|
12
|
-
const isInAlwaysFailList = (testPath) => ALWAYS_FAIL_LIST.some(path => testPath.startsWith(path));
|
|
13
|
-
|
|
14
|
-
// Simulate server side errors
|
|
15
|
-
exports.error = (req, res, next) => {
|
|
16
|
-
const randomOutcome = Math.random();
|
|
17
|
-
const isException = isInExceptionList(req.path);
|
|
18
|
-
const alwaysFails = isInAlwaysFailList(req.path);
|
|
19
|
-
|
|
20
|
-
if (alwaysFails || (randomOutcome < 0.025 && !isException)) {
|
|
21
|
-
|
|
22
|
-
const choice = Math.random();
|
|
23
|
-
|
|
24
|
-
if (choice < 0.11) {
|
|
25
|
-
return res.status(400).jsonp({
|
|
26
|
-
error: 'Bad Request',
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
else if (choice < 0.22) {
|
|
30
|
-
return res.status(401).jsonp({
|
|
31
|
-
error: 'Unauthorized',
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
else if (choice < 0.33) {
|
|
35
|
-
return res.status(403).jsonp({
|
|
36
|
-
error: 'Forbidden',
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
else if (choice < 0.44) {
|
|
40
|
-
return res.status(404).jsonp({
|
|
41
|
-
error: 'Not Found',
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
else if (choice < 0.55) {
|
|
45
|
-
return res.status(410).jsonp({
|
|
46
|
-
error: 'Gone',
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
else if (choice < 0.66) {
|
|
50
|
-
return res.status(500).jsonp({
|
|
51
|
-
error: 'Internal Server Error',
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
else if (choice < 0.77) {
|
|
55
|
-
return res.status(501).jsonp({
|
|
56
|
-
error: 'Not Implemented',
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
else if (choice < 0.88) {
|
|
60
|
-
return res.status(503).jsonp({
|
|
61
|
-
error: 'Service Unavailable',
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
return res.status(550).jsonp({
|
|
66
|
-
error: 'Permission denied',
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
} else {
|
|
70
|
-
// Continue to JSON Server router
|
|
71
|
-
next();
|
|
72
|
-
}
|
|
73
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const faker = require('faker');
|
|
2
|
-
const padding = ' ';
|
|
3
|
-
|
|
4
|
-
// Server sent events
|
|
5
|
-
exports.sse = (req, res, next) => {
|
|
6
|
-
|
|
7
|
-
// sse setup
|
|
8
|
-
res.sseSetup = () => {
|
|
9
|
-
res.writeHead(200, {
|
|
10
|
-
'Content-Type': 'text/event-stream',
|
|
11
|
-
'Cache-Control': 'no-cache',
|
|
12
|
-
'Connection': 'keep-alive',
|
|
13
|
-
'Access-Control-Allow-Origin': 'http://localhost:4200',
|
|
14
|
-
'Access-Control-Allow-Headers': 'Last-Event-ID',
|
|
15
|
-
});
|
|
16
|
-
res.write(padding);
|
|
17
|
-
res.flush();
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
// push msg
|
|
21
|
-
res.sseSend = (event, data) => {
|
|
22
|
-
// The "event" field is "message" by default, otherwise new event handlers need to be manually added.
|
|
23
|
-
res.write(`id: ${faker.random.uuid()}\nevent: ${event}\ndata: ${JSON.stringify(data)}\n\n`);
|
|
24
|
-
res.flush();
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
next();
|
|
28
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const jsonServer = require('json-server');
|
|
2
|
-
const app = jsonServer.create();
|
|
3
|
-
const router = require('./lowdb').getRouter();
|
|
4
|
-
const middlewares = jsonServer.defaults();
|
|
5
|
-
|
|
6
|
-
// const delayMiddleware = require('./middlewares/delay');
|
|
7
|
-
// const errorsMiddleware = require('./middlewares/errors');
|
|
8
|
-
// const sseMiddleware = require('./middlewares/sse');
|
|
9
|
-
|
|
10
|
-
// Set the port of our application
|
|
11
|
-
const port = process.env.PORT || 3000;
|
|
12
|
-
|
|
13
|
-
// Middlewares
|
|
14
|
-
app.use(middlewares);
|
|
15
|
-
// app.use(delayMiddleware.delay);
|
|
16
|
-
// app.use(errorsMiddleware.error);
|
|
17
|
-
// app.use(sseMiddleware.sse);
|
|
18
|
-
|
|
19
|
-
// To handle POST, PUT and PATCH we need to use any body-parser
|
|
20
|
-
// We using the one bundled with json-server
|
|
21
|
-
app.use(jsonServer.bodyParser);
|
|
22
|
-
|
|
23
|
-
// Controllers
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
// Rewriter rules
|
|
27
|
-
app.use(jsonServer.rewriter({
|
|
28
|
-
'/api/*': '/$1',
|
|
29
|
-
'/user/preferences?userId:userId&lang=:lang': '/user-preferences',
|
|
30
|
-
}));
|
|
31
|
-
|
|
32
|
-
// Mount the router based on lowdb.js
|
|
33
|
-
app.use(router);
|
|
34
|
-
|
|
35
|
-
// Start listening
|
|
36
|
-
app.listen(port, () => {
|
|
37
|
-
console.log(`\n\nJSON Server is running! Open the browser at http://localhost:${port}\n\n`);
|
|
38
|
-
});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"@app.name@:start-mock-server": "nodemon --ext js --watch ./apps/@app.name@/mock/json ./apps/@app.name@/mock/json/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
|
-
"@app.name@:start-local-openid": "eui-scripts serve-app @app.name@ --configuration=local-openid",
|
|
6
|
-
"@app.name@:start-local-mwp-dev-openid": "eui-scripts serve-app @app.name@ --configuration=local-mwp-dev-openid"
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { RouterModule, Routes, Route } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { AppShellComponent } from './core/app-shell/app-shell.component';
|
|
5
|
-
|
|
6
|
-
// REPLACE BY NPM MODULE IMPORT
|
|
7
|
-
// import { AppShellComponent } from '@@app-scope@/core';
|
|
8
|
-
|
|
9
|
-
const appShellRoutes: Route = {
|
|
10
|
-
path: '',
|
|
11
|
-
component: AppShellComponent,
|
|
12
|
-
children: [
|
|
13
|
-
{ path: 'home', loadChildren: './features/home/home.module#Module' },
|
|
14
|
-
],
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const routes: Routes = [
|
|
18
|
-
{ path: '', redirectTo: 'home', pathMatch: 'full' },
|
|
19
|
-
{ path: 'index.html', redirectTo: 'home', pathMatch: 'full' },
|
|
20
|
-
appShellRoutes,
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
@NgModule({
|
|
24
|
-
imports: [
|
|
25
|
-
RouterModule.forRoot(routes),
|
|
26
|
-
],
|
|
27
|
-
exports: [
|
|
28
|
-
RouterModule,
|
|
29
|
-
],
|
|
30
|
-
})
|
|
31
|
-
export class AppRoutingModule {
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<router-outlet></router-outlet>
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// ANGULAR & 3rd PARTIES
|
|
2
|
-
import { NgModule } from '@angular/core';
|
|
3
|
-
import { HttpClientModule } from '@angular/common/http';
|
|
4
|
-
import { StoreModule } from '@ngrx/store';
|
|
5
|
-
import { EffectsModule } from '@ngrx/effects';
|
|
6
|
-
import { StoreRouterConnectingModule } from '@ngrx/router-store';
|
|
7
|
-
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
|
|
8
|
-
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
9
|
-
|
|
10
|
-
// eUI IMPORTS
|
|
11
|
-
import { CoreModule, CoreModuleEffects, CONFIG_TOKEN, UxBreadcrumbsService } from '@eui/core';
|
|
12
|
-
|
|
13
|
-
import { appConfig } from '../config/index';
|
|
14
|
-
import { environment } from '../environments/environment';
|
|
15
|
-
|
|
16
|
-
// APP ROUTES & ROOT COMPONENTS
|
|
17
|
-
import { AppRoutingModule } from './app-routing.module';
|
|
18
|
-
import { AppComponent } from './app.component';
|
|
19
|
-
|
|
20
|
-
// CSDR CORE - Babel defs & core reducers
|
|
21
|
-
import {
|
|
22
|
-
CsdrCoreModule,
|
|
23
|
-
BabelLoader,
|
|
24
|
-
BABEL_API_CONFIG_TOKEN,
|
|
25
|
-
BABEL_LOADER_CONFIG_TOKEN,
|
|
26
|
-
getBabelApiConfig,
|
|
27
|
-
getBabelLoaderConfig,
|
|
28
|
-
TOKEN, reducerProvider, metaReducers, CustomSerializer,
|
|
29
|
-
} from '@csdr/core';
|
|
30
|
-
|
|
31
|
-
// APP RELATED
|
|
32
|
-
import { CoreModule as AppCoreModule } from './core/core.module';
|
|
33
|
-
import { SharedModule as AppSharedModule } from './shared/shared.module';
|
|
34
|
-
|
|
35
|
-
// REPLACE BY NPM MODULES
|
|
36
|
-
// import { CoreModule as AppCoreModule } from '@@app-scope@/core';
|
|
37
|
-
// import { SharedModule as AppSharedModule } from '@@app-scope@/shared';
|
|
38
|
-
|
|
39
|
-
// APP ROOT MODULE
|
|
40
|
-
@NgModule({
|
|
41
|
-
imports: [
|
|
42
|
-
HttpClientModule,
|
|
43
|
-
StoreRouterConnectingModule.forRoot({ stateKey: 'router', serializer: CustomSerializer }),
|
|
44
|
-
StoreDevtoolsModule.instrument({ name: 'CSDR App', maxAge: 150, logOnly: environment.production }),
|
|
45
|
-
StoreModule.forRoot(TOKEN, { metaReducers }),
|
|
46
|
-
EffectsModule.forRoot([...CoreModuleEffects]),
|
|
47
|
-
TranslateModule.forRoot({ loader: { provide: TranslateLoader, useClass: BabelLoader } }),
|
|
48
|
-
CoreModule.forRoot({ appConfig: appConfig, environment: environment }),
|
|
49
|
-
CsdrCoreModule.forRoot(),
|
|
50
|
-
AppCoreModule.forRoot(),
|
|
51
|
-
AppSharedModule,
|
|
52
|
-
AppRoutingModule,
|
|
53
|
-
],
|
|
54
|
-
declarations: [
|
|
55
|
-
AppComponent,
|
|
56
|
-
],
|
|
57
|
-
providers: [
|
|
58
|
-
reducerProvider,
|
|
59
|
-
UxBreadcrumbsService,
|
|
60
|
-
{ provide: BABEL_API_CONFIG_TOKEN, useFactory: getBabelApiConfig, deps: [CONFIG_TOKEN] },
|
|
61
|
-
{ provide: BABEL_LOADER_CONFIG_TOKEN, useFactory: getBabelLoaderConfig, deps: [CONFIG_TOKEN] },
|
|
62
|
-
],
|
|
63
|
-
bootstrap: [
|
|
64
|
-
AppComponent,
|
|
65
|
-
],
|
|
66
|
-
})
|
|
67
|
-
export class AppModule {
|
|
68
|
-
}
|