path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
modules/RouterContextMixin.js
leeric92/react-router
import React from 'react'; import invariant from 'invariant'; import { stripLeadingSlashes, stringifyQuery } from './URLUtils'; var { func, object } = React.PropTypes; function pathnameIsActive(pathname, activePathname) { if (stripLeadingSlashes(activePathname).indexOf(stripLeadingSlashes(pathname)) === 0) retu...
tests/react/useImperativeHandle_hook.js
gabelevi/flow
// @flow import React from 'react'; { React.useImperativeHandle(); // Error: function requires another argument. } type Interface = {| focus: () => void |}; { const api: Interface = { focus: () => {} }; const ref: {current: null | Interface } = React.createRef(); React.useImperativeHandle(ref, () =...
information/blendle-frontend-react-source/app/modules/payment/components/SelectBank.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Select from 'components/Select2'; import { translate } from 'instances/i18n'; class SelectBank extends React.Component { static propTypes = { paymentMethod: PropTypes.object.isRequired, selectedBank: PropTypes.string.isRequired, onSele...
examples/src/components/SelectedValuesField.js
showoffer/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var SelectedValuesField = React.createClass({ displayName: 'SelectedValuesField', propTypes: { allowCreate: React.PropTy...
public/systemjs/app/listen.js
snowkeeper/keystonejs-site
import React from 'react' import $ from 'jquery' import _ from 'lodash' import {routes, config} from './config'; import {baseRoute, cleanPath, getFileName} from './common/util'; import Debug from 'debug' import Gab from './common/gab' let debug = Debug('keystone:app:common:listen'); let Routes = routes.map(v => { re...
web/serve/shared/components/location_list.js
zachasme/spyfall
import React from 'react' export default function Locations(props) { return ( <div> locationlist </div> ) }
test/Test.component.js
jasonslyvia/react-lazyload
import React from 'react'; export default class Test extends React.Component { constructor() { super(); this.state = { times: 1 }; } componentWillReceiveProps() { this.setState({ times: this.state.times + 1 }); } render() { return ( <div style={{ height: this.props...
src/semantics/containers/Validator.js
giux78/daf-dataportal
import React from 'react' import { withRouter } from 'react-router-dom' import { connect } from 'react-redux' import { requestValidatorsList, requestServerValidation } from '../actions/validatorActions' import { initialList, initialDetail as initialValidation } from '../config/initialStates' import ValidatorFo...
src/components/views/login/RegistrationForm.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2017 Vector Creations Ltd 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 applica...
packages/material-ui-icons/src/LiveTv.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8l7-4z" /></g> , 'LiveTv');
node_modules/react-bootstrap/es/ControlLabel.js
okristian1/react-info
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/MultiSelect/MultiSelect.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import Popup from '../Popup'; import { compare, findIdentifiables, isDefined } from '../util/utils'; import MultiSelectPopup from './MultiSelectPopup'; import { withIdAndTypeContext } ...
src/group-finder/AdUnit.js
NewSpring/Apollos
import React from 'react'; import Card, { CardContent } from '@ui/Card'; import { H4 } from '@ui/typography'; import { Link } from '@ui/NativeWebRouter'; import Button from '@ui/Button'; import styled from '@ui/styled'; import PaddedView from '@ui/PaddedView'; const Text = styled({ textAlign: 'center' })(H4); const ...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-click-confirm.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ColorSchemaMixin, CcrWriterMixin} from '../common/common.js'; import {FloatMixin} from '../layout/layout.js'; import './click-confirm.less'; export const ClickConfirm = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixi...
packages/wix-style-react/src/MessageBox/FunctionalLayout/MessageBoxFunctionalLayout.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import throttle from 'lodash/throttle'; import { generateDataAttr } from '../../utils/generateDataAttr'; import deprecationLog from '../../utils/deprecationLog'; import HeaderLayout from './HeaderLayout'; import FooterL...
client/modules/Auth/pages/LoginPage/LoginPage.js
mhmtztmr/losed
import React, { Component } from 'react'; import { connect } from 'react-redux'; import LoginForm from '../../components/LoginForm'; import authActions from '../../AuthActions'; class LoginPage extends Component { /** * Class constructor. */ constructor(props) { super(props); // set th...
src/ReactBoilerplate/Scripts/containers/Manage/Index/Index.js
theonlylawislove/react-dot-net
import React, { Component } from 'react'; import { connect } from 'react-redux'; class Index extends Component { render() { return ( <div /> ); } } export default connect( (state) => state, { } )(Index);
assets/jqwidgets/demos/react/app/chart/chartwithtabs/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js'; class App extends React.Component { render() { let source = { datatype: 'tsv', ...
src-client/scripts/truckinfo.js
iLuggit/iLuggit
import Backbone from 'backbone' import React from 'react' import ReactDOM from 'react-dom' import ACTIONS from './ACTiONS.js' import STORE from './STORE.js' import AppController from './lugg-view-controller.js' const showTruckInfo = React.createClass({ render: function (){ return ( <div className=...
docs/app/Examples/views/Statistic/Content/StatisticExampleLabels.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleLabels = () => ( <div> <Statistic> <Statistic.Value>2,204</Statistic.Value> <Statistic.Label>Views</Statistic.Label> </Statistic> <Statistic> <Statistic.Value value='2,204' /> <Statistic...
examples/js/selection/multi-select-table.js
pvoznyuk/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, ...
client/src/components/header/header.js
WesJones127/rh-dash
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as loginActions from '../../redux/actions/login'; import * as userActions from '../../redux/actions/user'; import './index.css'; class Header extends Component { componentWillReceiveProps(nextProps){ if(this.props.log...
packages/material-ui-icons/legacy/Battery80Sharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v5h10V4z" /><path d="M7 9v13h10V9H7z" /></React.Fragment> , 'Battery80Sharp');
react-ui/src/components/Reviewer/QuestionPagingArrows.js
civicparty/legitometer
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class QuestionPagingArrows extends Component { render() { const MAX_QUESTIONS = 20 const { currentId } = this.props; const hasPrevious = currentId <= 1 const hasNext = currentId >= MAX_QUESTIONS const previousId =...
src/components/TextInputStyledComponents/TextInputStyledComponents.js
abhiisheek/ps-react-abhiisheek
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styled from 'styled-components'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text...
packages/forms/src/UIForm/fields/Radios/Radios.component.js
Talend/ui
/* eslint-disable jsx-a11y/label-has-associated-control, jsx-a11y/no-autofocus */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import FieldTemplate from '../FieldTemplate'; import { generateDescriptionId, generateErrorId } from '../../Message/generateId'; import {...
src/containers/Todo/TodoContainer.js
zadzbw/webpack2-react-demo
/** * Created by zad on 17/5/3. */ import './Todo.less'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { TodoItem } from '../../components'; import { getState } from '../../reducers/Todo/TodoReducer'; import { addItem, toggleItem, removeI...
src/Accordion.js
brynjagr/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
src/js/ui/components/entryEditor.js
heartnotes/heartnotes
import _ from 'lodash'; import moment from 'moment'; import React from 'react'; import Dropdown from './dropdown'; import DateString from './date'; import DateTimePicker from './dateTimePicker'; import IconButton from './iconButton'; import IconLink from './iconLink'; import AskUserDialog from './askUserDialog'; impor...
src/routes/index.js
bjarneo/giggle
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../screens/app'; import Start from '../screens/start'; export default () => ( <Route component={ App }> <IndexRoute component={ Start } /> </Route> );
src/components/home/HomePage.js
brett9897/bblog-ui
import React from 'react'; export class HomePage extends React.Component { render() { return ( <div className="container"> <div className="row"> <div className="col-xs"> <p>This is my home page!</p> </div> <div className="col-xs"> <p>This is col...
app/components/button.js
Habi86/mimo-bac2
import React, { Component } from 'react'; import { Text } from 'react-native'; /* ------------ Components --------- */ import { Button, Icon } from 'native-base'; import Config from 'friedensflotte/app/config/config'; class myButton extends Component { render() { return ( <Button onPress={this.p...
assets/jqwidgets/demos/react/app/chart/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render () { let source = { datatype: "csv", datafields: [ { name: 'Date' }, { name: 'S&P 500' }, ...
src/todo.js
youngchou1997/xiyoumall
/** * TodoApp 模块 * @module * @exports TodoApp */ import React from 'react' import './todo.css' /** * TodoApp 类,代表 todo 组件 * @class */ class TodoApp extends React.Component { /** * @constructor * @praram {object} state - todo 的内容 */ constructor(props) { super(props) // 用 bind 来绑定 this this.ha...
lib/ErrorHelper.js
perushevandkhmelev-agency/react-native-material-textinput
import React from 'react' import { Text } from 'react-native' import PropTypes from 'prop-types' const ErrorHelper = ({ error, errorColor, errorPaddingTop, errorFontSize }) => { return ( <Text style={{ paddingTop: errorPaddingTop, color: errorColor, textAlign: 'left', fontSi...
src/svg-icons/image/collections.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
app/javascript/mastodon/features/notifications/index.js
mecab/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../ui/components/column'; import { expandNotifications, clearNotifications, scrollTopNotifications } from '../../actions/notifications'; i...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
NS-Kazuki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
src/containers/Auth/LogOutRedirect/index.js
ortonomy/flingapp-frontend
import React, { Component } from 'react'; // library dependencies import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { withRouter } from 'react-router-dom'; // component dependencies import Loader from '../../../components/Loader'; // actions import { actions } from '../../Logi...
src/components/EmailForm/EmailForm.js
zuban/edhunter
import React from 'react' import {Field, reduxForm} from 'redux-form' import { Label, } from 'reactstrap'; const EmailForm = (props) => { const {handleSubmit, pristine, reset, submitting} = props return ( <form onSubmit={handleSubmit}> <div> <Label>Интересно? Введите email и получите сслыку на ...
src/example/RandomLinks.js
gaearon/component-router
import React from 'react'; import {Url} from '../index'; const test = [ {pathname: '/test'}, {pathname: '/'}, {query: {x: 1}}, {query: {x: 100}}, {query: {y: 2}}, {query: {y: 200}}, {pathname: '/', query: {x: 1}}, {pathname: '/', query: {x: 100}}, {pathname: '/', query: {y: 1}}, {pathname: '/', qu...
node_modules/react-bootstrap/es/ButtonToolbar.js
geng890518/editor-ui
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 ...
app/addons/components/components/tabwindowwrapper.js
popojargo/couchdb-fauxton
import FauxtonAPI from '../../../core/api'; import PropTypes from 'prop-types'; import React from 'react'; import {TabElement, TabElementWrapper} from './tabelement'; export class TabWindowWrapper extends React.Component { constructor (props) { super(props); } render () { const {selectedTab, tabs} = t...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupColored.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleGroupColored = () => ( <Button.Group color='blue'> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> ) export default ButtonExampleGroupColored
src/components/profile/main/MainProfile.js
simnau/event-scraper-ui
import React from 'react'; function MainProfile() { return ( <div> Main Profile! </div> ); } export default MainProfile;
dawn/renderer/components/TooltipButton.js
pioneers/PieCentral
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Glyphicon, OverlayTrigger, Tooltip, } from 'react-bootstrap'; const TooltipButton = (props) => { const tooltip = ( <Tooltip id={`tooltip-editor-button-${props.id}`}>{props.text}</Tooltip> ); return ( <OverlayTrigger p...
src/routes/appRoutes.js
armaniExchange/shield
// Libraries import React from 'react'; import { Route } from 'react-router'; // Components import App from '../containers/App/App'; import DashboardPage from '../containers/DashboardPage/DashboardPage'; import TaskPage from '../containers/TaskPage/TaskPage'; import PTOPage from '../containers/PTOPage/PTOPage'; // Dem...
app/components/DateTimePicker.js
desktop-assistant/desktop-assistant
// @flow import React, { Component } from 'react'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import DatePicker from './DatePicker'; import TimePicker from './TimePicker'; import styles from './DateTimePicker.scss'; export default class DateTimePicker extends Component { props: { in...
app/javascript/mastodon/features/compose/components/character_counter.js
vahnj/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
app/javascript/mastodon/containers/compose_container.js
tri-star/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
docs/src/examples/views/Item/Content/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const Content = () => ( <ExampleSection title='Content'> <ComponentExample title='Image' description='An item can co...
src/js/Components/Board.js
RoyalSix/myBiolaApp
import React, { Component } from 'react'; import { View, Text, ScrollView, TextInput, Image, TouchableOpacity } from 'react-native'; import { write_message } from 'assets'; const IOS_SCROLL_OFFEST = 264; export default class Board extends Component { constructor(props) { ...
tests/Rules-isAlphanumeric-spec.js
hanbar/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
src/svg-icons/image/color-lens.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorLens = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4...
test/integration/css-fixtures/transition-react/pages/other.js
zeit/next.js
import React from 'react' import Link from 'next/link' import css from './other.module.css' export default class Other extends React.Component { ref = React.createRef() constructor(props) { super(props) this.state = { color: null, } } componentDidMount() { this.setState({ color: w...
src/svg-icons/communication/clear-all.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationClearAll = (props) => ( <SvgIcon {...props}> <path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/> </SvgIcon> ); CommunicationClearAll = pure(CommunicationClearAll); CommunicationClearAll.di...
spec/javascripts/jsx/gradezilla/default_gradebook/components/ViewOptionsMenuSpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/semantics/components/VocabularyDetail/components/DistButtons/DistButtons.js
giux78/daf-dataportal
import React from 'react'; import { Media, Row, Card, CardText } from 'reactstrap'; import { arrDataParser } from '../../../../util/dataParser' import { isEmpty } from '../../../../util/commonUtils' const IconXML = 'xml.svg' const IconJSON = 'json.svg' const IconCSV = 'csv.svg' const IconXLSX = 'xlsx.svg' const IconP...
src/components/list-todos.js
wvus-dev-meetup/todoapp
import React from 'react'; import ToDo from './todo'; import EditTodo from './edit-todo'; import PropTypes from 'prop-types'; const ListToDos = (props) => { const toDoList = props.toDoList.map( (item) => { if(item.isEditing) { return <EditTodo key={item.id} id={item.id} title={item.title} ...
components/Logger.js
pattern/react-poker
'use strict'; import React from 'react'; class Logger extends React.Component { componentWillMount() { console.log('Logger logging!!'); } } export default Logger;
examples/todomvc/containers/Root.js
nverba/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ( <Provider...
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js
VikingDen/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...
app/addons/activetasks/components/tableheader.js
apache/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...
src/index.js
vrunjeti/muserino
/*eslint-disable import/default*/ import React from 'react' import {render} from 'react-dom' import App from './App' import './styles/styles.scss' render( <App />, document.getElementById('app') )
test/integration/image-component/default/pages/layout-fill.js
JeromeFitz/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Layout Fill</p> <div style={{ position: 'relative', width: '600px', height: '350px' }}> <Image id="fill1" src="/wide.png" layout="fill" /> </div> <p>Layout Fill</p> <div style={{ ...
src/components/UsersList/index.js
jmikrut/keen-2017
import React, { Component } from 'react'; import { connect } from 'react-redux'; import User from './User'; import './UsersList.css'; import signIn from './dooropen.wav'; const mapStateToProps = state => ({ socket: state.connection.socket, users: state.chat.users, thread: state.chat.thread, muted: state.common.mu...
src/sections/OrganisationSection/OrganisationSection.js
sjchmiela/inspirowani.pl
import React from 'react'; import Section from '../../components/Section/Section'; import piarists from './piarists.jpg'; import dap from './dap.jpg'; import liceum from './liceum.jpg'; import './OrganisationSection.scss'; export default ({ zIndex }) => ( <Section className="OrganisationSection" zIndex={zIndex}> ...
src/components/BurgerIcon.js
negomi/react-burger-menu
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class BurgerIcon extends Component { constructor(props) { super(props); this.state = { hover: false }; } getLineStyle(index) { return { position: 'absolute', height: '20%...
app/components/ScoreGame.js
georgeF105/handball-scoring
import React from 'react' import ReactTimeout from 'react-timeout' import TeamTableContainer from './containers/TeamTableContainer' import EventsTable from './EventsTable' import ScoreGameTimerContainer from './containers/ScoreGameTimerContainer' import { formatScore } from '../../lib/formatNumber' import { EVENT_GOAL...
src/components/ShareExperience/common/ExperienceInYear.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import Select from 'common/form/Select'; import InputTitle from './InputTitle'; import shareStyles from './share.module.css'; import { experienceInYearOptions } from './optionMap'; const ExperienceInYear = ({ jobTitle, experienceInYear, onChange }) => (...
app/components/LoginCard/index.js
kevinnorris/bookTrading
import React from 'react'; import { FormControl } from 'react-bootstrap'; import ActionButton from 'components/ActionButton'; import CenterCard from 'components/CenterCard'; import Title from 'components/Title'; import ServerError from 'components/ServerError'; import MarginFormControl from 'components/MarginFormContr...
src/js/components/Register.js
alexbance/rp-centre
import React, { Component } from 'react'; import { Grid, Row, Col } from 'react-flexbox-grid'; import RefreshIndicator from 'material-ui/RefreshIndicator'; import axios from 'axios'; import TextField from './ValidatedTextField'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton';...
frontend/react-stack/react/cdc-admin/src/components/Button.js
wesleyegberto/courses-projects
import React, { Component } from 'react'; export default class Button extends Component { render() { return ( <div className="pure-control-group"> <label></label> <button type="submit" className="pure-button pure-button-primary">{this.props.value}</button> </div> ); } }
lib/convertToReact.js
yummies/core
import React from 'react'; import isPlainObject from 'lodash.isplainobject'; import buildClassName from './buildClassName'; import throwError from './throwError'; const defaultTag = 'div'; /** * Convert BEMJSON-object into ReactElement. */ export default function convertToReact(json, context) { // array if...
app/components/Sidebar/index.js
trevornelson/wld-frontend
/** * * Sidebar * */ import React from 'react'; import { Link } from 'react-router'; import { stack as Menu } from 'react-burger-menu'; import Logo from 'components/Logo'; import Container from './Container'; class Sidebar extends React.PureComponent { constructor(props) { super(props); this.state = { ...
src/svg-icons/av/web.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWeb = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/> </SvgIcon> ); AvWeb = pur...
imports/ui/components/resident-details/accounts/private-account/private-account.js
gagpmr/app-met
import React from 'react'; import { Link } from 'react-router'; import { UnpaidPa } from './unpaid-pa.js'; import { UnpaidPaTotal } from './unpaid-pa-total.js'; import * as Styles from '/imports/modules/styles.js'; import { UpdateResident } from '/imports/api/residents/methods.js'; export class PrivateAccount extends ...
addons/themes/phantom/includes/MenuItems.js
rendact/rendact
import React from 'react'; class MenuItems extends React.Component { handleClose(e){ e.preventDefault() document.body.className = "" } render(){ return( <nav id="menu"> <div className="inner"> <h2>Menu</h2> {this.props.theMenu()} <ul></ul> </div> ...
node_modules/react-navigation/lib-rn/views/CardStack.js
gunaangs/Feedonymous
import React, { Component } from 'react'; import clamp from 'clamp'; import { Animated, StyleSheet, PanResponder, Platform, View, I18nManager, Easing } from 'react-native'; import Card from './Card'; import Header from './Header'; import NavigationActions from '../NavigationActions'; import addNavigationHelpers from ...
src/components/header.js
evansantos/evansantos.github.io
import React from 'react' import styled from 'styled-components' import Link from 'gatsby-link' class Header extends React.Component { render() { return ( <div>HELLO</div> ) } } // const Header = ({ siteTitle }) => ( // <div // style={{ // background: 'rebeccapurple', // marginBotto...
mobile/project/js/components/RecordList/index.js
CornellProjects/hlthpal
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Actions, ActionConst } from 'react-native-router-flux'; import { Container, Card, Header, Title, Content, Text, Button, Icon, Left, Body, Right,Input,InputGroup,Item,Col,Radio,List,ListItem } from 'native-base'; import { Grid, Row...
src/Parser/Warlock/Destruction/Modules/Items/Legendaries/AlythesssPyrogenics.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import Enemies from 'Parser/Core/Modules/Enemies'; import ItemDamageDone from 'Main/ItemDamageDone'; import getDamageBo...
src/App.js
imcvampire/simple-online-form
import React from 'react' import { BrowserRouter, Route, Redirect, Switch } from 'react-router-dom' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import Navbar from './components/Navbar' import CreateQuestion from './pages/CreateQuestion' import AnswerQuestion from './pages/AnswerQuestion' const ...
examples/counter-example/index.js
team-gryff/react-monocle
import React from 'react'; import { render } from 'react-dom'; import App from './src/App'; // const node = document.createElement('div'); // document.body.appendChild(node); render(<App />, document.getElementById('root'));
tests/Rules-isFloat-spec.js
yesmeck/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
src/textarea/textarea.js
ricsv/react-leonardo-ui
import React, { Component } from 'react'; import { luiClassName } from '../util'; class Textarea extends Component { constructor(props) { super(props); this.focus = this.focus.bind(this); } focus() { this.element.focus(); } render() { const { className, children, variant, ...
app/javascript/mastodon/features/compose/components/action_bar.js
primenumber/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
src/svg-icons/notification/airline-seat-recline-normal.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatReclineNormal = (props) => ( <SvgIcon {...props}> <path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5...
real_estate_agency/react_ui/src/resale/StickyBoxBottomLines/LengthLine.js
Dybov/real_estate_agency
import React from 'react'; import SimpleLine from './SimpleLine' import { Length } from '../../localization/formats' export default class LengthLine extends SimpleLine { constructor(props){ super(props) this.WrappedComponent = <Length value={props.r} decPlaces={1} /> } }
src/svg-icons/device/signal-wifi-off.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifiOff = (props) => ( <SvgIcon {...props}> <path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.4...
source/components/Supporter/Target/index.js
everydayhero/impact-board
import React from 'react' import numbro from 'numbro' import css from 'cxsync' import styles from '../styles' export default ({ raised, target }) => { const complete = raised >= target const remaining = target - raised const percentage = Math.min(raised / target * 100, 100) + '%' return ( <div classNa...
src/screens/MyPage/Feedback.js
alphasp/pxview
import React, { Component } from 'react'; import { View, StyleSheet, DeviceEventEmitter, InteractionManager, Keyboard, } from 'react-native'; import database from '@react-native-firebase/database'; import { connect } from 'react-redux'; import { withTheme, TextInput } from 'react-native-paper'; import DeviceI...
src/components/Footer/Footer.js
fkenk/Majsternia
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 withStyles from 'isom...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
TondaHack/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
src/interface/others/PlayerBreakdown.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPECS from 'game/SPECS'; import SpecIcon from 'common/SpecIcon'; import { formatNumber } from 'common/format'; class PlayerBreakdown extends React.Component { static propTypes = { report: PropTypes.object.isRequired, playersById: PropType...
stories/RichTextArea/index.js
skyiea/wix-style-react
import React from 'react'; import {storiesOf} from '@storybook/react'; import InteractiveCodeExample from '../utils/Components/InteractiveCodeExample'; import Markdown from '../utils/Components/Markdown'; import ReadmeTestkit from '../../src/RichTextArea/README.TESTKIT.md'; import TabbedView from '../utils/Components/...
ajax/libs/react-instantsearch/3.2.0/Dom.js
froala/cdnjs
/*! ReactInstantSearch 3.2.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
src/js/components/SkipLinkTarget/SkipLinkTarget.js
grommet/grommet
import React from 'react'; import styled from 'styled-components'; import { Anchor } from '../Anchor'; const HiddenAnchor = styled(Anchor)` width: 0; height: 0; overflow: hidden; position: absolute; `; export const SkipLinkTarget = ({ label, ...rest }) => ( <HiddenAnchor {...rest} tabIndex="-1" aria-hidden...
examples/dynamic-segments/app.js
ryardley/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentCenter.js
clemensw/stardust
import React from 'react' import { Grid, Menu } from 'semantic-ui-react' const GridExampleTextAlignmentCenter = () => ( <Grid textAlign='center' columns={3}> <Grid.Row> <Grid.Column> <Menu fluid vertical> <Menu.Item className='header'>Cats</Menu.Item> </Menu> </Grid.Column> ...