diff --git a/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/controllers/AbouUsController.java b/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/controllers/AboutUsController.java similarity index 75% rename from backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/controllers/AbouUsController.java rename to backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/controllers/AboutUsController.java index 057668c..3698947 100644 --- a/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/controllers/AbouUsController.java +++ b/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/controllers/AboutUsController.java @@ -8,25 +8,26 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; - +import br.com.entra21.teamroxo.TMSProject.interfaces.AboutUsRepository; import br.com.entra21.teamroxo.TMSProject.template.AboutUs; -public class AbouUsController { + @RestController @CrossOrigin(origins = "*") @RequestMapping("/aboutus") - public class AboutUsControllers { + public class AboutUsController { @Autowired - private AboutUs aboutUs; + private AboutUsRepository aboutUsRepository; @GetMapping() public List listAboutUs(){ - return aboutUs.findAll() ; + return aboutUsRepository.findAll() ; + } } -} + diff --git a/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/interfaces/AboutUsRepository.java b/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/interfaces/AboutUsRepository.java new file mode 100644 index 0000000..cd022f7 --- /dev/null +++ b/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/interfaces/AboutUsRepository.java @@ -0,0 +1,22 @@ +package br.com.entra21.teamroxo.TMSProject.interfaces; + +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.Query; +import org.springframework.data.jpa.repository.config.EnableJpaRepositories; +import org.springframework.data.repository.query.Param; +import org.springframework.stereotype.Repository; + +import br.com.entra21.teamroxo.TMSProject.template.AboutUs; +import br.com.entra21.teamroxo.TMSProject.template.Carriers; + + +@Repository +@EnableJpaRepositories +public interface AboutUsRepository extends JpaRepository{ + + @Query("FROM AboutUs") + public void AboutUs(); + +} + + diff --git a/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/template/AboutUs.java b/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/template/AboutUs.java index ec59b63..5b366d7 100644 --- a/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/template/AboutUs.java +++ b/backend/TMSProject/src/main/java/br/com/entra21/teamroxo/TMSProject/template/AboutUs.java @@ -1,132 +1,377 @@ package br.com.entra21.teamroxo.TMSProject.template; -import java.util.List; - +import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; +import javax.persistence.Table; +@Entity +@Table(name = "aboutus") public class AboutUs { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) - private String titulo = "Sobre o Projeto"; - private String subTitulo = "Licença, disponibilidade e finalidade"; - private String body = "Esse projeto foi desenvolvido pelo grupo Roxo da Turma Java Noturno de 2022, composto por Bruno Roberto, Cristian Schauffert, Kalil Fakhouri e Mateus Felipe com a mentoria do professor Oliota, visando apenas a demonstração dos conhecimentos técnicos adquiridos durante o curso e a apresentação da etapa final à empresas.\r\n" - + "\r\n" - + "A cópia do recurso está disponível a todos, podendo ser modificada e alterada. Fica proibida a venda, distribuição ou repasse da mesma. A maioria dos recurso e tecnologias são de código livre (open-source) ou teste de avaliação por tempo determinado (Google Cloud), afim de trazer a melhor experiência do uso de um software funcional.\r\n" - + "\r\n" - + "Devido ao nosso objetivo de comprovar os conhecimentos adquiridos, algumas partes do software são simulados devido ao tempo e resposta que levaria na realidade, acelerando, assim, o processo de entrega, por exemplo, para que possa ser vista em tempo real o processamento de dados, tanto localmente quanto em nuvem."; - - private String brunoNome = "Bruno Roberto"; - private String brunoFuncao = "Frontend Dev"; - - private String cristianNome = "Cristian Schauffert"; - private String cristianFuncao = "Web Designer"; + private Integer id; + private String titulo; + private String subTitulo; + private String body; - private String kalilNome = "Kalil J. Fakhouri"; - private String kalilFuncao = "Lead Developer"; + private String brunoNome; + private String brunoFuncao; + private String brunoFoto; + private String brunoEmail; + private String brunoLinkedin; + private String brunoGithub; - private String mateusNome = "Mateus Felipe"; - private String mateusFuncao = "Lead Developer"; + private String cristianNome; + private String cristianFuncao; + private String cristianFoto; + private String cristianEmail; + private String cristianLinkedin; + private String cristianGithub; + private String kalilNome; + private String kalilFuncao; + private String kalilFoto; + private String kalilEmail; + private String kalilLinkedin; + private String kalilGithub; + private String mateusNome; + private String mateusFuncao; + private String mateusFoto; + private String mateusEmail; + private String mateusLinkedin; + private String mateusGithub; + public AboutUs() { + super(); + // TODO Auto-generated constructor stub + } + + + public AboutUs(Integer id, String titulo, String subTitulo, String body, String brunoNome, String brunoFuncao, + String brunoFoto, String brunoEmail, String brunoLinkedin, String brunoGithub, String cristianNome, + String cristianFuncao, String cristianFoto, String cristianEmail, String cristianLinkedin, + String cristianGithub, String kalilNome, String kalilFuncao, String kalilFoto, String kalilEmail, + String kalilLinkedin, String kalilGithub, String mateusNome, String mateusFuncao, String mateusFoto, + String mateusEmail, String mateusLinkedin, String mateusGithub) { + super(); + this.id = id; + this.titulo = titulo; + this.subTitulo = subTitulo; + this.body = body; + this.brunoNome = brunoNome; + this.brunoFuncao = brunoFuncao; + this.brunoFoto = brunoFoto; + this.brunoEmail = brunoEmail; + this.brunoLinkedin = brunoLinkedin; + this.brunoGithub = brunoGithub; + this.cristianNome = cristianNome; + this.cristianFuncao = cristianFuncao; + this.cristianFoto = cristianFoto; + this.cristianEmail = cristianEmail; + this.cristianLinkedin = cristianLinkedin; + this.cristianGithub = cristianGithub; + this.kalilNome = kalilNome; + this.kalilFuncao = kalilFuncao; + this.kalilFoto = kalilFoto; + this.kalilEmail = kalilEmail; + this.kalilLinkedin = kalilLinkedin; + this.kalilGithub = kalilGithub; + this.mateusNome = mateusNome; + this.mateusFuncao = mateusFuncao; + this.mateusFoto = mateusFoto; + this.mateusEmail = mateusEmail; + this.mateusLinkedin = mateusLinkedin; + this.mateusGithub = mateusGithub; + } + + + public Integer getId() { + return id; + } + + + public void setId(Integer id) { + this.id = id; + } + + public String getTitulo() { return titulo; } + + public void setTitulo(String titulo) { this.titulo = titulo; } + + public String getSubTitulo() { return subTitulo; } + + public void setSubTitulo(String subTitulo) { this.subTitulo = subTitulo; } + + public String getBody() { return body; } + + public void setBody(String body) { this.body = body; } + + public String getBrunoNome() { return brunoNome; } + + public void setBrunoNome(String brunoNome) { this.brunoNome = brunoNome; } + + public String getBrunoFuncao() { return brunoFuncao; } + + public void setBrunoFuncao(String brunoFuncao) { this.brunoFuncao = brunoFuncao; } + + + public String getBrunoFoto() { + return brunoFoto; + } + + + public void setBrunoFoto(String brunoFoto) { + this.brunoFoto = brunoFoto; + } + + + public String getBrunoEmail() { + return brunoEmail; + } + + + public void setBrunoEmail(String brunoEmail) { + this.brunoEmail = brunoEmail; + } + + + public String getBrunoLinkedin() { + return brunoLinkedin; + } + + + public void setBrunoLinkedin(String brunoLinkedin) { + this.brunoLinkedin = brunoLinkedin; + } + + + public String getBrunoGithub() { + return brunoGithub; + } + + + public void setBrunoGithub(String brunoGithub) { + this.brunoGithub = brunoGithub; + } + + public String getCristianNome() { return cristianNome; } + + public void setCristianNome(String cristianNome) { this.cristianNome = cristianNome; } + + public String getCristianFuncao() { return cristianFuncao; } + + public void setCristianFuncao(String cristianFuncao) { this.cristianFuncao = cristianFuncao; } + + + public String getCristianFoto() { + return cristianFoto; + } + + + public void setCristianFoto(String cristianFoto) { + this.cristianFoto = cristianFoto; + } + + + public String getCristianEmail() { + return cristianEmail; + } + + + public void setCristianEmail(String cristianEmail) { + this.cristianEmail = cristianEmail; + } + + + public String getCristianLinkedin() { + return cristianLinkedin; + } + + + public void setCristianLinkedin(String cristianLinkedin) { + this.cristianLinkedin = cristianLinkedin; + } + + + public String getCristianGithub() { + return cristianGithub; + } + + + public void setCristianGithub(String cristianGithub) { + this.cristianGithub = cristianGithub; + } + + public String getKalilNome() { return kalilNome; } + + public void setKalilNome(String kalilNome) { this.kalilNome = kalilNome; } + + public String getKalilFuncao() { return kalilFuncao; } + + public void setKalilFuncao(String kalilFuncao) { this.kalilFuncao = kalilFuncao; } + + + public String getKalilFoto() { + return kalilFoto; + } + + + public void setKalilFoto(String kalilFoto) { + this.kalilFoto = kalilFoto; + } + + + public String getKalilEmail() { + return kalilEmail; + } + + + public void setKalilEmail(String kalilEmail) { + this.kalilEmail = kalilEmail; + } + + + public String getKalilLinkedin() { + return kalilLinkedin; + } + + + public void setKalilLinkedin(String kalilLinkedin) { + this.kalilLinkedin = kalilLinkedin; + } + + + public String getKalilGithub() { + return kalilGithub; + } + + + public void setKalilGithub(String kalilGithub) { + this.kalilGithub = kalilGithub; + } + + public String getMateusNome() { return mateusNome; } + + public void setMateusNome(String mateusNome) { this.mateusNome = mateusNome; } + + public String getMateusFuncao() { return mateusFuncao; } + + public void setMateusFuncao(String mateusFuncao) { this.mateusFuncao = mateusFuncao; } - public AboutUs() { - super(); - // TODO Auto-generated constructor stub + + + public String getMateusFoto() { + return mateusFoto; } - public AboutUs(String titulo, String subTitulo, String body, String brunoNome, String brunoFuncao, - String cristianNome, String cristianFuncao, String kalilNome, String kalilFuncao, String mateusNome, - String mateusFuncao) { - super(); - this.titulo = titulo; - this.subTitulo = subTitulo; - this.body = body; - this.brunoNome = brunoNome; - this.brunoFuncao = brunoFuncao; - this.cristianNome = cristianNome; - this.cristianFuncao = cristianFuncao; - this.kalilNome = kalilNome; - this.kalilFuncao = kalilFuncao; - this.mateusNome = mateusNome; - this.mateusFuncao = mateusFuncao; + + + public void setMateusFoto(String mateusFoto) { + this.mateusFoto = mateusFoto; } - public List findAll() { - // TODO Auto-generated method stub - return null; + + + public String getMateusEmail() { + return mateusEmail; } + + + public void setMateusEmail(String mateusEmail) { + this.mateusEmail = mateusEmail; + } + + + public String getMateusLinkedin() { + return mateusLinkedin; + } + + + public void setMateusLinkedin(String mateusLinkedin) { + this.mateusLinkedin = mateusLinkedin; + } + + + public String getMateusGithub() { + return mateusGithub; + } + + + public void setMateusGithub(String mateusGithub) { + this.mateusGithub = mateusGithub; + } + + + - - - -} +} \ No newline at end of file diff --git a/frontend/main/src/app/about.service.spec.ts b/frontend/main/src/app/about.service.spec.ts new file mode 100644 index 0000000..f5fe5a0 --- /dev/null +++ b/frontend/main/src/app/about.service.spec.ts @@ -0,0 +1,16 @@ +import { TestBed } from '@angular/core/testing'; + +import { AboutService } from './about.service'; + +describe('AboutService', () => { + let service: AboutService; + + beforeEach(() => { + TestBed.configureTestingModule({}); + service = TestBed.inject(AboutService); + }); + + it('should be created', () => { + expect(service).toBeTruthy(); + }); +}); diff --git a/frontend/main/src/app/about.service.ts b/frontend/main/src/app/about.service.ts new file mode 100644 index 0000000..5d35f80 --- /dev/null +++ b/frontend/main/src/app/about.service.ts @@ -0,0 +1,24 @@ +import { HttpClient } from '@angular/common/http'; +import { Injectable } from '@angular/core'; +import { Router } from '@angular/router'; + +@Injectable({ + providedIn: 'root' +}) +export class AboutService { + + readonly API:string = "http://localhost:8080/aboutus" + + constructor(private router: Router, private http: HttpClient) { } + + + listAbout():any{ + + return this.http.get(this.API) + + } + + + + +} diff --git a/frontend/main/src/app/about/about.component.html b/frontend/main/src/app/about/about.component.html index 1ad7231..0eff63e 100644 --- a/frontend/main/src/app/about/about.component.html +++ b/frontend/main/src/app/about/about.component.html @@ -1,64 +1,64 @@ +
- -

Bruno Roberto

-
Frontend Dev.
+

{{about.bruno_nome}}

+
{{about.bruno_funcao}}

- - -
- -

Cristian Schauffert

-
Web Designer
+

{{about.cristian_nome}}

+
{{about.cristian_funcao}}

- - -
- -

Kalil J. Fakhouri

-
Lead Developer
+

{{about.kalil_nome}}

+
{{about.kalil_funcao}}

- - -
- -

Mateus Felipe

-
Lead Developer
+

{{about.mateus_nome}}

+
{{about.mateus_funcao}}

- - -
@@ -66,9 +66,9 @@

Mateus Felipe

-

Sobre o Projeto

+

{{about.titulo}}


-

Licença,Disponibilidade e finalidade

+

{{about.sub_titulo}}


Esse projeto foi desenvolvido pelo grupo Roxo da Turma Java Noturno de 2022, composto por Bruno Roberto, Cristian Schauffert, Kalil Fakhouri e Mateus Felipe com a mentoria do professor Oliota, visando apenas a diff --git a/frontend/main/src/app/about/about.component.ts b/frontend/main/src/app/about/about.component.ts index e4ae6d9..636ebec 100644 --- a/frontend/main/src/app/about/about.component.ts +++ b/frontend/main/src/app/about/about.component.ts @@ -1,4 +1,7 @@ +import { HttpClient } from '@angular/common/http'; import { Component, OnInit } from '@angular/core'; +import { Router } from '@angular/router'; +import { AboutService } from '../about.service'; @Component({ selector: 'app-about', @@ -7,9 +10,107 @@ import { Component, OnInit } from '@angular/core'; }) export class AboutComponent implements OnInit { - constructor() { } + abouts!: Array + body!: string + bruno_funcao!: string + bruno_nome!: string + cristian_funcao!: string + cristian_nome!: string + kalil_funcao!: string + kalil_nome!: string + mateus_funcao!: string + mateus_nome!: string + sub_titulo!: string + titulo!: string + + bruno_email!: string + bruno_foto!: string + bruno_github!: string + bruno_linkedin!: string + + cristian_email!: string + cristian_foto!: string + cristian_github!: string + cristian_linkedin!: string + + kalil_email!: string + kalil_foto!: string + kalil_github!: string + kalil_linkedin!: string + + mateus_email!: string + mateus_foto!: string + mateus_github!: string + mateus_linkedin!: string + + + + + + constructor(public aboutService: AboutService, private router:Router, private http:HttpClient) { } ngOnInit(): void { + +this.abouts = new Array() + +this.aboutService.listAbout().pipe().subscribe((response: any) => { +console.log(response); + +var count = Object.keys(response).length + + for(let i=0;i @@ -163,12 +163,12 @@