Skip to content

Instantly share code, notes, and snippets.

View pongsatt's full-sized avatar

Pongsatorn Tonglairoum pongsatt

  • Bangkok, Thailand
View GitHub Profile
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http';
import { InMemoryCache } from 'apollo-cache-inmemory';
import { onError } from 'apollo-link-error';
import { ApolloLink, RequestHandler, Operation, NextLink } from 'apollo-link';
import store from './';
const cache = new InMemoryCache();
const link = new HttpLink({ uri: 'http://localhost:4000' });
<template>
<div class="googleyolo">
<v-btn light v-if="!loggedIn && useLoginButton" @click="login">Login</v-btn>
<v-menu v-if="user" bottom left offset-y>
<v-btn slot="activator" icon large>
<v-avatar size="32px">
<img
:src="user.picture"
alt="profile_picture"
>
@pongsatt
pongsatt / addDev.sh
Created April 28, 2018 04:33
How to setup NodeJs in typescript from scratch
yarn add -D typescript @types/node ts-node nodemon