résolution problème build docker + création et organisation des fichiers de la période d'essai

pull/12/head
Clement FERRERE 3 years ago
parent 529269fcb6
commit 70607721fa
  1. 4
      Dockerfile
  2. 4
      src/app/app-routing.module.ts
  3. 4
      src/app/app.module.ts
  4. 1
      src/app/components/periode-essai/periode-essai-edit/periode-essai-edit.component.html
  5. 0
      src/app/components/periode-essai/periode-essai-edit/periode-essai-edit.component.scss
  6. 15
      src/app/components/periode-essai/periode-essai-edit/periode-essai-edit.component.ts
  7. 1
      src/app/components/periode-essai/periode-essai.component.html
  8. 0
      src/app/components/periode-essai/periode-essai.component.scss
  9. 15
      src/app/components/periode-essai/periode-essai.component.ts

@ -6,12 +6,10 @@ RUN mkdir -p /app
WORKDIR /app WORKDIR /app
COPY package.json /app COPY . /app
RUN npm install RUN npm install
COPY . /app
RUN npm run build --prod RUN npm run build --prod
# Stage 2 # Stage 2

@ -7,6 +7,8 @@ import {AgenceComponent} from "./components/agence/agence.component";
import {AgenceEditComponent} from "./components/agence/agence-edit/agence-edit.component"; import {AgenceEditComponent} from "./components/agence/agence-edit/agence-edit.component";
import {BusinessunitComponent} from "./components/businessunit/businessunit.component"; import {BusinessunitComponent} from "./components/businessunit/businessunit.component";
import {BusinessunitEditComponent} from "./components/businessunit/businessunit-edit/businessunit-edit.component"; import {BusinessunitEditComponent} from "./components/businessunit/businessunit-edit/businessunit-edit.component";
import {PeriodeEssaiComponent} from "./components/periode-essai/periode-essai.component";
import {PeriodeEssaiEditComponent} from "./components/periode-essai/periode-essai-edit/periode-essai-edit.component";
const routes : Routes = [ const routes : Routes = [
{path:'', redirectTo:'/home', pathMatch:'full'}, {path:'', redirectTo:'/home', pathMatch:'full'},
@ -17,6 +19,8 @@ const routes : Routes = [
{ path: 'agences/:id', component: AgenceEditComponent, data:{title:'Agences'} }, { path: 'agences/:id', component: AgenceEditComponent, data:{title:'Agences'} },
{ path:'businessunits',component:BusinessunitComponent, data:{title:'BusinessUnits'} }, { path:'businessunits',component:BusinessunitComponent, data:{title:'BusinessUnits'} },
{ path: 'businessunits/:id', component: BusinessunitEditComponent, data:{title:'BusinessUnits'} }, { path: 'businessunits/:id', component: BusinessunitEditComponent, data:{title:'BusinessUnits'} },
{ path:'periodeessais',component:PeriodeEssaiComponent, data:{title:'Periodes d\'Essai'} },
{ path: 'periodeessais/:id', component: PeriodeEssaiEditComponent, data:{title:'Periodes d\'Essai'} },
]; ];
@NgModule({ @NgModule({

@ -13,6 +13,8 @@ import { AgenceComponent } from './components/agence/agence.component';
import { AgenceEditComponent } from './components/agence/agence-edit/agence-edit.component'; import { AgenceEditComponent } from './components/agence/agence-edit/agence-edit.component';
import { BusinessunitComponent } from './components/businessunit/businessunit.component'; import { BusinessunitComponent } from './components/businessunit/businessunit.component';
import { BusinessunitEditComponent } from './components/businessunit/businessunit-edit/businessunit-edit.component'; import { BusinessunitEditComponent } from './components/businessunit/businessunit-edit/businessunit-edit.component';
import { PeriodeEssaiComponent } from './components/periode-essai/periode-essai.component';
import { PeriodeEssaiEditComponent } from './components/periode-essai/periode-essai-edit/periode-essai-edit.component';
@NgModule({ @NgModule({
declarations: [ declarations: [
@ -24,6 +26,8 @@ import { BusinessunitEditComponent } from './components/businessunit/businessuni
AgenceEditComponent, AgenceEditComponent,
BusinessunitComponent, BusinessunitComponent,
BusinessunitEditComponent, BusinessunitEditComponent,
PeriodeEssaiComponent,
PeriodeEssaiEditComponent,
], ],
imports: [ imports: [

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-periode-essai-edit',
templateUrl: './periode-essai-edit.component.html',
styleUrls: ['./periode-essai-edit.component.scss']
})
export class PeriodeEssaiEditComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}

@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-periode-essai',
templateUrl: './periode-essai.component.html',
styleUrls: ['./periode-essai.component.scss']
})
export class PeriodeEssaiComponent implements OnInit {
constructor() { }
ngOnInit(): void {
}
}
Loading…
Cancel
Save