Compare commits
No commits in common. "c4a876bbdaf3af821e8b26448ae85bf42af27d90" and "f764bd52d50c7f9970f58a15215c829371a0ccc7" have entirely different histories.
c4a876bbda
...
f764bd52d5
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "opt-cc",
|
"name": "opt-cc",
|
||||||
"version": "1.7.1",
|
"version": "1.7.0",
|
||||||
"author": "Florian Hartwich <hardi@noarch.de>",
|
"author": "Florian Hartwich <hardi@noarch.de>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -42,15 +42,12 @@
|
||||||
},
|
},
|
||||||
"lint": [
|
"lint": [
|
||||||
{
|
{
|
||||||
"files": "src/**/*.ts",
|
|
||||||
"project": "src/tsconfig.app.json"
|
"project": "src/tsconfig.app.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": "src/**/*.ts",
|
|
||||||
"project": "src/tsconfig.spec.json"
|
"project": "src/tsconfig.spec.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": "src/**/*.ts",
|
|
||||||
"project": "e2e/tsconfig.e2e.json"
|
"project": "e2e/tsconfig.e2e.json"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {CSSHelpers} from '../global.helpers';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'cc-army',
|
selector: 'army',
|
||||||
templateUrl: './army.component.html',
|
templateUrl: './army.component.html',
|
||||||
styleUrls: ['./army.component.css']
|
styleUrls: ['./army.component.css']
|
||||||
})
|
})
|
||||||
|
|
|
@ -12,9 +12,9 @@ import {FormGroup, NgForm} from '@angular/forms';
|
||||||
})
|
})
|
||||||
export class ShowErrorComponent {
|
export class ShowErrorComponent {
|
||||||
|
|
||||||
@Input('controlPath') controlPath;
|
@Input('path') controlPath;
|
||||||
|
|
||||||
@Input('displayName') displayName = '';
|
@Input('text') displayName = '';
|
||||||
|
|
||||||
private form: FormGroup;
|
private form: FormGroup;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'cc-decorations',
|
selector: 'decorations',
|
||||||
templateUrl: './decoration.component.html',
|
templateUrl: './decoration.component.html',
|
||||||
styleUrls: ['./decoration.component.css']
|
styleUrls: ['./decoration.component.css']
|
||||||
})
|
})
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
name="title"
|
name="title"
|
||||||
id="title"
|
id="title"
|
||||||
required maxlength="50"/>
|
required maxlength="50"/>
|
||||||
<show-error displayName="Name" controlPath="title"></show-error>
|
<show-error text="Name" path="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 displayName="Fraktion" controlPath="fraction"></show-error>
|
<show-error text="Fraktion" path="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 displayName="Art" controlPath="type"></show-error>
|
<show-error text="Art" path="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 displayName="Sortierung" controlPath="sort"></show-error>
|
<show-error text="Sortierung" path="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 displayName="Beschreibung" controlPath="description"></show-error>
|
<show-error text="Beschreibung" path="description"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
id="title"
|
id="title"
|
||||||
required maxlength="50"/>
|
required maxlength="50"/>
|
||||||
|
|
||||||
<show-error displayName="Name" controlPath="title"></show-error>
|
<show-error text="Name" path="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 displayName="Fraktion" controlPath="fraction"></show-error>
|
<show-error text="Fraktion" path="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 displayName="Stufe" controlPath="level"></show-error>
|
<show-error text="Stufe" path="level"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'cc-ranks',
|
selector: 'ranks',
|
||||||
templateUrl: './ranks.component.html',
|
templateUrl: './ranks.component.html',
|
||||||
styleUrls: ['./ranks.component.css']
|
styleUrls: ['./ranks.component.css']
|
||||||
})
|
})
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'cc-request',
|
selector: 'request',
|
||||||
templateUrl: 'request.component.html',
|
templateUrl: 'request.component.html',
|
||||||
styleUrls: ['request.component.css']
|
styleUrls: ['request.component.css']
|
||||||
})
|
})
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
id="title"
|
id="title"
|
||||||
required maxlength="50"/>
|
required maxlength="50"/>
|
||||||
|
|
||||||
<show-error displayName="Name" controlPath="title"></show-error>
|
<show-error text="Name" path="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 displayName="Fraktion" controlPath="fraction"></show-error>
|
<show-error text="Fraktion" path="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 displayName="Sortierung" controlPath="sort"></show-error>
|
<show-error text="Sortierung" path="sort"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'cc-users',
|
selector: 'users',
|
||||||
templateUrl: './squads.component.html',
|
templateUrl: './squads.component.html',
|
||||||
styleUrls: ['./squads.component.css']
|
styleUrls: ['./squads.component.css']
|
||||||
})
|
})
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
id="title"
|
id="title"
|
||||||
required maxlength="50"/>
|
required maxlength="50"/>
|
||||||
|
|
||||||
<show-error displayName="Name" controlPath="title"></show-error>
|
<show-error text="Name" path="title"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="cancel"
|
<button id="cancel"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'cc-stats',
|
selector: 'stats',
|
||||||
templateUrl: './stats.component.html',
|
templateUrl: './stats.component.html',
|
||||||
styleUrls: ['./stats.component.css']
|
styleUrls: ['./stats.component.css']
|
||||||
})
|
})
|
||||||
|
|
|
@ -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: 'cc-scoreboard',
|
selector: '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']
|
||||||
})
|
})
|
||||||
|
|
|
@ -64,12 +64,12 @@
|
||||||
|
|
||||||
<!--Sub-Components (=TABS)-->
|
<!--Sub-Components (=TABS)-->
|
||||||
<div *ngIf="war">
|
<div *ngIf="war">
|
||||||
<cc-scoreboard
|
<scoreboard
|
||||||
*ngIf="tab === 0"
|
*ngIf="tab === 0"
|
||||||
[war]="war"
|
[war]="war"
|
||||||
[fractionFilterSelected]="fractionFilterSelected"
|
[fractionFilterSelected]="fractionFilterSelected"
|
||||||
(playerTabSwitch)="switchToPlayerTab($event)">
|
(playerTabSwitch)="switchToPlayerTab($event)">
|
||||||
</cc-scoreboard>
|
</scoreboard>
|
||||||
<war-detail-fraction
|
<war-detail-fraction
|
||||||
*ngIf="tab === 1 && logData"
|
*ngIf="tab === 1 && logData"
|
||||||
[war]="war"
|
[war]="war"
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
id="title"
|
id="title"
|
||||||
required maxlength="50"/>
|
required maxlength="50"/>
|
||||||
|
|
||||||
<show-error displayName="Name" controlPath="title"></show-error>
|
<show-error text="Name" path="title"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<show-error displayName="Auszeichnung" controlPath="decoration"></show-error>
|
<show-error text="Auszeichnung" path="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 displayName="Begründung" controlPath="reason"></show-error>
|
<show-error text="Begründung" path="reason"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
required
|
required
|
||||||
maxlength="50"/>
|
maxlength="50"/>
|
||||||
|
|
||||||
<show-error displayName="Name" controlPath="title"></show-error>
|
<show-error text="Name" path="title"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<show-error displayName="Squad" controlPath="squad"></show-error>
|
<show-error text="Squad" path="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 displayName="Squad" controlPath="squad"></show-error>
|
<show-error text="Squad" path="squad"></show-error>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button id="cancel"
|
<button id="cancel"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'cc-users',
|
selector: 'users',
|
||||||
templateUrl: 'users.component.html',
|
templateUrl: 'users.component.html',
|
||||||
styleUrls: ['users.component.css']
|
styleUrls: ['users.component.css']
|
||||||
})
|
})
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
"component-selector": [
|
"component-selector": [
|
||||||
true,
|
true,
|
||||||
"element",
|
"element",
|
||||||
"",
|
"cc",
|
||||||
"kebab-case"
|
"kebab-case"
|
||||||
],
|
],
|
||||||
"use-input-property-decorator": true,
|
"use-input-property-decorator": true,
|
||||||
|
|
Loading…
Reference in New Issue