path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/CardSection.js
shabib87/Albums
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', justifyCon...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
gaolichuang/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ActorClient from 'utils/ActorClient'; import confirm from 'utils/con...
internals/templates/app.js
mmaedel/react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
src/GoalProgressBarGeneral/index.js
christianalfoni/ducky-components
import Typography from '../Typography'; import IconImage from '../IconImage'; import ProgressCircle from '../ProgressCircle'; import LabelSmall from '../LabelSmall'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function GoalProgr...
node_modules/react-bootstrap/es/NavbarHeader.js
firdiansyah/crud-req
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 ...
stories/Durations.js
intljusticemission/react-big-calendar
import React from 'react' import { storiesOf } from '@storybook/react' import moment from 'moment' import { Calendar, Views, DragableCalendar } from './helpers' storiesOf('Event Durations', module) .add('Daylight savings starts', () => { return ( <DragableCalendar defaultView={Views.DAY} m...
app/javascript/mastodon/components/button.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/6_AdjudicatorsPreview/AdjudicatorTable/AdjudicatorDragAndDrop.js
westoncolemanl/tabbr-web
import React from 'react' import ItemTypes from './ItemTypes' import { DragSource } from 'react-dnd' import { connect } from 'react-redux' import withStyles from 'material-ui/styles/withStyles' import AdjudicatorChip from 'containers/Asians/TabControls/_components/AdjudicatorChips/AdjudicatorChip' const styles = them...
awsmobilecognitocustomui/src/components/Loading.js
adrianhall/blog-code
import React from 'react'; import { StyleSheet, View } from 'react-native'; import Spinner from 'react-native-spinkit'; import colors from '../theme/colors'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: col...
src/App.js
isuruAb/chat.susi.ai
import Blog from './components/Blog/Blog.react'; import ChatApp from './components/ChatApp/ChatApp.react'; import Contact from './components/Contact/Contact.react'; import Devices from './components/Devices/Devices.react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Logout from './components/Auth/L...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
zomeelee/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import AvatarItem from 'components/common/AvatarItem.react'; var ContactItem = React.createClass({ displayName: 'ContactItem', propTypes: { contact: React.PropTypes.object, onSelect: React.PropTypes.func }, mixins: [PureRende...
src/svg-icons/content/clear.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentClear = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); ContentClear = pure(ContentClea...
src/components_youtube_p/video_detail.js
vikasv/ReactWithRedux
import React from 'react'; const VideoDetail = ({video}) => { if(!video){ return <div>Loading...</div>; } const videoId = video.id.videoId; const url = 'https://www.youtube.com/embed/' + videoId; //Below es6 syntax //const url = `https://www.youtube.com/embed/$(videoId)`; return ( <div class...
src/components/orders/orders_table.js
hojberg/mastering-react
import React from 'react'; import OrderRow from './order_row'; class OrdersTable extends React.Component { render() { const rows = this.props.orders.map((order, i) => { return <OrderRow order={order} key={i} />; }); return ( <table className='orders-table'> <thead> <tr> ...
tests/format/misc/flow-babel-only/class_with_generics.js
jlongster/prettier
import React from 'react'; /*:: type Props = { foo?: ?string, bar: number, }; */ /*:: type State = { baz: number }; */ class Component extends React.Component/*:: <Props, State> */ { }
src/internal/Overlay.js
rscnt/material-ui
import React from 'react'; import transitions from '../styles/transitions'; import AutoLockScrolling from './AutoLockScrolling'; function getStyles(props, context) { const {overlay} = context.muiTheme; const style = { root: { position: 'fixed', height: '100%', width: '100%', top: 0, ...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
yi0713/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/test/xy-plot.js
jameskraus/react-vis
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
app/javascript/mastodon/features/account/components/account_note.js
glitch-soc/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
www/components/Navigation/Navigation.js
DremyGit/dremy-blog
import React from 'react'; import { Link, withRouter } from 'react-router'; import CSSModules from 'react-css-modules'; import styles from './Navigation.scss'; @withRouter @CSSModules(styles) class Navigation extends React.Component { constructor(props) { super(props); this.state = { searchInput: fals...
src/client/course/EditVenturerCourse.js
jmicmoore/merit-badge-university
import React from 'react'; import {connect} from 'react-redux'; import {withRouter} from 'react-router-dom'; import TextArea from "../common/components/TextArea"; import SingleSelect from '../common/components/SingleSelect'; import SimpleList from '../common/components/SimpleList'; import {updateCourse, getCourseById, ...
src/index.js
JasonAForral/quiz-client-json-rpc-react
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import thunk from 'redux-thunk' import createLogger from 'redux-logger' import App from './containers/App' import reducer from './reducers' import './index.css'; cons...
packages/material-ui-icons/src/PanoramaVertical.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.71 8.91 5.71 12c0 3.09-.55 6.18-1...
src/Main.js
connectordb/connectordb-android
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as Actions from './actions'; import { StatusBar, View } from 'react-native'; import FacebookTabBar from './components/FacebookTabBar'; import ErrorBar from './components/ErrorBar'; im...
webpack/scenes/RedHatRepositories/components/RepositorySetRepositories.js
cfouant/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Alert, Spinner } from 'patternfly-react'; import loadRepositorySetRepos from '../../../redux/actions/RedHatRepositories/repositorySetRepositories'; import RepositorySetRepository from './Reposi...
docs/app/Examples/addons/Radio/States/ReadOnly.js
jamiehill/stardust
import React from 'react' import { Radio } from 'stardust' const RadioReadOnlyExample = () => ( <Radio label='This radio is read-only' readOnly /> ) export default RadioReadOnlyExample
src/components/user/avatar-editor.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
src/main.js
luigiplr/area51-launcher
import React from 'react' import ReactDOM from 'react-dom' import Framework from './js/components/Framework.react' import webUtil from './js/utils/webUtil' webUtil.disableGlobalBackspace() ReactDOM.render(<Framework />, document.getElementById('app'))
src/components/mail/mailTags.js
EncontrAR/backoffice
import React from 'react'; const tags = [ 'Friend', 'Family', 'Colleague', 'Teachers', 'Students', 'ClassMates', ]; const tagColor = [ '#CD3131', '#74B49B', '#0962EA', '#141829', '#FFCD38', '#61105E', ]; function gettags(mails, filterAttr) { const tags = {}; mails.forEach(mail => { if (...
submissions/masiulis/src/components/components/components/sith-list-item.js
staltz/flux-challenge
import React from 'react'; export default class extends React.Component { static propTypes = { name: React.PropTypes.string, homeworld: React.PropTypes.string, obiPlanet: React.PropTypes.string, } render() { const textColor = this.props.homeworld === this.props.obiPlanet ...
packages/bonde-admin/src/components/navigation/tabs/tab-border.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' if (require('exenv').canUseDOM) { require('./tab-border.scss') } const TabBorder = ({ children, Component, path, className, isActive, style }) => { const optionalProps = {} if (path) optionalProps.to = path retu...
src/components/Elements/SocialIcons/index.js
jmikrut/keen-2017
import React, { Component } from 'react'; import Facebook from '../../Icons/Facebook'; import LinkedIn from '../../Icons/LinkedIn'; import Dribbble from '../../Icons/Dribbble'; import Behance from '../../Icons/Behance'; import YouTube from '../../Icons/YouTube'; import Medium from '../../Icons/Medium'; import GitHub f...
packages/veritone-react-common/src/components/FilePicker/FileUploader/index.js
veritone/veritone-sdk
import React, { Component } from 'react'; import { noop, startsWith, endsWith } from 'lodash'; import cx from 'classnames'; import Button from '@material-ui/core/Button'; import { DropTarget } from 'react-dnd'; import { string, func, arrayOf, bool, shape, any } from 'prop-types'; import { withStyles } from '@material-u...
src/components/CodeForm.js
MattMcFarland/codepix-client
import React from 'react'; import ajax from 'superagent'; import Select from 'react-select'; import { Expander, Radio } from './partials/Elements'; import { ProtoFormClass, FormErrors } from './partials'; import { codeOptions } from './config'; export class CodeForm extends React.Component { constructor() { su...
src/components/Timetable/TimetableBackground.js
momomods/momomods
import React from 'react'; import _ from 'lodash'; import classnames from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import { CELLS_COUNT } from '../../utils/timetable'; import s from './timetable.scss'; // Ref: https://github.com/yangshun/nusmods-v3/tree/master/src/js const Timeta...
src/card.js
joxoo/react-material
import React from 'react'; import { getClassesStatic } from './addons/get-classes'; const Card = (props) => ( <div className={ getClassesStatic('card', props) }> { props.children } </div> ); export default Card;
src/components/common/svg-icons/notification/airline-seat-legroom-normal.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
src/handleReactRouter.js
nheyn/express-react-router
/** * @flow */ import React from 'react'; import { Router } from 'react-router'; import ReactDOMServer from 'react-dom/server'; import express from 'express'; import { match, RouterContext } from 'react-router'; import getReactRouterRoute from './router-traversal/getReactRouterRoute'; import getExpressRouter from '....
src/core/markers/PolylineMarker.js
mocheer/react-map
import React from 'react'; export const PolylineMarker = React.createClass({ render: function () { var state = this.state; return null; } });
app/containers/LanguageProvider/index.js
fenderface66/spotify-smart-playlists
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/index.js
tomorrowshine/cra-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import leaveWord from './containers/leaveWord'; import list from './containers/list/list'; import registerServiceWorker from './registerServiceWorker'; import { Provider } from 'react-redux' import store from './store'; import { Ro...
src/components/Dock/Dock.js
bibleexchange/be-front-new
import React from 'react'; import { createFragmentContainer, graphql, } from 'react-relay/compat'; import { Link } from 'react-router'; import Loading from '../ListWidget/Loading' //import SoundCloudPlayer from './SoundCloudPlayer' import NoteEditor from '../NoteEditor/NoteEditorWidget' import './Dock.scss'; import...
examples/cra/src/components/RandomButton.js
styleguidist/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sample from 'lodash/sample'; import './RandomButton.css'; /** * Button that changes label on every click. */ export default class RandomButton extends Component { static propTypes = { /** * List of possible labels. */ va...
src/containers/App/index.js
hasibsahibzada/quran.com-frontend
/* eslint-disable react/prefer-stateless-function */ import React, { Component } from 'react'; import * as customPropTypes from 'customPropTypes'; import { metrics } from 'react-metrics'; import { connect } from 'react-redux'; import { asyncConnect } from 'redux-connect'; import Helmet from 'react-helmet'; import Modal...
ui/js/dfv/src/fields/pick/checkbox-select.js
pods-framework/pods
import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import { PICK_OPTIONS } from 'dfv/src/config/prop-types'; import './checkbox-select.scss'; const CheckboxSelect = ( { htmlAttributes, name, value, options = [], setValue, isMulti, readOnly = false, } ) => { co...
src/Calendar.js
Hanse/react-calendar
import React, { Component } from 'react'; import moment from 'moment'; import PropTypes from 'prop-types'; import cx from 'classnames'; import createDateObjects from './createDateObjects'; export default class Calendar extends Component { static propTypes = { /** Week offset*/ weekOffset: PropTypes.number.is...
src/components/Auth/PrivateRoute.js
dovydasvenckus/time-tracker-web
import React from 'react'; import PropTypes from 'prop-types'; import { Route } from 'react-router-dom'; import { AuthConsumer } from '../../utils/auth/authProvider'; const PrivateRoute = ({ component, ...rest }) => { const renderFn = (Component) => (props) => ( <AuthConsumer> {({ isAuthenticated, signInRe...
src/todo/input.js
corgisamurai/spary_react
import React from 'react' import { Component } from 'react' class TodoInput extends Component { _onAddToDo(){ var newTodo = this.refs.todo.value.trim(); this.props.onAddToDo(newTodo); this.refs.todo.value=""; } _getOnsen(){ axios.post('/api/onsen/list') .then(function (res) { console.log(re...
src/components/Main.js
jerwu/graduationProject
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //获取图片相关的数据 var imageDatas = require('../data/imageDatas.json'); //利用自执行函数,将图片名信息转成图片URL路径信息 imageDatas=(function genImageURL(imageDatasArr){ for(var i = 0,j = imageDatas.length;i < j;i...
client/src/app/routes/graphs/containers/ChartJs.js
zraees/sms-project
import React from 'react' import request from 'then-request' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import ChartJsGraph from '../../../components/graphs/chartjs/ChartJsGraph' export default class ChartJs extends React.Component { state = {}; componentWillMount() ...
samples/react-redux-patient-demographics-example/src/routes/Patient/Demographics/PatientDemographicsComponent.js
GoTeamEpsilon/angular-to-react-redux
import React from 'react' import { browserHistory } from 'react-router' import Basic from './Basic/BasicComponent' import Contact from './Contact/ContactComponent' class PatientDemographics extends React.Component { constructor() { super() this.TABS = { BASIC: 'basic', CONTACTS: 'contacts' }...
fields/types/color/ColorColumn.js
webteckie/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var ColorColumn = React.createClass({ displayName: 'ColorColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
app/javascript/mastodon/components/icon_button.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; import AnimatedNumber from 'mastodon/components/animated_number'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTyp...
packages/@lyra/google-maps-input/src/GeopointInput.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import config from 'config:@lyra/google-maps-input' import Button from 'part:@lyra/components/buttons/default' import Dialog from 'part:@lyra/components/dialogs/default' import Fieldset from 'part:@lyra/components/fieldsets/default' import { PatchEvent, s...
src/components/Header/index.js
jefflau/jefflau.net
import React from 'react' import Link from 'gatsby-link' const Header = ({ pages }) => <header className="site-header"> <h1 className="logo"> <Link to="/" style={{ color: 'white', textDecoration: 'none', }} > Jeff Lau </Lin...
client/components/users/email-enrollment-form.js
ShannChiang/meteor-react-redux-base
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); this.state = {uiState: 'INIT'}; this.onSubmit = this.onSubmit.bind(this); } onSubmit(e) { e.preventDefault(); this.setState({uiState: 'SENDING'}); this.props.enrollWithEmail(this....
es/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js
dearkaran/react-planner
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ItemAttributesEditor from './item-attributes-editor'; import LineAttributesEditor from './line-attributes-editor'; import HoleAttributesEditor from './hole-attributes-editor'; export default function AttributesEditor(_ref) { var ele...
examples/todos-with-undo/src/index.js
heyesther/redux
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './components/App' import reducer from './reducers' const store = createStore(reducer) render( <Provider store={store}> <App /> </Provider>, document.getEle...
docs/src/components/Playground/Atoms/TextLink/TextLink.js
seekinternational/seek-asia-style-guide
import styles from './TextLink.less'; import React from 'react'; import PropTypes from 'prop-types'; import ChevronIcon from 'seek-asia-style-guide/react/ChevronIcon/ChevronIcon'; import classnames from 'classnames'; const renderChevron = chevron => { if (!chevron) { return null; } return ( <ChevronIco...
app/javascript/mastodon/features/ui/index.js
amazedkoumei/mastodon
import classNames from 'classnames'; import React from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Redirect, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import NotificationsContai...
generators/app/templates/app/assets/javascript/containers/home/index.js
ajaykumaryadav/react-bootstrap
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import Header from '../../components/shared/header' class homeContainer extends Component { render() { return ( <section> <Header /> {this.props.children} <div className="container"> ...
src/components/ui/content/index.js
boxal/boxal
import React from 'react'; function Content({ children, isVisible = true, }) { return ( <div style={style[isVisible]}> {isVisible ? children : null} </div> ); } const style = { [true]: {}, [false]: { display: 'none', }, }; Content.propTypes = { children: React.PropTypes.node, isVi...
src/Tag.js
captainill/react-tag-select
/* eslint react/no-multi-comp: 0 */ import React, { Component } from 'react'; class Tag extends Component { static propTypes = { labelField: React.PropTypes.string, onDelete: React.PropTypes.func.isRequired, tag: React.PropTypes.object.isRequired, removeComponent: React.PropTypes.func, readOnly: ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-17/Header.js
Brandon-J-Campbell/codemash
import React from 'react'; import classNames from 'classnames'; // import theme from './theme/static'; import ThemeContext from './theme/context'; import ThemeSwitcher from './theme/Switcher'; import styles from './Header.css'; export default function Header() { return ( <ThemeContext.Consumer> {({ theme...
src/svg-icons/action/perm-phone-msg.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermPhoneMsg = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2...
pages/discover-more/related-projects.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/discover-more/related-projects/related-projects.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } expo...
components/styled-links.js
kentcdodds/glamorous-website
import React from 'react' import Link from 'next/link' import glamorous from 'glamorous' import {colors} from '../styles/global-styles' const getPathname = pathname => { return pathname === undefined ? '' : pathname } const basicLinkStyles = // @css {cursor: 'pointer'} const anchorStyles = // @css { te...
examples/async/index.js
dimaip/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
src/svg-icons/maps/local-taxi.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
frontend/src/components/app.js
bhtucker/streamkov
import React from 'react' import VisibleChainList from '../containers/VisibleChainList' import Sampler from './Sampler' import UrlEntryBox from './UrlEntryBox' const App = () => ( <div> <h1>Streamkov</h1> <VisibleChainList /> <Sampler /> <UrlEntryBox /> </div> ) export default App
ui/src/components/footer.js
jollopre/mps
import React from 'react'; const style = { position: 'absolute', right: 0, bottom: 0, left:0, minHeight: '50px', padding: '1rem', textAlign: 'center', backgroundColor: '#222', color: '#fff', fontSize: 'small', }; export const Footer = function(){ return ( <div style={style}> <ul className="list-inline"...
src/index.js
weixing2014/iTodo
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import todoApp from './reducers' import App from './components/App' let store = createStore(todoApp) render( <Provider store={store}> <App /> </Provider>, document.getEleme...
app/src/components/AliasModal.js
GetStream/Winds
import React from 'react'; import PropTypes from 'prop-types'; import ReactModal from 'react-modal'; import { Img } from 'react-image'; import { connect } from 'react-redux'; import fetch from '../util/fetch'; import { getAliases } from '../api'; import saveIcon from '../images/icons/save.svg'; import exitIcon from '....
docs/src/app/pages/components/Avatar/FallbackAvatar.js
GetAmbassador/react-ions
import React from 'react' import Avatar from 'react-ions/lib/components/Avatar' import Button from 'react-ions/lib/components/Button' import style from './style.scss' class ExampleAvatar extends React.Component { constructor(props) { super(props) } state = { letters: 'cf', size: '100' } randomi...
Libraries/TabBar/TabBar.web.js
brainpoint/citong-react-web
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * * @providesModule ReactTabBar */ 'use strict'; import React from 'react'; import View from 'ReactView'; import TabBarItem from './TabBarItem.web'; import TabBarContents from './TabBarContents.web'; import assign from 'object...
react-flux-mui/js/material-ui/src/svg-icons/av/replay.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/> </SvgIcon> ); AvReplay = pure(AvReplay); AvReplay...
app/static/src/diagnostic/EquipmentForm_modules/NewManufacturerForm.js
SnowBeaver/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/lib/topics.js
trujunzhang/IEATTA-web
import Telescope from '../components/lib/index'; import React from 'react'; let _ = require('underscore'); const Topics = {}; export default Topics;
react/src/components/dashboard/settings/settings.daemonStdoutPanel.js
pbca26/EasyDEX-GUI
import React from 'react'; import translate from '../../../translate/translate'; import { connect } from 'react-redux'; import { coindGetStdout } from '../../../actions/actionCreators'; import Store from '../../../store'; class DaemonStdoutPanel extends React.Component { constructor() { super(); this.state =...
src/components/ShareMenu/WaitingOverlay.js
Charlie9830/pounder
import React from 'react'; import { Modal, Grid, CircularProgress, Typography } from '@material-ui/core'; const WaitingOverlay = (props) => { let gridStyle = { width: '100%', height: '100%', } return ( <Modal open={props.open} disableAutoFocus={true}> <Grid container st...
app/javascript/mastodon/components/domain.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
src/jsx/components/AddTransaction.js
luckychain/lucky
import React from 'react'; import Textarea from 'react-textarea-autosize'; import {Grid, Row, Col, Panel, FormGroup, Radio} from 'react-bootstrap'; import AppActions from '../actions/AppActions'; class AddTransaction extends React.Component { handleSubmit(event) { event.preventDefault(); var type = event.ta...
node_modules/eslint-config-airbnb/test/test-react-order.js
edsrupp/eds-mess
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import baseConfig from '../base'; import reactRules from '../rules/react'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: {indent: 0}, }); function...
src/v2/stories/EmbeddedChannel.stories.js
aredotna/ervell
import React from 'react' import { storiesOf } from '@storybook/react' import Specimen from 'v2/stories/__components__/Specimen' import { EmbeddedChannel } from 'v2/pages/channel/EmbeddedChannelPage/components/EmbeddedChannel' storiesOf('EmbeddedChannel', module).add('default', () => ( <Specimen> <EmbeddedChan...
react/L3/src/pages/Child.js
luolisave/starters
import React from 'react'; import {bindActionCreators} from 'redux'; import { connect } from 'react-redux'; import uuidv4 from 'uuid/v4'; // functions, should put to seperate file later. function clone(obj) { if (null === obj || "object" !== typeof obj) return obj; var copy = obj.constructor(); for (var at...
src/containers/Asians/TabControls/PreliminaryRounds/EnterRoundResults/TraineeFeedback/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Instance from './Instance' import ListSubheader from 'material-ui/List/ListSubheader' export default connect(mapStateToProps)(({ round, rooms, adjudicatorScores }) => { const filterRooms = roomToMatch => roomToMatch.round === round._id c...
js/Details.js
aurimas-darguzis/react-intro
import React from 'react' import { connect } from 'react-redux' import { getOMDBDetails } from './actionCreators' import Header from './Header' const { shape, string, func } = React.PropTypes const Details = React.createClass({ propTypes: { show: shape({ title: string, year: string, poster: str...
src/svg-icons/editor/vertical-align-bottom.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignBottom = (props) => ( <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom); EditorVertical...
assets/node_modules/recompose/renderComponent.js
janta-devs/nyumbani
'use strict'; exports.__esModule = true; var _createHelper = require('./createHelper'); var _createHelper2 = _interopRequireDefault(_createHelper); var _createEagerFactory = require('./createEagerFactory'); var _createEagerFactory2 = _interopRequireDefault(_createEagerFactory); function _interopRequireDefault(obj...
frontend/src/main/web/src/legacy.js
mvehar/zanata-server
/* * Copyright 2016, Red Hat, Inc. and individual contributors as indicated by the * @author tags. See the copyright.txt file in the distribution for a full * listing of individual contributors. * * This is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public ...
src/BasicHtmlEditor.js
dburrows/draft-js-basic-html-editor
import React from 'react'; import ReactDOM from 'react-dom'; import debounce from 'lodash/debounce'; import { Editor, EditorState, ContentState, Entity, RichUtils, convertToRaw, CompositeDecorator, Modifier } from 'draft-js'; import htmlToContent from './utils/htmlToContent'; import draftRawToHtml from...
app/react-icons/fa/gift.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaGift extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m23.7 30.3v-16h-7.1v16q0 0.5 0.4 0.8t1 0.3h4.3q0.6 0 1-0.3t0.4-0.8z m-10.2-18.9...
template/src/renderer/components/tempaltes/Main/Main.js
my-dish/template-electron
// @flow import React from 'react'; import styles from './style.css'; type Props = { left: React.Component<*>; right: React.Component<*>; children: React.Component<*>; }; const Main = (props: Props) => ( <div className={styles.container}> <div className={styles.left}>{props.left}</div> { props....
hello world/1.7 - router/src/components/routerList.js
wumouren/react-demo
import React from 'react'; export default class IndexList extends React.Component{ render(){ return ( <div> <h1>这是主要内容列表</h1> </div> ) } }
frontend/node_modules/react-recaptcha/example/main.js
andres81/auth-service
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import Recaptcha from '../src'; // site key const sitekey = 'xxxxxxx'; // specifying your onload callback function const callback = () => { console.log('Done!!!!'); }; const verifyCallback = (response) => { console.log(response...
client/extensions/woocommerce/app/promotions/fields/checkbox-field.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { omit } from 'lodash'; /** * Internal dependencies */ import FormCheckbox from 'components/forms/form-checkbox'; import FormField from './form-field'; const CheckboxField = props => { const { fie...
old_examples/conditional/app.js
reactjs/react-tabs
import React from 'react'; import { render } from 'react-dom'; import { Tab, Tabs, TabList, TabPanel } from '../../src/index'; import '../../style/react-tabs.css'; class App extends React.Component { constructor(props) { super(props); this.state = { showA: true, showB: true, showC: true, ...
src/svg-icons/maps/directions-bike.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBike = (props) => ( <SvgIcon {...props}> <path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3....
src/Thumbnail.js
Cellule/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'thumbnail' }; }, render() { let classes = this.getBsClassSet(); if(this.pr...
test/test-cases/public-path/src/app.js
seek-oss/sku
import React from 'react'; import styles from './app.less'; export default () => <div className={styles.root} />;