Ajout du module pour "ngIf ..."
This commit is contained in:
4799
Front/skydivelogs-app/error.txt
Normal file
4799
Front/skydivelogs-app/error.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,7 @@
|
||||
import { Component, OnInit } from "@angular/core";
|
||||
import { Router } from "@angular/router";
|
||||
import { TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { User } from "../models/user";
|
||||
import { CacheApiKey } from "../models/cache-api-key.enum";
|
||||
@@ -14,7 +15,7 @@ import { ServiceCacheApi } from "../services/service-cache-api.service";
|
||||
selector: "app-root",
|
||||
templateUrl: "./app.component.html",
|
||||
styleUrls: ["./app.component.css"],
|
||||
imports: [],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
export class AppComponent implements OnInit {
|
||||
public title = "app";
|
||||
|
||||
@@ -2,6 +2,7 @@ import { Component, OnInit } from "@angular/core";
|
||||
import { Router, ActivatedRoute } from "@angular/router";
|
||||
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { first } from "rxjs/operators";
|
||||
|
||||
@@ -12,7 +13,7 @@ import { User } from "../../models/user";
|
||||
selector: "app-create-user",
|
||||
templateUrl: "./create-user.component.html",
|
||||
styleUrls: ["./create-user.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class CreateUserComponent implements OnInit {
|
||||
createForm: FormGroup;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { Component, Inject, OnInit } from "@angular/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { MAT_DIALOG_DATA } from "@angular/material/dialog";
|
||||
|
||||
import { AddAction } from "../../models/add-action.enum";
|
||||
@@ -11,7 +12,7 @@ import { TranslateModule } from "@ngx-translate/core";
|
||||
selector: "app-jump-infos",
|
||||
templateUrl: "./jump-infos.component.html",
|
||||
styleUrls: ["./jump-infos.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class JumpInfosComponent implements OnInit {
|
||||
public editMode: boolean;
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MatPaginator } from "@angular/material/paginator";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { AircraftService } from "../../services/aircraft.service";
|
||||
import { ServiceComm } from "../../services/service-comm.service";
|
||||
@@ -15,7 +16,7 @@ import { AircraftResp } from "../../models/aircraft";
|
||||
selector: "app-list-of-aircrafts",
|
||||
templateUrl: "./list-of-aircrafts.component.html",
|
||||
styleUrls: ["./list-of-aircrafts.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class ListOfAircraftsComponent implements OnInit {
|
||||
public displayedColumns: Array<string> = ["name", "imageData"];
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MatPaginator } from "@angular/material/paginator";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { AddAction } from "../../models/add-action.enum";
|
||||
import { DropZoneResp } from "../../models/dropzone";
|
||||
@@ -15,7 +16,7 @@ import { NewDropZoneComponent } from "../new-drop-zone/new-drop-zone.component";
|
||||
selector: "app-list-of-dzs",
|
||||
templateUrl: "./list-of-dzs.component.html",
|
||||
styleUrls: ["./list-of-dzs.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class ListOfDzsComponent implements OnInit {
|
||||
public displayedColumns: Array<string> = [
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MatPaginator } from "@angular/material/paginator";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { GearService } from "../../services/gear.service";
|
||||
import { ServiceComm } from "../../services/service-comm.service";
|
||||
@@ -14,7 +15,7 @@ import { NewGearComponent } from "../new-gear/new-gear.component";
|
||||
selector: "app-list-of-gears",
|
||||
templateUrl: "./list-of-gears.component.html",
|
||||
styleUrls: ["./list-of-gears.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class ListOfGearsComponent implements OnInit {
|
||||
public displayedColumns: Array<string> = [
|
||||
|
||||
@@ -3,6 +3,7 @@ import { FormGroup, FormControl, Validators } from "@angular/forms";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { MatPaginator } from "@angular/material/paginator";
|
||||
import { trigger, state, style } from "@angular/animations";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { ImageService } from "../../services/image.service";
|
||||
import { ServiceComm } from "../../services/service-comm.service";
|
||||
@@ -22,7 +23,7 @@ import { TranslateModule } from "@ngx-translate/core";
|
||||
state("rot270", style({ transform: "rotate(-270deg)" })),
|
||||
]),
|
||||
],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class ListOfImagesComponent implements OnInit {
|
||||
public displayedColumns: Array<string> = ["comment", "data"];
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MatPaginator } from "@angular/material/paginator";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { AddAction } from "../../models/add-action.enum";
|
||||
import { JumpTypeResp } from "../../models/jumpType";
|
||||
@@ -15,7 +16,7 @@ import { NewJumpTypeComponent } from "../new-jump-type/new-jump-type.component";
|
||||
selector: "app-list-of-jump-types",
|
||||
templateUrl: "./list-of-jump-types.component.html",
|
||||
styleUrls: ["./list-of-jump-types.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class ListOfJumpTypesComponent implements OnInit {
|
||||
public displayedColumns: Array<string> = ["name"];
|
||||
|
||||
@@ -3,6 +3,7 @@ import { MatPaginator, PageEvent } from "@angular/material/paginator";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { MatDialog } from "@angular/material/dialog";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { AddAction } from "../../models/add-action.enum";
|
||||
import { Jump } from "../../models/jump";
|
||||
@@ -15,7 +16,7 @@ import { StatsService } from "../../services/stats.service";
|
||||
selector: "app-list-of-jumps",
|
||||
templateUrl: "./list-of-jumps.component.html",
|
||||
styleUrls: ["./list-of-jumps.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class ListOfJumpsComponent implements OnInit {
|
||||
public displayedColumns: Array<string> = [
|
||||
|
||||
@@ -2,8 +2,11 @@ import { Component, OnInit } from "@angular/core";
|
||||
import { formatDate } from "@angular/common";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { MatTableDataSource } from "@angular/material/table";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { ChartConfiguration, ChartData, ChartType } from "chart.js";
|
||||
import { from, groupBy, mergeMap, reduce, map } from "rxjs";
|
||||
import { BaseChartDirective } from "ng2-charts";
|
||||
|
||||
import { ServiceComm } from "../../services/service-comm.service";
|
||||
import { TunnelFlightService } from "../../services/tunnel-flight.service";
|
||||
@@ -14,7 +17,7 @@ import { TunnelFlight, TunnelFlightByMonth } from "../../models/tunnel-flight";
|
||||
selector: "app-list-of-tunnel-flights",
|
||||
templateUrl: "./list-of-tunnel-flights.component.html",
|
||||
styleUrls: ["./list-of-tunnel-flights.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, BaseChartDirective, CommonModule],
|
||||
})
|
||||
export class ListOfTunnelFlightsComponent implements OnInit {
|
||||
public barChartLegend = true;
|
||||
|
||||
@@ -2,6 +2,7 @@ import { Component, OnInit, ViewChild, AfterViewInit } from "@angular/core";
|
||||
import { Router, ActivatedRoute } from "@angular/router";
|
||||
import { FormBuilder, FormGroup, Validators } from "@angular/forms";
|
||||
import { MatInput } from "@angular/material/input";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { first } from "rxjs/operators";
|
||||
|
||||
@@ -12,7 +13,7 @@ import { TranslateModule } from "@ngx-translate/core";
|
||||
selector: "app-login-user",
|
||||
templateUrl: "./login-user.component.html",
|
||||
styleUrls: ["./login-user.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class LoginUserComponent implements OnInit, AfterViewInit {
|
||||
loginForm: FormGroup;
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
import { Component, OnInit } from "@angular/core";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
@Component({
|
||||
selector: "app-login",
|
||||
templateUrl: "./login.component.html",
|
||||
styleUrls: ["./login.component.css"],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class LoginComponent implements OnInit {
|
||||
public selectedLanguageFlag: string;
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
NativeDateAdapter,
|
||||
} from "@angular/material/core";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { JumpTypeResp } from "../../models/jumpType";
|
||||
import { AircraftResp } from "../../models/aircraft";
|
||||
@@ -44,7 +45,7 @@ class PickDateAdapter extends NativeDateAdapter {
|
||||
{ provide: DateAdapter, useClass: PickDateAdapter },
|
||||
{ provide: MAT_DATE_FORMATS, useValue: PICK_FORMATS },
|
||||
],
|
||||
imports: [TranslateModule],
|
||||
imports: [TranslateModule, CommonModule],
|
||||
})
|
||||
export class NewJumpComponent implements OnInit {
|
||||
public beginDate: Date;
|
||||
|
||||
@@ -6,6 +6,7 @@ import {
|
||||
NativeDateAdapter,
|
||||
} from "@angular/material/core";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { CommonModule } from "@angular/common";
|
||||
|
||||
import { TunnelResp } from "../../models/tunnel";
|
||||
|
||||
@@ -40,7 +41,7 @@ class PickDateAdapter extends NativeDateAdapter {
|
||||
{ provide: DateAdapter, useClass: PickDateAdapter },
|
||||
{ provide: MAT_DATE_FORMATS, useValue: PICK_FORMATS },
|
||||
],
|
||||
imports: [MatAutocompleteModule, TranslateModule],
|
||||
imports: [MatAutocompleteModule, TranslateModule, CommonModule],
|
||||
})
|
||||
export class NewTunnelFlightComponent implements OnInit {
|
||||
public flightDate: Date;
|
||||
|
||||
@@ -4,6 +4,7 @@ import { MatTabChangeEvent, MatTabGroup } from "@angular/material/tabs";
|
||||
import { TranslateModule, TranslateService } from "@ngx-translate/core";
|
||||
import { DatePipe } from "@angular/common";
|
||||
import { ChartConfiguration, ChartData, ChartType } from "chart.js";
|
||||
import { BaseChartDirective } from "ng2-charts";
|
||||
import { MatTabsModule } from "@angular/material/tabs";
|
||||
|
||||
import { ServiceComm } from "../../services/service-comm.service";
|
||||
@@ -20,7 +21,7 @@ import {
|
||||
selector: "app-summary",
|
||||
templateUrl: "./summary.component.html",
|
||||
styleUrls: ["./summary.component.css"],
|
||||
imports: [MatTabsModule, TranslateModule],
|
||||
imports: [MatTabsModule, TranslateModule, BaseChartDirective],
|
||||
})
|
||||
export class SummaryComponent implements OnInit {
|
||||
public dsNbJumpByDz: MatTableDataSource<StatsByDzResp>;
|
||||
|
||||
Reference in New Issue
Block a user