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 { printAST } from 'apollo-client'; | |
import Config from 'react-native-config'; | |
const isConnected = true; | |
export default () => { | |
return { | |
async query(request) { | |
if (!isConnected) { | |
return new Promise.reject(new Error('no-connection')) |
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
Homebrew build logs for homebrew/php/php71 on macOS 10.12 | |
Build date: 2016-10-17 13:14:50 |
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.Calendar.onCreated(function () { | |
const instance = this; | |
instance.viewDate = new ReactiveVar(); | |
instance.autorun(() => { | |
const viewDate = instance.viewDate.get(); | |
if (typeof viewDate !== 'undefined') { | |
const startDate = Math.round(viewDate.start / 1000); |
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.maintenance.onCreated(function() { | |
this.subscribed = new ReactiveVar(false); | |
this.errorMessage = new ReactiveVar(null); | |
this.subscribing = new ReactiveVar(false); | |
}); | |
Template.maintenance.helpers({ | |
'subscribed': function () { | |
return Template.instance().subscribed.get(); | |
}, |