Ajout du module notes

develop
Yanaël GRETTE 4 years ago
parent 667b55fcf9
commit a7e47f98d2
  1. 6
      src/app/app-routing.module.ts
  2. 4
      src/app/app.module.ts
  3. 2
      src/app/notes/index.ts
  4. 1
      src/app/notes/notes.component.html
  5. 17
      src/app/notes/notes.component.ts
  6. 23
      src/app/notes/notes.module.ts
  7. 20
      src/app/notes/notes.routing.module.ts
  8. 14
      src/app/shared/utils/paths.ts

@ -8,7 +8,7 @@ import { HomeComponent } from './home/';
import { AuthGuard } from '@shared/auth/auth.guard'; import { AuthGuard } from '@shared/auth/auth.guard';
import { paths_collaborateurs, paths_demandes_delegation, paths_demandes_formation, import { paths_collaborateurs, paths_demandes_delegation, paths_demandes_formation,
paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements } from '@shared/utils/paths'; paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements, paths_notes } from '@shared/utils/paths';
import { Role } from '@shared/utils/roles'; import { Role } from '@shared/utils/roles';
@ -69,6 +69,10 @@ const routes: Routes = [
{ {
path: paths_engagements.path, path: paths_engagements.path,
loadChildren: () => import('./engagements/engagements.module').then(m => m.EngagementsModule) loadChildren: () => import('./engagements/engagements.module').then(m => m.EngagementsModule)
},
{
path: paths_notes.path,
loadChildren: () => import('./notes/notes.module').then( m => m.NotesModule)
} }
]; ];

@ -26,6 +26,7 @@ import { AuthModule } from '@shared/auth/auth.module';
import { MatTablesModule } from "@shared/mat-tables/mat-tables.module"; import { MatTablesModule } from "@shared/mat-tables/mat-tables.module";
import { EngagementsModule } from './engagements'; import { EngagementsModule } from './engagements';
import { NotesModule } from './notes';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -39,7 +40,8 @@ import { EngagementsModule } from './engagements';
ReferentsModule, FormationsModule, ReferentsModule, FormationsModule,
DemandesFormationModule, DemandesDelegationModule, DemandesFormationModule, DemandesDelegationModule,
EpSaisieModule, EpModule, MatTablesModule, EpSaisieModule, EpModule, MatTablesModule,
AffichageDetailsCollaborateurModule, EngagementsModule AffichageDetailsCollaborateurModule, EngagementsModule,
NotesModule
], ],
providers: [], providers: [],

@ -0,0 +1,2 @@
export * from "./notes.component";
export * from "./notes.module"

@ -0,0 +1 @@
<h2>Liste de vos notes</h2>

@ -0,0 +1,17 @@
import { Component, OnInit } from "@angular/core";
import { NotesService } from "@shared/api-swagger";
@Component({
selector: "app-notes",
templateUrl: "./notes.component.html"
})
export class NotesComponent implements OnInit {
constructor(private notesService: NotesService) {
}
ngOnInit() {}
}

@ -0,0 +1,23 @@
import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RouterModule } from '@angular/router';
import { NotesRoutingModule } from "./notes.routing.module";
import { MaterialModule } from "@shared/angular-material/angular-material.module";
import {NavMenuModule} from '@shared/nav-menu/nav-menu.module';
import { NotesComponent } from "./notes.component";
@NgModule({
declarations: [
NotesComponent
],
imports: [
CommonModule,
MaterialModule,
NavMenuModule,
RouterModule,
NotesRoutingModule,
],
})
export class NotesModule {}

@ -0,0 +1,20 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { NotesComponent } from "./notes.component";
import { AuthGuard } from "@shared/auth/auth.guard";
import { paths_notes } from "@shared/utils/paths";
const routes: Routes = [
{path: paths_notes.notesAuteur, component: NotesComponent, canActivate: [AuthGuard]},
]
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class NotesRoutingModule {}

@ -98,6 +98,18 @@ const paths_engagements = {
path: "engagements" path: "engagements"
} }
/**
* Chemin de la navigation du module notes
*/
const paths_notes = {
base: "/notes",
path: "notes",
notesAuteur: "auteur/:id",
ajoutNote: "nouvellenote",
get: ":id",
edit: ":id/edit"
}
export { paths_collaborateurs, paths_demandes_delegation, paths_demandes_formation, export { paths_collaborateurs, paths_demandes_delegation, paths_demandes_formation,
paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements}; paths_ep, paths_saisie_ep, paths_formation, paths_home, paths_referents, paths_engagements,
paths_notes };

Loading…
Cancel
Save