Compare commits
4 Commits
747e345494
...
e6541acd07
Author | SHA1 | Date |
---|---|---|
VANNEAU | e6541acd07 | 3 years ago |
VANNEAU | 86c6ae0734 | 3 years ago |
VANNEAU | 8d153cf4c1 | 3 years ago |
VANNEAU | f07a3e6794 | 3 years ago |
@ -1,20 +1,25 @@ |
||||
## STEP 1 BUILD ## |
||||
FROM node:17.0.1-alpine AS build |
||||
FROM node:16.13-alpine AS build |
||||
|
||||
WORKDIR /dist/src/app |
||||
RUN mkdir -p /app |
||||
|
||||
WORKDIR /app |
||||
|
||||
RUN npm cache clean --force |
||||
|
||||
COPY . . |
||||
COPY package*.json /app |
||||
|
||||
RUN npm install --only=prod |
||||
RUN npm install @angular/cli@12.2.12 |
||||
|
||||
RUN npm install |
||||
COPY . /app |
||||
|
||||
RUN npm run build --prod |
||||
RUN npm run build-prod |
||||
|
||||
## STEP 2 DEPLOY ## |
||||
FROM nginx:1.21.3 AS ngi |
||||
|
||||
COPY --from=build /dist/src/app/dist/EPAClient /usr/share/nginx/html |
||||
COPY --from=build /app/dist/EPAClient /usr/share/nginx/html |
||||
COPY /nginx.conf /etc/nginx/conf.d/default.conf |
||||
|
||||
EXPOSE 80 |
||||
EXPOSE 4200 49153 |
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,13 @@ |
||||
import { Component, Input, OnInit } from "@angular/core"; |
||||
import { CollaborateurDTO, CollaborateursService, ParticipationFormationDTO, ParticipationsFormationsService } from "@shared/api-swagger"; |
||||
import { Subscription } from "rxjs"; |
||||
import { collaborateurTypeRecherche, epTypeRecherche } from "@shared/utils/cles"; |
||||
import { MatDialog } from "@angular/material/dialog"; |
||||
import { DialogAssignationRapideReferentComponent, DialogAssignationRapideCollaborateursComponent } from "./dialog-assignation-rapide/dialog-assignation-rapide.component"; |
||||
import { Router } from "@angular/router"; |
||||
import { CollaborateurDTO } from "../model/collaborateurDTO"; |
||||
import { ParticipationFormationDTO } from "../model/participationFormationDTO"; |
||||
import { CollaborateursService } from "../services/collaborateurs.service"; |
||||
import { ParticipationsFormationsService } from "../services/participationsFormations.service"; |
||||
import { collaborateurTypeRecherche, epTypeRecherche } from "../utils/cles"; |
||||
|
||||
|
||||
@Component({ |
@ -1,8 +1,11 @@ |
||||
import {Component, Inject, OnInit } from "@angular/core"; |
||||
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material/dialog'; |
||||
import { MatSnackBar } from "@angular/material/snack-bar"; |
||||
import { CollaborateurDTO, CollaborateursService, ReferentEPDTO, ReferentsEPService } from "@shared/api-swagger"; |
||||
import { collaborateurTypeRecherche, } from "@shared/utils/cles"; |
||||
import { CollaborateurDTO } from "app/commun/model/collaborateurDTO"; |
||||
import { ReferentEPDTO } from "app/commun/model/referentEPDTO"; |
||||
import { CollaborateursService } from "app/commun/services/collaborateurs.service"; |
||||
import { ReferentsEPService } from "app/commun/services/referentsEP.service"; |
||||
import { collaborateurTypeRecherche } from "app/commun/utils/cles"; |
||||
import { Subscription } from "rxjs"; |
||||
|
||||
@Component({ |
@ -1,5 +1,6 @@ |
||||
import { Component, Input, OnInit } from "@angular/core" |
||||
import { affichageStatut, EpInformationDTO, EpService, StatutEp } from "@shared/api-swagger"; |
||||
import { affichageStatut, EpInformationDTO, StatutEp } from "app/commun/model/models"; |
||||
import { EpService } from "app/commun/services/ep.service"; |
||||
import { Subscription } from "rxjs"; |
||||
|
||||
|
@ -0,0 +1,34 @@ |
||||
import { NgModule } from '@angular/core'; |
||||
import { CommonModule } from '@angular/common'; |
||||
import { DemandesFormationService } from './services/demandesformation.service'; |
||||
import { CollaborateursService } from './services/collaborateurs.service'; |
||||
import { DemandesDelegationService } from './services/demandesDelegation.service'; |
||||
import { DemandesEPIService } from './services/demandesEPI.service'; |
||||
import { EngagementsService } from './services/engagements.service'; |
||||
import { EpService } from './services/ep.service'; |
||||
import { FormationsService } from './services/formations.service'; |
||||
import { NotesService } from './services/notes.service'; |
||||
import { ParticipationsFormationsService } from './services/participationsFormations.service'; |
||||
import { ReferentsEPService } from './services/referentsEP.service'; |
||||
|
||||
|
||||
|
||||
@NgModule({ |
||||
declarations: [], |
||||
imports: [ |
||||
CommonModule |
||||
], |
||||
providers: [ |
||||
CollaborateursService, |
||||
DemandesDelegationService, |
||||
DemandesEPIService, |
||||
DemandesFormationService, |
||||
EngagementsService, |
||||
EpService, |
||||
FormationsService, |
||||
NotesService, |
||||
ParticipationsFormationsService, |
||||
ReferentsEPService |
||||
] |
||||
}) |
||||
export class CommunModule {} |
@ -0,0 +1,166 @@ |
||||
import { NgModule } from '@angular/core'; |
||||
import { CommonModule } from '@angular/common'; |
||||
import { MatCardModule } from '@angular/material/card'; |
||||
import { MatButtonModule } from '@angular/material/button'; |
||||
import { MatMenuModule } from '@angular/material/menu'; |
||||
import { MatPaginatorModule } from '@angular/material/paginator'; |
||||
import { MatIconModule } from '@angular/material/icon'; |
||||
import { MatSortModule } from '@angular/material/sort'; |
||||
import { MatInputModule } from '@angular/material/input'; |
||||
import { MatTableModule } from '@angular/material/table'; |
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; |
||||
import { MatFormFieldModule } from '@angular/material/form-field'; |
||||
import { MatTabsModule } from '@angular/material/tabs'; |
||||
import { NgxMatDatetimePickerModule, NgxMatNativeDateModule } from '@angular-material-components/datetime-picker'; |
||||
import { MatDatepickerModule } from '@angular/material/datepicker'; |
||||
import { MatListModule } from '@angular/material/list'; |
||||
import { MatNativeDateModule, MatOption, MatOptionModule } from '@angular/material/core'; |
||||
import { MatCheckboxModule } from '@angular/material/checkbox'; |
||||
import { MatSelectModule } from '@angular/material/select'; |
||||
import { MatStepperModule } from '@angular/material/stepper'; |
||||
import { MatChipsModule } from '@angular/material/chips'; |
||||
import { MatSnackBarModule } from '@angular/material/snack-bar'; |
||||
import { MatSlideToggleModule } from '@angular/material/slide-toggle'; |
||||
import { MatRadioModule } from '@angular/material/radio'; |
||||
import { CollaborateursTableComponent } from './mat-tables/collaborateurs-table/collaborateurs.table'; |
||||
import { DemandesFormationTableComponent } from './mat-tables/demandes-formation-table/demandes-formation.table'; |
||||
import { EngagementTableComponent } from './mat-tables/engagements-table/engagements-table'; |
||||
import { EpTableComponent } from './mat-tables/ep-table/ep-table'; |
||||
import { FormationsTableComponent } from './mat-tables/formations-table/formations.table'; |
||||
import { ParticipationsFormationTableComponent } from './mat-tables/participations-formation-table/participations-formation.table'; |
||||
import { FilterModule } from './filter/filter.module'; |
||||
import { AuthModule } from './auth/auth.module'; |
||||
import { NavMenuComponent } from './nav-menu/nav-menu.component'; |
||||
import { NavMenuAssistanteComponent } from './nav-menu/nav-menu-assistante/nav-menu-assistante.component'; |
||||
import { NavMenuCollaborateurComponent } from './nav-menu/nav-menu-collaborateur/nav-menu-collaborateur.component'; |
||||
import { NavMenuCommercialComponent } from './nav-menu/nav-menu-commercial/nav-menu-commercial.component'; |
||||
import { NavMenuRHComponent } from './nav-menu/nav-menu-rh/nav-menu-rh.component'; |
||||
import { RouterModule } from '@angular/router'; |
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'; |
||||
import { CheckboxFilterComponent } from './filter/checkbox-filter/checkbox-filter'; |
||||
import { SelectFilterComponent } from './filter/select-filter/select-filter'; |
||||
import { AffichageDetailsCollaborateurComponent } from './affichage-details-collaboarteur/affichage-details-collaborateur'; |
||||
import { DialogAssignationRapideReferentComponent, DialogAssignationRapideCollaborateursComponent } from './affichage-details-collaboarteur/dialog-assignation-rapide/dialog-assignation-rapide.component'; |
||||
import { ProchainEpComponent } from './affichage-details-collaboarteur/prochain-ep/prochain-ep.component'; |
||||
|
||||
|
||||
|
||||
@NgModule({ |
||||
imports: [ |
||||
// Materials
|
||||
MatCardModule, |
||||
MatButtonModule, |
||||
MatMenuModule, |
||||
MatIconModule, |
||||
MatPaginatorModule, |
||||
MatSortModule, |
||||
MatTableModule, |
||||
MatInputModule, |
||||
MatProgressSpinnerModule, |
||||
MatTabsModule, |
||||
MatFormFieldModule, |
||||
NgxMatDatetimePickerModule, |
||||
MatDatepickerModule, |
||||
NgxMatNativeDateModule, |
||||
MatNativeDateModule, |
||||
MatListModule, |
||||
MatCheckboxModule, |
||||
MatSelectModule, |
||||
MatStepperModule, |
||||
MatChipsModule, |
||||
MatSnackBarModule, |
||||
MatSlideToggleModule, |
||||
MatRadioModule, |
||||
MatOptionModule, |
||||
|
||||
// Forms Angular
|
||||
FormsModule, |
||||
ReactiveFormsModule, |
||||
|
||||
// Common angular
|
||||
CommonModule, |
||||
|
||||
// Module commun
|
||||
FilterModule, |
||||
RouterModule, |
||||
AuthModule.forRoot() |
||||
], |
||||
exports: [ |
||||
// Materials
|
||||
MatCardModule, |
||||
MatButtonModule, |
||||
MatMenuModule, |
||||
MatIconModule, |
||||
MatPaginatorModule, |
||||
MatSortModule, |
||||
MatTableModule, |
||||
MatInputModule, |
||||
MatProgressSpinnerModule, |
||||
MatTabsModule, |
||||
MatFormFieldModule, |
||||
NgxMatDatetimePickerModule, |
||||
MatDatepickerModule, |
||||
NgxMatNativeDateModule, |
||||
MatNativeDateModule, |
||||
MatListModule, |
||||
MatCheckboxModule, |
||||
MatSelectModule, |
||||
MatStepperModule, |
||||
MatChipsModule, |
||||
MatSnackBarModule, |
||||
MatSlideToggleModule, |
||||
MatRadioModule, |
||||
MatOptionModule, |
||||
|
||||
// Module commun
|
||||
FilterModule, |
||||
|
||||
// Component commun
|
||||
NavMenuComponent, |
||||
ProchainEpComponent, |
||||
DialogAssignationRapideReferentComponent, |
||||
AffichageDetailsCollaborateurComponent, |
||||
|
||||
// Table commun
|
||||
CollaborateursTableComponent, |
||||
EngagementTableComponent, |
||||
FormationsTableComponent, |
||||
EpTableComponent, |
||||
ParticipationsFormationTableComponent, |
||||
DemandesFormationTableComponent |
||||
|
||||
], |
||||
declarations: [ |
||||
|
||||
// Component commun
|
||||
/// Filter
|
||||
CheckboxFilterComponent, |
||||
SelectFilterComponent, |
||||
|
||||
/// Nav menu
|
||||
NavMenuComponent,
|
||||
NavMenuAssistanteComponent,
|
||||
NavMenuCollaborateurComponent, |
||||
NavMenuCommercialComponent,
|
||||
NavMenuRHComponent, |
||||
|
||||
/// Affichage collab
|
||||
AffichageDetailsCollaborateurComponent, |
||||
DialogAssignationRapideReferentComponent, |
||||
DialogAssignationRapideCollaborateursComponent, |
||||
ProchainEpComponent, |
||||
|
||||
// Table commun
|
||||
CollaborateursTableComponent, |
||||
EngagementTableComponent, |
||||
FormationsTableComponent, |
||||
EpTableComponent, |
||||
ParticipationsFormationTableComponent, |
||||
DemandesFormationTableComponent, |
||||
], |
||||
entryComponents: [ |
||||
NavMenuComponent, |
||||
DialogAssignationRapideReferentComponent |
||||
] |
||||
}) |
||||
export class CommunUiModule { } |
@ -1,7 +1,5 @@ |
||||
import { Component, Input, Output, EventEmitter, OnInit, OnChanges } from "@angular/core"; |
||||
|
||||
import { SelectedElement } from "@shared/filter/selected-element"; |
||||
|
||||
import { SelectedElement } from "../selected-element"; |
||||
|
||||
|
||||
|
@ -0,0 +1,24 @@ |
||||
import { NgModule } from "@angular/core"; |
||||
import { CommonModule } from '@angular/common'; |
||||
import { FormsModule, ReactiveFormsModule} from '@angular/forms'; |
||||
import { RouterModule } from '@angular/router'; |
||||
|
||||
import { SelectFilterComponent } from "./select-filter/select-filter"; |
||||
import { CheckboxFilterComponent } from "./checkbox-filter/checkbox-filter"; |
||||
|
||||
|
||||
@NgModule({ |
||||
declarations: [
|
||||
|
||||
], |
||||
imports: [ |
||||
CommonModule, |
||||
FormsModule, |
||||
ReactiveFormsModule, |
||||
RouterModule |
||||
], |
||||
exports: [ |
||||
|
||||
] |
||||
}) |
||||
export class FilterModule {} |
@ -1,5 +1,5 @@ |
||||
import { Component, Input, Output, EventEmitter, OnInit, OnChanges } from "@angular/core"; |
||||
import { SelectedElement } from "@shared/filter/selected-element"; |
||||
import { SelectedElement } from "../selected-element"; |
||||
|
||||
@Component({ |
||||
selector: "select-filter", |
@ -1,7 +1,12 @@ |
||||
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core"; |
||||
import { MatTableDataSource } from "@angular/material/table"; |
||||
import { BusinessUnitDTO, CollaborateurDTO, DemandesFormationService, EtatDemande, afficherEtatDemande, DemandeFormationDTO, StatutEp, estEPEnCours } from "@shared/api-swagger"; |
||||
import { cles } from "@shared/utils/cles"; |
||||
import { BusinessUnitDTO } from "app/commun/model/businessUnitDTO"; |
||||
import { CollaborateurDTO } from "app/commun/model/collaborateurDTO"; |
||||
import { DemandeFormationDTO } from "app/commun/model/demandeFormationDTO"; |
||||
import { EtatDemande, afficherEtatDemande } from "app/commun/model/etatDemande"; |
||||
import { StatutEp, estEPEnCours } from "app/commun/model/statutEp"; |
||||
import { DemandesFormationService } from "app/commun/services/demandesformation.service"; |
||||
import { cles } from "app/commun/utils/cles"; |
||||
import { DemandesFormationsRoutingModule } from "app/demandes-formation/demandes-formation.routing.module"; |
||||
|
||||
import { Subscription } from "rxjs"; |
@ -1,7 +1,11 @@ |
||||
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core"; |
||||
import { MatTableDataSource } from "@angular/material/table"; |
||||
import { BusinessUnitDTO, CollaborateurDTO, EngagementDTO, EngagementsService, EtatEngagement, afficherEtatEngagement } from "@shared/api-swagger"; |
||||
import { cles, engagementTypeRecherche } from "@shared/utils/cles"; |
||||
import { BusinessUnitDTO } from "app/commun/model/businessUnitDTO"; |
||||
import { CollaborateurDTO } from "app/commun/model/collaborateurDTO"; |
||||
import { EngagementDTO } from "app/commun/model/engagementDTO"; |
||||
import { EtatEngagement, afficherEtatEngagement } from "app/commun/model/etatEngagement"; |
||||
import { EngagementsService } from "app/commun/services/engagements.service"; |
||||
import { cles } from "app/commun/utils/cles"; |
||||
import { EngagementsRoutingModule } from "app/engagements/engagements.routing.module"; |
||||
import { Subscription } from "rxjs"; |
||||
|
@ -1,8 +1,12 @@ |
||||
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core"; |
||||
import { MatSlideToggleChange } from "@angular/material/slide-toggle"; |
||||
import { MatTableDataSource } from "@angular/material/table"; |
||||
import { affichageStatut, BusinessUnitDTO, CollaborateurDTO, EpInformationDTO, EpService, estEnAttente, StatutEp, TypeEp } from "@shared/api-swagger"; |
||||
import { cles, epTypeRecherche } from "@shared/utils/cles"; |
||||
import { BusinessUnitDTO } from "app/commun/model/businessUnitDTO"; |
||||
import { CollaborateurDTO } from "app/commun/model/collaborateurDTO"; |
||||
import { EpInformationDTO } from "app/commun/model/epInformationDTO"; |
||||
import { StatutEp, affichageStatut, estEnAttente } from "app/commun/model/statutEp"; |
||||
import { EpService } from "app/commun/services/ep.service"; |
||||
import { epTypeRecherche, cles } from "app/commun/utils/cles"; |
||||
import { Subscription } from "rxjs"; |
||||
|
||||
@Component({ |
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue