-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from VitorCarvalho67/dev
Create first table area for admin
- Loading branch information
Showing
10 changed files
with
1,251 additions
and
1,360 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
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,66 @@ | ||
main { | ||
height: calc(100vh - 80px); | ||
background-color: $primary-color-dark; | ||
@include flex-center; | ||
} | ||
|
||
.path { | ||
width: 100%; | ||
@include flex(row, flex-start, center); | ||
|
||
font-size: 0.9rem; | ||
@include font-inter(300); | ||
margin-bottom: 20px; | ||
> p { | ||
@include flex(column, center, center); | ||
@include font-inter(400); | ||
|
||
&:after { | ||
width: 100%; | ||
height: 3px; | ||
margin-top: 3px; | ||
background-color: $secondary-color-orange; | ||
} | ||
|
||
&:hover::after { | ||
animation: none; | ||
} | ||
} | ||
|
||
img { | ||
@include flex(column, center, center); | ||
width: 15px; | ||
transform: rotate(180deg); | ||
filter: invert(100%); | ||
margin-inline: 20px; | ||
} | ||
} | ||
|
||
.table { | ||
display: flex; | ||
flex-direction: column; | ||
width: 100%; | ||
|
||
.table-header { | ||
border-left: 3px solid $secondary-color-orange; | ||
font-size: 1rem; | ||
@include font-inter(600); | ||
color: $font-color-dark; | ||
} | ||
|
||
.table-row { | ||
display: flex; | ||
flex-direction: row; | ||
|
||
} | ||
|
||
.table-cell { | ||
flex: 1; | ||
padding: 8px; | ||
border-right: 1px solid #ddd; | ||
|
||
&:last-child { | ||
border-right: none; | ||
} | ||
} | ||
} |
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,91 @@ | ||
<template> | ||
<Header /> | ||
<div id="app"> | ||
<main> | ||
<AsideDashboard pageName='home' /> | ||
<div class="content"> | ||
<div class="path"> | ||
<p>Dashboard</p> | ||
<img :src="anguloIcon" alt=""> | ||
<p>Tabelas</p> | ||
<img :src="anguloIcon" alt=""> | ||
<p>Coordenadores</p> | ||
</div> | ||
<div class="table"> | ||
<div class="table-header"> | ||
<div class="table-row"> | ||
<div class="table-cell">Nome dos coordenadores Registrados</div> | ||
</div> | ||
</div> | ||
<div class="table-body"> | ||
<div class="table-row" v-for="coordenador in coordenadores" :key="coordenador.id"> | ||
<div class="table-cell">{{ coordenador.name }}</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</div> | ||
</template> | ||
|
||
|
||
<script> | ||
import Header from '../../components/Header.vue'; | ||
import AsideDashboard from '../../components/admin/AsideDashboard.vue'; | ||
import anguloIcon from '../../assets/icons/angulo.png'; | ||
import { mixinAdmin } from '../../util/authMixins.js'; | ||
import { getCoordenadores } from '../../services/api/admin'; | ||
export default { | ||
name: 'TableCoordenadores', | ||
components: { | ||
Header, | ||
AsideDashboard, | ||
}, | ||
data() { | ||
return { | ||
anguloIcon, | ||
coordenadores: [] | ||
} | ||
}, | ||
methods: { | ||
async fetchCoordenadores() { | ||
const data = await getCoordenadores(this.admin.token); | ||
console.log('Received coordenadores data:', data.data); | ||
this.coordenadores = data.data; | ||
} | ||
}, | ||
mixins: [mixinAdmin], | ||
async created() { | ||
this.getToken(); | ||
await this.fetchCoordenadores(); | ||
} | ||
} | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "../../scss/pages/admin/_tableCoordenador.scss"; | ||
#app { | ||
display: flex; | ||
flex-direction: column; | ||
min-height: calc(100vh - 80px); | ||
main { | ||
display: flex; | ||
overflow: hidden; | ||
.content { | ||
flex: 1; | ||
padding: 20px; | ||
overflow-y: auto; | ||
height: 100%; | ||
@media (max-width: 1000px) { | ||
width: calc(100% - 100px); | ||
} | ||
} | ||
} | ||
} | ||
</style> |
Empty file.
Empty file.
Empty file.
Empty file.
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
Oops, something went wrong.