-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91b2fdb
commit a7e1855
Showing
14 changed files
with
147 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body{ | ||
background-color: #F5FFFA; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<body> | ||
<app-menu></app-menu> | ||
<router-outlet></router-outlet> | ||
<app-rodape></app-rodape> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
header{ | ||
background-color: #6495ED; | ||
} | ||
|
||
a:hover{ | ||
scale: 1.05; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
body{ | ||
background-color: #F5FFFA; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,52 @@ | ||
<p>painel-vagas works!</p> | ||
<body> | ||
<div class="mt-5"> | ||
<div class="container mt-5 mb-5 d-flex justify-content-center"> | ||
<div class="card px-1 py-4 border "> | ||
<div class="card-body"> | ||
<h1 class="text-center">Cadastrar</h1> | ||
|
||
<form> | ||
<div class="container"> | ||
<div class="col-2"> | ||
<label class="form-label">Id</label> | ||
<input type="text" name="id" [(ngModel)]="vaga.id" class="form-control" required /> | ||
</div> | ||
<div class="col-7"> | ||
<label class="form-label">Nome</label> | ||
<input type="text" name="nome" [(ngModel)]="vaga.nome" class="form-control" | ||
placeholder="Nome da vaga" required /> | ||
</div> | ||
<div class="col-7"> | ||
<label class="form-label">Foto</label> | ||
<input type="url" name="foto" [(ngModel)]="vaga.foto" class="form-control" required /> | ||
</div> | ||
|
||
<div class="col-7"> | ||
<label class="form-label">Descrição</label> | ||
<input type="text" name="descricao" [(ngModel)]="vaga.descricao" class="form-control" | ||
placeholder="Descrição da vaga" required /> | ||
</div> | ||
<div class="col-7"> | ||
<label class="form-label">Salário</label> | ||
<input type="text" name="salario" [(ngModel)]="vaga.salario" class="form-control" | ||
required /> | ||
</div> | ||
|
||
<div class="mt-3"> | ||
<button type="button" class="btn btn-primary me-3" (click)="cadastrar()"> | ||
Cadastrar Vaga | ||
</button> | ||
<button type="button" class="btn btn-primary me-3" (click)="atualizar(vaga.id)"> | ||
Atualizar Vaga | ||
</button> | ||
<button type="button" class="btn btn-primary" (click)="excluir(vaga.id)"> | ||
Excluir Vaga | ||
</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
footer { | ||
background: #ffffff; | ||
left: 0; | ||
bottom: 0; | ||
width: 100%; | ||
text-align: center; | ||
margin-top: 135px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
<footer > | ||
<p class="text-center">Feito por LH</p> | ||
</footer> | ||
|
||
<footer class="page-footer self-lg-end border border-danger"> | ||
<div class="text-center p-3"> | ||
© 2022 Copyright | <a href="#" target="_blank">UC12 SA2 Atividade 1 Online </a> | ||
</div> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { HttpClient } from '@angular/common/http' | ||
import { HttpClient } from '@angular/common/http'; | ||
import { Observable } from 'rxjs'; | ||
import { Vaga } from './models/Vagas.models'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
providedIn: 'root', | ||
}) | ||
export class VagasService { | ||
|
||
private url = "http://localhost:3000/vagas"; | ||
private url = 'http://localhost:3000/vagas'; | ||
|
||
constructor(private _httpClient: HttpClient) { } | ||
getVagas(): Observable<Vaga[]>{ | ||
return this._httpClient.get<Vaga[]>(this.url); | ||
|
||
} | ||
constructor(private _httpClient: HttpClient) {} | ||
|
||
getVagas(): Observable<Vaga[]> { | ||
return this._httpClient.get<Vaga[]>(this.url); | ||
} | ||
|
||
cadastrarVaga(vaga: Vaga): Observable<Vaga[]> { | ||
return this._httpClient.post<Vaga[]>(this.url, vaga); | ||
} | ||
|
||
atualizarVaga(id: any, vaga: Vaga): Observable<Vaga[]> { | ||
const urlAtualizar = `${this.url}/${id}`; | ||
return this._httpClient.put<Vaga[]>(urlAtualizar, vaga); | ||
} | ||
|
||
removerVaga(id: any): Observable<Vaga[]> { | ||
const urlDeletar = `${this.url}/${id}`; | ||
return this._httpClient.delete<Vaga[]>(urlDeletar); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters