@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
package/.prettierrc.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"arrowParens": "always",
|
|
3
|
+
"bracketSameLine": true,
|
|
4
|
+
"bracketSpacing": true,
|
|
5
|
+
"embeddedLanguageFormatting": "auto",
|
|
6
|
+
"htmlWhitespaceSensitivity": "css",
|
|
7
|
+
"insertPragma": false,
|
|
8
|
+
"jsxSingleQuote": false,
|
|
9
|
+
"printWidth": 140,
|
|
10
|
+
"proseWrap": "preserve",
|
|
11
|
+
"quoteProps": "as-needed",
|
|
12
|
+
"requirePragma": false,
|
|
13
|
+
"semi": true,
|
|
14
|
+
"singleQuote": false,
|
|
15
|
+
"tabWidth": 4,
|
|
16
|
+
"trailingComma": "es5",
|
|
17
|
+
"useTabs": false,
|
|
18
|
+
"vueIndentScriptAndStyle": false
|
|
19
|
+
}
|
package/.version.properties
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
6.
|
|
1
|
+
6.6.0
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## 6.6.0 (2023-03-05)
|
|
2
|
+
|
|
3
|
+
##### New Features
|
|
4
|
+
|
|
5
|
+
* **other:**
|
|
6
|
+
* added package init interactive for new v15 remote and pkg creation - removed all v10 v13 v7 skeleton code - EUI-7121 [EUI-7121](https://webgate.ec.europa.eu/CITnet/jira/browse/EUI-7121) ([17eaea2c](https://webgate.ec.europa.eu/CITnet/stash/scm/csdr/eui-tools.git/commits/17eaea2c1ac869bf3efa5bf74e542f37e9628c29))
|
|
7
|
+
|
|
8
|
+
* * *
|
|
9
|
+
* * *
|
|
1
10
|
## 6.5.6 (2023-03-03)
|
|
2
11
|
|
|
3
12
|
##### Chores
|
package/bin/eui-scripts.js
CHANGED
|
@@ -31,6 +31,7 @@ const scriptIndex = args.findIndex(
|
|
|
31
31
|
x === 'test-package' ||
|
|
32
32
|
x === 'csdr-app' ||
|
|
33
33
|
x === 'csdr-app-stats' ||
|
|
34
|
+
x === 'csdr-app-package-init' ||
|
|
34
35
|
x === 'csdr-init' ||
|
|
35
36
|
x === 'csdr-upgrade-deps' ||
|
|
36
37
|
x === 'csdr-serve-app' ||
|
|
@@ -76,6 +77,7 @@ switch (script) {
|
|
|
76
77
|
case 'generate-translations':
|
|
77
78
|
case 'csdr-app':
|
|
78
79
|
case 'csdr-app-stats':
|
|
80
|
+
case 'csdr-app-package-init':
|
|
79
81
|
case 'csdr-init':
|
|
80
82
|
case 'csdr-upgrade-deps':
|
|
81
83
|
case 'csdr-serve-app':
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const tools = require('../../scripts/utils/tools');
|
|
4
|
+
const initUtils = require('../../scripts/csdr/init/init-utils');
|
|
5
|
+
|
|
6
|
+
Promise.resolve()
|
|
7
|
+
.then(() => {
|
|
8
|
+
return initUtils.remotes.initRemotesConfig();
|
|
9
|
+
})
|
|
10
|
+
.then(() => {
|
|
11
|
+
return tools.runScript('node ./node_modules/@eui/tools/scripts/app/server.js --prod --packageInit');
|
|
12
|
+
})
|
|
13
|
+
.catch((e) => {
|
|
14
|
+
console.log(e);
|
|
15
|
+
process.exit(1);
|
|
16
|
+
})
|
package/bin/scripts/csdr-cli.js
CHANGED
package/package.json
CHANGED
|
@@ -4,9 +4,7 @@
|
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
6
|
<script src="https://unpkg.com/vue@2"></script>
|
|
7
|
-
<link
|
|
8
|
-
rel="stylesheet"
|
|
9
|
-
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" />
|
|
7
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" />
|
|
10
8
|
<style>
|
|
11
9
|
.full-height-flex {
|
|
12
10
|
display: flex;
|
|
@@ -29,37 +27,27 @@
|
|
|
29
27
|
<div id="app" class="container-fluid">
|
|
30
28
|
<div class="row">
|
|
31
29
|
<div class="col-4 full-height-flex">
|
|
32
|
-
<h3 class="mt-2 mb-4">
|
|
33
|
-
CSDR custom installation (experimental)
|
|
34
|
-
</h3>
|
|
30
|
+
<h3 class="mt-2 mb-4">CSDR custom installation (experimental)</h3>
|
|
35
31
|
|
|
36
32
|
<div class="header-flex">
|
|
37
33
|
<h5 class="mb-3">Choose an app / euiVersion</h5>
|
|
38
34
|
<form>
|
|
39
35
|
<div class="row mb-3">
|
|
40
|
-
<label class="col-sm-2 col-form-label"
|
|
41
|
-
>App</label
|
|
42
|
-
>
|
|
36
|
+
<label class="col-sm-2 col-form-label">App</label>
|
|
43
37
|
<div class="col-sm-10">
|
|
44
38
|
<select disabled class="form-select">
|
|
45
39
|
<option>Open this select menu</option>
|
|
46
|
-
<option selected value="my-workplace">
|
|
47
|
-
MyWorkplace
|
|
48
|
-
</option>
|
|
40
|
+
<option selected value="my-workplace">MyWorkplace</option>
|
|
49
41
|
<!-- <option value="sedia">Sedia</option> -->
|
|
50
42
|
</select>
|
|
51
43
|
</div>
|
|
52
44
|
</div>
|
|
53
45
|
<div class="row mb-3">
|
|
54
|
-
<label class="col-sm-2 col-form-label"
|
|
55
|
-
>eUI Version</label
|
|
56
|
-
>
|
|
46
|
+
<label class="col-sm-2 col-form-label">eUI Version</label>
|
|
57
47
|
<div class="col-sm-10">
|
|
58
48
|
<select disabled class="form-select">
|
|
59
49
|
<option>Open this select menu</option>
|
|
60
|
-
<option selected value="15.x">
|
|
61
|
-
eUI 15
|
|
62
|
-
</option>
|
|
50
|
+
<option selected value="15.x">eUI 15</option>
|
|
63
51
|
<!-- <option value="10.x">eUI 10</option> -->
|
|
64
52
|
</select>
|
|
65
53
|
</div>
|
|
@@ -70,18 +58,12 @@
|
|
|
70
58
|
<div class="d-flex align-items-center mt-2">
|
|
71
59
|
<h5>Select the remote(s) you want to work with:</h5>
|
|
72
60
|
<div class="ms-auto me-2">
|
|
73
|
-
<button class="btn btn-light" @click="reset()">
|
|
74
|
-
reset
|
|
75
|
-
</button>
|
|
61
|
+
<button class="btn btn-light" @click="reset()">reset</button>
|
|
76
62
|
</div>
|
|
77
63
|
</div>
|
|
78
64
|
|
|
79
|
-
<p class="text-warning fw-bold">
|
|
80
|
-
|
|
81
|
-
</p>
|
|
82
|
-
<table
|
|
83
|
-
class="table table-striped"
|
|
84
|
-
v-show="remotes.length !== 0">
|
|
65
|
+
<p class="text-warning fw-bold">select at least one remote to work on</p>
|
|
66
|
+
<table class="table table-striped" v-show="remotes.length !== 0">
|
|
85
67
|
<thead>
|
|
86
68
|
<tr>
|
|
87
69
|
<th scope="col"> </th>
|
|
@@ -93,9 +75,7 @@
|
|
|
93
75
|
<tbody>
|
|
94
76
|
<tr v-for="remote in remotes">
|
|
95
77
|
<td>
|
|
96
|
-
<div
|
|
97
|
-
class="form-check"
|
|
98
|
-
:key="remote.name">
|
|
78
|
+
<div class="form-check" :key="remote.name">
|
|
99
79
|
<input
|
|
100
80
|
class="form-check-input"
|
|
101
81
|
type="checkbox"
|
|
@@ -107,14 +87,10 @@
|
|
|
107
87
|
</td>
|
|
108
88
|
<td>{{ remote.name }}</td>
|
|
109
89
|
<td>
|
|
110
|
-
<div
|
|
111
|
-
:class="{ 'text-primary fw-bold': remote.participant }">
|
|
112
|
-
{{ remote.participant }}
|
|
113
|
-
</div>
|
|
90
|
+
<div :class="{ 'text-primary fw-bold': remote.participant }">{{ remote.participant }}</div>
|
|
114
91
|
</td>
|
|
115
92
|
<td>
|
|
116
|
-
<div
|
|
117
|
-
:class="{ 'text-success fw-bold': remote.fullSkeletonSources }">
|
|
93
|
+
<div :class="{ 'text-success fw-bold': remote.fullSkeletonSources }">
|
|
118
94
|
{{ remote.fullSkeletonSources }}
|
|
119
95
|
</div>
|
|
120
96
|
</td>
|
|
@@ -127,66 +103,46 @@
|
|
|
127
103
|
<div class="col-8">
|
|
128
104
|
<h5 class="mt-5 mb-3">
|
|
129
105
|
Selected remotes :
|
|
130
|
-
<span class="text-primary fw-bold">{{
|
|
131
|
-
selectedRemotes.length
|
|
132
|
-
}}</span>
|
|
106
|
+
<span class="text-primary fw-bold">{{ selectedRemotes.length }}</span>
|
|
133
107
|
</h5>
|
|
134
108
|
{{ selectedRemotes }}
|
|
135
109
|
|
|
136
110
|
<h5 class="mt-5 mb-3">
|
|
137
111
|
Derived dependencies:
|
|
138
|
-
<span class="text-primary fw-bold">{{
|
|
139
|
-
deps.length
|
|
140
|
-
}}</span>
|
|
112
|
+
<span class="text-primary fw-bold">{{ deps.length }}</span>
|
|
141
113
|
</h5>
|
|
142
114
|
{{ deps }}
|
|
143
115
|
|
|
144
116
|
<h5 class="mt-5 mb-3">
|
|
145
117
|
Derived UI packages to be locally cloned :
|
|
146
|
-
<span class="text-primary fw-bold">{{
|
|
147
|
-
packages.length
|
|
148
|
-
}}</span>
|
|
118
|
+
<span class="text-primary fw-bold">{{ packages.length }}</span>
|
|
149
119
|
</h5>
|
|
150
120
|
{{ packages }}
|
|
151
121
|
|
|
152
122
|
<h5 class="mt-5 mb-3">
|
|
153
123
|
Remotes to install as dependencies :
|
|
154
|
-
<span class="text-primary fw-bold">{{
|
|
155
|
-
remotesToInstall.length
|
|
156
|
-
}}</span>
|
|
124
|
+
<span class="text-primary fw-bold">{{ remotesToInstall.length }}</span>
|
|
157
125
|
</h5>
|
|
158
126
|
{{ remotesToInstall }}
|
|
159
127
|
|
|
160
128
|
<hr />
|
|
161
129
|
|
|
162
|
-
<button
|
|
163
|
-
class="btn btn-primary"
|
|
164
|
-
type="button"
|
|
165
|
-
:disabled="selectedRemotes.length === 0"
|
|
166
|
-
@click="saveConfig()">
|
|
130
|
+
<button class="btn btn-primary" type="button" :disabled="selectedRemotes.length === 0" @click="saveConfig()">
|
|
167
131
|
Save configuration
|
|
168
132
|
</button>
|
|
169
133
|
|
|
170
134
|
<div v-if="saveConfigSubmitted" class="mt-2">
|
|
171
|
-
<div v-if="saveConfigOK" class="alert alert-success">
|
|
172
|
-
|
|
173
|
-
</div>
|
|
174
|
-
<div v-if="!saveConfigOK" class="alert alert-danger">
|
|
175
|
-
Error saving configuration
|
|
176
|
-
</div>
|
|
135
|
+
<div v-if="saveConfigOK" class="alert alert-success">Configuration successfully saved</div>
|
|
136
|
+
<div v-if="!saveConfigOK" class="alert alert-danger">Error saving configuration</div>
|
|
177
137
|
|
|
178
138
|
<div class="alert alert-info mt-2">
|
|
179
139
|
<p>
|
|
180
|
-
<span class="fw-bold"
|
|
181
|
-
>./csdr/.euirc-csdr-custom.json</span
|
|
182
|
-
>
|
|
140
|
+
<span class="fw-bold">./csdr/.euirc-csdr-custom.json</span>
|
|
183
141
|
generated
|
|
184
142
|
</p>
|
|
185
143
|
<p>
|
|
186
144
|
Execute after the
|
|
187
|
-
<strong>npm run init -- --custom</strong> from
|
|
188
|
-
your command line to follow progress of
|
|
189
|
-
installation
|
|
145
|
+
<strong>npm run init -- --custom</strong> from your command line to follow progress of installation
|
|
190
146
|
</p>
|
|
191
147
|
</div>
|
|
192
148
|
</div>
|
|
@@ -195,109 +151,5 @@
|
|
|
195
151
|
</div>
|
|
196
152
|
</body>
|
|
197
153
|
|
|
198
|
-
<script>
|
|
199
|
-
const getRequestBody = (items) => {
|
|
200
|
-
return {
|
|
201
|
-
method: "POST",
|
|
202
|
-
headers: {
|
|
203
|
-
"Content-Type": "application/json",
|
|
204
|
-
},
|
|
205
|
-
body: JSON.stringify(items),
|
|
206
|
-
};
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
new Vue({
|
|
210
|
-
el: "#app",
|
|
211
|
-
data() {
|
|
212
|
-
return {
|
|
213
|
-
remotes: [],
|
|
214
|
-
selectedRemotes: [],
|
|
215
|
-
deps: [],
|
|
216
|
-
packages: [],
|
|
217
|
-
remotesToInstall: [],
|
|
218
|
-
saveConfigSubmitted: false,
|
|
219
|
-
saveConfigOK: false,
|
|
220
|
-
};
|
|
221
|
-
},
|
|
222
|
-
created() {
|
|
223
|
-
this.getRemotes();
|
|
224
|
-
this.getConfig();
|
|
225
|
-
},
|
|
226
|
-
methods: {
|
|
227
|
-
async getRemotes() {
|
|
228
|
-
const res = await fetch(
|
|
229
|
-
"http://localhost:3000/api/remotes"
|
|
230
|
-
);
|
|
231
|
-
const finalRes = await res.json();
|
|
232
|
-
this.remotes = finalRes;
|
|
233
|
-
this.getRemotesToInstall();
|
|
234
|
-
},
|
|
235
|
-
async getConfig() {
|
|
236
|
-
const res = await fetch("http://localhost:3000/api/config");
|
|
237
|
-
const finalRes = await res.json();
|
|
238
|
-
if (finalRes.selectedRemotes) {
|
|
239
|
-
this.selectedRemotes = finalRes.selectedRemotes;
|
|
240
|
-
this.deps = finalRes.deps;
|
|
241
|
-
this.packages = finalRes.packages;
|
|
242
|
-
this.remotesToInstall = finalRes.remotesToInstall;
|
|
243
|
-
}
|
|
244
|
-
},
|
|
245
|
-
async getPackages() {
|
|
246
|
-
const res = await fetch(
|
|
247
|
-
"http://localhost:3000/api/remotes/packages",
|
|
248
|
-
getRequestBody(this.selectedRemotes)
|
|
249
|
-
);
|
|
250
|
-
const finalRes = await res.json();
|
|
251
|
-
this.packages = finalRes.packages.filter(
|
|
252
|
-
(p) =>
|
|
253
|
-
p.indexOf("csdr-") < 0 &&
|
|
254
|
-
p.indexOf("cc-shared-ui") < 0 &&
|
|
255
|
-
p.indexOf("mywp-shared-ui") < 0
|
|
256
|
-
);
|
|
257
|
-
this.deps = finalRes.deps;
|
|
258
|
-
this.getRemotesToInstall();
|
|
259
|
-
},
|
|
260
|
-
remoteSelected(event) {
|
|
261
|
-
this.getPackages();
|
|
262
|
-
this.saveConfigSubmitted = false;
|
|
263
|
-
},
|
|
264
|
-
getRemotesToInstall() {
|
|
265
|
-
this.remotesToInstall = this.remotes
|
|
266
|
-
.map((r) => r.name)
|
|
267
|
-
.filter((r) => {
|
|
268
|
-
return !this.selectedRemotes.includes(r);
|
|
269
|
-
});
|
|
270
|
-
},
|
|
271
|
-
reset() {
|
|
272
|
-
this.selectedRemotes = [];
|
|
273
|
-
this.packages = [];
|
|
274
|
-
this.deps = [];
|
|
275
|
-
this.remotesToInstall = [];
|
|
276
|
-
this.saveConfigOK = false;
|
|
277
|
-
this.saveConfigSubmitted = false;
|
|
278
|
-
},
|
|
279
|
-
async saveConfig() {
|
|
280
|
-
console.log("Saving configuration...");
|
|
281
|
-
const res = await fetch(
|
|
282
|
-
"http://localhost:3000/api/config",
|
|
283
|
-
getRequestBody({
|
|
284
|
-
selectedRemotes: this.selectedRemotes,
|
|
285
|
-
deps: this.deps,
|
|
286
|
-
packages: this.packages,
|
|
287
|
-
remotesToInstall: this.remotesToInstall,
|
|
288
|
-
})
|
|
289
|
-
);
|
|
290
|
-
|
|
291
|
-
if (res.status !== 200) {
|
|
292
|
-
this.saveConfigOK = false;
|
|
293
|
-
} else {
|
|
294
|
-
this.saveConfigOK = true;
|
|
295
|
-
}
|
|
296
|
-
this.saveConfigSubmitted = true;
|
|
297
|
-
|
|
298
|
-
const finalRes = await res.json();
|
|
299
|
-
},
|
|
300
|
-
},
|
|
301
|
-
});
|
|
302
|
-
</script>
|
|
154
|
+
<script src="index.js"></script>
|
|
303
155
|
</html>
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
const getRequestBody = (items) => {
|
|
2
|
+
return {
|
|
3
|
+
method: "POST",
|
|
4
|
+
headers: {
|
|
5
|
+
"Content-Type": "application/json",
|
|
6
|
+
},
|
|
7
|
+
body: JSON.stringify(items),
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
new Vue({
|
|
12
|
+
el: "#app",
|
|
13
|
+
data() {
|
|
14
|
+
return {
|
|
15
|
+
remotes: [],
|
|
16
|
+
selectedRemotes: [],
|
|
17
|
+
deps: [],
|
|
18
|
+
packages: [],
|
|
19
|
+
remotesToInstall: [],
|
|
20
|
+
saveConfigSubmitted: false,
|
|
21
|
+
saveConfigOK: false,
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
created() {
|
|
25
|
+
this.getRemotes();
|
|
26
|
+
this.getConfig();
|
|
27
|
+
},
|
|
28
|
+
methods: {
|
|
29
|
+
async getRemotes() {
|
|
30
|
+
const res = await fetch("http://localhost:3000/api/remotes");
|
|
31
|
+
const finalRes = await res.json();
|
|
32
|
+
this.remotes = finalRes;
|
|
33
|
+
this.getRemotesToInstall();
|
|
34
|
+
},
|
|
35
|
+
async getConfig() {
|
|
36
|
+
const res = await fetch("http://localhost:3000/api/config");
|
|
37
|
+
const finalRes = await res.json();
|
|
38
|
+
if (finalRes.selectedRemotes) {
|
|
39
|
+
this.selectedRemotes = finalRes.selectedRemotes;
|
|
40
|
+
this.deps = finalRes.deps;
|
|
41
|
+
this.packages = finalRes.packages;
|
|
42
|
+
this.remotesToInstall = finalRes.remotesToInstall;
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
async getPackages() {
|
|
46
|
+
const res = await fetch("http://localhost:3000/api/remotes/packages", getRequestBody(this.selectedRemotes));
|
|
47
|
+
const finalRes = await res.json();
|
|
48
|
+
this.packages = finalRes.packages.filter(
|
|
49
|
+
(p) => p.indexOf("csdr-") < 0 && p.indexOf("cc-shared-ui") < 0 && p.indexOf("mywp-shared-ui") < 0
|
|
50
|
+
);
|
|
51
|
+
this.deps = finalRes.deps;
|
|
52
|
+
this.getRemotesToInstall();
|
|
53
|
+
},
|
|
54
|
+
remoteSelected(event) {
|
|
55
|
+
this.getPackages();
|
|
56
|
+
this.saveConfigSubmitted = false;
|
|
57
|
+
},
|
|
58
|
+
getRemotesToInstall() {
|
|
59
|
+
this.remotesToInstall = this.remotes
|
|
60
|
+
.map((r) => r.name)
|
|
61
|
+
.filter((r) => {
|
|
62
|
+
return !this.selectedRemotes.includes(r);
|
|
63
|
+
});
|
|
64
|
+
},
|
|
65
|
+
reset() {
|
|
66
|
+
this.selectedRemotes = [];
|
|
67
|
+
this.packages = [];
|
|
68
|
+
this.deps = [];
|
|
69
|
+
this.remotesToInstall = [];
|
|
70
|
+
this.saveConfigOK = false;
|
|
71
|
+
this.saveConfigSubmitted = false;
|
|
72
|
+
},
|
|
73
|
+
async saveConfig() {
|
|
74
|
+
console.log("Saving configuration...");
|
|
75
|
+
const res = await fetch(
|
|
76
|
+
"http://localhost:3000/api/config",
|
|
77
|
+
getRequestBody({
|
|
78
|
+
selectedRemotes: this.selectedRemotes,
|
|
79
|
+
deps: this.deps,
|
|
80
|
+
packages: this.packages,
|
|
81
|
+
remotesToInstall: this.remotesToInstall,
|
|
82
|
+
})
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
if (res.status !== 200) {
|
|
86
|
+
this.saveConfigOK = false;
|
|
87
|
+
} else {
|
|
88
|
+
this.saveConfigOK = true;
|
|
89
|
+
}
|
|
90
|
+
this.saveConfigSubmitted = true;
|
|
91
|
+
|
|
92
|
+
const finalRes = await res.json();
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
});
|