path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/examples/TimeTravel.js
steos/elmar.js
import R from 'ramda' import React from 'react' import {forward, mapEffects, message, targetValue} from '../elmar' const init = component => (...args) => { const [model, effects] = component.init(...args) return [{ component: model, lastAction: performance.now(), history: [], future: [], ...
index.ios.js
mutualmobile/Brazos
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import StackNavigator from './src/components/app/StackNavigator'; AppRegistry.registerComponent('Brazos', () => StackNavigator);
src/redux/utils/createDevToolsWindow.js
llukasxx/school-organizer-front
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/__tests__/components/utils/index/Toggle.js
HsuTing/cat-components
'use strict'; import React from 'react'; import RadioButtonCheckedIcon from 'react-icons/lib/md/radio-button-checked'; import RadioButtonUnchecked from 'react-icons/lib/md/radio-button-unchecked'; export default wrapper => { describe('## Toggle', () => { const getComponent = (index, clicked) => { return w...
src/svg-icons/notification/network-check.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkCheck = (props) => ( <SvgIcon {...props}> <path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28...
Tutorial/js/project/2.MeiTuan/Component/Main/XMGLaunchImage.js
onezens/react-native-repo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; /**----导入外部的组件----**/ var Main = require('./XMGMain'); var Launch = React.createClass({ ...
docs-ui/components/iconSet.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import styled from '@emotion/styled'; import * as newIconset from 'app/icons'; export default { title: 'Core/Style/Icons', }; export const IconSet = withInfo('Replace `InlineSvg` with icon components')(() => { return ( <SwatchWrapper>...
src/containers/ImportReviews/individualsCrawlerForm/UpWorkForm.js
ChluNetwork/chlu-demo
import React from 'react' import { Grid } from '@material-ui/core' import { Field } from 'redux-form' import CustomInput from 'components/Form/CustomInput' import { InputAdornment, withStyles } from '@material-ui/core' import FaceIcon from '@material-ui/icons/Face'; import EmailIcon from '@material-ui/icons/Email'; im...
app/containers/app.spec.js
SenyoruAwesome/markii-client
import React from 'react'; import { shallow } from 'enzyme'; import chai, { expect } from 'chai'; import dirtyChai from 'dirty-chai'; chai.use(dirtyChai); import App from './app'; import DevTools from './DevTools'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; describe('<App />', () =...
react-webpack/src/Comment.js
hzzly/react-getting-started
import React, { Component } from 'react'; class Comment extends Component { render() { return ( <div className="comment"> <div className="ui comments"> <div className="comment"> <a className="avatar"> ...
client/index.js
nextinnovation-corp/gacha
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import store from './store'; ReactDOM.render( <Provider store={store}> <App /> </Provider> , document.getElementById('app'));
ReportSystem/src/main/webapp/resources/js/components/index/index.js
LittleLazyCat/TXEY
import './style/index.css' import React from 'react' import { Row, Col } from 'antd'; import SiderMenu from '../common/sidermenu' import AreaStack from '../echarts/areastack' import UserMgt from '../antd/usermgt' import HeatmapCartesian from '../echarts/heatmapcartesian' export default class Index extends React.Compon...
jobs/screens/DeckScreen.js
haaswill/ReactNativeCourses
import React, { Component } from 'react'; import { View, Text, Platform } from 'react-native'; import { connect } from 'react-redux'; import { MapView } from 'expo'; import { Card, Button, Icon } from 'react-native-elements'; import Swipe from '../components/Swipe'; import { likeJob } from '../actions'; class DeckScre...
electron/app/index.js
structuresound/bbt
// @flow import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app...
__tests__/components/icons/status/Label-test.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Label from '../../../../src/js/components/icons/status/Label'; describe('Label', () => { it('has correct default options', () => { const component = renderer.crea...
demo/public/index.js
MicheleBertoli/react-count-to
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import request from 'superagent'; import CountTo from '../../dist/react-count-to'; class App extends Component { constructor() { super(); this.state = { isLoading: true, to: 0, }; this.onComplete = this.onComple...
renderer/components/Login/LoginNotAllowed.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Flex, Box } from 'rebass/styled-components' import { FormattedMessage } from 'react-intl' import Delete from 'components/Icon/Delete' import { Heading, Text, Card, CenteredContent } from 'components/UI' import messages from './messages' const LoginN...
packages/icons/src/md/image/PanoramaHorizontal.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPanoramaHorizontal(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42.86 8c.66 0 1.14.47 1.12 1.25v29.5c.01.78-.47 1.25-1.13 1.25-.19 0-.4-.04-.62-.12a52.262 52.262 0 0 0-18.24-3.29c-6.18 0-12.36 1.1-18.2...
src/index.js
hansenjl/circuit-builder-client
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import './index.css'; import App from './containers/App'; import registerServiceWorker from './registerServiceWorker'; import store from './store'; ReactDOM.render( <Provider store={store}> <App /> </Provide...
src/svg-icons/action/delete-forever.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
web/portal/src/components/EditPanel/EditMultiOptions/index.js
trendmicro/serverless-survey-forms
// CSS import styles from './style.css'; import React from 'react'; import PureComponent from 'react-pure-render/component'; import classNames from 'classnames'; import * as values from '../../../constants/DefaultValues'; import Mixins from '../../../mixins/global'; import EditItem from '../EditItem'; class EditMul...
frontend/modules/recipe/components/InfoPanel.js
RyanNoelk/OpenEats
import React from 'react' import PropTypes from 'prop-types' import { injectIntl, defineMessages, } from 'react-intl' import { Input } from '../../common/components/FormComponents' const RecipeHeader = ({ cookTime, prepTime, servings, customServings, info, updateServings, clearServings, intl }) => { const m...
src/js/popup.js
JonathanLigh/RRE
import React from 'react'; import ReactDom from 'react-dom'; // import { Provider } from 'react-redux'; // import configureStore from './store'; // const wrapper = document.getElementById('app'); // ReactDOM.render( // <Provider store={configureStore()}> // </Provider>, wrapper, // ); class Main extends React.Co...
app/javascript/mastodon/features/directory/index.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
react-roster/src/components/Player.js
bjornicus/roster
import React from 'react'; import { connect } from 'react-redux'; import { ProgressBar, Collapse, Row, Col } from 'react-bootstrap'; import TimeDisplay from './Time-display'; function totalPlayingTime(player, currentTime) { if (player.isPlaying) { return player.previousPlaytime + (currentTime - player.subI...
src/browser/intl/SwitchLocale.js
skallet/este
// @flow import type { State } from '../../common/types'; import React from 'react'; import { compose } from 'ramda'; import { connect } from 'react-redux'; import { setCurrentLocale } from '../../common/intl/actions'; import { Box, Button, } from '../app/components'; type SwitchLocaleProps = { currentLocale: st...
app/index.js
survivejs/reports-app
import 'purecss'; import './main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; main(); function main() { var app = document.createElement('div'); document.body.appendChild(app); ReactDOM.render(<App />, app); }
__tests__/index.ios.js
AndryYu/ReadingGank
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
node_modules/react-foundation/src/components/top-bar.js
Technaesthetic/ua-tools
import React from 'react'; import { GeneralPropTypes, createClassName, generalClassNames } from '../utils'; /** * Top bar component. * http://foundation.zurb.com/sites/docs/top-bar.html * * @param {Object} props * @returns {Object} */ export const TopBar = props => { const className = createClassName( prop...
node_modules/native-base/src/basic/Badge.js
odapplications/WebView-with-Lower-Tab-Menu
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import variables from '../theme/variables/platform'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Badge extends Component { render() { return ( <View r...
app/javascript/mastodon/features/list_editor/index.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListEditor, clearListSuggestions, ...
src/app/components/ProjectsFilter.js
honzachalupa/portfolio2017
import React, { Component } from 'react'; import { capitalize } from './../helpers'; import Button from './Button'; import ButtonsGroup from './ButtonsGroup'; export default class ProjectsFilter extends Component { constructor(props) { super(props); this.state = { types: this.getProjec...
examples/js/keyboard-nav/nav-with-select-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/components/Forms/UserForm.js
zerkedev/zerke-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { intlShape } from 'react-intl'; import { Field, reduxForm } from 'redux-form'; import { TextField } from 'redux-form-material-ui'; import { AvatarImageField } from '../ReduxFormFields'; import ReactList from 'react-list'; import {List...
blueocean-material-icons/src/js/components/svg-icons/action/view-headline.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionViewHeadline = (props) => ( <SvgIcon {...props}> <path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/> </SvgIcon> ); ActionViewHeadline.displayName = 'ActionViewHeadline'; ActionViewHeadline.muiName = 'SvgIcon'; expo...
jobs/screens/ReviewScreen.js
haaswill/ReactNativeCourses
import React, { Component } from 'react'; import { ScrollView, View, Text, Platform, Linking } from 'react-native'; import { Button, Card, Icon } from 'react-native-elements'; import { MapView } from 'expo'; import { connect } from 'react-redux'; class ReviewScreen extends Component { // static make it a property of...
src/docs/Docs.js
alexcondorachi/ps-react-alexc
import React from 'react'; import Navigation from './Navigation'; import ComponentPage from './ComponentPage'; import componentData from '../../config/componentData'; export default class Docs extends React.Component { constructor(props) { super(props); this.state = { route: window.location.hash.substr...
src/containers/Home/__tests__/Home-test.js
gregsabo/beanstalk-gothic-architecture
import { expect } from 'chai'; import React from 'react'; import Home from '../Home'; describe('Home', () => { it('should display the header', () => { const output = decodeURI(React.renderToStaticMarkup(<Home />)); expect(output).to.contains('A list of things that aren&#x27;t Gothic Architecture:'); }); })...
js/components/TodoPage/FilterLink.react.js
ryantang333/dashboard-prototype
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { asyncSetTodosFilter } from '../../actions/AppActions'; const FilterLink = ({ active, children, onClick }) => { if (active) { return <span>{children}</span>; }; return ( <a href='#' onClick={e => { e.preventDefaul...
packages/docs/components/Examples/focus/SimpleFocusEditor/colorBlockPlugin.js
nikgraf/draft-js-plugin-editor
import React from 'react'; const ColorBlock = React.forwardRef( ( { block, // eslint-disable-line no-unused-vars blockProps, // eslint-disable-line no-unused-vars customStyleMap, // eslint-disable-line no-unused-vars customStyleFn, // eslint-disable-line no-unused-vars decorator, //...
app/shared_features/set_card/expanded/VideoButton.js
squatsandsciencelabs/OpenBarbellApp
import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, TouchableHighlight, Image, Platform } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import Video from 'react-native-video'; class VideoButton extends Component { ...
test/ProgressBarSpec.js
jsbranco/react-materialize
/* global describe, it, expect */ import React from 'react'; import { shallow } from 'enzyme'; import ProgressBar from '../src/ProgressBar'; let wrapper = shallow(<ProgressBar />); describe('<ProgressBar />', () => { it('renders by default with an indeterminate state`', () => { expect(wrapper.find('.progress')...
sample-app/app.js
Zip753/react-native-lock
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableHighlight, Alert, } from 'react-native'; var Auth0Lock = require('react-native-lock'); var credentials = require('./auth0-credentials'); var lock = new Auth0Lock(credentials); var HeaderView = React...
app/javascript/mastodon/features/notifications/components/notification.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Perma...
ui/src/containers/UserForm/index.js
LearningLocker/learninglocker
/* eslint-disable react/jsx-indent */ import React from 'react'; import { compose, withState, withProps } from 'recompose'; import { withModel } from 'ui/utils/hocs'; import { Map, List, fromJS } from 'immutable'; import classNames from 'classnames'; import styled from 'styled-components'; import ValidationList from 'u...
static/src/components/RegisterView.js
kdog1425/React-Redux-Flask-Web-Crawler
/* eslint camelcase: 0, no-underscore-dangle: 0 */ import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import * as action...
egghead.io/react_fundamentals/lessons/12-composable/App.js
andrisazens/learning_react
// https://jsbin.com/yiboxe/edit?js,output import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor(){ super(); this.state = { red: 0 } this.update = this.update.bind(this) } update(e){ this.setState({ red: ReactDOM.findDOMNode(t...
src/components/FuelSavingsResults.spec.js
ryan4888/smart-toy
import React from 'react'; import {shallow} from 'enzyme'; import FuelSavingsResults from './FuelSavingsResults'; describe('<FuelSavingsResults />', () => { it('should display savings when savings exist', () => { const savings = { monthly: '10', annual: '120', threeYear: '360' }; const...
demo/src/sections/Movies.js
ryandrewjohnson/react-localize-redux
// @flow import React from 'react'; import { withLocalize, Translate } from 'react-localize-redux'; import '../Main.css'; class Movies extends React.Component<any, any> { constructor(props) { super(props); this.state = { name: '' }; this.addTranslationsForActiveLanguage(); } componentDid...
src/app/components/drawer/Projects/index.js
meedan/check-web
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay/compat'; import Relay from 'react-relay/classic'; import ProjectsComponent from './ProjectsComponent'; const renderQuery = ({ error, props }) => { if (!error && props) { return ( <ProjectsComponent team={props.team} ...
app/containers/FilterableTable.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { filterTable } from '../actions'; import ProductTable from '../components/ProductTable'; import { filterableTable } from '../styles/filterableTable.scss'; const FilterableTable = ({ filter, onFilter }) ...
node_modules/react-bootstrap/es/ModalFooter.js
GregSantulli/react-drum-sequencer
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/components/FormsyColorPicker.js
faccuo/react-slingshot-auth0-sample
/* eslint react/prefer-es6-class: 0 */ import React from 'react'; import Formsy from 'formsy-react'; import ColorPicker from './ColorPicker'; const FormsyColorPicker = React.createClass({ mixins: [Formsy.Mixin], changeValue(color) { this.setValue(color); }, render() { return ( <div> <...
src/SparklinesLine.js
geminiyellow/react-sparklines
import React from 'react'; export default class SparklinesLine extends React.Component { static propTypes = { color: React.PropTypes.string, style: React.PropTypes.object }; static defaultProps = { style: {} }; render() { const { points, width, height, margin, col...
src/index.js
zachcoyle/redux-looking-glass
import React from 'react' import R from 'ramda' import { connect } from 'react-redux' // todo: refactoring const notNum = node => !R.defaultTo(false)(parseInt(node)) export const arrayFromString = s => R.filter(R.identity, R.replace(/\]/g, '', R.replace(/\[/g, '.', s) ).split('.') ) const normal...
addons/themes/astral/layouts/Blog.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; let Blog = React.createClass({ componentDidMount(){ require('../assets/css/main.c...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-toastify/src/ProgressBar.js
bhathiya/test
import React from 'react'; import PropTypes from 'prop-types'; import config from './config'; function ProgressBar({ delay, isRunning, closeToast, type, hide }) { const style = { animationDuration: `${delay}ms`, animationPlayState: isRunning ? 'running' : 'paused' }; style.WebkitAnimationPlayState = sty...
example/example-react/src/components/Header/Header.js
kesslerdev/quarkit
import React from 'react' import PropTypes from 'prop-types' // import the game for create instances & import {createPlayer} from '../../game' import Login from '../Login/Login' import GameInfo from '../Infos/GameInfo/GameInfo' import logo from './logo.svg' import './Header.css' const Header = ({ onClick, connected...
components/DemoAframeScene.js
gmaliandi/metavrse-toolbar
import 'aframe'; import React from 'react'; export default class DemoAframeScene extends React.Component { constructor(props) { super(props); this.interactableObjects = []; this.handleContextMenu = this.handleContextMenu.bind(this); } attachEventHandlers(objects) { for (let object of objects) {...
src/index.js
tehfailsafe/portfolio
// require('./assets/styles/bootstrap.scss'); // require('./assets/styles/main.scss'); import './assets/styles/bootstrap.scss'; import './assets/styles/main.scss'; import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, useRouterHistory, browserHistory } from 'react-router' im...
src/svg-icons/action/visibility.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVisibility = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-...
frontend/src/app/components/Routes.js
mozilla/testpilot
import React from 'react'; import { IndexRoute, Redirect, Route, Router } from 'react-router'; import App from '../containers/App'; import ErrorPage from '../containers/ErrorPage'; import ExperimentPage from '../containers/ExperimentPage'; import HomePage from '../containers/HomePage'; import LegacyPage from '../conta...
app/main/components/ConfirmDialog.js
BitLooter/Stuffr-frontend
import React from 'react' import PropTypes from 'prop-types' import Dialog from 'material-ui/Dialog' import RaisedButton from 'material-ui/RaisedButton' import t from '../../common/i18n' const ConfirmDialog = ({open = true, title, text, onYes, onNo}) => <Dialog title={title} actions={ <div> ...
app/Routes.js
Evyy/cffs-ui
'use strict'; import React from 'react'; import { Router, Route, IndexRoute} from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; let history = createBrowserHistory(); // import useScroll from 'scroll-behavior/lib/useStandardScroll' import CurrentUserStore from './stores/CurrentUs...
private/Components/ViewPromo.js
Bartoshko/occasion-jitsu
import React from 'react' import GoogleMap from 'google-map-react' import {ToggleFavorite} from './Components.js' import {Link} from 'react-router-dom' // import {findById} from '../Utility/Utility.js' const findById = (stores, id) => stores.find(store => store.id === id) // ViewPromo component renders info of chosen ...
app/containers/examples/FeaturePage/index.js
GuiaLa/guiala-web-app
/* * FeaturePage * * List all the features */ /* eslint-disable react/prefer-stateless-function */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Button from 'Button'; import H1 from 'H1'; import styles from './styles.css'; export class Featur...
src/Button.js
westonplatter/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; import ButtonInput from './ButtonInput'; const Button = React.createClass({ mixins: [BootstrapMixin], propTypes: { active: React.PropTypes.bool,...
src/components/DragBox/index.js
lapanoid/redux-cropper
import React from 'react'; import PureComponent from 'react-pure-render/component'; import CSSModules from "react-css-modules"; import styles from './styles.module.scss'; class DragBox extends PureComponent { render() { const {modal} = this.props; let styles = "cropper-drag-box cropper-crop"; return <div st...
app/components/Separator/index.js
JSSolutions/Perfi
import React from 'react'; import { View, ViewPropTypes } from 'react-native'; import T from 'prop-types'; import s from './styles'; const Separator = ({ withShadow, withOpacity, marginVertical, marginTop, marginBottom, style, }) => ( <View style={[ s.root, marginVertical && { marginVerti...
src/svg-icons/action/card-travel.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H...
examples/counter/containers/Root.js
frodereinertsen/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
src/parser/druid/feral/modules/talents/BrutalSlashHitCount.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import HitCountAoE from '../core/HitCountAoE'; /** * Despite being an AoE ability Brutal Slash is usually the best talent on its row for single tar...
packages/components/src/SubHeaderBar/TitleSubHeader/TitleSubHeader.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import Skeleton from '../../Skeleton'; import EditableText from '../../EditableText'; import titleSubHeaderCssModule from './TitleSubHeader.scss'; import Icon from '../../Icon'; import Inject from '../../Inject'; import getDefaultT from '../../translate'; i...
src/components/ExpandingButton.js
Charlie9830/pounder
import React from 'react'; import { Button, Grow, Typography, withStyles } from '@material-ui/core'; import withMouseOver from './Hocs/withMouseOver'; let styles = theme => { let base = { flexShrink: 1, display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', al...
packages/bonde-admin/src/pages/admin/mobilizations/templates/create/page.js
ourcities/rebu-client
import React from 'react' import { FormattedMessage, intlShape } from 'react-intl' import * as paths from '@/paths' import { SettingsPageLayout, SettingsPageMenuLayout, SettingsPageContentLayout } from '@/components/layout' import { Avatar, Name } from '@/mobilizations/components/list/items' import { FormRedux, ...
app/react-icons/fa/key.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaKey extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m19.6 11.4q0-1.8-1.3-3t-3-1.3-3.1 1.3-1.2 3q0 1 0.4 1.9-0.9-0.4-1.8-0.4-1.8 0-3....
docs/0.4f69213f6baaa346322a.js
quark-ui/quark-ui
webpackJsonp([0],{"0P4F":function(e,n,t){"use strict";function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function ...
src/Movable.js
jaredlunde/react-cake
import React from 'react' import Point from './Point' /** <Movable> <WillChange transform> { ({move, movableRef, style, willChange, willChangeRef}) => ( <div ref={willChangeRef} style={{ width: 200, height: 200, backgroundColor: '#000', ...
src/svg-icons/image/nature.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNature = (props) => ( <SvgIcon {...props}> <path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/> </SvgIcon> ); ImageNature = p...
src/svg-icons/toggle/check-box-outline-blank.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBoxOutlineBlank = (props) => ( <SvgIcon {...props}> <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ToggleCheckBoxOutlineBlank =...
src/icons/IosSnowy.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosSnowy extends React.Component { render() { if(this.props.bare) { return <g> <style type="text/css"> .st0{fill:#010101;} </style> <path class="st0" d="M379.9,317l-28.7-16.3c6.1-5.8,13-9.7,20.7-12.3c4.3-1...
src/app.js
cpwilkerson/login-server
import React from 'react' import ReactDOM from 'react-dom' import LoginView from './login-view' import login from './login-reducers' import {createStore, applyMiddleware} from 'redux' import thunk from 'redux-thunk' import {Provider} from 'react-redux' const store = createStore(login, applyMiddleware(thunk)) class Ap...
docs/client/components/pages/Hashtag/CustomHashtagEditor/index.js
draft-js-plugins/draft-js-plugins-v1
import React, { Component } from 'react'; import { Map } from 'immutable'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createHashtagPlugin from 'draft-js-hashtag-plugin'; import editorStyles from './editorStyles.css'; import hashtagStyles from './hashtagStyles.css'; const theme ...
geonode/contrib/monitoring/frontend/src/pages/error-details/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import Header from '../../components/organisms/header'; import ErrorDetails from '../../components/organisms/error-detail'; import styles from './styles'; class Error extends React.Component { static propTypes = { params: PropTypes.object.isRequired...
[2]. Demo_RN/[14]. bag_list_demo/index.ios.js
knightsj/RN_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; // 导入json数据 var BadgeData = require('./BadgeData.json'); var Dimensions = require('Dimensions'); var {w...
src/components/Sidebar/MenuItem.js
zksailor534/react-adminlte-dash
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import styled from 'styled-components'; import tinycolor from 'tinycolor2'; import { fontFamilyBase, fontSizeBase, lineHeightBase, fontWeightBase, sidebarWidth, sidebarMiniWidth, screenSmMin, lightBlue, green, yellow, re...
Paths/React/05.Building Scalable React Apps/5-react-boilerplate-building-scalable-apps-m5-exercise-files/Before/app/containers/LinkListContainer/index.js
phiratio/Pluralsight-materials
/* * * LinkListContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectLinkListContainer from './selectors'; import LinkList from '../../components/LinkList'; export class LinkListContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function ren...
test/specs/elements/Loader/Loader-test.js
shengnian/shengnian-ui-react
import faker from 'faker' import React from 'react' import Loader from 'src/elements/Loader/Loader' import { SUI } from 'src/lib' import * as common from 'test/specs/commonTests' describe('Loader', () => { common.isConformant(Loader) common.hasUIClassName(Loader) common.rendersChildren(Loader) common.propKey...
examples/src/components/CustomSingleValue.js
javier-garcia-anfix/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var SingleValue = React.createClass({ propTypes: { placeholder: React.PropTypes.string, value: React.PropTypes.object }, render () { var obj = this.props.value; var size = 15; var gravatarStyle = { borderRadius: 3, display: 'inline-bl...
src/index.js
riquet28/Weather_ReactRedux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
app/pages/admin/AuthFields/index.js
czy0729/react-alumni
/** * 认证需填写字段 * 17-03-07 判断来源add_alumni * @Date: 2017-02-19 15:58:37 * @Last Modified by: Administrator * @Last Modified time: 2017-03-18 23:14:45 */ 'use strict'; import React from 'react'; import { form, observer } from 'decorators'; import { $auth } from 'stores'; import { List, Button } from 'antd-mobile';...
app/containers/LanguageProvider/index.js
Princess310/react-chat-exp
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
gatsby-browser.js
goinvo/InvoPlaybook
import React from 'react' import { Router } from 'react-router-dom' import { Provider } from 'react-redux' import createStore from './src/redux/redux' exports.replaceRouterComponent = ({ history }) => { const store = createStore() const ConnectedRouterWrapper = ({ children }) => ( <Provider store={st...
app/components/Exit.js
SmartPowerSocket/DesktopApp
import React, { Component } from 'react'; import { remote } from 'electron'; export default class Exit extends Component { componentWillMount() { remote.getGlobal('particleEnhancement').quitApp(); } render() { return ( <div /> ); } }
stories/Input/ExampleRoundInput.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Input from 'wix-style-react/Input'; const style = { display: 'inline-block', padding: '0 5px', width: '200px', lineHeight: '22px', verticalAlign: 'top' }; const defaultProps = { size: 'normal', magnifyingGlass: true, placeholder: 'T...
src/components/Buttons/__tests__/Checkbox.spec.js
instacart/Snacks
import React from 'react' import renderer from 'react-test-renderer' import { mount } from 'enzyme' import sinon from 'sinon' import Checkbox from '../Checkbox' describe('Checkbox', () => { it('renders the correct button type', () => { const tree = renderer.create(<Checkbox id={1} />).toJSON() expect(tree).t...
js/account/src/components/Account/Account.js
fogfish/oauth2
import React from 'react' import { Flex, Box } from 'reflexbox' import { useOAuth2, WhileIO } from 'react-hook-oauth2' import Header from './Header' import Registry from '../Registry' import Issue from '../Issue' const IO = WhileIO(undefined, Issue, Registry) const UI = () => { const status = useOAuth2() return (...
static/src/components/Modals/AddTransaction.js
tferreira/piggydime
import React from 'react' import { FormattedMessage, injectIntl } from 'react-intl' import Dialog from 'material-ui/Dialog' import FlatButton from 'material-ui/FlatButton' import RaisedButton from 'material-ui/RaisedButton' import TextField from 'material-ui/TextField' import DatePicker from 'material-ui/DatePicker' i...
src/containers/HomePage.js
mak4alex/unicorn-shop
import React, { Component } from 'react'; export default class HomePage extends Component { render() { return ( <div> <h1>Домашняя страница</h1> </div> ); } }
src/ButtonGroup.entry.js
giovanni0918/react-component-catalog
import React from 'react'; import { render } from 'react-dom'; import ButtonGroup from './components/ButtonGroup/ButtonGroup.js'; render( <ButtonGroup className='ButtonGroup' buttons={[ { 'className': 'Button', onClick() { console.log('button') }, 'textContent': 'button' }...