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 { | |
getMyProfile, getProfileByScreenName, getImageUploadUrl, editMyProfile, | |
getMyTimeline, tweet, getTweets, | |
like, unlike, retweet, unretweet, reply, | |
follow, unfollow, | |
getFollowers, getFollowing, | |
search, | |
getHashTag, | |
getOnNotifiedSubscription, | |
listConversations, |
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> | |
<div id="app" class="flex container h-full w-full"> | |
<div class="flex container h-full w-full"> | |
<SideNav/> | |
<div class="w-full sm:w-1/3 md:w-1/2 lg:w-1/2 h-full overflow-y-scroll hidden md:block"> | |
<div class="px-5 py-3 border-b border-lighter flex" @click="deselectAll()"> | |
<h1 class="text-xl font-bold flex-1">Messages</h1> | |
<i class="fas fa-cog text-xl text-blue cursor-pointer"></i> | |
<i @click="newMessage()" class="fas fa-plus-circle ml-3 text-xl text-blue cursor-pointer"></i> |
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
## Query.nearbyBikeStations.req.vtl | |
#set( $distance = $util.defaultIfNull($ctx.args.m, 500) ) | |
#set( $limit = $util.defaultIfNull($ctx.args.limit, 10) ) | |
{ | |
"version": "2017-02-28", | |
"operation": "GET", | |
"path": "/bikepoint/doc/_search", | |
"params": { | |
"body": { | |
#if( $context.args.nextToken )"search_after": ["$context.args.nextToken"], #end |
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 { Auth } from 'aws-amplify' | |
import router from '../../../router' | |
export default { | |
loginUser({ commit }, user) { | |
commit("USER_LOGIN", user); | |
}, | |
async logoutUser({ commit, dispatch }) { | |
await Auth.signOut({ | |
global: true |
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
export default { | |
PROFILE_SET(state, profile) { | |
state.profile = profile; | |
}, | |
TWITTER_TIMELINE(state, { tweets, nextToken }) { | |
state.tweets.tweets = tweets; | |
state.tweets.nextToken = nextToken; | |
}, | |
TWITTER_CREATE(state, newTweet) { |
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> | |
<div id="app" class="flex container h-full w-full"> | |
<div class="flex container h-full w-full"> | |
<SideNav /> | |
<div class="w-full md:w-1/2 h-full overflow-y-scroll"> | |
<div class="px-5 py-3 border-lighter flex items-center justify-between"> | |
<h1 class="text-xl font-bold">Notifications</h1> | |
<i class="fas fa-cog text-xl text-blue"></i> | |
</div> |
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> | |
<div id="app" class="flex container h-screen w-full"> | |
<div class="flex container h-screen w-full"> | |
<SideNav /> | |
<div class="w-full md:w-2/3 lg:w-1/2 h-full overflow-y-scroll" v-scroll:bottom="loadMore"> | |
<div class="px-5 py-3 border-b border-lighter flex items-center"> | |
<button @click="gotoHome()" class="rounded-full md:pr-2 focus:outline-none hover:bg-lightblue"> | |
<i class="fas fa-arrow-left text-blue"></i> | |
</button> |
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 linkifyHtml from 'linkify-html'; | |
import 'linkify-plugin-hashtag'; | |
import 'linkify-plugin-mention'; | |
const options = { | |
formatHref: { | |
hashtag: (href) => `#/hashtag?m=Latest&hash=${Date.now()}&q=${escape('#' + href.substr(1))}`, | |
mention: (href) => `#/${href.substr(1)}` | |
}, | |
target: (href, type) => (type=='mention' || type=='hashtag')? undefined : '_blank', |
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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
html, body {height: 100%;} | |
button:focus, input:focus { | |
outline: none; | |
} |