Skip to content

Commit 21862fc

Browse files
committed
feat: update frontend
1 parent 6489cc7 commit 21862fc

File tree

12 files changed

+52
-514
lines changed

12 files changed

+52
-514
lines changed

carrental-web/src/angular/carrental/angular.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"prefix": "app",
1111
"i18n": {
1212
"locales": {
13-
"en": "src/locale/messages.en.xlf"
13+
"de": "src/locale/messages.de.json"
1414
},
15-
"sourceLocale": "de"
15+
"sourceLocale": "en"
1616
},
1717
"schematics": {
1818
"@schematics/angular:component": {

carrental-web/src/angular/carrental/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"test": "ng test --browsers ChromeHeadless --watch=false --code-coverage=true",
1111
"test-chromium": "ng test --browsers ChromiumHeadless --watch=false --code-coverage=true",
1212
"test-local": "ng test --browsers Chromium --watch=true",
13+
"extract-i18n": "ng extract-i18n --format=json",
1314
"lint": "ng lint",
1415
"e2e": "ng e2e",
1516
"postinstall": "ngcc"

carrental-web/src/angular/carrental/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { Component } from '@angular/core';
2222
styleUrls: ['./app.component.scss']
2323
})
2424
export class AppComponent {
25-
title = 'carrental works!';
25+
protected title = 'carrental works!';
2626

2727
constructor() {
2828

carrental-web/src/angular/carrental/src/app/crdate/crdate.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export class CrdateComponent implements OnInit {
2626
@Input() myobject: any;
2727
@Input() myvalue: string;
2828
@Input() mytype: string;
29-
newDate: number;
30-
newString: string;
29+
protected newDate: number;
30+
protected newString: string;
3131

3232
ngOnInit() {
3333
if(!this.myobject) {return;} //for the tests

carrental-web/src/angular/carrental/src/app/crdetail/crdetail.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import { CrValuesComponent } from '../crvalues/crvalues.component';
2727
} )
2828
export class CrdetailComponent implements OnInit {
2929

30-
crDetail: CrDetail;
31-
crPeriods: CrPeriod[];
32-
crEditmode: boolean;
30+
protected crDetail: CrDetail;
31+
protected crPeriods: CrPeriod[];
32+
protected crEditmode: boolean;
3333
private mnr: string;
3434
private jahr: string;
3535
private valid: boolean;

carrental-web/src/angular/carrental/src/app/crlist/crlist.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import { PlatformLocation } from '@angular/common';
2626
styleUrls: ['./crlist.component.scss'],
2727
})
2828
export class CrlistComponent implements OnInit {
29-
tableRows: Observable<CrTableRow[]>;
30-
errorMsg: string;
31-
modalvisible = false;
29+
protected tableRows: Observable<CrTableRow[]>;
30+
protected errorMsg: string;
31+
protected modalvisible = false;
3232

3333
constructor(private route: ActivatedRoute,private router: Router, private service: CrRestService, private platformLocation: PlatformLocation ) {}
3434

carrental-web/src/angular/carrental/src/app/crroot/crroot.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import { Component, OnInit, ViewChild, ElementRef, OnDestroy } from '@angular/co
88
})
99
export class CrrootComponent implements OnInit {
1010

11-
title = 'Please choose a link.';
11+
protected title = 'Please choose a link.';
1212
@ViewChild('myCanvas', { static: true }) canvas: ElementRef;
13-
ctx: CanvasRenderingContext2D;
14-
width: number;
15-
height: number;
16-
ballArray = [];
13+
protected ctx: CanvasRenderingContext2D;
14+
protected width: number;
15+
protected height: number;
16+
protected ballArray = [];
1717

1818
constructor() { }
1919

carrental-web/src/angular/carrental/src/app/crupload/crupload.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ import { Component, OnInit, Input, OnChanges, SimpleChange } from '@angular/core
2323
})
2424
export class CruploadComponent implements OnInit, OnChanges {
2525
@Input() visible: boolean;
26-
currentFile: File;
27-
filetext: string;
26+
protected currentFile: File;
27+
protected filetext: string;
2828

2929
constructor() { }
3030

carrental-web/src/angular/carrental/src/app/crvalues/crvalues.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import { Component, OnInit, Input , OnDestroy, EventEmitter, Output} from '@angu
1717
import { FormGroup, FormControl, FormBuilder, Validators, AbstractControl } from '@angular/forms';
1818
import { CrPortfolio } from '../dtos/crTypes';
1919
import { CrValuesValidators } from '../shared/crvalues.validators';
20-
import { Subscription } from 'rxjs';
2120
import { Utils } from '../shared/utils';
2221

2322
enum FormFields {
@@ -33,11 +32,11 @@ enum FormFields {
3332
styleUrls: ['./crvalues.component.scss']
3433
})
3534
export class CrValuesComponent implements OnInit, OnDestroy {
36-
form: FormGroup;
3735
@Input() crvalues: CrPortfolio;
38-
updateTotalsSub: any[] = [];
36+
protected updateTotalsSub: any[] = [];
3937
@Output() valuesValid = new EventEmitter<boolean>();
40-
FormFields = FormFields;
38+
protected FormFields = FormFields;
39+
form: FormGroup;
4140

4241
constructor(fb: FormBuilder) {
4342
this.form = fb.group({
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"locale": "de",
3+
"translations": {
4+
"337960809871797088": "Link zu crroot",
5+
"1847471060124884278": "Link zu crdetail",
6+
"1051267765915501496": "Link zu crlist",
7+
"4257311468295200027": "crdetail works!",
8+
"618778231951065569": "Mietperiode",
9+
"4739373515506149638": "bis",
10+
"4046549637581574286": "Mieter",
11+
"5028777105388019087": "Details",
12+
"2963596979528181113": "Jahr",
13+
"5611592591303869712": "Status",
14+
"7531312285312665601": "Grund",
15+
"4515365200806436893": "Fahrzeuge Total",
16+
"5344961910471563923": "Miete geplant Total",
17+
"3438508045655609807": "Miete abgerechnet Total",
18+
"2856181692640859661": "Anzahl Pkw",
19+
"4063694784061210581": "Anzahl Lkw",
20+
"935267939147271845": "Datum",
21+
"8893370247668493565": "Mutierer",
22+
"8988560364088607079": "Mahnstop",
23+
"8577155686323583649": "Anzahl Fahrzeuge",
24+
"2696236920734992377": "Miete geplant",
25+
"1789889529524142520": "Miete abgerechnet",
26+
"8521633630936750492": "Pkw",
27+
"4969096573081085688": "Lkw",
28+
"3448462145758383019": "Total"
29+
}
30+
}

0 commit comments

Comments
 (0)