Merge branch 'release/v1.8.5' of hardi/opt-cc into master

pull/49/head v1.8.5
hardi 2019-02-02 12:51:12 +01:00 committed by Gogs
commit 98cfc802b6
6 changed files with 1731 additions and 1523 deletions

View File

@ -1,7 +1,7 @@
# Operation Pandora Trigger Commandcenter
A [MEAN Application](http://mean.io/) created for [operation-pandora.com](https://www.operation-pandora.com) Arma3 Community
A [MEAN Stack](http://mean.io/) application created for [https://www.opt4.net](https://www.opt4.net) Arma3 Community
## Installation

View File

@ -1,6 +1,6 @@
{
"name": "opt-cc",
"version": "1.8.4",
"version": "1.8.5",
"author": "Florian Hartwich <hardi@noarch.de>",
"private": true,
"scripts": {

3121
static/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -15,24 +15,24 @@
"e2e": "ng e2e --serve=false"
},
"dependencies": {
"@angular/animations": "^6.0.7",
"@angular/cdk": "^6.0.7",
"@angular/cli": "^6.0.7",
"@angular/common": "^6.0.7",
"@angular/compiler": "^6.0.7",
"@angular/compiler-cli": "^6.0.7",
"@angular/core": "^6.0.7",
"@angular/forms": "^6.0.7",
"@angular/http": "^6.0.7",
"@angular/material": "^6.0.7",
"@angular/platform-browser": "^6.0.7",
"@angular/platform-browser-dynamic": "^6.0.7",
"@angular/router": "^6.0.7",
"@angular/animations": "^6.1.10",
"@angular/cdk": "^6.1.10",
"@angular/cli": "^6.1.10",
"@angular/common": "^6.1.10",
"@angular/compiler": "^6.1.10",
"@angular/compiler-cli": "^6.1.10",
"@angular/core": "^6.1.10",
"@angular/forms": "^6.1.10",
"@angular/http": "^6.1.10",
"@angular/material": "^6.1.10",
"@angular/platform-browser": "^6.1.10",
"@angular/platform-browser-dynamic": "^6.1.10",
"@angular/router": "^6.1.10",
"@ngx-translate/core": "^10.0.2",
"@ngx-translate/http-loader": "^3.0.1",
"@swimlane/ngx-charts": "^9.0.0",
"@swimlane/ngx-charts": "^9.1.1",
"bootstrap": "^3.3.7",
"d3": "^5.7.0",
"d3": "^4.10.2",
"file-saver": "^1.3.8",
"jquery": "^3.1.0",
"jquery-ui": "^1.12.0",

View File

@ -1,65 +1,34 @@
.scoreboard-table {
height: 60vh;
width: fit-content;
border: 1px solid #dadada;
overflow-x: auto;
margin: 56px auto auto;
width: 1058px;
margin: auto;
height: 68vh;
overflow-x: hidden;
overflow-y: auto;
box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
border-bottom: 1px solid #dadada;
}
:host /deep/ table.mat-table > thead {
position: absolute;
width: 977px;
display: inherit;
margin-left: -1px;
margin-top: -57px;
border: 1px solid #dadada;
.mat-header-row {
width: 1058px;
position: fixed;
z-index: 100;
}
:host /deep/ table.mat-table > tbody {
margin-top: 0 !important;
}
.in-table-btn {
position: absolute;
margin-top: -5px;
}
:host /deep/ table.mat-table > tbody {
margin-top: 60px;
display: block;
.mat-table > mat-row:first-of-type {
padding-top: 56px;
}
.mat-column-name {
width: 200px;
flex: 0 0 220px;
}
.mat-column-fraction {
width: 90px;
flex: 0 0 90px;
}
.mat-column-kill, .mat-column-friendlyFire, .mat-column-revive, .mat-column-flagTouch, .mat-column-vehicleLight,
.mat-column-vehicleHeavy, .mat-column-vehicleAir, .mat-column-death, .mat-column-respawn, .mat-column-interact {
width: 67px;
text-indent: 9px;
}
.mat-column-vehicleLight mat-icon.mat-icon {
width: 28px;
margin-bottom: 5px;
}
.mat-column-vehicleHeavy mat-icon.mat-icon {
width: 33px;
margin-top: 5px;
}
.mat-column-vehicleAir mat-icon.mat-icon {
width: 35px;
margin-bottom: 5px;
}
td.mat-cell:last-child, td.mat-footer-cell:last-child, th.mat-header-cell:last-child {
padding-right: 0;
flex: 0 0 75px;
}
:host /deep/ .mat-table .mat-icon {

View File

@ -1,47 +1,45 @@
<div class="fade-in scoreboard-table">
<table mat-table matSort
<mat-table matSort
[dataSource]="sortedRows"
matSortActive="{{tableHead[2].prop}}" matSortDirection="asc" matSortDisableClear
(matSortChange)="sortScoreboardData($event)"
class="mat-elevation-z8">
<ng-container matColumnDef="{{tableHead[0].prop}}">
<th mat-header-cell *matHeaderCellDef mat-sort-header="{{tableHead[0].prop}}">{{tableHead[0].head | translate}}</th>
<td mat-cell *matCellDef="let element"
<mat-header-cell *matHeaderCellDef mat-sort-header="{{tableHead[0].prop}}">{{tableHead[0].head | translate}}</mat-header-cell>
<mat-cell *matCellDef="let element"
[style.color]="element['fraction'] === 'BLUFOR' ? fraction.COLOR_BLUFOR : fraction.COLOR_OPFOR">
{{element.name}}
</td>
</mat-cell>
</ng-container>
<ng-container matColumnDef="{{tableHead[1].prop}}">
<th mat-header-cell *matHeaderCellDef mat-sort-header="{{tableHead[1].prop}}">{{tableHead[1].head | translate}}</th>
<td mat-cell *matCellDef="let element">{{element.fraction === 'BLUFOR' ? fraction.BLUFOR : fraction.OPFOR}}</td>
<mat-header-cell *matHeaderCellDef mat-sort-header="{{tableHead[1].prop}}">{{tableHead[1].head | translate}}</mat-header-cell>
<mat-cell *matCellDef="let element">{{element.fraction === 'BLUFOR' ? fraction.BLUFOR : fraction.OPFOR}}</mat-cell>
</ng-container>
<ng-container *ngFor="let column of tableHead.slice(2, tableHead.length)" matColumnDef="{{column.prop}}">
<th mat-header-cell *matHeaderCellDef mat-sort-header="{{column.prop}}">
<mat-icon svgIcon="{{column.prop}}"
matTooltip="{{column.head | translate}}">
<mat-header-cell *matHeaderCellDef mat-sort-header="{{column.prop}}" matTooltip="{{column.head | translate}}">
<mat-icon svgIcon="{{column.prop}}">
</mat-icon>
</th>
<td mat-cell *matCellDef="let element">{{element[column.prop]}}</td>
</mat-header-cell>
<mat-cell *matCellDef="let element">{{element[column.prop]}}</mat-cell>
</ng-container>
<ng-container matColumnDef="interact">
<th mat-header-cell *matHeaderCellDef></th>
<td mat-cell *matCellDef="let element">
<mat-header-cell *matHeaderCellDef></mat-header-cell>
<mat-cell *matCellDef="let element">
<button mat-icon-button
matTooltip="{{ 'stats.scoreboard.button.detail' | translate:{name: element.name} }}"
(click)="selectPlayerDetail(1, isSteamUUID(element['steamUUID']) ?
element['steamUUID'] : element['name'])">
<mat-icon svgIcon="stats-detail">
</mat-icon>
<mat-icon svgIcon="stats-detail"></mat-icon>
</button>
</td>
</mat-cell>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
</mat-table>
</div>