path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
assets/js/footer.js
Subash/sundar-nepal.subash.me
import React from 'react'; export default function Footer() { return ( <div className="footer alert alert-success"> <p>Made by Subash Pathak</p> <p> Follow me on <i className="fa fa-twitter" /> <a href="http://twitter.com/sbspk">@sbspk</a>, <i className="fa fa-facebook" /> ...
admin/client/App/shared/InvalidFieldType.js
giovanniRodighiero/cms
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
src/MyCurriculum.js
AdamB59/Klient
import React, { Component } from 'react'; import Sidenav from "./Sidenav"; import { getAPI } from "./service/api" export default class MyCurriculum extends Component { constructor(props){ super(props); this.state = { MyCurriculum: [] } } componentWillMount(){ ...
packages/material-ui-icons/src/Replay10.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1.8l-.3.6s-.3.3-.5.3-.4.1-.6.1-.4 0-.6-.1-.3-...
local-cli/generator/templates/__tests__/index.android.js
cosmith/react-native
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 /> ); });
demo/reactWebDemo/src/index.js
reggieroby/devpack
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/auth/login.js
Hommasoft/wappuapp-adminpanel
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import '../../assets/css/login.css'; import * as Auth from '../../actions/auth'; class Login extends Component { handleFormSubmit({ email, password }) { this.props.login({ email, passw...
src/components/SidebarCategoryLabel.js
LBNL-UCB-STI/beam-viz
import React from 'react'; import ColorPicker from './ColorPicker'; const SidebarCategoryLabel = ({ categoryData: { categoryName, color, visible, }, onChangeCategoryColor, toggleCategoryVisible, className, }) => ( <div className={className}> <div className='layer--description'> <div ...
src/components/Footer/Footer.js
yoocky/nodecms
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
app/components/Tabination.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; import { Motion, spring } from 'react-motion'; import styles from '../styles/tabs.scss'; const activeStyles = { border: '1px solid transparent', background: '#FFF' }; const inactiveStyles = { border: '1px solid #D9D9D9', backgr...
src/index.js
tanvir002700/taskManager
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore} from 'redux'; import allReducers from './root_reducer'; import injectTapEventPlugin from 'react-tap-event-plugin'; import App from './components/app'; injectTapEventPlugin(); const store = createSto...
app/javascript/mastodon/main.js
abcang/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { setupBrowserNotifications } from './actions/notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = requ...
src/svg-icons/hardware/dock.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDock = (props) => ( <SvgIcon {...props}> <path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z"/> </SvgIcon> ); HardwareDock = ...
src/app/components/currencies_demo/currencies_converter.js
ROZ32/react-example
import React from 'react'; import image from '../../images/cloud-upload-download-data-transfer.svg'; import '../../styles/basic_demos.scss'; import '../../styles/currencies_demo.scss'; import data from './data'; import CurrencySelector from './currency_selector'; export class CurrenciesConverter extends React.Compon...
client/components/Dynamic/Scheduler/NewActivity.js
Treeeater/expresshome
/* eslint-disable max-len */ /** * Created by Yuchen on 6/6/2017. */ import React from 'react'; import { Link, Redirect } from 'react-router-dom'; import { CardTitle } from '@material-ui/core/Card'; import { Grid, Row, Col } from 'react-styled-flexboxgrid'; import DatePicker from '@material-ui/core/DatePicker'; impor...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/oembed/search-input.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, defaultProps } from 'recompose'; import { debounce } from 'lodash'; /** * The internal dependencies. */ import { KEY_ENTER } from 'lib/constants'; /** * Render the field used to filt...
modules/__tests__/serverRendering-test.js
etiennetremel/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createLocation from 'history/lib/createLocation' import RoutingContext from '../RoutingContext' import match from '../match' import Link from '../Link' describe('server rendering', function () { let App...
index.js
FishErr/react-native-camera
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { DeviceEventEmitter, // android NativeAppEventEmitter, // ios NativeModules, Platform, StyleSheet, requireNativeComponent, View, ViewPropTypes } from 'react-native'; const CameraManager = NativeModules.CameraManager |...
app/javascript/mastodon/components/avatar.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
app/containers/ViewProfiles/index.js
dijahmac/JobWeasel-FrontEnd
/* * * ViewProfiles * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router-dom'; import './style.css'; import './styleM.css'; import '../../global.css'; import LeftIcon from 'react-icons/lib/fa/chevron-left'; import RightIcon from 'react-icons/lib/fa/chevron-right'; ...
src/app/main.js
Boluwatifes/andela24
// import required dependencies import { BrowserRouter as Router } from 'react-router-dom'; import React from 'react'; import ReactDom from 'react-dom'; import Layout from './components/Layout'; import '../public/assets/sass/styles.scss'; const app = document.getElementById('app'); // renders the react components to ...
examples/src/MultipleSections/MultipleSections.js
confide/react-autosuggest
import React, { Component } from 'react'; import utils from '../utils'; import Autosuggest from '../../../src/Autosuggest'; import SourceCodeLink from '../SourceCodeLink/SourceCodeLink'; import suburbs from 'json!../suburbs.json'; function randomInt(min, max) { return min + Math.floor(Math.random() * (max - min + 1)...
src/front/components/Board/Board.js
ubery/comments
import React from 'react'; import { connect } from 'react-redux'; import { bind } from '../../utils/reactness'; import api from '../../api'; import style from './Board.css'; import Comment from './Comment'; import Input from './Input'; console.log(api.actions.comments.get()) class Board extends React.Component { ...
basic/node_modules/react-router/modules/Router.js
jintoppy/react-training
import createHashHistory from 'history/lib/createHashHistory' import useQueries from 'history/lib/useQueries' import React from 'react' import createTransitionManager from './createTransitionManager' import { routes } from './PropTypes' import RouterContext from './RouterContext' import { createRoutes } from './RouteU...
test/JumbotronSpec.js
adampickeral/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Jumbotron from '../src/Jumbotron'; describe('Jumbotron', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Jumbotron> <strong>Content</strong>...
src/components/Row.js
nitish24p/react-connect
import React from 'react'; import Cell from './Cell' const Row = (props) => { const { rowIndex, row, nextPlayer, addPiece } = props; const generateCells = row.map((rowItem, columnIndex) => { return ( <Cell key={`${rowIndex}-${columnIndex}`} cell={rowItem} rowIndex={rowI...
src/app/routes/renderRoutes.js
djstein/modern-react
import React from 'react'; import { Route } from 'react-router'; export function renderRoutes(routes) { return routes.map(({ Layout, Component, path, exact }) => { return ( <Route key={path} path={path} exact={exact} render={props => ( <Layout {...props}> ...
definitions/npm/react-jss_v7.x.x/test_react-jss_v7.x.x.js
hansonw/flow-typed
// @flow import React from 'react'; import injectSheet, { JssProvider, ThemeProvider, withTheme, createTheming } from 'react-jss'; import type { Classes, Sheet } from 'react-jss'; const styles = { root: { backgroundColor: 'red', }, [`@media (min-width: ${10}px)`]: { root: { width: 200 } } };...
fields/types/localfiles/LocalFilesField.js
lastjune/keystone
import _ from 'underscore'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'd...
src/Parser/Warlock/Demonology/Modules/Features/DoomUptime.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { ST...
web-react/src/components/Thrusters.js
gizmo-cda/g2x-submarine-v2
import React from 'react'; import Thruster from './Thruster'; class Thrusters extends React.Component { static defaultProps = { width: 100, height: 100, data: [0.0, 0.0, 0.0, 0.0, 0.0] }; render() { let width = this.props.width; let height = this.props.height; let thrusters = this.props.data; retur...
frontend/src/components/eois/buttons/publishCfeiButton.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import ButtonWithTooltipEnabled from '../../common/buttonWithTooltipEnabled'; const messages = { text: 'Publish', }; const PublishCfeiButton = (props) => { const { handleClick, disabled, tooltipInfo } = props; ...
app/components/TopGroup/Accordion/index1.js
theterra/newsb
import React from 'react'; import GroupStyle from '../GroupStyle'; import AccordStyle from './AccordStyle'; export default class TopList extends React.Component { //eslint-disable-line constructor(props) { super(props); this.accordion = this.accordion.bind(this); } componentDidMount() { this.accordio...
index.js
nikitaignatov/magictimes
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware, combineReducers } from 'redux' import { Provider } from 'react-redux' import { syncHistoryWithStore,routerMiddleware } from 'react-router-redux' import { browserHistory } from 'react-router' impo...
Study/Udemy Docker and Kubernetes/Section09/deployment-09-finished/frontend/src/components/goals/CourseGoals.js
tarsoqueiroz/Docker
import React from 'react'; import './CourseGoals.css'; import Card from '../UI/Card'; import GoalItem from './GoalItem'; function CourseGoals(props) { const hasNoGoals = !props.goals || props.goals.length === 0; return ( <section id='course-goals'> <Card> <h2>Your Goals</h2> {hasNoGoals...
src/createBrowserRouter.js
4Catalyzer/found
import BrowserProtocol from 'farce/BrowserProtocol'; import React from 'react'; import createFarceRouter from './createFarceRouter'; import resolver from './resolver'; export default function createBrowserRouter(options) { const FarceRouter = createFarceRouter({ ...options, historyProtocol: new BrowserProto...
geonode/contrib/monitoring/frontend/src/components/cels/response-time/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import styles from './styles'; class ResponseTime extends React.Component { static propTypes = { average: PropTypes.number.isRequired, data: PropTypes.arra...
App/index.android.js
Tyler-Losinski/Rater-Mc-Ratey-Face
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, } from 'react-native'; import { Router, Scene } from 'react-native-router-flux'; import TopList from './top-list.js'; import BreweryCards from '...
packages/ringcentral-widgets-docs/src/app/pages/Components/EntityModal/Demo.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; // eslint-disable-next-line import EntityModal from 'ringcentral-widgets/components/EntityModal'; import { Button } from 'ringcentral-widgets/components/Button'; const props = {}; props.currentLocale = 'en-US'; /** * A example of `EntityModal` */ class EntityModalDemo exten...
test/MenuItemSpec.js
pieter-lazzaro/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import MenuItem from '../src/MenuItem'; describe('MenuItem', function () { it('should output an li', function () { let instance = ReactTestUtils.renderIntoDocument( <MenuItem> Title </MenuItem> ); assert...
rojak-ui-web/src/app/candidate/Candidate.js
rawgni/rojak
import React from 'react' import { connect } from 'react-redux' import { fetchCandidate } from './actions' import Card from '../kit/Card' import SocialMedia from '../kit/SocialMedia' class Candidate extends React.Component { static propTypes = { id: React.PropTypes.number.isRequired, candidate: React.PropTyp...
src/components/Table/Cell.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { uniqueId } from '../../utils'; import { IconSVG } from '../Icon'; const Cell = (props) => { const { children, className, resizable, resizableAssistiveText, scope, sortable, sortDirection,...
src/components/Comments/CommentCard.js
niquepa/react-readable
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardTitle, CardSubtitle, CardText, CardActions, Button, Icon, Grid, Cell, Dialog, DialogHeader, DialogTitle, DialogBody, DialogFo...
src/components/Tab/__test__/Tab.spec.js
zadzbw/React-Component-zad
/** * Created by zad on 17/3/23. */ import React from 'react'; import {shallow} from 'enzyme'; import {shallowToJson} from 'enzyme-to-json'; import Tab from '../../Tab'; import TabItem from '../../Tab/TabItem'; import TabBar from '../../Tab/TabBar'; import {describe, it} from 'eslint/lib/testers/event-generator-teste...
test/PageItemSpec.js
cgvarela/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageItem from '../src/PageItem'; describe('PageItem', () => { it('Should output a "list item" as root element, and an "anchor" as a child item', () => { let instance = ReactTestUtils.renderIntoDocument( <PageItem href=...
src/client/Wrapper.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import url from 'url'; import { connect } from 'react-redux'; import { IntlProvider } from 'react-intl'; import { withRouter } from 'react-router-dom'; import { renderRoutes } from 'react-router-config'; import { LocaleProvider, Layout } from 'antd'; import...
pages/index.js
alexmick/react-comment-experiment
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import rangyClassApplier from 'rangy/lib/rangy-classapplier'; import DocumentPage from '../components/DocumentPage'; import L...
src/containers/NotFound/NotFound.js
ptim/react-redux-universal-hot-example
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/common/components/Footer/Footer.js
pawelmaczka/wojcin
import React from 'react'; import './Footer.scss'; const Footer = () => ( <footer className="footer"> </footer> ); export default Footer;
src/icons/MenuIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class MenuIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 36h36v-4H6v4zm0-10h36v-4H6v4zm0-14v4h36v-4H6z"/></svg>;} };
packages/material-ui-icons/src/RecentActors.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.24 12.25 8 12.25 5.75 11.24 5.75 10 6.76 7.75 8...
src/main.js
0xBADDCAFE/react-tutorial-tictactoe
import React from 'react'; import ReactDOM from 'react-dom'; function Square(props) { return ( <button className="square" style={props.style} onClick={() => props.onClick()}> {props.value} </button> ); } class Board extends React.Component { renderSquare(i, causedWin) { let style = (causedWin ...
source/scripts/components/Cell.js
gsklee/cell
// < Cell/> Component // ================== // // This file defines the React component `< Cell/>`. // // Import Modules // -------------- // // ### NPM Modules import React from 'react'; // Define & Export Module // ---------------------- // // This module contains `< Cell/>`. function getRandomInteger (min, max) {...
app/javascript/mastodon/features/compose/components/compose_form.js
vahnj/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
app/src/components/Footer/SiteMap/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React from 'react'; import { Link } from 'react-router-dom'; /* * Local Import */ /* * Component */ const SiteMap = () => ( <div id="sitemap"> <h2 id="sitemap-title">Plan du site</h2> <p id="sitemap-desc">Vous êtes perdu? Pas de soucis, suivez le guide !</p> <div i...
components/menu/__test__/index.spec.js
jasonleibowitz/react-toolbox
import expect from 'expect'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import Menu from '../Menu'; import MenuItem, {MenuItem as RawMenuItem} from '../MenuItem'; describe('MenuItem', function () { describe('#onClick', function () { it('pass...
src/components/common/svg-icons/maps/map.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMap = (props) => ( <SvgIcon {...props}> <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ...
packages/react-error-overlay/src/containers/StackTrace.js
reedsa/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import StackFrame from './StackFrame'; import Collapsible from '../components/Coll...
src/svg-icons/action/credit-card.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCreditCard = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); Action...
src/js/components/icons/base/Apps.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
static/src/components/Footer.js
hammerandchisel/airhornbot
// @flow import React from 'react'; import numeral from 'numeral'; import * as StatsActions from '../actions/StatsActions'; import * as ShareActions from '../actions/ShareActions'; import ShareStore from '../stores/ShareStore'; import Constants from '../Constants'; const Footer = React.createClass({ render() { ...
src/components/icons/AppointmentIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const AppointmentIcon = props => ( <svg {...props.size || { width: '18px', height: '20px' }} {...props} viewBox="0 0 18 20"> {props.title && <title>{props.title}</title>} <g transform="translate(-3.000000, -2.000000)"> <path d="M11,18.5 L13,18.5 L13,15.5 L16,15.5 L16,13.5 L13...
react/next/components/PageBase.js
Williammer/FrontEnd-deliberate-practices
import React, { Component } from 'react'; import Link from 'next/prefetch' import Header from '../components/Header'; export default class extends Component { render() { const { Comp } = this.props; return ( <div className="App"> <Header /> <div className="App-main"> <Comp />...
src/index.js
pierlo-upitup/polyrhythmical
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, hashHistory } from 'react-router'; import App from './App'; import About from './components/About'; import './styles/main.css'; window.React = React; render( (<Router history={hashHistory}> <Route path="/" component={App}> ...
html/components/welcome.js
hasanali2/schoolms
import React from 'react'; class Welcome extends React.Component { render() { return <p>Welcome</p> } } export {Welcome}
www/src/components/PropDescription.js
haneev/react-widgets
import get from 'lodash/get' import PropTypes from 'prop-types'; import React from 'react'; const propTypes = { prop: PropTypes.object.isRequired, }; function PropDescription({ prop }) { const html = get(prop, 'description.childMarkdownRemark.html', ''); return ( <div dangerouslySetInnerHTML={{ __html: htm...
src/imports/ui/builder/components/wizard/WizardFreeTextQuestion.js
hwillson/meteor-recommendation-builder
import React from 'react'; import WizardFreeTextAnswer from './WizardFreeTextAnswer'; const WizardFreeTextQuestion = ({ question, customerSession }) => ( <div className="wizard-question"> <h1 className="wizard-question-title"> {question.question} </h1> <WizardFreeTextAnswer question={questio...
src/components/user/index.js
plastical/react-theme
/* global PlasticalSettings */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { injectIntl } from 'react-intl'; import classNames from 'classnames'; import DocumentMeta from 'react-document-meta'; import ScrollIntoView from 'scroll-compon...
client/src/ListItem.js
pestrada/requests-app
import React, { Component } from 'react'; import { Card, CardTitle, CardText, CardActions, CardMenu, Badge, Button } from 'react-mdl'; class ListItem extends Component { componentDidMount() { } componentWillUnmount() { } approveRequest = () => { this.props.approveRequest({id: this.props.id, type: 'a...
client/src/components/StatsTable.js
tkeffer/weert-js
/* * Copyright (c) 2016-2018 Tom Keffer <tkeffer@gmail.com> * * See the file LICENSE for your full rights. */ import React from 'react'; import PropTypes from 'prop-types'; import isEmpty from 'lodash/isEmpty'; import Table from 'react-bootstrap/lib/Table'; import * as units from '../units'; import * as utility fr...
src/pages/saildrone.js
taylord65/taylord65.github.io
import React from 'react' import SidePanel from './../components/small/sidePanel' import TabbedContent from './../components/small/tabbedContent' import Desktop from './../components/small/desktop' import Footer from './../components/Footer' import Cover from './../components/Cover' import Fade from 'react-reveal...
src/svg-icons/communication/dialpad.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialpad = (props) => ( <SvgIcon {...props}> <path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
client/src/components/audio/Audio.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import Loader from 'react-loader'; import StickyAlert from '../utils/StickyAlert'; import AudioForm from '../forms/Audio'; let stickyContainer; const Audio = ({ t, loaded, stickyStyle, stickyContent, ...rest }) =...
src/svg-icons/notification/do-not-disturb-on.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); NotificationDoNotDisturbOn = pure(No...
src/DetailPage.js
mirimCZ/letscode-gql
import React from 'react' import { gql, graphql, compose } from 'react-apollo' const getArticleQuery = gql` query getArticle($id: ID!) { article(id: $id) { id title content ratings { id value } } } ` const addRatingMutation = gql` mutation addRating($articl...
packages/frontend/tests/components/common/RadioButtonGroup/index.spec.js
ks888/LambStatus
import React from 'react' import RadioButtonGroup from 'components/common/RadioButtonGroup' import { shallow } from 'enzyme' describe('RadioButtonGroup', () => { const generateProps = () => { return { title: 'title', candidates: ['a', 'b', 'c'], checkedCandidate: 'b', onClicked: () => {},...
src/client/app/createactions.js
skaldo/este
import Component from '../components/component.react'; import React from 'react'; import fetch from 'isomorphic-fetch'; import {createValidate} from '../validate'; import * as authActions from '../auth/actions'; import * as todosActions from '../todos/actions'; const actions = [authActions, todosActions]; export def...
src/components/icon/components/explorer.js
fmsouza/wcode
import React from 'react'; // Icon taken from: https://github.com/spiffcode/ghedit export const Explorer = (props) => ( <svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' {...props}> <path d='M17.705 8H9s-2 .078-2 2v15s0 2 2 2l11-.004C22 27 22 25 22 25V13.509L17.705 8zM16 10v5h4v10H9V10h7zm5.50...
addons/graphql/.storybook/stories.js
shilman/storybook
import React from 'react'; import { storiesOf } from '@storybook/react' import { setupGraphiQL } from '../src' // setup the graphiql helper which can be used with the add method later const graphiql = setupGraphiQL({ url: 'http://localhost:3000/graphql' }); storiesOf('GraphQL Demo', module) .add('get user info', gr...
gxa/src/main/javascript/bundles/differential-expression/src/DifferentialFoldChangeCell.js
gxa/atlas
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import ReactTooltip from 'react-tooltip' import DifferentialFoldChangeCellInfo from './tooltip/DifferentialFoldChangeCellInfo' const DifferentialCellTd = styled.td` background-color: white; white-space: nowrap; f...
src/actions/notifications.js
ello/webapp
import React from 'react' import * as ACTION_TYPES from '../constants/action_types' import * as MAPPING_TYPES from '../constants/mapping_types' import * as api from '../networking/api' import * as StreamFilters from '../components/streams/StreamFilters' import * as StreamRenderables from '../components/streams/StreamRe...
app/m_components/Home.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; import ArticleList from './ArticleList'; import QuickRead from './QuickRead'; import Header from './Header' class Home extends React.Component { render() { return (<div> <QuickRead/> </div> ); } } export default Home;
Example/__tests__/index.ios.js
liuchungui/react-native-umeng-push
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/image/brush.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrush = (props) => ( <SvgIcon {...props}> <path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25...
src/containers/Platzner.js
uglybunnies/ub-react
import React from 'react' import { Head } from 'react-static' // var popPic = require('js/popPic.js') export default () => ( <div> <Head> <title>Ugly Bunnies -- Proposed Platzner &amp; Co. Website</title> </Head> <header className="splash lh0"> <img src="/assets/web-p...
src/interface/icons/Twitter.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const Icon = ({ colored, ...other }) => ( <svg viewBox="0 0 300.00006 244.18703" {...other}> <g transform="translate(-539.18 -568.86)"> <path d="m633.9 812.04c112.46 0 173.96-93.168 173.96-173.96 0-2.6463-0.0539-5.2806-0.1726-7.903 11.938-8.630...
src/DatePicker/test/DatePickerSpec.js
suitejs/suite
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { parse, isSameDay, format } from 'date-fns'; import { getDOMNode, getInstance } from '@test/testUtils'; import DatePicker from '../DatePicker'; describe('DatePicker', () => { it('Should render a div with "rs-picker-date" class', (...
examples/huge-apps/app.js
aastey/react-router
/*eslint-disable no-unused-vars */ import React from 'react' import { createHistory, useBasename } from 'history' import { Router } from 'react-router' import stubbedCourses from './stubs/COURSES' const history = useBasename(createHistory)({ basename: '/huge-apps' }) const rootRoute = { component: 'div', childR...
app/components/TypeaheadList/index.js
transparantnederland/browser
import React from 'react'; import ConceptTile from '../ConceptTile'; import './index.css'; const TypeaheadList = React.createClass({ render() { const { options, selectionIndex, onOptionSelected } = this.props; return ( <div className="TypeaheadList"> <ul className="TypeaheadList-list"> ...
src/chartfoundry/util/Renderer.js
RhoInc/webcharts-wrapper-boilerplate
import React from 'react'; import stringAccessor from './string-accessor'; import binding from '../binding'; import reactTemplate from './reactTemplate'; import defaultSettings, { syncSettings } from '../../default-settings'; import { version as d3Version } from 'd3'; import { version as wcVersion } from 'webcharts'; ...
blueocean-core-js/test/js/security-spec.js
ModuloM/blueocean-plugin
/** * Created by cmeyers on 9/16/16. */ import React from 'react'; import { assert } from 'chai'; import utils from '../../src/js/utils'; import Security from '../../src/js/security'; import config from '../../src/js/config'; import { TestUtil as UserTestUtil } from '../../src/js/User'; const { permit } = Security...
src/SettingsSectionPersonal/index.js
DuckyTeam/ducky-components
import SectionHeaderGeneral from '../SectionHeaderGeneral'; import SettingsItemBirthday from '../SettingsItemBirthday'; import SettingsItemGender from '../SettingsItemGender'; import SettingsItemLocation from '../SettingsItemLocation'; import Spacer from '../Spacer'; import React from 'react'; import PropTypes from 'pr...
src/components/Home/QuickSurahs/spec.js
hasibsahibzada/quran.com-frontend
import React from 'react'; import QuickSurahs from './index.js'; import { mountWithIntl } from '../../../../tests/helpers/intl-enzyme-test-helper.js'; describe('<QuickSurahs />', () => { const count = new Date().getDay() === 5 ? 5 : 4; it('Should render QuickSurahs component', () => { const component = mountW...
src/html.js
vitorbarbosa19/ziro-online
import React from 'react' import favicon from '../favicon.png' let stylesStr if (process.env.NODE_ENV === `production`) { try { stylesStr = require(`!raw-loader!../public/styles.css`) } catch (e) { console.log(e) } } module.exports = class HTML extends React.Component { render() { let css if (...
src/components/SidebarList/FailedList.js
SemaiCZE/perf-data-visualizer
import React from 'react'; import { WarningIcon } from '../../icons'; import './List.css'; const FailedList = ( <div className="Primary-loading-failed"> <WarningIcon size="2x" /> <span>Loading failed</span> </div> ); export default FailedList;
src/components/Feedback/Feedback.js
jhlav/mpn-web-app
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
example/app/index.js
jhen0409/remotedev-extension
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.global.c...
inventapp/src/Form/ActionPanel.js
ladanv/learn-react-js
import React from 'react'; import styles from './ActionPanel.scss'; const ActionPanel = ({ children }) => ( <div className={styles.actionPanel} > {children} </div> ); export default ActionPanel;
src/routes/Home/components/HomeView.js
Dankoda/react-unit-test
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
app/components/ProductInfoNOCAB.js
Byte-Code/lm-digital-store-private-test
import React, { Component } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import glamorous from 'glamorous'; const Wrapper = glamorous.div({ width: '100%', display: 'flex', flexWrap: 'wrap', justifyContent: 'space-between', backgroundColor: '#efefef', padding: '69px 40px 57px', ...