path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
js/Player/Players.js
olegk101/test
import React from 'react' import { connect } from 'react-redux' // import io from 'socket.io-client' import Radium, { StyleRoot } from 'radium' import style from '../style/liveplayer' class Players extends React.Component { constructor(props) { super(props) this.state = { playing: false, song:...
app/components/AudioPlayer.js
jrhalchak/BeatsPM
import React, { Component } from 'react'; import styles from './AudioPlayer.css'; export default class AudioPlayer extends Component { handleRangeChange(e) { this.props.timeChange(e.target.value / e.target.max); } render() { const { toggleAudio, pauseAudio, isPlaying, audioSrc, ...
12-route-to-modal-gallery/components/Gallery/Gallery.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; import { Link } from 'react-router-dom'; import IMAGES from '../../images/images'; import Thumbnail from '../Thumbnail/Thumbnail'; class Gallery extends React.Component { render() { return ( <div> <h2>Gallery</h2> { ...
BUILD/js/components_js/product-card.js
kevincaicedo/MyStore-Front-end
import React from 'react' export default class CardProduct extends React.Component { render(){ return <div className="col-sm-4 col-lg-4 col-md-4 card-product"> <div className="thumbnail"> <img src={this.props.urlimg} alt="" /> <div clas...
src/svg-icons/content/add-box.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/> </SvgIcon> ); ContentAddBox = pu...
src/index.js
amsb/storybook_styled-components_example
import 'core-js/es6/symbol'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
client/src/components/Listing/ListingsContainer.js
wolnewitz/raptor-ads
import React, { Component } from 'react'; import { Container, Search } from 'semantic-ui-react'; class ListingsContainer extends Component { constructor(props) { super(props); } handleSearchChange(e) { // dispatch controlled input update searchValue } render() { <Container> <Search ...
client/share_trader/js/components/share_trader.js
bigchaindb/bigchaindb-examples
import React from 'react'; import { Navbar, Row, Col, Button } from 'react-bootstrap/lib'; import AccountList from '../../../lib/js/react/components/account_list'; import AccountDetail from '../../../lib/js/react/components/account_detail'; import Assets from './assets'; import AssetMatrix from './asset_matrix'; imp...
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleMenuDirection.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleMenuDirection = () => ( <Dropdown text='Menu' floating labeled button className='icon'> {/* <i class="dropdown icon"></i> */} <Dropdown.Menu> <Dropdown.Item> <i className='left dropdown icon'></i> ...
examples/wrapper/index.js
sskyy/react-lego
import React from 'react' import ReactDom from 'react-dom' import { wrap } from '@cicada/react-lego' import Case from '../Case' import Card from './Card' const Root = Card.Root.extend` border: 1px dashed black; ` const Text = ({children}) => { return <div>{children.map(child => { if (/^name:/.test(child) ) ...
src/index.js
vikramarka/contacts
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter} from 'react-router-dom'; import App from './App'; import './index.css'; ReactDOM.render( <BrowserRouter><App /></BrowserRouter>, document.getElementById('root') );
src/index.js
tasking/firebase-react-paginated
// react import React, { Component } from 'react'; // utils import getRef from './utils/getFirebaseRef'; import getDisplayName from './utils/getComponentDisplayName'; import getItems from './utils/getSnapshotItems'; const withFirebasePages = (firebase) => { const ref = getRef(firebase); return (options) => { ...
test/integration/Table/MultiSelectTable.js
mmrtnz/material-ui
import React from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'src/Table'; const tableData = [ { name: 'John Smith', selected: true, }, { name: 'Randal White', selected: true, }, { name: 'Olivier', }, ]; function Tabl...
client/src/components/AlbumsGrid.js
HoussamOtarid/fb-photos-downloader
import React from 'react'; import _ from 'lodash'; import Album from './Album'; import Pagination from '../components/Pagination'; import Spinner from 'react-spinner-material'; export default props => { const { albums, paging } = props; if (_.isEmpty(albums)) { return ( <div className="spinner-...
examples/with-jsxstyle/src/server.js
jaredpalmer/react-production-starter
import { cache } from 'jsxstyle'; import App from './App'; import React from 'react'; import { StaticRouter } from 'react-router-dom'; import express from 'express'; import { renderToString } from 'react-dom/server'; const assets = require(process.env.RAZZLE_ASSETS_MANIFEST); const server = express(); server .disa...
test/test_helper.js
Ridou/ReactTutorials
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/svg-icons/device/battery-charging-60.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
modules/RouteUtils.js
joeyates/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
app/containers/NotFoundPage/index.js
tzibur/site
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
test/test_helper.js
PhyrionX/ReactJS2
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/App/routes.js
Cloudoki/hackforgood-paar
import React from 'react' import { Route, Switch } from 'react-router' import requireAuth from 'containers/Auth' import Login from 'containers/Auth/Login' import HomePage from 'containers/HomePage' import Filter from 'containers/Filter' import Protected from 'components/Protected' import NotFound from '../NotFound' ...
src/skeletons/SkeletonGroup.js
Bandwidth/shared-components
import React from 'react'; import PulseGroup from 'skeletons/PulseGroup'; import createArray from 'extensions/createArray'; const SkeletonGroup = ({ count = 1, children, ...rest }) => ( <React.Fragment> {createArray(count).map(rowIdx => ( <PulseGroup {...rest} key={rowIdx}> {children} </Pulse...
examples/todomvc/src/Root/modules/Todo/UI.js
homkai/deef
import React from 'react'; import Header from './components/Header'; import Main from './components/Main'; import './style.less'; export default () => <div className="todo-app"> <Header /> <Main /> </div>;
src/parser/mage/arcane/modules/features/RuleOfThrees.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Analyzer from 'parser/core/Analyzer'; const debug = false; class RuleOfThrees extends Ana...
src/interface/report/Results/Timeline/Cooldowns.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Abilities from 'parser/core/modules/Abilities'; import './Cooldowns.scss'; import Lane from './Lane'; class Cooldowns extends React.PureComponent { static propTypes = { start: PropTypes.number.isRequired, end: PropTypes.number.isRequired...
__tests__/index.ios.js
neyko5/BalistosNative
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 /> ); });
wp-content/plugins/download-monitor/assets/blocks/src/components/DownloadInput/index.js
mandino/www.bloggingshakespeare.com
const {Component} = wp.element; import apiFetch from '@wordpress/api-fetch'; import React from 'react'; import Select from 'react-select'; export default class DownloadInput extends Component { constructor( props ) { super( props ); this.state = { downloads: [] }; } componentDidMount() { apiFetch( { url: d...
share/components/LogIn/LogIn.js
caojs/password-manager-server
import React from 'react'; import classNames from 'classnames'; import { Field } from 'redux-form/immutable'; import { Link } from 'react-router'; import FaUser from 'react-icons/lib/fa/user'; import FaLock from 'react-icons/lib/fa/lock'; import Button from '../Common/Button'; import ErrorMessages from '../Common/Error...
fields/types/select/SelectField.js
andrewlinfoot/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValu...
app/components/NowPlaying.js
robcalcroft/edison
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { Button, Image, Modal, StyleSheet, TouchableHighlight, View, } from 'react-native'; import Slider from 'react-native-slider'; import Text from './Text'; import TouchableIcon from './TouchableIc...
src/home/root.component.js
joeldenning/single-spa-examples
import React from 'react'; import Technology from './technology.component.js'; import Walkthroughs from './walkthroughs.component.js'; import {getBorder, showFrameworkObservable} from 'src/common/colored-border.js'; export default class HomeRoot extends React.Component { constructor() { super(); this.state =...
src/js/components/privKey/PrivKeyBox.js
safexio/safexweb
import React from 'react'; var PrivKeyImport = require('./PrivKeyImport'); var PrivKeyTable = require('./PrivKeyTable'); var privKeyActions = require('actions/privKeyActions'); var PrivKeyBox = React.createClass({ _generateNewKeypair: function() { privKeyActions.addPrivKey(); }, render: function() { v...
src/stories/2017-12-15-cretan-sunsets.js
danpersa/remindmetolive-react
import React from 'react'; import PostImageResp from '../components/story/PostImageResp'; import TwoPostImageResp from '../components/story/TwoPostImageResp'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/story/StoryTextBlock'; import StoryImages from '../components/st...
imports/ui/pages/profile.js
irvinlim/free4all
import { Meteor } from 'meteor/meteor'; import React from 'react'; import ProfileComponent from '../containers/profile/profile'; export class Profile extends React.Component { render() { return ( <div id="page-profile" className="page-container profile" style={{ overflow: "hidden" }}> <div classNa...
src/components/user/auth/login/Login.js
huyhoangtb/reactjs
/** * Created by Peter Hoang Nguyen on 3/31/2017. */ import * as css from './stylesheet.scss'; import React from 'react' import {Field, reduxForm} from 'redux-form' import InputText from 'components/forms/elements/input-text'; import CheckBox from 'components/forms/elements/check-box'; import AuthPanel from 'compo...
public/products/src/components/UI.js
dolchi21/open-prices
import React from 'react' export function List(props){ return <div {...props} className="list-group"></div> } export function ListItem(props){ return <div {...props} className="list-group-item"></div> }
components/ui/dropdown/dropdown.js
bannik/hole
import React from 'react'; import ReactDOM from 'react-dom'; class Dropdown extends React.Component{ constructor(props){ super(props); let selectedItem = props.selectedItem ? props.selectedItem : null; this.state = { active: false, items: [], selectedItem: selectedItem, hconte...
web/src/js/components/Search/ErrorBoundarySearchResults.js
gladly-team/tab
import React from 'react' import logger from 'js/utils/logger' import { getUrlParameters } from 'js/utils/utils' import SearchResultErrorMessage from 'js/components/Search/SearchResultErrorMessage' class ErrorBoundary extends React.Component { constructor(props) { super(props) this.state = { hasError: false ...
Study/Udemy Docker and Kubernetes/Section09/deployment-09-finished/frontend/src/components/UI/Card.js
tarsoqueiroz/Docker
import React from 'react'; import './Card.css'; function Card(props) { return <div className='card'>{props.children}</div>; } export default Card;
docs/app/Examples/elements/Button/Types/ButtonExampleLabeled.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleLabeled = () => ( <div> <Button content='Like' icon='heart' label={{ as: 'a', basic: true, content: '2,048' }} labelPosition='right' /> <Button content='Like' icon='heart' la...
source/CustomWindowScroller/WindowScroller.jest.js
Vitamen/geneviz
/* global Element */ import React from 'react' import { findDOMNode } from 'react-dom' import { render } from '../TestUtils' import { IS_SCROLLING_TIMEOUT } from './utils/onScroll' import WindowScroller from './WindowScroller' function ChildComponent ({ scrollTop, isScrolling, height }) { return ( <div>{`scroll...
src/svg-icons/editor/short-text.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText = pure(EditorShortText); EditorShortText.displayName = 'EditorShortText'; EditorShortText...
src/redux/utils/createDevToolsWindow.js
mleonard87/merknera-ui
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 ...
app/client/modules/App/__tests__/Components/Footer.spec.js
nittmurugan/finddriver
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
src/components/loading/LoadingHome/LoadingHome.js
CtrHellenicStudies/Commentary
import React from 'react'; const LoadingHome = () => ( <div className="loading home"> <div className="loading-mock home-filler home-filler-header" /> <div className="content primary"> <section className="header cover fullscreen parallax"> <div className="container v-align-transform wow fadeIn" da...
es/components/MediaList/Row.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import _assertThisInitialized from "@babel/runtime/helpers/builtin/assertThisInitialized"; import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import ...
fields/components/columns/IdColumn.js
suryagh/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data...
src/components/App.js
franciskim722/crypy
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, NavLink, Route } from 'react-router-dom'; import LandingPage from '../containers/Landing/LandingPage'; import RegisterPage from '../containers/Auth/RegisterPage'; import HomePage from '../containers/Home/HomePage'; import LoginPage from '....
app/containers/Steps/Thanks/index.js
nypl-spacetime/where
/* global __CONFIG__ */ import React from 'react' import { connect } from 'react-redux' import { createSelector } from 'reselect' import Button from 'components/Button' import Flex from 'components/Flex' import { selectLoggedIn } from 'containers/App/selectors' import { TextStep, Animal, TimerBarContainer, Timer...
js/components/list/basic-list.js
soltrinox/MarketAuth.ReactNative
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text } from 'native-base'; import styles from './styles'; const { replaceAt, } = actions; clas...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
Maxwell2022/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
js/src/dapps/dappreg.js
jesuscript/parity
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any la...
react-app/src/components/Results.js
tanykim/swimmers-history
import React, { Component } from 'react'; import scrollToComponent from 'react-scroll-to-component'; import Countries from '../data/countries.json'; class ResultsComponent extends Component { scroll() { //scroll to the result when a swimmer is selected scrollToComponent(this.refs.results, { offset: 0,...
src/modules/items/containers/ItemEmbedContainer/ItemEmbedContainer.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'react-apollo'; import _ from 'underscore'; import ItemEmbed from '../../components/ItemEmbed'; import itemDetailQuery from '../../graphql/queries/detail'; class ItemEmbedContainer extends React.Component { render() { let item ...
frontend-admin/src/pendingNum/index.js
OptimusCrime/youkok2
import React from 'react'; import ReactDOM from 'react-dom'; import { fetchAdminPendingNumRest } from "./api"; export const run = () => { // This is lazy fetchAdminPendingNumRest() .then(response => response.json()) .then(response => { ReactDOM.render(( `${response.num}` ), document....
src/PilotPhase.js
qiubit/wason-selection-parallel
import _ from 'lodash'; import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import Markdown from 'react-markdown'; import './PilotPhase.css'; import SelectionExercise from './SelectionExercise'; class PilotPhase extends Component { constructor(props) { super(props); const exp...
shared/containers/Common/ContentContainer.js
kizzlebot/music_dev
import React from 'react'; import {NavLeft, NavRight} from '../../components/Common/Content'; export default class ContentContainer extends React.Component{ render(){ return ( <section className={'content'}> <NavLeft {...this.props} /> <div className={'content__middle'}> {this.p...
src/components/posts_new.js
monsteronfire/redux-learning-blog
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { createPost } from '../actions'; class PostsNew extends React.Component { renderField(field) { const className = `form-group ${field.meta.touched && fi...
client/modules/core/components/options_dropdown/options_dropdown.js
bompi88/grand-view
// ////////////////////////////////////////////////////////////////////////////// // Document Table Dropdown Component // ////////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Concept // // Licensed under the Apache License, Version 2.0 (the 'License'); // you may not use t...
src/components/cards/card_wild.js
camboio/yooneau
import React from 'react'; export default class CardWild extends React.Component{ render(){ const colour = this.props.card.colour ? this.props.card.colour : 'gray'; return( <svg className="card-wild-component" onClick={this.props.onClick} xmlns="http://www.w3.org/2000/svg" viewBox="...
src/Containers/ChartContainer/Chart.js
sirjuan/harmonical-oscillation
import React from 'react'; import { Scatter } from 'react-chartjs-2'; const scatterChart = ({color = 'blue', values = [], keys = {}, title = ''}) => { const data = { datasets: [{ label: `${keys.x} / ${keys.y}`, fill: false, pointBackgroundColor: 'rgba(0, 0, 0, 0)', pointBorderCol...
es/transitions/Slide.js
uplevel-technology/material-ui-next
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
app/imports/ui/pages/auth/Signup.js
mondrus/meteor-starter
/** * @Author: philip * @Date: 2017-05-27T16:51:26+00:00 * @Filename: Signup.js * @Last modified by: philip * @Last modified time: 2017-05-27T17:41:50+00:00 */ import React from 'react'; import { Link } from 'react-router-dom'; import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bo...
src/routes/logout/Logout.js
AaronHartigan/DudeTruck
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Logout.css'; class Logout extends React.Component { componentDidMount() { setTimeout(() => { window.location.reload(); }, 1250); } render() { return <div className={s.text}>Logging out....
src/modules/connect/connectDetail/components/ConnectDetailTagBox.js
Florenz23/sangoo_04
import React, { Component } from 'react'; import { Container,List, Header, Title, Content, Button, Icon, IconNB, Card, CardItem, Text, Left, Right, Body, ListItem } from 'native-base'; import { View } from 'react-native' import styles from '../../styles/socialBox'; import contacts from '../../../../mock/contacts' i...
src/parser/mage/shared/modules/features/RuneOfPower.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SPECS from 'game/SPECS'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import AbilityTracker from '...
src/parser/shared/modules/spells/bfa/azeritetraits/BloodRite.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import StatTrack...
__tests__/setup.js
brentvatne/react-conf-app
// @flow import React from 'react'; import { View } from 'react-native'; // ------------------------ // Javascript Built-Ins // ------------------------ // Ensure Date.now and new Date() give us the same date for snapshots. import timekeeper from 'timekeeper'; timekeeper.freeze(new Date(2017, 3, 1, 8, 0, 0)); // ----...
tests/lib/rules/indent.js
gfxmonk/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-------------------------------------...
Tutorial/AwesomeProject/__tests__/index.android.js
iyooooo/ReactNativeExpress
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
ui/app/components/layout/index.js
leapcode/bitmask-dev
import React from 'react' import './layout.less' class HorizontalLayout extends React.Component { static get defaultProps() {return{ equalWidths: false, className: '' }} constructor(props) { super(props) } render() { let className = "horizontal-layout " + this.props.className if (this....
src/svg-icons/image/camera-rear.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRear = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1.11 0-2-.9-2-2s.89-2 1.99-...
src/DataTable/Selectable.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import isEqual from 'lodash.isequal'; import TableHeader from './TableHeader'; import Checkbox from '../Checkbox'; const propTypes = { columns: (props, propName, componentName) => ( props[propName] && new Er...
dashboard/src/index.js
lsumedia/lcr-web
import React from 'react'; import ReactDOM from 'react-dom'; import { createBrowserHistory } from 'history'; import { HashRouter, Route, Switch } from 'react-router-dom'; import App from './containers/App/App.jsx'; import './assets/css/bootstrap.min.css'; import './assets/css/animate.min.css'; import './...
docs/app/Examples/addons/TextArea/Usage/TextAreaExampleAutoHeightMinHeight.js
aabustamante/Semantic-UI-React
import React from 'react' import { Form, TextArea } from 'semantic-ui-react' const TextAreaExampleAutoHeightMinHeight = () => ( <Form> <TextArea autoHeight placeholder='Try adding multiple lines' style={{ minHeight: 100 }} /> </Form> ) export default TextAreaExampleAutoHeightMinHeight
client/test/components/common/AccountMenu.spec.js
andela-pessien/libre-dms
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import sinon from 'sinon'; import AccountMenu, { AccountMenuComponent } from '../../../...
loc8-react-redux-front-end/src/components/Home/MainView.js
uberslackin/django-redux-loc8-ARweb
import ArticleList from '../ArticleList'; import React from 'react'; import agent from '../../agent'; import { connect } from 'react-redux'; const YourFeedTab = props => { if (props.token) { const clickHandler = ev => { ev.preventDefault(); props.onTabClick('feed', agent.Articles.feed()); } ...
app/routes.js
jbarabander/game-site
import { Route, IndexRoute } from 'react-router'; import App from 'containers/App'; import Home from 'containers/HomePage'; import React from 'react'; const routes = ( <Route path="/" component={App}> <IndexRoute component={Home} /> </Route> ); export default routes;
docs/src/app/components/pages/components/List/ExampleSettings.js
ArcanisCz/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import Divider from 'material-ui/Divider'; import Checkbox from 'material-ui/Checkbox'; import Toggle from 'material-ui/Toggle'; const style...
src/browser/ui/EmptyArticle.react.js
syroegkin/mikora.eu
import Component from 'react-pure-render/component'; import React from 'react'; import { FormattedMessage, defineMessages } from 'react-intl'; import EditorFormatAlignLeft from 'material-ui/svg-icons/editor/format-align-left'; import { grey200 } from 'material-ui/styles/colors'; const _messages = defineMessages({ e...
Tutorial/__tests__/index.ios.js
onezens/react-native-repo
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 /> ); });
src/svg-icons/device/bluetooth-searching.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
ketoo/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import AvatarItem from 'components/common/AvatarItem.react'; var ContactItem = React.createClass({ displayName: 'ContactItem', propTypes: { contact: React.PropTypes.object, onSelect: React.PropTypes.func }, mixins: [PureRende...
example/custom/__tests__/index.android.js
fukuball/react-native-orientation-loading-overlay
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
admin/client/App/shared/Popout/index.js
Adam14Four/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const SIZES = { arrowHeight: 12, arrowWidth: ...
__tests__/Navbar-test.js
akonwi/bundles
import React from 'react' import {shallow} from 'enzyme' import Navbar from '../src/components/Navbar' import NewBundleInput from '../src/components/NewBundleInput' import EditBundleInput from '../src/components/EditBundleInput' describe("Navbar", () => { const dispatch = new Function const navbar = shallow(<Navba...
admin/client/App/index.js
joerter/keystone
/** * The App component is the component that is rendered around all views, and * contains common things like navigation, footer, etc. */ import React from 'react'; import Lists from '../utils/ListsByKey'; import MobileNavigation from './components/Navigation/Mobile'; import PrimaryNavigation from './components/Na...
src/docs/Components.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Paragraph from 'grommet/components/Paragraph'; import DocsArticle from '../components/DocsArticle'; export default class Components extends Component { render () { return ( <DocsArticle t...
test/common/components/App-test.js
LandyCandy/beHeard
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import App from '../../../src/common/components/App'; test('render with container div', t => { const wrapper = shallow(React.createElement(App)); t.is(wrapper.find('#container').length, 1); });
client/src/components/dashboard/profile/edit-info.js
mikelearning91/seeme-starter
import React, { Component } from 'react'; import Female from '../../../icons/female'; import Male from '../../../icons/male'; import FaBicycle from 'react-icons/lib/fa/bicycle'; import FaBed from 'react-icons/lib/fa/bed'; import FaNewspaperO from 'react-icons/lib/fa/newspaper-o'; import FaMotorcycle from 'react-icons/l...
src/icons/LabelIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class LabelIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M35.27 11.69C34.54 10.67 33.35 10 32 10l-22 .02c-2.21 0-4 1.77-4 3.98v20c0 2.21 1.79 3.98 4 3.98L32 38c1.35 ...
docs/app/Examples/collections/Grid/Types/GridExampleCelledInternally.js
clemensw/stardust
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleCelledInternally = () => ( <Grid celled='internally'> <Grid.Row> <Grid.Column width={3}> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Column width={10}> ...
client/extensions/woocommerce/app/order/order-customer/dialog.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import emailValidator from 'email-validator'; import { find, get, isEmpty, noop } from 'lodash'; import { local...
examples/embeds/video.js
ashutoshrishi/slate
import React from 'react' /** * An video embed component. * * @type {Component} */ class Video extends React.Component { /** * When the input text changes, update the `video` data on the node. * * @param {Event} e */ onChange = e => { const video = e.target.value const { node, editor } = ...
fields/types/color/ColorField.js
snowkeeper/keystone
import { SketchPicker } from 'react-color'; import { css, StyleSheet } from 'aphrodite/no-important'; import Field from '../Field'; import React from 'react'; import { Button, FormInput, InputGroup } from 'elemental'; import transparentSwatch from './transparent-swatch'; import theme from '../../../admin/client/theme';...
src/interface/icons/Haste.js
ronaldpereira/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props}> <path d="M33.446,23.135c-0.89,0-1.612,0.722-1.612,1.612v8.049l-4.079,4.078c-0.63,0.629-0.63,1.65,0,2.28 c0.315,0.314,0.728,0.472,1.14,0.472c0.413,0,0.825-0.1...
src/components/Main.js
surce2010/react-webpack-gallery
require('normalize.css/normalize.css'); require('styles/App.css'); require('styles/main.less'); import React from 'react'; import _ from 'lodash'; import classNames from 'classnames'; let CONSTANT = { centerPos: { //中间取值范围 left: 0, top: 0 }, hPosRange: { //水平方向取值范围 leftSecX: [0, 0], rightSecX: [...
src/modules/pages/Header.js
lenxeon/react
require('../../css/header.less') import React from 'react'; import SearchBox from './SearchBox'; import {Link} from 'react-router'; var {createActiveRouteComponent} = require('./NavLink'); var NavLink = createActiveRouteComponent('li'); class Header extends React.Component { constructor(props, context){ ...
src/modules/editor/components/popovers/tooltip/TooltipLIMC/TooltipLIMC.js
CtrHellenicStudies/Commentary
import React from 'react' import autoBind from 'react-autobind'; import { connect } from 'react-redux'; // redux import editorActions from '../../../../actions'; // component import TooltipItemButton from '../TooltipItemButton'; class TooltipLIMC extends React.Component { constructor(props) { super(props); au...
app/components/Store/Routes/CategoriesRoute/index.js
VineRelay/VineRelayStore
import React from 'react'; import PropTypes from 'prop-types'; import { QueryRenderer, graphql } from 'react-relay'; import relayEnvironment from 'app/config/relay'; import PageError from 'app/components/Common/PageError'; import PageLoader from 'app/components/Common/PageLoader'; import StoreLayout from 'app/component...