path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
es6/DatePicker/panel/TimeSelectPanel.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceForm.js
snagoor/katello
import React from 'react'; import { ActionGroup, Button, Form, Grid, GridItem, } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import PropTypes from 'prop-types'; import FormField from './FormField'; const ContentSourceForm = ({ handleSubmit, environments, ...
docs/app/Examples/modules/Search/Types/SearchExampleCategoryCustom.js
aabustamante/Semantic-UI-React
import PropTypes from 'prop-types' import React from 'react' import { Label } from 'semantic-ui-react' import SearchExampleCategory from './SearchExampleCategory' const categoryRenderer = ({ name }) => <Label as={'span'} content={name} /> categoryRenderer.propTypes = { name: PropTypes.string, } const resultRend...
definitions/npm/react-library-paginator_v2.x.x/flow_v0.25.x-v0.103.x/test_react-library-paginator_v2.x.x.js
flowtype/flow-typed
// @flow import { describe, it } from 'flow-typed-test'; import React from 'react'; import PaginatorContainer from 'react-library-paginator'; describe('PaginatorContainer ', () => { const handlePageChange = (page: number) => {}; it('should accept all props', () => { <PaginatorContainer totalItems={10} ...
examples/js/advance/auto-rowkey-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; const jobTypes = [ 'A', 'B', 'C', 'D' ]; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { const id = startId + i; jo...
src/icons/SkipForward.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SkipForward extends React.Component { render() { if(this.props.bare) { return <g> <style type="text/css"> .st0{fill:#010101;} </style> <path class="st0" d="M436.3,96h-8.1c-6.7,0-12.2,5-12.2,11.7v113.5L228....
assets/registration/components/Field.js
janta-devs/nyumbani
import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import DatePicker from 'material-ui/DatePicker'; class Field extends Component{ render() { const divStyle = { marginRight: '2px', margin: '1px auto' }; var name = "past_job_"+this.props.unique; var title = "title_"+...
templates/src/containers/ExpContainer/stuIngExp.js
chenym1992/create-react-frame
import React from 'react' import { connect } from 'react-redux' import { Prompt } from 'react-router' import { Layout, Breadcrumb, Tabs, Row, Col, Form, Button, message } from 'antd' // 富文本编辑器 import CKEDITOR from 'ckeditor' import store from 'store' import ExpForm from 'components/ExpForm' import E...
components/panel/button.js
jsis/jsconf.is
import React from 'react' import { Link } from 'react-router' import './button.scss' const PanelButton = ({ href, children, ...rest }) => ( <span className="PanelButton"> <Link className="PanelButton-link" to={href} {...rest}>{children}</Link> <span className="PanelButton-shadow" /> </span> ) PanelButton....
analysis/deathknightblood/src/modules/talents/Voracious.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import TalentStatisticBox from 'parser/ui/TalentStatisticBox'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; class Voracious extends Analyzer { con...
example/enable/src/stories/index.js
sm-react/storybook-chapters
/* eslint-disable import/no-extraneous-dependencies */ /* eslint-disable react/jsx-filename-extension */ import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; const info = text => () => ( <div> <h4>Info about:</h4> <p>{text}</p> <button onClick={action(`you selected ${text}`...
pootle/static/js/shared/components/CodeMirror.js
translate/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle 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'; import * as CM from 'codemirro...
auth/src/App.js
haaswill/ReactNativeCourses
import React, { Component } from 'react'; import { View } from 'react-native'; import firebase from 'firebase'; import { Header, Button, Spinner, CardSection } from './components/common'; import LoginForm from './components/LoginForm'; class App extends Component { state = { loggedIn: null }; componentWillMount()...
src/app/components/Meetings/Form.js
sphinxominator/councils-feathers
import React from 'react' import styled from 'styled-components' import { graphql } from 'react-apollo' import { connect } from 'react-redux' import { pure, compose, withState, withHandlers, withProps } from 'recompact' import { MeetingsQuery, GroupsQuery, CreateMeeting } from '../../queries' import displayLoadingSta...
frontend/Article 2/src/index.js
thebillkidy/TodoListFluxReactHapi
import React from 'react'; import routes from './routes'; // Install the routes React.render(routes, document.body);
modules/Lifecycle.js
taion/rrtr
import warning from './routerWarning' import React from 'react' import invariant from 'invariant' const { object } = React.PropTypes /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On standard ...
src/components/home_old/HomeRightComponent.js
madsid/spz
import React from 'react'; import {Link} from 'react-router'; export default class HomeRightComponent extends React.Component { static propTypes = { children : React.PropTypes.element } render () { return ( <div id="homerightlayout"> <div id="sorters" className="row"> <select cl...
app/components/Table/Edit/index.js
rayrw/skygear-apitable
import React, { Component } from 'react'; import ReactGA from 'react-ga'; import _ from 'lodash'; import { fromJS } from 'immutable'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import { cleanup } from 'utils/helpers'; import Layout from '../../Layout'; import L...
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js
mxw0417/actor-platform
import _ from 'lodash'; import Immutable from 'immutable'; import keymirror from 'keymirror'; import React from 'react'; import { Styles, TextField, FlatButton } from 'material-ui'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import ContactStore from 'stores/ContactStore'; import Cont...
src/Button.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; import ButtonInput from './ButtonInput'; const Button = React.createClass({ mixins: [BootstrapMixin], propTypes: { active: React.PropTypes.bool,...
imports/ui/Player.js
dandev237/score-keep
/** * Created by Daniel on 11/06/2017. */ import React from 'react'; import PropTypes from 'prop-types'; import {Players} from './../api/player.js'; export default class Player extends React.Component { render() { let itemClassName = `item item--position-${this.props.player.rank}`; return( ...
src/components/Assets/Icons/Sings.js
HopeUA/tv.hope.ua-react
import React, { Component } from 'react'; import svg from 'helpers/svg'; @svg({ width: 290, height: 440 }) /* eslint-disable */ export default class Sings extends Component { render () { return ( <g id="XMLID_15_" fill="#fff"> <path id="XMLID_16_" d=...
src/index.js
nadavspi/react-bookshelf
import React from 'react'; import { Router } from 'react-router'; import { history } from 'react-router/lib/BrowserHistory'; import routes from './config/routes'; import { createStore, combineReducers, applyMiddleware } from 'redux'; import thunkMiddleware from 'redux-thunk'; import loggerMiddleware from 'redux-logger'...
src/frontend/react/App.js
FakeYou/voerr
import React from 'react'; import { Link } from 'react-router'; import Nav from 'react/components/nav'; import LoginActions from 'flux/actions/LoginActions'; import 'assets/style/app'; export default class App extends React.Component { componentWillMount() { LoginActions.requestUser(); } componentDidUpdate() {...
packages/my-joy-instances/src/mocks/editor.js
geek/joyent-portal
import React from 'react'; export default () => <span>joyent-maifest-editor</span>;
relay-demo/relay-treasurehunt/js/app.js
zhangjunhd/react-examples
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
test/HotKeys/CombinationsInvolvingShiftAndAltKey.spec.js
Chrisui/react-hotkeys
import React from 'react'; import {mount} from 'enzyme'; import {expect} from 'chai'; import sinon from 'sinon'; import FocusableElement from '../support/FocusableElement'; import {HotKeys} from '../../src/'; import AltShiftKeyMappings from '../support/AltShiftKeyMappings'; describe('Combinations involving shift and...
docs/src/HomePage.js
AlexKVal/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageFooter from './PageFooter'; import Grid from '../../src/Grid'; import Alert from '../../src/Alert'; import Glyphicon from '../../src/Glyphicon'; import Label from '../../src/Label'; export default class HomePage extends React.Component{ render()...
src/components/headings.js
codeforboston/cliff-effects
// REACT COMPONENTS import React from 'react'; import { Header } from 'semantic-ui-react'; /** <h1> styles available for form (and other) text. * * @function * @param {object} props * @property {string} props.subheading - For when some * kind of clarifier is needed. * @property {object} props.children - Ususally ...
crowdpact/static/js/crowdpact.js
joshmarlow/crowdpact
import {fromJS} from 'immutable'; import React from 'react'; import 'whatwg-fetch'; import LandingApp from './apps/landing/components/LandingApp'; import PactHomeApp from './apps/pact/home/components/PactHomeApp'; const APPS = { LandingApp, PactHomeApp }; global.CrowdPact = { render(appName, pageData, m...
app/components/ComponentSelectorPane.js
react-rpm/react-rpm
import React from 'react'; import PropTypes from 'prop-types'; import styles from './../assets/componentSelectorPane.css'; import { colors } from './../assets/colors.js'; const ComponentSelectorPane = (props) => { const {componentOptions, handleComponentClick} = props; // const toggleSelectedClass = styles.unse...
src/components/login/LoginForm.js
xavierlefevre/react-hot-redux-firebase-starter
import React from 'react'; import TextInput from '../common/TextInput'; const LoginForm = ({user, onSave, onChange, saving}) => { return ( <form> <h1>Login</h1> <TextInput name="email" label="Email" onChange={onChange} value={user.email} /> <TextInput ...
src/svg-icons/av/web-asset.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
TestDemos/examples/BookExamples/XA-3-2/Component/RegisterLeaf.js
AzenXu/ReactNativeTest
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, Dimensions } from 'react-native'; let {width, height, scale} = Dimensions.get('window'); let leftMarin = width * 0.1; let componentWidth = width * 0.8; let ConfirmDialog = require('./ConfirmDialog');...
src/components/course/course-form.js
joilson-cisne/react-redux-es6
import React from 'react'; import TextInput from '../common/text-input'; import SelectInput from '../common/select-input'; const CourseForm = ({course, allAuthors, onSave, onChange, saving, errors}) => { return ( <form> <h1>Manage Course</h1> <TextInput name="title" ...
src/client/components/Challenge/Challenge.js
johannessiig/clac
import React, { Component } from 'react'; const Challenge = ({ c }) => ( <div className="challenge--container"> <div>{c.challenge} = {c.challengePotentialAnswer} ?</div> </div> ) export default Challenge;
src/svg/iosSVG.js
auth0/web-header
import React from 'react'; const IosSVG = () => <svg height="18px" width="15px" version="1.1" viewBox="0 0 15 18"> <g fill="none" stroke="none" strokeWidth="1"> <g fill="#EB5424" transform="translate(-2333.000000, -275.000000)"> <g transform="translate(2297.000000, 116.000000)"> <g transf...
src/svg-icons/hardware/keyboard-voice.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardVoice = (props) => ( <SvgIcon {...props}> <path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6....
frontend/src/containers/DevToolsWindow.js
CoderBotOrg/coderbotsrv
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
examples/async/containers/Root.js
Gazler/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
elements/Mask.js
msand/react-native-svg
import React from 'react'; import { requireNativeComponent } from 'react-native'; import extractTransform from '../lib/extract/extractTransform'; import extractProps, { propsAndStyles } from '../lib/extract/extractProps'; import units from '../lib/units'; import Shape from './Shape'; export default class Mask extends ...
scripts/story_template.js
zzarcon/skatepark.js
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import 'skateparkjs-pkg_name'; import options from './defaultStoryOptions'; storiesOf('pkg_name', module) .addWithInfo('Default options', () => ( <sk-pkn_name></sk-pkn_name> ), options)
docs/app/Examples/elements/Step/Content/StepExampleDescriptions.js
aabustamante/Semantic-UI-React
import React from 'react' import { Step } from 'semantic-ui-react' const StepExampleDescriptions = () => ( <div> <Step.Group> <Step> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> </Step> </Step.Group> <br /> <Step.Gro...
react-flux-mui/js/material-ui/src/svg-icons/image/texture.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTexture = (props) => ( <SvgIcon {...props}> <path d="M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 ...
src/routes.js
TriOxygen/react-isomorphic-template
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from 'containers/App'; import Home from 'containers/Home'; import TransitionTest from 'components/TransitionTest'; import UserCreateForm from 'containers/User/UserCreateForm'; import UserEditForm from 'containers/User/UserEditForm';...
src/client/shoppingcart/coupons.js
r3dDoX/geekplanet
import Divider from '@material-ui/core/Divider'; import IconButton from '@material-ui/core/IconButton'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'; import ListItemText from ...
frontend/src/InteractiveImport/Interactive/InteractiveImportModalContentConnector.js
geogolem/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import * as commandNames from 'Commands/commandNames'; import { executeCommand } from 'Store/Actions/commandActions'; import { clearInte...
test/CollapseSpec.js
kwnccc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Collapse from '../src/Collapse'; describe('Collapse', function () { let Component, instance; beforeEach(function(){ Component = React.createClass({ render(){ let { children, ...props } = this.props; ...
app/components/Editor/index.js
kme211/srt-maker
// @flow import React, { Component } from 'react'; import styles from './styles.css'; import TranscriptModal from './components/TranscriptModal'; import Transcript from './components/Transcript'; import WaveformPeaks from './components/WaveformPeaks'; import getTimeString from '../../utils/getTimeString'; import getVal...
src/index.js
bodymovin/bodymovin-extension
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/parser/rogue/assassination/modules/talents/Blindside.js
FaideWW/WoWAnalyzer
import React from 'react'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import EnemyInstances from 'pa...
js/common/WLPlayer.js
sotayamashita/wizardsLifeCounter
// @flow import React from 'react'; import type {Id, Score} from '../types/'; import {View, Text, TouchableHighlight, StyleSheet } from 'react-native'; type Props = { id: Id, score: Score, rotate: boolean, onChangeScore: (id: Id, score: Score) => void, }; class Player extends React.Component { onChangeSco...
src/components/withViewport.js
CHANGHUOO/myHole
/** * 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...
tests/routes/Home/components/HomeView.spec.js
RequestTimeout408/alba-task
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders some text', () => { const text = _component.find('p') expect(text...
docs/src/examples/views/Item/Content/ItemExampleDescriptions.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Item } from 'semantic-ui-react' const description = [ 'Cute dogs come in a variety of shapes and sizes. Some cute dogs are cute for their adorable faces, others for their', 'tiny stature, and even others for their massive size.', ].join(' ') const ItemExampleDescriptions = () =>...
src/Popover.js
asiniy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/apps/marklet/Routes.js
aredotna/ervell
import React from 'react' import { Switch, Route } from 'react-router-dom' import PropTypes from 'prop-types' import parseRoute from 'v2/util/parseRoute' import Extension from 'v2/components/Bookmarklet/components/Extension' import withLoginStatus from 'v2/hocs/WithLoginStatus' import Layout from 'v2/components/Book...
src/parser/warlock/demonology/modules/talents/SummonVilefiend.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/StatisticListBoxItem'; import PETS from '../pets/PETS'; import Dem...
src/component/HeaderSection/index.js
Goblinlordx/cv-gen
import React from 'react'; import Section from 'component/Section'; import styles from 'styles'; import './style.css'; const {ga} = window; const photoStyle = { width: '100%', filter: 'grayscale(100%)', }; const photoContainerStyle = { position: 'relative', height: 0, width: '100%', padding: 5, overflo...
components/FormList.js
jordancappy/jorder
import React from 'react'; import FormBlock from './FormBlock'; import FormCreateModal from './FormCreateModal'; class FormList extends React.Component { constructor(props) { super(); this.state = { forms: [] }; } componentDidMount() { this.loadForms(); } loadForms() { $.get('/api/forms', (da...
examples/js/column-filter/select-filter-with-sort.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
fields/types/number/NumberColumn.js
xyzteam2016/keystone
import React from 'react'; import numeral from 'numeral'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var NumberColumn = React.createClass({ displayName: 'NumberColumn', propTypes: { col: React.PropTypes.object, data: React.PropTyp...
src/svg-icons/editor/insert-chart.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertChart = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); Editor...
packages/showcase/axes/static-hints.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/components/Logout/Logout.js
worknation/client.work.nation
import { d } from 'lightsaber/lib/log' import React from 'react' import Auth from '../../models/Authentication' export default class Logout extends React.Component { componentWillMount() { Auth.logout() this.props.history.push('/') } render() { return null } }
src/Button/Button.js
boldr/boldr-ui
import React, { Component } from 'react'; import cxN from 'classnames'; import omit from 'lodash.omit'; import PropTypes from 'prop-types'; // import Link from 'react-router-dom/Link'; import TouchRipple from '../util/TouchRipple'; const BLACK_LIST = [ 'type', 'size', 'htmlType', 'block', 'component', 'dis...
src/core/index.js
sashafklein/ballot-marker
import React from 'react'; import { Router } from 'react-native-router-flux'; import { Provider } from 'react-redux'; import _ from 'lodash'; import { fromJS } from 'immutable'; import createStore from '../store/create'; import scenes from './scenes'; const store = createStore(); if (window) { window._ = _; wind...
src/app/components/footer/index.js
JulianIsrael/basic-react-boilerplate
import React from 'react'; //import Divider from 'components/divider'; const Footer =() => { return ( <div> </div> ); } export default Footer;
react/app/Model.js
yogeshkhatri1989/hn
import React, { Component } from 'react'; class Model extends Component { constructor(props) { super(props); } closeModel() { this.props.history.goBack(); } render() { return ( <div className="model-cont"> <div className="backdrop" onClick={this.closeModel.bind(this)}> </...
app/components/AddTrackModal.js
jackokerman/react-discogs-dj
import React from 'react'; import { Modal, Form, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; export default class AddTrackModal extends React.Component { render() { if (this.props.track === null) { return null; } const { artist, title } = this.props.track; return (...
client/src/components/NotFound.js
mukeshrawat02/react-redux-login-flow
import React, { Component } from 'react'; class NotFound extends Component { render() { return ( <div> <h1>404 - Page Not Found</h1> <p>I'm sorry, the page you were looking for cannot be found!</p> </div> ) } } export default NotFound;
example/src/Screens/Home.js
maisano/react-router-transition
import React from 'react'; import { Link } from 'react-router-dom'; import { css } from 'glamor'; import Screen from './Screen'; const rule = css` padding: 0 5rem; width: 960px; max-width: 100%; box-sizing: border-box; margin: 0 auto; @media(max-width: 600px) { padding: 0 3rem 3rem; } `; const tit...
server/ViewModels/Home.js
demyanenko/hutel
import React from 'react'; import PropTypes from 'prop-types'; import AppBar from 'material-ui/AppBar'; import Divider from 'material-ui/Divider'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'materia...
public/js/containers/Root.js
nowordforfree/react-cv
import React from 'react'; import { connect } from 'react-redux'; import Paper from 'material-ui/Paper'; import Topbar from './Topbar'; import Spinner from '../components/Spinner'; class Root extends React.Component { componentWillReceiveProps(nextProps) { if (this.props.signedIn !== nextProps.signedIn) { ...
src/svg-icons/av/skip-previous.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipPrevious = (props) => ( <SvgIcon {...props}> <path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/> </SvgIcon> ); AvSkipPrevious = pure(AvSkipPrevious); AvSkipPrevious.displayName = 'AvSkipPrevious'; AvSkipPrevious.mu...
packages/react-scripts/template/src/index.js
appier/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import { ConnectedRouter } from 'react-router-redux'; import { Provider } from 'react-redux'; import App from 'components/App'; import configure from 'store'; import history from 'store/history'; import registerServiceWorker from './registerServiceWorker'; im...
src/scripts/components/EntityList.js
Tankenstein/encountr
import React, { Component } from 'react'; import EntityHolder from './EntityHolder'; class EntityList extends Component { constructor(props) { super(props); this.state = { dragging: undefined }; } shouldComponentUpdate(nextProps, nextState) { return (nextProps.entities !== this.props.entities || ...
ajax/libs/react-instantsearch/4.5.2/Dom.js
ahocevar/cdnjs
/*! ReactInstantSearch 4.5.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
packages/login/src/components/Login/View.js
simonrelet/days-off
import React from 'react'; import PropTypes from 'prop-types'; import injectSheet from 'react-jss'; import styles from './styles'; function Login({ classes, username, password, onChange, onLogin }) { const disabled = !username || !password; return ( <form className={classes.login} onSubmit={onLogin}> <i...
src/svg-icons/action/bookmark.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBookmark = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionBookmark = pure(ActionBookmark); ActionBookmark.displayName = 'Ac...
graphwalker-studio/src/main/js/components/editor/index.js
GraphWalker/graphwalker-project
import React, { Component } from 'react'; import styled from 'styled-components'; import EditorTabs from './editor-tabs'; import EditorPanel from "./editor-panel"; const EditorContainer = styled.div` display: flex; flex-direction: column; height: 100%; width: 100%; background-color: #FFFFFF; `; export defau...
src/components/post_index.js
SabyasachiDhar/react101
import React, { Component } from 'react'; import { connect } from 'react-redux'; // import { bindActionCreators } from 'redux'; import { fetchPosts } from '../actions/index'; import { Link } from 'react-router'; class PostsIndex extends Component { componentWillMount(){ this.props.fetchPosts(); } ...
website/src/index.js
Steviey/win-react-navigation
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import BrowserAppContainer from './BrowserAppContainer'; import './prism.css'; import './App.css'; import '@blueprintjs/core/dist/blueprint.css'; const ClientApp = BrowserAppContainer(App); ReactDOM.render( <ClientApp />, docum...
src/svg-icons/device/signal-wifi-3-bar-lock.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3BarLock = (props) => ( <SvgIcon {...props}> <path opacity=".3" d="M12 3C5.3 3 .8 6.7.4 7l3.2 3.9L12 21.5l3.5-4.3v-2.6c0-2.2 1.4-4 3.3-4.7.3-.1.5-.2.8-.2.3-.1.6-.1.9-.1.4 0 .7 0 1 .1L23.6 7c-.4-...
packages/ringcentral-widgets/components/PresenceSettingSection/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import presenceStatus from 'ringcentral-integration/modules/Presence/presenceStatus'; import dndStatus from 'ringcentral-integration/modules/Presence/dndStatus'; import IconLine from '../IconLine'; impor...
src/BottomNavigation/BottomNavigationItem.spec.js
w01fgang/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import BottomNavigationItem from './BottomNavigationItem'; import FontIcon from '../FontIcon/FontIcon'; import getMuiTheme from '../styles/getMuiTheme'; describe('<BottomNavigationItem />', () => { const mu...
app/scripts/components/metric-selector-item.js
hustbill/network-verification-ui
import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { hoverMetric, pinMetric, unpinMetric } from '../actions/app-actions'; import { selectedMetricTypeSelector } from '../selectors/node-metric'; const messageToUser = 'Alert! Please check containers network'; c...
src/layouts/Nav.js
hiddaorear/Theory
import React, { Component } from 'react'; import { Link } from 'react-router'; class Nav extends Component { render() { return ( <nav> <Link to="/">Home</Link> </nav> ) } } export default Nav;
src/index.js
legAphysiq/photo-gallery
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('content'));
app/features/vocab/Level/Notice.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import Element from 'common/components/Element'; import H3 from 'common/components/H3'; import A from 'common/components/A'; Notice.propTypes = { ids: PropTypes.arrayOf(PropTypes.number), isLocked: PropTypes.bool, }; function Notice({ ids, isLocked }...
demos/demo/src/components/Today/index.js
idream3/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state} from 'cerebral/tags' import {displayElapsed, displayTime} from '../../helpers/dateTime' import tasksByDay from '../../computed/tasksByDay' import Date from '../Date' export default connect( { projects: state`projects.all.**`, tas...
mdbreact/components/View.js
ryanwashburne/react-skeleton
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; class View extends React.Component { render() { const { className, children, tag: Tag, ...attributes } = this.props; const classes = classNames( 'view', className ...
client/modules/App/__tests__/Components/Footer.spec.js
suchostone/ekinder
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
components/learn/syllabus-tree/syllabus-tree-container.js
coderplex/coderplex
import React from 'react'; import styled from 'react-emotion'; import { withRouter } from 'next/router'; import TreeView from './syllabus-tree-component'; export default withRouter( class SyllabusTree extends React.Component { state = { nodeStateTracker: [false, ...this.props.data.map(() => true).slice(1)]...
components/connected/avatar/index.js
marrus-sh/mastodon-go
// <ConnectedAvatar> // ================= // `account` gives our main account, while `comrade` gives another // (eg, the account of a reblogger) which is displayed as an overlay. // Avatars are squares by default; `circular` gives a circular one if // your sensibilities roll that direction. // * * * * * * * /...
app/page/NetFetch.js
LiuJunb/reactNativeTest
/** * React Native Demo * https://github.com/trinea/react-native-demo * @Trinea */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; var ACCESS_URL = 'https://www.baidu.com'; var USER_LIST_URL='http://192.168.80.238:8080/JavaWebService/servlet/UserAc...
myriad-scheduler/src/main/resources/webapp/js/components/FlexUpComponent.js
apache/incubator-myriad
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
src/@ui/ContentView/index.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { compose, pure, setPropTypes } from 'recompose'; import styled from '@ui/styled'; import Placeholder from '@ui/Placeholder'; import { VideoHeader, ImageHeader, AudioBanner } from './Media'; export { default as ...
docs/app/Examples/addons/Radio/States/Disabled.js
jamiehill/stardust
import React from 'react' import { Form, Radio, Field } from 'stardust' const RadioDisabledExample = () => ( <Form> <Form.Field> <Radio label='Disabled' disabled /> </Form.Field> <Form.Field> <Radio type='toggle' label='Disabled' disabled /> </Form.Field> </Form> ) export default Radio...
app/javascript/mastodon/components/load_more.js
glitch-soc/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...