2 Commits
v0.3 ... master

Author SHA1 Message Date
Vincent BENOIT
8f99b38a47 passage du port 3000 -> 4000 pour json-server et ajout de la variable host dans l'environement de prod 2022-04-06 17:21:54 +02:00
Vincent BENOIT
e740784f41 correction du html du navbar 2022-04-05 11:28:15 +02:00
4 changed files with 8 additions and 5 deletions

View File

@@ -3,7 +3,7 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "concurrently \"ng serve\" \"json-server --watch db.json\"",
"start": "concurrently \"ng serve\" \"json-server -p 4000 --watch db.json\"",
"build": "ng build",
"watch": "ng build --watch --configuration development",
"test": "ng test"

View File

@@ -1,13 +1,15 @@
<nav class="navbar navbar-expand-sm navbar-light bg-light">
<div class="collapse navbar-collapse">
<ul class="navbar-nav mr-auto">
<ul class="navbar-nav">
<li class="nav-item">
<button (click)="onGetAllEmployees()" class="btn btn-sm btn-outline-info ml-2">All</button>
</li>
<li class="nav-item">
<button (click)="onNewEmployee()" class="btn btn-sm btn-outline-info ml-2">Ajout</button>
</li>
<form #f="ngForm" (ngSubmit)="onSearch(f.value)" class="form-inline my-2 my-lg-0">
</ul>
<ul class="navbar-nav ms-auto">
<form #f="ngForm" (ngSubmit)="onSearch(f.value)" class="form-inline">
<input ngModel class="mr-sm-2" name="keyword" type="text">
<button class="btn btn-sm btn-outline-info my-2 my-sm-0">
<span class="fa fa-search"></span>

View File

@@ -1,3 +1,4 @@
export const environment = {
production: true
production: true,
host: "http://localhost:3000"
};

View File

@@ -4,7 +4,7 @@
export const environment = {
production: false,
host: "http://localhost:3000"
host: "http://localhost:4000"
};
/*