path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/components/ui/quote.js
xavier-besson/react-playground
import React from 'react'; import Default from 'components/ui/default'; /** * @class Quote * @extends Default */ class Quote extends Default { /** * React method. * Return a single React element. * This element can be either a representation of a native DOM component, * such as <div />, or another compos...
test/JumbotronSpec.js
deerawan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Jumbotron from '../src/Jumbotron'; describe('Jumbotron', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Jumbotron> <strong>Content</strong>...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallPad/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ActiveCallPad from 'ringcentral-widgets/components/ActiveCallPad'; import callCtrlLayouts from 'ringcentral-widgets/enums/callCtrlLayouts'; const props = {}; props.onMute = () => null; props.onUnmute = () => null; props.onHold = () => null; props.onUnhold =...
pages/blog/test-article-one.js
el-besto/examples
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 1</h1> <p>Co...
packages/react/src/components/FluidForm/FluidForm.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { settings } from 'carbon-componen...
docs/app/Examples/elements/Label/Types/LabelExamplePointingColored.js
ben174/Semantic-UI-React
import React from 'react' import { Divider, Form, Label } from 'semantic-ui-react' const LabelExamplePointing = () => ( <Form> <Form.Field> <input type='text' placeholder='First name' /> <Label basic color='red' pointing>Please enter a value</Label> </Form.Field> <Divider /> <Form.Field>...
node_modules/react-bootstrap/es/Tabs.js
GregSantulli/react-drum-sequencer
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/public/js/repository.js
TooAngel/democratic-collaboration
import React from 'react'; import PropTypes from 'prop-types'; import styles from '../../../static/css/repository.module.css'; /** * Repository class **/ export class Repository extends React.Component { // eslint-disable-line no-unused-vars /** * contructor - The constructor * * @param {object} props - T...
client/src/app/main/dashboard/dashboard-edit-profile/dashboard-edit-profile-page.js
opensupports/opensupports
import React from 'react'; import {connect} from 'react-redux'; import _ from 'lodash'; import API from 'lib-app/api-call'; import i18n from 'lib-app/i18n'; import { getCustomFieldParamName } from 'lib-core/APIUtils'; import SessionActions from 'actions/session-actions'; import AreYouSure from 'app-components/are-you...
definitions/npm/radium_v0.19.x/test_radium-v0.19.x.js
davidohayon669/flow-typed
// @flow import React from 'react'; import Radium from 'radium'; import type { FunctionComponent } from 'radium' type Props1 = { a: number, b: string }; const C1: FunctionComponent<Props1, void> = (props: Props1) => <div>{props.a} {props.b}</div> type Props2 = { a: number, b: string, }; class C2 ext...
templates/rubix/demo/src/routes/Maps.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Grid, Form, Panel, Button, FormGroup, PanelBody, InputGroup, FormControl, PanelHeader, PanelContainer, } from '@sketchpixy/rubix'; class MapContainer extends React.Component { render() { return ( <PanelContainer> <Panel> ...
src/components/general/Input.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Col, ControlLabel, FormControl, FormGroup, } from 'react-bootstrap'; const styles = { label: { marginTop: '7px', textAlign: 'right', }, }; const types = { EMAIL: 'email', PHONE: 'phone', NUMBER: 'number', ...
imports/components/Toaster.js
naustudio/nau-jukebox
/* © 2017 NauStud.io * @author Eric */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Toaster extends Component { static propTypes = { open: PropTypes.bool, text: PropTypes.string, time: PropTypes.number, type: PropTypes.oneOf(['success', 'error']), onClose: PropTypes....
app/javascript/mastodon/features/compose/components/search.js
3846masa/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; const messages = defineMessages({ placeholder: { id: 'search.placeholder', defaultMessage: 'Search' }, }); class Search extends React.PureComponent { static propTypes = { ...
src/routes/withTracker.js
wearepush/redux-starter
import React, { Component } from 'react'; import { object } from 'prop-types'; import GoogleAnalytics from 'react-ga'; const googleAnaliticsId = process.env?.GOOGLE_ANALITICS_ID; if (googleAnaliticsId) { GoogleAnalytics.initialize(googleAnaliticsId); } export default function withTracker(WrappedComponent, options ...
src/components/MyMainMenu.js
fredrikku/rikku-grommet-react-sample
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import MenuIcon from 'grommet/components/icons/base/Menu'; import Anchor from 'grommet/components/Anchor'; import Menu from 'grommet/components/Menu'; import Box from 'grommet/components/Box'; const MainMenu = (props)...
node_modules/@material-ui/core/esm/Link/Link.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { capitalize } from '../utils/helpers'; import withStyles from '../styles/withStyle...
src/svg-icons/image/colorize.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorize = (props) => ( <SvgIcon {...props}> <path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3...
src/components/login/LoginForm.js
hugofrely/chat-react-redux
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 ...
frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import EditRootFolderModalContentConnector from './EditRootFolderModalContentConnector'; function EditRootFolderModal({ isOpen, onModalClose, ...otherProps }) { return ( <Modal isOpen={isOpen} o...
src/buttons/Button.js
kosiakMD/react-native-elements
import PropTypes from 'prop-types'; import React from 'react'; import { TouchableNativeFeedback, TouchableHighlight, StyleSheet, View, Platform, ActivityIndicator, Text as NativeText, } from 'react-native'; import colors from '../config/colors'; import Text from '../text/Text'; import MaterialIcon from 'r...
src/routes/index.js
cmosguy/react-redux-auth0
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import App from '../components/...
src/js/components/tool-header.js
pfb3cn/react_bootcamp_exercise
import React from 'react'; export class ToolHeader extends React.Component { static propTypes = { header: React.PropTypes.string }; render() { return <h1>Color Tool</h1>; } }
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
test/specs/views/Feed/FeedDate-test.js
koenvg/Semantic-UI-React
import faker from 'faker' import React from 'react' import FeedDate from 'src/views/Feed/FeedDate' import * as common from 'test/specs/commonTests' describe('FeedDate', () => { common.isConformant(FeedDate) common.rendersChildren(FeedDate) it('renders text with date prop', () => { const text = faker.hacker...
code/frontend/src/components/Dashboard/index.js
CPSC319-2017w1/coast.the-terminal
import React from 'react'; import PropTypes, { instanceOf } from 'prop-types'; import { connect } from 'react-redux'; import { withCookies, Cookies } from 'react-cookie'; import DashboardComponent from './Dashboard.jsx'; import { switchView } from '../../actions/main-actions.js'; const mapStateToProps = state => { r...
src/js/view/LoginForm.js
marqusm/react-client-template
import React from 'react'; import {Field, reduxForm} from 'redux-form'; import {RaisedButton} from "material-ui"; import {TextField} from "redux-form-material-ui"; class LoginForm extends React.Component { componentDidMount() { this.ref // the Field .getRenderedComponent() // on Field, returns ReduxFormMate...
src/Xword.js
bcopeland/xwordjs
// @flow import React, { Component } from 'react'; import Modal from 'react-modal'; import FileInput from './FileInput.js'; import Server from './Server.js'; import Cell from './Cell.js'; import Clues from './Clues.js'; import Loading from './Loading.js'; import {TimerState, Timer} from './Timer.js'; import { Route, Sw...
app/containers/Home.js
sandim27/ReduxApp
import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import UploadBlock from '../components/UploadBlock'; export default class Home extends Component { constructor(props){ super(props); this.state = { newNamePhoto: '', newPhoto: {}, activeName: true, }; ...
src/components/title/Title.js
jshack3r/ws-redux-counters-router
import React from 'react' class Title extends React.Component { constructor(props) { super(props) } componentDidMount() { this.props.onLoad() } render() { let { onClick } = this.props return <h2 className="text-muted" onClick={onClick} style={{cursor:'pointer'}}>Redux Counters</h2> } } Tit...
client/components/App.js
Kamill90/Dental
import React from 'react'; import NavigationBar from './client/NavigationBar'; export default ({ children }) => { return( <div> <NavigationBar/> <div className="container">{children}</div> </div> ) };
packages/react-error-overlay/src/containers/StackFrame.js
appier/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
resources/assets/js/components/AppComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { fetchUser } from '../actions/userProfileActions'; import { hideModal } from '../actions/modals/modalActions'; import { connect } from 'react-redux'; import Modal from 'react-modal'; import LateralMenu from './LateralMenu'; import AlertsComponent from './AlertsComponent...
app/javascript/mastodon/components/admin/ReportReasonSelector.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { injectIntl, defineMessages } from 'react-intl'; import classNames from 'classnames'; const messages = defineMessages({ other: { id: 'report.categories.other', defaultMessage: 'Other' }, spam: { id: 'report.categ...
app/javascript/mastodon/features/list_adder/components/list.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from '../../../components/icon_button'; import { defineMessages, inject...
client/src/app/components/voice-control/components/SpeechButton.js
zraees/sms-project
import React from 'react' import {Popover, OverlayTrigger} from 'react-bootstrap' import {bindActionCreators} from 'redux' import * as VoiceActions from '../VoiceActions' import {connect} from 'react-redux'; import SpeechHelp from './SpeechHelp' class SpeechButton extends React.Component { hidePopover = ()=> { ...
hit-the-road-react/src/components/RentalsMap.prev.js
buckmelton/hit-the-road
import React, { Component } from 'react'; // import GoogleApiComponent from 'google-maps-react'; import '../css/App.css'; import '../css/normalize.css'; import '../css/skeleton.css'; // Google Maps API key: AIzaSyCFwE9ezzuQGddycwRrZ1K3BvRzFVQGvvg const __GAPI_KEY__ = "AIzaSyCFwE9ezzuQGddycwRrZ1K3BvRzFVQGvvg"; class R...
client/src/components/layouts/Sidebar.js
banderson/reactive-stock-ticker-demo
import React from 'react'; export default ({children}) => ( <aside className="col-xs-3"> {children} </aside> );
modules/dreamview/frontend/src/components/DefaultRouting/CycleNumberInput.js
ApolloAuto/apollo
import React from 'react'; import _ from 'lodash'; import CheckboxItem from 'components/common/CheckboxItem'; export default class CycleNumberInput extends React.Component { constructor(props) { super(props); this.state = { cycleNumber: 1, isCycling: false, }; this.sendCycleDefaultRouti...
src/svg-icons/action/theaters.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTheaters = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </SvgI...
react/JobCard/components/SellingPoint/SellingPoint.js
seekinternational/seek-asia-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import styles from './SellingPoint.less'; import Text from '../../../Text/Text'; const SellingPoint = ({ sellingPoints, showSellingPoint }) => { if (!showSellingPoint || !sellingPoints) { return null; } return ( <ul className={styles.selling...
src/main.js
warcraftlfg/warcrafthub-client
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
fields/types/text/TextColumn.js
dvdcastro/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, linkTo: React.PropType...
client/components/FlassCommon/Video/VideoTimePanel/VideoTimePanelComponent.js
Nexters/flass
import React from 'react'; import PropTypes from 'prop-types'; import VideoDurationComponent from '../VideoDurationComponent'; import './VideoTimePanelComponentStyles.scss'; const propTypes = { duration: PropTypes.number.isRequired, elapsed: PropTypes.number.isRequired }; const defaultProps = { }; const VideoT...
src/components/WPSWranglerDemo.spec.js
maartenplieger/datascienceplatform-frontend
import React from 'react'; import WPSWranglerDemo from './WPSWranglerDemo'; import { mount } from 'enzyme'; import sinon from 'sinon'; describe('(Component) WPSWranglerDemo', () => { let _component; const _dispatch = sinon.spy(); const incrementFunc = sinon.spy(); const _actions = { incrementCounter: incre...
src/svg-icons/action/view-stream.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewStream = (props) => ( <SvgIcon {...props}> <path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/> </SvgIcon> ); ActionViewStream = pure(ActionViewStream); ActionViewStream.displayName = 'ActionViewStream'; Acti...
src/docs/components/LabelDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Label from 'grommet/components/Label'; import Anchor from 'grommet/components/Anchor'; import DocsArticle from '../../components/DocsArticle'; import Code from '../../components/Code'; Label.displayNa...
src/components/TabContent/TabContent.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; const TabContent = props => { const { selected, children, ...other } = prop...
frontend/src/components/SearchBar.js
OwenRay/Remote-MediaServer
/* eslint-disable no-underscore-dangle */ /** * Created by owenray on 19/07/2017. */ import React, { Component } from 'react'; import { Button, Icon, Input, Row } from 'react-materialize'; import { deserialize } from 'redux-jsonapi'; import store from '../helpers/stores/settingsStore'; class SearchBar extends Compo...
src/components/Input.js
abdulhannanali/github-organization-repos
import React from 'react'; import classnames from 'classnames'; import '../styles/Input.css'; const Input = (props) => { const classNames = classnames(['form-control', 'Input']); return ( <div className="form-group"> <input type="text" className={classNames} maxLength="39" {...props} ...
Agenda/src/components/esqueciSenha.js
interlegis/agenda-evento
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import _ from 'lodash'; import { recuperarSenha } from '../actions'; import { FIELD_ESQUECI_SENHA } from './forms/fields_types'; class EsqueciSenha extends Component{ handleSubmitForm({ email }){ this.props.recuperarSenha({ email }...
shopping-cart-app/src/components/routes/AddNewStore/AddNewStore.js
JCFlores/shoppingCart
import React, { Component } from 'react'; import Header from '../../Header'; import AddNewStoreAction from './AddNewStoreAction' import './AddNewStore.css'; class Signup extends Component { constructor(props) { super(props); console.log(props); this.state = { storeName: '', description:...
js/jqwidgets/demos/react/app/grid/foreignkeycolumn/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let employeesSource = { datatype: 'xml', datafields: [ { name: 'First...
src/components/DropdownButton/DropdownButton.stories.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import DropdownButton from './DropdownButton'; import Icons from '../icons'; import { wrapComponentWithContainerAndTheme, colors } from "../styles"; const SFIcon = Icons.ColoredSalesforceIcon; const buttonAction = (selectedOption) => { alert(...
src/components/routeToTab1.js
dfw-chris-diaz/react-demo
import React from 'react'; import MainPage from './mainPage'; const defaultTab = 1; export default function RouteToTab1(){ return( <MainPage defaultTab={defaultTab} /> ); }
node_modules/react-bootstrap/es/Grid.js
ASIX-ALS/asix-final-project-frontend
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 ...
examples/cra/src/components/Placeholder.js
bluetidepro/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Placeholder.css'; /** * Image placeholders. */ export default class Placeholder extends Component { static propTypes = { type: PropTypes.oneOf([ 'animal', 'bacon', 'beard', 'bear', 'cat', 'food', 'city', ...
src/components/footer.js
ninalouw/portfolio
import React, { Component } from 'react'; import { Link } from 'react-router'; import FontAwesome from 'react-fontawesome'; import FontIcon from 'material-ui/FontIcon'; import {red500, yellow500, blue500} from 'material-ui/styles/colors'; import {Row, Col} from 'react-materialize'; class Footer extends Component { ...
src/modules/Input/components/SocketSettings/index.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import styled from 'styled-components'; import Button from '../../../components/Button'; import ButtonGroup from '../../../components/ButtonGroup'; import Close from '../../../components/icons/Close'; import Gear from ...
src/components/AppContent/index.js
currency-cop/currency-cop
import React from 'react' class AppContent extends React.Component { componentDidMount() { this.screen = this.props.screenAction } componentDidUpdate() { if (this.props.screenAction != this.screen) { this._div.scrollTop = 0 this.screen = this.props.screenAction } } render () { l...
src/components/Header/__tests__/index.js
henriquesosa/electron-intro
jest.unmock('./') import React from 'react' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import Header from './' describe('Header Component', () => { it('shows a title', () => { // const Header = TestUtils.renderIntoDocument( // <Header /> // ) // const HeaderNode = Rea...
src/components/layout/Layout.js
gribnoysup/diy-dog-search
import React from 'react' import styled from 'styled-components' import {fontFamilyMonospace} from '../common/Typography' export const Container = styled.div` width: 100%; height: 100%; display: flex; flex-direction: column; ` Container.displayName = 'Container' const HeaderDiv = styled.div` color: #ffffff...
app/src/App.js
sfelderman/inverted-index
import React, { Component } from 'react'; import DragSubmit from './DragSubmit'; import SearchBar from './search/SearchBar'; import DisplaySearch from './display/DisplaySearch'; import styles from './App.css'; class App extends Component { render() { return ( <div style={styles}> <DragSubmit /> ...
example/story.js
yangshun/react-storybook-addon-chapters
import { storiesOf } from '@storybook/react'; import React from 'react'; import Button from './Button'; storiesOf('Addon Chapters', module) .addWithChapters( 'Story With Chapters', { useTheme: false, subtitle: 'Display multiple components within one story!', info: ` React Storybook Chapters a...
source/components/DataHandler/DataHandler.js
cloud-walker/react-inspect
import React from 'react' import is from 'ramda/src/is' import pipe from 'ramda/src/pipe' import addIndex from 'ramda/src/addIndex' import map from 'ramda/src/map' import keys from 'ramda/src/keys' import stripFunction from '../../utils/stripFunction' import Level from '../Level' import Punctuation from '../Punctuatio...
fluent-react/examples/async-messages/src/index.js
zbraniecki/fluent.js
import React from 'react'; import ReactDOM from 'react-dom'; import { AppLocalizationProvider } from './l10n'; import App from './App'; ReactDOM.render( <AppLocalizationProvider userLocales={navigator.languages}> <App /> </AppLocalizationProvider>, document.getElementById('root') );
src/svg-icons/hardware/keyboard-tab.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardTab = (props) => ( <SvgIcon {...props}> <path d="M11.59 7.41L15.17 11H1v2h14.17l-3.59 3.59L13 18l6-6-6-6-1.41 1.41zM20 6v12h2V6h-2z"/> </SvgIcon> ); HardwareKeyboardTab = pure(HardwareKeyboard...
src/components/Svg/Expand.js
bibleexchange/be-front-new
import React from 'react'; class Expand extends React.Component { render() { return ( <svg className='expand' x='0' y='0' viewBox='0, 0,250, 250'> <g transform="translate(1.05932,1.0593224)"> <path d="M 15.217893,234.60694 12.5,231.71388 l 0,-82.10694 C 12.5,69.166666 12.550746,67....
app/components/FunctionTestForm/requestBodyBuilder.js
fission/fission-ui
/** * * RequestBodyBuilder * */ import React from 'react'; import AceEditor from 'react-ace'; import 'brace/mode/json'; import 'brace/mode/xml'; import 'brace/mode/plain_text'; import 'brace/theme/monokai'; class RequestBodyBuilder extends React.Component { // eslint-disable-line react/prefer-stateless-function ren...
src/views/AboutView.js
dapplab/babel-client
import React from 'react'; import { Link } from 'react-router'; const AboutView = () => ( <div className='container text-center'> <h1>This is the about view!</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ); export default AboutView;
src/LearnWordsFast/Client/js/components/ChangeLanguages.js
drussilla/LearnWordsFast
import React from 'react'; import Reflux from 'reflux'; import _ from 'lodash'; import {Input, Button, Panel} from 'react-bootstrap'; import {UserSettingsStore, UserSettingsActions} from '../stores/UserSettingsStore'; import {LanguagesStore, LanguagesActions} from '../stores/LanguagesStore'; const ChangeLanguages = Re...
app/components/TemplateItemComponent.js
okmttdhr/pull-request-templates
import React from 'react'; import { Link } from 'react-router' import classNames from 'classnames' import TemplateActions from '../actions/TemplateActions' class TemplateItemComponent extends React.Component { static propTypes = { template: React.PropTypes.object.isRequired }; static defaultProps = {}; ...
examples/05 Customize/Handles and Previews/Container.js
arnif/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import BoxWithImage from './BoxWithImage'; import BoxWithHandle from './BoxWithHandle'; @DragDropContext(HTML5Backend) export default class Container extends Component { ...
app/javascript/mastodon/features/compose/components/warning.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...
src/parser/deathknight/blood/modules/core/DeathsCaress.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import SpellUsable from 'parser/shared/modules/SpellUsable'; const RANGE_WHERE_YOU_SHOULDNT_DC = 12; // yrd clas...
frontend/app/index.js
briancappello/flask-react-spa
import 'babel-polyfill' // this must come before everything else otherwise style cascading doesn't work as expected import 'main.scss' import { AppContainer as HotReloadContainer } from 'react-hot-loader' import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/createBrowse...
examples/js/column/column-align-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/components/header/Palette.js
numb86/image-editor
// @flow import React from 'react'; import {DRAW_LINE} from '../actionLayer/ActionLayer'; import type {ActionLayerName} from '../actionLayer/ActionLayer'; import type {ChangeableActionLayerSettings} from '../../state/generateActionLayerSettings'; const COLOR_LIST = [ '#000', // 黒 '#fff', // 白 '#f00', // 赤 '#...
frontend/src/components/submitcast/CastRoleInput.js
tdv-casts/website
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card'; import Chip from 'material-ui/Chip'; import FlatButton from 'material-ui/FlatButton'; import FastForward from 'material-ui/svg-icons/av/fast-forward'; import Done from 'm...
packages/veritone-widgets/src/widgets/EngineSelection/EngineListView/EngineListContainer/EngineSelectionRow/index.js
veritone/veritone-sdk
import React from 'react'; import { connect } from 'react-redux'; import { bool, object, func, string, shape, any } from 'prop-types'; import { get } from 'lodash'; import { Lozenge, Truncate } from 'veritone-react-common'; import { modules } from 'veritone-redux-common'; const { engine: engineModule } = modules; im...
packages/cockpit/ui/src/components/Layout.js
iurimatias/embark-framework
import React from 'react'; import {NavLink as RNavLink} from 'react-router-dom'; import {Link, withRouter} from 'react-router-dom'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import { UncontrolledTooltip, DropdownItem, DropdownMenu, DropdownToggle, Nav, NavItem, NavLink, Co...
test/InputSpec.js
tonylinyy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Input from '../src/Input'; import Button from '../src/Button'; import DropdownButton from '../src/DropdownButton'; import MenuItem from '../src/MenuItem'; import {shouldWarn} from './helpers'; describe('Input', function () { it(...
app/components/Home.js
mswiszcz/pagebuilder
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; import Card from './Home/Card'; import Header from './common/Header'; import moment from 'moment'; import { PROJECT_DATE_FORMAT } from '../model/project'; import { STATUS } from '../reducers/gatsby...
resources/assets/js/components/SearchBookComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import { runSearch } from '../actions/searchActions'; import { createAssignment } from '../actions/crudActions'; import { showModal } from '../actions/modals/modalActions'; import BookDetailsM...
frontend/src/components/partners/profile/modals/addVerificationModal/verificationQuestion.js
unicef/un-partner-portal
import React from 'react'; import { withStyles } from 'material-ui/styles'; import PropTypes from 'prop-types'; import Typography from 'material-ui/Typography'; import SpreadContent from '../../../../common/spreadContent'; import PolarRadio from '../../../../forms/fields/PolarRadio'; import TextForm from '../../../../f...
test/index.spec.js
bokuweb/react-balloon
import React from 'react'; import { shallow, mount } from 'enzyme'; import assert from 'power-assert'; import sinon from 'sinon'; import ResizableAndMovable from 'react-resizable-and-movable'; import Balloon from '../src/index'; const mouseMove = (node, x, y) => { const event = document.createEvent('MouseEvents'); ...
modules/Common/SearchBox.js
cloudytimemachine/frontend
import React from 'react' import { Link } from 'react-router' import { browserHistory } from 'react-router' export default React.createClass({ getInitialState: function() { return { url: '' }; }, handleURLChange: function(e) { this.setState({ url: e.target.value }); }, contextTypes: { router: Rea...
src/index.js
miraks/react-autolink-text
import React from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; import matchParser from './match_parser'; export default class AutoLinkText extends React.Component { shouldComponentUpdate = shouldPureComponentUpdate render() { const text = this.props.text; const target = th...
src/components/RouteRenderer/__tests__/testRouteRenderer.js
mixcloud/react-url-router
/* @noflow */ import React from 'react'; import RouteRenderer from '../'; import {mount} from 'enzyme'; import Urls from '../../../urls'; import RouteContext from '../../RouteContext'; const urls = new Urls({'home': '/', 'user:profile': '/u/:username/'}); const context = { router: { history: {}, l...
packages/web/src/components/Account/Forgot.js
hengkx/note
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Input, message, Button } from 'antd'; import { Link } from 'react-router-dom'; import './less/account.less'; const FormItem = Form.Item; class Forgot extends React.Component { static propTypes = { form: PropTypes.object.isRequired, ...
src/svg-icons/image/gradient.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-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 18H7v-2h2v2z...
node_modules/react-router/es/Prompt.js
lousanna/sinatrademo
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/components/ResetPasswordForm.js
react-auth/react-auth
import React from 'react'; import { Link } from 'react-router'; import utils from '../utils'; import LoginLink from '../components/LoginLink'; import { forgotPassword } from '../actions'; class DefaultResetPasswordForm extends React.Component { render() { return ( <ResetPasswordForm {...this.props}> ...
client/containers/SignUpContainer.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import config from 'gen/config-client' import BlankLayout from 'client/components/layout/BlankLayout' import {Link} from 'client/util/route' import {Card, SimpleButton, TextField, Row, Col, Typography} from 'ui/admin' import {client} from '../middleware/graph...
src/index.js
Aleczhang1992/gallery-by-react
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('app'));
demo/components/TodosList.js
bradparks/cerebral__web_app_state_with_debugger
import React from 'react'; import Todo from './Todo.js'; import {Decorator as Cerebral} from 'cerebral-react'; @Cerebral({ todos: ['visibleTodos'], isAllChecked: ['isAllChecked'] }) class TodosList extends React.Component { renderTodo(todo, index) { return <Todo key={index} index={index} todo={todo}/> } ...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
hmoraes/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAp...
app/components/workflow-toggle.spec.js
jelliotartz/Panoptes-Front-End
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import WorkflowToggle from './workflow-toggle'; const workflow = { display_name: 'test workflow', id: '1' }; describe('WorkflowToggle', () => { let wrapper; let handleToggleSpy; before(() =>...
src/components/build_panel.js
RexSkz/drone-ui
import Humanize from './humanize'; import React from 'react'; import TimeAgo from 'react-timeago'; import zhStrings from 'react-timeago/lib/language-strings/zh-CN' import buildFormatter from 'react-timeago/lib/formatters/buildFormatter' import './build_panel.less'; export default class BuildPanel extends React.Compon...
admin/client/App/elemental/ScreenReaderOnly/index.js
rafmsou/keystone
import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; function ScreenReaderOnly ({ className, ...props }) { props.className = css(classes.srOnly, className); return <span {...props} />; }; const classes = StyleSheet.create({ srOnly: { border: 0, clip: 'rect(0,0,0,0)', height: ...