Skip to content

Commit

Permalink
Iniciado meta 20
Browse files Browse the repository at this point in the history
Criado componente para comparação de emails
ajustes de estilo CSS para responsividade
  • Loading branch information
urielfcampos committed Jun 21, 2019
1 parent 93e0305 commit bf32646
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 30 deletions.
35 changes: 35 additions & 0 deletions components/emailListCompare.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<template>
<div class="box">
<b-tabs position="is-centered" class="block">
<b-tab-item label="Emails a serem adicionados">
<div v-for="student in students" :key="student.id">{{ student }}</div>
</b-tab-item>
<b-tab-item label="Emails a serem removidos"></b-tab-item>
</b-tabs>
<div class="level">
<div class="level-right">
<div class="level-item">
<button class="button is-primary">
Confirmar Alterações
</button>
</div>
</div>
</div>
</div>
</template>

<script>
export default {
name: 'EmailCompare',
data() {
return {
students: [
{ id: 1, name: 'something1', email: '[email protected]' },
{ id: 2, name: 'something1', email: '[email protected]' }
]
}
}
}
</script>

<style></style>
3 changes: 3 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,7 @@ export default {
height: unset;
min-height: 100vh;
}
.container {
margin: 4rem auto 4rem auto;
}
</style>
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"nuxt-fontawesome": "^0.4.0",
"p-debounce": "^2.1.0",
"rimraf": "^2.6.3",
"sqlite3": "^4.0.6"
"sqlite3": "^4.0.8"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^0.0.1",
Expand Down
6 changes: 0 additions & 6 deletions pages/allStudents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,3 @@ export default {
}
}
</script>

<style>
.container {
height: 100vh;
}
</style>
38 changes: 27 additions & 11 deletions pages/emailList.vue
Original file line number Diff line number Diff line change
@@ -1,32 +1,48 @@
<template>
<div class="container">
<div v-if="courseTag" class="container">
<export-email-list></export-email-list>
<div class="container">
<search-input
:key="courseTag"
:default-course="courseTag"
:title="'Lista de Email - Ativos'"
:is-active="1"
></search-input>
<button class="button is-primary" @click="activateModal"></button>
<b-modal :active.sync="activate">
<email-compare></email-compare>
</b-modal>
</div>
</div>
</template>

<script>
import { mapState } from 'vuex'
import ExportEmailList from '~/components/exportEmailList'
import EmailCompare from '../components/emailListCompare'
import SearchInput from '../components/searchInput'
export default {
name: 'Email',
middleware: 'auth',
middleware: ['auth', 'course'],
components: {
ExportEmailList
EmailCompare,
SearchInput
},
data() {
return {
activate: false
}
},
computed: {
...mapState({
courseTag: state => state.courseTag
})
},
methods: {
activateModal() {
this.activate = !this.activate
}
}
}
</script>

<style>
.container {
height: 100vh;
}
</style>
6 changes: 0 additions & 6 deletions pages/formingStudents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,3 @@ export default {
}
}
</script>

<style scoped>
.container {
margin: 50px auto 50px auto;
}
</style>

0 comments on commit bf32646

Please sign in to comment.