path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
public/js/components/searchFor.js
MelanistOnca/bookList
import React from 'react'; import { render } from 'react-dom'; import $ from 'jquery'; // import Results from './results'; import Result from './result'; import SearchButton from './searchButton'; const rp = require('request-promise'); export default class SearchFor extends React.Component { searchTermChanged(upd...
docs/src/app/components/pages/components/Toggle/Page.js
barakmitz/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 toggleReadmeText from './README'; import ToggleExampleSimple from './Exam...
src/pages/no_match.js
AlbinOS/book-keeper-ui
import React from 'react'; class NoMatch extends React.Component { render() { return ( <div> <h1>404</h1> <p>This is not the web page you are looking for.</p> </div> ); } } export default NoMatch;
assets/jqwidgets/demos/react/app/treegrid/aggregates/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { setTimeout(() => { this.refs.myTreeGrid.expandRow(34); }) } render () { // pre...
src/component/Skill.js
Valtena/valt-code
import React from 'react'; import MDLComponent from '../utils/MDLComponent.js'; import LinkButton from './LinkButton.js'; import ReactDOM from 'react-dom'; class Skill extends MDLComponent { componentDidMount() { var root= ReactDOM.findDOMNode(this); var level= this.props.item.level; root.getElementsByCl...
app/javascript/mastodon/features/ui/components/video_modal.js
KnzkDev/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } from 'react-intl'; export const previewState = 'previe...
components/layout/Panel.js
rubenmoya/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { themr } from 'react-css-themr'; import { LAYOUT } from '../identifiers'; const Panel = ({ bodyScroll, children, className, theme, ...other }) => { const _className = cn(theme.panel, { [theme.bodyScroll]: bodyScroll }...
src/app/components/shell/index.js
omrilitov/react-universal
import React from 'react'; import {connect} from 'react-redux'; import AppBar from './AppBar'; import LeftNav from './LeftNav'; import * as leftNav from './redux'; import {logout, hasRole} from '../../auth/redux'; const flex = { flex: 1, display: 'flex', boxSizing: 'border-box', flexDirection: 'column' }; con...
barebones_bbb/src/components/Dashboard/Status/Status.js
wasong/cmpt433
import React from 'react' import Radium from 'radium' const styles = { root: { display: 'flex', alignItems: 'center', justifyContent: 'center', width: 10, height: 10, borderRadius: '50%', }, error: { backgroundColor: 'red', }, success: { backgroundColor: 'green', }, } const...
src/components/issue-description.component.js
dyesseyumba/git-point
import React, { Component } from 'react'; import { ActivityIndicator } from 'react-native'; import { ListItem } from 'react-native-elements'; import Parse from 'parse-diff'; import styled from 'styled-components'; import { StateBadge, MembersList, InlineLabel, DiffBlocks, Button, } from 'components'; import ...
packages/react/components/panel.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../ru...
src/components/concert-tracks.js
rickywid/micdb
import React from 'react'; import WidgetPlayer from './widget-player'; export default class ConcertTracks extends React.Component { constructor(props) { super(props); this.state = { expandListOpen: false } this.expandList = this.expandList.bind(this); } expandList() { console.log('called') this.setSta...
packages/reactor-tests/src/Layout.js
sencha/extjs-reactor
import React from 'react'; import { Container } from '@extjs/ext-react'; export default function Layout({ children }) { return ( <Container layout="fit"> { children } </Container> ) }
src/components/LastActivities.js
Maachi/Admin-FrontEnd
import React from 'react'; import SideNavigation from './SideNavigation'; class LastActivities extends SideNavigation { render() { return ( <div className="column left" ref="side" style={{ width: this.state.width + "px", top: this.state.top + "px"}}> <ul className="lateral-menu"> ...
examples/js/remote/remote-store-cell-edit.js
neelvadgama-hailo/react-bootstrap-table
import React from 'react'; import RemoteCellEdit from './remote-cell-edit'; function getProducts() { const products = []; const startId = products.length; for (let i = 0; i < 12; i++) { const id = startId + i; products.push({ id: id, name: 'Item name ' + id, price: Math.floor((Math.rand...
docs/src/app/components/pages/components/Subheader/Page.js
ArcanisCz/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 subheaderReadmeText from './README'; import listExampleChatCode from '!ra...
src/shared/components/form/formZipCode/formZipCode.js
sethbergman/operationcode_frontend
import React, { Component } from 'react'; import FormInput from '../formInput/formInput'; function zipCodeValidator(input) { return (input.length !== 0 && input.trim().length !== 0); } class FormZipCode extends Component { render() { return ( <FormInput {...this.props} validateFunc={zipC...
packages/core/src/components/ValueIcons/ValueIconOpen.js
appearhere/bloom
// @flow import React from 'react'; import cx from 'classnames'; import defaultcss from './ValueIcon.css'; import css from './ValueIconOpen.css'; type Props = { className?: string, } const ValueIconOpen = (props: Props) => { const { className, ...rest } = props; return ( <span className={cx(defaultcss.ro...
packages/material-ui-icons/legacy/SignalCellular2BarRounded.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M4.41 22H20c1.1 0 2-.9 2-2V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71z" /><path d="M14 10L3.71 20.29c-.63.63-.19 1.71.7 1.71H14V10z" /></React.Fr...
src/entypo/Switch.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Switch'; let EntypoSwitch = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M13,3H7c-3.866,0-7,3.134-7,7c0,3.866,3.134,7,7,7h6c3.866,0,7-3.134,7-7C20,6.134,16.866,3,13,3z M13,15...
index.ios.js
jpsierens/budget
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class budgetMobile extends Component { render() { return ( <View style={styles.contai...
src/containers/student/ratings.js
wunderg/PTC
import React from 'react'; import StarRating from 'react-star-rating'; import './style.scss'; export default (prop) => { const updateRating = (_, stars) => { const student = prop.data; student.ratings[stars.name] = stars.rating; prop.updateStudent(student); }; return ( <div className="card"> ...
src/flex-video/index.js
aruberto/react-foundation-components
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import cxBinder from 'classnames/bind'; import styles from './_styles.scss'; const cxStyles = cxBinder.bind(styles); export const FlexVideo = ({ containerClassName, containerStyle, vimeo, widescreen, ...restProps, }...
src/components/Header/Header.js
pvijeh/stock-tracking-app-reactjs
/** * 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, { Component } from 'react'; import withStyle...
src/universal/components/AppContainer/index.js
sanchitgangwar/remind-plus
import React, { Component } from 'react'; import { Switch, Route, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import Snackbar from 'material-ui/Snackbar'; import Slide from 'material-ui/transitions/Slide'; im...
src/js/components/List/stories/Action.js
HewlettPackard/grommet
import React from 'react'; import { Box, List, Menu } from 'grommet'; import { More } from 'grommet-icons'; const data = []; for (let i = 0; i < 40; i += 1) { data.push({ entry: `entry-${i + 1}`, }); } export const Action = () => ( <Box pad="large"> <List data={data.slice(0, 10)} pad={{ le...
src/svg-icons/editor/mode-comment.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorModeComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/> </SvgIcon> ); EditorModeComment = pure(EditorModeComment); Edito...
src/svg-icons/device/battery-charging-full.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryChargingFull = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H...
src/public/components/toolbox/item/file/copy.js
Lunik/tcloud
import React from 'react' import copy from 'copy-to-clipboard' import ListItem from '../default' import { CopyIcon } from '../../../image/svg' export default class CopyToolboxItem extends React.Component { constructor (props) { super(props) this.state = {} this.initState(props) } initState (props)...
webgui/src/components/clicker/index.js
ZetaTwo/RESTenAvSverige
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { click } from '../../redux/clicker'; import styles from './style.scss'; function mapStateToProps(state) { return { clicker: state.clicker, }; } function mapDispatchToProps(dispatch) { retu...
fixtures/dom/src/components/TestCase.js
AlmeroSteyn/react
import cn from 'classnames'; import semver from 'semver'; import React from 'react'; import PropTypes from 'prop-types'; import { parse } from 'query-string'; import { semverString } from './propTypes'; const propTypes = { children: PropTypes.node.isRequired, title: PropTypes.node.isRequired, resolvedIn: semverS...
src/svg-icons/notification/do-not-disturb-off.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOff = (props) => ( <SvgIcon {...props}> <path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78...
app/components/DateFilter/DateFilter.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import { View } from 'react-native'; import { Select, Calendar, Button, } from '../../components'; import s from './styles'; import { colors, scalingUtils } from '../../styles'; const ButtonFiler = props => ( <Button {...props} titleStyle={s.btTitl...
src/svg-icons/communication/call-missed-outgoing.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMissedOutgoing = (props) => ( <SvgIcon {...props}> <path d="M3 8.41l9 9 7-7V15h2V7h-8v2h4.59L12 14.59 4.41 7 3 8.41z"/> </SvgIcon> ); CommunicationCallMissedOutgoing = pure(CommunicationCallM...
client/src/pages/app/Panel.js
wujichao/wencheng
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import ListView from '../../component/ListView' export default class Panel extends React.Component { render() { const sections = [ { header:{title:'', access:true}, rows:[ ...
app/components/specificComponents/CookProfilWithData/index.js
romainquellec/cuistot
import React from 'react'; import { gql, graphql } from 'react-apollo'; import Container from './container'; import Titre from './titre'; import Form from './form'; import Input from './input'; import Textarea from './textarea'; import Select from '../CommentaryForm/selectStyled'; import Submit from '../CommentaryForm/...
app/components/Footer.js
alexko13/block-and-frame
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <div className="ui vertical footer inverted segment" id="footer"> <div className="ui center aligned container"> <div className="ui inverted stackable divided grid"> ...
node_modules/_rc-slider@8.3.1@rc-slider/es/common/createSlider.js
ligangwolai/blog
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/help...
src/components/Footer/Footer.js
mikeyshing88/MUN
/** * 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...
saga/P/shopping-cart/src/components/Cart.js
imuntil/React
import React from 'react' import CartItem from './CartItem' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { removeFromCart, checkout } from '../actions' import { getTotal, getCartProducts, isCheckoutPending, getCheckoutError } from '../reducers' function Cart({products, total, error,...
src/routes/MyResource/components/Dashboard/Dashboard.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import './dashboard.less'; class Dashboard extends React.Component { constructor(...args) { super(...args); this.state = { cityLimit: 20 }; } componentDidMount() { } render() { const data = _.get(this.props.analytics, 'data'); ...
stories/helpers/index.js
intljusticemission/react-big-calendar
import { addDecorator } from '@storybook/react' import { action } from '@storybook/addon-actions' import moment from 'moment' import React from 'react' import { Calendar as BaseCalendar, momentLocalizer } from '../../src' // For Testing SASS styling import '../../src/sass/styles.scss' import '../../src/addons/dragAn...
views/components/PlanAppointmentFormUi.js
gvaldambrini/madam
import React from 'react'; import InputAutosuggestCustomerUi from './InputAutosuggestCustomerUi'; // The presentational component used to plan an appointment. export default React.createClass({ propTypes: { plan: React.PropTypes.func.isRequired, fetchCustomerSuggestions: React.PropTypes.func.isRequired }...
app/javascript/mastodon/features/following/index.js
h3zjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
examples/src/components/CustomSingleValue.js
kurilovvo/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var SingleValue = React.createClass({ propTypes: { placeholder: React.PropTypes.string, value: React.PropTypes.object }, render () { var obj = this.props.value; var size = 15; var gravatarStyle = { borderRadius: 3, display: 'inline-bl...
src/components/App.js
masonforest/react-components
import './App.scss'; import React, { Component } from 'react'; import Button from './Button'; import Modal from './Modal'; export default class App extends React.Component { constructor() { super(); } openModal(){ this._modal.toggle(); } render() { return( <div> <h1>React Component...
app/components/H3/index.js
gitlab-classroom/classroom-web
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
geonode/contrib/monitoring/frontend/src/pages/errors/index.js
ingenieroariel/geonode
import React, { Component } from 'react'; import Header from '../../components/organisms/header'; import ErrorList from '../../components/organisms/error-list'; import styles from './styles'; class Errors extends Component { render() { return ( <div style={styles.root}> <Header back="/" /> ...
src/module.js
aurigadl/EnvReactAsk
// Bootstrapping module import React from 'react' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import routes from './config/routes' import css from './styles/main.less'; import { LocaleProvider } from 'antd'; import esES from 'antd/lib/locale-provider/es_ES'; function ha...
examples/Footer.js
jareth/react-materialize
import React from 'react'; import Footer from '../src/Footer'; export default <Footer copyrights="&copy; 2015 Copyright Text" moreLinks={ <a className="grey-text text-lighten-4 right" href="#!">More Links</a> } links={ <ul> <li><a className="grey-text text-lighten-3" href="#!">Link 1</a></li> ...
src/components/GoogleMap.js
j-der/pickmeup-ui
import React from 'react'; import { browserHistory } from 'react-router'; import axios from 'axios'; var GoogleMap = React.createClass({ getInitialState() { return {mapVariable: null} }, componentDidMount() { var that = this; // componentDidMount is called by React directly after Map is rendered ...
src/components/Weui/tab/tabbar_icon.js
ynu/res-track-wxe
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; export default class TabBarIcon extends React.Component { render() { const {children, className, ...others} = this.props; const cls = classNames({ weui_tabbar_icon: true, }, classNa...
src/components/Icons/IconGear.js
chrisxclash/play-midnight
import React from 'react'; import SvgIcon from './SvgIcon'; const IconGear = props => ( <SvgIcon viewBox="0 0 24 24" {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14....
tests/lib/rules/vars-on-top.js
Dashed/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
src/desktop/apps/isomorphic-relay-example/routes/auction/AuctionRoute.js
kanaabe/force
import React from 'react' import { createFragmentContainer, graphql } from 'react-relay' export const AuctionRoute = createFragmentContainer( ({ sale }) => { return ( <div> <h1 style={{ fontSize: 30 }}>{sale.name}</h1> <p>{sale.description}</p> </div> ) }, graphql` fragmen...
jenkins-design-language/src/js/components/material-ui/svg-icons/toggle/indeterminate-check-box.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ToggleIndeterminateCheckBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-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-2 10H7v-2h10v2z"/> </SvgIcon> ); ToggleIndeterminateCheckBox.displayName = 'ToggleIndeterm...
app/containers/PaneButton/index.js
nypl-spacetime/where
import React from 'react' import { connect } from 'react-redux' import { createSelector } from 'reselect' import { selectPaneMode, selectItem, selectMapDefaults } from '../App/selectors' import { setPaneIndex } from '../App/actions' import crosshairHereSmall from 'images/crosshair-here-small.svg' import { C...
examples/web/many/many-component.js
pH200/cycle-react
import React from 'react'; export function ManyItem(props) { const style = { border: '1px solid #000', background: 'none repeat scroll 0% 0% ' + props.color, width: props.width + 'px', height: '70px', display: 'block', padding: '20px', margin: '10px 0px' }; function onRemoveClick() { ...
src/components/List/List.js
nambawan/g-old
// Heavily inspired by grommet import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import withStyles from 'isomorphic-style-loader/withStyles'; import InfiniteScroll from '../../core/InfiniteScroll'; import s from './List.css'; class List extends React.Component { static propT...
src/Snackbar/Snackbar.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const ROOT = 'mdc-snackbar'; const ACTIVE = `${ROOT}--active`; const TEXT = `${ROOT}__text`; const ACTION_WRAPPER = `${ROOT}__action-wrapper`; const ACTION_BUTTON = `${ROOT}__action-button`; const MULTILINE = `${ROOT}--...
packages/fyndiq-component-article/src/image.js
fyndiq/fyndiq-ui
import React from 'react' import PropTypes from 'prop-types' class Img extends React.Component { static propTypes = { src: PropTypes.string, style: PropTypes.object, // eslint-disable-line react/forbid-prop-types } static defaultProps = { src: '', style: {}, } constructor(props) { super...
src/client.js
montemishkin/mishkin_com
// fix browser land import 'babel-polyfill' // third party imports import React from 'react' import ReactDOM from 'react-dom' // local imports import Root from 'views/Root' if (process.env.NODE_ENV === 'production') { // Google Analytics // see: https://developers.google.com/analytics/devguides/collection/ana...
src/svg-icons/action/open-in-browser.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
src/svg-icons/av/high-quality.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
docs/src/examples/collections/Grid/ResponsiveVariations/GridExampleReversedMultiple.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedMultiple = () => ( <Grid reversed='computer tablet' columns='equal'> <Grid.Row> <Grid.Column>Computer and Tablet Fourth</Grid.Column> <Grid.Column>Computer and Tablet Third</Grid.Column> <Grid.Column>Com...
jsx/templates/Home.js
vasco3/react-polaroid
'use strict'; import React from 'react'; class Island extends React.Component { constructor () { super(); } render () { return ( <div className="Home"> <div className="Home-container"> {this.props.description} </div> ...
src/components/PictureOfDayList.js
Joel-Raju/SpaceExplorer
import React, { Component } from 'react'; import { Text, FlatList, View } from 'react-native'; import { connect } from 'react-redux'; import PictureFeedItem from './PictureFeedItem'; import { fetchPictureOfDay } from '../actions'; class PictureOfDayList extends Component { componentWillMount() { this.props.fet...
nodes/stampzilla-server/web/src/components/Link.js
stampzilla/stampzilla-go
import { Link as RouterLink } from 'react-router-dom'; import { withRouter } from 'react-router'; import React from 'react'; import Url from 'url'; import classnames from 'classnames'; class Link extends React.Component { constructor() { super(); this.state = { isLocal: false, }; } /* eslint-d...
src/elements/loader.js
jessy1092/react-semantify
import React from 'react'; import filter from '../filter'; import Div from '../commons/div'; const stateArray = ['disabled', 'active']; const defaultClassName = 'ui loader'; const componentName = 'Loader'; const Loader = new filter(Div) .stateFilter(stateArray) .classGenerator(defaultClassName) .g...
packages/pix-web/src/controllers/admin/index.js
madjam002/pix
import React from 'react' import {compose} from 'recompose' import {withRouter} from 'react-router' import {Tree, PageWithSidebar, Stacked, PageHeader} from 'ui' export default compose( withRouter, )(props => ( <PageWithSidebar sidebar={ <Stacked> <PageHeader>Admin</PageHeader> <Tree ...
.history/src/components/GKM/EtsyProduct_20170624162527.js
oded-soffrin/gkm_viewer
import React from 'react' import '../../styles/gkm-item.scss'; import ProductItem from './ProductItem' import Input from '../Common/Input' import SearchBar from '../SearchBar'; import _ from 'lodash' class EtsyProduct extends React.Component { constructor(props, context) { super(props, context); this.edit...
src/scripts/components/Input.js
AbrahamTewa/timeline
// ******************** Imports ******************** import React from 'react'; import PropTypes from 'prop-types'; // ******************** Container ******************** function Input({onkeypress, title}) { return (<input type="text" value={title} onChange={onkey...
docs/app/Examples/elements/Input/Variations/InputExampleAction.js
shengnian/shengnian-ui-react
import React from 'react' import { Input } from 'shengnian-ui-react' const InputExampleAction = () => ( <Input action='Search' placeholder='Search...' /> ) export default InputExampleAction
src/app/container/modal/provider.js
all3dp/printing-engine-client
import React from 'react' import {connect} from 'react-redux' import config from '../../../../config' import providerImages from '../../../asset/image/printing-service' import * as modalActions from '../../action/modal' import Modal from '../../component/modal' import Headline from '../../component/headline' import ...
src/svg-icons/places/casino.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesCasino = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z...
components/Link/Link.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import css from './Link.css'; import Icon from '../Icon/Icon'; const Link = ({ href, className, bodyClassName, iconClassName, children, ...rest }) => ( <a { ...rest } href={ href } className={ cx(css.root, className) }> ...
js/profile/AboutView.js
kilimondjaro/react-native-couchsurfing-app
// @flow import React from 'react'; import { View, Text, Image, StyleSheet, } from 'react-native'; import {monthNames, capitalizeFirstLetter} from '../helpers'; import {connect} from 'react-redux'; const template = { aboutMe: 'About Me', teachLearnShare: 'Teach, Learn, Share', oneAmazingThingIveDone: 'On...
resources/assets/js/components/admin/AdminHomeComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchAdminUser } from '../../actions/admin/adminProfileActions'; import TeacherStats from './TeacherStats'; import AdminStats from './AdminStats'; import GroupStats from './GroupStats'; import ReadOnlyInput from './forms/ReadOnly...
smsgw/static/js/pages/inbox.react.js
VojtechBartos/smsgw
'use strict'; import React from 'react'; import Component from '../components/component.react'; import List from '../inbox/list.react'; class Inbox extends Component { render() { return <List {...this.props} user={null} />; } } export default Inbox;
app/javascript/mastodon/components/autosuggest_emoji.js
unarist/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; const assetHost = process.env.CDN_HOST || ''; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequired, ...
admin/client/App/components/Navigation/Mobile/SectionItem.js
danielmahon/keystone
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
liqk2014/actor-platform
import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import Actor...
src/icons/SocialApple.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialApple extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M333.6,153.9c-33.6,0-47.8,16.5-71.2,16.5c-24,0-42.3-16.4-71.4-16.4c-28.5,0-58.9,17.9-78.2,48.4 c-27.1,43-22.5,...
test/fixtures/mixWithExtraneous/actual.js
buildo/babel-plugin-buildo-react-components
import React from 'react'; import { props, t, skinnable } from 'revenge'; import { FlexView as Flex, Popover } from 'buildo-react-components'; import { linkState as ls, getValueLink } from 'buildo-react-components/src'; import { pick } from 'lodash/object/pick'; import _TextOverflow from 'buildo-react-components/src/te...
pootle/static/js/auth/components/RequestPasswordResetSent.js
evernote/zing
/* * Copyright (C) Pootle contributors. * Copyright (C) Zing contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'rea...
packages/cxx/src/query-renderer.js
wangzuo/cxx
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import areEqual from 'fbjs/lib/areEqual'; import { createOperationSelector, getOperation } from 'relay-runtime'; class QueryRenderer extends Component { constructor(props, context) { super(props, context); let { query, variables } ...
src/components/order/Order.js
ibsukru/pizzaStore
import React from 'react' import Pizza from '../pizza' import Basket from '../basket' import Toppings from '../toppings' import PropTypes from 'prop-types' const Order = ({ onToggleBasket, basket, pizza, data: { loading, pizzaSizes }, }) => { if (loading) { return <h1>Loading...</h1> } if (basket &&...
webpack/scenes/ContentViews/Details/Versions/ContentViewVersionContent.js
snagoor/katello
import React from 'react'; import { translate as __ } from 'foremanReact/common/I18n'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { camelCase } from 'lodash'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import ContentConfig from '../../../Content/ContentConfig';...
src/components/join/Join.js
AlanMorel/aria
import React from 'react'; import Axios from 'axios'; import Config from '../../Config'; import ReCAPTCHA from 'react-google-recaptcha'; class Join extends React.Component { constructor(props) { super(props); this.state = { error: [] }; } register(event) { even...
spec/components/font_icon.js
soyjavi/react-toolbox
import React from 'react'; import FontIcon from '../../components/font_icon'; const FontIconTest = () => ( <section> <h5>Font Icons</h5> <p>lorem ipsum...</p> <FontIcon value="add"/> <FontIcon value="access_alarm"/> <FontIcon value="explore"/> <FontIcon value="zoom_in"/> <FontIcon>input<...
plugins/react/frontend/components/form/Grid/index.js
pure-ui/styleguide
import React from 'react'; import styles from './styles.css'; const Grid = ({ children }) => ( <div className={styles.root}> <div className={styles.leftBackgroundColumn}></div> <div className={styles.rightBackgroundColumn}></div> <div className={styles.content}> {children} </div> </div> ); e...
fixtures/monorepo/host/EmptyHost.js
callstack-io/haul
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; export default function EmptyRootComponent() { return ( <View style={styles.container}> <Text style={styles.text}>Host is empty</Text> </View> ) } const styles = StyleSheet.create({ container: { flex: 1, just...
fields/types/text/TextFilter.js
frontyard/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormSelect, SegmentedControl, } from '../../../admin/client/App/elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; const MODE_OPTIONS = [ { la...
src/index.js
fellipeale/react-redux-todos
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './components/App'; import configureStore from './store/configureStore'; import './styles/style.scss'; import './favicon.ico'; const store = configureStore(); render( <Provider store={...
src/containers/notfound/notfound.js
noahehall/udacity-trainschedule
import React, { Component } from 'react'; import styles from './notfound.css'; class notfound extends Component { render () { return <div className='notfound'><style scoped type='text/css'>{styles}</style>Sorry we could not find that route</div>; } } export default notfound;
src/App.js
cruiz07/react-hot-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import Lista from './component/Lista'; ReactDOM.render(<Lista />, document.getElementById('root'));
src/components/common/Columns.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './Columns.module.css'; const Columns = ({ Item, items, gutter }) => ( <div className={styles.columns}> {items.map((props, i) => ( <div key={i} className={cn(styles.column, styles[`gutter-${gutte...
example/examples/LiteMapView.js
Nabobil/react-native-maps
import React from 'react'; import { StyleSheet, Dimensions, ScrollView, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.0922;...
react/src/pages/logs/components/log-view.js
motiko/sfdc-debug-logs
import React from 'react' import { connect } from 'react-redux' import List, { ListItem, ListItemText } from 'material-ui/List' import Button from 'material-ui/Button' import ArrowLeft from 'material-ui-icons/KeyboardArrowLeft' import ArrowRight from 'material-ui-icons/KeyboardArrowRight' import FilterList from 'materi...
src/scenes/Main.js
kesjien/member-cards
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Text, View, } from 'react-native'; import { Actions } from 'react-native-router-flux'; import CardsProvider from './CardsProvider'; import FirebaseConfig from '../configs/firebase_config.js'; import firebase from 'firebase'...