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
import { VueNativeBase } from "native-base"; | |
Vue.use(VueNativeBase); |
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
<template> | |
<nb-container> | |
<view> | |
<nb-text>Hello world</nb-text> | |
</view> | |
</nb-container> | |
</template> |
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
<script> | |
import { StackNavigator, DrawerNavigator } from "vue-native-router"; | |
const AppNavigation = StackNavigator( | |
{ | |
Login: { screen: LoginScreen }, | |
Drawer: { screen: Drawer } | |
}, | |
{ | |
initialRouteName: "Login", | |
headerMode: "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
<script> | |
import { required, email } from 'vuelidate/lib/validators' | |
export default { | |
data: function() { | |
return { | |
emailValue: '', | |
password : '' | |
} | |
}, | |
validations: { |
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
<nb-form> | |
<nb-item :error="(!$v.emailValue.required || !$v.emailValue.email ) && $v.emailValue.$dirty"> | |
<nb-input placeholder="Email" v-model="emailValue" auto-capitalize="none" :on-blur="() => $v.emailValue.$touch()"/> | |
</nb-item> | |
<nb-item last :error="!$v.password.required && $v.password.$dirty"> | |
<nb-input placeholder="Password" v-model="password" auto-capitalize="none" secure-text-entry :on-blur="() => $v.password.$touch()" /> | |
</nb-item> | |
</nb-form> |
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
const store = new Vuex.Store({ | |
actions, | |
mutations, | |
state: { | |
activeType: 'posts', | |
posts: [], | |
logging_in: false, | |
userObj: {}, | |
loadingPosts: false | |
} |
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
<template> | |
<view> | |
<nb-list> | |
<item v-for="(itemType, types) in items" :data="itemType" /> | |
</nb-list> | |
<view/> | |
</template> | |
<script> | |
import store from "../../store"; | |
export default { |
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
<script> | |
export default { | |
data: { | |
loaded: false | |
} | |
created() { | |
asyncStorage.getItem('email').then((val) => { | |
if (val) { | |
this.loaded = true | |
this.navigation.navigate('Home') |
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
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Html.Events exposing (onClick, onInput, onSubmit) | |
type alias Model = | |
{ email : String | |
, message : String | |
, submitting : Bool | |
} |
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
(function (root) { | |
const compose = (f, g) => x => f (g (x)); | |
root.helpers = { | |
compose, | |
}; | |
}) (window); |
OlderNewer