path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
MobileApp/App/components/addpropackage.js
VowelWeb/CoinTradePros.com
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TextInput, Form, TouchableHighlight, ScrollView, } from 'react-native'; import Icon from 'react-native-vector-icons/F...
src/ui/components/views/Splash.native.js
belng/pure
/* @flow */ import React, { Component } from 'react'; import ReactNative from 'react-native'; import shallowCompare from 'react-addons-shallow-compare'; import Colors from '../../Colors'; import Loading from './Core/Loading'; const { StatusBar, StyleSheet, View, Image, } = ReactNative; const styles = StyleSheet....
Translate.js
harokevin/unoun
import React, { Component } from 'react'; import { AppRegistry, Text, View, StyleSheet, Dimensions } from 'react-native'; export default class Translate extends Component { constructor(props) { super(props); this.state = { value: this.props.value, translation: this.props.translation }; } render() { ...
test/test_helper.js
vtkamiji/react-aula4
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...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
Toootim/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; @injectIntl export default class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
static/src/components/Home/index.js
unmeshpro/easyPost
import React from 'react'; export const Home = () => <section> <div className="container text-center"> <h1>Hi there! Welcome to EasyPost.</h1> </div> </section>;
src/admin/app/features/shared/components/notFound.js
jgretz/node-bits-admin
import React from 'react'; export default () => ( <div>404</div> );
src/components/Menu/Menu.js
joopand/presensi
import React from 'react' import { Link } from 'react-router' class Menu extends React.Component { constructor (props) { super(props) this.state = {collapseMaster: true, collapseProfile: true} } componentDidMount () { } render () { return ( <div className='sidebar' data-color='blue'> ...
node_modules/react-bootstrap/es/Form.js
acalabano/get-committed
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 ...
server/sonar-web/src/main/js/apps/system/item-object.js
vamsirajendra/sonarqube
import React from 'react'; import ItemValue from './item-value'; export default React.createClass({ render() { let rows = Object.keys(this.props.value).map(key => { return <tr key={key}> <td className="thin nowrap">{key}</td> <td><ItemValue value={this.props.value[key]}/></td> </tr>; ...
src/svg-icons/av/replay-30.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay30 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-....
src/components/auth/ResetPasswordPage.js
daheim/daheim-app-ui
import React from 'react' import TextField from 'material-ui/TextField' import RaisedButton from 'material-ui/RaisedButton' import {Link} from 'react-router' import {replace} from 'react-router-redux' import {connect} from 'react-redux' import {reset} from '../../actions/auth' import LoadingPanel from '../LoadingPanel...
src/components/TextFieldWithToolTip.js
reactima/reactima-esop
import React from 'react'; import TextField from 'material-ui/TextField'; import IconButton from 'material-ui/IconButton'; import './TextFieldWithToolTip.scss' export default ({label, value, description}) => { let tooltipStyles = { fontSize: "1rem", padding: "0.5rem" }; let floatingLabel...
src/svg-icons/image/crop-portrait.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/> </SvgIcon> ); ImageCropPortrait = pure(ImageCropP...
src/components/index_page/index_item.js
LeeLa-Jet/nick
import React, { Component } from 'react'; class IndexItem extends Component { render(){ return ( <div className="index_item"> <div className="index_item-photo"></div> <p className="index_item-suptitle">Творческое объединение</p> <h4 className="index_item-title">Space Shuttle Brother...
app/containers/caravanas/index.js
kimurakenshi/caravanas
import React from 'react'; import styles from './style/caravanas.scss'; import { CreateCaravana, CaravanaList } from './components'; import PageTitle from '../../components/page-title'; export default function Caravanas() { return ( <div className={styles.caravanas}> <PageTitle title="Caravanas" /> ...
src/svg-icons/toggle/star-border.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
components/PortfolioItem.js
mariosandoz/mariosandoz.github.io
import React from 'react'; class PortfolioItem extends React.Component{ render(){ return( <div> <div className="col-sm-4 portfolio-item"> <a href={this.props.portURL} className="portfolio-link" data-toggle="modal"> <div className="caption"> ...
src/containers/pages/welcome/sections/use-cases/streams.js
vFujin/HearthLounge
import React from 'react'; import CardInText from "../../../../../components/card/card-in-text"; import {Link} from "react-router-dom"; import Icon from "../../../../../components/icon"; const uther = <CardInText label="Uther the Lightbringer" imgSrc="http://media.services.zam.com/v1/media/byName/hs/cards/enus/HERO_04...
components/InterestsView.js
amni/portfolio
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' import Job from 'components/Job' import Gboard from "./gboard.jpeg" import AdMob from "./admob.png" import SMSmart from "./smsmart.png" import KPCB ...
src/svg-icons/content/low-priority.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLowPriority = (props) => ( <SvgIcon {...props}> <path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7....
frontend/src/components/YoutubeVideo.js
OpenCollective/opencollective-website
import React from 'react'; export default ({ video, width='560', height='315' }) => { if (!video) return; let id; if (video.match(/youtu.be/)) id = video.match(/youtu.be\/([^\/\?]+)/)[1]; else id = video.match(/watch\?v=([^&]*)/)[1]; return ( <div className='YoutubeVideo height-100'> ...
src/components/RotatingCubes.js
2075/2030-ICO
import React from 'react'; import React3 from 'react-three-renderer'; import * as THREE from 'three'; import RenderBase from './RenderBase'; import RotatingCube from './RotatingCube'; import Stats from 'stats.js'; class RotatingCubes extends RenderBase { constructor(props, context) { super(props, context); co...
docs/src/app/components/pages/components/CircularProgress/ExampleSimple.js
IsenrichO/mui-with-arrows
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; const CircularProgressExampleSimple = () => ( <div> <CircularProgress /> <CircularProgress size={60} thickness={7} /> <CircularProgress size={80} thickness={5} /> </div> ); export default CircularProgressExampleSim...
packages/forms/src/deprecated/widgets/KeyValueWidget/KeyValueWidget.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import Text from 'react-jsonschema-form/lib/components/widgets/TextWidget'; import Select from 'react-jsonschema-form/lib/components/widgets/SelectWidget'; import { optionsList } from 'react-jsonschema-form/lib/utils'; import theme from './KeyValueWidget....
client/src/app/components/App.js
lefnire/jobs
import React from 'react'; import { Toolbar, ToolbarGroup, DropDownMenu, MenuItem, ToolbarTitle, FontIcon, IconMenu, ToolbarSeparator, RaisedButton, IconButton, FlatButton, AppBar, Divider, Menu, List, ListItem, Drawer, Subheader } from 'material-ui'; import _ from 'lodash'; import F...
src/components/App.js
VVGCreative/questl
import React, { Component } from 'react'; import QuestListContainer from './../containers/QuestListContainer' import ObjectiveListContainer from './../containers/ObjectiveListContainer' import './App.css'; class App extends Component { constructor(props) { super() var quest = -1 if(typeof localStorage...
imports/ui/components/client/ClientContainer.js
ctagroup/home-app
import React, { Component } from 'react'; // import React, { Component, useState } from 'react'; // import DataTable from '/imports/ui/components/dataTable/DataTable'; // import { removeClientTagButton } from '/imports/ui/dataTable/helpers.js'; import ClientLayout from './ClientLayout'; class ClientContainer extends C...
mobile/navigation/RootNavigation.js
AbrahamShubApps/OccasionMe
import { Notifications } from 'expo'; import React from 'react'; import { StackNavigator } from 'react-navigation'; import MainTabNavigator from './MainTabNavigator'; import registerForPushNotificationsAsync from '../api/registerForPushNotificationsAsync'; import SplashScreen from '../screens/splashscreen'; import Log...
app/javascript/mastodon/components/status_action_bar.js
codl/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
consoles/my-joy-instances/src/containers/instances/tags.js
yldio/joyent-portal
import React from 'react'; import { Margin } from 'styled-components-spacing'; import paramCase from 'param-case'; import { compose, graphql } from 'react-apollo'; import { set } from 'react-redux-values'; import { SubmissionError, reset, stopSubmit, startSubmit } from 'redux-form'; import ReduxForm from 'declarative-r...
src/TacoTable.js
pbeshai/react-taco-table
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import TacoTableHeader from './TacoTableHeader'; import TacoTableRow from './TacoTableRow'; import SortDirection from './SortDirection'; import { sortData, getColumnById, validateColumns, renderCell } from './Utils'; imp...
test/react-test/post-comments.js
clbn/freefeed-gamma
import test from 'tape'; import React from 'react'; import sd from 'skin-deep'; import PostComments from 'src/components/elements/post-comments'; import CommentCreateForm from 'src/components/elements/comment-create-form'; const renderComments = (comments, omittedComments = 0, isCommenting = false) => { const post ...
ssr/svg.js
VictorQD/react-pdf-viewer
import React from 'react'; const Svg = () => ( <svg className='hide'> <defs> <symbol id='tag'> <path d='M21.8473016,6.87957023 C21.299533,6.33363009 20.5387432,6 19.7018745,6 L9.05081842,6 C7.37708103,6 6.00765952,7.36485035 6.00765952,9.03300079 L6.00765952,19.6485035 C6.00765952,20.4825788 5.9031...
app/javascript/mastodon/features/account/components/header.js
res-ac/mstdn.res.ac
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Motion from '../../ui/util/optional_motion'; import sprin...
docs/app/Examples/modules/Embed/States/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const EmbedStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Active' description='An...
node_modules/react-bootstrap/es/Clearfix.js
NickingMeSpace/questionnaire
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/CollapsibleItem.js
jareth/react-materialize
import React from 'react'; import cx from 'classnames'; import Icon from './Icon'; class CollapsibleItem extends React.Component { constructor(props) { super(props); this.state = {expanded: this.props.expanded}; this.handleClick = this.handleClick.bind(this); this.renderBody = this.renderBody.bind(th...
src/svg-icons/notification/voice-chat.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVoiceChat = (props) => ( <SvgIcon {...props}> <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-2zm-2 12l-4-3.2V14H6V6h8v3.2L18 6v8z"/> </SvgIcon> ); NotificationVoic...
test/helpers/shallowRenderHelper.js
guanhuihui/by-react
/** * 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/containers/app.js
kokengthecoder/github-user-search
import React, { Component } from 'react'; import HomeSearch from './HomeSearch'; import ShowUser from './ShowUser'; import { Grid } from 'semantic-ui-react'; export default class App extends Component { render() { return ( <Grid> <Grid.Column> {this.props.children} </Grid.Column> </...
blueocean-dashboard/src/main/js/creation/git/GitFlowManager.js
alvarolobato/blueocean-plugin
import React from 'react'; import { action, computed, observable } from 'mobx'; import { Promise } from 'es6-promise'; import { i18nTranslator, logging } from '@jenkins-cd/blueocean-core-js'; const translate = i18nTranslator('blueocean-dashboard'); import FlowManager from '../flow2/FlowManager'; import waitAtLeast fr...
stories/AppHeaderBar.js
Talend/react-talend-components
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { AppHeaderBar } from '../src'; const typeaheadItems = [ { title: 'category 1', icon: { name: 'fa fa-filter', title: 'icon', }, suggestions: [ { title: 'le title 1', description: 'description: Uxoresque ...
frontend/main.js
alyzhao/my-blog
import React from 'react'; import ReactDOM from 'react-dom'; import 'babel-polyfill'; import { AppContainer } from 'react-hot-loader'; import 'font-awesome/css/font-awesome.css'; import 'normalize.css'; import App from './App'; // import './style.less'; const render = function(Component) { ReactDOM.render( ...
src/components/demo/asyncValidation/AsyncValidationForm.js
tedyuen/react-redux-form-v6-example
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import inputField from '../../utils/validation/inputField'; import asyncValidate from './asyncValidate'; import validate from './validate' const AsyncValidationForm = props => { const { handleSubmit, pristine, reset, submitting,error } = props...
src/packages/@ncigdc/modern_components/RepoCasesTable/RepoCasesTable.relay.js
NCI-GDC/portal-ui
/* @flow */ /* eslint fp/no-class:0 */ import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import { withRouter } from 'react-router-dom'; import { parse } from 'query-string'; import { parseIntParam, parseFilterParam, parseJSONParam, } from '@...
frontend/src/components/dialog/org-logs-file-update-detail.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody } from 'reactstrap'; import { seafileAPI } from '../../utils/seafile-api'; import { gettext } from '../../utils/constants'; import { Utils } from '../../utils/utils'; import toaster from '../toast'; const propTypes = ...
src/components/SupportSection.js
jumpalottahigh/blog.georgi-yanev.com
import React from 'react' const SupportSection = ({ affiliateNote }) => { return ( <div className="support-section"> <h4 style={{ margin: 0 }}>Support the blog:</h4> <div> I hope you find my content helpful. If you'd like to support the blog, you can do so by clicking the affiliate li...
RNApp/app/routes/Home/Home.js
abhaytalreja/react-native-telescope
import React from 'react'; import { Text, View } from 'react-native'; import Button from '../../components/Button'; import styles from './styles'; const Home = (props) => { return ( <View style={styles.container}> <Text style={styles.main}> Home </Text> <Button text="Details" ...
src/components/Header/Header.js
Ciunkos/ciunkos.com
import React from 'react' import styled from 'styled' import PageIcon from 'assets/page-icon.jpg' import { Apps, PermContactCalendar, InfoOutline } from 'icons' import HeaderBar from './HeaderBar' import HeaderContainer from './HeaderContainer' const Logo = () => ( <styled.Logo media-large-inline horizontal...
client/index.js
polarbearjs/polarbear
import React from 'react'; import ReactDOM from 'react-dom'; import Routes from './Routes'; import createStore from './store/create'; import { Provider } from 'react-redux'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux'; const store = createS...
src/components/settlement/delivery/SettlementDeliveryHeader.js
HuZai/react_settlement
/** * 配送方式头部header */ import React from 'react'; class SettlementDeliveryHeader extends React.Component{ backClick(){ this.context.router.goBack(); } render(){ return <div className="innerHeader"> <div className="back" onClick={()=>this.backClick()}> <div><span className="secoo_icon_back">...
app/components/gallery.js
it-surya/hack-jeninvest
import React from 'react'; import { View, ListView, Dimensions, StyleSheet } from 'react-native'; import { RkText, RkButton, RkModalImg } from 'react-native-ui-kitten'; import {Ellipsis} from './ellipsis'; import {SocialBar} from './socialBar' export class Gallery extends React.Component { constructor...
client/Containers/Dashboard/index.js
TemaTarasov/diplom
import React from 'react'; import Component from '../../Component'; export class Dashboard extends Component { render() { return ( <h1>Dashboard</h1> ); } }
src/components/tasks/index.js
golemfactory/golem-electron
import React from 'react'; import ReactDOM from 'react-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as Actions from '../../actions'; import Table from './Table'; import DropZone from './../Dropzone'; import TransactionTube from '../transaction'; import History fro...
src/Form.js
sazl/react-bootstrap-validation
import React from 'react'; import InputContainer from './InputContainer'; import ValidatedInput from './ValidatedInput'; import RadioGroup from './RadioGroup'; import Validator from './Validator'; import FileValidator from './FileValidator'; function getInputErrorMessage(input, ruleName) { let errorHelp ...
docs/app/Examples/elements/Loader/States/LoaderExampleDisabled.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleDisabled = () => ( <Segment> <Loader disabled /> <Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> </Segment> ) export default LoaderExampleDisabled
node_modules/react-router/es/StaticRouter.js
vinhtran19950804/procure_react
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 = {...
webapp/app/components/MigrationHistory/Delete/MigrationInfos/index.js
EIP-SAM/SAM-Solution-Node-js
// // Migration History Delete infos component // import React from 'react'; import { Row, Col, Label } from 'react-bootstrap'; import moment from 'moment'; import statusLabel from 'components/MigrationHistory/statusToLabel.json'; import styles from './styles.css'; /* eslint-disable react/prefer-stateless-function */...
src/scripts/views.js
TxsAdamWest/etsyReact
import React from 'react' import ReactDOM from 'react-dom' import Models from './models.js' import {Component} from 'react' import Iframe from 'react-iframe' // var Iframe = require('react-iframe') export const AllListingsView = React.createClass({ //Here we will render the DOM with including all the prior subcomp...
src/browser/users/UsersPage.js
chad099/react-native-boilerplate
// @flow import OnlineUsers from './OnlineUsers'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box, PageHeader } from '../../common/components'; import { Title } from '../components'; const UsersPage = () => ( <Box> <Title message={linksMessages.users} /> <P...
e2e-tests/gatsby-image/src/pages/index.js
ChristopherBiscardi/gatsby
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' const IndexPage = () => ( <Layout> <h1>Gatsby Image integration test</h1> <h2> Please navigate to <Link to="/fixed">/fixed</Link>,{` `} <Link to="/fluid">/fluid</Link>, or <Link to="/traced">/traced...
react/checkbox.js
wangzuo/feng-ui
import React from 'react'; class Checkbox extends React.Component { render() { return ( <span className="u-checkbox"> <input type="checkbox"/> <span className="label"> {this.props.children} </span> </span> ); } } module.exports = Checkbox;
src/components/Modal/Portal.js
sk-iv/iva-app
import React from 'react'; import type { Node } from 'react'; import ReactDOM from 'react-dom'; import canUseDom from 'dom-helpers/util/inDOM'; export type Props = { /** * The content to portal in order to escape the parent DOM node. */ children?: Node, /** * If `true` the children will be mounted into ...
react-component-template/test.js
Techwraith/ribcage-gen
import test from 'tape' import {{PascalName}} from './index.jsx' import React from 'react' import {isElement} from 'react-addons-test-utils' import testTree from 'react-test-tree' import defaultProps from './example/data.js' test('{{PascalName}}: constructor', (t) => { const {{camelName}} = React.createElement({{Pas...
genie-web/src/main/resources/static/scripts/components/JobDetails.js
irontable/genie
import T from 'prop-types'; import React from 'react'; import { Link } from 'react-router'; import { momentFormat, fetch } from "../utils"; import Modal from "react-modal"; import Error from "./Error"; export default class JobDetails extends React.Component { static propTypes = { row: T.object.isRequired }; cons...
src/components/RecentTrack.js
jeromelachaud/Last.fm-Activities-React
import React from 'react'; import styled from 'styled-components'; import lastfm_placeholder from '../assets/cover-album-placeholder.svg'; import colorVariables from '../constants/styles-variables'; import PropTypes from 'prop-types'; const { darkGrey } = colorVariables; const RecentTrackLink = styled.a` display:...
node_modules/rc-tabs/es/Tabs.js
ZSMingNB/react-news
import _defineProperty from 'babel-runtime/helpers/defineProperty'; 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-run...
js/jqwidgets/demos/react/app/grid/pagermodes/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownList.on('select', (ev...
InstanceItems.js
cledvina/ui-instances
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import MultiColumnList from '@folio/stripes-components/lib/MultiColumnList'; const emptyObj = {}; const emptyArr = []; class InstanceItems extends React.Component { static manifest = Object.freeze({ instanceId: {}, item...
src/index.js
XiaoSX/Campanella-worldlinepack
import React, { Component } from 'react'; import App from './components/App'; class Root extends Component { componentDidMount () { console.log("^_^"); } render () { return ( <App /> ); } } React.render( <Root />, document.getElementById("app") );
src/containers/Login/component.js
ortonomy/flingapp-frontend
// basic react import React, { Component } from 'react'; //library dependencies import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; // component dependencies import isLoggedInRedirect from '../Auth/isLoggedInRedirect'; import LoginNav from '../.....
src/containers/Asians/TabControls/BreakRounds/CreateBreakRooms/2_AllocateAdjudicators/AdjudicatorsList/index.js
westoncolemanl/tabbr-web
import React from 'react' import Card, { CardContent } from 'material-ui/Card' import AdjudicatorCard from '../_AdjudicatorComponents/AdjudicatorCard' import _ from 'lodash' export default ({ breakRoomsDraft, filteredBreakAdjudicators, onDragAdjudicator }) => { let allocatedAdjudicators = [] breakRooms...
src/components/TasksListItem.js
olontsev/react-redux-bootcamp
import React from 'react'; import { Form, Checkbox, Button } from 'react-bootstrap'; class ToDoListItem extends React.Component { render() { if(!this.props.task) return null; let taskText = this.props.task.text; let taskDone = this.props.task.done; return ( <li className='list-group-i...
node_modules/react-router/es6/Redirect.js
rakshitmidha/Weather_App_React
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
app/components/Toggle/index.js
belongapp/belong
/** * * LocaleToggle * */ import React from 'react'; // import { FormattedMessage } from 'react-intl'; import ToggleOption from '../ToggleOption'; function Toggle(props) { // eslint-disable-line react/prefer-stateless-function let content = (<option>--</option>); // If we have items, render them if (props.va...
src/svg-icons/image/portrait.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePortrait = (props) => ( <SvgIcon {...props}> <path d="M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM...
src/svg-icons/hardware/speaker.js
jacklam718/react-svg-iconx
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...
app/containers/Menu/components/Modal/index.js
ethanve/bakesale
import React from 'react'; import { reduxForm } from 'redux-form/immutable'; import { Modal, ModalBody, ModalHeader, ModalFooter } from 'elemental'; import formFactory from '../formFactory'; import { FORM_NAME } from '../../constants'; export default class MenuModal extends React.Component { render() { const {...
source/Router.js
jamesknelson/react-junctions
import React from 'react' import PropTypes from 'prop-types' import { createConverter, locationsEqual } from 'junctions' import HistoryContext from './HistoryContext' export default class Router extends React.Component { constructor(props) { super(props) this.handleLocationChange = this.handleLocationChange....
react-fundamentals-es6/lessons/11-higher-order/App.js
3mundi/React-Bible
// https://jsbin.com/boxoso/edit?js,output import React from 'react'; let Mixin = InnerComponent => class extends React.Component { constructor(){ super(); this.update = this.update.bind(this); this.state = {val: 0} } update(){ this.setState({val: this.state.val + 1}) } componentWillMount(){...
src/other/CloseButton.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import { Button } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' import ClearIcon from '@material-ui/icons/Clear' import { Link } from 'react-router-dom' import SearchStore from '../store/SearchStore' const useStyles = makeSty...
pkg/weexpack-create/components/file-dialog.js
JackPu/atom-weexpack
'use babel'; /** new file dialog * 20170407 **/ import React from 'react'; import ReactDOM from 'react-dom'; import UniversalDisposable from '../../commons-node/UniversalDisposable'; import AtomInput from '../../weexpack-ui/input'; class FileDialog extends React.Component { constructor(props) { super(props); ...
node_modules/react-icons/fa/object-group.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaObjectGroup = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m39.8 10.1h-2.5v19.8h2.5v7.5h-7.5v-2.5h-24.8v2.5h-7.5v-7.5h2.5v-19.8h-2.5v-7.5h7.5v2.5h24.8v-2.5h7.5v7.5z m-5-5v2.5h2.5v-2.5h-2.5z m-32.3 0v2.5h2.5v-2.5h-2.5z m2....
src/Pagination.js
xsistens/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import PaginationButton from './PaginationButton'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ mixins: [BootstrapMixi...
src/app/components/ProjectsList/ProjectsList.js
harsh376/Hector
// @flow import React from 'react' import { Link } from 'react-router' import { defineMessages } from 'react-intl' import ProjectOverview from '../ProjectOverview/ProjectOverview' export const projects = [ { name: 'capstone', isExternalLink: false, componentMessages: defineMessages({ title: { ...
examples/huge-apps/routes/Profile/components/Profile.js
barretts/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
docs/app/Examples/elements/Image/States/ImageExampleHidden.js
ben174/Semantic-UI-React
import React from 'react' import { Image } from 'semantic-ui-react' const src = 'http://semantic-ui.com/images/wireframe/image.png' const ImageExampleHidden = () => ( <Image src={src} size='small' hidden /> ) export default ImageExampleHidden
src/App.js
jgallegoweb/react-loading-line
import React, { Component } from 'react'; import LoadingLine from './LoadingLine.js'; import './App.css'; class App extends Component { constructor(props) { super(props); this.state = { isError: false, isFinish: false } this.lanzaFin = this.lanzaFin.bind(this); this.lanzaError = this....
packages/cf-component-list/example/basic/component.js
koddsson/cf-ui
import React from 'react'; import { UnorderedList, OrderedList, ListItem } from 'cf-component-list'; const ListComponent = () => ( <div> <p>Basic usage:</p> <UnorderedList> <ListItem>One</ListItem> <ListItem>Two</ListItem> </UnorderedList> <p>Ordered list:</p> <OrderedList> <Li...
server/sonar-web/src/main/js/apps/background-tasks/components/CurrentsFilter.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
admin/src/components/AltText.js
davibe/keystone
import React from 'react'; import blacklist from 'blacklist'; import vkey from 'vkey'; var AltText = React.createClass({ getDefaultProps () { return { component: 'span', modifier: '<alt>', normal: '', modified: '' }; }, getInitialState () { return { modified: false }; }, componentDidMount (...
src/docs/components/world-map/WorldMapDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import WorldMap from 'grommet/components/WorldMap'; import Anchor from 'grommet/components/Anchor'; import Button from 'grommet/components/Button'; import DocsArticle from '../../../components/DocsArticle'; ...
src/components/auth/Login.js
haki-projects/mapping-feminism-v2
import React from 'react'; import * as firebase from 'firebase'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { getLoginError } from '../../utils/helper_functions'; import Notifications, { notify } from 'react-notify-toast'; class Login extends React.Component { state = { emai...
src/js/components/icon/icon.js
working-minds/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; import themes from '../../theme/theme'; import { mixin } from '../../utils/decorators'; import CssClassMixin from '../../mixins/css_class_mixin'; import TooltipMixin from '../../mixins/tooltip_mixin'; @mixin( CssClassMixin, Toolti...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/NavContext.js
brett-harvey/Smart-Contracts
import React from 'react'; var NavContext = React.createContext(null); export default NavContext;
src/components/ReposController/ReposController.react.js
ricca509/geckboard_challenge
import React from 'react'; import Repos from '../Repos/Repos.react.js'; import ReposStore from '../../stores/ReposStore'; import ReposActions from '../../actions/ReposActions'; class ReposController extends React.Component { constructor (props) { super(props); this.state = { repos: [] ...
packages/react-dom/src/server/ReactPartialRenderer.js
VioletLife/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {ThreadID} from './ReactThreadIDAllocator'; import type {ReactElement} from 'shared/ReactElementType'; imp...
admin/client/App/screens/Item/components/EditFormHeader.js
matthewstyers/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
docs/server.js
rapilabs/react-bootstrap
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development = process.env.NODE_ENV !== 'p...