path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/js/entries/app.js
ziyadparekh/nsync
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from 'routes/routes'; import configureStore from 'store/store'; import Parse from 'parse'; Parse.initialize("12345"); Parse.serverURL = 'http://local...
app/javascript/mastodon/components/autosuggest_emoji.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; import { assetHost } from 'mastodon/utils/config'; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequire...
app/components/App.js
thereactleague/galaxy
import React, { Component } from 'react'; import { grey800 } from 'material-ui/styles/colors'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; const muiTheme = getMuiTheme({ palette: { textColor: grey800 }, typography: { fontS...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
liruqi/actor-platform-v0.9
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
node_modules/react-router/es6/RouteContext.js
geng890518/editor-ui
import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent trans...
src/components/textTable/textTable.js
wengyian/project-manager-system
/** * Created by 51212 on 2017/4/12. */ import React, { Component } from 'react'; import { Icon, Popover } from 'antd'; require('./textTable..scss'); var configParams = require('../../json/config.json'); const { textList } = configParams; //const textList = ['最新动态', '任务提醒', "历史记录", "附件记录"]; class TextTable extends ...
Examples/BarcodeScanner/index.android.js
jiaminglu/react-native-barcodescanner
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, Vibration, View } from 'react-native'; import BarcodeScanner from 'react-native-barcodescanner'; class BarcodeScannerApp extends Component { constructor(props) { super(props); this.state = { barcode: '', ...
Libraries/Utilities/throwOnWrongReactAPI.js
foghina/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
packages/mineral-ui-icons/src/IconAssessment.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconAssessment(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
src/containers/Launch/LaunchView.js
jeanlescure/detox-react-native-demo
/** * Launch Screen * - Shows a nice loading screen whilst: * - Preloading any specified app content * - Checking if user is logged in, and redirects from there * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
berserkertdl/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import classnames from '...
modules/gui/src/app/home/user/userMessages.js
openforis/sepal
import {Activator, activator} from 'widget/activation/activator' import {Button} from 'widget/button' import {CrudItem} from 'widget/crudItem' import {Layout} from 'widget/layout' import {ListItem} from 'widget/listItem' import {Markdown} from 'widget/markdown' import {Msg, msg} from 'translate' import {NoData} from 'w...
src/containers/AdminBehaviourCategoryPage.js
merrettr/school-ui
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { fetchBehaviourCategories } from '../actions'; import Spinner from '../components/Spinner'; import List from '../components/List'; import ListItem from '../components/ListItem'; import Err...
src/svg-icons/maps/place.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPlace = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"...
Libraries/Components/Keyboard/Keyboard.js
doochik/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/svg-icons/alert/error.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertError = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/> </SvgIcon> ); AlertError = pure(AlertError); AlertEr...
src/components/common/Modal.js
chejen/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import Cross from '../images/x.svg'; import styles from './Modal.module.css'; const Modal = ({ children, isOpen, hasClose, close }) => ( <div className={ cn(styles.modal, { [styles.isOpen]: isOpen }) } > ...
src/pages/mias.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Mias' /> )
app/index.js
rpmjoaquin/ghui
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import { configureStore, history } from './store/configureStore'; import './app.global.css'; const store = configureStore(); render( <AppContainer> <Root store={s...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
nhasjim/worldcare2.0
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/BtnApplyToMesh.js
gorankami/WebFEM
import React from 'react'; import { getMesh } from '../services/api'; import { scalePaletteColorValues, initColorArray, prepareVector } from '../services/utilities'; export default function BtnApplyToMesh(props) { return ( <button class="btn" onClick={()=>applyToMesh(props)}>Apply to mesh</button> ); } functi...
src/components/navigation/index.js
treeok/react-es6-webpack
// react import React from 'react'; import Template from './template.jsx'; const Navbar = React.createClass({ render: Template }); export default Navbar;
app/javascript/mastodon/features/home_timeline/index.js
masto-donte-com-br/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
src/js/components/icons/base/FormCheckmark.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
test/integration/image-component/default/pages/inside-paragraph.js
zeit/next.js
import React from 'react' import Image from 'next/image' import img from '../public/test.jpg' const Page = () => { return ( <p> <Image id="inside-paragraph" src={img} /> </p> ) } export default Page
examples/kitchensink/core/components/Root.js
Travix-International/frint
import React from 'react'; import { Region, observe } from 'frint-react'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Observable } from 'rxjs/Observable'; class Root extends React.Component { render() { return ( <div className="container"> <div className="row"> <div c...
website/src/pages/components/home/WhereNext.js
vokal/keystone
import React, { Component } from 'react'; import { compose } from 'glamor'; import Link from 'gatsby-link'; import Container from '../../../../components/Container'; import { Col, Row } from '../../../../components/Grid'; import { color } from '../../../../theme'; export default class ValueProps extends Component { r...
packages/xo-web/src/common/custom-fields.js
vatesfr/xo-web
import _ from 'intl' import defined from '@xen-orchestra/defined' import moment from 'moment-timezone' import PropTypes from 'prop-types' import React from 'react' import { injectState, provideState } from 'reaclette' import ActionButton from './action-button' import decorate from './apply-decorators' import Icon from...
2_route_redux_render/component/details/result.js
chkui/react-server-demo
import React from 'react' const cn = require('classnames/bind').bind(require('./result.scss')) /** * * @param {object} props {list} * @constructor */ const Result = props => <div className={cn('list')}> {props.list.map(i => <ResultItem key={i.id} name={i.name} ...
src/svg-icons/communication/chat-bubble-outline.js
kittyjumbalaya/material-components-web
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/components/Title/index.js
jefferyvincent/catalyst
import React, { Component } from 'react'; import { Text } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; class Title extends Component { render() { return ( <Text ref={c => this._root = c} {...this.props} numberOfLin...
module-10/02/my-app/src/App.js
dtfialho/js-tdd-course
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import FullHeader from 'react-full-header'; class App extends Component { render() { return ( <FullHeader title="TDD" subtitle="What is tested may never beak!" bgColor="blue" textCol...
src/App.js
ijsf/wersi-mk1-editor
import React, { Component } from 'react'; import WersiApp from 'components/WersiApp'; export default class App extends Component { render() { return ( <WersiApp // Defines the version version="0.8.0" /> ); } }
app/components/ProductInfoBadge.js
Byte-Code/lm-digital-store-private-test
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fromJS } from 'immutable'; import glamorous from 'glamorous'; import MarketingFlag from './MarketingFlag'; import AvailabilityButton from './AvailabilityButton'; import Pri...
src/components/Controls/index.js
lumio/waveblock
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import ControlsOptions from './ControlsOptions'; const Wrapper = styled.div` position: absolute; left: 0; top: 0; width: 100%; padding: 1em; display: flex; justify-content: space-between; align-items...
src/components/image-manager/register-button.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import { Button, Tooltip, withStyles } from '@material-ui/core'; const styles = theme => ({ root: { display: 'flex' } }); class RegisterButton extends Component { render() { const { props } = this; return ( <Tooltip title="Automatically find and regi...
src/index.js
regan-karlewicz/portfolio
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { StyleRoot } from 'radium'; import ReactGA from 'react-ga'; import createHistory from 'history/createBrowserHistory'; import { ViewRoot } from './views/Root'; import { theme } from './theme'; ReactGA.initialize('UA-10831366...
examples/src/app.js
InnovativeTravel/react-autosuggest
require('./app.less'); import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Badges from './Badges/Badges'; import Examples from './Examples'; import Footer from './Footer/Footer'; import ForkMeOnGitHub from './ForkMeOnGitHub/ForkMeOnGitHub'; import TrackLinks from './TrackLinks/TrackLinks...
src/components/squads/squad-player.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import Button from '../form-elements/form-button'; class SquadPlayer extends Component { render() { const player = this.props.data; const positions = player.position.map(position => position.name); return ( <div className="component com...
src/svg-icons/action/pageview.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPageview = (props) => ( <SvgIcon {...props}> <path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-...
src/components/shared/Checkout/Payment.js
Terrapin-Ticketing/althea
// CheckoutForm.js import React from 'react'; import { Elements } from 'react-stripe-elements'; import USDPayment from './USDPayment'; import Price from '../Price'; import './Payment.scss'; class Payment extends React.Component { constructor(props) { super(props); } render() { let { order, buyTicketsW...
src/Navigation/PreviousPageButton.js
MGrin/mgr-pdf-viewer-react
import React from 'react'; import PropTypes from 'prop-types'; import styles from '../styles'; const PreviousPageButton = ({ css, page, handlePrevClick }) => { const prevClass = ` ${css ? css : 'mgrpdf-navigation mgrpdf-navigation__controls mgrpdf-navigation__controls--previous'} ${page === 1 ? ' mgrpdf-navi...
src/svg-icons/content/redo.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
components/autoclosable/src/story.js
fi11/uikit
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import AutoClosable from './AutoClosable'; const Popup = ({ children }) => ( <div style={{ width: 140, height: 80, padding: 20, border: '1px solid #ccc' }} > {children} </div> ); s...
app/javascript/mastodon/components/dropdown_menu.js
cybrespace/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
src/svg-icons/action/settings-overscan.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsOverscan = (props) => ( <SvgIcon {...props}> <path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18...
generators/app/templates/src/routes/Home/components/HomeView.js
chenkaixia/generator-zcy-front-starter-kit
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
src/components/TableContainer.js
joellanciaux/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from '../utils/griddleConnect'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { classNamesForComponentSelector, stylesForComponentSelector, visib...
Libraries/Components/TextInput/TextInput.js
christopherdro/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
examples/src/components/CustomSingleValue.js
stephen/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var SingleValue = React.createClass({ propTypes: { placeholder: React.PropTypes.string, value: React.PropTypes.object }, render () { var obj = this.props.value; var size = 15; var gravatarStyle = { borderRadius: 3, display: 'inline-bl...
src/components/JobThumbnail.js
Esslamb/my-portfolio
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const JobThumbnail = (props) => { const JobWrapper = styled.a` background: ${props.color ? props.color : '#00000' }; height: 330px; padding: 20px; margin: 20px 0; width: 100%; fle...
client/src/topBar/index.js
AlTavares/babos.ios-server
import React from 'react'; import { Link } from 'react-router' class TopBar extends React.Component { render() { return ( <div id="top" className="row"> <div className="col-sm-3"> <h2>{this.props.title}</h2> </div> <div className="col-sm-6"> {/* <div className="input-group h2"> ...
fields/types/azurefile/AzureFileColumn.js
qwales1/keystone
import React from 'react'; var AzureFileColumn = React.createClass({ renderValue () { var value = this.props.data.fields[this.props.col.path]; if (!value) return; return <a href={value.url} target="_blank">{value.url}</a>; }, render () { return ( <td className="ItemList__col"> <div className="ItemLis...
app/components/habits/habitCategoryContainer.js
liveyourheart/woke-electron
import React, { Component } from 'react'; import { Link } from 'react-router'; import { Card, CardHeader, CardTitle, CardText } from 'material-ui/Card'; import HabitItem from './habitItem' export default class HabitCategoryContainer extends Component { render() { const style ={ width: "98%", bord...
docs/app/Examples/views/Card/Types/index.js
jcarbo/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Types = () => ( <ExampleSection title='Types'> <ComponentExample title='Card' description='A card displays sit...
src/entypo/PriceRibbon.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--PriceRibbon'; let EntypoPriceRibbon = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M12.825,10.653c0.118-0.258,0.445-0.497,0.727-0.529s0.539-0.29,0.571-0.572c0.034-0.28,0.272-...
includes/blocks/src/user-earned-points-block/block.js
opencredit/badgeos
/** * BLOCK: blocks * * Registering a basic block with Gutenberg. * Simple block, renders and saves the same content without any interactivity. */ // Import CSS. import './editor.scss'; import './style.scss'; import React from 'react'; import Select from 'react-select'; const { PanelBody, PanelRow, ServerSide...
test/integration/client-navigation/pages/nav/as-path-using-router.js
zeit/next.js
import React from 'react' import Router from 'next/router' export default class extends React.Component { constructor(...args) { super(...args) this.state = {} } componentDidMount() { const asPath = Router.asPath this.setState({ asPath }) } render() { return <div className="as-path-cont...
src/components/AddressBook.js
coeniebeyers/QuorumNostroDemo
import React from 'react' import AddAccount from '../containers/AddAccount' import AccountList from '../containers/AccountList' import NavBar from '../components/NavBar' const AddressBook = () => ( <div> <NavBar /> <AddAccount /> <AccountList /> </div> ) export default AddressBook
js/components/TodoPage/TodoList.react.js
ryantang333/react-boilerplate-test
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Todo } from './Todo.react'; import { asyncToggleTodo, getVisibleTodos, } from '../../actions/AppActions'; const TodoList = ({ todos, onTodoClick }) => ( <ul> {todos.map(todo => <Todo key={todo.id} {...todo} ...
Libraries/Image/Image.ios.js
frantic/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
js/views/LoginPage.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { Alert, Text, TextInput, TouchableOpacity, View, Image, ScrollView, } from 'react-native'; import Variables from '../styles/Variables'; import Styles from '../styles/Styles'; import Color from '../styles/Color'; import Footer from '../components/Footer'; import Button f...
src/main/resources/ui/components/Main.js
vixns/chronos
import React from 'react' import JobSummaryView from './JobSummaryView' import JobEditor from './JobEditor' import {observer} from 'mobx-react' @observer export default class Main extends React.Component { derp(event) { console.log(event) } render() { const jobSummaryStore = this.props.jobSummaryStore ...
src/modules/notes/components/StickyNote/index.js
emadalam/mesmerized
import React, { Component } from 'react'; import Draggable from 'react-draggable'; import EditIcon from 'react-icons/lib/fa/info'; import MdDeleteForever from 'react-icons/lib/md/delete-forever'; import MdCheck from 'react-icons/lib/md/check'; import IconButton from 'react-toolbox/lib/button/IconButton'; import Button ...
src/app/components/SubredditSubscribeForm/index.js
ajacksified/reddit-mobile
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Form } from '@r/platform/components'; export const SubredditSubscribeForm = (props) => { const { uuid, fullName, isSubscriber, className, renderBody } = props; return ( <Form action='/ac...
client/src/components/StreamField/blocks/FieldBlock.js
wagtail/wagtail
/* global $ */ import { escapeHtml as h } from '../../../utils/text'; import ReactDOM from 'react-dom'; import React from 'react'; import Icon from '../../Icon/Icon'; export class FieldBlock { constructor( blockDef, placeholder, prefix, initialState, initialError, parentCapabilities, ) { ...
information/blendle-frontend-react-source/app/modules/campaigns/NewsletterSignUpSuccessDialogue.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Dialogue from 'components/dialogues/Dialogue'; import Confetti from 'components/Confetti'; import Button from 'components/Button'; import { translate } from 'instances/i18n'; const NewsletterSignupSuccessDialogue = ({ onClose, loading }) => { if (...
app/react-icons/fa/play-circle-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaPlayCircleO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m29.4 20q0 0.8-0.7 1.2l-12.1 7.2q-0.4 0.2-0.7 0.2-0.4 0-0.8-0.2-0.7-0.4-...
example/examples/PolylineCreator.js
pjamrozowicz/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LA...
src/web/solutions/Search/SolutionSearchForm.js
whybug/whybug-server
import React from 'react'; import { Column, Header, HeroSection, Section, Link, Row, } from '../../common/UI'; export var SearchForm = React.createClass({ propTypes: { query: React.PropTypes.string, searchCallback: React.PropTypes.func }, onChange(event) { t...
client/app/components/ProfileCard.js
florianporada/moovel_testme
import React from 'react'; import { Text, View } from 'react-native'; import { Badge, Avatar } from 'react-native-elements'; import PropTypes from 'prop-types'; import helper from '../helper'; import { styles } from '../config/styles'; class ProfileCard extends React.Component { constructor(props) { super(props...
examples/react-redux/src/components/ui/FormError.js
rangle/redux-segment
import React from 'react'; const FormError = ({ children, isVisible, style = {}, className = ''}) => { const visibleClass = isVisible ? 'block' : 'hide'; return ( <div className={ `${ className } bold ${ visibleClass } black` } style={{ ...styles.base, ...style }}> { children } </div> ...
components/learn/syllabus-tree/syllabus-tree-component.js
coderplex/coderplex
import React from 'react'; import styled from 'react-emotion'; export default class TreeView extends React.PureComponent { constructor(props) { super(props); this.state = { collapsed: this.props.collapsed, }; } unitClick = (...args) => { this.setState({ collapsed: !this.state.collapsed });...
src/admin/components/table/index.js
ccetc/platform
import React from 'react' import { Link } from 'react-router' import $ from 'jquery' import _ from 'lodash' import Format from 'admin/utils/format' class Table extends React.Component { static contextTypes = { drawer: React.PropTypes.object, modal: React.PropTypes.object, history: React.PropTypes.object...
reaction/src/Todo.js
onespeed-workshops/the-vue-reaction
import React from 'react' import pt from 'prop-types' export const Todo = (props) => ( <div> { props.todo.value }{ ' ' } <button onClick={ (e) => { e.preventDefault() props.onDelete(props.todo.id) }}> [X] </button> </div> ) Todo.defaultProps = { todo: {}, onDelete() {} } Tod...
app/javascript/flavours/glitch/features/report/components/option.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Check from 'flavours/glitch/components/check'; export default class Option extends React.PureComponent { static propTypes = { name: PropTypes.string.isRequired, value: PropTypes.string.isRequired, ...
node_modules/react-router/es6/Lifecycle.js
jkahrs595/website
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
src/React/Widgets/TextInputWidget/example/index.js
Kitware/paraviewweb
import 'normalize.css'; import 'font-awesome/css/font-awesome.css'; import React from 'react'; import ReactDOM from 'react-dom'; import TextInputWidget from 'paraviewweb/src/React/Widgets/TextInputWidget'; const container = document.querySelector('.content'); const textValue = 'Some text example...'; document.body....
src/main/script/EntryForm.js
krujos/willitconnect
import { Form, FormGroup, ControlLabel, HelpBlock, Col, FormControl, Button, Checkbox, } from 'react-bootstrap'; import PropTypes from 'prop-types'; import React from 'react'; const isValid = (host, port) => { if (host) { if ((/^http[s]?:[/][/].+/).test(host) || port) { return true; } } return fals...
react-router-demos/routeDemos/active-links/app.js
Ge-yuan-jun/learn-React
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router'; const root = document.getElementById('app'); const Active = { color: 'red' }; const App = ({ children }) => ( <div> <h1>App!</h1> <ul> <li><Link to...
packages/@lyra/preview/src/components/PreviewSubscriber.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import WithVisibility from './WithVisibility' import ObserveForPreview from './ObserveForPreview' const HIDE_DELAY = 20 * 1000 export default class PreviewSubscriber extends React.Component { static propTypes = { type: PropTypes.object.isRequired, ...
src/Notification/Notification.driver.js
nirhart/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; const notificationDriverFactory = ({element, wrapper, component}) => { const notificationWrapperSelector = '[data-hook="notification-wrapper"]'; const labelTextSelector = '[data-hook="notification-lab...
src/components/CreateGearPage.js
tommydx/front2
import React, { Component } from 'react'; import axios from 'axios'; // import { browserHistory } from 'react-router'; import Nav from './Nav'; class CreateGearPage extends Component { constructor(props) { super(props); this.state = { name: "", item_category: "", item: "", manufactu...
docs/src/sections/FormInputGroupSection.js
apkiernan/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function FormInputGroupSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
modules/react-router-2.5.2/examples/auth-flow/app.js
nanyou-environment/enBackEnd
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link, withRouter } from 'react-router' import auth from './auth' const App = React.createClass({ getInitialState() { return { loggedIn: auth.loggedIn() } }, updateAuth(loggedIn) { this.setState...
addons/info/example/Button.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React from 'react'; const Button = ({ disabled, label, style, onClick }) => ( <button disabled={disabled} onClick={onClick}> {label} </button> ); Object.assign(Button, { displayName: 'Button', propTypes: { label: PropTypes.string.isRequired, style: PropTy...
docs/src/HomePage.js
yickli/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageFooter from './PageFooter'; import Grid from '../../src/Grid'; import Alert from '../../src/Alert'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; export default class HomePage extends React.Component{ render()...
html.js
eleacrockett/portfolio
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes () { return {...
app/bos/components/explorer/migration/Copy.js
mudio/bce-client
/** * Component - Copy Component * * @file Copy.js * @author mudio(job.mudio@gmail.com) */ import React from 'react'; import {Modal, Cascader, Form} from 'antd'; const FormItem = Form.Item; export default Form.create()(props => { const {visible, onCancel, onCopy, loadData, buckets, form} = props; const ...
Veronica/Waundr/src/events.js
promilo/Waundr
import React, { Component } from 'react'; import { Provider, connect } from 'react-redux'; import MapView from 'react-native-maps'; import { events } from './data'; import { createStore, applyMiddleware } from 'redux'; import { apiMiddleware, reducer } from './redux'; import { MKButton, MKColor } from 'react-native-m...
test/index.ios.js
nickcharles/react-native-invertible-flatlist
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, FlatList, StatusBar, Switch, } from 'react-native'; import { InvertibleFlatList } from 'react-native-invertible-flatlist'; expor...
test/test_helper.js
psongpin/Weather-App
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
docs-ui/components/repoLabel.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import RepoLabel from 'app/components/repoLabel'; export default { title: 'Core/Badges+Tags/RepoLabel', }; export const Default = withInfo('A badge to use for repo names')(() => { return <RepoLabel>prod</RepoLabel>; }); Default.story = {...
stories/examples/ProgressAnimated.js
reactstrap/reactstrap
import React from 'react'; import { Progress } from 'reactstrap'; const Example = (props) => { return ( <div> <Progress animated value={2 * 5} /> <Progress animated color="success" value="25" /> <Progress animated color="info" value={50} /> <Progress animated color="warning" value={75} />...
client/src/components/ErrorView.js
scandalouswool/rally
import React, { Component } from 'react'; class ErrorView extends Component { render() { return ( <div>404. The page you're looking for doesn't exist!</div> ); } } export default ErrorView;
src/components/UserDropdown/UserDropdown.js
george-vrancianu/coriolis-web
/* Copyright (C) 2017 Cloudbase Solutions SRL 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, or (at your option) any later version. This program is distribu...
app/js/components/char-display.js
mattiaslundberg/typer
import React from 'react' export default class CharDisplay extends React.Component { render() { return ( <span className={this.props.cssClass}>{this.props.char}</span> ) } }
packages/material-ui-icons/src/Mms.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z" /></g> , 'Mms');
src/components/IntroComponent.js
AzSiAz/LN-Reader
import React from 'react' import { StyleSheet, Text, View, TouchableHighlight } from 'react-native' import Swiper from 'react-native-swiper' import Icon from 'react-native-vector-icons/Ionicons' // TODO (Stef): To Improve export default class IntroComponent extends React.PureComponent { render() { const { hideIn...
app/javascript/mastodon/features/list_adder/index.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { injectIntl } from 'react-intl'; import { setupListAdder, resetListAdder } from '...