path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/render/Lick/Track/TrackSectionView.js
hugo-cardenas/lickit
import PropTypes from 'prop-types'; import React from 'react'; function TrackSectionView(props) { const { tracks } = props; return ( <div className="track-container"> <div className="track-list"> {tracks.map(track => ( <div key={track.id} className="trac...
webapp/src/components/loadingPage.js
alliance-genome/agr_prototype
import React, { Component } from 'react'; import style from './style.css'; import { SMALL_COL_CLASS, LARGE_COL_CLASS } from '../constants'; class LoadingPage extends Component { render() { return ( <div className='row'> <div className={SMALL_COL_CLASS}> <div className={style.loadingText}...
react/fxRatesComponent.js
vitalibynda/webpacknow
import React, { Component } from 'react'; import fx from '../fx'; import api from '../api'; export default class FxRatesComponent extends Component { constructor(props) { super(props); this.state = { fixerResponse: [] }; } componentDidMount() { console.log(this...
src/routes/estimate/index.js
keenethics/estimateit
import React from 'react'; import Wrapper from './wrapper'; import Layout from '../../components/Layout'; import Header from '../../components/Header'; import Main from '../../components/Main'; export default { path: '/estimate/:id', async action({ params: { id } }) { try { return { title: 'Esti...
components/WelcomeSection/index.js
adambrgmn/gbgshorts
import React from 'react'; import styled from 'styled-components'; import { media } from '../../style/utils'; const WelcomeContainer = styled.div` display: flex; flex-flow: column wrap; justify-content: center; align-items: center; width: 100%; height: 250px; ${media.small` height: auto; `} `; c...
client/components/common/errorPage.js
ShannChiang/USzhejiang
import React from 'react'; import {Link} from 'react-router'; export default ({ code, info, description }) => ( <div className="error-container text-center"> <i className="pe-7s-way text-success big-icon" /> <h1><strong>{code}</strong></h1> <h2>{info}</h2> <p>{description}</p> <Link style={{ marg...
ui/src/dashboards/routes.js
LearningLocker/learninglocker
import React from 'react'; import { Route } from 'react-router'; import { App, EmbeddableDashboard } from 'ui/containers'; export default () => <Route path="/dashboards/" component={App}> <Route path=":dashboardId" component={EmbeddableDashboard} /> </Route>;
modules/react-material-design/src/components/Tabs.js
Scratch-it/react-color
'use strict'; import React from 'react'; import ReactCSS from 'reactcss'; import _ from 'lodash'; import Tab from './Tab'; import Link from './Link'; // var Ink = require('./Ink'); // var context = { // primaryColor: '#2196F3', // accentColor: '#E91E63', // theme: 'light' // } class Tabs extends ReactCSS.Com...
src/app/core/atoms/icon/icons/exclamation-mark.js
blowsys/reservo
import React from 'react'; const ExclamationMark = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 1.9 10"><g><g><path d="M0.3,0.2h1.4L1.4,6.7H0.5L0.3,0.2z M0.3,8.3h1.4v1.4H0.3V8.3z"/><path d="M1.9,10H0V8h1.9V10z M0.5,9.5h0.9V8.5H0.5V9.5z M1.7,6.9H0.3L0,0h1.9L1.7,6.9z M0.8,6.4h0.4l0.2-5.9H0.5 L0.8,6.4z"/></g></...
frontend/smart-sushi-ui/src/index.js
cyterdan/smartSushi
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
examples/ModalWithBottomSheet.js
jhernandezme/react-materialize
import React from 'react'; import Modal from '../src/Modal'; import Button from '../src/Button'; export default <Modal header='Modal Header' bottomSheet trigger={ <Button waves='light'>MODAL BUTTOM SHEET STYLE</Button> }> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor inci...
client/node_modules/uu5g03/dist-node/bricks/newspaper.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, SectionMixin, ColorSchemaMixin} from '../common/common.js'; import Section from './section.js'; import './newspaper.less'; export const Newspaper = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, SectionMixin, ...
src/main/frontend/app/components/pages/not-found-page.js
santhp/trade-away
import React, { Component } from 'react'; class NotFoundPage extends Component { render() { return ( <div> <h1>404 - Page Not Found</h1> <p>I'm sorry, the page you were looking for cannot be found!</p> </div> ) } } export default NotFound...
ui/src/app/components/Lists.js
kuppuswamy/foodie
import React from 'react'; import Foods from './Foods'; import Types from './Types'; export default class Lists extends React.Component { render = () => { let {store, relay} = this.props; const Aux = props => props.children; return ( <Aux> <section className="section"> <div classN...
packages/react-instantsearch-dom-maps/src/Control.js
algolia/react-instantsearch
import React from 'react'; import PropTypes from 'prop-types'; import { createClassNames, translatable } from 'react-instantsearch-dom'; import GeoSearchContext from './GeoSearchContext'; import withGoogleMaps from './withGoogleMaps'; const cx = createClassNames('GeoSearch'); const ControlPropTypes = { googleMapsIns...
app/javascript/mastodon/features/public_timeline/components/column_settings.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
packages/material-ui-icons/src/DiscFull.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let DiscFull = props => <SvgIcon {...props}> <path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" /> </SvgIcon...
src/svg-icons/action/visibility-off.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVisibilityOff = (props) => ( <SvgIcon {...props}> <path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.7...
docs/src/app/components/pages/components/IconButton/ExampleTouch.js
frnk94/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionGrade from 'material-ui/svg-icons/action/grade'; const IconButtonExampleTouch = () => ( <div> <IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right"> <ActionGrade /> </IconButton> <IconB...
app/components/profile/profilePage/singlePost/Post.js
JoeKarlsson1/post-stream
import React, { Component } from 'react'; import { connect } from 'react-redux'; const Remarkable = require('remarkable'); const emojione = require('emojione'); import styles from './Post.scss'; class Post extends Component { rawMarkup() { const { body } = this.props; var md = new Remarkable(); var rawM...
src/routes/private/EntitysEdit/EntitysEdit.js
sk-iv/iva-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { graphql } from 'react-apollo'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; import Button from '../../../components/Button'; import {ChevronRight, Hierarchy, U...
src/components/comments-list.js
CrispyBacon12/facebook-chat
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import CommentsListItem from './comments-list-item'; class CommentsList extends Component { render() { return ( <ul className="mt-4 mb-4 list-group"> { this.props.comments.m...
app/addons/setup/components/FirstStepController.js
apache/couchdb-fauxton
// Licensed 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/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/svg-icons/av/stop.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvStop = (props) => ( <SvgIcon {...props}> <path d="M6 6h12v12H6z"/> </SvgIcon> ); AvStop = pure(AvStop); AvStop.displayName = 'AvStop'; export default AvStop;
src/Components/ObjectProperty/KeyColumn.js
apiaryio/attributes-kit
import Radium from 'radium'; import React from 'react'; import ReactDom from 'react-dom'; import PropTypes from 'prop-types'; import merge from 'lodash/merge'; import random from 'lodash/random'; import Column from '../Column/Column'; import Key from '../Key/Key'; import Requirement from '../Requirement/Requirement'; ...
analysis/druidguardian/src/modules/features/FrenziedRegenGoEProcs.js
yajinni/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import { SpellIcon } from 'interface'; import StatisticBox, { STATISTIC_ORDER } from 'parser/ui/StatisticBox'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import GuardianOfElune from './GuardianOfElune'; ...
examples/with-portals/src/index.js
casesandberg/react-color
import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render( <App />, document.getElementById('root') )
docs/src/app/components/pages/components/TextField/ExampleControlled.js
hwo411/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; export default class TextFieldExampleControlled extends React.Component { constructor(props) { super(props); this.state = { value: 'Property Value', }; } handleChange = (event) => { this.setState({ value: eve...
auth/src/components/common/CardSection.js
diegopoli/sample-react-native-projects
import React from 'react'; import { View } from 'react-native'; const CardSection = ((props) => <View style={styles.containerStyle}> {props.children} </View> ); const styles = { containerStyle: { borderBottomWidth: 1, padding: 5, backgroundColor: '#fff', justifyContent: 'flex-start', fle...
client/acp/components/admin.js
NicolasSiver/nodebb-plugin-ns-utils
import Actions from '../actions'; import CapabilitiesStore from '../stores/capabilities-store'; import connectToStores from 'alt/utils/connectToStores'; import objectAssign from 'object-assign'; import React from 'react'; import UtilsList from './utils-list'; import UtilsStore from '../stores/utils-store'; import UtilV...
app/components/city.js
CodingHard-Inc/honest-weather
import React from 'react' import SearchCity from './searchCity' import iSearch from '../static/i_search.png' class City extends React.Component { // handleSubmit() { // var newCity = this.newCity.value // this.newCity.value = '' // this.props.changeCity(newCity) // } // setRef(ref) { // this.new...
src/components/clojurescript/ReplOutputCljsWrapper.js
princejwesley/Mancy
import React from 'react'; import ReplOutput from '../../common/ReplOutput'; import ReplCommon from '../../common/ReplCommon'; import ReplOutputCljsMeta from './ReplOutputCljsMeta'; import ReplOutputGridViewer from '../ReplOutputGridViewer' import ReplOutputChartViewer from '../ReplOutputChartViewer' export default cl...
docs/src/examples/elements/Placeholder/Content/PlaceholderExampleHeader.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Placeholder } from 'semantic-ui-react' const PlaceholderExampleHeader = () => ( <Placeholder> <Placeholder.Header> <Placeholder.Line /> <Placeholder.Line /> </Placeholder.Header> </Placeholder> ) export default PlaceholderExampleHeader
components/react-semantify/src/commons/field.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'field'; const Field = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, ...other} = this.props; return ( <div {...other} className={this.getClassName(defaul...
src/components/entries_index.js
calvincolton/timesheet
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import _ from 'lodash'; import { fetchDates } from '../actions'; class EntriesIndex extends Component { componentDidMount() { this.props.fetchDates(); } renderDates() { ...
node_modules/react-scripts/template/src/index.js
84danie/84danie.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
packages/my-joy-instances/src/mocks/theme.js
geek/joyent-portal
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { theme, RootContainer, PageContainer, ViewContainer } from 'joyent-ui-toolkit'; export default ({ children, ss }) => ( <ThemeProvider theme={theme}> {ss ? ( <RootContainer> <PageContainer> <ViewC...
app/javascript/components/crypto/ClientEncryptionKey.js
nning/imgshr
import React from 'react' import QRCode from '../QRCode' import {getKeyBase64} from '../../utils/crypto' export default class ClientEncryptionKey extends React.PureComponent { constructor() { super() document.addEventListener('sodium:ready', this.getKey) } state = { key: '', url: window.locati...
app/client/router.js
breakfast-mimes/cyber-mimes
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import { Provider } from 'react-redux'; import store, { history } from './store'; import App from './components/App'; import CreationForm from './components/creationForm/CreationForm'; import LevelUpForm from './components/creationFor...
site/components/getting-started.js
JamesHageman/redux-datagrid
import React from 'react'; import Highlight from 'react-highlight'; const GettingStarted = () => <div> <h2>Getting Started</h2> To begin, install redux-datagrid with npm. First you'll need to install <code>react-redux</code> and <code>reselect</code> if you don't have them already. <pre> npm install --s...
actor-apps/app-web/src/app/components/common/Favicon.react.js
liuzwei/actor-platform
import React from 'react'; export default class Fav extends React.Component { static propTypes = { path: React.PropTypes.string } constructor(props) { super(props); //// Create link element and it's attributes //let favicon = document.createElement('link'); //let rel = document.createAttrib...
app/routes/Home/components/Home.js
Jan-Jan/react-hackathon-boilerplate
import React from 'react' export const Home = ({ me }) => { const username = me.get('username') if (username) return <h1>Welcome {username}</h1> return <h1>Hello stranger</h1> } export default Home
src/common/_text_edit_component.js
Bilprospekt/bilprospekt-ui
import React, { Component } from 'react'; var TextEditComponent = React.createClass({ getInitialState() { return { textValue: this.props.label, savedValue: this.props.label, showInput: false }; }, componentDidMount() { var that = this; $(document.body).click(function(event) { if (that.state.sh...
packages/wix-style-react/src/Badge/test/Badge.visual.js
wix/wix-style-react
import React from 'react'; import Badge, { SKIN, TYPE } from '../index'; import { visualize, snap } from 'storybook-snapper'; import ChevronDown from 'wix-ui-icons-common/ChevronDown'; import CalendarIcon from 'wix-ui-icons-common/Date'; import ChevronDownSmall from 'wix-ui-icons-common/ChevronDownSmall'; import Calend...
src/modules/navigation/Navigator.js
futurice/PelaryHemmo
import React from 'react'; import { StackNavigator } from 'react-navigation'; import CardStackStyleInterpolator from 'react-navigation/src/views/CardStackStyleInterpolator'; import BackButton from './BackButton'; import FeedbackMenu from './FeedbackMenu'; import HomeViewContainer from '../HomeViewContainer'; import Log...
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js
berserkertdl/actor-platform
import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, Snackbar } from 'material-ui'; import ReactZeroClipboard from 'react-zeroclipboard'; import { KeyCo...
src/shared/components/boardCard/boardCard.js
NestorSegura/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './boardCard.css'; const BoardCard = ({ name, role, src, description }) => ( <div className={styles.boardCard}> <img src={src} alt={`Headshot of ${name}`} /> <h6 className={styles.name}>{name}</h6> <i className={styles.role...
src/components/Button/index.js
alimek/scrum-poker-react
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; class Button extends React.Component { static propTypes = { text: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, borderColor: PropTypes.string, te...
examples/enzyme/CheckboxWithLabel.js
blainekasten/jest
// Copyright 2004-present Facebook. All Rights Reserved. import React from 'react'; export default class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // bind manually because React class components don't auto-bind // http://faceboo...
react-flux-mui/js/material-ui/src/svg-icons/image/palette.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePalette = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.4...
src/components/item/index.js
stranbury/react-miuus
import React, { Component } from 'react'; import styles from "./index.css" const Item = ({name ="",id="", onClick=null }) => (<div className={styles.item} onClick={()=>{ if(typeof onClick=="function") onClick({id,name}) }}> {name} </div>) export default Item
src/svg-icons/action/assessment.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
examples/universal/client/index.js
oliamb/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...
app/Pages/SettlementViewNew/CouponInfo/UseCouponTip.js
jd-daojia/DaojiaRN
/* @flow */ import React, { Component } from 'react'; import { View, Text, StyleSheet, } from 'react-native'; export default class UseCouponTip extends Component { state = { couponCount: undefined } render() { let {couponVO} = this.props let tip = couponVO && couponVO.addItemNoticeOne ? c...
node_modules/react-router/es6/RoutingContext.js
jparicka/django-react-auth
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
frontend-admin/src/searchBar/containers/main-container.js
OptimusCrime/youkok2
import React from 'react'; import {connect} from 'react-redux'; import { updateSearchField as updateSearchFieldDispatch, updateCursorPosition as updateCursorPositionDispatch, } from '../redux/form/actions'; import { ARROW_DOWN, ARROW_UP, KEYCODE_ARROW_DOWN, KEYCODE_ARROW_UP, MODE_SITE, } from "../constants...
src/focal-point.js
vigetlabs/react-focus-trap
/** * FocalPoint * The container that will maintain focus */ import React from 'react' let timer = null let isDOM = typeof document !== 'undefined' const defaultProps = { element: 'div' } class FocalPoint extends React.Component { constructor(props, context) { super(props, context) this.anchor = nul...
modules/Planner.js
SomethingSexy/react-planner
/* global window, document */ import invariant from 'invariant'; import { isEqual } from 'lodash'; import * as moment from 'moment'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; import ReactGridLayout, { WidthProvider } from 'react-grid-layout'; ...
2-add-routing/src/view/not-found.js
chemoish/react-universal-tutorial
import React from 'react'; export default function NotFound() { return ( <h1>404</h1> ); };
packages/material-ui-icons/src/Toc.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Toc = props => <SvgIcon {...props}> <path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z" /> </SvgIcon>; Toc = pure(Toc); Toc.muiName = 'SvgIcon'; export...
fields/components/columns/ArrayColumn.js
brianjd/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var ArrayColumn = React.createClass({ displayName: 'ArrayColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
components/SingleProduct.js
NigelEarle/SSR-shopping
import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; @inject('productStore') @observer class SingleProduct extends Component { constructor(props) { super(props); } render() { const { productStore: { singleProduct, products, } } = this.p...
www/src/templates/doc.js
TaitoUnited/taito-cli
import React from 'react'; import { graphql } from 'gatsby'; import { FiBookOpen } from 'react-icons/fi'; import { flattenListData } from '../utils'; import { IS_BROWSER } from '../constants'; import Page from '../components/Page'; import SEO from '../components/SEO'; import Text from '../components/Text'; import Spac...
ui/src/main/js/components/InstanceHistory.js
apache/aurora
import React from 'react'; import InstanceHistoryItem from 'components/InstanceHistoryItem'; import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout'; import { isNully } from 'utils/Common'; import { getLastEventTime } from 'utils/Task'; export default function InstanceHistory({ tasks }) { if ...
src/media/js/addon/components/listing.js
diox/marketplace-content-tools
import React from 'react'; import {Addon, AddonForDashboard, AddonForReview} from './addon'; export class AddonListing extends React.Component { static propTypes = { addons: React.PropTypes.array.isRequired }; render() { return ( <ul className="addon-listing"> {this.props.addons.map(addo...
componentes/Recipes.js
yomi-network/app
import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, ScrollView, TouchableHighlight, TouchableOpacity } from 'react-native'; class Recipes extends Component { static navigationOptions = { title: 'Home', headerTintColor: 'pink', } render() { ...
js/components/Header/2.js
ChiragHindocha/stay_fit
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...
src/Components/Toaster/message.js
sqhtiamo/zaro
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import styles from './style'; import './comstyle.css'; class Message extends Component { constructor(props) { super(props); this.state = {}; this.hide = t...
test/helper.js
ibleedfilm/recipe-box
import React from 'react'; import chai, { expect } from 'chai'; import { shallow, mount, render } from 'enzyme'; import chaiEnzyme from 'chai-enzyme'; import { spy, stub, mock, fakeServer } from 'sinon'; import sinonChai from 'sinon-chai'; chai.use(chaiEnzyme()); chai.use(sinonChai); global.React = React; global.cha...
static/src/CommentBox.js
minicooperj/MegdProject
//CommentBox.js import React, { Component } from 'react'; import axios from 'axios'; import CommentList from './CommentList'; import CommentForm from './CommentForm'; import style from './style'; class CommentBox extends Component { constructor(props) { super(props); this.state = { data: [] }; this.loadCommentsFro...
project/react-ant-multi-pages/src/pages/index/containers/AutoDestination/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/components/VmNics/index.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { addVmNic, deleteVmNic } from '_/actions' import { Button } from 'patternfly-react' import DeleteConfirmationModal from '../VmModals/DeleteConfirmationModal' import { msg } from '_/intl' import FieldHelp from '../...
src/modules/Sequencer/Sequencer.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import styled from 'styled-components'; import * as actions from './actions'; import * as selectors from './selectors'; import Container from '../components/Container'; import Gear from '../components/icons/Gear'; im...
packages/omit-props/demo/index.js
deepsweet/hocs
import React from 'react' import { compose, withProps } from 'recompose' import omitProps from '../src/' const Demo = (props) => ( <h1>props: {JSON.stringify(props)}</h1> ) export default compose( withProps({ a: 1, b: 2, c: 3 }), omitProps('a', 'b') )(Demo)
fields/components/columns/IdColumn.js
riyadhalnur/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
src/client.js
jackp/finance-tracker
/** * Client entry point */ import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, compose } from 'redux'; import { Provider } from 'react-redux'; import reducers from './reducers'; import App from './components/App'; let createStoreWithMiddleware; let DevTools; if (__DEV__) { DevTo...
src/AffixMixin.js
herojobs/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
demos/chips/demos/button.js
isogon/styled-mdl-website
import React from 'react' import { ButtonChip } from 'styled-mdl' const demo = () => <ButtonChip>Button Chip</ButtonChip> const caption = 'Button Chip' const code = '<ButtonChip>Button Chip</ButtonChip>' export default { demo, caption, code }
lib/components/action-panel.js
jwperry/nodepad
import React from 'react'; import Note from './note'; import store from '../store'; import { remote } from 'electron'; const { openFile } = remote.require(`${__dirname}/../main`); const ActionPanel = () => { function changeTheme(){ var body = document.getElementsByTagName("body")[0]; var button = document.g...
tool/Atlas/js/App.js
Metalith/Astrum
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux' import { Provider } from 'react-redux' import Reducer from './reducers/Reducer' import Editor from './containers/Editor' let store = createStore(Reducer, window.devToolsExtension && window.devToolsExtension()) ReactDOM.re...
client/src/components/Draftail/blocks/MediaBlock.js
mikedingjan/wagtail
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Icon } from 'draftail'; import Tooltip from '../Tooltip/Tooltip'; import Portal from '../../Portal/Portal'; // Constraints the maximum size of the tooltip. const OPTIONS_MAX_WIDTH = 300; const OPTIONS_SPACING = 70; const TOOLTIP_MA...
app/src/components/FilledStarIcon/index.js
karatechops/bhamc
import React from 'react'; export const FilledStarIcon = () => <svg version="1.1" viewBox="0 0 24 24" width="24px" height="24px" role="img" className="grommetux-control-icon grommetux-control-icon-star grommetux-control-icon--responsive" aria-label="star" style={{ fill: 'rgb(255...
src/components/AddComment.js
jackiejohnston/redux-readable
import React from 'react' import PropTypes from 'prop-types' import { withRouter, Link, Redirect } from 'react-router-dom' import { connect } from 'react-redux' import { addComment } from '../actions' class AddPost extends React.Component { state = { parentId: this.props.match.params.post_id, author: "", ...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
d6rkaiz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
src/components/icons/MoveIcon.js
austinknight/ui-components
import React from 'react'; const MoveIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M9,3L5,7H8V14H10V7H13M16,17V10H14V17H11L15,21L19,17H16Z" /> </svg> ); export default MoveIcon;
src/components/component_cart_list.js
paschalidi/shopping-cart-reactjs-redux
import React, { Component } from 'react'; import { connect } from 'react-redux' class ItemListComponent extends Component { renderItemsIntoAList(items) { return items.map((item, index) => { if (item.title) return ( <li key={index} className="list-group-item"> <p className="lis...
packages/icons/src/md/communication/ContactMail.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdContactMail(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42 16v-2l-6 4-6-4v2l6 4 6-4zm2-10c2.21 0 4 1.79 4 4l-.02 28c0 2.21-1.77 4-3.98 4H4c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h40zm-28 6c-3.31 0-6 2...
src/components/PostList.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import PostListItem from './PostListItem'; import styled from 'styled-components'; const Ul = styled.ul` list-style: none; margin: ${props => props.theme.blog.list.ul.margin}; padding: ${props => props.theme.blog.list.ul.padding}; `; const PostList ...
src/components/Page/Page.js
foxleigh81/foxweb
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
Example/index.js
wkrause13/react-native-admob
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Platform, TouchableHighlight, Button, ScrollView, } from 'react-native'; import { AdMobBanner, AdMobRewarded, AdMobInterstitial, PublisherBanner, } from 'react-native-admob'; const BannerExample = ({ style,...
app/component/resume/LanguageSkillsTable.js
mrFlick72/mrFlick72.github.io
import React from 'react'; export default ({languageDetails}) => { return <div className="table-responsive"> <table className="table"> <thead> <tr> <th>Language</th> <th colSpan="2">Understanding</th> <th colSpan="2">Speaking</th> ...
app/components/Repo.js
jorsh/react-seed
import React from 'react' export default React.createClass({ render() { return ( <div> <h2>{this.props.params.repoName}</h2> <h2>{this.props.params.userName}</h2> </div> ) } })
src/components/ContestList.js
Nosfit/mern
import React from 'react'; import ContestPreview from './ContestPreview'; const ContestList = ({ contests, onContestClick }) => ( <div className="ContestList"> {Object.keys(contests).map(contestId => <ContestPreview key={contestId} onClick={onContestClick} {...contests[contestId]}...
app/addons/setup/components/NodeCountSetting.js
apache/couchdb-fauxton
// Licensed 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/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/shared/components/Login/Login.js
pavelkukov/pgkoapoc
import React from 'react' import styled from 'styled-components' import Helmet from 'react-helmet' const H1 = styled.h1` color: ${props => props.theme.colors.success[2]}; padding: 10px; text-align: center; font-family: ${props => props.theme.fonts.primary}; ` const Login = () => { return ( ...
node_modules/react-select/examples/src/components/States.js
ivanhristov92/bookingCalendar
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var StatesField = React.createClass({ displayName: 'StatesField', propTypes: { label: React.PropTypes.string, searchable: React.PropTypes.bool, }, getDefaultProps () { return { label: 'States:', sea...
src/components/Text/index.js
Plop3D/sandbox
import React from 'react' import PropTypes from 'prop-types' import { Entity } from 'aframe-react' const propTypes = { children: PropTypes.any, color: PropTypes.string, value: PropTypes.string.isRequired, width: PropTypes.number, lineHeight: PropTypes.number, letterSpacing: PropTypes.number, align: PropT...
app/javascript/mastodon/features/ui/util/reduced_motion.js
gol-cha/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
src/components/ReduxAppControllerRouter.js
antonpkazakov/redux-app-controller
import React from 'react'; import { Router as ParentRouter, Route, Link, IndexRoute, Redirect, IndexRedirect, browserHistory, hashHistory, withRouter } from 'react-router'; import Utils from './Utils'; // Exporting all react-router components to avoid the need to import all these components separately from react-r...
assets/jqwidgets/demos/react/app/formattedinput/keyboardnavigation/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js'; class App extends React.Component { render() { return ( <div> <JqxFormattedInput style={{ float: 'left' }} width...