path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/view/Animate.js
nighthary/rn-cnodejs
import React, { Component } from 'react'; import { NativeModules, View, Text, StyleSheet, TouchableOpacity, LayoutAnimation } from 'react-native'; const { UIManager } = NativeModules; UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(true) class Home e...
stories/props/elementProps.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, momentLocalizer } from '../../src' import demoEvents from '../resources/events' import mdx from './elementProps.mdx' import '../resources/propGetter.scss' const mLocalizer = momentLocalizer(moment) export default { title: 'props', component:...
packages/material-ui-icons/src/NetworkCheck.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NetworkCheck = props => <SvgIcon {...props}> <path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5...
src/ex8/entry-list.js
bouzuya/exercise-in-react
import React from 'react'; import { EntryListItem } from './entry-list-item'; export class EntryList extends React.Component { constructor(props) { super(props); this.state = { openedEntryDate: null }; } onOpen(entry) { this.setState({ openedEntryDate: entry.date }); } onClose() { this.setS...
src/scenes/home/chapterLeader/chapterLeader.js
tal87/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; const chapterLeaders = () => ( <div> <Section title="Chapter Leaders" theme="white"> <div> <p>Operation Code is looking for volunteer Chapter Leaders to build local communities nationwide! Tell us more about yoursel...
admin/client/App/shared/Kbd.js
trentmillar/keystone
import React from 'react'; import { css } from 'glamor'; import theme from '../../theme'; import { darken, lighten } from '../../utils/color'; function Kbd ({ className, ...props }) { props.className = css(classes.kbd); return <kbd {...props} />; }; const classes = { kbd: { backgroundColor: theme.color.body, ...
src/index.prod.js
craigbilner/cgol-redux
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/root/root-component.prod'; ReactDOM.render( <Root />, document.getElementById('root') );
app/components/landing/Rates2/index.js
vkurzweg/aloha
/** * * Rates * */ import React from 'react'; // import styled from 'styled-components'; import { Card, CardActions, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import { Link } from 'react-router'; import Btn from 'components/landing/Btn'; import { Image }...
stories/index.js
tomkp/react-split-pane
import React from 'react'; import { storiesOf } from '@storybook/react'; import BasicHorizontal from './BasicHorizontal'; import BasicNested from './BasicNested'; import BasicStep from './BasicStep'; import BasicVertical from './BasicVertical'; import PercentageHorizontal from './PercentageHorizontal'; import Percenta...
app/components/team/Index.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { second } from 'metrick/duration'; import DocumentTitle from 'react-document-title'; import Button from '../shared/Button'; import Dropdown from '../shared/Dropdown'; import Icon from '../shared/Icon'; impor...
frontend/src/Components/Form/AutoCompleteInput.js
Radarr/Radarr
import jdu from 'jdu'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import AutoSuggestInput from './AutoSuggestInput'; class AutoCompleteInput extends Component { // // Lifecycle constructor(props, context) { super(props, context); this.state = { suggestions: [] ...
docs/app/Examples/collections/Grid/Variations/GridCenteredExample.js
jcarbo/stardust
import React from 'react' import { Image, Grid } from 'stardust' const { Column, Row } = Grid const image = <Image src='http://semantic-ui.com/images/wireframe/image.png' /> const GridCenteredExample = () => ( <Grid centered columns={2}> <Column>{image}</Column> <Row centered columns={4}> <Column>{im...
packages/mineral-ui-icons/src/IconFiberNew.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 IconFiberNew(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps...
src/components/Bio.js
anisiomarxjr/anisiomarxjr.github.io
import React from 'react' // Import typefaces import 'typeface-montserrat' import 'typeface-merriweather' import { rhythm } from '../utils/typography' class Bio extends React.Component { render() { return ( <div style={{ display: 'flex', marginBottom: rhythm(2.5), }} ...
client/components/SmartImage.js
axax/lunuc
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' class SmartImage extends React.Component { constructor(props) { super(props) this.state = SmartImage.getStateFromProps(props) } static getDerivedStateFromProps(nextProps, prevState) { if...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-layout-root-mixin.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import LayoutMixin from './layout-mixin.js'; export const RootMixin = { //@@viewOn:mixins mixins: [LayoutMixin], //@@viewOff:mixins //@@viewOn:statics statics: { layoutType: 'root', UU5_Layout_RootMixin: {} }, //@@viewOff:statics //@@viewOn:propTypes //@@viewOff:...
site/components/Link.js
romelperez/romelperez.com
import React from 'react'; import Router from 'next/router'; import { withStyles, withSounds } from 'arwes'; const isExtern = /^https?\:\/\//; const Link = props => { const { theme, classes, context, sounds, href, target, children, onLink, onClick, ...etc } = props; cons...
src/components/apphome.js
Rabbit884/reactapp
import React from 'react' import RaisedButton from 'material-ui/RaisedButton' export default class AppHome extends React.Component { post = () => { this.props.post({ display: this.props.home.display, square: this.props.card.square }); } render () { const style = { textAlign: 'cen...
components/MenuDrawer.js
DanFoad/Memento
import React, { Component } from 'react'; import { Text, View, TouchableHighlight, DrawerLayoutAndroid, } from 'react-native'; import styles from '../styles' export default class MenuDrawer extends Component { constructor(props) { super(props); this.semesters = props.semest...
views/Common/nwdSliderBar.js
leechuanjun/TLRNProjectTemplate
/** * Created by vczero on 15/7/12. */ import React, { Component } from 'react'; import { StyleSheet, Image, View, Text } from 'react-native'; import Swiper from 'react-native-swiper'; var sliderImgs = [ 'http://images3.c-ctrip.com/SBU/apph5/201505/16/app_home_ad16_640_128.png', 'http://imag...
index.android.js
8088/react-native-live-demo
import React from 'react'; import { AppRegistry, } from 'react-native'; import App from './app'; AppRegistry.registerComponent('TestLive', () => App);
src/containers/ItemPageTabsContainer/ItemPageTabsContainer.js
expdevelop/d812
import React from 'react' import { Redirect } from 'react-router-dom' import { ItemPageTabs, ItemPageDescription, ItemPageReviews, ItemPageParameters } from 'components' import { isEmpty } from 'helpers' const ItemPageTabsContainer = ({pathname, parameters, reviews, description}) => { const paramsIsEmpty = isEmp...
src/components/Map/AddLocation.js
Angular-Toast/habitat
import React, { Component } from 'react'; import { StyleSheet, Text, View, Animated, Image, Dimensions, TextInput } from "react-native"; import { GooglePlacesAutocomplete } from 'react-native-google-places-autocomplete'; import { StackNavigator, NavigationActions } from 'react-navigation'; import axios from 'axios'; ...
node_modules/react-navigation/src/views/withNavigation.js
jiangqizheng/ReactNative-BookProject
/* @flow */ import React from 'react'; import propTypes from 'prop-types'; import hoistStatics from 'hoist-non-react-statics'; import type { NavigationScreenProp, NavigationState, NavigationAction, } from '../TypeDefinition'; type Context = { navigation: NavigationScreenProp<NavigationState, NavigationAction...
packages/giu/src/components/dataTableRow.js
guigrpa/giu
// @flow /* eslint-disable no-console */ /* eslint-disable react/no-multi-comp */ import React from 'react'; import type { Element as ReactElement } from 'react'; import { merge } from 'timm'; import upperFirst from 'lodash/upperFirst'; import isFunction from 'lodash/isFunction'; import classnames from 'classnames'; i...
app/containers/LanguageProvider/index.js
Rohitbels/KolheshwariIndustries
/* * * 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...
index.js
cuonghuynhvan/react-native-camera-android-simple
/* eslint-disable class-methods-use-this */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { NativeModules, requireNativeComponent, View } from 'react-native'; const CameraModule = NativeModules.AndroidCameraModule; export default class Camera extends Component { capture(metao...
fields/types/location/LocationColumn.js
xyzteam2016/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'LocationColumn', propTypes: { co...
docs/components/Homepage/index.js
jribeiro/storybook
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import './style.css'; // import Header from '../Header'; import Heading from './Heading'; import Demo from './Demo'; // import Platforms from './Platforms'; import MainLinks from './MainLinks'; // import Featured from './F...
src/client.js
quasicrial/quasicrial
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom...
examples/transitions/app.js
natorojr/react-router
import React from 'react'; import { Router, Route, Link, History, Lifecycle } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard">Dashboard</Link></li> <li><Link to="/form">Form</Link></li> </ul> {this.props...
src/icons/BrightnessAutoIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class BrightnessAutoIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M21.7 25.3h4.6L24 18l-2.3 7.3zM40 17.37V8h-9.37L24 1.37 17.37 8H8v9.37L1.37 24 8 30.63V40h9.37L24 4...
src/views/HomeView.js
matteoantoci/expense-tracker
import React from 'react'; import { connect } from 'react-redux'; import { actions as sheetsActions } from '../redux/modules/sheets'; // import styles from './HomeView.scss'; import SheetsList from '../components/SheetsList'; // We define mapStateToProps where we'd normally use // the @connect decorator so the data re...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
qwales1/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; const moreIndicatorStyle =...
src/modules/_global/ProgressBar.js
JuneDomingo/movieapp
import React from 'react'; import { View, ActivityIndicator, StyleSheet, Platform } from 'react-native'; const ProgressBar = () => ( <View style={styles.progressBar}> <ActivityIndicator size="large" color={Platform.OS === "ios" ? "white" : "#EA0000"} /> </View> ); const styles = StyleSheet.create({ progressB...
components/dialog/lazyRenderBox.js
TDFE/td-ui
import React from 'react'; export default class LazyRenderBox extends React.Component { shouldComponentUpdate(nextProps) { return !!nextProps.hiddenClassName || !!nextProps.visible; } render() { let className = this.props.className; if (!!this.props.hiddenClassName && !this.props.visible) { cla...
examples/reused_components/src/containers/page/Layout.js
MrEfrem/redux-fly
//@flow import React from 'react' import LeftFrame from './LeftFrame' import RightFrame from './RightFrame' import Footer from './Footer' const style = { leftFrame: { position: 'absolute', width: '50%', height: '80%', borderRight: '1px solid black', textAlign: 'center' }, rightFrame: { po...
examples/input/components/App.js
chentsulin/sweetalert-react
import React, { Component } from 'react'; import SweetAlert from 'sweetalert-react'; // eslint-disable-line import/no-extraneous-dependencies import 'sweetalert/dist/sweetalert.css'; class App extends Component { constructor(props, context) { super(props, context); this.state = { show: false, }; ...
packages/react-ui-core/src/SmoothScrollGalleryWrapper/SmoothScrollGalleryWrapper.js
rentpath/react-ui
import React from 'react' import PropTypes from 'prop-types' import LazyLoad from 'react-lazyload' const SmoothScrollGalleryWrapper = ({ lazyLoadProps, children }) => ( lazyLoadProps ? ( <LazyLoad {...lazyLoadProps}> {children} </LazyLoad> ) : children ) SmoothScrollGalleryWrapper.pr...
app/src/components/Card.js
DaveGee/words
import './Card.css' import React from 'react' import { connect } from 'react-redux' import { withState } from 'recompose' import Types from 'prop-types' import { setSucceeded, setFailed } from '../actions' import { TiThumbsUp, TiThumbsDown, TiArrowRepeat } from 'react-icons/lib/ti' const GUESS = 'guess', RESULT = 'res...
src/svg-icons/action/info.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInfo = (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-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo = pure(ActionInfo); ActionI...
app/components/Editor/index.js
Zurico/t7
// MIT: FormidableLabs/component-playground import React from 'react'; import ReactDOM from 'react-dom'; import CodeMirror from 'codemirror'; import CodeMirrorMarkSelection from 'codemirror/addon/selection/mark-selection'; import CodeMirrorActiveLine from 'codemirror/addon/selection/active-line'; import 'codemirror/lib...
packages/reactor-conference-app/src/schedule/Schedule.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { toggleSearch, filterByDay, toggleFavorite, filterByFavorites } from './actions'; import { setTitle } from '../actions'; import { loadEvent } from '../event/actions'; import { Container, Button, TabPanel, Panel, Toolbar, SearchFi...
src/muiThemeable.js
2947721120/material-ui
import React from 'react'; import DefaultRawTheme from './styles/raw-themes/light-raw-theme'; import ThemeManager from './styles/theme-manager'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component'; } export default function muiThemeable(WrappedComp...
resources/src/js/components/Containers/CoverArtist.js
aberon10/thermomusic.com
'use strict'; // Dependencies import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; // Config import Config from '../../config'; import { substr } from '../../components/utils'; class CoverArtist extends React.Component { constructor(props) { super(props); } r...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
alessandrostone/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
src/components/matchPanel/matchSalePanelView.js
gordongordon/hom
import React from 'react' import { NoticeBar,List , Card, Stepper, Icon, Picker, SwipeAction, DatePicker, Badge, Flex, InputItem, WhiteSpace, Button, SegmentedControl} from 'antd-mobile'; //import { createForm } from 'rc-form'; // import moment from 'moment'; // import 'moment/locale/zh-cn'; import {propertys} from 'u...
src/common/TopicFunsBlock/index.js
Mrlyjoutlook/cnode-native
import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, TouchableOpacity } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; const styles = StyleSheet.create({ funsBlock: { height: 56, borderTopColor: '#DCDCDC', borderTopWidth: StyleSheet.hairlineWidth,...
stories/components/label/index.js
OperationCode/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Label from 'shared/components/label/label'; storiesOf('shared/components/label', module) .add('Default', () => ( <div style={{ marginTop: '12px', display: 'flex', flexDirection: 'row', justifyCo...
node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js
joekay/awebb
import React, { Component } from 'react'; export default class AppRoot extends Component { // we can't use `connect` in this component, so must do naiively: constructor(props) { super(props); this.state = { }; } render() { return ( <div> <h1>This is just an empty demo</h1> ...
src/components/video-list-item.js
ThatCrazyIrishGuy/youtube-react
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.medium.url; const videoTitle = video.snippet.title; const channelTitle = video.snippet.channelTitle; return ( <div onClick={() => onVideoSelect(video)} className="card hori...
src/svg-icons/hardware/speaker.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeaker = (props) => ( <SvgIcon {...props}> <path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c...
src/components/NicetyDisplay.js
mjec/rc-niceties
import React from 'react'; import { Grid } from 'react-bootstrap'; import NicetyRow from './NicetyRow'; const generateRows = (input) => { let dataList = []; for (let i = 0; i < input.length; i +=4) { let row = []; for (let j = 0; j < 4; j++) { if ((i + j) < input.length) { ...
app/javascript/mastodon/features/followers/index.js
abcang/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
www/src/components/layout.js
niklasvh/html2canvas
import React from 'react'; import Helmet from 'react-helmet'; import './layout.css'; import Example from '../components/example'; require('prismjs/themes/prism-solarizedlight.css'); const TemplateWrapper = ({children}) => <div> <Helmet title="html2canvas - Screenshots with JavaScript" /> {children}...
src/modules/header/index.js
pborrego/demo-cep-base
import React from 'react'; import { Link } from 'react-router-dom'; import { AppBar } from '@coredev/cnn-react-material/build/app_bar'; import styles from './styles.css'; const Header = () => ( <AppBar flat leftIcon={<Link to="/" className={styles.brand} />} theme={styles} title="CNN React Material Demo" /> ); ...
blueprints/form/files/__root__/forms/__name__Form.js
bingomanatee/ridecell
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
src/js/components/Menu/stories/BottomControlButton.js
HewlettPackard/grommet
import React from 'react'; import { Box, Menu } from 'grommet'; const ControlBottomMenu = () => ( <Box height="medium" justify="center" align="center" pad="large"> <Menu dropProps={{ align: { bottom: 'bottom', left: 'left' } }} label="actions" items={[ { label: 'Profile', onClick: () =...
src/components/CTA/CTA.js
ghoshnirmalya/node-edge-ui-using-react
import React, { Component } from 'react'; import './CTA.css'; export default class CTA extends Component { static propTypes = { name: React.PropTypes.string, href: React.PropTypes.string }; static defaultProps = { href: "#/" }; render() { return ( <a href={this.props.href} className="...
src/js/components/Pua/components/Audio.js
FlexingDream/start_screen
import {Entity} from 'aframe-react'; import React from 'react'; import _ from 'underscore'; import $ from 'jquery'; class Audio extends React.Component{ static defaultProps = { fastFourierTransform: 2048, audioSrc : {default: ''}, heights: '', refreshRate: 50, frequencySize: {default: 10...
client/src/admin/assignments/ConfigUpload.js
ziel5122/autograde
import ContentCreate from 'material-ui/svg-icons/content/create'; import React from 'react'; const reader = new FileReader(); const handleInputChange = ({ target }) => { reader.readAsText(target.files[0]); }; reader.onload = ({ target }) => { const configJson = JSON.parse(target.result); fetch('http://localhos...
client/scripts/components/read-only-attachment-summary/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. 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 Lic...
stories/components/form/formEmail/index.js
tskuse/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormEmail from 'shared/components/form/formEmail/formEmail'; storiesOf('shared/components/form/formEmail', module) .add('Default', () => ( <FormEmail onChange={action('Change...
src/components/footer.js
gt-webdev/gt-webdev.github.io
import React from 'react'; import {Link} from 'react-router' class Footer extends React.Component { render() { return ( <div> <footer id="footer"> <div className="container"> <a href="https://www.facebook.com/GtWebdev/"><i className="fa fa-facebook"></i></a> <a hre...
app/containers/NotFoundPage/index.js
oliv37/vocab-front
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
entry_types/scrolled/package/src/widgets/defaultNavigation/stories.js
tf/pageflow
import React from 'react'; import {storiesOf} from '@storybook/react'; import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; import {normalizeAndMergeFixture} from 'pageflow-scrolled/spec/support/stories'; import '../../widgets/defaultNavigation'; import {Entry, RootProviders} from 'pageflow-scrolled/frontend...
src/svg-icons/action/build.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBuild = (props) => ( <SvgIcon {...props}> <path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-...
components/BreadcrumbItem.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import Link from './Link'; const propTypes = { children: PropTypes.node, className: PropTypes.string, href: PropTypes.string, }; const BreadcrumbItem = ({ children, className, href, ...other }) => { const class...
src/components/Leaderboard.js
tomgowans/365beers
import React, { Component } from 'react'; // import { Link } from 'react-router'; class LeaderboardUser extends Component { render () { return ( <li>{this.props.name} / {this.props.link}</li> ) } } class Leaderboard extends Component { render () { // TODO: Return list of registered users' nam...
src/svg-icons/image/exposure-plus-1.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus1 = (props) => ( <SvgIcon {...props}> <path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/> </SvgIcon> ); ImageExposurePlus1 = pure(ImageExposurePlus1); ImageEx...
src/shared/FormElements.js
VasilyShelkov/ClientRelationshipManagerUI
import React, { Component } from 'react'; import Cookies from 'js-cookie'; import { TextField } from '@material-ui/core'; import { TextField as ReduxFormTextField } from 'redux-form-material-ui'; import places from 'places.js'; import { red600 } from 'material-ui/styles/colors'; import ErrorIcon from 'material-ui/svg-...
js/jqwidgets/demos/react/app/dropdownlist/keyboardnavigation/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownList.focus(); } render() { let source = [ { value: 'AF', l...
src/stack/BoardSquare.js
IACJ/react-datastructer
import React, { Component } from 'react'; import { DropTarget } from 'react-dnd'; import ItemTypes from './ItemTypes'; import {getDataStructer } from './Control'; const squareTarget = { canDrop(props, monitor) { if(monitor.getItem().position==="WaitingArea"&&props.position==="MainArea" &&props.id =...
src/utils/prop-types.js
staticinstance/material-ui
import React from 'react'; const horizontal = React.PropTypes.oneOf(['left', 'middle', 'right']); const vertical = React.PropTypes.oneOf(['top', 'center', 'bottom']); export default { corners: React.PropTypes.oneOf([ 'bottom-left', 'bottom-right', 'top-left', 'top-right', ]), horizontal: horiz...
examples/flux-utils-todomvc/js/app.js
knrm/flux
/** * Copyright (c) 2014, 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. * * @flow */ 'use s...
client/src/client-app.js
BrackCurly/schaudepot
import React, { Component } from 'react'; import { Slider } from './slider'; export class ClientApp extends Component { constructor () { super(); this.state = {slides: [ { template: '<h1><%= title %></h1>', data: {title: 'slide1'} }, { template: '<h1><%= title %></h1...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
sauceSquatch/we_are_razorfish_experience
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/Router.js
jubianchi/semver-check
import { Component } from 'react'; import connect from 'react-redux/es/connect/connect'; import { constraint, version } from '../actions'; import { Route, Switch } from 'react-router-dom'; import React from 'react'; class Router extends Component { updateHistory() { const { constraint: stateConstraint, ver...
node_modules/react-router/es/IndexLink.js
acalabano/get-committed
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import createReactClass from 'crea...
src/containers/MainContainer.js
orballo/orballo.github.io
import React, { Component } from 'react'; import Main from '../components/Main'; import Nav from '../components/Nav'; import HomeContainer from '../containers/HomeContainer'; import SkillsContainer from '../containers/SkillsContainer'; import ReviewsContainer from '../containers/ReviewsContainer'; import ProjectsContai...
src/pages/chart/ECharts/MainPageComponent.js
zuiidea/antd-admin
import React from 'react' import AdSense from 'react-adsense' import { Link } from 'umi' import DynamicChartComponent from './DynamicChartComponent.js' const MainPageComponent = () => { return ( <div> <h1> echarts-for-react {this.props.params.type} </h1> <h3> {' '} A very simple echar...
examples/samples/swiper.js
andreaValenzi/react-native-swiper
import React from 'react' import { StyleSheet, Text, View, Image } from 'react-native' import Swiper from '../swiper.dist' const styles = StyleSheet.create({ wrapper: { }, slide: { flex: 1, justifyContent: 'center', backgroundColor: 'transparent' }, slide1: { flex: 1, justifyContent: 'c...
examples/Events/index.js
AlexMayants/react-jsx-highcharts
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
client/src/components/interestRateInput.js
BukhariH/finimizeChallenge
import React, { Component } from 'react'; import 'bootstrap/dist/css/bootstrap.css'; import PropTypes from 'prop-types'; class InterestRateInput extends Component { render() { return ( <div> <div className="form-group"> <label className="col-md-4 control-label">Interest Rate</label> ...
src/@ui/inputs/Switch/index.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { compose, pure } from 'recompose'; import { Platform, Switch, View } from 'react-native'; import { withTheme } from '@ui/theme'; import FlexedView from '@ui/FlexedView'; import styled from '@ui/styled'; import Touchable from '@ui/Touchable'; import ...
pages/404.js
anvilabs/anvilabs.co
/* @flow */ import {Link} from 'react-router'; import React from 'react'; import { Main, PageFooter, PageHeader, PageHelmet, Separator, StickyNavigation, } from '../components'; const NotFoundPage = (): React$Element<any> => ( <Main> <PageHelmet title="404 – Страница не найдена | Anvilabs" ...
client/app/components/ContentEditor/customPlugins/toolbar-plugin/components/toolbar.js
bryanph/Geist
import React, { Component } from 'react'; import PropTypes from 'prop-types' export default class Toolbar extends Component { static contextTypes = { toolbarTheme: PropTypes.object } static defaultProps = { components: [], }; // PreventDefault helper to swallow clicks on toolbar t...
app/index.js
oeb25/colio
import React from 'react'; import App from './containers/App'; import 'whatwg-fetch'; import 'array.from'; import './main.sass'; React.render(<App />, document.getElementById('root'));
src/index.js
SpencerTorres/react-route-props
import React from 'react' import { Route } from 'react-router-dom' const renderWithProps = (component, ...passProps) => { const combinedProps = Object.assign({}, ...passProps) return React.createElement(component, combinedProps) } const RouteProps = ({ component, ...passProps }) => { return ( <Route {...pas...
examples/src/components/MultiSelectField.js
lemming/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var MultiSelectField = React.createClass({ displayName: 'MultiSelectField', propTypes: { label: React.PropTypes.string, ...
client/apps/web/components/organisms/Header/index.js
defe266/keystone-starter
import React from 'react'//, { PropTypes } import { Link, IndexLink } from 'react-router' import Icon from 'client/components/atoms/Icon'; import Menu from '../../molecules/Menu'; import LangSelector from '../../molecules/LangSelector'; //import './img/logo.svg' //if(typeof window !== 'undefined') var URL_logo = re...
client/src/routes.js
mukeshrawat02/react-redux-login-flow
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import NotFoundPage from './components/NotFound'; import HomePage from './components/Home'; import SigninPage from './components/Signin'; import SignoutPage from './components/Signout'; import SignupPage f...
addons/themes/aerial/layouts/Blog.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; import NavPanel from '../includes/NavPanel'; let Blog = React.createClass({ component...
web/src/components/NotFound.js
jaemk/transfer
import React from 'react'; const NotFound = () => { return ( <div> Not Found </div> ); }; export default NotFound;
react/features/overlay/components/web/SlowGUMOverlay.js
jitsi/jitsi-meet
// @flow import Spinner from '@atlaskit/spinner'; import React from 'react'; import { translate } from '../../../base/i18n'; import AbstractSlowGUMOverlay from './AbstractSlowGUMOverlay'; import OverlayFrame from './OverlayFrame'; /** * Implements a React {@link Component} for slow gUM overlay. Shown when * a slow...
src/main/jsx/client/BuildHistoryPageActions.js
bschmeck/DotCi
import ReactDOM from 'react-dom'; import React from 'react'; import BuildHistoryPage from './../pages/BuildHistoryPage.jsx'; import {job} from './../api/Api.jsx'; import {removeFilter,addFilter} from './../api/Api.jsx'; import Drawer from './../Drawer.jsx'; import {Job as AutoRefreshComponent} from './../components/...
src/parser/rogue/outlaw/CONFIG.js
sMteX/WoWAnalyzer
import React from 'react'; import { tsabo, Coywolf } from 'CONTRIBUTORS'; import retryingPromise from 'common/retryingPromise'; import SPECS from 'game/SPECS'; import Warning from 'interface/common/Alert/Warning'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spe...
components/Todo.js
tim-speed/manifold-todo
import React from 'react' import PropTypes from 'prop-types' const Todo = ({ onClick, onRemoveClick, completed, text }) => ( <li className={completed ? 'todo complete' : 'todo'} > <span onClick={onClick}>{text}</span> <a href='javascript:void(0)' onClick={onRemoveClick}>x</a> <style jsx>{` .t...
mla_game/front-end/javascript/components/partials/game_two_phrase.js
WGBH/FixIt
import React from 'react' import classNames from 'classnames' class Phrase extends React.Component{ constructor(){ super() this.savePhrase = this.savePhrase.bind(this) this.notError = this.notError.bind(this) this.cancel = this.cancel.bind(this) this.getEndOfContext = this.getEndOfContext.bind(th...
app/components/Assessments/Assessments.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Assessment, EditAssessment } from '../../containers/Assessments'; import { Confirm } from '../../containers/Modal'; import { Loading, Message } from '../common'; import { checkPermissions } from '../../checkPermissions'; const AssessmentTable = (...