Début de la page d'ajout de sauts
This commit is contained in:
@@ -15,8 +15,8 @@ import { ListOfJumpTypesComponent } from './list-of-jump-types/list-of-jump-type
|
|||||||
import { ServiceApi } from '../services/serviceApi';
|
import { ServiceApi } from '../services/serviceApi';
|
||||||
import { ServiceComm } from '../services/serviceComm';
|
import { ServiceComm } from '../services/serviceComm';
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import { MatPaginatorModule } from '@angular/material/paginator';
|
import { MatPaginatorModule, MatTableModule, MatSelectModule, MatOptionModule, MatFormFieldModule } from '@angular/material';
|
||||||
import { MatTableModule } from '@angular/material/table';
|
|
||||||
|
|
||||||
|
|
||||||
const appRoutes: Routes = [
|
const appRoutes: Routes = [
|
||||||
@@ -45,9 +45,7 @@ const appRoutes: Routes = [
|
|||||||
{ enableTracing: true } // <-- debugging purposes only
|
{ enableTracing: true } // <-- debugging purposes only
|
||||||
),
|
),
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule, MatPaginatorModule, MatTableModule, MatSelectModule, MatOptionModule, MatFormFieldModule
|
||||||
MatPaginatorModule,
|
|
||||||
MatTableModule
|
|
||||||
],
|
],
|
||||||
exports: [HttpClientModule],
|
exports: [HttpClientModule],
|
||||||
providers: [ServiceApi, ServiceComm],
|
providers: [ServiceApi, ServiceComm],
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
|
|
||||||
import { DropZoneResp } from 'src/models/dropzone';
|
import { DropZoneResp } from '../../models/dropzone';
|
||||||
import { ServiceApi } from 'src/services/serviceApi';
|
import { ServiceApi } from '../../services/serviceApi';
|
||||||
import { ServiceComm } from 'src/services/serviceComm';
|
import { ServiceComm } from '../../services/serviceComm';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-list-of-dzs',
|
selector: 'app-list-of-dzs',
|
||||||
|
|||||||
@@ -2,9 +2,9 @@ import { Component, OnInit, ViewChild } from '@angular/core';
|
|||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
|
|
||||||
import { JumpTypeResp } from 'src/models/jumpType';
|
import { JumpTypeResp } from '../../models/jumpType';
|
||||||
import { ServiceApi } from 'src/services/serviceApi';
|
import { ServiceApi } from '../../services/serviceApi';
|
||||||
import { ServiceComm } from 'src/services/serviceComm';
|
import { ServiceComm } from '../../services/serviceComm';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-list-of-jump-types',
|
selector: 'app-list-of-jump-types',
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ import { MatPaginator } from '@angular/material/paginator';
|
|||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
|
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { JumpResp } from 'src/models/jump';
|
import { JumpResp } from '../../models/jump';
|
||||||
import { ServiceApi } from 'src/services/serviceApi';
|
import { ServiceApi } from '../../services/serviceApi';
|
||||||
import { ServiceComm } from 'src/services/serviceComm';
|
import { ServiceComm } from '../../services/serviceComm';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
.example-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.example-container>* {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,20 @@
|
|||||||
<p>
|
<div class="example-container">
|
||||||
new-jump works!
|
<h4>Basic native select</h4>
|
||||||
</p>
|
<mat-form-field>
|
||||||
|
<mat-label>Choose the jump type</mat-label>
|
||||||
|
<mat-select>
|
||||||
|
<mat-option value="option1">Option 1</mat-option>
|
||||||
|
<mat-option value="option2" disabled>Option 2 (disabled)</mat-option>
|
||||||
|
<mat-option value="option3">Option 3</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
|
|
||||||
|
<h4>Basic native select</h4>
|
||||||
|
<mat-form-field>
|
||||||
|
<mat-label>Choose the aircraft</mat-label>
|
||||||
|
<mat-select>
|
||||||
|
<mat-option value="option1">Option 1</mat-option>
|
||||||
|
<mat-option value="option2">Option 2</mat-option>
|
||||||
|
</mat-select>
|
||||||
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
|
|||||||
@@ -1,17 +1,15 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from "@angular/core";
|
||||||
import { ServiceComm } from 'src/services/serviceComm';
|
import { ServiceComm } from "../../services/serviceComm";
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-new-jump',
|
selector: "app-new-jump",
|
||||||
templateUrl: './new-jump.component.html',
|
templateUrl: "./new-jump.component.html",
|
||||||
styleUrls: ['./new-jump.component.css']
|
styleUrls: ["./new-jump.component.css"]
|
||||||
})
|
})
|
||||||
export class NewJumpComponent implements OnInit {
|
export class NewJumpComponent implements OnInit {
|
||||||
|
|
||||||
constructor(private serviceComm: ServiceComm) {}
|
constructor(private serviceComm: ServiceComm) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.serviceComm.updatedComponentTitle('Add a new jump');
|
this.serviceComm.updatedComponentTitle("Add a new jump");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,23 +2,20 @@
|
|||||||
<label>Total jumps</label>
|
<label>Total jumps</label>
|
||||||
Total Total
|
Total Total
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<div>
|
||||||
<label>By DZ</label>
|
<label>By DZ</label>
|
||||||
<table mat-table [dataSource]="dsNbJumpByDz">
|
<table mat-table [dataSource]="dsNbJumpByDz">
|
||||||
<ng-container matColumnDef="label">
|
<ng-container matColumnDef="label">
|
||||||
<!-- <th mat-header-cell *matHeaderCellDef>DZ</th> -->
|
|
||||||
<td mat-cell *matCellDef="let element">{{element.label}}</td>
|
<td mat-cell *matCellDef="let element">{{element.label}}</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="nb">
|
<ng-container matColumnDef="nb">
|
||||||
<!-- <th mat-header-cell *matHeaderCellDef>Nb</th> -->
|
|
||||||
<td mat-cell *matCellDef="let element">{{element.nb}}</td>
|
<td mat-cell *matCellDef="let element">{{element.nb}}</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<!-- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> -->
|
|
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div>
|
||||||
<label>By aircraft</label>
|
<label>By aircraft</label>
|
||||||
<table mat-table [dataSource]="dsNbJumpByAircraft">
|
<table mat-table [dataSource]="dsNbJumpByAircraft">
|
||||||
<ng-container matColumnDef="label">
|
<ng-container matColumnDef="label">
|
||||||
@@ -30,9 +27,9 @@
|
|||||||
|
|
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div>
|
||||||
<label>By RIG</label>
|
<label>By Rig</label>
|
||||||
<table mat-table [dataSource]="dsNbJumpByRig">
|
<table mat-table [dataSource]="dsNbJumpByRig">
|
||||||
<ng-container matColumnDef="label">
|
<ng-container matColumnDef="label">
|
||||||
<td mat-cell *matCellDef="let element">{{element.label}}</td>
|
<td mat-cell *matCellDef="let element">{{element.label}}</td>
|
||||||
@@ -43,8 +40,8 @@
|
|||||||
|
|
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div>
|
||||||
<label>By jump type</label>
|
<label>By jump type</label>
|
||||||
<table mat-table [dataSource]="dsNbJumpByType">
|
<table mat-table [dataSource]="dsNbJumpByType">
|
||||||
<ng-container matColumnDef="label">
|
<ng-container matColumnDef="label">
|
||||||
@@ -56,9 +53,9 @@
|
|||||||
|
|
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</div>
|
||||||
<p>
|
<div>
|
||||||
By year
|
<label>By year</label>
|
||||||
<table mat-table [dataSource]="dsNbJumpByYear">
|
<table mat-table [dataSource]="dsNbJumpByYear">
|
||||||
<ng-container matColumnDef="label">
|
<ng-container matColumnDef="label">
|
||||||
<td mat-cell *matCellDef="let element">{{element.label}}</td>
|
<td mat-cell *matCellDef="let element">{{element.label}}</td>
|
||||||
@@ -69,7 +66,7 @@
|
|||||||
|
|
||||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||||
</table>
|
</table>
|
||||||
</p>
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<label>Total cutaways</label>
|
<label>Total cutaways</label>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ServiceComm } from 'src/services/serviceComm';
|
import { ServiceComm } from '../../services/serviceComm';
|
||||||
import { ServiceApi } from 'src/services/serviceApi';
|
import { ServiceApi } from '../../services/serviceApi';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-summary',
|
selector: 'app-summary',
|
||||||
|
|||||||
@@ -3,11 +3,11 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { map } from 'rxjs/operators';
|
import { map } from 'rxjs/operators';
|
||||||
|
|
||||||
import { DropZoneResp } from 'src/models/dropzone';
|
import { DropZoneResp } from '../models/dropzone';
|
||||||
import { JumpResp } from 'src/models/jump';
|
import { JumpResp } from '../models/jump';
|
||||||
import { AircraftResp } from 'src/models/aircraft';
|
import { AircraftResp } from '../models/aircraft';
|
||||||
import { JumpTypeResp } from 'src/models/jumpType';
|
import { JumpTypeResp } from '../models/jumpType';
|
||||||
import { StatsResp, StatsByDzResp, StatsByAircraftResp, StatsByJumpTypeResp, StatsByRigResp, StatsByYearResp } from 'src/models/statsresp';
|
import { StatsResp, StatsByDzResp, StatsByAircraftResp, StatsByJumpTypeResp, StatsByRigResp, StatsByYearResp } from '../models/statsresp';
|
||||||
|
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
|||||||
Reference in New Issue
Block a user