path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/Containers/Sobre.js
pedrobertao/CorridaGeneciadorBertao
import React from 'react'; import { withRouter, Link } from "react-router-dom"; import { Button, MenuItem, Nav, Navbar, NavItem, NavDropdown, Grid, Row, Col, Jumbotron } from 'react-bootstrap'; import Header from '../ComponentsFixed/Header'; import backgroundImg from '../Images/background-img.jpg'; const styles = { ...
AngularJS_Full_Project_GULP/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
marziyeah/Medhacks_admin
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/app/form/Form.js
teamNOne/showdown
import React from 'react'; export default class Form extends React.Component { render() { return ( <div className='container'> <div className='row flipInX animated'> <div className='col-sm-8'> <div className='panel panel-default'> ...
app_learn/src/containers/Tab1/refreshablePlainListViewDemo.js
liuboshuo/react-native
/** * Created by liushuo on 17/4/24. */ import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, TouchableOpacity } from 'react-native'; import NavigationBar from '../../component/navBarCommon' import SheetDetailContainer from './test' import HttpTool from '../../common/ht...
app/assets/scripts/components/radio.js
energy-data/market-opportunities
import React from 'react' const Radio = React.createClass({ propTypes: { layerId: React.PropTypes.string, value: React.PropTypes.string, selected: React.PropTypes.array, updateLayerFilter: React.PropTypes.func }, render: function () { const { value, selected, layerId } = this.props retu...
client/views/room/contextualBar/KeyboardShortcuts/KeyboardShortcuts.js
VoiSmart/Rocket.Chat
import React from 'react'; import VerticalBar from '../../../../components/VerticalBar'; import { useTranslation } from '../../../../contexts/TranslationContext'; import ShortcutSection from './ShortcutSection'; const KeyboardShortcuts = ({ handleClose }) => { const t = useTranslation(); return ( <> <Vertical...
stories/LINEButton.js
uraway/react-social-sharebuttons
import React from 'react'; import { text, select } from '@storybook/addon-knobs'; import { LINEButton } from '../dist/index.es.js' export default { title: 'LINEButton', }; const imgOptions = { '20x20': '20x20', '30x30': '30x30', '36x60': '36x60', '40x40': '40x40', '82x20': '82x20', }; export const Basic ...
src/components/main/cart/CartProduct.js
BayShubar/react_shop
import React from 'react' import DeleteFromCart from '../buttons/DeleteFromCart' class CartProduct extends React.Component{ render(){ const product = this.props.product; return( <div style={style.deteilHolder}> <p style={style.cartText}>{ product.name }</p> <p style={style.cartText}>${ product.price }...
src/InputBase.js
chilts/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import FormGroup from './FormGroup'; import Glyphicon from './Glyphicon'; class InputBase extends React.Component { getInputDOMNode() { return React.findDOMNode(this.refs.input); } getValue() { if (this.props.type === 'static') { retu...
app/assets/scripts/components/loading-screen.js
AMT-Autoridade/amt
'use strict'; import React from 'react'; import { startYear, endYear } from '../config'; export default function LoadingScreen () { return ( <div id='intro-wrapper' className='loading-screen'> <div id='intro' className='container-wrapper content-wrapper'> <section> <h2 id='intro-logo'><a...
src/js/components/gsbpm/details/subs-by-phase.js
UNECE/Model-Explorer
import React from 'react' import { Link } from 'react-router' import { sparqlConnect} from 'sparql-connect' import { linkGSBPMSub } from '../routes' /** * Builds the query that retrives all the subprocesses for a GSBPM phase */ //TODO we retrieve twice the same information, see GSBPM description query. //There might...
src/svg-icons/hardware/toys.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareToys = (props) => ( <SvgIcon {...props}> <path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2...
imports/ui/components/InitiatePayment/InitiatePayment.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, Panel , Form , FormControl, Button , Label , Well , Image , Table , Jumbotron} from 'react-bootstrap'; import { Bert } from 'meteor/themeteorchef:bert'; import validate from ...
src/Slider/Slider.spec.js
ruifortes/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import sinon from 'sinon'; import keycode from 'keycode'; import Slider from './Slider'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Slider />', () => { const muiTheme = getMuiTheme(); con...
src/frontend/src/components/counters/InitCount.js
ziroby/dmassist
import React from 'react'; import './InitCount.css'; function InitCount(props) { return ( <div className="InitCount"> init: &nbsp;{props.init} </div> ); } export default InitCount;
app/js/Routes.js
theappbusiness/tab-hq
'use strict'; import React from 'react'; import {Router, Route } from 'react-router'; import createHashHistory from 'history/lib/createHashHistory' const history = createHashHistory({ queryKey: false }) import Api from './utils/Api'; import Login from './components/authentication/Login'; import App from './App'; Api...
src/svg-icons/communication/vpn-key.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationVpnKey = (props) => ( <SvgIcon {...props}> <path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 ...
dev/js/index.js
celsom3/Cosecha-SMS
import 'babel-polyfill'; import React from 'react'; import ReactDOM from "react-dom"; import {Provider} from 'react-redux'; import {createStore, applyMiddleware} from 'redux'; import thunk from 'redux-thunk'; import promise from 'redux-promise'; import createLogger from 'redux-logger'; import allReducers from './reduce...
packages/ringcentral-widgets-docs/src/app/pages/Styles/Dropdown/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import SettingsIcon from 'ringcentral-widgets/assets/images/Settings.svg'; import MeetingIcon from 'ringcentral-widgets/assets/images/Meeting.svg'; import ContactIcon from 'ringcentral-widgets/assets/images/Contact.svg'...
src/containers/tool/MailBox/MailLists.js
mydearxym/mastani
import React from 'react' import NotificationList from './NotificationList' import SysNotificationList from './SysNotificationList' import MentionList from './MentionList' const MailLists = ({ activeRaw, pagedMentions }) => { switch (activeRaw) { case 'notifications': return <NotificationList data={[]} />...
app/javascript/mastodon/features/mutes/index.js
mimumemo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/views/delegateProfile/components/SocialBar.js
LiskHunt/LiskHunt
import React, { Component } from 'react'; import ContentLabel from './ContentLabel'; import twitter_available from '../img/twitter-available.png'; import twitter_unavailable from '../img/twitter-unavailable.png'; import reddit_available from '../img/reddit-available.png'; import reddit_unavailable from '../img/reddit...
components/articleTemplate.js
halfatheist/halfatheist.github.io
import _ from 'lodash'; import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import DocumentTitle from 'react-document-title' import { config } from 'config' import moment from 'moment'; import Header from './header'; import Footer from './footer'; import Social fro...
src/media/js/addon/containers/submit.js
diox/marketplace-content-tools
import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {messageChange, submit} from '../actions/submit'; import AddonSubnav from '../components/subnav'; import AddonUpload from '../components/upload'; import {Page} from '../../site/components/page'; export cl...
examples/complete-todo-app/src/components/container/FilterLink.js
mgmarlow/Redux-Samples
import React from 'react'; import { connect } from 'react-redux'; import Link from '../presentation/Link'; const setVisibilityFilter = (filter) => { return { type: 'SET_VISIBILITY_FILTER', filter }; }; const mapStateToProps = (state, ownProps) => { return { active: ownProps.filter === state.visibil...
src/containers/organizations/components/OrganizationDomainsSectionComponent.js
kryptnostic/gallery
import React from 'react'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import StyledFlexContainerStacked from '../../../components/flex/StyledFlexContainerStacked'; im...
stories/components/form/formSelect/index.js
sethbergman/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormSelect from 'shared/components/form/formSelect/formSelect'; storiesOf('shared/components/form/formSelect', module) .add( 'Default', () => ( <FormSelect prompt="Se...
app/components/Home.js
tw00089923/kcr_bom
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.leftcontainer}> </div> <div className={styles.container}>...
src/components/ReplOutputTranspile.js
boneskull/Mancy
import React from 'react'; import {EOL} from 'os'; import ReplCommon from '../common/ReplCommon'; import ReplConstants from '../constants/ReplConstants'; import _ from 'lodash'; export default class ReplOutputTranspile extends React.Component { constructor(props) { super(props); this.state = { collapse...
client/_App/App.js
AnnotatedJS/meteor-react-start-app
import React from 'react'; import ReactDOM from 'react-dom'; import { Routes } from './Routes.js'; import { AppHeader } from './AppHeader/AppHeader'; import { AppSideLeft } from './AppSideLeft/AppSideLeft'; import { AppSideRight } from './AppSideRight/AppSideRight'; import { AppFooter } from './AppFooter/AppFooter'; ...
app/components/Commissioned/photos/CommissionedPhotos.js
1Green/projectAout
import React from 'react'; import Slider from 'react-slick'; import Transition from 'react-addons-css-transition-group'; import { withRouter } from 'react-router'; export const PhotoCarousel = withRouter( React.createClass({ render() { const { photos } = this.props; var settings = { ...
shared/index.js
sammusic27/react-redux
import React from 'react'; export default class AppView extends React.Component { render() { return ( <div id="app-view"> <h1>Todos</h1> <hr /> {this.props.children} </div> ); } }
src/svg-icons/action/open-in-new.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInNew = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> );...
2-alpha/src/components/Header.js
saturninoharris/primer-design
import React from 'react' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import { updateCurrentStudentID, nextExercise } from '../actions' import { getCurrentStudentID, getCurrentStudentProfile, getAvailableExercisesList } from '../selectors' import { P } from './Text' import { Hi...
components/frontend/src/report/ReportTitle.js
ICTU/quality-time
import React from 'react'; import { Grid, Icon, Menu } from 'semantic-ui-react'; import { Tab } from '../semantic_ui_react_wrappers'; import { Comment } from '../fields/Comment'; import { StringInput } from '../fields/StringInput'; import { FocusableTab } from '../widgets/FocusableTab'; import { HeaderWithDetails } fro...
src/components/homepage/buttons.js
LegalCheck/main
import React from 'react' const HomepageButtons = ({dispatch}) => ( <div className="buttonContainer"> <button className="startButton" onClick={() => dispatch({type: 'START_QUIZ'})}>START!</button> </div> ) export default HomepageButtons
client/lib/components/shared/books/inputs/Title.js
noxee/reddit-fantasy
import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; export default class extends Component { constructor(props, context) { super(props, context); this.handleChange = this.handleChange.bind(this); this.getTitle = this.getTitle.bind(this); this.isValid...
13. ReactJS Fundamentals - Feb 2019/05. Higher Order Components/Warning/warning/src/components/BindingForm/BindingForm.js
zrusev/SoftwareUniversity2016
import React, { Component } from 'react'; class BindingForm extends Component { handleChange(e) { console.log(`${e.target.name} => ${e.target.value}`); this.setState = ({ [e.target.name]: e.target.value }) } render() { return ( <div> ...
src/svg-icons/content/report.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReport = (props) => ( <SvgIcon {...props}> <path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3...
src/svg-icons/action/perm-data-setting.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0...
stories/layouts/page.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { MainContent, Sidebar } from 'components/UI' import { Window, Content } from '../helpers' storiesOf('Layouts', module).addWithChapters('Page', { subtitle: 'The outer most application wrapper.', info: `Pages can have optional sidebars on...
src/components/Select.js
Hylozoic/hylo-redux
import React from 'react' import { KeyControlledItemList } from './KeyControlledList' import cx from 'classnames' const { array, bool, func, object, string } = React.PropTypes export default class Select extends React.Component { static propTypes = { choices: array.isRequired, onChange: func.isRequired, ...
src/client/components/stage/timeline-helpers.js
fk1blow/repeak
import React from 'react'; require('./timeline.scss'); export default class TimelineHelpers extends React.Component { render() { return ( <div className="timeline-helpers"> <ol className="timeline-position cf"> {this.props.timelineList.map((item, idx) => { return <li key={id...
src/interface/layout/NavigationBar/LoadingBar/index.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import './LoadingBar.scss'; class LoadingBar extends React.PureComponent { static propTypes = { progress: PropTypes.number, chunks: PropTypes.number, }; static defaultProps = { progress: 0, chunks: 12, }; constructor(props) { ...
mdbreact/components/Jumbotron.js
ryanwashburne/react-skeleton
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; class Jumbotron extends React.Component { render() { let closeButton; const { className, children, fluid, ...attributes } = this.props; const classes = classNames( 'jumbotro...
lib/ui/components/RequestLogs/RequestRow.js
500tech/mimic
import React from 'react'; import styled from 'styled-components'; import find from 'lodash/find'; import isString from 'lodash/isString'; import isNull from 'lodash/isNull'; import isUndefined from 'lodash/isUndefined'; import get from 'lodash/get'; import API from 'api'; import UIState from 'ui/states/UIState'; impor...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-router-dom/4.1.1/es/Link.js
JamieMason/npm-cache-benchmark
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 = {...
test/regressions/tests/ListSubheader/InsetListSubheader.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { ListSubheader } from 'material-ui/List'; export default function InsetListSubheader() { return <ListSubheader inset>Title</ListSubheader>; }
packages/material/src/components/Main.js
wq/wq.app
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles(() => ({ main: { flex: '1', display: 'flex', overflowY: 'hidden' } })); export default function Main({ children }) { const classes = us...
app/addons/replication/components/remoteexample.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
packages/strapi-admin/files/public/app/components/PluginHeaderTitle/index.js
skelpook/strapi
/** * * PluginHeaderTitle * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import styles from './styles.scss'; class PluginHeaderTitle extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return ( <div className={styles.pluginHeaderTitl...
dva/wd/src/components/Form/ZCode.js
imuntil/React
import React from 'react'; import PropTypes from 'prop-types' import { delay } from '../../services/tools-fun' import styles from './ZCode.css'; class ZCode extends React.Component { constructor(props) { super(props) this.state = { limit: props.limit || 60 } } componentWillReceiveProps(nextProp...
packages/rmw-shell/src/providers/Firebase/Lists/with.js
TarikHuber/react-most-wanted
import Context from './Context' import React from 'react' const withContainer = (Component) => { const ChildComponent = (props) => { return ( <Context.Consumer> {(value) => { return <Component {...value} {...props} /> }} </Context.Consumer> ) } return ChildComponent...
src/scripts/components/EditableText/RenameButton.js
AbrahamTewa/timeline
// ******************** NodeJS packages ******************** import React from 'react'; import PropTypes from 'prop-types'; // ******************** Component ******************** function RenameButton({onClick}) { return (<a className="rename-button" href="#" onClick={onClick}> ...
src/components/seo.js
nprail/blog
/** * SEO component that queries for data with * Gatsby's useStaticQuery React hook * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { useStaticQuery, graphql } from 'gatsby' function SEO({ descripti...
src/components/HouseholdNotes/index.js
cernanb/personal-chef-react-app
import React from 'react'; import { List } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import HouseholdNoteItem from './HouseholdNoteItem'; const HouseholdNotes = ({ notes }) => ( <List data-testid="household-notes"> {notes.map(note => ( <HouseholdNoteItem key={note.id} note={note} /> ...
source/components/Loading.js
mikey1384/twin-kle
import PropTypes from 'prop-types'; import React from 'react'; import Spinner from 'components/Spinner'; import { css } from 'emotion'; Loading.propTypes = { className: PropTypes.string, innerStyle: PropTypes.object, style: PropTypes.object, text: PropTypes.string }; export default function Loading({ classN...
client/src/containers/Register.js
jeffersonsteelflex69/mytv
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Register from '../components/Register'; const mapDispatchToProps = (dispatch) => { return { registerUser: (userPool, email, password) => { console.log(userPool, email, password); userPool.signUp(email, password, [], null, ...
example/deep-route-nesting/template.js
iansinnott/react-static-webpack-plugin
import React from 'react'; const Html = (props) => ( <html lang='en'> <head> <title>{props.title}</title> </head> <body> <div id='root' dangerouslySetInnerHTML={{ __html: props.body }} /> <script src='/app.js' /> </body> </html> ); export default Html;
src/svg-icons/action/get-app.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGetApp = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); ActionGetApp = pure(ActionGetApp); ActionGetApp.displayName = 'ActionGetApp'; ActionGetApp....
7.4.0/examples/wizard/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e...
src/components/ResourceSelectControl/index.js
afoninsky/cerebral-bolierplate
import React from 'react' import _ from 'lodash' import { Decorator as cerebral } from 'cerebral-react' import DropDownMenu from 'material-ui/lib/drop-down-menu' // style="position: relative; display: inline-block; height: 48px; font-size: 15px; outline: none; width: 192px;" @cerebral({ selected: ['selected'], sph...
test/OverlayTriggerSpec.js
natlownes/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import OverlayTrigger from '../src/OverlayTrigger'; import Popover from '../src/Popover'; import Tooltip from '../src/Tooltip'; import { render } from './helpers'; describe('OverlayTrigger', function() { it('Should create OverlayTrigg...
test/components/IntroTest.js
calebrash/candywars
import React from 'react'; import { shallow } from 'enzyme'; import Intro from '../../src/components/Intro'; import configureStore from '../../src/stores'; const store = configureStore(); describe('<Intro />', () => { let component; beforeEach(() => { component = shallow(<Intro store={store} />); }); de...
src/index.js
RafaelDelboni/todo-react-redux
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tel...
src/views/chore/EditTask.js
anysome/objective
/** * Created by Layman(http://github.com/anysome) on 16/3/19. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text, TouchableOpacity, Alert} from 'react-native'; import Button from 'react-native-button'; import {analytics, styles, colors, airloy, api, L, toast, hang} from '../../app'; import uti...
turismo_client/src/components/root/rootLogin.js
leiverandres/turismo-risaralda
import React, { Component } from 'react'; import { Button, Form, Message, Container, Header } from 'semantic-ui-react'; import { Redirect } from 'react-router-dom'; import Auth from '../../utils/auth'; export default class RootLogin extends Component { constructor(props) { super(props); this.state = { ...
src/app/routes/forms/jcrop/components/OptionToggleBtn.js
backpackcoder/world-in-flames
import React from 'react' import classnames from 'classnames' export default (props)=> { return <div className="switch"> <label> <input type="checkbox" checked={props.active} onChange={ props.onToggle }/> <span className="lever" /> {props.label} ...
src/stories/loremipsumAsReact.js
zeroasterisk/react-iframe-resizer-super
import React from 'react'; export default ( <div style={{ color: 'green' }}> <h1>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</h1> <p>Vivamus consequat nisl diam. Vestibulum porttitor tempor neque vitae condimentum. Fusce lorem tellus, egestas vitae luctus bibendum, consectetur at sapien. Suspendisse urn...
agents/stories/LogOut.js
root-systems/cobuy
import React from 'react' import { storiesOf } from '@storybook/react' import { LogOut } from 'dogstack-agents/components' const actions = { authentication: { logOut: () => {} } } storiesOf('agents.LogOut', module) .add('basic', () => ( <LogOut actions={actions} /> ))
node_modules/enzyme/src/Utils.js
vallihe/wizarddemo
/* eslint no-use-before-define:0 */ import isEqual from 'lodash/isEqual'; import React from 'react'; import is from 'object-is'; import uuid from 'uuid'; import entries from 'object.entries'; import assign from 'object.assign'; import functionName from 'function.prototype.name'; import { isDOMComponent, findDOMNode...
app/javascript/mastodon/components/timeline_hint.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
node_modules/_rc-select@6.9.3@rc-select/es/util.js
ligangwolai/blog
import React from 'react'; export function getValuePropValue(child) { var props = child.props; if ('value' in props) { return props.value; } if (child.key) { return child.key; } if (child.type && child.type.isSelectOptGroup && props.label) { return props.label; } throw new Error('Need at le...
src/components/Logo.js
pavelsuraba/react-devstack
import React from 'react'; import styled from 'styled-components'; const LogoWrapper = styled.div` svg { width: ${props => props.large ? '92' : '66'}px; height: ${props => props.large ? '82' : '59'}px; } `; export default (props) => ( <LogoWrapper {...props}> <svg width="66" height...
app/js/components/pages/user.js
raphaelameaume/react-node-starter
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import UserItem from '../modules/userItem'; import * as actions from '../../actions/user'; @connect(state => ({ user: state.user })) export default class User { render...
hub-ui/src/components/svg/SvgConnector.js
lchase/hub
import React, { Component } from 'react'; export default class SvgConnector extends Component { constructor() { super(...arguments); this.state = { endPointsEnabled: true } } renderEndpoints() { var results = []; if (this.state.endPointsEnabled) { results.push() } } hand...
tests/client/amo/components/TestAddonMeta.js
jasonthomas/addons-frontend
import React from 'react'; import { renderIntoDocument } from 'react-addons-test-utils'; import { findDOMNode } from 'react-dom'; import AddonMeta from 'amo/components/AddonMeta'; import createStore from 'amo/store'; import { setLang } from 'core/actions'; import { getFakeI18nInst } from 'tests/client/helpers'; funct...
src/components/leftMenu.js
gunterh/foreman
import React from 'react'; import {Link} from 'react-router'; const LeftMenu = (props) => { const renderCategory = (category) => { return ( <li key={category.id}> <div>{category.name}</div> <div>{category.categories.map(renderCategory) }</div> </li> ...
docs/src/Routes.js
JimiHFord/react-bootstrap
import React from 'react'; import Root from './Root'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import GettingStartedPage from './GettingStartedPage'; import ComponentsPage from './ComponentsPage'; import SupportPage from './SupportPage'; import NotFoundPage from './NotFound...
docs/app/Examples/elements/Button/States/ButtonExampleActive.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleActive = () => ( <Button active>Active</Button> ) export default ButtonExampleActive
lib/overlay.js
jihdeh/react-native-dropdown
import React, { Component } from 'react'; import { Dimensions, StyleSheet, TouchableWithoutFeedback, View } from 'react-native'; const window = Dimensions.get('window'); const styles = StyleSheet.create({ container: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0 }, ove...
src/components/single-issue-view.js
r24y/github-issues
/** @babel */ import React from 'react'; import marked from 'marked'; export default class SingleIssueView extends React.Component { render() { const {issue} = this.props; const body = marked(issue.body || ''); return ( <div className="single-issue-view"> <h1> ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/recompose/es/Recompose.js
bhathiya/test
import React, { Component } from 'react'; import shallowEqual from 'fbjs/lib/shallowEqual'; import hoistNonReactStatics from 'hoist-non-react-statics'; import { createChangeEmitter } from 'change-emitter'; import $$observable from 'symbol-observable'; var setStatic = function setStatic(key, value) { return function ...
client/src/app/components/forms/inputs/Select2.js
zraees/sms-project
import React from 'react' import 'script-loader!select2/dist/js/select2.min.js' export default class Select2 extends React.Component { componentDidMount() { $(this.refs.select).select2() } componentWillUnmount() { $(this.refs.select).select2('destroy'); } render() { let {children, ...props} =...
src/icons/AndroidArrowDropleft.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidArrowDropleft extends React.Component { render() { if(this.props.bare) { return <g> <g> <polygon points="320,128 192,256 320,384 "></polygon> </g> </g>; } return <IconBase> <g> <polygon point...
app/javascript/mastodon/components/column_header.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ show: { id: 'column_header.show_settings', defaultMessage: 'Sho...
Example/index.android.js
Xabadu/react-native-jest-mocks
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Example extends Component { render() { return ( <View style={styles.container}>...
demo/react-0.14.3/react-starter-kit/src/decorators/withViewport.js
waterbolik/prestudy
/** * 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, { Component } from 'react'; // eslint-disabl...
app/javascript/mastodon/features/ui/components/bundle_column_error.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Column from './column'; import ColumnHeader from './column_header'; import ColumnBackButtonSlim from '../../../components/column_back_button_slim'; import IconButton from '../../../components/...
src/components/Main.js
lordbaby/react-gallery
require('normalize.css/normalize.css'); require('styles/main.scss'); import React from 'react'; import ReactDOM from 'react-dom'; import ImageFigure from './ImgFigure'; import ControllerUnits from './ControllerUnit'; import {getRangeRandom,get30DegRandom} from '../util/util'; //图片文件数据 let imageDatas=require('../data...
stories/Frame.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import Frame from '../src/js/components/ui/Frame/Frame.js'; storiesOf('Frame', module) .add('with text', () => ( <Frame onClickHandler={action('clicked')}> Lorem ipsum dol...
js/src/views/Status/components/CallsToolbar/CallsToolbar.spec.js
pdaian/parity
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
app/components/dashboard/calendar/EntryEvent.js
mchlltt/mementoes
// Import dependencies and components. import React from 'react'; import {Link} from 'react-router'; // Create components. let Event = React.createClass({ render: function render() { return( <Link to={'/dashboard/users/' + this.props.event.googleId + '/entries/' + this.props.event.id + '/edit/'...
client/layouts/Demo/LoginLayout.js
briefguo/learn-js
/** * 登录页面的布局组件 * * 布局组件注意点: * 1.布局组件,应该是尽量自己写的组件 * 2.不包含第三方UI库的东西,比如: * * // XXX * import { Col, Row } from 'antd' * * 3.绝对不是一个redux组件,只是一个单纯的react组件 * 4.尽量只引用react、自定义工具库utils、布局的样式 */ // 引入React、React-Redux import React from 'react' // 引入自定义组件库 import Svg from 'utils/Svg' import Styles from './Logi...
admin/client/App/screens/Home/components/Section.js
frontyard/keystone
import React from 'react'; import getRelatedIconClass from '../utils/getRelatedIconClass'; class Section extends React.Component { render () { const iconClass = this.props.icon || getRelatedIconClass(this.props.id); return ( <div className="dashboard-group" data-section-label={this.props.label}> <div class...
client/components/ui/impl/material/layouts/DrawerLayout.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import Drawer from '@mui/material/Drawer' import AppBar from '@mui/material/AppBar' import Toolbar from '@mui/material/Toolbar' import Typography from '@mui/material/Typography' import Divider from '@mui/material/Divider' import IconButton from '@mui/material...
docs/app/Examples/modules/Progress/Content/ProgressExampleLabel.js
vageeshb/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleLabel = () => ( <Progress percent={55}>Label</Progress> ) export default ProgressExampleLabel
docs/public/static/examples/v35.0.0/image-manipulator.js
exponent/exponent
import React from 'react'; import { Button, View, Image } from 'react-native'; import { Asset } from 'expo-asset'; import * as ImageManipulator from 'expo-image-manipulator'; export default class ImageManipulatorSample extends React.Component { state = { ready: false, image: null, }; componentDidMount()...
examples/real-world/containers/Root.js
heymind/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from '../store/configureStore'; import App from './App'; import UserPage from './UserPage'; import RepoPage from './RepoPage'; const store = configureStore(); export de...
pkg/commons-atom/renderReactRoot.js
JackPu/atom-weexpack
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. * * @flow */ import React from 'react'; import ReactMountRootElement from '../nuclide-ui/ReactMountRootElement'; /**...