path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/content/markunread.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMarkunread = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); ContentMarkunread ...
src/components/search/AccountFilter.js
whphhg/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Ant Design */ import Select from 'antd/lib/select' @translate(['common']) @inject('send', 'wallet') @observer class AccountFilter extends React.Component { constructor(props) { super(props) ...
docs/app/Examples/modules/Accordion/Types/AccordionExampleStyled.js
aabustamante/Semantic-UI-React
import _ from 'lodash' import faker from 'faker' import React from 'react' import { Accordion } from 'semantic-ui-react' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExampleStyled = () => ( <Accordion panels={panels} styled /> ) export ...
pages/index.js
dracula/dracula.github.io
import React from 'react'; import Head from 'next/head'; import Link from 'next/link'; import Shuffle from 'shufflejs'; import Theme from '../layouts/Theme'; import ProCta from '../components/ProCta'; import paths from '../lib/paths'; import styles from './index.module.css'; export async function getStaticProps() { ...
ui/src/plugins/epl-vizceral/components/TrafficTools.js
mkacper/erlangpl
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import './TrafficTools.css'; class TrafficTools extends Component { handleClick(index: number) { const view = this.props.view.slice(0, index); const path = `/traffic${view.len...
client/modules/Note/Note.js
mraq1234/mod11
import React, { Component } from 'react'; import propTypes from 'prop-types'; import styles from './Note.css'; import Edit from '../../components/Edit'; class Note extends Component { constructor(props) { super(props); this.state = { editing: false, }; } render() { const { connectDra...
public/assets/js/component/Main.js
cqupt-yifanwu/blog
import React from 'react' import { Link } from 'react-router' import style from './Main.css' class Main extends React.Component { render () { return <div className={style.whole}> <div className={style.navbar}> <div className={style.imgBorder}><img className={style.img} src='../../../images/6165847895E8568AE7...
src/index.js
chriswitko/idiomatic-redux-app
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import configureStore from './configureStore'; import Root from './components/Root'; const store = configureStore(); render( <Root store={store} />, document.getElementById('root') );
app/static/About/AboutPage.js
ryanwashburne/react-skeleton
// React import React from 'react'; // UI import { Container, Row, Col, Card, CardImage, CardBody, CardTitle, CardText } from 'mdbreact'; import { Frame } from 'app/components'; class AboutPage extends React.Component { render() { const team = [ { name: 'Person Name', ...
entry_types/scrolled/package/src/frontend/layouts/TwoColumn.js
tf/pageflow
import React from 'react'; import classNames from 'classnames'; import {ContentElements} from '../ContentElements'; import {useNarrowViewport} from '../useNarrowViewport'; import styles from './TwoColumn.module.css'; function availablePositions(narrow) { if (narrow) { return ['inline', 'wide', 'full']; } e...
src/svg-icons/av/games.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvGames = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); AvGames = pure(AvGames); AvGames.dis...
examples/huge-apps/routes/Grades/components/Grades.js
fanhc019/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
docs/app/Examples/elements/List/Content/ListExampleImage.js
shengnian/shengnian-ui-react
import React from 'react' import { List, Image } from 'shengnian-ui-react' const ListExampleImage = () => ( <List> <List.Item> <Image avatar src='/assets/images/avatar/small/rachel.png' /> <List.Content> <List.Header as='a'>Rachel</List.Header> <List.Description>Last seen watching <a>...
components/Leaderboard.js
Haroenv/monumentrun
import React, { Component } from 'react'; import { StyleSheet, FlatList, View, Text, TouchableOpacity, Image, } from 'react-native'; import { getLeaderboard, getUserPicture } from '../helpers/firebase'; type Run = { run: string, name: string, score: number, position: number, uid: string, }; cons...
client/src/js/components/Display/DisplayTrack.js
Siddharth11/iTunes-Remote
// essentials import React from 'react' import { connect } from 'react-redux' const DisplayTrack = ({ currentTrack }) => ( <div className="display__track" > { currentTrack } </div> ) const mapStateToProps = store => ({ currentTrack: store.currentTrack }) export default connect(mapStateToProps)(Displa...
examples/auth-with-shared-root/components/Login.js
nhunzaker/react-router
import React from 'react' import { History } from 'react-router' import auth from '../utils/auth.js' const Login = React.createClass({ mixins: [ History ], getInitialState() { return { error: false } }, handleSubmit(event) { event.preventDefault() const email = this.refs.email.value ...
frontend/src/components/partners/profile/modals/addVerificationModal/observationsTable.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Typography from 'material-ui/Typography'; import { withStyles } from 'material-ui/styles'; import Grid from 'material-ui/Grid'; import { withRouter } from 'react-router'; im...
src/App.js
waxmansgym/ratio-calculator
/* Waxman's Gym Ratio Calculator Copyright (C) 2017 Waxman's Gym 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 (at your option) any later version. This program ...
examples/todomvc/src/containers/App.js
roth1002/redux
import React from 'react' import PropTypes from 'prop-types' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import Header from '../components/Header' import MainSection from '../components/MainSection' import * as TodoActions from '../actions' const App = ({todos, actions}) => ( <di...
client/app/components/Room/Board.js
Zuehlke/poinz
import React from 'react'; import {connect} from 'react-redux'; import PropTypes from 'prop-types'; import {useDragLayer} from 'react-dnd'; import Help from '../Help/Help'; import FeedbackHint from './FeedbackHint'; import EstimationArea from '../EstimationArea/EstimationArea'; import Settings from '../Settings/Setti...
packages/@lyra/base/src/components/icons/LyraLogo.js
VegaPublish/vega-studio
/* eslint-disable max-len */ import React from 'react' import IconBase from 'react-icon-base' export default class LyraLogoIcon extends React.PureComponent { render() { return ( <IconBase viewBox="0 0 1024 1024" {...this.props}> <g className="lyraIconAnimate"> <path className=...
packages/material-ui-icons/src/Filter3.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2...
src/components/Header/Header.js
pptang/ggm
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...
src/app/shared/icon/index.js
kristjanpikk/things-to-do
import React from 'react'; export default function Icon({glyph, width, height, className = 'icon'}){ return ( <svg className={className} width={width} height={height}> <use xlinkHref={glyph} /> </svg> ); }
chinwag/src/components/Chat.js
ChinwagMM/ChinwagApp
import React from 'react' import Banner from './Banner' // import {Link} from 'react-router' class Chat extends React.Component { constructor() { super() this.state = { messages: [], users: [] } } componentWillMount() { this.state.messages = this.getMessages(1) }...
demo/ButtonWithDecorator.js
brentertz/react-suitcss-mixin
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import SuitCssify from '../index'; import classNames from 'classnames'; @SuitCssify.decorator class Button extends Component { static propTypes = { children: PropTypes.node, disabled: PropTypes.bool, kind: PropTy...
utils/misc.js
headwinds/porthole
/* eslint-disable */ /* eslint max-len: 0, no-param-reassign: 0 */ import * as _ from 'lodash'; import React from 'react'; import { log } from './LogUtil'; import moment from 'moment'; var baz = str => { return ( (str.indexOf('0:00 AM to 11:59 PM') || str.indexOf('0:00 AM - 11:59 PM')) > -1 ...
src/encoded/static/components/navigation/components/TestWarning.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; /** Component which displays a banner at top of page informing users about this portal containing test data. */ export class TestWarning extends React.PureComponent { constructor(props){ super(props); this.handleClose = this.handleClose.bind(this); } ...
src/layouts/components/Hero.js
ArghTeam/argh.team
import React from 'react' import styled from 'styled-components' import PropTypes from 'prop-types' import FitText from 'react-fittext' import PngLogo from './Logopng' import Contact from './Contact' const Logo = styled(PngLogo)` width: 100%; height: auto; ` const Tagline = styled.div` margin: 1em auto 0.2em; ...
packages/icons/src/md/hardware/DeviceHub.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDeviceHub(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M35.111 32.889L26.222 24v-7.067c2.578-.933 4.445-3.377 4.445-6.266A6.658 6.658 0 0 0 24 4a6.658 6.658 0 0 0-6.667 6.667c0 2.889 1.867 5.333 4.445 6...
docs/app/Examples/elements/Image/Usage/ImageExampleChildren.js
koenvg/Semantic-UI-React
import React from 'react' import { Image, Label } from 'semantic-ui-react' const ImageExampleChildren = () => ( <div> <Image size='small'> <Label content='Image not found!' icon='warning' /> </Image> <span>Some other content</span> </div> ) export default ImageExampleChildren
wrappers/toml.js
rileyjshaw/crypto.christmas
import React from 'react' import toml from 'toml-js' import Helmet from 'react-helmet' import {config} from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <Helmet tit...
Sources/embeddedwebserver/resources/assets/js/researcher/components/AmplificationParametersTab.js
nihospr01/OpenSpeechPlatform-UCSD
import React, { Component } from 'react'; import { FREQUENCIES, ROW_HEADERS } from './constants'; export class AmplificationParametersTab extends Component { transmit() { const { params, updateOldParams } = this.props; fetch('/api/params', { body: JSON.stringify({ noOp: 0, afc: 1, ...
src/main.js
oceanTsai/react-template
import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import { Provider } from 'react-redux' import configureStore from '@redux/store/configureStore' import App from './App' import '@css/semantic/semantic.min.css' const store = configureStore() const renderApp = (ap...
index.ios.js
mxczpiscioneri/ipaday-react-native
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from "./src/App"; export default class ipaday extends Component { render() { return <App />; } } AppRegistry.registerComponent('ipaday', () => ipaday);
webpack/scenes/Subscriptions/UpstreamSubscriptions/UpstreamSubscriptionsPage.js
snagoor/katello
import React, { Component } from 'react'; import _ from 'lodash'; import { translate as __ } from 'foremanReact/common/I18n'; import PropTypes from 'prop-types'; import { LinkContainer } from 'react-router-bootstrap'; import { Grid, Row, Col } from 'react-bootstrap'; import BreadcrumbsBar from 'foremanReact/components/...
src/components/buttons/PlusButton.js
plouc/react-svg-buttons
/* * This file is part of react-svg-buttons. * * (c) Raphaël Benitte * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react' import HoverMorphIcon from '../HoverMorphIcon' const PlusButton = props => <HoverMo...
src/svg-icons/communication/chat-bubble-outline.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubbleOutline = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/> </SvgIcon> ); CommunicationChatBubbleOutl...
src/js/components/CreateNewTouristCard.js
notfier/touristique-client
import React, { Component } from 'react'; import { TextInput } from './Input'; export class CreateNewTouristCard extends Component { constructor( props ) { super( props ); this.state = { tourist: {}, department: this.props.departments[0].id, }; this.changeDep = this.changeDep.bind( thi...
src/index.js
SSARCandy/colorblocks-react
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; const root = document.getElementById('app'); render( <App />, root );
src/mobile/components/MainView/index.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import withHandlers from 'recompose/withHandlers'; import AppBar from '@material-ui/core/AppBar'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@material-ui/core/Typography'; import IconButton from '@material-ui/core/IconButton'; ...
app/components/app.js
mattgrannary/wd-monitor
import React from 'react'; import Header from './header'; import DataViewer from './data-viewer'; import Messages from './messages'; export default class App extends React.Component { render() { return <main> <Header /> <section className="container-fluid top-container"> <div className="row">...
ajax/libs/react-instantsearch/3.2.1/Dom.js
joeyparrish/cdnjs
/*! ReactInstantSearch 3.2.1 | © 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 ...
examples/react-es6/CheckboxWithLabel.js
rpowis/jest
import React from 'react'; class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // since auto-binding is disabled for React's class model // we can prebind methods here // http://facebook.github.io/react/blog/2015/01/27/react-v0.1...
packages/netlify-cms-backend-proxy/src/AuthenticationPage.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import { Icon, buttons, shadows, GoBackButton } from 'netlify-cms-ui-default'; const StyledAuthenticationPage = styled.section` display: flex; flex-flow: column nowrap; align-items: center; justify-content: cen...
app/javascript/mastodon/features/reblogs/index.js
mosaxiv/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 LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs ...
actor-apps/app-web/src/app/components/SidebarSection.react.js
voidException/actor-platform
import React from 'react'; import { Styles, Tabs, Tab } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; import ContactsSection from 'components/sidebar/ContactsSec...
index.android.js
jacktuck/registr
import 'es6-symbol/implement'; import {Provider} from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; import React from 'react'; import {AppRegistry, BackAndroid} from 'react-native'; import * as NavigationStateActions from './src/modules/navigation/N...
src/bundles/Voter/index.js
sashafklein/ballot-marker
/* eslint no-underscore-dangle:0 */ import React from 'react'; import { Text, View, ListView, ScrollView, TextInput } from 'react-native'; import { Actions } from 'react-native-router-flux'; import { fromJS } from 'immutable'; import { listOf, map, contains } from 'react-immutable-proptypes'; import PageWithActions f...
antd-dva/ant-design-pro-demo/test/src/components/Charts/Field/index.js
JianmingXia/StudyTest
import React from 'react'; import styles from './index.less'; const Field = ({ label, value, ...rest }) => ( <div className={styles.field} {...rest}> <span>{label}</span> <span>{value}</span> </div> ); export default Field;
client/App.js
mhmtztmr/losed
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import IntlWrapper from './modules/Intl/IntlWrapper'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; // Import Routes import getRoutes from './routes'...
examples/auth-with-shared-root/app.js
mattkrick/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router } from 'react-router' import routes from './config/routes' render(<Router history={browserHistory} routes={routes}/>, document.getElementById('example'))
src/pressable/index.js
narqo/react-islands
import React from 'react'; const KEY_SPACE = ' '; const KEY_ENTER = 'Enter'; function pressable(BaseComponent) { const displayName = BaseComponent.displayName || BaseComponent.name; class PressableComponent extends BaseComponent { constructor(...args) { super(...args); this.s...
src/atoms/Element/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; /* eslint-disable import/first */ import styles from './element.module.scss'; import colors from 'atoms/Color/colors.scss'; import spacing from 'atoms/Spacer/spacer.scss'; const Element = (props) => { const { tag...
src/components/single-form.js
mozilla/donate.mozilla.org
import React from 'react'; import SectionHeading from './section-heading.js'; import CurrencyDropdown from './currency-dropdown.js'; import ErrorMessage from './error.js'; import AmountButtons from './amount-buttons.js'; import Frequency from './donation-frequency.js'; import { PayPalButton, StripeButton } from './pay...
src/svg-icons/device/access-alarms.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessAlarms = (props) => ( <SvgIcon {...props}> <path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9...
src/entypo/Image.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Image'; let EntypoImage = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path fillRule="evenodd" clipRule="evenodd" d="M19,2H1C0.447,2,0,2.447,0,3v14c0,0.552,0.447,1,1,1h18c0.553,0,1-0...
app/static/src/diagnostic/EquipmentForm_modules/NewManufacturerForm.js
vsilent/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import Button from 'react-bootstrap/lib/Button'; import Panel from 'react-bootstrap/lib/Panel'; import {findDOMNode} f...
src/I18n.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import { IntlProvider } from 'react-intl'; import { oneOrManyChildElements } from './prop-types'; import translations from './i18n/translations'; import UserStore from './stores/UserStore'; exp...
src/index.js
aaronholmes/yelp-clone
import React from 'react'; import {render} from 'react-dom'; import './styles/styles.scss'; import App from './components/App'; render ( <App/>, document.getElementById('app') );
node_modules/react-router/es6/RouteUtils.js
Jaime691/ReactTube
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...
src/components/Common/BasePost.js
MattMcFarland/tw-client
import React, { Component } from 'react'; import uniq from 'lodash.uniq'; import Comment from './Comment'; import FlagMenu from './FlagMenu'; import moment from 'moment'; import { MarkedArea } from './FormFields'; import marked from 'marked'; import Select from './Select'; import Spinner from './Spinner'; marked.setO...
src/svg-icons/file/folder.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolder = (props) => ( <SvgIcon {...props}> <path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/> </SvgIcon> ); FileFolder = pure(FileFolder); FileFolder.d...
node_modules/semantic-ui-react/dist/es/views/Item/ItemDescription.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { childrenUtils, createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * An item can contain a description with a...
React Native/Demos/nearby/Nearby/views/map.js
AngryLi/ResourceSummary
/** * Created by Liyazhou on 16/9/6. */ import React from 'react'; import { View, StyleSheet, } from 'react-native'; export default class Map extends React.Component { render() { return ( <View style={styles.container}></View> ) } } const styles= StyleSheet.create({ ...
src/components/Form/TextField/index.js
ChluNetwork/chlu-demo
import React from 'react' // components import TextField from '@material-ui/core/TextField' const TextFieldComponent = ({ input, label, placeholder, helperText, meta: { error, touched }, ...rest } ) => { return ( <TextField label={label} ...
assets/jqwidgets/demos/react/app/treegrid/customeditors/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() { this.refs.myTreeGrid.expandRow(1); this.refs.myTreeGrid.expandRow(2); this.refs.myTreeGrid.expandR...
app/javascript/mastodon/components/attachment_list.js
RobertRence/Mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends ImmutablePureComponent { static propTypes...
project/react-ant-multi-pages/src/pages/index/containers/FunderProdMgmt/List/form.js
FFF-team/generator-earth
import moment from 'moment' import React from 'react' import { Input, DatePicker, Button, Form, Select } from 'antd' import BaseContainer from 'ROOT_SOURCE/base/BaseContainer' import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter' import DateRangePicker from 'ROOT_SOURCE/components/DateRangePicker' const { Mo...
src/svg-icons/action/http.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttp = (props) => ( <SvgIcon {...props}> <path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-...
src/components/TopContainer.js
cindyqian/BoardGames
import React from 'react'; /** * */ export default class TopContainer extends React.Component{ /** * render * @return {ReactElement} markup */ render(){ return ( <div> <div id="top"> {this.props.children} </div> </div> ) } }
src/components/Ui.js
jorgerobles/7tv2
/* eslint-disable */ import React, { Component } from 'react'; import { connect } from 'react-redux' import Queue from 'promise-queue'; import ReactDOM from 'react-dom'; import { marked } from 'marked'; import { loadYamlFile, saveYamlFile } from '../reducers/index'; import { SplitButton, MenuItem, Button, ButtonToolbar...
node_modules/react-bootstrap/es/InputGroupButton.js
chenjic215/search-doctor
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 ...
pages/web/rgb.js
jubearsun/juliasun.io
import React from 'react'; import { prefixLink } from 'gatsby-helpers'; // eslint-disable-line import Helmet from 'react-helmet'; export default class RGB extends React.Component { componentDidMount() {} render() { return ( <div> <Helmet title="Julia Sun | RGB Website" /> ...
src/client/components/ChannelList.js
avrj/slack-clone
import React from 'react' import AddCircle from 'material-ui/svg-icons/content/add-circle' import IconButton from 'material-ui/IconButton' import ChannelListItem from './ChannelListItem' import { string, object, func } from 'prop-types' const ChannelList = ({ channels, activeChannel, setActiveChannel, showJoi...
src/components/home/HomePage.js
MyronBatiuk/react-shopify-storefront
import React, { Component } from 'react'; import * as helpers from '../../helpers/helpers'; import Hero from './Hero'; import './home.css'; import Collection from '../collection/Collection'; export default class HomePage extends Component { componentWillMount(){ helpers.getData('/pages/home', 'home'); } com...
src/index.js
jhta/react-chess
import './index.styl'; import React from 'react'; import { render } from 'react-dom'; import Root from './Root.jsx'; import configStore from './configStore'; render( <Root store={configStore()} />, document.getElementById('root') );
fields/types/password/PasswordColumn.js
nickhsine/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var PasswordColumn = React.createClass({ displayName: 'PasswordColumn', propTypes: { col: React.PropTypes.object, data: React.Pr...
src/components/Page.js
seripap/wedding.seripap.com
import React, { Component } from 'react'; import { Link } from 'react-router'; import DocumentTitle from 'react-document-title'; import Header from './Header'; export default class Page extends Component { constructor(props, context) { super(props, context); } render() { return ( <DocumentTitle...
client/components/NotAuthorizedPage.stories.js
iiet/iiet-chat
import React from 'react'; import NotAuthorizedPage from './NotAuthorizedPage'; export default { title: 'admin/NotAuthorizedPage', component: NotAuthorizedPage, }; export const _default = () => <NotAuthorizedPage />;
tests/react_native_tests/test_data/native_code/Component/app/components/UserConnect/index.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import UserConnect from './component' @observer class UserConnectWrapper extends React.Component { render() { return ( <UserConnect {...this.prop...
sonar-flow-plugin/src/main/js/components/FlowIssuesApp.js
I8C/sonar-flow-plugin
import React from 'react'; import FlowIssuesList from './FlowIssuesList.js'; import FlowIssuesViewer from './FlowIssuesViewer.js'; export default class FlowIssuesApp extends React.PureComponent { constructor(props) { super(props); // this.props.component this.state = { selectedIssue: {key:"n/a"} ...
src/docs/design/Icons.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import DocsArticle from '../../components/DocsArticle'; var CONTROL_ICONS = [ {component: require('grommet/components/icons/base/Add'), labels: ['Add']}, {compon...
src/mui/input/TextInput.js
marmelab/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; import FieldTitle from '../../util/FieldTitle'; /** * An Input component for a string * * @example * <TextInput source="first_name" /> * * You can customize the `type` props (which default...
react/features/authentication/components/web/LoginDialog.js
gpolitis/jitsi-meet
// @flow import { FieldTextStateless as TextField } from '@atlaskit/field-text'; import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { connect } from '../../../../../connection'; import { toJid } from '../../../base/connection/functions'; import { Dialog } from '../../../base/dialo...
app/Containers/ShopContainer.js
TBoyLi/BookBall
import React from 'react'; import {connect} from 'react-redux'; import Shop from '../Components/Shop'; export default class ShopContainer extends React.Component { render() { return ( <Shop {...this.props} /> ) } } // export default connect((state) => { // const {ShopContainer...
app/shared/resource-calendar/ResourceCalendar.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import DayPicker from 'react-day-picker'; import MomentLocaleUtils from 'react-day-picker/moment'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/Fo...
src/components/Guide/GuideSection.js
wundery/wundery-ui-react
// React import React, { Component } from 'react'; // Utils import classnames from 'classnames'; // Framework components import { Headline } from '../Headline'; import { Box, BoxContent, BoxHeader } from '../Box'; import { Spacing } from '../Spacing'; class GuideSection extends Component { constructor() { supe...
lib/modules/url.js
nramadas/r-platform
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import pathToRegex from 'path-to-regexp'; const T = React.PropTypes; export class Case extends React.Component { static propTypes = { url: T.string.isRequired, exec: T.func.isRequired, pageProper...
collect-webapp/frontend/src/datamanagement/components/recordeditor/FormItemMultipleFieldComponent.js
openforis/collect
import './FormItemMultipleFieldComponent.css' import React from 'react' import { Button } from 'reactstrap' import ServiceFactory from 'services/ServiceFactory' import { AttributeCreatedEvent, AttributeDeletedEvent } from 'model/event/RecordEvent' import DeleteIconButton from 'common/components/DeleteIconButton' impo...
client/app/components/Todo.js
russll/facebook-starter-kit
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
docs/components/common/version/version.js
t1m0n/air-datepicker
import React from 'react'; import {version} from 'components/airDatepicker'; import PropTypes from 'prop-types'; import cn from 'classnames'; import css from './version.module.scss'; function Version({className} = {}) { return ( <div className={cn(css.el, className)}> v{version} </div>...
client/src/components/RateLabel.js
untoldwind/gotrack
import React from 'react' import AutoscaleLabel from './AutoscaleLabel' import shallowEqual from '../utils/shallowEqual' import {formatRate} from './formats' export default class RateLabel extends React.Component { static propTypes = { title: React.PropTypes.string.isRequired, className: React.Pro...
tests/lib/rules/prop-types.js
petersendidit/eslint-plugin-react
/** * @fileoverview Prevent missing props validation in a React component definition * @author Yannick Croissant */ 'use strict'; // ------------------------------------------------------------------------------ // Requirements // ------------------------------------------------------------------------------ const...
src/server.js
oozywaters/JOOR-react
/** * 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 'babel-polyfill'; import path from 'path'; import e...
src/components/reports/report-payments.js
Xabadu/VendOS
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import Moment from 'moment'; import Calendar from 'react-input-calendar'; import Select from 'react-select'; import { Pie } from 'react-chartjs'; import { getSales, getList } from '../../actions/index';...
src/components/ObjectCreator/index.js
jtmckay/TQL
import React from 'react' import styled from 'styled-components' import ObjectProperty from 'components/ObjectProperty' import StyledTextarea from 'components/StyledTextarea' import StyledInput from 'components/StyledInput' const StyledObjectCreator = styled.div` width: 100%; ` const StyledContainer = styled.div`...
src/components/NoteDialog.js
dggriffin/noteworthee
import React from 'react'; import { Dialog, FlatButton, TextField, Chip } from 'material-ui'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import HappyIcon from 'material-ui/svg-icons/social/mood'; import HappyIconBorder from 'material-ui/svg-icons/social/mood'; import SadIcon from 'material-u...
app-ui/src/index.js
setusoft/silhouette-play-react-seed
// Must be included here, otherwise it runs into: https://github.com/webpack/webpack/issues/215 // Must also imported as first so it's the first style in the generated bundle in production build import 'styles/core.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-...
src/Back.js
spudly/react-card
import CardSide from './CardSide'; import React from 'react'; const Back = props => <CardSide {...props} className="card-back" />; Back.displayName = 'Back'; export default Back;