diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 00000000..427441dc --- /dev/null +++ b/.browserslistrc @@ -0,0 +1,17 @@ +# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. +# For additional information regarding the format and rule options, please see: +# https://github.com/browserslist/browserslist#queries + +# For the full list of supported browsers by the Angular framework, please see: +# https://angular.io/guide/browser-support + +# You can see what browsers were selected by your queries by running: +# npx browserslist + +last 1 Chrome version +last 1 Firefox version +last 2 Edge major versions +last 2 Safari major versions +last 2 iOS major versions +Firefox ESR +not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line. diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 00000000..8a6aa8e9 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +# IDE specific files +.idea +*.iml +# Build Output +dist +node_modules diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 00000000..59d9a3a3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +# Editor configuration, see https://editorconfig.org +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true + +[*.ts] +quote_type = single + +[*.md] +max_line_length = off +trim_trailing_whitespace = false diff --git a/mainzellisteGUI.iml b/mainzellisteGUI.iml new file mode 100644 index 00000000..887f744b --- /dev/null +++ b/mainzellisteGUI.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 00000000..c88e2c47 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,13 @@ +server { + + listen ${NGINX_PORT}; + listen [::]:${NGINX_PORT}; + server_name ${NGINX_SERVER_NAME}; + + root /usr/share/nginx/html; + index index.html; + location ${NGINX_DEPLOYMENT_CONTEXT} { + try_files $uri $uri/ /index.html; + } + +} diff --git a/src/app/idcard/idcard.component.spec.ts b/src/app/idcard/idcard.component.spec.ts new file mode 100644 index 00000000..7ff01938 --- /dev/null +++ b/src/app/idcard/idcard.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { IdcardComponent } from './idcard.component'; + +describe('IdcardComponent', () => { + let component: IdcardComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ IdcardComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(IdcardComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/model/patient.spec.ts b/src/app/model/patient.spec.ts new file mode 100644 index 00000000..e2aeb528 --- /dev/null +++ b/src/app/model/patient.spec.ts @@ -0,0 +1,7 @@ +import { Patient } from './patient'; + +describe('Patient', () => { + it('should create an instance', () => { + expect(new Patient()).toBeTruthy(); + }); +}); diff --git a/src/app/patientlist-view/patientlist-view.component.spec.ts b/src/app/patientlist-view/patientlist-view.component.spec.ts new file mode 100644 index 00000000..863ed2ac --- /dev/null +++ b/src/app/patientlist-view/patientlist-view.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { PatientlistViewComponent } from './patientlist-view.component'; + +describe('PatientlistViewComponent', () => { + let component: PatientlistViewComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ PatientlistViewComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(PatientlistViewComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/services/field.service.spec.ts b/src/app/services/field.service.spec.ts new file mode 100644 index 00000000..91b8508b --- /dev/null +++ b/src/app/services/field.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { FieldService } from './field.service'; + +describe('FieldService', () => { + let service: FieldService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(FieldService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/src/assets/.gitkeep b/src/assets/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/assets/images/dkfzLogo.png b/src/assets/images/dkfzLogo.png new file mode 100644 index 00000000..4e714ce8 Binary files /dev/null and b/src/assets/images/dkfzLogo.png differ diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts new file mode 100644 index 00000000..3612073b --- /dev/null +++ b/src/environments/environment.prod.ts @@ -0,0 +1,3 @@ +export const environment = { + production: true +}; diff --git a/src/environments/environment.ts b/src/environments/environment.ts new file mode 100644 index 00000000..f56ff470 --- /dev/null +++ b/src/environments/environment.ts @@ -0,0 +1,16 @@ +// This file can be replaced during build by using the `fileReplacements` array. +// `ng build` replaces `environment.ts` with `environment.prod.ts`. +// The list of file replacements can be found in `angular.json`. + +export const environment = { + production: false +}; + +/* + * For easier debugging in development mode, you can import the following file + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. + * + * This import should be commented out in production mode because it will have a negative impact + * on performance if an error is thrown. + */ +// import 'zone.js/plugins/zone-error'; // Included with Angular CLI. diff --git a/src/index.html b/src/index.html new file mode 100644 index 00000000..b1a257c9 --- /dev/null +++ b/src/index.html @@ -0,0 +1,15 @@ + + + + + Mainzelliste + + + + + + + + + + diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 00000000..c7b673cf --- /dev/null +++ b/src/main.ts @@ -0,0 +1,12 @@ +import { enableProdMode } from '@angular/core'; +import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; + +import { AppModule } from './app/app.module'; +import { environment } from './environments/environment'; + +if (environment.production) { + enableProdMode(); +} + +platformBrowserDynamic().bootstrapModule(AppModule) + .catch(err => console.error(err)); diff --git a/tsconfig.app.json b/tsconfig.app.json new file mode 100644 index 00000000..82d91dc4 --- /dev/null +++ b/tsconfig.app.json @@ -0,0 +1,15 @@ +/* To learn more about this file see: https://angular.io/config/tsconfig. */ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "./out-tsc/app", + "types": [] + }, + "files": [ + "src/main.ts", + "src/polyfills.ts" + ], + "include": [ + "src/**/*.d.ts" + ] +}