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 moment from 'moment'; | |
moment.updateLocale('en', { | |
monthsShort: [ | |
"Jan", "Feb", "Mar", "Apr", "May", "Jun", | |
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" | |
], | |
}); | |
export default function time(_date) { |
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 Moment from 'moment'; | |
export default { | |
profile: state => state.profile, | |
tweets: state => state.tweets.tweets, | |
nextTokenTweets: state => state.tweets.nextToken, | |
joinedDate: state => Moment(state.profile.createdAt).format('MMMM YYYY'), | |
isSelf: state => screenName => state.profile.screenName == screenName, | |
followers: state => state.followers.followers, | |
nextTokenFollowers: state => state.followers.nextToken, |
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
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) { |