Skip to content

Commit

Permalink
Edit Views nayarahilton#3
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjs committed Dec 1, 2017
1 parent ab50fe7 commit 6391f7e
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 21 deletions.
24 changes: 16 additions & 8 deletions src/views/CameraView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,35 @@
link="/home"
title="Postar"
/>
<tabs-bottom />
<tabs-bottom-guru />
</header>
<section class="post-section">
<photo-upload :src="imageData" labelText="Escolha uma foto" />
<main-textarea v-model="title" value="title" placeholder="Escreva uma legenda"></main-textarea>
<main-button text-inner="Postar conteúdo" @click.prevent.native="post">
</main-button>
<photo-upload
:src="imageData"
labelText="Escolha uma foto"
/>
<main-textarea
v-model="title"
placeholder="Escreva uma legenda"
/>
<main-button
text-inner="Postar conteúdo"
@click.prevent.native="post"
/>
</section>
</div>
</template>
<script>
import postContent from '@/mixins/postContent';
import StatusBar from '@/components/StatusBar';
import MainButton from '@/components/MainButton';
import TabsBottom from '../components/TabsBottom';
import TabsBottomGuru from '../components/TabsBottomGuru';
import PhotoUpload from '../components/PhotoUpload';
import MainTextarea from '../components/MainTextarea';
export default {
mixins: [postContent],
data: function returnImageData() {
data() {
return {
title: '',
imageData: 'postar',
Expand All @@ -34,7 +42,7 @@ export default {
components: {
'main-button': MainButton,
'status-bar': StatusBar,
'tabs-bottom': TabsBottom,
'tabs-bottom-guru': TabsBottomGuru,
'photo-upload': PhotoUpload,
'main-textarea': MainTextarea,
},
Expand Down
6 changes: 3 additions & 3 deletions src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<header class="home-header">
<slider-items />
<tabs-top :links="linksTop" />
<tabs-bottom />
<tabs-bottom-guru />
</header>
<main class="home-main">
<post-card resume="true" />
Expand All @@ -15,7 +15,7 @@
import SliderItems from '@/components/SliderItems';
import PostCard from '@/components/PostCard';
import TabsTop from '../components/TabsTop';
import TabsBottom from '../components/TabsBottom';
import TabsBottomGuru from '../components/TabsBottomGuru';
export default {
data() {
Expand All @@ -37,7 +37,7 @@ export default {
components: {
'slider-items': SliderItems,
'tabs-top': TabsTop,
'tabs-bottom': TabsBottom,
'tabs-bottom-guru': TabsBottomGuru,
'post-card': PostCard,
},
};
Expand Down
6 changes: 3 additions & 3 deletions src/views/ProfileView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</div>

<post-card />
<tabs-bottom />
<tabs-bottom-guru />
</div>
</template>

Expand All @@ -28,7 +28,7 @@ import { find } from 'lodash';
import StatusBar from '@/components/StatusBar';
import PostCard from '@/components/PostCard';
import ProfileResume from '@/components/ProfileResume';
import TabsBottom from '../components/TabsBottom';
import TabsBottomGuru from '../components/TabsBottomGuru';
export default {
data() {
Expand All @@ -40,7 +40,7 @@ export default {
'status-bar': StatusBar,
'post-card': PostCard,
'profile-resume': ProfileResume,
'tabs-bottom': TabsBottom,
'tabs-bottom-guru': TabsBottomGuru,
},
mounted() {
this.card = find(this.$root.card, card => card['.key'] === this.$route.params.id);
Expand Down
6 changes: 3 additions & 3 deletions src/views/QuestionsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
link="/home"
title="Perguntas"
/>
<tabs-bottom />
<tabs-bottom-guru />
</header>
<main class="questions-main">
<main-titles
Expand All @@ -21,7 +21,7 @@
import StatusBar from '@/components/StatusBar';
import MainTitles from '@/components/MainTitles';
import QuestionBox from '@/components/QuestionBox';
import TabsBottom from '../components/TabsBottom';
import TabsBottomGuru from '../components/TabsBottomGuru';
export default {
data() {
Expand Down Expand Up @@ -50,7 +50,7 @@ export default {
'status-bar': StatusBar,
'question-box': QuestionBox,
'main-titles': MainTitles,
'tabs-bottom': TabsBottom,
'tabs-bottom-guru': TabsBottomGuru,
},
};
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/views/RegisterView.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="register">
<status-bar
:link="{ name: 'bemvindo' }"
link="/bemvindo"
title="Cadastro"
/>
<main class="register-main">
Expand Down
23 changes: 20 additions & 3 deletions src/views/WelcomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
placeholder="Email"
design="login"
v-model="email"
@input="$v.email.$touch()"
:class="{ 'input--invalid': $v.email.$error }"
/>
<feedback
v-if="!$v.email.email"
msgText="E-mail incorreto"
design="login"
/>
<main-input
type="password"
Expand All @@ -32,6 +39,7 @@
</router-link>
<button
class="submit-button"
:disabled="$v.$invalid"
>
Entrar
</button>
Expand All @@ -42,10 +50,12 @@
</template>

<script>
import { required, email } from 'vuelidate/lib/validators';
import store from '@/services/store';
import SocialButton from '../components/SocialButton';
import MainButton from '../components/MainButton';
import MainInput from '../components/MainInput';
import FeedbackMessage from '../components/FeedbackMessage';
export default {
store,
Expand All @@ -58,9 +68,16 @@ export default {
};
},
components: {
'social-button': SocialButton,
'main-button': MainButton,
'main-input': MainInput,
SocialButton,
MainButton,
MainInput,
feedback: FeedbackMessage,
},
validations: {
email: {
required,
email,
},
},
methods: {
onSubmit() {
Expand Down

0 comments on commit 6391f7e

Please sign in to comment.