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
... | |
"scenarios": [ | |
{ | |
"label": "My Awesome Site", | |
"url": "http://localhost:3000/", | |
"hideSelectors": [], | |
"removeSelectors": [], | |
"selectorExpansion": true, | |
"selectors": [ | |
".App-header", |
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 Relay from 'react-relay'; | |
import PageContainer from '../pages/PageContainer'; | |
import Painel from '../pages/Painel'; | |
import ProductCard from '../ProductCard/ProductCard'; | |
import FacebookButton from '../utils/fb'; | |
class SearchPage extends Component { |
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 Relay from 'react-relay'; | |
import FacebookButton from '../utils/fb'; | |
class SearchPage extends Component { | |
state = { | |
value: this.props.value | |
} |
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
componentWillMount() { | |
global.addEventListener("keyPress", this._handleEscKey, false); | |
}; | |
componentWillUnmount() { | |
global.removeEventListener("keyPress", this._handleEscKey, false); | |
}; | |
_handleEscKey = (event) => { | |
if(event.keyCode == 27){ |
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 _ from 'lodash'; | |
import React, { Component, PropTypes } from 'react'; | |
import { reduxForm } from 'redux-form'; | |
import { createPost } from '../actions/index'; | |
import { Link } from 'react-router'; | |
const FIELDS = { | |
title: { | |
type: 'input', | |
label: 'Title for post' |
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
{ | |
"query": "mutation ($data: BlogPostInput!) { addBlogPost(data: $data) }", | |
"variables":{ | |
"data":{ | |
"_id":"67e38d557bb1237571b2147e", | |
"title":"teste", | |
"description":"teste description" | |
} | |
} | |
} |
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 from 'react'; | |
export default class Form extends React.Component { | |
static propTypes = { | |
name: React.PropTypes.string, | |
}; | |
constructor(props) { |
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
var webpack = require('webpack') | |
module.exports = { | |
entry: './src/main.js', | |
output: { | |
path: './dist', | |
publicPath: 'dist/', | |
filename: 'build.js' | |
}, | |
module: { |