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 axios from 'axios' | |
export default() => { | |
return axios.create({ | |
baseURL: `http://jsonplaceholder.typicode.com/`, | |
headers: { | |
'Accept': 'application/json', | |
'Content-Type': 'application/json', | |
} | |
}) |
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> | |
<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> |
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> | |
<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" /> |
OlderNewer