path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
api/app/components/activities/grid.js
cmilfont/zonaextrema
import React from 'react'; import { browserHistory } from 'react-router'; import Kind from './kind.js'; export default class Grid extends React.Component { state = { kinds: { data:[] } }; componentDidMount() { fetch('/kinds').then( res => res.json().then( this.refreshList ) ); } refreshList = ...
addons/info/src/components/PropVal.js
jribeiro/storybook
import React from 'react'; import PropTypes from 'prop-types'; import createFragment from 'react-addons-create-fragment'; const valueStyles = { func: { color: '#170', }, attr: { color: '#666', }, object: { color: '#666', }, array: { color: '#666', }, number: { color: '#a11', ...
frontend/assets/js/routes/MainRoutes.js
fga-verival/2017-1Grupo2
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import GamePage from '../pages/GamePage'; import GamesPage from "../pages/GamesPage"; import IndexPage from "../pages/IndexPage"; import AboutPage from "../pages/AboutPage"; export default class MainRoutes extends React.Component { render...
app/javascript/mastodon/features/ui/components/upload_area.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.boo...
test/common/components/App-test.js
vgarcia692/wutmi_frontend
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); });
src/Slider/Slider.js
dimik/react-material-web-components
import React from 'react' import PropTypes from 'prop-types' import {MDCComponent} from '../MDCComponent' import {MDCSlider} from '@material/slider/dist/mdc.slider' import classNames from 'classnames' class Slider extends MDCComponent { static displayName = 'Slider' static propTypes = { children: PropTypes.no...
src/svg-icons/editor/highlight.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorHighlight = (props) => ( <SvgIcon {...props}> <path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/> </SvgIcon> ); Edito...
docs/src/pages/components/typography/Types.js
lgollut/material-ui
import React from 'react'; import Typography from '@material-ui/core/Typography'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles({ root: { width: '100%', maxWidth: 500, }, }); export default function Types() { const classes = useStyles(); return ( <div classNa...
src/components/PlaylistManager/Panel/DeletePlaylistButton.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import Tooltip from '@mui/material/Tooltip'; import IconButton from '@mui/material/IconButton'; import DeleteIcon from '@mui/icons-material/Delete'; import ConfirmDialog from '../../Dialogs/ConfirmDia...
src/components/DragElement/DragElement.js
claygifford/claygifford-Task
/*! claygifford-Task | MIT License | https://github.com/claygifford/claygifford-task/ */ import React from 'react'; var DragElement = React.createClass({ propTypes: { children: React.PropTypes.node.isRequired }, componentDidMount: function() { this.dragElement = document.createElement('div'); docum...
src/components/svg/Move.js
pixel-glyph/better-reads
import React from 'react'; const Move = () => { return ( <svg className="btn-icon icon-move" fill="#ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> <path d="M0 0h24v24H0z" fill="n...
node_modules/react-icons/io/tshirt.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoTshirt = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 7.5l-2.5 6.9-5-0.6 1.3 22.5h-22.5l1.2-22.5-5 0.6-2.5-6.9 12.5-3.7c1.1 2.1 2.4 3 5 3.1 2.6 0 3.9-1 5-3.1z"/></g> </Icon> ) export default IoTshirt
gatsby-ssr.js
micnigh/resume
import React from 'react'; import { renderToString } from 'react-dom/server'; import { Provider } from 'react-redux'; import { ServerStyleSheet, StyleSheetManager } from 'styled-components'; import { merge } from 'lodash'; import Layout from './src/layouts/'; import data from './src/data/'; import createStore from '....
app/shared/reservation-confirmation/ReservationConfirmationContainer.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import first from 'lodash/first'; import last from 'lodash/last'; import orderBy from 'lodash/orderBy'; import { deleteReservation, postReservation, putReserv...
src/js/components/Pagination.js
aleross/maroon-joule
import React from 'react'; import { Link } from 'react-router'; import { loadFromGithub } from '../utils'; export default class Pagination extends React.Component { constructor() { super(); this.state = { currentPage: null, pages: [], totalPages: null } } // Load number of pages to know t...
client/src/js/component/SignUpView.js
lologarithm/fastbible
import React from 'react'; const {div, span, h1, ul, li, a, button} = React.DOM; import component from 'component'; import {Link, Router} from './router-jsx'; import {routeNames, keys} from 'constants'; import {Input, Glyph, ProgressBar} from '../react-bootstrap-jsx'; import userSession from '../store/userSession'; c...
src/@ui/Scripture/Item.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { compose, setPropTypes } from 'recompose'; import Placeholder from 'rn-placeholder'; import withScripture from '@data/withScripture'; import { H4, H7 } from '@ui/typography'; import ScriptureHTMLView from './Sc...
src/EasySelect.react.js
colinf/react-easy-select
import React from 'react'; import merge from 'lodash.merge'; let mode = { SELECT: 'select', INPUT: 'input' }; let OTHER = 'Other...'; let styles = { easySelect: { width: 120 }, select: { width: '100%' }, input: { width: '68%' }, confirmButton: { width: '10%', color: 'green', ...
src/components/Account/Form/index.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Checkbox } from 'semantic-ui-react'; import { getAccountGroupOptions, formTostate } from 'entities/Account'; import BalanceTable from './BalanceTable'; import './index.css'; class AccountForm extends React.Component { constructor(props) { ...
src/components/Loading.js
faccuo/react-slingshot-auth0-sample
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; const Loading = () => { return ( <div style={{ paddingTop: 20, paddingBottom: 20, textAlign: 'center' }}> <CircularProgress/> </div> ); }; export default Loading;
src/client/Home.js
AlexanderKapelyukhovskiy/rcn.io
import React from 'react' import Component from 'react-pure-render/component' import Auth0Badge from 'home/Auth0Badge.jsx' import HeapAnalyticsBadge from 'home/HeapAnalyticsBadge.jsx' import SheetsuBadge from 'home/SheetsuBadge.jsx' import { Link } from 'react-router' import 'home/Home.scss' import Badge from 'calendar...
templates/rubix/redux/redux-seed/server.babel.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import path from 'path'; import express from 'express'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import graphQLHTTP from 'express-graphql'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import routes from './src/routes'; import { setupReducers, ...
docs/app/Examples/elements/Divider/Types/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DividerTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Divider' description='A ...
js/jqwidgets/demos/react/app/grid/filterconditions/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; import JqxPanel from '../../../jqwidgets-react/rea...
src/containers/verification/form/BIFFormView.js
shojil/bifapp
/** * Login/Sign Up/Forgot Password Screen * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, ScrollView, AsyncStorage, TouchableOpacity, AndroidPermissions, Alert, Switch }...
client/trello/src/app/components/Forms/CreateBoard/CreateBoard.js
Madmous/Trello-Clone
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import FontAwesome from 'react-fontawesome'; import PropTypes from 'prop-types'; import '../Form.css'; const propTypes = { isCreateBoardModalOpen: PropTypes.bool, modalActions: PropTypes.object.isRequired }; const defaultProps = { isC...
node_modules/react-slick/src/inner-slider.js
yhx0634/foodshopfront
'use strict'; import React from 'react'; import EventHandlersMixin from './mixins/event-handlers'; import HelpersMixin from './mixins/helpers'; import initialState from './initial-state'; import defaultProps from './default-props'; import createReactClass from 'create-react-class'; import classnames from 'classnames';...
docs/src/app/components/pages/components/RaisedButton/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import raisedButtonReadmeText from './README'; import raisedButtonExampleSimpleC...
src/views/SignUp.js
nobleach/react-redux-example
import React from 'react'; import MiniInfoBar from '../components/MiniInfoBar'; export default class SignUp { render() { return ( <div> <h1>Sign Up</h1> <div>Hey! You found the mini info bar! The following component is display-only.</div> <MiniInfoBar/> </div> ); } }
examples/universal/client/index.js
f/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
src/components/Dashboard/Dashboard.js
mjchamoures/personalPortfolio
import React from 'react' import classes from './Dashboard.scss' export const Dashboard = (props) => ( <div > <h2 className={classes.dashboardContainer}> Dashboard: {' '} <span className={classes['dashboard--green']}> {props.dashboard} </span> </h2> <button className='btn...
src/components/Footer/index.js
socialgorithm/ultimate-ttt-web
import React from 'react'; import { Icon } from 'semantic-ui-react'; import './index.scss'; export default () => { return ( <footer> <p> &copy; 2017 <a href="https://socialgorithm.org">#Socialgorithm</a>. All Rights Reserved. Help us spread the <Icon name='heart...
app/templates/src/routes.js
fuzz-productions/generator-mortar
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from './components/app'; const Routes = ( <Route path="/" component={App}> </Route> ); // <IndexRoute component={Dashboard} /> // <Route path="*" component={Dashboard} /> module.exports = Routes;
src/ui/Mastermind.js
nuragic/MastermindJS
import React, { Component } from 'react'; import Repeat from 'react-repeat-component'; import MastermindAPI from '../api/mastermind'; import './Mastermind.css'; const PEGS_PER_ROW = MastermindAPI.PEGS_PER_ROW; class Mastermind extends Component { constructor(props) { super(props); this.state = {...Master...
src/components/CommentUI.js
cherishstand/dva-quickstart
import React from 'react'; import { InputItem, DatePicker, TextareaItem } from 'antd-mobile'; import moment from 'moment'; const zhNow = moment().locale('zh-cn').utcOffset(8); const DateGroup = React.createClass({ getInitialState() { const { defaultValue } = this.props; let defaultDate = defaultValu...
app/src/components/Header/Nav/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React from 'react'; import { NavLink } from 'react-router-dom'; import PropTypes from 'prop-types'; /* * Local Import */ import routes from 'src/routes'; /* * Code */ const routesHasLabel = routes.filter(route => route.label); /* * Component */ const Nav = ({ onHideMenu }) =>...
src/components/Header/Header.js
tbmc/KaribouV3
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/counter' activeClassName='route--activ...
packages/material-ui-icons/src/Flare.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Flare = props => <SvgIcon {...props}> <path d="M7 11H1v2h6v-2zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12 1.41-1.41zM13 1h-2v6h2V1zm5.36 6.05l-1.41-1.41-2.12 2.12 1.41 1.41 2.12-2.12zM17 11v2h6v-2h-6zm-5-2c-...
packages/react-router/modules/StaticRouter.js
goblortikus/react-router
import invariant from 'invariant' import React from 'react' import PropTypes from 'prop-types' import { addLeadingSlash, createPath, parsePath } from 'history/PathUtils' import Router from './Router' const normalizeLocation = (object) => { const { pathname = '/', search = '', hash = '' } = object return { pat...
src/containers/Html.js
Hylozoic/hylo-redux
import React from 'react' import { assetUrl } from '../util/assets' import { map } from 'lodash' import { environment } from '../config' var { string, object } = React.PropTypes import pingdom from '../server/pingdom' const isProd = environment === 'production' const rawScript = contents => <script type='text/javas...
src/parser/paladin/holy/modules/core/Overhealing.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import HealingDone from 'parser/shared/modules/Heal...
react_preset_facebook/src/index.js
pavbox/webpack-configs-collection
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
examples/mapname/app.js
jjmulenex/sdk
/** Map Name example. */ import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import SdkZoomControl from '@boundlessgeo/sdk/components/map/zoom-control'; imp...
app/components/FAQs.js
trussworks/DoDidDone
import React from 'react'; export const FAQs = () => ( <div> <h2>FAQs</h2> <p>Some content and Frequently Asked Questions Go Here</p> </div> ); export default FAQs;
website-prototyping-tools/RelayPlayground.js
xymostech/relay
import './RelayPlayground.css'; import 'codemirror/mode/javascript/javascript'; import Codemirror from 'react-codemirror'; import React from 'react'; import ReactDOM from 'react/lib/ReactDOM'; import Relay from 'react-relay'; window.Relay = Relay; import babel from 'babel-core/browser'; import babelRelayPlaygroundPlu...
src/svg-icons/image/looks-3.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks3 = (props) => ( <SvgIcon {...props}> <path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v...
client/components/SignupPage.js
RicardormDev/ReactEnviroment
import React from 'react'; import SignupForm from './SignupForm' import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { userSignupRequest, isUserExist } from '../actions/signupActions'; import { addFlashMessage } from '../actions/flashMessages'; import AllTestMessages from './TestM/testMess...
src/svg-icons/action/flight-takeoff.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightTakeoff = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-....
src/CardButton.js
SiDevesh/React-Native-Material-Cards
import React from 'react'; import { StyleSheet, Text, } from 'react-native'; import { Touchable } from './utils'; const CardButton = (props) => { const newStyle = props.style || {}; const newTitleStyle = props.titleStyle || {}; const directionStyle = props.inColumn ? styles.CardButtonInColumn : styles.CardBu...
src/main/webapp/javascript/route/serverError.js
tongjch/fpay-checkout
import React, { Component } from 'react'; const styles={ root:{ textAlign: 'center' }, alert:{ fontSize: 80, fontWeight: 'bold', color: '#e9ab2d' } } class ServerError extends Component { render() { return ( <div style={styles.root}> ...
src/client/devtools.js
nathanielks/universal-redux
import React from 'react'; import { compose as _compose, applyMiddleware } from 'redux'; import { createDevTools, persistState } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export const DevTools = createDevTools( <DockMonitor tog...
tests/react/useLayoutEffect_hook.js
samwgoldman/flow
// @flow import React from 'react'; { React.useLayoutEffect(); // Error: function requires another argument. } { // Ok variants without cleanup functions React.useLayoutEffect(() => {}); React.useLayoutEffect(() => {}, []); React.useLayoutEffect(() => {}, [1, 2, 3]); // Ok variants with cleanup function...
examples/DebouncedAutoSave.js
jaredpalmer/formik
import React from 'react'; import { useFormikContext, Formik, Field, Form } from 'formik'; import { Debug } from './Debug'; import debounce from 'just-debounce-it'; const AutoSave = ({ debounceMs }) => { const formik = useFormikContext(); const [lastSaved, setLastSaved] = React.useState(null); const debouncedSub...
ee/app/engagement-dashboard/client/components/ChannelsTab/ChannelsTab.stories.js
VoiSmart/Rocket.Chat
import { Margins } from '@rocket.chat/fuselage'; import React from 'react'; import ChannelsTab from '.'; export default { title: 'admin/enterprise/engagement/ChannelsTab', component: ChannelsTab, decorators: [ (fn) => <Margins children={fn()} all='x24' />, ], }; export const _default = () => <ChannelsTab />;
docs/src/SupportPage.js
chilts/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
node_modules/react-native/Libraries/Image/Image.ios.js
Stoneski93/GymDiary
/** * Copyright (c) 2015-present, 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. * * @provides...
js/components/Header/3.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; import { openDra...
lib/components/Header.js
Peter-Springer/peter-springer.github.io
import React from 'react'; class Header extends React.Component { render() { return ( <section className="header-container"> <h1 className="header">PETER <span className="header-springer">SPRINGER</span> </h1> <nav className="header-nav"> <a className="header-lin...
ui/src/App.js
BranislavLazic/akka-cqrs-activator
import React from 'react'; import { Router, Switch, Route } from 'react-router-dom'; import { createBrowserHistory } from 'history'; import { Calendar } from './components/Calendar'; import { IssuePage } from './components/IssuePage'; import { baseUrl } from './components/IssuePage/api/issuesApi'; const history = crea...
src/svg-icons/social/sentiment-neutral.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentNeutral = (props) => ( <SvgIcon {...props}> <path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C1...
src/components/user/UserConsentForm.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { Field, reduxForm } from 'redux-form'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { connect } from 'react-redux'; import { FormattedMessage, injectIntl } from 'react-intl'; import AppButton from '../common/AppButton'; import mes...
src/Accordion.js
sheep902/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
index.ios.js
zhufengketang/app
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, Text, View } from 'react-native'; console.log("My first app....") import {Entry} from './app/entry' AppRegistry.registerComponent('zhufengketang', () => Entry...
modules/PropTypes.js
flocks/react-router
import React from 'react'; import Location from './Location'; import History from './History'; var { func, object, arrayOf, instanceOf, oneOfType, element } = React.PropTypes; function falsy(props, propName, componentName) { if (props[propName]) return new Error(`<${componentName}> should not have a "${propName...
examples/simple/index.js
malte-wessel/react-textfit
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; render(<App />, document.getElementById('root'));
src/js/components/icons/base/Bar.js
odedre/grommet-final
/** * @description Bar SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @proper...
src/Footer.js
TheEvilCorp/OverReact
import React, { Component } from 'react'; export default class Footer extends Component { trackDonate() { mixpanel.track('Clicked Donate'); }; render() { let styleObj = { textAlign: 'center', margin: 'auto' }; let mixPanelImg = { margin: 'right', paddingRight: '30px' ...
web/src/components/AuthRoute.js
slice/dogbot
import React from 'react' import { Route, Redirect } from 'react-router-dom' import { AuthContext } from '../auth' export default function AuthRoute({ component: Component, ...routeProps }) { const render = (props) => ( <AuthContext.Consumer> {(user) => user != null ? ( <Component {...pr...
src/svg-icons/av/slow-motion-video.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSlowMotionVideo = (props) => ( <SvgIcon {...props}> <path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1....
src/app/components/ViewLoading.js
flexpert/react-es6-fsm
/* eslint-disable */ import React from 'react'; import View from '../rfsm/View'; class ViewLoading extends View { static TransitionTypes = { NEXT: 'next' }; static propTypes = {}; constructor(props) { super(props); this.state = {}; } componentDidMount() { setTimeout(()=>{ this.ne...
src/components/List.js
eventhough/hapi-universal-redux
import React from 'react'; export default class List extends React.Component { render() { let rows = []; this.props.items.forEach(function(item, key) { if (item.name.toLowerCase().indexOf(this.props.input) === -1) { return; } rows.push(<p key={key}>{item.name}</p>); }.bind(this)); ...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Layout/Header/Header.js
abimarank/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
packages/material-ui-icons/src/LocalDrink.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocalDrink = props => <SvgIcon {...props}> <path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.33...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
src/modules/keywords/components/KeywordDetail/KeywordDetail.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import $ from 'jquery'; import _s fro...
app/src/common/MessageBox.js
skunkmb/Ablo
import React, { Component } from 'react'; import { Text, KeyboardAvoidingView, View, Image } from 'react-native'; import PropTypes from 'prop-types'; import MessageInput from './MessageInput.js'; import MiniButton from './MiniButton.js'; import ListCellSeparator from './ListCellSeparator.js'; import { darkTheme } from ...
Web Developer Skills/Learn ReactJS Part II/Unit 04 Style/04 Style Name Syntax/styleMe.js
ummahusla/codecademy-exercise-answers
import React from 'react'; import ReactDOM from 'react-dom'; const styles = { background: 'lightblue', color: 'darkred', marginTop: '100px', fontSize: '50px' } const styleMe = <h1 style={styles}>Please style me! I am so bland!</h1>; ReactDOM.render( styleMe, document.getElementById('app') );
frontend/node_modules/recharts/demo/component/RadarChart.js
justdotJS/rowboat
import React, { Component } from 'react'; import { Surface, Radar, RadarChart, PolarGrid, Legend, Tooltip, PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer, LabelList, Label } from 'recharts'; import DemoRadarItem from './DemoRadarItem'; import { changeNumberOfData } from './utils'; const data = [ { subject:...
Agenda/src/components/authentication/require_auth.js
interlegis/agenda-evento
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; export default function(ComposedComponent) { class Authentication extends Component { static contextTypes = { router: PropTypes.object } componentWillMount() { if (!this.props...
app/javascript/mastodon/features/generic_not_found/index.js
theoria24/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator fullPage /> </Column> ); export default GenericNotFound;
src/js/components/Accordion.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import List from './List'; import CSSClassnames from '../utils/CSSClassnames'; import Props from '../utils/Props'; const CLASS_ROOT =...
examples/official-storybook/stories/addon-info/parameters.stories.js
storybooks/react-storybook
import React from 'react'; import { withInfo } from '@storybook/addon-info'; import { action } from '@storybook/addon-actions'; import BaseButton from '../../components/BaseButton'; import { markdownDescription } from './markdown.stories'; export default { title: 'Addons/Info/Parameters', decorators: [ withIn...
src/components/pages/SlackPage/index.js
RussHR/github_page_src
import React from 'react'; import ContentLayout from '../../layout/ContentLayout'; import ImageGallery from '../../ImageGallery'; import { mapSpecsToImages } from '../../../helpers/image'; const onboarding2Specs = [ { name: 'onboarding-2-load-animated', sizes: [ '434' ], alt: 'the start o...
app/components/Occupied/index.js
medevelopment/UMA
import React, { Component } from 'react'; import axios from 'axios'; import * as toastify from '../../functions/Toastify'; import { IsNumber } from '../../functions/Validations'; import { getRentPaymentStatusName } from '../../functions.js'; import { isoToShortDate, fullDateToIsoDate } from '../../functions.js'; impo...
src/app/components/UserList.js
Pocket-titan/EzDraw
import React from 'react' import { Text, View, Dimensions } from '../components.js' import { Badge } from 'material-ui' //Animation import { star } from '../style.css' let User = (user, index, skin) => { return ( <Text style={{ position: 'relative', backgroundColor: skin.palette.userBackgr...
node_modules/react-icons/fa/odnoklassniki.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaOdnoklassniki = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.8 20.2q-4.2 0-7.2-2.9t-2.9-7.2q0-4.2 2.9-7.1t7.2-3 7.1 3 3 7.1q0 4.2-3 7.2t-7.1 2.9z m0-15.1q-2.1 0-3.5 1.5t-1.5 3.5q0 2.1 1.5 3.5t3.5 1.5 3.5-1.5 1.5-3.5q0...
HTML/JavaScript/myapp-react-app/src/components/ToDoList.js
xiaoxiaoyao/MyApp
import React, { Component } from 'react'; class HelloReactToDoList extends Component{ constructor(props) { super(props); this.state = { things:props.things }; this.addTodo = this.addTodo.bind(this); }; addTodo() { console.log("add todo.",this); console.log(this.p...
app/screens/common/modal-address.js
yiyinsong/react-native-example-jdh
import React, { Component } from 'react'; import { Text, Image, View, TouchableOpacity, Modal, ScrollView, DeviceEventEmitter } from 'react-native'; import Config from '../../config/config'; import styles from '../../css/styles'; import Utils from '../../js/utils'; export de...
src/routes/Ticket/components/Ticket.js
Terrapin-Ticketing/althea
import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; import QRCode from 'qrcode.react'; import Loading from '../../../components/shared/Loading'; import Price from '../../../components/shared/Price'; import ShareModal from '../../../components/shared/ShareModal'; import Trans...
app/javascript/mastodon/features/ui/components/actions_modal.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
src/svg-icons/editor/bubble-chart.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBubbleChart = (props) => ( <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/> </SvgIcon> ); EditorBubbleChart = pure(EditorBub...
react-components/src/library/components/unit-test-example/index.js
concord-consortium/rigse
import React from 'react' import DisplayText from './display-text' /* * See `README.md` in this folder for documentation. */ export default class UnitTestExample extends React.Component { constructor (props) { super(props) this.state = { settings: Object.assign({}, props) } } render () { ...
frontend/App.js
akin520/pratice-node-project
import React from 'react'; import Header from './component/Header'; import Footer from './component/Footer'; import TopicList from './component/TopicList'; export default class App extends React.Component { render() { return ( <div className="container"> <Header /> {this.props.children ? th...
src/containers/editor/RepoEditor/SearchInputer.js
mydearxym/mastani
import React from 'react' import { GITHUB_WEB_ADDR } from '@/config' import Button from '@/widgets/Buttons/Button' import FormItem from '@/widgets/FormItem' import { InputWrapper } from './styles/search_man' import { onGithubSearch, searchOnChange } from './logic' const SearchInputer = ({ value, searching }) => ( ...
examples/huge-apps/routes/Course/components/Dashboard.js
BerkeleyTrue/react-router
import React from 'react' class Dashboard extends React.Component { render() { return ( <div> <h3>Course Dashboard</h3> </div> ) } } export default Dashboard
src/components/literals.js
Gregoor/syntactor
// @flow import { is, List } from 'immutable'; import React from 'react'; import type { ASTNodeProps } from '../types'; import Editable from './editable'; import EditorContext from './editor-context'; import Highlightable from './highlightable'; const Literal = ({ children, path, selectable, style, tabIndex ...
modules/Router.js
trotzig/react-router
import React from 'react' import warning from 'warning' import createHashHistory from 'history/lib/createHashHistory' import { createRoutes } from './RouteUtils' import RoutingContext from './RoutingContext' import useRoutes from './useRoutes' import { routes } from './PropTypes' const { func, object } = React.PropTyp...
src/svg-icons/notification/airline-seat-individual-suite.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatIndividualSuite = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6h-8v7H3V7H1v10h22v-6c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); Noti...
src/grid-stack-item.js
pitrho/react-gridstack
import React from 'react' export default class GridStackItem extends React.Component { constructor(props) { super(props) } render() { return this.props.children } } GridStackItem.propTypes = { autoPosition: React.PropTypes.bool, children: React.PropTypes.node, height: React.PropTypes.number, ...
demo/uRested.Console/src/index.js
aaronpowell/uRested
'use strict'; import React from 'react'; import App from './app/index.js'; const url = 'http://localhost:49199'; React.render(<App url={url} />, document.getElementById('main'));