diff --git a/client/src/App.vue b/client/src/App.vue index b6879f3..6c44d0a 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -1,14 +1,16 @@ - + \ No newline at end of file diff --git a/client/src/assets/icons/hamburger.png b/client/src/assets/icons/hamburger.png new file mode 100644 index 0000000..9e5dc10 Binary files /dev/null and b/client/src/assets/icons/hamburger.png differ diff --git a/client/src/components/Header.vue b/client/src/components/Header.vue index b81c9ff..8592480 100644 --- a/client/src/components/Header.vue +++ b/client/src/components/Header.vue @@ -18,6 +18,11 @@
  • Sobre Nós
  • Cadastre-se Agora
  • +
  • + +
  • Entrar
  • @@ -28,6 +33,7 @@ import { defineComponent, ref } from 'vue'; import { useRouter } from 'vue-router'; import logo from '../assets/imgs/logoHeader.png' +import hamburger from '../assets/icons/hamburger.png' export default defineComponent({ name: 'Header', @@ -42,6 +48,7 @@ export default defineComponent({ return { router, imagem: logo, + imgHamburger: hamburger, spanView, toggleSpanView, } diff --git a/client/src/router/guards/guards.js b/client/src/router/guards/guards.js index a5d7b82..520745f 100644 --- a/client/src/router/guards/guards.js +++ b/client/src/router/guards/guards.js @@ -1,12 +1,12 @@ import Cookies from 'js-cookie'; -import { authAluno } from '../../services/api/aluno'; -import { authAdmin } from '../../services/api/admin'; -import { authProfessor } from '../../services/api/professor'; -import { authFuncionario } from '../../services/api/funcionario'; -import { authEmpresa } from '../../services/api/empresa'; +import { authAluno } from '../../services/api/aluno'; +import { authAdmin } from '../../services/api/admin'; +import { authProfessor } from '../../services/api/professor'; +import { authFuncionario } from '../../services/api/funcionario'; +import { authEmpresa } from '../../services/api/empresa'; // isAuths -export async function isAuthAluno(){ +export async function isAuthAluno() { var token = Cookies.get('token'); if (!token) { return false; @@ -16,9 +16,9 @@ export async function isAuthAluno(){ return (response.data == "Aluno autenticado com sucesso.") ? true : false } catch (error) { return false; - } - } -} + } + } +} export async function isAuthAdmin() { var token = Cookies.get('token-admin'); @@ -30,25 +30,25 @@ export async function isAuthAdmin() { return (response.data == "Admin autenticado com sucesso.") ? true : false } catch (error) { return false; - } - } -} + } + } +} -export async function isAuthEmpresa(){ +export async function isAuthEmpresa() { var token = Cookies.get('token-empresa'); if (!token) { return false; } else { try { const response = await authEmpresa(token); - return(response.data == "Empresa autenticada com sucesso.") ? true : false; + return (response.data == "Empresa autenticada com sucesso.") ? true : false; } catch (error) { return false; } } } -export async function isAuthFuncionario(){ +export async function isAuthFuncionario() { var token = Cookies.get('token-funcionario'); if (!token) { return false; @@ -62,7 +62,7 @@ export async function isAuthFuncionario(){ } } -export async function isAuthProfessor(){ +export async function isAuthProfessor() { var token = Cookies.get('token-professor'); if (!token) { return false; @@ -78,41 +78,41 @@ export async function isAuthProfessor(){ // isRegisterings -export async function isRegistering(){ +export async function isRegistering() { return (Cookies.get('email-registro-aluno')) ? true : false; -} +} -export async function isRegisteringEmpresa(){ +export async function isRegisteringEmpresa() { return (Cookies.get('cnpj-registro-empresa')) ? true : false; } // isRecoverings -export async function isRecoveringAluno(){ +export async function isRecoveringAluno() { return (Cookies.get('email-recovery-aluno')) ? true : false; -} +} -export async function isRecoveringEmpresa(){ +export async function isRecoveringEmpresa() { return (Cookies.get('email-recovery-empresa')) ? true : false; } -export async function isRecoveringFuncionario(){ +export async function isRecoveringFuncionario() { return (Cookies.get('email-recovery-funcionario')) ? true : false; } -export async function isRecoveringProfessor(){ +export async function isRecoveringProfessor() { return (Cookies.get('email-recovery-professor')) ? true : false; } // isInitings -export async function isInitingFuncionario(){ +export async function isInitingFuncionario() { return (Cookies.get('email-init-funcionario')) ? true : false; } -export async function isInitingProfessor(){ +export async function isInitingProfessor() { return (Cookies.get('email-init-professor')) ? true : false; } // isCompleted -export async function isCompletedAluno(){ +export async function isCompletedAluno() { return (Cookies.get('completed') && Cookies.get('completed') == true && await isAuthAluno() ? true : false) ? true : false; } \ No newline at end of file diff --git a/client/src/scss/abstracts/_mixins.scss b/client/src/scss/abstracts/_mixins.scss index 5ac0b40..d52dec2 100644 --- a/client/src/scss/abstracts/_mixins.scss +++ b/client/src/scss/abstracts/_mixins.scss @@ -25,13 +25,10 @@ } @mixin theme-color($theme) { - @if $theme=="light" { - @include color($font-color-light, - $bg-color-light); - } - @else if $theme=="dark" { - @include color($font-color-dark, - $bg-color-dark); + @if $theme== "light" { + @include color($font-color-light, $bg-color-light); + } @else if $theme== "dark" { + @include color($font-color-dark, $bg-color-dark); } } @@ -41,21 +38,48 @@ } } +@mixin m-screen-box { + @include m-screen(1250px) { + height: 80%; + width: 50%; + } + @include m-screen(900px) { + height: 80%; + width: 80%; + border-radius: 0px; + } + @include m-screen(1150px) { + height: 90%; + width: 60%; + } + @include m-screen(850px) { + height: 95%; + width: 80%; + } + @include m-screen(600px) { + height: 95%; + width: 98%; + } + @include m-screen(400px) { + padding: 0px; + } +} + @mixin line { &:after { - content: ''; + content: ""; width: 0px; height: 1px; display: flex; flex-direction: column; - content: ''; + content: ""; height: 2px; width: 0%; background-color: $primary-color-orange; } &:hover::after { - animation: afterLoad .8s ease-out; + animation: afterLoad 0.8s ease-out; width: 100%; } @@ -76,4 +100,4 @@ -moz-#{$property}: $value; -ms-#{$property}: $value; -o-#{$property}: $value; -} \ No newline at end of file +} diff --git a/client/src/scss/abstracts/_variables.scss b/client/src/scss/abstracts/_variables.scss index 6b700d9..17a1faa 100644 --- a/client/src/scss/abstracts/_variables.scss +++ b/client/src/scss/abstracts/_variables.scss @@ -11,4 +11,4 @@ $secondary-color-dark: #1a1a1a; $terciary-color-dark: #202020; $primary-color-orange: #ff872b; -$secondary-color-orange: #deb99b; \ No newline at end of file +$secondary-color-orange: #deb99b; diff --git a/client/src/scss/base/_base.scss b/client/src/scss/base/_base.scss index d986c46..2ee5cc8 100644 --- a/client/src/scss/base/_base.scss +++ b/client/src/scss/base/_base.scss @@ -17,8 +17,10 @@ main { min-height: calc(100vh - 80px); } -img, button, a{ +img, +button, +a { -webkit-user-select: none; user-select: none; - transition: .2s; -} \ No newline at end of file + transition: 0.2s; +} diff --git a/client/src/scss/base/_typography.scss b/client/src/scss/base/_typography.scss index f4ce812..458b4f0 100644 --- a/client/src/scss/base/_typography.scss +++ b/client/src/scss/base/_typography.scss @@ -1 +1 @@ -@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"); \ No newline at end of file +@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap"); diff --git a/client/src/scss/layouts/_cards.scss b/client/src/scss/layouts/_cards.scss index 0a94c8a..9a10e8e 100644 --- a/client/src/scss/layouts/_cards.scss +++ b/client/src/scss/layouts/_cards.scss @@ -6,6 +6,15 @@ @include m-screen(1400px) { min-height: 360px; } + @include m-screen(1120px) { + padding: 80px; + } + @include m-screen(820px) { + padding: 40px 60px; + } + @include m-screen(600px) { + padding: 40px; + } h1, h2 { @@ -19,6 +28,12 @@ @include m-screen(1400px) { font-size: 1.8rem; } + @include m-screen(1120px) { + font-size: 1.6rem; + } + @include m-screen(860px) { + font-size: 1.3rem; + } } h2 { @@ -28,6 +43,12 @@ @include m-screen(1400px) { font-size: 1.1rem; } + @include m-screen(1120px) { + font-size: 1rem; + } + @include m-screen(860px) { + font-size: 0.9rem; + } } .wrapper { diff --git a/client/src/scss/layouts/_contactUs.scss b/client/src/scss/layouts/_contactUs.scss index 30eb4c4..8448cbb 100644 --- a/client/src/scss/layouts/_contactUs.scss +++ b/client/src/scss/layouts/_contactUs.scss @@ -3,12 +3,28 @@ @include flex(row, space-around, center); height: 50vh; width: 100%; + @include m-screen(1000px) { + @include flex(row, center, center); + } + @include m-screen(680px) { + @include flex(column, center, center); + height: 60vh; + } .box { height: 100%; width: 25%; @include flex(column, center, flex-start); @include font-inter(300); + @include m-screen(1000px) { + width: 40%; + margin-inline: 10px; + } + @include m-screen(680px) { + width: 80%; + margin: 10px; + height: auto; + } h1 { color: $secondary-color-orange; @@ -141,4 +157,10 @@ } } } + + #box2 { + @include m-screen(680px) { + @include flex-center; + } + } } diff --git a/client/src/scss/layouts/_footer.scss b/client/src/scss/layouts/_footer.scss index d495197..194c162 100644 --- a/client/src/scss/layouts/_footer.scss +++ b/client/src/scss/layouts/_footer.scss @@ -4,13 +4,15 @@ footer { @include flex(column, space-evenly, center); @include font-inter(200); @include m-screen(1400px) { - font-size: 0.8rem; height: 200px; } @include m-screen(1120px) { - font-size: 0.7rem; height: 180px; } + @include m-screen(680px) { + height: 200px; + } + img { height: 40px; @include m-screen(1400px) { @@ -35,7 +37,9 @@ footer { color: $font-color-dark-2; font-size: 1rem; @include font-inter(700); - + @include m-screen(1400px) { + font-size: 0.8rem; + } &:hover { color: $secondary-color-orange; } @@ -52,6 +56,9 @@ footer { > p { color: $font-color-dark-2; font-size: 1rem; + @include m-screen(1400px) { + font-size: 0.8rem; + } @include font-inter(700); } } diff --git a/client/src/scss/layouts/_header.scss b/client/src/scss/layouts/_header.scss index f84b0f0..46156bd 100644 --- a/client/src/scss/layouts/_header.scss +++ b/client/src/scss/layouts/_header.scss @@ -4,9 +4,18 @@ header { height: 80px; @include flex(row, space-between, center); background-color: $secondary-color-dark; + @include m-screen(600px) { + padding: 10px 40px; + } + @include m-screen(500px) { + padding: 5px 30px; + } div { width: 100px; + @include m-screen(500px) { + width: 80px; + } img { height: 100%; @@ -19,6 +28,42 @@ header { > ul { @include flex(row, center, center); list-style-type: none; + @include m-screen(800px) { + @include flex(row-reverse, center, center); + } + + > li { + @include m-screen(800px) { + display: none; + } + } + + > li:last-child { + @include m-screen(800px) { + display: block; + } + } + + .hamburger { + display: none; + height: 25px; + width: 25px; + button { + height: 100%; + width: 100%; + background-color: transparent; + border: none; + filter: invert(100%); + img { + height: 100%; + width: 100%; + object-fit: cover; + } + } + @include m-screen(800px) { + display: block; + } + } li a { margin-inline: 10px; @@ -26,10 +71,11 @@ header { text-transform: uppercase; color: $font-color-dark; font-size: 0.8rem; + margin-top: 2px; @include flex(column, center, flex-start); @include font-inter(400); @include line; - @include m-screen(1120px){ + @include m-screen(1120px) { font-size: 0.7rem; margin-inline: 8px; } @@ -48,7 +94,7 @@ header { transition: 0.1s linear; @include line; @include flex-center; - @include m-screen(1120px){ + @include m-screen(1120px) { padding: 8px 18px; } diff --git a/client/src/scss/main.scss b/client/src/scss/main.scss index 78845c6..3289390 100644 --- a/client/src/scss/main.scss +++ b/client/src/scss/main.scss @@ -1,5 +1,5 @@ -@import 'abstracts/_mixins.scss'; -@import 'abstracts/_variables.scss'; +@import "abstracts/_mixins.scss"; +@import "abstracts/_variables.scss"; -@import 'base/_base.scss'; -@import 'base/typography'; \ No newline at end of file +@import "base/_base.scss"; +@import "base/typography"; diff --git a/client/src/scss/pages/aluno/_login.scss b/client/src/scss/pages/aluno/_login.scss index 59a905e..c4d7600 100644 --- a/client/src/scss/pages/aluno/_login.scss +++ b/client/src/scss/pages/aluno/_login.scss @@ -10,6 +10,11 @@ main { border-radius: 20px; padding: 20px; color: $font-color-dark; + @include m-screen(1600px) { + height: 75%; + width: 40%; + } + @include m-screen-box; nav { width: 100%; @@ -65,6 +70,14 @@ main { @include font-inter(300); font-size: 2.5rem; margin-top: 50px; + @include m-screen(1800px) { + margin-top: 30px; + font-size: 2rem; + } + @include m-screen(1250px) { + margin-top: 20px; + font-size: 1.8rem; + } } p { @@ -122,6 +135,9 @@ main { .d1 { width: 95%; + @include m-screen(1200px) { + width: 90%; + } } .d2 { @@ -146,6 +162,10 @@ main { .hide { background-image: url("../../assets/icons/olho-2.png"); } + + @include m-screen(1200px) { + width: 10%; + } } } @@ -160,12 +180,19 @@ main { @include font-inter(300); font-size: 0.8rem; } + + @include m-screen(600px) { + @include flex(row, flex-start, center); + } } .button-box { width: 100%; margin-top: 40px; @include flex(row, flex-start, center); + @include m-screen(1800px) { + margin-top:20px; + } button { height: 40px; @@ -185,12 +212,19 @@ main { color: $primary-color-orange; } } + + @include m-screen(600px) { + @include flex(row, flex-end, center); + } } } } #box1 { background-color: $secondary-color-dark; + @include m-screen(1150px) { + background-color: $primary-color-dark; + } } #box2 { @@ -200,4 +234,17 @@ main { height: 80%; transform: rotatey(180deg); } + + @include m-screen(1250px) { + height: 75%; + width: 30%; + } + @include m-screen(1250px) { + height: 75%; + width: 30%; + } + @include m-screen(1150px) { + display: none; + } + } diff --git a/client/src/scss/pages/aluno/_register.scss b/client/src/scss/pages/aluno/_register.scss index aee7b3b..0523012 100644 --- a/client/src/scss/pages/aluno/_register.scss +++ b/client/src/scss/pages/aluno/_register.scss @@ -19,6 +19,11 @@ main { border-radius: 20px; padding: 20px; color: $font-color-dark; + @include m-screen(1720px) { + height: 75%; + width: 40%; + } + @include m-screen-box; nav { width: 100%; @@ -74,6 +79,14 @@ main { @include font-inter(300); font-size: 2.5rem; margin-top: 10px; + @include m-screen(1600px) { + margin-top: 30px; + font-size: 2rem; + } + @include m-screen(1250px) { + margin-top: 20px; + font-size: 1.8rem; + } } .input-box { @@ -85,6 +98,9 @@ main { background-color: $terciary-color-dark; border-left: solid 3px $terciary-color-dark; margin: 15px 0px; + @include m-screen(1500px) { + height: 55px; + } &.focused { border-left: solid 3px $secondary-color-orange; @@ -123,6 +139,9 @@ main { .d1 { width: 95%; + @include m-screen(1200px) { + width: 90%; + } } .d2 { @@ -147,6 +166,10 @@ main { .hide { background-image: url("../../assets/icons/olho-2.png"); } + + @include m-screen(1200px) { + width: 10%; + } } } } @@ -187,6 +210,13 @@ p { color: $primary-color-orange; } } + + @include m-screen(1820px) { + margin-top: 20px; + } + @include m-screen(600px) { + @include flex(row, flex-end, center); + } } #box1 { @@ -196,8 +226,22 @@ p { height: 80%; transform: rotatey(180deg); } + @include m-screen(1250px) { + height: 75%; + width: 30%; + } + @include m-screen(1250px) { + height: 75%; + width: 30%; + } + @include m-screen(1150px) { + display: none; + } } #box2 { background-color: $secondary-color-dark; + @include m-screen(1150px) { + background-color: $primary-color-dark; + } } diff --git a/client/src/scss/pages/shared/_home.scss b/client/src/scss/pages/shared/_home.scss index e5c4496..cbc75c6 100644 --- a/client/src/scss/pages/shared/_home.scss +++ b/client/src/scss/pages/shared/_home.scss @@ -2,16 +2,16 @@ main { @include prefixer(min-height, auto); background-color: $secondary-color-dark; - >h1 { + > h1 { text-align: center; padding-top: 20px; @include font-inter(700); - letter-spacing: .3cm; + letter-spacing: 0.3cm; color: $primary-color-orange; - @include m-screen(1400px){ + @include m-screen(1400px) { padding-top: 18px; } - @include m-screen(1120px){ + @include m-screen(1120px) { padding-top: 16px; } } @@ -20,6 +20,13 @@ main { @include flex(row-reverse, center, center); height: 55vh; width: 100%; + @include m-screen(600px){ + height: 45vh; + } + + @include m-screen(400px){ + height: 40vh; + } .box { padding: 30px; @@ -27,34 +34,56 @@ main { height: 100%; @include flex(column, center, center); @include font-inter(400); + @include m-screen(600px){ + padding: 15px; + } * { margin: 20px 0; - @include m-screen(1400px){ + @include m-screen(1400px) { margin: 18px 0; } - @include m-screen(1120px){ + @include m-screen(1120px) { margin: 16px 0; } + @include m-screen(600px) { + margin: 6px 0; + } } .info { @include flex(column, center, flex-start); + .infoTitle { + @include flex(row, flex-start, center); + img{ + display: none; + height: 200px; + @include m-screen(750px){ + display: block; + } + @include m-screen(600px){ + height: 150px; + } + } + } h1 { color: $secondary-color-orange; font-size: 2rem; @include font-inter(700); - @include m-screen(1400px){ + @include m-screen(1400px) { font-size: 1.8rem; width: 90%; } - @include m-screen(1120px){ + @include m-screen(1120px) { font-size: 1.6rem; } - @include m-screen(860px){ + @include m-screen(860px) { font-size: 1.3rem; } + @include m-screen(400px) { + font-size: 1rem; + } } p { @@ -62,14 +91,20 @@ main { font-size: 1rem; color: $font-color-dark-2; @include font-inter(300); - @include m-screen(1120px){ + @include m-screen(1120px) { font-size: 0.8rem; width: 60%; } - @include m-screen(860px){ + @include m-screen(860px) { font-size: 0.7rem; width: 80%; } + @include m-screen(750px){ + width: 90%; + } + @include m-screen(600px){ + width: 100%; + } } a { @@ -77,22 +112,24 @@ main { padding: 10px 20px; border-radius: 20px; text-decoration: none; - transition: .7s; + transition: 0.7s; border: solid 1px $primary-color-orange; background-color: transparent; color: $primary-color-orange; - + @include m-screen(600px){ + display: none; + } + &:hover { @include color($secondary-color-dark, $primary-color-orange); } - @include m-screen(1120px){ + @include m-screen(1120px) { font-size: 0.7rem; padding: 8px 18px; } } } - } #box2 { @@ -100,18 +137,23 @@ main { background-position: center; background-size: 50%; background-repeat: no-repeat; - @include m-screen(1400px){ + @include m-screen(1400px) { width: 40%; } + @include m-screen(750px){ + display: none; + } } - #box1{ - @include m-screen(1400px){ + #box1 { + @include m-screen(1400px) { width: 60%; } + @include m-screen(750px){ + width: 90%; + } } } - } .aboutUs { @@ -124,4 +166,4 @@ main { height: 10vh; @include flex(column, center, flex-start); } -} \ No newline at end of file +} diff --git a/client/src/scss/pages/shared/_notFound.scss b/client/src/scss/pages/shared/_notFound.scss index 59e40e4..d2b0ce2 100644 --- a/client/src/scss/pages/shared/_notFound.scss +++ b/client/src/scss/pages/shared/_notFound.scss @@ -57,10 +57,10 @@ main { color: $secondary-color-dark; border: solid 1px $primary-color-orange; background-color: $primary-color-orange; - font-size: .9rem; + font-size: 0.9rem; border-radius: 3px; margin-top: 12%; - transition: .1s linear; + transition: 0.1s linear; @include font-inter(400); @include flex-center; @@ -70,4 +70,4 @@ main { } } } -} \ No newline at end of file +} diff --git a/client/src/scss/pages/shared/_perfilAluno.scss b/client/src/scss/pages/shared/_perfilAluno.scss index 6dc3d12..3f99c0b 100644 --- a/client/src/scss/pages/shared/_perfilAluno.scss +++ b/client/src/scss/pages/shared/_perfilAluno.scss @@ -2,4 +2,4 @@ main { height: calc(100vh - 80px); background-color: $primary-color-dark; @include flex-center; -} \ No newline at end of file +} diff --git a/client/src/scss/pages/shared/_perfilProfessor.scss b/client/src/scss/pages/shared/_perfilProfessor.scss index 6dc3d12..3f99c0b 100644 --- a/client/src/scss/pages/shared/_perfilProfessor.scss +++ b/client/src/scss/pages/shared/_perfilProfessor.scss @@ -2,4 +2,4 @@ main { height: calc(100vh - 80px); background-color: $primary-color-dark; @include flex-center; -} \ No newline at end of file +} diff --git a/client/src/services/api.js b/client/src/services/api.js index 12ea5fa..2826240 100644 --- a/client/src/services/api.js +++ b/client/src/services/api.js @@ -1,10 +1,10 @@ import axios from 'axios'; -const url = 'http://localhost:3333/' -// const url = 'https://536a8c3ee76a5fd349ca5407510dde345.serveo.net' +const server_url = 'http://localhost:3333/' +// const url = 'https://8f8cb937a1319a14d2b5c31410da01fd.serveo.net/' const api = axios.create({ - baseURL: url + baseURL: server_url }); export default api; \ No newline at end of file diff --git a/client/src/services/api/funcionario.js b/client/src/services/api/funcionario.js index f527fa6..57616b0 100644 --- a/client/src/services/api/funcionario.js +++ b/client/src/services/api/funcionario.js @@ -2,7 +2,7 @@ import api from '../api'; export const authFuncionario = async(token) => { try { - const response = await api.post('funcionario/auth', {}, { + const response = await api.get('funcionario/auth', { headers: { authorization: `${token}` } diff --git a/client/src/services/api/professor.js b/client/src/services/api/professor.js index 796fe3a..dcbb8e1 100644 --- a/client/src/services/api/professor.js +++ b/client/src/services/api/professor.js @@ -2,7 +2,7 @@ import api from '../api'; export const authProfessor = async(token) => { try { - const response = await api.post('professor/auth', {}, { + const response = await api.get('professor/auth', { headers: { authorization: `${token}` } diff --git a/client/src/socket.js b/client/src/socket.js index 0885926..dbbe696 100644 --- a/client/src/socket.js +++ b/client/src/socket.js @@ -3,8 +3,8 @@ export const socket = io("http://localhost:3333"); export const state = reactive({ connected: false - }); +}); socket.on("connect", () => { - state.connected = true; + state.connected = true; }); \ No newline at end of file diff --git a/client/src/views/admin/Login.vue b/client/src/views/admin/Login.vue index 1296290..65f3dde 100644 --- a/client/src/views/admin/Login.vue +++ b/client/src/views/admin/Login.vue @@ -97,7 +97,7 @@ export default { Cookies.set('token-admin', `${response.data.token}`, { expires: 10 }); alert("Tudo certo! 😉"); - router.push({path: "/admin"}); + router.push({ path: "/admin" }); } else { alert("Ops.. Algo deu errado. 😕\n" + response.message); } @@ -110,5 +110,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/admin/RegisterCoordenador.vue b/client/src/views/admin/RegisterCoordenador.vue index 332e2bf..e632666 100644 --- a/client/src/views/admin/RegisterCoordenador.vue +++ b/client/src/views/admin/RegisterCoordenador.vue @@ -8,7 +8,8 @@ @@ -46,11 +47,11 @@ export default { async submitForm() { try { const response = await registerCoordenador(this.coordenador.name, this.token); - + if (response.status >= 200 && response.status < 300) { alert("Tudo certo! 😉"); await this.GetProfessores(); - } else{ + } else { alert("Ops.. Algo deu errado. 😕\n" + response.message); } } catch (error) { @@ -76,5 +77,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/admin/RegisterCurso.vue b/client/src/views/admin/RegisterCurso.vue index fce2a62..a1279e4 100644 --- a/client/src/views/admin/RegisterCurso.vue +++ b/client/src/views/admin/RegisterCurso.vue @@ -88,10 +88,10 @@ export default { if (response.status >= 200 && response.status < 300) { alert("Tudo certo! 😉"); - } else{ + } else { alert("Ops.. Algo deu errado. 😕\n" + response.message); } - } catch(error){ + } catch (error) { alert("Ops.. Algo deu errado. 😕\n" + error.message); } }, @@ -114,5 +114,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/admin/RegisterFuncionario.vue b/client/src/views/admin/RegisterFuncionario.vue index 7674920..06ed93a 100644 --- a/client/src/views/admin/RegisterFuncionario.vue +++ b/client/src/views/admin/RegisterFuncionario.vue @@ -22,7 +22,7 @@
    - + @@ -79,17 +79,17 @@ export default { name: this.funcionario.name, email: this.funcionario.email, cargo: this.funcionario.cargo - }, + }, this.token ); - + if (response.status >= 200 && response.status < 300) { alert("Tudo certo! 😉"); - } else{ + } else { alert("Ops.. Algo deu errado. 😕\n" + response.message); } - } catch(error){ + } catch (error) { alert("Ops.. Algo deu errado. 😕\n" + error.message); } } @@ -103,5 +103,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/admin/RegisterProfessor.vue b/client/src/views/admin/RegisterProfessor.vue index da6380c..4c4865e 100644 --- a/client/src/views/admin/RegisterProfessor.vue +++ b/client/src/views/admin/RegisterProfessor.vue @@ -57,16 +57,16 @@ export default { name: this.professor.name, tituloPrincipal: this.professor.tituloPrincipal, email: this.professor.email - }, + }, this.token ); if (response.status >= 200 && response.status < 300) { alert("Tudo certo! 😉"); - } else{ + } else { alert("Ops.. Algo deu errado. 😕\n" + response.message); } - } catch(error){ + } catch (error) { alert("Ops.. Algo deu errado. 😕\n" + error.message); } } @@ -81,5 +81,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/admin/RegisterTurma.vue b/client/src/views/admin/RegisterTurma.vue index 00bcd3e..93aebda 100644 --- a/client/src/views/admin/RegisterTurma.vue +++ b/client/src/views/admin/RegisterTurma.vue @@ -8,7 +8,7 @@
    - +
    @@ -18,7 +18,7 @@ - + @@ -34,7 +34,7 @@ import Header from '../../components/Header.vue'; import Footer from '../../components/Footer.vue'; import { mixinAdmin } from '../../util/authMixins.js'; -import { registerTurma, getCursos} from '../../services/api/admin'; +import { registerTurma, getCursos } from '../../services/api/admin'; export default { name: 'RegisterTurma', @@ -71,16 +71,16 @@ export default { inicio: this.turma.inicio, fim: this.turma.fim, cursoName: this.turma.curso - }, + }, this.token ); if (response.status >= 200 && response.status < 300) { alert("Tudo certo! 😉"); - } else{ + } else { alert("Ops.. Algo deu errado. 😕\n" + response.message); } - } catch(error){ + } catch (error) { alert("Ops.. Algo deu errado. 😕\n" + error.message); } }, @@ -104,5 +104,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/aluno/Complete.vue b/client/src/views/aluno/Complete.vue index db23f44..ec45571 100644 --- a/client/src/views/aluno/Complete.vue +++ b/client/src/views/aluno/Complete.vue @@ -7,11 +7,12 @@

    Termine seu registro

    - +
    - +
    - +
    - +
    @@ -69,7 +70,7 @@ export default { rm: '' }, alerts: { - + }, focused: { nascimentoFocused: false, @@ -106,11 +107,11 @@ export default { } } }, - created(){ + created() { this.aluno.email = Cookies.get('email-aluno'); } } \ No newline at end of file diff --git a/client/src/views/aluno/Home.vue b/client/src/views/aluno/Home.vue index ce41bc8..c97a49b 100644 --- a/client/src/views/aluno/Home.vue +++ b/client/src/views/aluno/Home.vue @@ -24,7 +24,7 @@ export default { }, data() { return { - + } }, methods: { @@ -38,5 +38,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/aluno/Login.vue b/client/src/views/aluno/Login.vue index fe89ed2..f8b0604 100644 --- a/client/src/views/aluno/Login.vue +++ b/client/src/views/aluno/Login.vue @@ -29,8 +29,8 @@ @focus="passwordFocused = true" @blur="passwordFocused = false">
    - +
    @@ -97,15 +97,15 @@ export default { }); if (response.status >= 200 && response.status < 300) { - (Cookies.get('token'))? Cookies.remove('token') : null; - (Cookies.get('email-aluno'))? Cookies.remove('email-aluno') : null; - (Cookies.get('completed'))? Cookies.remove('completed') : null; - - Cookies.set("token",`${response.data.token}`); - Cookies.set("completed", (response.data.aluno.rm? "true" : "false")); + (Cookies.get('token')) ? Cookies.remove('token') : null; + (Cookies.get('email-aluno')) ? Cookies.remove('email-aluno') : null; + (Cookies.get('completed')) ? Cookies.remove('completed') : null; + + Cookies.set("token", `${response.data.token}`); + Cookies.set("completed", (response.data.aluno.rm ? "true" : "false")); Cookies.set('email-aluno', this.userAluno.email) - router.push({ path: '/aluno'}); + router.push({ path: '/aluno' }); alert("Tudo certo! 😉"); } else { alert("Ops.. Algo deu errado. 😕\n" + response.message); @@ -118,5 +118,5 @@ export default { } \ No newline at end of file diff --git a/client/src/views/aluno/Profile.vue b/client/src/views/aluno/Profile.vue index 925e9f9..6a735f2 100644 --- a/client/src/views/aluno/Profile.vue +++ b/client/src/views/aluno/Profile.vue @@ -25,5 +25,5 @@ export default { } \ No newline at end of file diff --git a/client/src/views/aluno/Recovery.vue b/client/src/views/aluno/Recovery.vue index 0ce34b8..1b04cfa 100644 --- a/client/src/views/aluno/Recovery.vue +++ b/client/src/views/aluno/Recovery.vue @@ -91,5 +91,5 @@ export default { } \ No newline at end of file diff --git a/client/src/views/aluno/Register.vue b/client/src/views/aluno/Register.vue index f6d9ebe..5ab054d 100644 --- a/client/src/views/aluno/Register.vue +++ b/client/src/views/aluno/Register.vue @@ -25,7 +25,7 @@ @blur="focused.nameFocused = false" required> - +
    @@ -59,8 +59,9 @@
    - +
    @@ -75,8 +76,9 @@
    - +
    @@ -220,7 +222,7 @@ export default { alert("Tudo certo! 😉"); } else { - alert("Ops.. Algo deu errado. 😕\n" + response.message); + alert("Ops.. Algo deu errado. 1😕\n" + response); } } catch (error) { alert("Ops.. Algo deu errado. 😕\n" + error.message); @@ -230,5 +232,5 @@ export default { } \ No newline at end of file diff --git a/client/src/views/aluno/ValidateRecovery.vue b/client/src/views/aluno/ValidateRecovery.vue index b5b075e..5caf31e 100644 --- a/client/src/views/aluno/ValidateRecovery.vue +++ b/client/src/views/aluno/ValidateRecovery.vue @@ -14,8 +14,9 @@

    Termine sua recuperação

    -

    É necessário informar a senha temporária de recuperação enviada no email e criar um senha nova para logar na plataforma.

    - +

    É necessário informar a senha temporária de recuperação enviada no email e criar um senha nova para + logar na plataforma.

    +
    @@ -209,10 +211,10 @@ export default { this.alerts.alertPass = true; } }, - cnpjValidate(){ + cnpjValidate() { this.alerts.alertCNPJ = false; - if (this.empresa.cnpj.length != 14 && this.empresa.cnpjExibido.length > 0){ + if (this.empresa.cnpj.length != 14 && this.empresa.cnpjExibido.length > 0) { this.alerts.alertCNPJ = true; } }, @@ -243,5 +245,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/empresa/Validate.vue b/client/src/views/empresa/Validate.vue index 235d35d..b523243 100644 --- a/client/src/views/empresa/Validate.vue +++ b/client/src/views/empresa/Validate.vue @@ -15,7 +15,8 @@

    Finalize seu registro

    -

    Para sua segurança te enviamos um código de verificação no email inserido anteriormente, termine seu registro inserindo-o abaixo +

    Para sua segurança te enviamos um código de verificação no email inserido anteriormente, termine + seu registro inserindo-o abaixo

    @@ -189,5 +190,5 @@ export default { \ No newline at end of file diff --git a/client/src/views/empresa/ValidateRecovery.vue b/client/src/views/empresa/ValidateRecovery.vue index a744268..320fb11 100644 --- a/client/src/views/empresa/ValidateRecovery.vue +++ b/client/src/views/empresa/ValidateRecovery.vue @@ -14,7 +14,8 @@

    Termine sua recuperação

    -

    É necessário informar a senha temporária de recuperação enviada no email e criar um senha nova para logar na plataforma.

    +

    É necessário informar a senha temporária de recuperação enviada no email e criar um senha nova para + logar na plataforma.