Compare commits

..

No commits in common. "19248f38a0f7a8cda5a55b50ff8f7d84d56ea969" and "e8f8936b5e50ca72a462ee95f091f8e2b6ffebbc" have entirely different histories.

6 changed files with 15 additions and 44 deletions

24
api/package-lock.json generated
View File

@ -2239,9 +2239,9 @@
} }
}, },
"kareem": { "kareem": {
"version": "1.5.0", "version": "1.4.1",
"resolved": "https://registry.npmjs.org/kareem/-/kareem-1.5.0.tgz", "resolved": "https://registry.npmjs.org/kareem/-/kareem-1.4.1.tgz",
"integrity": "sha1-4+QQHZ3P3imXadr0tNtk2JXRdEg=" "integrity": "sha1-7XYgAET6BB7zK02oJh4lU/EXNTE="
}, },
"kind-of": { "kind-of": {
"version": "3.2.2", "version": "3.2.2",
@ -2800,20 +2800,20 @@
} }
}, },
"mongoose": { "mongoose": {
"version": "4.11.4", "version": "4.11.1",
"resolved": "https://registry.npmjs.org/mongoose/-/mongoose-4.11.4.tgz", "resolved": "https://registry.npmjs.org/mongoose/-/mongoose-4.11.1.tgz",
"integrity": "sha1-PXQREQXui2GescHXkOe/xOjLp7s=", "integrity": "sha1-JWC22J50SwWFfQJMq4sxYGZxbj4=",
"requires": { "requires": {
"async": "2.1.4", "async": "2.1.4",
"bson": "1.0.4", "bson": "1.0.4",
"hooks-fixed": "2.0.0", "hooks-fixed": "2.0.0",
"kareem": "1.5.0", "kareem": "1.4.1",
"mongodb": "2.2.27", "mongodb": "2.2.27",
"mpath": "0.3.0", "mpath": "0.3.0",
"mpromise": "0.5.5", "mpromise": "0.5.5",
"mquery": "2.3.1", "mquery": "2.3.1",
"ms": "2.0.0", "ms": "2.0.0",
"muri": "1.2.2", "muri": "1.2.1",
"regexp-clone": "0.0.1", "regexp-clone": "0.0.1",
"sliced": "1.0.1" "sliced": "1.0.1"
}, },
@ -2953,9 +2953,9 @@
} }
}, },
"muri": { "muri": {
"version": "1.2.2", "version": "1.2.1",
"resolved": "https://registry.npmjs.org/muri/-/muri-1.2.2.tgz", "resolved": "https://registry.npmjs.org/muri/-/muri-1.2.1.tgz",
"integrity": "sha1-YxmBMmUNsIoEzHnM0A3Tia/SYxw=" "integrity": "sha1-7H6lzmympSPrGrNbrNpfqBbJqjw="
}, },
"negotiator": { "negotiator": {
"version": "0.5.3", "version": "0.5.3",
@ -3641,7 +3641,7 @@
"require_optional": { "require_optional": {
"version": "1.0.1", "version": "1.0.1",
"resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz", "resolved": "https://registry.npmjs.org/require_optional/-/require_optional-1.0.1.tgz",
"integrity": "sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g==", "integrity": "sha1-TPNaQkf2TKPfjC7yCMxJSxyo/C4=",
"requires": { "requires": {
"resolve-from": "2.0.0", "resolve-from": "2.0.0",
"semver": "5.3.0" "semver": "5.3.0"

View File

@ -24,7 +24,7 @@
"jsonwebtoken": "^7.4.0", "jsonwebtoken": "^7.4.0",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
"mongoose": "^4.11.4", "mongoose": "^4.11.1",
"morgan": "~1.6.1", "morgan": "~1.6.1",
"multer": "^1.3.0", "multer": "^1.3.0",
"node-sha1": "^1.0.1", "node-sha1": "^1.0.1",

View File

@ -40,6 +40,7 @@
"devDependencies": { "devDependencies": {
"@types/jasmine": "2.5.38", "@types/jasmine": "2.5.38",
"@types/node": "~6.0.60", "@types/node": "~6.0.60",
"@types/socket.io-client": "^1.4.26",
"codelyzer": "~2.0.0-beta.1", "codelyzer": "~2.0.0-beta.1",
"jasmine-core": "^2.5.2", "jasmine-core": "^2.5.2",
"jasmine-spec-reporter": "^3.2.0", "jasmine-spec-reporter": "^3.2.0",

View File

@ -33,8 +33,6 @@ export interface War {
date?: string; date?: string;
ptBlufor?: number; ptBlufor?: number;
ptOpfor?: number; ptOpfor?: number;
playersBlufor?: number;
playersOpfor?: number;
bestPlayerId?: Player; bestPlayerId?: Player;
players: Player[]; players: Player[];
} }

View File

@ -9,22 +9,7 @@
<span class="text-opfor" style="font-weight: bold; margin-left: 10px;">{{war.ptOpfor}} CSAT</span> <span class="text-opfor" style="font-weight: bold; margin-left: 10px;">{{war.ptOpfor}} CSAT</span>
</h3> </h3>
<h3 class="pull-left" style="padding-left: 10%;"> <div style="margin-left: 500px; margin-top:1%">
<h4>Teilnehmer:</h4>
<ngx-charts-pie-chart
[view]="[150, 150]"
[scheme]="{domain: ['#B22222', '#0000FF']}"
[results]="playerChart"
[legend]="false"
[explodeSlices]="false"
[labels]="false"
[doughnut]="false"
[gradient]="false"
(select)="onSelect($event)">
</ngx-charts-pie-chart>
</h3>
<div style="margin-left: 600px; margin-top:1%">
<a class="btn btn-default" style="margin: 20px" target="_blank" href="resource/logs/{{war._id}}/clean.log">Logfile <a class="btn btn-default" style="margin: 20px" target="_blank" href="resource/logs/{{war._id}}/clean.log">Logfile
anzeigen</a> anzeigen</a>
<button *ngIf="loginService.hasPermission(3)" class="btn btn-warning" style="margin: 20px" (click)="delete()"> <button *ngIf="loginService.hasPermission(3)" class="btn btn-warning" style="margin: 20px" (click)="delete()">

View File

@ -22,13 +22,10 @@ export class WarDetailComponent {
sortOrder = "desc"; sortOrder = "desc";
playerChart: any[] = [];
constructor(private router: Router, constructor(private router: Router,
private route: ActivatedRoute, private route: ActivatedRoute,
private warService: WarService, private warService: WarService,
private loginService: LoginService) { private loginService: LoginService) {
Object.assign(this, this.playerChart)
} }
ngOnInit() { ngOnInit() {
@ -39,16 +36,6 @@ export class WarDetailComponent {
.subscribe(war => { .subscribe(war => {
this.war = war; this.war = war;
this.players = war.players; this.players = war.players;
this.playerChart = [
{
"name": "CSAT",
"value": war.playersOpfor
},
{
"name": "NATO",
"value": war.playersBlufor
}
];
}); });
} }