Skip to content

Commit

Permalink
fix: add missed files from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
m-benamor committed Nov 23, 2023
1 parent 19c32d2 commit aa8a474
Show file tree
Hide file tree
Showing 16 changed files with 197 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -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.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# IDE specific files
.idea
*.iml
# Build Output
dist
node_modules
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
11 changes: 11 additions & 0 deletions mainzellisteGUI.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/dist" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
13 changes: 13 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -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;
}

}
25 changes: 25 additions & 0 deletions src/app/idcard/idcard.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { IdcardComponent } from './idcard.component';

describe('IdcardComponent', () => {
let component: IdcardComponent;
let fixture: ComponentFixture<IdcardComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ IdcardComponent ]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(IdcardComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
7 changes: 7 additions & 0 deletions src/app/model/patient.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Patient } from './patient';

describe('Patient', () => {
it('should create an instance', () => {
expect(new Patient()).toBeTruthy();
});
});
25 changes: 25 additions & 0 deletions src/app/patientlist-view/patientlist-view.component.spec.ts
Original file line number Diff line number Diff line change
@@ -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<PatientlistViewComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ PatientlistViewComponent ]
})
.compileComponents();
});

beforeEach(() => {
fixture = TestBed.createComponent(PatientlistViewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
16 changes: 16 additions & 0 deletions src/app/services/field.service.spec.ts
Original file line number Diff line number Diff line change
@@ -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();
});
});
Empty file added src/assets/.gitkeep
Empty file.
Binary file added src/assets/images/dkfzLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const environment = {
production: true
};
16 changes: 16 additions & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -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.
15 changes: 15 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Mainzelliste</title>
<base href="/">

<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head>
<body class="mat-typography">
<app-root></app-root>
</body>
</html>
12 changes: 12 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -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));
15 changes: 15 additions & 0 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
@@ -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"
]
}

0 comments on commit aa8a474

Please sign in to comment.