Skip to content

Instantly share code, notes, and snippets.

View happychallenge's full-sized avatar

Happy Challenge happychallenge

View GitHub Profile
@happychallenge
happychallenge / Api.js
Last active September 25, 2019 03:23
Vuex Axios 를 이용한 Todo List 개발
import axios from 'axios'
export default() => {
return axios.create({
baseURL: `http://jsonplaceholder.typicode.com/`,
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
}
})
@happychallenge
happychallenge / FloatLabel.vue
Created October 23, 2019 05:48
NativeScript Vue example
<template>
<GridLayout rows="30, auto" marginBottom="5">
<Label ref="label" row="1" :text="placeholder" opacity="0.4"
fontSize="14" class="input" />
<TextField ref="textField" :secure="secure" row="1" @focus="onFocus"
@blur="onBlur" borderBottomWidth="3" borderBottomColor="#cec8c8"
padding="0" />
</GridLayout>
</template>
<template>
<Page class="page">
<ActionBar title="Geolocation" class="action-bar" />
<ScrollView>
<StackLayout class="home-panel">
<Image src="~/images/map-marker-icon.png" height="60" />
<Button text="Get My Location" @tap="getLocation" class="btn btn-primary" />
<Label :text="'Latitude: ' + lat" class="lbl" />
<Label :text="'Longitude: ' + lon" class="lbl" />