Add a component on the flights in tunnel
This commit is contained in:
@@ -134,8 +134,7 @@
|
||||
},
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"prefix": "app",
|
||||
"styleext": "css"
|
||||
"prefix": "app"
|
||||
},
|
||||
"@schematics/angular:directive": {
|
||||
"prefix": "app"
|
||||
|
||||
@@ -31,6 +31,11 @@
|
||||
<a routerLink="/newjump" routerLinkActive="active" (click)="snav.toggle()" skipLocationChange>{{ 'App_Nav_NewJump' | translate }}</a>
|
||||
<hr class="splitter">
|
||||
</mat-nav-list>
|
||||
<mat-nav-list>
|
||||
<mat-icon aria-hidden="false" aria-label="Add flights in tunnel">add_circle</mat-icon>
|
||||
<a routerLink="/newTunnelFlight" routerLinkActive="active" (click)="snav.toggle()" skipLocationChange>{{ 'App_Nav_NewTunnelFlight' | translate }}</a>
|
||||
<hr class="splitter">
|
||||
</mat-nav-list>
|
||||
<mat-nav-list>
|
||||
<mat-icon aria-hidden="false" aria-label="Dropzones">store</mat-icon>
|
||||
<a routerLink="/dzs" routerLinkActive="active" (click)="snav.toggle()" skipLocationChange>{{ 'App_Nav_Dzs' | translate }}</a>
|
||||
|
||||
@@ -67,6 +67,7 @@ import { ErrorInterceptor } from "../interceptor/error.interceptor";
|
||||
import { UserProfileComponent } from "./user-profile/user-profile.component";
|
||||
import { ListOfImagesComponent } from "./list-of-images/list-of-images.component";
|
||||
import { JumpInfosComponent } from './jump-infos/jump-infos.component';
|
||||
import { NewTunnelFlightComponent } from './new-tunnel-flight/new-tunnel-flight.component';
|
||||
|
||||
const appRoutes: Routes = [
|
||||
{ path: "", component: DefaultComponent, canActivate: [AuthGuardService] },
|
||||
@@ -110,6 +111,11 @@ const appRoutes: Routes = [
|
||||
component: UserProfileComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
},
|
||||
{
|
||||
path: "newTunnelFlight",
|
||||
component: NewTunnelFlightComponent,
|
||||
canActivate: [AuthGuardService]
|
||||
},
|
||||
{ path: "login", component: LoginComponent },
|
||||
];
|
||||
|
||||
@@ -144,6 +150,7 @@ export function initConfig(configService: ConfigurationHelper) {
|
||||
UserProfileComponent,
|
||||
ListOfImagesComponent,
|
||||
JumpInfosComponent,
|
||||
NewTunnelFlightComponent,
|
||||
],
|
||||
imports: [
|
||||
RouterModule.forRoot(
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<p>new-tunnel-flight works!</p>
|
||||
@@ -0,0 +1,21 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { NewTunnelFlightComponent } from './new-tunnel-flight.component';
|
||||
|
||||
describe('NewTunnelFlightComponent', () => {
|
||||
let component: NewTunnelFlightComponent;
|
||||
let fixture: ComponentFixture<NewTunnelFlightComponent>;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [NewTunnelFlightComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(NewTunnelFlightComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-new-tunnel-flight',
|
||||
templateUrl: './new-tunnel-flight.component.html',
|
||||
styleUrls: ['./new-tunnel-flight.component.css']
|
||||
})
|
||||
export class NewTunnelFlightComponent {
|
||||
|
||||
}
|
||||
@@ -46,6 +46,7 @@
|
||||
"App_Nav_JumpTypes" : "List of jump types",
|
||||
"App_Nav_Gears" : "List of gears",
|
||||
"App_Nav_Logout" : "Logout",
|
||||
"App_Nav_NewTunnelFlight" : "Add tunnel time",
|
||||
|
||||
"List_Aircrafts_Add" : "Add a aircraft",
|
||||
"List_Aircrafts_Header_Id" : "ID",
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
"App_Nav_JumpTypes" : "Type de saut",
|
||||
"App_Nav_Gears" : "Pièges",
|
||||
"App_Nav_Logout" : "Se déconnecter",
|
||||
"App_Nav_NewTunnelFlight" : "Ajouter du temps en tunnel",
|
||||
|
||||
"List_Aircrafts_Add" : "Ajouter un avion",
|
||||
"List_Aircrafts_Header_Id" : "ID",
|
||||
|
||||
Reference in New Issue
Block a user