I hereby claim:
- I am michalbujalski on github.
- I am bujal (https://keybase.io/bujal) on keybase.
- I have a public key ASCcFlH2O4Lq_zZuIwx7foZaSuKBzb1HfLXyC5VKvJYVZgo
To claim this, I am signing this object:
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
All Clickable Views: | |
----------- | |
* ripple effect (Lollipop only) -- "colorControlHighlight" | |
Status Bar: | |
------------ | |
* background (Lollipop only) - "colorPrimaryDark" |
I hereby claim:
To claim this, I am signing this object:
import Vue from 'vue' | |
import Vuex from 'vuex' | |
Vue.use(Vuex) | |
const state = { | |
user: null | |
} | |
const mutations = { |
import store from './store' | |
import Firebase from 'firebase' | |
const config = { | |
apiKey: <YOUR_API_KEY> | |
authDomain: <YOUR_DOMAIN>, | |
databaseURL: <DB_URL>, | |
projectId: <PROJECT_ID>, | |
storageBucket: <STORAGE_BUCKET>, | |
messagingSenderId: <MESSAGING_SENDER_ID> |
import Vue from 'vue' | |
import Router from 'vue-router' | |
import Home from '../views/Home' | |
import SignIn from '../views/SignIn' | |
import SignOut from '../views/SignOut' | |
import Profile from '../views/Profile' | |
import store from '../store' | |
Vue.use(Router) |
<template> | |
<form @submit.prevent="onSubmit" > | |
<input v-model="login" type="text"/> | |
<input v-model="password" type="password"/> | |
<input type="submit" value="Login"/> | |
</form> | |
</template> | |
<script> | |
import {mapGetters} from 'vuex' | |
export default { |
class SomeFormPresenter{ | |
fun submitForm(){ | |
api.update(view?.username ?: '') | |
} | |
} |
class SomeFormPresenter{ | |
fun submitForm(username:String){ | |
api.update(username) | |
} | |
} |
@Test | |
fun `update username, success`(){ | |
val testUsername = "John Doe" | |
whenever(view.username).thenReturn(testUsername) | |
presenter.submitForm() | |
} |