path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/ProjectRankTable/index.js
hamzasurti/tenx-hackday-restart
/** * * ProjectRankTable * */ import React from 'react'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import { Table, TableBody, TableHeader, TableHeaderColumn, Tabl...
client/src/components/shared/Icons/Facebook.js
FreeCodeCampBA/freecodecampba.github.io
import React from 'react' const FacebookIcon = props => ( <svg viewBox="0 0 24 24" {...props}> <title>{'Facebook icon'}</title> <path d="M22.676 0H1.324C.593 0 0 .593 0 1.324v21.352C0 23.408.593 24 1.324 24h11.494v-9.294H9.689v-3.621h3.129V8.41c0-3.099 1.894-4.785 4.659-4.785 1.325 0 2.464.097 2.796.141v3.24...
fields/types/markdown/MarkdownColumn.js
ONode/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
definitions/npm/react-intl_v2.x.x/flow_v0.23.x-v0.52.x/react-intl_v2.x.x.js
gaborsar/flow-typed
/** * Original implementation of this file by @marudor at https://github.com/marudor/flowInterfaces * Copied here based on intention to merge with flow-typed expressed here: * https://github.com/marudor/flowInterfaces/issues/6 */ import React from 'react'; // Mostly from https://github.com/yahoo/react-intl/wiki/AP...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
TryKickoff/create-kickoff-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(users) { return [ { id: 1, name: '1' ...
src/components/Footer/index.js
calpa/blog
import React from 'react'; import ExternalLink from '../ExternalLink'; import { config } from '../../../data'; import './index.scss'; const Footer = () => ( <footer className="footer"> <div className="container"> <div className="row"> <div className="col-sm-12 text-center"> <p className...
src/svg-icons/maps/local-florist.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalFlorist = (props) => ( <SvgIcon {...props}> <path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2....
tripwreck_mobile/src/components/common/Card.js
CupNCup/tripwreck
import React from 'react'; import { View } from 'react-native'; const Card = (props) => ( <View style={styles.containerStyle}> {props.children} </View> ); const styles = { containerStyle: { borderWidth: 1, borderRadius: 2, borderColor: '#ddd', borderBottomWidth: 0, shadowColor: '#000', ...
node_modules/antd/es/pagination/Pagination.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/views/Components/Modals/Modals.js
Cruis-R/GestionOutil
import React, { Component } from 'react'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; class Modals extends Component { constructor(props) { super(props); this.state = { modal: false, large: false, small: false, primary: false, success: fals...
src/Card.js
cameronbourke/react-cardstack
import React from 'react'; class Card extends React.Component { constructor (props) { super(props); this.state = { hover: false }; this.handleMouseEnter = this.handleMouseEnter.bind(this); this.handleMouseLeave = this.handleMouseLeave.bind(this); } handleMouseEnter () { this.setState({ hover: true }); ...
src/parser/druid/guardian/modules/spells/Thrash.js
fyruna/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/...
src/components/TabHeader.js
RamonGebben/react-perf-tool
import React from 'react'; import titleize from '../utils/titleize'; export default function TabHeader(props) { return (<div className={`tab-header ${props.isActive ? 'active' : ''} ${props.align}`} onClick={props.onClick}> {titleize(props.title)} </div>); }
src/components/Section/Section.react.js
HackCWRU/HackCWRU-Website
import PropTypes from 'prop-types'; import React from 'react'; import styles from 'components/Section/Section.scss'; import { Element } from 'react-scroll' export default class Section extends React.Component { render() { return ( <div className={styles.section}> <Element name={this.props.scrollId}...
src/parser/druid/guardian/modules/spells/Pulverize.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS';...
moto/index.android.js
ijoosong/moto.host
'use strict'; import React from 'react'; import axios from 'axios'; import { AppRegistry, Component, Dimensions, StyleSheet, Text, TouchableOpacity, View, StatusBar, Image } from 'react-native'; import Camera from 'react-native-camera'; import watson from 'watson-developer-cloud'; import fs from 'fs';...
src/svg-icons/av/fast-forward.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastForward = (props) => ( <SvgIcon {...props}> <path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/> </SvgIcon> ); AvFastForward = pure(AvFastForward); AvFastForward.displayName = 'AvFastForward'; AvFastForw...
src/common/components/Match.js
chad099/react-native-boilerplate
// @flow import type { State } from '../../common/types'; import React from 'react'; import { Match as ReactRouterMatch, Redirect } from 'react-router'; import { connect } from 'react-redux'; const haveAccess = (viewer, authorized) => authorized ? viewer : true; const Match = ( { authorized, component: Comp...
react-flux-mui/js/material-ui/src/svg-icons/action/watch-later.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
app/javascript/mastodon/features/compose/components/poll_button.js
h3zjp/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' }, remove_poll: { id: 'poll_button...
client/app/libs/testHelper.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai from 'chai'; import chaiImmutable from 'chai-immutable'; const doc = jsdom.jsdom('<!doctype html><html><body></body></html>'); const win = doc.defaul...
web/components/pages/Dashboard/Stats/index.fixture.js
skidding/flatris
// @flow import React from 'react'; import { StateMock } from '@react-mock/state'; import Stats from '.'; const statsDiff = { actionAcc: [211, Date.now() + 1001], actionLeft: [155, Date.now() + 1002], actionRight: [167, Date.now() + 1003], actionRotate: [123, Date.now() + 1004], games: [3, Date.now() + 1005...
app/javascript/mastodon/components/icon_with_badge.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; const formatNumber = num => num > 40 ? '40+' : num; const IconWithBadge = ({ id, count, issueBadge, className }) => ( <i className='icon-with-badge'> <Icon id={id} fixedWidth className={className} /> ...
webapp/src/App.js
peaonunes/intro-docker-examples
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { constructor(props) { super(props) this.state = { id: '', name: '' } } componentDidMount() { fetch('http://localhost:8080/lessons/1', { method: 'get' }...
src/svg-icons/device/screen-lock-landscape.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockLandscape = (props) => ( <SvgIcon {...props}> <path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c...
src/components/common/radio/Radio.js
TulevaEE/onboarding-client
import React from 'react'; import { PropTypes as Types } from 'prop-types'; import './Radio.scss'; const Radio = ({ children, onSelect, selected, name, className, id }) => ( <label className={`tv-radio p-4 mb-0 px-col ${selected ? 'tv-radio--selected' : ''} ${className}`} htmlFor={id} > <div className...
src/index.js
tscok/home
import React from 'react'; import { render } from 'react-dom'; import { Site } from './site/components'; import './index.less'; render( <Site />, document.getElementById('site') );
src/icons/FilterBAndWIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FilterBAndWIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zm0 32L24 22...
actor-apps/app-web/src/app/components/SidebarSection.react.js
cnbin/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
src/js/components/questions/RegisterQuestionsFinishedPopup.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; import translate from '../../i18n/Translate'; import FullWidthButton from '../ui/FullWidthButton'; @translate('RegisterQuestionsFinishedPopup') export default class Register...
src/svg-icons/action/assignment-late.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignmentLate = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0...
test/helpers/shallowRenderHelper.js
leihuiqing/react-img
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/routes/Home/components/HomeView.js
jhardin293/style-guide-manager
import React from 'react' import './HomeView.scss' import { connect } from 'react-redux' import { addProject } from '../modules/actions' // import ProjectList from './ProjectList' import VisibleProjects from '../containers/VisibleProjects' let HomeView = ({ dispatch }) => { let input return ( <div> <form...
app/pages/NotFoundPage.js
antoligy/healthbeacon
import React from 'react'; import DocumentTitle from 'react-document-title'; import { Link } from 'react-router'; class NotFoundPage extends React.Component { render = () => ( <div> <DocumentTitle title='Page not found - Healthbeacon' /> <span>Sorry, this page is not available.</span> <Link to...
src/widgets/DataTable/CheckableCell.js
sussol/mobile
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet } from 'react-native'; import TouchableCell from './TouchableCell'; /** * Renders a cell with an icon, supports touchable interaction and disabling * * @param {string|number} rowKey Uniq...
src/components/Feedback/Feedback.js
keshavnandan/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
src/components/InterviewQuestions/List-original.js
jmichelin/interview-frontend
/** * Created by jmichelin on 12/28/16. * TODO Fetch and display questions */ import React from 'react'; import { Accordion, Panel } from 'react-bootstrap' class InterviewQuestionList extends React.Component { constructor () { super(); this.state = { interviewQuestionList: [] } } componentW...
src/Drawer/navigationItem.js
kradio3/react-mdc-web
import React from 'react'; import classnames from 'classnames'; import detail from '../List/detail'; const navigationItem = (component, isTemporary) => { const { className, selected, children, } = component.props; const classes = classnames('mdc-list-item', { 'mdc-permanent-drawer--select...
fields/components/CollapsedFieldLabel.js
snowkeeper/keystone
import React from 'react'; import { Button } from 'elemental'; // NOTE marginBottom of 1px stops things jumping around // TODO find out why this is necessary function CollapsedFieldLabel ({ style, ...props }) { const __style__ = { marginBottom: 1, paddingLeft: 0, paddingRight: 0, ...style, }; return ( <...
frontend/src/components/Form/index.js
XiaocongDong/mongodb-backup-manager
import React, { Component } from 'react'; export default class Form extends Component { render() { const { title, items, buttons, error, className, showHistory } = this.props; return ( <div className={"form " + (className? className: "")}> { title ...
src/components/header/fileMenu.js
abbr/ShowPreper
import React from 'react' import { langs } from 'i18n/lang' import Downloader from 'components/file/download' import Uploader from 'components/file/upload' import FileOpener from 'components/file/open' import FileCreate from 'components/file/create' import About from 'components/file/about' import Logo from './logo.svg...
src/svg-icons/image/tag-faces.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTagFaces = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c....
public/js/components/admin/login.react.js
TRomesh/Coupley
/** * Created by Isuru 1 on 24/01/2016. */ import React from 'react'; import Avatar from 'material-ui/lib/avatar'; import Card from 'material-ui/lib/card/card'; import CardActions from 'material-ui/lib/card/card-actions'; import CardHeader from 'material-ui/lib/card/card-header'; import CardMedia from 'material-ui/li...
react-components/src/library/components/icons/delete-icon.js
concord-consortium/rigse
import React from 'react' import css from './style.scss' // NOTE: this uses a transparent svg image with a background url sized to show the delete icon export default class DeleteIcon extends React.Component { render () { const { title, disabled } = this.props const className = disabled ? css.deleteDisabled...
docs/src/examples/addons/Radio/States/RadioExampleDisabled.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Form, Radio } from 'semantic-ui-react' const RadioExampleDisabled = () => ( <Form> <Form.Field> <Radio label='Disabled' disabled /> </Form.Field> <Form.Field> <Radio toggle label='Disabled' disabled /> </Form.Field> </Form> ) export default RadioExamp...
docs/app/Examples/elements/Divider/Types/DividerExampleHorizontal.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment, Button, Divider } from 'semantic-ui-react' const DividerExampleHorizontal = () => ( <Segment padded> <Button primary fluid>Login</Button> <Divider horizontal>Or</Divider> <Button secondary fluid>Sign Up Now</Button> </Segment> ) export default DividerExample...
navigation/RootNavigation.js
flyerq/movie-list
import React from 'react'; import { StyleSheet, View, Text } from 'react-native'; import { Notifications } from 'expo'; import { StackNavigation, TabNavigation, TabNavigationItem, } from '@expo/ex-navigation'; import { Ionicons } from '@expo/vector-icons'; import Alerts from '../constants/Alerts'; import Colors f...
webpack/routes/OvalContents/OvalContentsShow/index.js
theforeman/foreman_openscap
import React from 'react'; import PropTypes from 'prop-types'; import { useQuery } from '@apollo/client'; import { translate as __ } from 'foremanReact/common/I18n'; import OvalContentsShow from './OvalContentsShow'; import { encodeId } from '../../../helpers/globalIdHelper'; import ovalContent from '../../../graphq...
fixtures/dom/src/components/FixtureSet.js
pyitphyoaung/react
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { title: PropTypes.node.isRequired, description: PropTypes.node.isRequired, }; class FixtureSet extends React.Component { render() { const {title, description, children} = this.props; return ( <div> <h1>{titl...
packages/reactor-kitchensink/src/examples/Transition/Transition.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Transition, Spacer, Panel, Button, Menu, MenuItem, NumberField, Label, Container, SliderField } from '@extjs/ext-react'; import colors from '../colors'; export default class TransitionExample extends Component { state = { index: 1, type: 'slide', ...
src/js/components/Stat.js
bcongdon/gdq-stats
import React from 'react' import { PropTypes } from 'prop-types' import Odometer from 'react-odometerjs' import Col from 'react-bootstrap/lib/Col' export default class Stat extends React.PureComponent { static propTypes = { title: PropTypes.string.isRequired, value: PropTypes.any.isRequired, emoji: PropT...
static/src/components/islands/IslandPond.js
taylorsmcclure/airhornbot-dev
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { paused: boolean }; export default ({paused}: Props): React.Element => ( <svg className={`island pond ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259" height="251"> <g fill="none" fill-rule="evenodd"...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/timer-10.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageTimer10 = (props) => ( <SvgIcon {...props}> <path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-.16-.55-.25-.14-.09-.23-.19-.28-....
lib/FilterGroups/FilterGroups.js
folio-org/stripes-components
import kebabCase from 'lodash/kebabCase'; import React from 'react'; import PropTypes from 'prop-types'; import FilterControlGroup from '../FilterControlGroup'; import css from './FilterGroups.css'; import { AccordionSet, Accordion, FilterAccordionHeader, } from '../Accordion'; import Checkbox from '../Checkbox'...
templates/full/javascript/src/client/app/view/NameLoaderView.js
peterjuras/slush-azure-node
import React from 'react'; // View that displays a button to call the server const NameLoaderView = props => ( <div> <h1>{props.staticName}</h1> <p>Hello {props.staticName}</p> <input type="button" value="Get app name" onClick={props.handleClick} /> <p>{props.appName}</p> </div> ); export default ...
src/components/refunds/refunds-list.js
Xabadu/VendOS
import React, { Component } from 'react'; import { browserHistory, Link } from 'react-router'; import { connect } from 'react-redux'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { getRefundsFullList, deleteRefund, markRefund } from '../../actions/refunds'; class RefundsList extend...
node_modules/react-dropzone/src/index.js
mohammed52/something.pk
/* eslint prefer-template: 0 */ import React from 'react' import PropTypes from 'prop-types' import accepts from 'attr-accept' import getDataTransferItems from './getDataTransferItems' const supportMultiple = typeof document !== 'undefined' && document && document.createElement ? 'multiple' in document.createElemen...
Hebrides/SmartHome/Me/MeCell.js
HarrisLee/React-Native-Express
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, View, Text, Image, TouchableHighlight, PixelRatio } from 'react-native'; import HeaderView from './HeaderCell.js'; import MeItemCell from './Me...
src/Dialog/DialogContent.js
Paratron/modoJS
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { children: PropTypes.node, }; const defaultProps = { children: null, }; export default class DialogContent extends React.Component { render() { const classNames = ['mdo-dialog-content']; const children = this.props.children; ...
app/demos/D3Ticks.js
chunghe/React-Native-Stock-Chart
import React, { Component } from 'react'; import { Image, Dimensions, ScrollView, StyleSheet } from 'react-native'; import T from '../components/T'; import Code from '../components/Code'; import Svg, { Rect, G, Path, Text } from 'react-native-svg'; import data from '../data'; import * as d3Shape from 'd3-shape'; imp...
docs/app/Examples/views/Comment/Content/CommentExampleReplyForm.js
clemensw/stardust
import React from 'react' import { Button, Comment, Form } from 'semantic-ui-react' const CommentExampleReplyForm = () => ( <Comment.Group> <Comment> <Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/steve.jpg' /> <Comment.Content> <Comment.Author as='a'>Steve Jobes</Comm...
src/components/auth/signin.js
ercekal/client-side-auth-react
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import * as actions from '../../actions'; class Signin extends Component { handleFormSubmit({ email, password }) { this.props.signinUser({ email, password }); } renderAlert() { if (this.props.errorMessage) { return (...
src/js/components/Label.js
linde12/grommet
// (C) Copyright 2014-2016 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 { announce } from '../utils/Announcer'; const CLASS_ROOT = CSSClassnames.LA...
src/components/User/User.js
hschueh/DeepTourGo
import React from 'react'; const User = () => ( <div>User</div> ); export default User;
src/components/common/Fields.js
OKNoah/slipstream
import React from 'react' import PropTypes from 'prop-types' import Select from 'react-select' import 'react-select/dist/react-select.css' import classes from './Fields.scss' const commonProps = { input: PropTypes.object, label: PropTypes.string, type: PropTypes.string, id: PropTypes.string, meta: PropType...
pages/index.js
kepatopoc/gatsby-starter-clean
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' export default class Index extends React.Component { render () { return ( <div> <Helmet title={config.sit...
src/tabsets/notifs/TabsetsItemNotifs.js
dash-/netjumpio-tabs-web
/// // Dependencies /// import React, { Component } from 'react'; import ItemPanelNotifications from '../../elements/ItemPanelNotifications'; import GetItemFailNotif from './GetItemFailNotif'; import RemoveTabDoneNotif from '../../tabs/notifs/RemoveItemDoneNotif'; import RemoveTabFailNotif from '../../tabs/notifs/Rem...
src/components/MainLayout/Header.js
muxiaoyv/database-fe
import React from 'react'; import { Menu, Icon } from 'antd'; import { Link } from 'dva/router'; function Header({ location }) { return ( <Menu selectedKeys={[location.pathname]} mode="horizontal" theme="dark" > <Menu.Item key="/users"> <Link to="/users"><Icon type="bars" />Us...
node_modules/rc-calendar/es/calendar/CalendarFooter.js
yhx0634/foodshopfront
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import ReactDOM from 'react-dom'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import toFragment from 'rc-util/es/Children/mapSel...
assets/javascripts/sso/pages/AdminMembersPage.js
wchaoyi/sso
import StyleSheet from 'react-style'; import React from 'react'; import {History} from 'react-router'; import AdminAuthorizeMixin from '../components/AdminAuthorizeMixin'; import AdminNewMemberCard from '../components/AdminNewMemberCard'; import AdminListMemberCard from '../components/AdminListMemberCard'; import Admi...
src/components/AmmoDisplay.js
shaunsaker/real-dope
import React from 'react'; import { connect } from 'react-redux'; import BulletIcon from 'react-icons/lib/md/mode-edit'; export class AmmoDisplay extends React.Component { render() { return ( <div style={this.props.fighting ? { width: '33.33333333%' } : {} } className={ this.props.fighting ? "ammo flex...
grails-app/assets/javascripts/dependencies/node_modules/react-router/es6/Link.js
puaykai/noodles
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
frontend/app/js/components/rules_v2/edit/description.js
serverboards/serverboards
import React from 'react' import i18n from 'app/utils/i18n' function Description(props){ return ( <div className="extend"> <div className="ui attached top form"> <h3 className="ui header">Description</h3> </div> <textarea className="ui fill area dark hover" defaultValue=...
analysis/rogueoutlaw/src/modules/Abilities.js
yajinni/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import CoreAbilities from 'parser/core/modules/Abilities'; import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE'; import COVENANTS from 'game/shadowlands/COVENANTS'; class Abilities extends CoreAbilities { sp...
example/src/index.js
mattikl/redux-list-reducer
import React from 'react' import ReactDOM from 'react-dom' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import { Provider } from 'react-redux' import { Router, Route, browserHistory } from 'react-router' import App from './App' import TeamsPlain from './TeamsPlain' import TeamsI...
node_modules/react-bootstrap/es/PaginationButton.js
Chen-Hailin/iTCM.github.io
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 ...
src/containers/book_list.js
nushicoco/books_rabbit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import BookListItem from '../components/book_list_item'; import AddBookToList from '../components/add_book_to_list'; class BookList extends Component { renderList() { return this.props.books.map((book) => { return...
src/routes/dashboard/components/sales.js
china2008qyj/DVA-DEMO
import React from 'react' import PropTypes from 'prop-types' import styles from './sales.less' import classnames from 'classnames' import { color } from 'utils' import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' function Sales ({ data }) { return ( <div ...
imports/Client/Components/userBook/Book.js
darodriguez15/booksWebDev
import React, { Component } from 'react'; import PropTypes from "prop-types"; import { Meteor } from 'meteor/meteor'; import ReactDOM from 'react-dom'; import { Books } from '../../../api/books'; import { createContainer } from 'meteor/react-meteor-data'; // Task component - represents a single todo item class Book ex...
src/components/Button.js
gedeonix/gedeonix-react
import React from 'react'; import styled, {css} from "styled-components"; export const styleButton = (props, button) => css` background-color: ${props.outline ? 'transparent' : button.background}; border-color: ${button.border} || 'inherited'; color: ${props.outline ? (button.border || 'inherited') : button.colo...
examples/huge-apps/routes/Course/components/Nav.js
trotzig/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
src/svg-icons/action/perm-camera-mic.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermCameraMic = (props) => ( <SvgIcon {...props}> <path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 ...
src/components/Schedule/index.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { reaction } from 'mobx'; import { Title } from 'bloomer'; import Loader from '../Loader'; import Page from '../Page'; import ScheduleItem from '../ScheduleItem'; import './index.scss'; class Schedule extends R...
examples/counter/index.js
przeor/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
frontend/pages/swe/week-7.js
souvik1997/website
import React from 'react'; import Link from 'next/link'; import Head from '../../components/head'; import BlogPost, { CodeBlock } from '../../components/swe-blog'; import { Container, Nav, NavItem, NavLink, Row, Col } from 'reactstrap'; import 'bootstrap/dist/css/bootstrap.min.css'; const pickOfTheWeek = ( <div> ...
src/components/PostTemplateDetails/index.js
akilbekov/blog
import React from 'react'; import { Link } from 'gatsby'; import Sidebar from '../Sidebar'; import moment from 'moment'; import './style.scss'; class PostTemplateDetails extends React.Component { render() { const post = this.props.data.markdownRemark; const tags = post.fields.tagSlugs; const tagsBlock =...
src/star/ui/revokeBidbutton/RevokeBidButton.js
flysonic10/initial-celestial-offering
import React from 'react' class RevokeBidButton extends React.Component { render() { let starIndex = this.props.starIndex; return( <button onClick={(event) => this.props.onRevokeBid(event, starIndex)}>Revoke Bid</button> ) } } export default RevokeBidButton
modules/RouterContext.js
malte-wessel/react-router
import invariant from 'invariant' import React from 'react' import deprecateObjectProperties from './deprecateObjectProperties' import getRouteParams from './getRouteParams' import { isReactChildren } from './RouteUtils' import warning from './warning' const { array, func, object } = React.PropTypes /** * A <Router...
src/containers/NotFound/NotFound.js
21echoes/my-react-starter-kit
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/Main/News/Articles/2017-12-24-Version-2-0/index.js
hasseboulen/WoWAnalyzer
import React from 'react'; import RegularArticle from 'Main/News/RegularArticle'; import ChecklistOverview from './checklist-overview.png'; import ChecklistItem from './checklist-item.png'; import Results2point0 from './results-2.0.png'; export default ( <RegularArticle title="Version 2.0 is here! Check your fight...
src/parser/monk/brewmaster/modules/features/StaggerGraph.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { FlexibleWidthXYPlot as XYPlot, DiscreteColorLegend, XAxis, YAxis, AreaSeries, LineSeries, Crosshair, Highlight, MarkSeries, } from 'react-vis'; import { formatDuration, formatNumber } from 'common/format'; import VerticalLine fro...
renderer/components/Activity/PaymentModal/PaymentModal.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { FormattedMessage, injectIntl } from 'react-intl' import { Flex } from 'rebass/styled-components' import { intlShape } from '@zap/i18n' import { getDisplayNodeName } from 'reducers/payment/utils' import { Bar, DataRow, Header, Panel, Text } from 'comp...
js/components/sign-up/index.js
chris50bn/Between
'use strict'; import React, { Component } from 'react'; import { Image, Platform, TouchableOpacity } from 'react-native'; import { connect } from 'react-redux'; import { popRoute } from '../../actions/route'; import { Container, Content, Text, Button, Icon, InputGroup, Input, View } from 'native-base'; import theme...
app/jsx/routes.js
xiaobuu/ddz
'use strict'; import React from 'react'; import Home from './components/Home.jsx'; import Rooms from './components/Rooms.jsx'; import Game from './components/Game.jsx'; import {Route, RouteHandler, DefaultRoute} from 'react-router'; const App = React.createClass({ render: function () { return ( ...
pootle/static/js/shared/components/DropdownMenu.js
evernote/zing
/* * Copyright (C) Zing contributors. * * This file is a part of the Zing project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; const propTypes = { children: Re...
src/containers/AppContainer.js
kiyoshitaro/Instagram-
import React from 'react'; import App from '../components/App'; import {connect} from 'react-redux'; import * as postProfileAction from '../actions/postProfileAction'; import {bindActionCreators} from 'redux'; class AppContainer extends React.Component { constructor(props,context){ super(props,context); this...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-airport.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalAirport = (props) => ( <SvgIcon {...props}> <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsLocalAirport.displayName = 'MapsLocalAi...
index.android.js
jindallae/ReactNativeInit
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import BundleBus from 'BundleBus-client'; class jindallae extends Component { constructor(props) { super(...
exercise-05-solution/src/components/AddPokemonCard.js
learnapollo/pokedex-react
import React from 'react' import { withRouter } from 'react-router' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import styled from 'styled-components' const Button = styled.div` background-color: ${props => props.save ? '#2BC3A1' : ''}; color: ${props => props.save ? 'white' : '#A3A3A3'}; ...
soon/react-boilerplate/app/containers/LanguageProvider/index.js
rmevans9/reactotron
/* * * 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...