├── tools ├── schematics │ └── .gitkeep └── tsconfig.tools.json ├── apps ├── flight-app │ ├── src │ │ ├── assets │ │ │ ├── .gitkeep │ │ │ ├── stats-1.json │ │ │ ├── stats-2.json │ │ │ ├── stats-3.json │ │ │ ├── img │ │ │ │ ├── angular.png │ │ │ │ ├── favicon.png │ │ │ │ ├── new_logo.png │ │ │ │ ├── apple-icon.png │ │ │ │ ├── background.jpg │ │ │ │ ├── tim_80x80.png │ │ │ │ ├── angular2-logo.png │ │ │ │ ├── faces │ │ │ │ │ ├── face-0.jpg │ │ │ │ │ ├── face-1.jpg │ │ │ │ │ ├── face-2.jpg │ │ │ │ │ └── face-3.jpg │ │ │ │ └── angular2-logo-white.png │ │ │ ├── sass │ │ │ │ ├── paper │ │ │ │ │ ├── mixins │ │ │ │ │ │ ├── _tabs.scss │ │ │ │ │ │ ├── _cards.scss │ │ │ │ │ │ ├── _navbars.scss │ │ │ │ │ │ ├── _icons.scss │ │ │ │ │ │ ├── _inputs.scss │ │ │ │ │ │ ├── _transparency.scss │ │ │ │ │ │ ├── _labels.scss │ │ │ │ │ │ ├── _sidebar.scss │ │ │ │ │ │ ├── _buttons.scss │ │ │ │ │ │ └── _chartist.scss │ │ │ │ │ ├── _mixins.scss │ │ │ │ │ ├── _footers.scss │ │ │ │ │ ├── _alerts.scss │ │ │ │ │ ├── _tables.scss │ │ │ │ │ ├── _misc.scss │ │ │ │ │ ├── _dropdown.scss │ │ │ │ │ ├── _typography.scss │ │ │ │ │ ├── _buttons.scss │ │ │ │ │ ├── _navbars.scss │ │ │ │ │ ├── _animate.scss │ │ │ │ │ └── _inputs.scss │ │ │ │ └── paper-dashboard.scss │ │ │ ├── fonts │ │ │ │ ├── themify.eot │ │ │ │ ├── themify.ttf │ │ │ │ └── themify.woff │ │ │ ├── sea-1993791_1920.jpg │ │ │ ├── custom-elements │ │ │ │ ├── src │ │ │ │ │ ├── CustomElementState.js │ │ │ │ │ ├── AlreadyConstructedMarker.js │ │ │ │ │ ├── Patch │ │ │ │ │ │ ├── DocumentFragment.js │ │ │ │ │ │ ├── Native.js │ │ │ │ │ │ ├── Interface │ │ │ │ │ │ │ ├── ParentNode.js │ │ │ │ │ │ │ └── ChildNode.js │ │ │ │ │ │ ├── HTMLElement.js │ │ │ │ │ │ └── Document.js │ │ │ │ │ ├── Deferred.js │ │ │ │ │ ├── custom-elements.js │ │ │ │ │ ├── DocumentConstructionObserver.js │ │ │ │ │ └── Utilities.js │ │ │ │ ├── tests │ │ │ │ │ ├── chromium │ │ │ │ │ │ ├── resources │ │ │ │ │ │ │ ├── plugin.js │ │ │ │ │ │ │ ├── gc.js │ │ │ │ │ │ │ ├── accessibility-helper.js │ │ │ │ │ │ │ ├── run-after-layout-and-paint.js │ │ │ │ │ │ │ ├── mojo-helpers.js │ │ │ │ │ │ │ ├── intersection-observer-helper-functions.js │ │ │ │ │ │ │ └── vendor-prefix.js │ │ │ │ │ │ └── custom-elements │ │ │ │ │ │ │ └── spec │ │ │ │ │ │ │ └── resources │ │ │ │ │ │ │ └── custom-elements-helpers.js │ │ │ │ │ └── js │ │ │ │ │ │ ├── closure.js │ │ │ │ │ │ ├── upgrade.js │ │ │ │ │ │ ├── shadow-dom.js │ │ │ │ │ │ ├── typescript.js │ │ │ │ │ │ ├── instanceof.js │ │ │ │ │ │ ├── babel.js │ │ │ │ │ │ └── registry.js │ │ │ │ ├── externs │ │ │ │ │ └── custom-elements.js │ │ │ │ └── gulpfile.js │ │ │ ├── data │ │ │ │ └── data.json │ │ │ ├── webcomponentsjs │ │ │ │ ├── entrypoints │ │ │ │ │ ├── custom-elements-es5-adapter-index.js │ │ │ │ │ ├── webcomponents-ce-index.js │ │ │ │ │ ├── webcomponents-sd-index.js │ │ │ │ │ ├── webcomponents-sd-ce-index.js │ │ │ │ │ ├── webcomponents-sd-ce-pf-index.js │ │ │ │ │ └── webcomponents-bundle-index.js │ │ │ │ └── custom-elements-es5-adapter.js │ │ │ └── css │ │ │ │ └── demo.css │ │ ├── app │ │ │ ├── home │ │ │ │ ├── home.component.css │ │ │ │ ├── home.component.html │ │ │ │ └── home.component.ts │ │ │ ├── sidebar │ │ │ │ ├── sidebar.component.ts │ │ │ │ └── sidebar.component.html │ │ │ ├── app.component.ts │ │ │ ├── basket │ │ │ │ ├── basket.component.ts │ │ │ │ ├── basket.component.css │ │ │ │ └── basket.component.html │ │ │ ├── app.component.html │ │ │ ├── app.routes.ts │ │ │ ├── navbar │ │ │ │ ├── navbar.component.ts │ │ │ │ └── navbar.component.html │ │ │ ├── shared │ │ │ │ ├── shared.module.ts │ │ │ │ └── pipes │ │ │ │ │ └── city.pipe.ts │ │ │ ├── app.component.spec.ts │ │ │ ├── app.component.css │ │ │ └── app.module.ts │ │ ├── test-setup.ts │ │ ├── environments │ │ │ ├── environment.prod.ts │ │ │ └── environment.ts │ │ ├── favicon.ico │ │ ├── typings.d.ts │ │ ├── main.ts │ │ ├── index.html │ │ ├── styles.css │ │ ├── test.ts │ │ └── polyfills.ts │ ├── tsconfig.json │ ├── tslint.json │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── jest.config.js │ └── browserslist └── flight-app-e2e │ ├── tslint.json │ ├── src │ ├── support │ │ ├── app.po.ts │ │ ├── index.ts │ │ └── commands.ts │ ├── fixtures │ │ └── example.json │ ├── integration │ │ └── app.spec.ts │ └── plugins │ │ └── index.js │ ├── tsconfig.json │ ├── tsconfig.e2e.json │ └── cypress.json ├── .prettierrc ├── libs ├── booking │ ├── api │ │ ├── src │ │ │ ├── test-setup.ts │ │ │ ├── index.ts │ │ │ └── lib │ │ │ │ ├── booking-api.module.ts │ │ │ │ └── booking-api.module.spec.ts │ │ ├── tsconfig.json │ │ ├── README.md │ │ ├── tslint.json │ │ ├── tsconfig.spec.json │ │ ├── jest.config.js │ │ └── tsconfig.lib.json │ ├── feature │ │ ├── src │ │ │ ├── lib │ │ │ │ ├── flight-card │ │ │ │ │ ├── flight-card.component.css │ │ │ │ │ ├── flight-card.component.html │ │ │ │ │ └── flight-card.component.ts │ │ │ │ ├── flight-edit │ │ │ │ │ ├── flight-edit.component.css │ │ │ │ │ ├── flight-edit.component.ts │ │ │ │ │ └── flight-edit.component.html │ │ │ │ ├── flight-search │ │ │ │ │ ├── flight-search.component.css │ │ │ │ │ ├── flight-search.component.ts │ │ │ │ │ └── flight-search.component.html │ │ │ │ ├── passenger-search │ │ │ │ │ ├── passenger-search.component.css │ │ │ │ │ ├── passenger-search.component.html │ │ │ │ │ ├── passenger-search.component.ts │ │ │ │ │ └── passenger-search.component.spec.ts │ │ │ │ ├── flight-booking.component.html │ │ │ │ ├── flight-booking.component.ts │ │ │ │ ├── common │ │ │ │ │ └── city.pipe.ts │ │ │ │ ├── flight-booking.routes.ts │ │ │ │ └── booking-feature.module.ts │ │ │ ├── test-setup.ts │ │ │ └── index.ts │ │ ├── tsconfig.json │ │ ├── README.md │ │ ├── tslint.json │ │ ├── tsconfig.spec.json │ │ ├── jest.config.js │ │ └── tsconfig.lib.json │ └── domain │ │ ├── src │ │ ├── test-setup.ts │ │ ├── lib │ │ │ ├── domain │ │ │ │ ├── flight.ts │ │ │ │ ├── passenger.ts │ │ │ │ └── get-official-airport-name.ts │ │ │ ├── booking-domain.module.ts │ │ │ ├── application-services │ │ │ │ └── flight.facade.ts │ │ │ └── infrastructure │ │ │ │ └── flight.service.ts │ │ └── index.ts │ │ ├── tsconfig.json │ │ ├── README.md │ │ ├── tslint.json │ │ ├── tsconfig.spec.json │ │ ├── jest.config.js │ │ └── tsconfig.lib.json ├── boarding │ ├── domain │ │ ├── src │ │ │ ├── test-setup.ts │ │ │ ├── index.ts │ │ │ └── lib │ │ │ │ ├── boarding-domain.module.ts │ │ │ │ └── domain │ │ │ │ ├── boarding-list.ts │ │ │ │ └── update-boarding-status.ts │ │ ├── tsconfig.json │ │ ├── README.md │ │ ├── tslint.json │ │ ├── tsconfig.spec.json │ │ ├── jest.config.js │ │ └── tsconfig.lib.json │ └── feature │ │ ├── src │ │ ├── test-setup.ts │ │ ├── index.ts │ │ └── lib │ │ │ └── boarding-feature.module.ts │ │ ├── tsconfig.json │ │ ├── README.md │ │ ├── tslint.json │ │ ├── tsconfig.spec.json │ │ ├── jest.config.js │ │ └── tsconfig.lib.json └── shared │ ├── ui-common │ ├── src │ │ ├── test-setup.ts │ │ ├── index.ts │ │ └── lib │ │ │ ├── shared-ui-common.module.ts │ │ │ └── shared-ui-common.module.spec.ts │ ├── tsconfig.json │ ├── README.md │ ├── tslint.json │ ├── tsconfig.spec.json │ ├── jest.config.js │ └── tsconfig.lib.json │ └── util-auth │ ├── src │ ├── test-setup.ts │ ├── index.ts │ └── lib │ │ ├── shared-util-auth.module.ts │ │ └── shared-util-auth.module.spec.ts │ ├── tsconfig.json │ ├── README.md │ ├── tslint.json │ ├── tsconfig.spec.json │ ├── jest.config.js │ └── tsconfig.lib.json ├── .prettierignore ├── .vscode └── extensions.json ├── .editorconfig ├── jest.config.js ├── .gitignore ├── nx.json ├── tsconfig.json ├── package.json ├── tslint.json └── README.md /tools/schematics/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/flight-app/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/flight-app/src/app/home/home.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /apps/flight-app/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /libs/booking/api/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /libs/booking/feature/src/lib/flight-card/flight-card.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libs/booking/feature/src/lib/flight-edit/flight-edit.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libs/boarding/domain/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /libs/boarding/feature/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /libs/booking/domain/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /libs/booking/feature/src/lib/flight-search/flight-search.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /libs/booking/feature/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /libs/shared/ui-common/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /libs/shared/util-auth/src/test-setup.ts: -------------------------------------------------------------------------------- 1 | import 'jest-preset-angular'; 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # Add files here to ignore them from prettier formatting 2 | -------------------------------------------------------------------------------- /libs/booking/api/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/booking-api.module'; 2 | -------------------------------------------------------------------------------- /libs/booking/feature/src/lib/passenger-search/passenger-search.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /apps/flight-app-e2e/tslint.json: -------------------------------------------------------------------------------- 1 | { "extends": "../../tslint.json", "rules": [] } 2 | -------------------------------------------------------------------------------- /libs/boarding/domain/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/boarding-domain.module'; 2 | -------------------------------------------------------------------------------- /libs/booking/feature/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/booking-feature.module'; 2 | -------------------------------------------------------------------------------- /libs/boarding/feature/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/boarding-feature.module'; 2 | -------------------------------------------------------------------------------- /libs/shared/ui-common/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/shared-ui-common.module'; 2 | -------------------------------------------------------------------------------- /libs/shared/util-auth/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/shared-util-auth.module'; 2 | -------------------------------------------------------------------------------- /apps/flight-app-e2e/src/support/app.po.ts: -------------------------------------------------------------------------------- 1 | export const getGreeting = () => cy.get('h1'); 2 | -------------------------------------------------------------------------------- /apps/flight-app/src/assets/stats-1.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": 17, 3 | "b": 23, 4 | "c": 64 5 | } -------------------------------------------------------------------------------- /apps/flight-app/src/assets/stats-2.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": 66, 3 | "b": 55, 4 | "c": 22 5 | } -------------------------------------------------------------------------------- /apps/flight-app/src/assets/stats-3.json: -------------------------------------------------------------------------------- 1 | { 2 | "a": 35, 3 | "b": 24, 4 | "c": 74 5 | } -------------------------------------------------------------------------------- /apps/flight-app/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /apps/flight-app/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/favicon.ico -------------------------------------------------------------------------------- /libs/booking/feature/src/lib/passenger-search/passenger-search.component.html: -------------------------------------------------------------------------------- 1 |
2 | passenger-search works! 3 |
4 | -------------------------------------------------------------------------------- /apps/flight-app-e2e/src/fixtures/example.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Using fixtures to represent data", 3 | "email": "hello@cypress.io" 4 | } 5 | -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/angular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/angular.png -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/favicon.png -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/new_logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/new_logo.png -------------------------------------------------------------------------------- /apps/flight-app/src/assets/sass/paper/mixins/_tabs.scss: -------------------------------------------------------------------------------- 1 | @mixin pill-style($color) { 2 | border: 1px solid $color; 3 | color: $color; 4 | } 5 | -------------------------------------------------------------------------------- /apps/flight-app/src/assets/fonts/themify.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/fonts/themify.eot -------------------------------------------------------------------------------- /apps/flight-app/src/assets/fonts/themify.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/fonts/themify.ttf -------------------------------------------------------------------------------- /apps/flight-app/src/assets/fonts/themify.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/fonts/themify.woff -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/apple-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/apple-icon.png -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/background.jpg -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/tim_80x80.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/tim_80x80.png -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/angular2-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/angular2-logo.png -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/faces/face-0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/faces/face-0.jpg -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/faces/face-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/faces/face-1.jpg -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/faces/face-2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/faces/face-2.jpg -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/faces/face-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/faces/face-3.jpg -------------------------------------------------------------------------------- /apps/flight-app/src/assets/sea-1993791_1920.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/sea-1993791_1920.jpg -------------------------------------------------------------------------------- /apps/flight-app/src/typings.d.ts: -------------------------------------------------------------------------------- 1 | /* SystemJS module definition */ 2 | declare var module: NodeModule; 3 | interface NodeModule { 4 | id: string; 5 | } 6 | -------------------------------------------------------------------------------- /apps/flight-app/src/assets/img/angular2-logo-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/manfredsteyer/angular-ddd/HEAD/apps/flight-app/src/assets/img/angular2-logo-white.png -------------------------------------------------------------------------------- /apps/flight-app/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /apps/flight-app-e2e/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["cypress", "node"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/boarding/domain/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/booking/api/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/booking/domain/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/booking/feature/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/boarding/feature/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/shared/ui-common/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/shared/util-auth/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tsconfig.json", 3 | "compilerOptions": { 4 | "types": ["node", "jest"] 5 | }, 6 | "include": ["**/*.ts"] 7 | } 8 | -------------------------------------------------------------------------------- /libs/booking/api/README.md: -------------------------------------------------------------------------------- 1 | # booking-api 2 | 3 | This library was generated with [Nx](https://nx.dev). 4 | 5 | ## Running unit tests 6 | 7 | Run `nx test booking-api` to execute the unit tests. 8 | -------------------------------------------------------------------------------- /libs/shared/ui-common/README.md: -------------------------------------------------------------------------------- 1 | # shared-ui-common 2 | 3 | This library was generated with [Nx](https://nx.dev). 4 | 5 | ## Running unit tests 6 | 7 | Run `nx test shared-ui-common` to execute the unit tests. 8 | -------------------------------------------------------------------------------- /libs/shared/util-auth/README.md: -------------------------------------------------------------------------------- 1 | # shared-util-auth 2 | 3 | This library was generated with [Nx](https://nx.dev). 4 | 5 | ## Running unit tests 6 | 7 | Run `nx test shared-util-auth` to execute the unit tests. 8 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "nrwl.angular-console", 4 | "angular.ng-template", 5 | "ms-vscode.vscode-typescript-tslint-plugin", 6 | "esbenp.prettier-vscode" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /apps/flight-app-e2e/tsconfig.e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "sourceMap": false, 5 | "outDir": "../../dist/out-tsc" 6 | }, 7 | "include": ["src/**/*.ts"] 8 | } 9 | -------------------------------------------------------------------------------- /libs/booking/domain/README.md: -------------------------------------------------------------------------------- 1 | # booking-domain-flights 2 | 3 | This library was generated with [Nx](https://nx.dev). 4 | 5 | ## Running unit tests 6 | 7 | Run `nx test booking-domain-flights` to execute the unit tests. 8 | -------------------------------------------------------------------------------- /libs/booking/feature/README.md: -------------------------------------------------------------------------------- 1 | # booking-feature-flights 2 | 3 | This library was generated with [Nx](https://nx.dev). 4 | 5 | ## Running unit tests 6 | 7 | Run `nx test booking-feature-flights` to execute the unit tests. 8 | -------------------------------------------------------------------------------- /libs/boarding/domain/README.md: -------------------------------------------------------------------------------- 1 | # boarding-domain-boarding 2 | 3 | This library was generated with [Nx](https://nx.dev). 4 | 5 | ## Running unit tests 6 | 7 | Run `nx test boarding-domain-boarding` to execute the unit tests. 8 | -------------------------------------------------------------------------------- /libs/boarding/feature/README.md: -------------------------------------------------------------------------------- 1 | # boarding-feature-boarding 2 | 3 | This library was generated with [Nx](https://nx.dev). 4 | 5 | ## Running unit tests 6 | 7 | Run `nx test boarding-feature-boarding` to execute the unit tests. 8 | -------------------------------------------------------------------------------- /apps/flight-app/src/assets/custom-elements/src/CustomElementState.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @enum {number} 3 | */ 4 | const CustomElementState = { 5 | custom: 1, 6 | failed: 2, 7 | }; 8 | 9 | export default CustomElementState; 10 | -------------------------------------------------------------------------------- /libs/booking/domain/src/lib/domain/flight.ts: -------------------------------------------------------------------------------- 1 | 2 | export interface Flight { 3 | readonly id: number; 4 | readonly from: string; 5 | readonly to: string; 6 | readonly date: string; 7 | readonly delayed: boolean; 8 | } 9 | -------------------------------------------------------------------------------- /apps/flight-app/src/assets/sass/paper/mixins/_cards.scss: -------------------------------------------------------------------------------- 1 | @mixin filter($color) { 2 | @if $color == #FFFFFF { 3 | background-color: rgba($color, .91); 4 | } @else { 5 | background-color: rgba($color, .69); 6 | } 7 | } 8 | 9 | -------------------------------------------------------------------------------- /libs/booking/api/src/lib/booking-api.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | @NgModule({ 5 | imports: [CommonModule] 6 | }) 7 | export class BookingApiModule {} 8 | -------------------------------------------------------------------------------- /libs/boarding/domain/src/lib/boarding-domain.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | @NgModule({ 5 | imports: [CommonModule] 6 | }) 7 | export class BoardingDomainModule {} 8 | -------------------------------------------------------------------------------- /libs/shared/ui-common/src/lib/shared-ui-common.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | @NgModule({ 5 | imports: [CommonModule] 6 | }) 7 | export class SharedUiCommonModule {} 8 | -------------------------------------------------------------------------------- /libs/shared/util-auth/src/lib/shared-util-auth.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | @NgModule({ 5 | imports: [CommonModule] 6 | }) 7 | export class SharedUtilAuthModule {} 8 | -------------------------------------------------------------------------------- /apps/flight-app/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /libs/boarding/feature/src/lib/boarding-feature.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { CommonModule } from '@angular/common'; 3 | 4 | @NgModule({ 5 | imports: [CommonModule] 6 | }) 7 | export class BoardingFeatureModule {} 8 | -------------------------------------------------------------------------------- /libs/boarding/domain/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /libs/booking/api/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /libs/booking/domain/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /libs/booking/feature/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /apps/flight-app/src/app/sidebar/sidebar.component.ts: -------------------------------------------------------------------------------- 1 | import {Component} from '@angular/core'; 2 | 3 | 4 | @Component({ 5 | selector: 'sidebar-cmp', 6 | templateUrl: 'sidebar.component.html', 7 | }) 8 | 9 | export class SidebarComponent { 10 | } 11 | -------------------------------------------------------------------------------- /libs/boarding/feature/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /libs/shared/ui-common/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /libs/shared/util-auth/tslint.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../../../tslint.json", 3 | "rules": { 4 | "directive-selector": [true, "attribute", "nxFlights", "camelCase"], 5 | "component-selector": [true, "element", "nx-flights", "kebab-case"] 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /apps/flight-app/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../../dist/out-tsc", 5 | "types": [] 6 | }, 7 | "include": ["**/*.ts"], 8 | "exclude": ["src/test-setup.ts", "**/*.spec.ts"] 9 | } 10 | -------------------------------------------------------------------------------- /libs/booking/domain/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lib/booking-domain.module'; 2 | export {Flight} from './lib/domain/flight'; 3 | export {FlightService} from './lib/infrastructure/flight.service'; 4 | export { FlightFacade } from './lib/application-services/flight.facade'; -------------------------------------------------------------------------------- /apps/flight-app/src/assets/sass/paper/mixins/_navbars.scss: -------------------------------------------------------------------------------- 1 | @mixin navbar-color($color) { 2 | background-color: $color; 3 | } 4 | 5 | @mixin center-item() { 6 | left: 0; 7 | right: 0; 8 | margin-right: auto; 9 | margin-left: auto; 10 | position: absolute; 11 | } 12 | -------------------------------------------------------------------------------- /libs/booking/feature/src/lib/flight-booking.component.html: -------------------------------------------------------------------------------- 1 |Hamburg - Graz
13 |Graz - Hamburg
16 |10 | You haven't saved your modifications. Do you really want to leave me? 11 |
12 | 13 | 14 |Id: {{id}}
18 |ShowDetails: {{showDetails}}
19 |Flight-No.: #{{item.id}}
10 |Date: {{item.date | date:'long'}}
11 | 12 |13 | 19 | 25 | 26 | 28 | Edit 29 | 30 | 31 |
32 | 33 |{{ basket | json }}
64 | 