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> | |
<form method="post" accept-charset="UTF-8"> | |
<label for="loginName">Username or email</label> | |
<input v-model="loginName" id="loginName" type="text" name="loginName" /> | |
<label for="password">Password</label> | |
<input v-model="password" id="password" type="password" name="password" /> | |
<label> | |
<input v-model="rememberMe" type="checkbox" name="rememberMe" /> |
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
const { setContext } = require('apollo-link-context'); | |
const { HttpLink } = require('apollo-link-http'); | |
const { introspectSchema, makeRemoteExecutableSchema } = require('graphql-tools'); | |
const fetch = require('node-fetch'); | |
module.exports = function(api) { | |
api.createSchema(async function(graphql) { | |
const http = new HttpLink({ | |
uri: 'http://example.com/api', | |
fetch |
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
{# Macro #} | |
{% macro getState(abbr) %} | |
{% set states = { | |
'AL' : 'Alabama', | |
'AK' : 'Alaska', | |
'AZ' : 'Arizona', | |
'AR' : 'Arkansas', | |
'CA' : 'California', | |
'CO' : 'Colorado', | |
'CT' : 'Connecticut', |
NewerOlder