Resolve TS Lint errors

pull/30/head
Florian Hartwich 2018-03-08 10:17:10 +01:00
parent 084edaa53c
commit 8859287c51
17 changed files with 30 additions and 30 deletions

View File

@ -9,7 +9,7 @@ import {CSSHelpers} from '../global.helpers';
@Component({ @Component({
selector: 'army', selector: 'cc-army',
templateUrl: './army.component.html', templateUrl: './army.component.html',
styleUrls: ['./army.component.css'] styleUrls: ['./army.component.css']
}) })

View File

@ -12,9 +12,9 @@ import {FormGroup, NgForm} from '@angular/forms';
}) })
export class ShowErrorComponent { export class ShowErrorComponent {
@Input('path') controlPath; @Input('controlPath') controlPath;
@Input('text') displayName = ''; @Input('displayName') displayName = '';
private form: FormGroup; private form: FormGroup;

View File

@ -1,7 +1,7 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
@Component({ @Component({
selector: 'decorations', selector: 'cc-decorations',
templateUrl: './decoration.component.html', templateUrl: './decoration.component.html',
styleUrls: ['./decoration.component.css'] styleUrls: ['./decoration.component.css']
}) })

View File

@ -9,7 +9,7 @@
name="title" name="title"
id="title" id="title"
required maxlength="50"/> required maxlength="50"/>
<show-error text="Name" path="title"></show-error> <show-error displayName="Name" controlPath="title"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -21,7 +21,7 @@
<option value="BLUFOR">{{fraction.BLUFOR}}</option> <option value="BLUFOR">{{fraction.BLUFOR}}</option>
<option value="GLOBAL">Global</option> <option value="GLOBAL">Global</option>
</select> </select>
<show-error text="Fraktion" path="fraction"></show-error> <show-error displayName="Fraktion" controlPath="fraction"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -32,14 +32,14 @@
<option value="true">Orden</option> <option value="true">Orden</option>
<option value="false">Ribbon</option> <option value="false">Ribbon</option>
</select> </select>
<show-error text="Art" path="type"></show-error> <show-error displayName="Art" controlPath="type"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="sort">Sortierung</label> <label for="sort">Sortierung</label>
<input id="sort" name="sort" type="number" class="form-control btn dropdown-toggle" <input id="sort" name="sort" type="number" class="form-control btn dropdown-toggle"
[(ngModel)]="decoration.sortingNumber"> [(ngModel)]="decoration.sortingNumber">
<show-error text="Sortierung" path="sort"></show-error> <show-error displayName="Sortierung" controlPath="sort"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -47,7 +47,7 @@
<textarea id="description" name="description" class="form-control" rows="5" <textarea id="description" name="description" class="form-control" rows="5"
required required
[(ngModel)]="decoration.description"></textarea> [(ngModel)]="decoration.description"></textarea>
<show-error text="Beschreibung" path="description"></show-error> <show-error displayName="Beschreibung" controlPath="description"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -10,7 +10,7 @@
id="title" id="title"
required maxlength="50"/> required maxlength="50"/>
<show-error text="Name" path="title"></show-error> <show-error displayName="Name" controlPath="title"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -21,14 +21,14 @@
<option value="OPFOR">{{fraction.OPFOR}}</option> <option value="OPFOR">{{fraction.OPFOR}}</option>
<option value="BLUFOR">{{fraction.BLUFOR}}</option> <option value="BLUFOR">{{fraction.BLUFOR}}</option>
</select> </select>
<show-error text="Fraktion" path="fraction"></show-error> <show-error displayName="Fraktion" controlPath="fraction"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="level">Stufe</label> <label for="level">Stufe</label>
<input id="level" name="level" type="number" class="form-control btn dropdown-toggle" <input id="level" name="level" type="number" class="form-control btn dropdown-toggle"
[(ngModel)]="rank.level"> [(ngModel)]="rank.level">
<show-error text="Stufe" path="level"></show-error> <show-error displayName="Stufe" controlPath="level"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -1,7 +1,7 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
@Component({ @Component({
selector: 'ranks', selector: 'cc-ranks',
templateUrl: './ranks.component.html', templateUrl: './ranks.component.html',
styleUrls: ['./ranks.component.css'] styleUrls: ['./ranks.component.css']
}) })

View File

@ -1,7 +1,7 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
@Component({ @Component({
selector: 'request', selector: 'cc-request',
templateUrl: 'request.component.html', templateUrl: 'request.component.html',
styleUrls: ['request.component.css'] styleUrls: ['request.component.css']
}) })

View File

@ -10,7 +10,7 @@
id="title" id="title"
required maxlength="50"/> required maxlength="50"/>
<show-error text="Name" path="title"></show-error> <show-error displayName="Name" controlPath="title"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -21,14 +21,14 @@
<option value="OPFOR">{{fraction.OPFOR}}</option> <option value="OPFOR">{{fraction.OPFOR}}</option>
<option value="BLUFOR">{{fraction.BLUFOR}}</option> <option value="BLUFOR">{{fraction.BLUFOR}}</option>
</select> </select>
<show-error text="Fraktion" path="fraction"></show-error> <show-error displayName="Fraktion" controlPath="fraction"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="sort">Sortierung</label> <label for="sort">Sortierung</label>
<input id="sort" name="sort" type="number" class="form-control btn dropdown-toggle" <input id="sort" name="sort" type="number" class="form-control btn dropdown-toggle"
[(ngModel)]="squad.sortingNumber"> [(ngModel)]="squad.sortingNumber">
<show-error text="Sortierung" path="sort"></show-error> <show-error displayName="Sortierung" controlPath="sort"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -1,7 +1,7 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
@Component({ @Component({
selector: 'users', selector: 'cc-users',
templateUrl: './squads.component.html', templateUrl: './squads.component.html',
styleUrls: ['./squads.component.css'] styleUrls: ['./squads.component.css']
}) })

View File

@ -9,7 +9,7 @@
id="title" id="title"
required maxlength="50"/> required maxlength="50"/>
<show-error text="Name" path="title"></show-error> <show-error displayName="Name" controlPath="title"></show-error>
</div> </div>
<button id="cancel" <button id="cancel"

View File

@ -1,7 +1,7 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
@Component({ @Component({
selector: 'stats', selector: 'cc-stats',
templateUrl: './stats.component.html', templateUrl: './stats.component.html',
styleUrls: ['./stats.component.css'] styleUrls: ['./stats.component.css']
}) })

View File

@ -4,7 +4,7 @@ import {Fraction} from '../../../utils/fraction.enum';
import {PlayerUtils} from '../../../utils/player-utils'; import {PlayerUtils} from '../../../utils/player-utils';
@Component({ @Component({
selector: 'scoreboard', selector: 'cc-scoreboard',
templateUrl: './scoreboard.component.html', templateUrl: './scoreboard.component.html',
styleUrls: ['./scoreboard.component.css', '../../../style/list-entry.css', '../../../style/hide-scrollbar.css'] styleUrls: ['./scoreboard.component.css', '../../../style/list-entry.css', '../../../style/hide-scrollbar.css']
}) })

View File

@ -64,12 +64,12 @@
<!--Sub-Components (=TABS)--> <!--Sub-Components (=TABS)-->
<div *ngIf="war"> <div *ngIf="war">
<scoreboard <cc-scoreboard
*ngIf="tab === 0" *ngIf="tab === 0"
[war]="war" [war]="war"
[fractionFilterSelected]="fractionFilterSelected" [fractionFilterSelected]="fractionFilterSelected"
(playerTabSwitch)="switchToPlayerTab($event)"> (playerTabSwitch)="switchToPlayerTab($event)">
</scoreboard> </cc-scoreboard>
<war-detail-fraction <war-detail-fraction
*ngIf="tab === 1 && logData" *ngIf="tab === 1 && logData"
[war]="war" [war]="war"

View File

@ -9,7 +9,7 @@
id="title" id="title"
required maxlength="50"/> required maxlength="50"/>
<show-error text="Name" path="title"></show-error> <show-error displayName="Name" controlPath="title"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">

View File

@ -18,7 +18,7 @@
</option> </option>
</select> </select>
<show-error text="Auszeichnung" path="decoration"></show-error> <show-error displayName="Auszeichnung" controlPath="decoration"></show-error>
</div> </div>
<div class="div-table-row" [style.display]="decoPreviewDisplay" style="margin-top: 5px; margin-bottom:10px"> <div class="div-table-row" [style.display]="decoPreviewDisplay" style="margin-top: 5px; margin-bottom:10px">
@ -41,7 +41,7 @@
<label for="reason">Begründung</label> <label for="reason">Begründung</label>
<textarea class="form-control center-block" name="reason" [ngModel]="undefined" required <textarea class="form-control center-block" name="reason" [ngModel]="undefined" required
id="reason" placeholder="Begründung eingeben..." rows="3" #awardTextArea></textarea> id="reason" placeholder="Begründung eingeben..." rows="3" #awardTextArea></textarea>
<show-error text="Begründung" path="reason"></show-error> <show-error displayName="Begründung" controlPath="reason"></show-error>
</div> </div>

View File

@ -11,7 +11,7 @@
required required
maxlength="50"/> maxlength="50"/>
<show-error text="Name" path="title"></show-error> <show-error displayName="Name" controlPath="title"></show-error>
</div> </div>
<div class="form-group"> <div class="form-group">
@ -28,7 +28,7 @@
</option> </option>
</select> </select>
<show-error text="Squad" path="squad"></show-error> <show-error displayName="Squad" controlPath="squad"></show-error>
</div> </div>
<div class="form-group" [style.display]="ranksDisplay"> <div class="form-group" [style.display]="ranksDisplay">
@ -41,7 +41,7 @@
<option *ngFor="let rank of ranks" [value]="rank.level">{{rank.name}}</option> <option *ngFor="let rank of ranks" [value]="rank.level">{{rank.name}}</option>
</select> </select>
<show-error text="Squad" path="squad"></show-error> <show-error displayName="Squad" controlPath="squad"></show-error>
</div> </div>
<button id="cancel" <button id="cancel"

View File

@ -1,7 +1,7 @@
import {Component} from '@angular/core'; import {Component} from '@angular/core';
@Component({ @Component({
selector: 'users', selector: 'cc-users',
templateUrl: 'users.component.html', templateUrl: 'users.component.html',
styleUrls: ['users.component.css'] styleUrls: ['users.component.css']
}) })