This file contains hidden or 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 { ApolloClient, createNetworkInterface } from 'react-apollo' | |
| import { SubscriptionClient, addGraphQLSubscriptions } from 'subscriptions-transport-ws' | |
| const uri = 'http://localhost:4000/graphql' | |
| const subscriptionsURI = 'ws://localhost:4000/' | |
| let apolloClient = null | |
| function _initClient (headers, initialState, subscriptionsInterface) { | |
| return new ApolloClient({ | |
| initialState, |
This file contains hidden or 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
| { | |
| "rules": { | |
| ".read": "auth != null", | |
| "users": { | |
| "$userId": { | |
| ".write": "$userId === auth.uid" | |
| } | |
| } | |
| } | |
| } |
This file contains hidden or 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 React, { Component } from 'react' | |
| import logo from './logo.svg' | |
| import './App.css' | |
| import { Route, Link, Redirect } from './Zero' | |
| const paths = [ 'one', 'two', 'three' ] | |
| class App extends Component { | |
| render() { |
This file contains hidden or 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
| <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/.git/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
| <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/node_modules/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
| <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/_build/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> | |
| <excludefname_rule plat="mac" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="users/" contains_1="/deps/" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" /> |
This file contains hidden or 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
| function JSON_to_URLEncoded(element,key,list){ | |
| var list = list || []; | |
| if(typeof(element)=='object'){ | |
| for (var idx in element) | |
| JSON_to_URLEncoded(element[idx],key?key+'['+idx+']':idx,list); | |
| } else { | |
| list.push(key+'='+encodeURIComponent(element)); | |
| } | |
| return list.join('&'); | |
| } |
NewerOlder