path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/react-scripts/template/src/App.js
jazzninja/portfolio-react
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
react/gameday2/components/embeds/EmbedDirectLink.js
verycumbersome/the-blue-alliance
import React from 'react' import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card' import RaisedButton from 'material-ui/RaisedButton' import { webcastPropType } from '../../utils/webcastUtils' const EmbedDirectLink = (props) => { const directLink = props.webcast.channel const style = { posit...
web/client/components/composition/radio_input.js
firewow/firewow
/** * Imports */ import React from 'react' export default class RadioInput extends React.Component { componentWillMount() { this.id = Math.random().toString(36).substring(7) + Math.floor((Math.random() * 1000) + 1); } componentDidMount() { } render() { var element = ''; if(this.props.inline...
foodrecommender-new/src/index.js
vmalvaro/react-projects
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById('root') );
src/routes/app.js
china2008qyj/DVA-DEMO
import React from 'react' import PropTypes from 'prop-types' import pathToRegexp from 'path-to-regexp' import { connect } from 'dva' import { Layout, Loader } from 'components' import { classnames, config } from 'utils' import { Helmet } from 'react-helmet' import '../themes/index.less' import './app.less' import NProg...
app/javascript/mastodon/features/public_timeline/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
www/components/home.js
capaj/postuj-hovna
import React from 'react' import GoogleMap from './google-map' import {photo} from '../services/moonridge' import backend from '../services/moonridge' import calcDistance from '../js/gps-distance' import {liveQueryComponent} from 'capaj/moonridge-react-utils' import gonePoosLQ from '../stores/states-store' import HomeF...
src/close.js
bisudev/bisu-react-modal
import React from 'react' const Close = ({ onClose }) => <button onClick={onClose} type="button" className="close" aria-label="Close"> <span aria-hidden="true">&times;</span> </button> export default Close
code/demo/src/main.js
jfairbank/modular-react-and-redux-talk
import React from 'react'; import { Button, Input } from 'react-bootstrap'; import { bindActionCreators, combineReducers, createStore } from 'redux'; import { connect, Provider } from 'react-redux'; import { render } from 'react-dom'; import styles from './styles.scss'; import contactsData from './data/users.json'; //...
frontend/src/components/GuideAuthenticatedComponent.js
Pseudonick47/sherlock
import React from 'react'; import { browserHistory } from 'react-router'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actionCreators from '../actions/auth'; function mapStateToProps(state) { return { fetchingUser: state.auth.isFetching, isAuthen...
src/components/StepBar.js
codeforboston/cliff-effects
import React from 'react'; import { Step } from 'semantic-ui-react'; import { STEP_VALS } from '../forms/STEP_VALS'; const StepBar = ({ currentStepKey, goToStep, translations }) => { let cleanSteps = []; STEP_VALS.forEach((step, index) => { let newStep = { title: { content: translations[ `i_` + step.key ] ...
src/js/components/icons/base/UserManager.js
kylebyerly-hp/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...
assets/jqwidgets/jqwidgets-react/react_jqxpopover.js
juannelisalde/holter
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxPopover extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.create...
client/modules/SharedComponents/Introduction.js
tranphong001/BIGVN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import VIP from './VIP'; import Adv from './Adv'; import { fetchCategories, setVisibleBlog, setPageHeader } from '../App/AppActions'; import { getId, getCategories, getBanners, getTopics, getVipAll } fro...
src/containers/Accounts.js
aastein/crypto-trader
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { setLocation } from '../actions'; import { round } from '../utils/math'; class Accounts extends Component { componentDidMount() { this.props.setLocation(this.props.location); } rend...
src/svg-icons/content/font-download.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFontDownload = (props) => ( <SvgIcon {...props}> <path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13...
ajax/libs/react-instantsearch/3.2.0/Dom.js
sashberd/cdnjs
/*! ReactInstantSearch 3.2.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
src/client/components/HorizontalDividerLine.js
doemski/cblocks
import React from 'react'; import PropTypes from 'prop-types'; const getGray = isMappingDivider => { if (isMappingDivider === false) { return '#808080'; } else { return '#E8E8E8'; } }; export class HorizontalDividerLine extends React.Component { render () { const style = { border: 0, h...
src/index.js
react-webpack-generators/react-webpack-template
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
templates/rubix/demo/src/routes/Chartjs.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Panel, PanelBody, PanelContainer, } from '@sketchpixy/rubix'; class ChartContainer extends React.Component { render() { return ( <PanelContainer> <Panel> <PanelBody style={{padding: 25}} className='text-center'> <h4>{thi...
app/features/welcome/components/Welcome.js
jitsi/jitsi-meet-electron
// @flow import Button from '@atlaskit/button'; import { FieldTextStateless } from '@atlaskit/field-text'; import { SpotlightTarget } from '@atlaskit/onboarding'; import Page from '@atlaskit/page'; import { AtlasKitThemeProvider } from '@atlaskit/theme'; import { generateRoomWithoutSeparator } from '@jitsi/js-utils/r...
src/index.js
davetimmins/create-react-app-arcgis
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import App from './App'; import myApp from './reducers' import './index.css'; let store = createStore(myApp) ReactDOM.render( <Provider store={store}> <App /> </Provider>, ...
src/native/me/MePage.js
TheoMer/este
// @flow import type { State, User } from '../../common/types'; import React from 'react'; import SignOut from '../auth/SignOut'; import getUserPhotoUrl from '../../common/users/getUserPhotoUrl'; import { Box, Text } from '../../common/components'; import { Image } from 'react-native'; import { Redirect } from 'react-r...
react/mgr/src/routes/index.js
ouzhigang/thinkphp-ozgweb
import React, { Component } from 'react'; import { Route, Redirect, Switch } from 'react-router-dom'; import AllComponents from '../components'; import routesConfig from './config'; export default class CRouter extends Component { requireLogin = (component, permission) => { if (process.env.NODE_EN...
src/svg-icons/social/school.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSchool = (props) => ( <SvgIcon {...props}> <path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/> </SvgIcon> ); SocialSchool = pure(SocialSchool); SocialSchool.displayNa...
frontend/component/Login.js
sijia-c/practice-node-project
import React from 'react'; import jQuery from 'jquery'; import {Link} from 'react-router'; import {login} from '../lib/client'; export default class Login extends React.Component{ constructor(props){ super(props); this.state={}; } handleChange(name, e){ console.log(name, e.target.value); this.state[name]=e.t...
client/src/components/auth/login.js
mikelearning91/seeme-starter
import React, { Component } from 'react'; import { Link } from 'react-router'; const axios = require('axios'); const cookie = require('react-cookie'); class Login extends React.Component { getInitialState () { return { email: '', password: '' }; } handleSubmit (e) { e.preventDefault(); ...
client/src/components/Root.js
Velocies/raptor-ads
import React from 'react'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import LandingPage from './LandingPage'; import Signup from './Signup/Signup'; import Login from './Login'; import Profi...
app/js/routes.js
azazi-sa/dakiya
// Frameworks import React from 'react'; import { Route, Router, IndexRoute, hashHistory } from 'react-router'; // Configs import appConfig from './appConfig'; // Components for the Router import App from './pages/App'; import ListPackages from './components/ListPackages'; import AddParcel from './components/AddPacka...
examples/basic-mapUrlToProps/src/index.js
pbeshai/react-url-query
import React from 'react'; import ReactDOM from 'react-dom'; import { configureUrlQuery } from 'react-url-query'; import App from './App'; import history from './history'; // link the history used in our app to url-query so it can update the URL with it. configureUrlQuery({ history }); ReactDOM.render( <App />, ...
src/svg-icons/notification/phone-forwarded.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneForwarded = (props) => ( <SvgIcon {...props}> <path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26...
new-lamassu-admin/src/pages/Analytics/components/wrappers/OverTimeWrapper.js
naconner/lamassu-server
import { Box } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' import React from 'react' import { Select } from 'src/components/inputs' import { H2 } from 'src/components/typography' import { primaryColor } from 'src/styling/variables' import styles from '../../Analytics.styles' import ...
src/docs/src/components/Login/Login.js
StarterInc/Ignite
import React from 'react'; import { handleLogin, logout, isLoggedIn, isBrowser } from '../../services/auth' import { navigate } from 'gatsby'; class Login extends React.Component { constructor(props) { super(props); this.state = { login: isLoggedIn() } this._handleLogin...
src/components/Loop.js
hansenjl/circuit-builder-client
import React from 'react'; import Resistor from './Resistor' const Wire = <div className="Circuit Wire"></div> const Loop = ({resistors}) => ( <div className="Loop"> <div className="Circuit Junction"></div> {resistors.length > 1 ? <Resistor resistor={resistors[1]} /> : Wire} <Resistor resistor={resistor...
lessons/git-on-your-computer.js
IsaacDurand/git-started
/* eslint-disable max-len */ // Import React so we can use JSX. import React from 'react'; let currentDirectory; // Export an array. Alternatively, we could use a linked list. const slides = [ { lessonText: <div> <h2>Welcome!</h2> <p>If you're learning to code, chances are you've heard ab...
src/client/pages/project/Invite.js
callmeJozo/MKRN
import React from 'react'; import Codemirror from 'react-codemirror/lib/Codemirror'; require('codemirror/mode/javascript/javascript'); require('codemirror/theme/monokai.css'); import { Form, Input, Button, Radio, Select, Upload, Icon, Alert, message } from 'antd'; import ProjectStore from "../../stores/project"; const ...
ui/src/containers/SamplePage.js
LastCallMedia/Mannequin
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ComponentTopBar from '../components/ComponentTopBar'; import ComponentInfo from '../components/ComponentInfo'; import RenderFrame from '../components/RenderFrame'; import ComponentProblems from '../components/ComponentProblems'; imp...
packages/veritone-react-common/src/components/StatusPill/index.js
veritone/veritone-sdk
import React from 'react'; import { string, shape, any } from 'prop-types'; import Lozenge from 'components/Lozenge'; import blue from '@material-ui/core/colors/blue'; import blueGrey from '@material-ui/core/colors/blueGrey'; import green from '@material-ui/core/colors/green'; import grey from '@material-ui/core/color...
src/svg-icons/av/skip-next.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipNext = (props) => ( <SvgIcon {...props}> <path d="M6 18l8.5-6L6 6v12zM16 6v12h2V6h-2z"/> </SvgIcon> ); AvSkipNext = pure(AvSkipNext); AvSkipNext.displayName = 'AvSkipNext'; AvSkipNext.muiName = 'SvgIcon...
src/Button.js
jesenko/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import elementType from 'react-prop-types/lib/elementType'; const types = ['button', 'reset', 'submit']; import bootstrapUtils, { bsStyles, bsSizes, bsClass } from './utils/bootstrapUtils'; import { Sizes, State, DEFAULT, PRIMARY, LINK } from './styleMap...
docs/app/Examples/elements/Input/Variations/InputExampleRightCornerLabeled.js
aabustamante/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleLeftCornerLabeled = () => ( <Input label={{ icon: 'asterisk' }} labelPosition='right corner' placeholder='Search...' /> ) export default InputExampleLeftCornerLabeled
src/components/Canvas.js
hagl/neural-net-demo
import React from 'react'; class Canvas extends React.Component { constructor(props) { super(); this.updateData = props.updateData this.mouseDown = false; } handleMouseOver(i) { if (this.mouseDown === false || this.state.data[i] === 255) { return; } const newData = this.state.dat...
src/lib/DatePickerComponent.ios.js
MichaelCereda/react-native-form-generator
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; let { View, StyleSheet, TextInput, Text, DatePickerIOS} = require('react-native'); import {Field} from './Field'; export class DatePickerComponent extends React.Component{ constructor(props){ super(props); this.state = { da...
node_modules/react-slick/src/arrows.js
hong1012/FreePay
'use strict'; import React from 'react'; import classnames from 'classnames'; import Helpers from './mixins/helpers'; export var PrevArrow = React.createClass({ clickHandler: function (options, e) { if (e) { e.preventDefault(); } this.props.clickHandler(options, e); }, render: function () { var pre...
app/common/components/PasswordResetDialog.js
BitLooter/Stuffr-frontend
import React from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import { withFormik } from 'formik' import yup from 'yup' import log from 'loglevel' import Dialog from 'material-ui/Dialog' import RaisedButton from 'material-ui/RaisedButton' import TextField from 'material-ui/TextField...
src/components/BlogPostComment/index.js
rosudrag/PortofolioKasia
import React from 'react'; const PostComment = () => { return ( <div className="form single-blog-list"> <h4 className="title">Post a Comment</h4> <form className="form"> <div className="row"> <div className="form-group col-md-6"> ...
src/components/calculatorSmall/presentation/CSEmail.js
edu-affiliates/promo_calculators
'use strict'; import React from 'react'; import {connect} from 'react-redux' import PropTypes from 'prop-types' import {handleInputEmail, handleValidEmail} from '../../../store/actions' import generalOptions from '../../../config/generalOptions'; import helper from '../../../api/helper'; //presentation of the counte...
src/js/pages/selection/SequentCreator.js
jackdeadman/Natural-Deduction-React
import React from 'react'; import _ from 'lodash' class SequentCreator extends React.Component { constructor(props) { super(props); this.state = { editing: 'Premises' }; } convert(value) { value = value.replace(/\^/gi,'∧'); value = value.replace(/\+/gi,'∨'); value = value.replace(...
react/src/components/awards/SprkAward.stories.js
sparkdesignsystem/spark-design-system
import React from 'react'; import SprkAward from './SprkAward'; import { markdownDocumentationLinkBuilder } from '../../../../storybook-utilities/markdownDocumentationLinkBuilder'; export default { title: 'Components/Award', component: SprkAward, decorators: [(story) => <div className="sprk-o-Box">{story()}</div...
node_modules/enzyme/src/ShallowTraversal.js
IgorKilipenko/KTS_React
import React from 'react'; import isEmpty from 'lodash/isEmpty'; import isSubset from 'is-subset'; import functionName from 'function.prototype.name'; import { propsOfNode, splitSelector, isCompoundSelector, selectorType, AND, SELECTOR, nodeHasType, nodeHasProperty, } from './Utils'; export function c...
frontend/src/Donate.js
buildleft/donorbuddy
import React, { Component } from 'react'; import $ from 'jquery'; import './Donate.css'; class Login extends Component { render() { return ( <div className="row"> <div className="col-lg-12 text-center"> <h2>Get Started</h2> <hr className="star-primary"/> </div> ...
packages/imageeditor/src/EditorPlaceholder.js
iCHEF/gypcrete
import React from 'react'; import PropTypes from 'prop-types'; import { Icon } from '@ichef/gypcrete'; const PICTURE = 'picture'; const LOADING = 'loading'; export function CenterIcon({ type, ...props }) { return ( <Icon type={type} spinning={type === LOADING} {...props} /> ); } CenterI...
packages/reactor-kitchensink/src/examples/Charts/Column/MultiaxisColumn/MultiaxisColumn.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; import createData from './createData'; export default class MultiaxisColumn extends Component { constructor() { super()...
wwwroot/app/src/components/Login/LoginPage.js
AlinCiocan/PlanEatSave
import React, { Component } from 'react'; import { ApiRequest } from '../../services/ApiRequest'; import ApiRequestsErrorHandler from '../../services/ApiRequestsErrorHandler'; import BrowserStore from '../../services/BrowserStore'; import TopBar from '../TopBar/TopBar'; import Routes from '../../services/Routes'; expo...
node_modules/react-bootstrap/es/Checkbox.js
ASIX-ALS/asix-final-project-frontend
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/public/js/components/screens/FinanceElement.js
datalocale/dataviz-finances-gironde
import { Map as ImmutableMap, List, Set as ImmutableSet } from 'immutable'; import React from 'react'; import { connect } from 'react-redux'; import page from 'page'; import { max } from 'd3-array'; import { makeLigneBudgetId } from '../../../../shared/js/finance/DocBudgDataStructures'; import { aggregatedDocumentB...
examples/test-cra/src/stories/index.js
shilman/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import Button from './Button'; import Welcome from './Welcome'; storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo(...
src/app/main.js
tomatau/breko-hub
import React from 'react' import { Provider } from 'react-redux' import { sagaMiddleware } from 'app/composition/middleware' import rootSaga from 'app/sagas' import App from 'app/components/App/App' export const Main = (store, history, Router) => ( <Provider store={store}> <Router history={history}> <App /...
src/SectionHeaderAlternate/index.js
christianalfoni/ducky-components
import IconAvaWrapper from '../IconAvaWrapper'; import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import Wrapper from '../Wrapper'; import classNames from 'classnames'; import styles from './styles.css'; function SectionHeaderAlternate(props) { return ( <div ...
analysis/monkbrewmaster/src/modules/spells/BlackoutCombo.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import { SpellIcon } from 'interface'; import { formatPercentage } from 'common/format'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; impor...
app/react-icons/fa/th-list.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaThList extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m11.4 27.9v4.2q0 0.9-0.6 1.6t-1.5 0.6h-7.2q-0.9 0-1.5-0.6t-0.6-1.6v-4.2q0-0.9...
app/Components/Configuration/Item.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { View, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import { TextBasic } from '../Atoms/Text'; import styles from './styles'; import theme from '../../theme'; const { color } = theme...
src/Provider.js
gribnoysup/react-yandex-maps
/* global __DOCZ__ */ import React from 'react'; import PropTypes from 'prop-types'; import { YMapsContext } from './Context'; import { YMaps } from './YMaps'; export default class Provider extends React.Component { constructor(props) { super(props); this.ymaps = new YMaps(props); } componentDidMount()...
src/client/assets/javascripts/app/DevTools.js
dead-in-the-water/ditw
import React from 'react' import { createDevTools } from 'redux-devtools' // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' import SliderMonitor from 'redux-slider-monitor' // createDevTools takes ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/checkbox/Checkbox.js
bhathiya/test
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
admin/src/components/ListColumnsForm.js
BlakeRxxk/keystone
import classnames from 'classnames'; import React from 'react'; var Transition = React.addons.CSSTransitionGroup; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, InputGroup, SegmentedControl } = require('e...
react/redux-start/counter-react-redux/src/components/App.js
kobeCan/practices
import React from 'react'; import Footer from './Footer'; import AddTodo from '../containers/AddTodo'; import VisibleTodoList from '../containers/VisibleTodoList'; const App = () => { <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> } export default App
packages/material-ui-icons/src/Report.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Report = props => <SvgIcon {...props}> <path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3 1.3z...
lib/select.js
jihdeh/react-native-dropdown
import React, { Component } from 'react'; import Option from './option'; import { Dimensions, StyleSheet, TouchableWithoutFeedback, View } from 'react-native'; const window = Dimensions.get('window'); const SELECT = 'SELECT'; const styles = StyleSheet.create({ container: { borderColor: '#BDBDC1', ...
index.js
ldd/samosa-search
import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router'; import routes from './app/config/routes'; import injectTapEventPlugin from 'react-tap-event-plugin'; //Needed for onTouchTap //Can go away when react 1.0 release //Check this repo: //https://github.com/zilverline/react...
src/components/NavLinks/NavLinks.story.js
Drathal/react-playground
import React from 'react' import { storiesOf } from '@kadira/storybook' import NavLinks from 'components/NavLinks/NavLinks.jsx' storiesOf('NavLinks', module) .addWithInfo('with 1 link', () => ( <NavLinks linkList={[ { title: 'link1', link: 'link1' } ]} /> ), { inline: true, propT...
src/components/Vote.js
AlexKVal/vote-client
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; export default React.createClass({ mixins: [PureRenderMixin], getPair: function() { return this.props.pair || []; }, isDisabled: function() { return !!this.props.hasVoted; }, hasVotedFor: function(entry) { ...
test/test_helper.js
sezarmbar/My-redux-01
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...
geonode/monitoring/frontend/monitoring/src/components/organisms/software-performance/index.js
francbartoli/geonode
/* ######################################################################### # # Copyright (C) 2019 OSGeo # # This program 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 # ...
src/SplitButton.js
westonplatter/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
src/routes/Part/components/SavePart.js
nnti3n/pc-checker-client
import React from 'react' class SavePart extends React.Component { constructor (props) { super(props) this.cb = this.cb.bind(this) } cb () { this.props.save(this.props.objectItem) } render () { return ( <button className='btn btn-default badge' onClick={this.cb}> Save <...
src/index.js
cristianvnica/learning-mern-stack
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App initialData={window.initialData} />, document.getElementById('root') );
js/admin/retire-form.js
openstates/openstates.org
import React from 'react'; import Cookies from "js-cookie"; class RetireForm extends React.Component { constructor(props) { super(props); this.state = { submitSuccess: false, retirementDate: null, reason: null, isDead: false, vacantSeat: false, } this.handleInputChange =...
frontend/src/app.js
wadobo/socializa
import React from 'react'; import { withRouter } from 'react-router'; import { HashRouter as Router, Route, Switch } from 'react-router-dom'; import NavBar from './navbar'; import Map from './map'; import Profile from './profile'; import Events from './events'; import Event from './event'; import Connect from './conn...
src/scenes/Explore.js
erhathaway/cellular_automata
import React from 'react'; export default () => ( <div> Explore Scene </div> );
packages/material-ui-icons/src/PanoramaFishEye.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PanoramaFishEye = props => <SvgIcon {...props}> <path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /> </SvgIcon>; Pan...
app/components/SingleCar/index.js
kondoSoft/react-car-rental
/** <div className='contentReserveSingleCar'> <FormCarReserve car={car} key={`form-${i}`}/> <SingleCar cars={car} key={i} loadingTrueReserve={this.props.loadingTrueReserve}/> </div> * * SingleCar * */ import React from 'react'; // import styled from 'styled-components'; i...
src/App.js
cataclyst/archivist-ui
import React from 'react'; import './App.css'; import {BrowserRouter, Route, Switch} from 'react-router-dom'; import AppMenu from './menu'; import RecentChanges from "./recent_changes"; import TagList from "./tag_list"; import NewEntry from "./new_entry"; import SearchResults from "./search"; const App = () => ( <...
src/svg-icons/action/speaker-notes.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpeakerNotes = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-...
src/components/SearchEns/SearchEns.js
chochinlu/ens-bid-dapp
import React from 'react'; import {SearchResult} from './SearchResult'; import Paper from 'material-ui/Paper'; import Input from 'material-ui/Input'; import IconButton from 'material-ui/IconButton'; import './SearchEns.css'; const SearchDescription = () => ( <div className="SearchDescription"> <h1>Your Identity ...
dispatch/static/manager/src/js/components/SubsectionEditor/SubsectionForm.js
ubyssey/dispatch
import React from 'react' import { Switch } from '@blueprintjs/core' import { TextInput, TextAreaInput } from '../inputs' import * as Form from '../Form' import SectionSelectInput from '../inputs/selects/SectionSelectInput' import AuthorSelectInput from '../inputs/selects/AuthorSelectInput' import ArticleSelectInput...
node_modules/enzyme/src/version.js
rekyyang/ArtificalLiverCloud
import React from 'react'; export const VERSION = React.version; export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = VERSION.slice(0, 3) === '15.';
app/components/ToolWhyItWorked/index.js
rapicastillo/beautifulrising-client
/** * * ToolTextSection * */ import React from 'react'; import styled from 'styled-components'; import { FormattedMessage, injectIntl } from 'react-intl'; import { CommonLeftHeader } from 'components/CommonComponents'; import ContentBlock from 'components/ContentBlock'; import LanguageThemeProvider from 'components/L...
src/Typing.js
adamjking3/react-typing-animation
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import requestAnimationFrame from 'raf'; import { randomize, extractText, replaceTreeText, getCircularReplacer, } from './utils'; import Backspace from './Backspace'; import Reset from './Reset'; import Delay from './Delay'; import S...
video_browser/src/components/video_list_item.js
titusjin/reduxExp
<<<<<<< HEAD import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { ======= import React from "react"; const VideoListItem = ({ video, onVideoSelect }) => { >>>>>>> upstream/master const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)}...
201601react/皮亚芳第一次作业/webpack-react-config/app/container/App.js
zhufengreact/homework
import React, { Component } from 'react'; import Button from '../components/Button/Button'; import './App.sass'; class App extends Component { render(){ return ( <div className="app"> <Button /> <div className="tip"></div> {/* 这里我们使用以下图标字体 */} <span className="glyphicon gly...
app/app/render.js
snowkeeper/systemjs-reactjs-hot-reload
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Path from 'path'; import wrapListeners from './listen'; import Debug from 'debug'; import Menu from './common/components/menu'; import Confirm from './common/components/confirm'; import routes from './routes'; import { Card, CardText, Fo...
src/containers/RecipePosts.js
efloden/open-recipes
import React from 'react' import PropTypes from 'prop-types' import '../App.css' import * as firebase from 'firebase' import { FormGroup, InputGroup, Button, Form, ListGroup, ListGroupItem } from 'reactstrap' import { ControlLabel, FormControl, } from 'bootstrap' class RecipePosts extends React.Component { static ...
components/IssueDetail.js
itssumitrai/git-issue-viewer
/** * Copyright 2016, Sumit Rai * Copyrights licensed under the New MIT License. See the accompanying LICENSE file for terms. */ 'use strict'; import React from 'react'; // Components import IssueDetailHeader from './IssueDetail/IssueDetailHeader'; import Comment from './IssueDetail/Comment'; import ItemLayout fr...
index.android.js
BDE-ESIEE/mobile
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './components/App'; class Lagoon extends Component { render () { return ( <App /> ); } } AppRegistry.regis...
react/src/base/typography/SprkText/SprkText.stories.js
sparkdesignsystem/spark-design-system
import React from 'react'; import SprkText from './SprkText'; import { markdownDocumentationLinkBuilder } from '../../../../../storybook-utilities/markdownDocumentationLinkBuilder'; export default { title: 'Foundations/Typography', decorators: [ story => <div className="sprk-o-Box">{story()}</div> ], compo...
src/js/components/icons/base/Aggregate.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...
src/components/Register/Register.js
kdrabek/exchange_rates_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Field, reduxForm, SubmissionError } from 'redux-form'; import { Row, Col, FormControl, Button, ControlLabel, FormGroup, Form } from 'react-bootstrap'; i...
src/svg-icons/action/view-carousel.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewCarousel = (props) => ( <SvgIcon {...props}> <path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/> </SvgIcon> ); ActionViewCarousel = pure(ActionViewCarousel); ActionViewCarousel.displayName =...
website-prototyping-tools/RelayPlayground.js
SBUtltmedia/relay
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ /* eslint-disable...