path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/app/components/pages/components/BottomNavigation/Page.js
lawrence-yu/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import bottomNavigationReadmeText from './README'; import BottomNavigationExampl...
src/renderer/components/Sidebar/index.js
BeatPlus/Protonmail
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; import SettingsIcon from './settings-icon.svg'; import SidebarItem from '../SidebarItem'; import styles from './style.scss'; const Sideba...
src/index.js
alexander183/wilks-web
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/svg-icons/action/redeem.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRedeem = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.1...
app/components/add-variable-button.js
BrackCurly/qwery-me
import React from 'react'; import Toggle from '../containers/toggle'; import ToggleButton from './toggle-button'; import VariableTypeSelect from './variable-type-select'; export default class AddVariableButton extends React.Component { render () { return ( <div className="add-variable-button"> <Tog...
src/containers/AddTodo.js
chriswitko/idiomatic-redux-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { addTodo } from '../actions'; import * as actions from '../actions'; import { getCurrentUser } from '../reducers'; class AddTodo extends Component { constructor(props) { super(props); this.state = {value: ''}; this....
investninja-web-ui-admin/src/vendor/recharts/demo/component/CartesianAxis.js
InvestNinja/InvestNinja-web-ui
import React from 'react'; import { Surface, CartesianAxis } from 'recharts'; export default React.createClass({ render () { let ticks = [ { value: 10, coord: 50 }, { value: 1000, coord: 100 }, { value: 20, coord: 150 }, { value: 40, coord: 200 }, { value: 90, coord: 250 } ]; ...
clients/libs/slate-editor-components/src/modal/ModalButton.js
nossas/bonde-client
/* eslint-disable no-undef */ /* eslint-disable react/prop-types */ import React from 'react' // FIXME: Needs to handle assets files to work with SSR // eslint-disable-next-line @typescript-eslint/no-var-requires if (require('exenv').canUseDOM) require('./ModalButton.module.css') const Container = ({ children }) => (...
stories/BasicContentState/index.js
michalko/draft-wyswig
/* @flow */ import React, { Component } from 'react'; import { Editor } from '../../src'; class BasicContentState extends Component { state = { contentState: JSON.parse('{"entityMap":{},"blocks":[{"key":"1ljs","text":"Initializing from content state","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRan...
imports/ui/pages/UserCheckPaymentStatus/UserCheckPaymentStatus.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, HelpBlock , Alert , Button , Well , Jumbotron ,Table , Label , ButtonGroup} from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import { withTracker } from 'meteor/react-meteor-data'; import { GetNameFromUserId , Capitali...
src/svg-icons/action/label.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabel = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/> </SvgIcon> ); A...
src/components/SubPage.js
alcat2008/react-starter-boilerplate
import React from 'react'; // eslint-disable-next-line react/prefer-stateless-function class SubPage extends React.Component { render() { return ( <div>I am page {this.props.params.index}!</div> ); } } export default SubPage;
app/components/tables/Table.js
restoko/restoko-desktop-app
import React, { Component } from 'react'; import TableCollection from './TableCollection'; import PageListHeader from '../commons/PageListHeader'; import PageFormHeader from '../commons/PageFormHeader'; import FormContainer from '../commons/FormContainer'; import TableCreateForm from './Form'; export default class Tab...
assets/js/containers/AccountListContainer.js
nicksergeant/leather
import Immutable from 'immutable'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Link } from 'react-router'; import { centsToDollars } from '../data/utils'; import { connect } from 'react-redux'; import { selectActiveAccount, selectAllAccountsSorted, } from '../selectors/acc...
frontend/src/Components/Markdown/InlineMarkdown.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Link from 'Components/Link/Link'; class InlineMarkdown extends Component { // // Render render() { const { className, data } = this.props; // For now only replace links const markdownBlocks = []; ...
src/components/authenticate/authenticate.js
slaweet/lisk-nano
import React from 'react'; import { handleChange, authStatePrefill, authStateIsValid } from '../../utils/form'; import ActionBar from '../actionBar'; import AuthInputs from '../authInputs'; import InfoParagraph from '../infoParagraph'; class Authenticate extends React.Component { constructor() { super(); thi...
frontend/app/js/components/settings/overview.js
serverboards/serverboards
import React from 'react' import GenericForm from 'app/components/genericform' import rpc from 'app/rpc' import {merge, servername} from 'app/utils' import i18n from 'app/utils/i18n' import {SectionMenu} from 'app/components' class Default extends React.Component{ constructor(props){ super(props) this.state ...
src/react/dropdown/DropDownCloser.js
laundree/laundree
// @flow import React from 'react' import PropTypes from 'prop-types' export default class DropDownCloser extends React.Component<{children: *}, *> { generateOnClick = (fn: Function) => (evt: Event) => { if (fn) fn(evt) this.context.closeDropDown() } child () { return React.Children.only(this.props....
src/routes/App.js
noamr/volunteers
import React from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom' import VolunteerListTab from './VolunteerListTab/VolunteerListTab'; import ShiftManager from './Shifts/ShiftManager'; import Header from '../components/Header/Header'; function App() { return ( <Router> <div> ...
src/routes/Battle/components/ChooseFirstAttack.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import _ from 'lodash' import ContentContainer from 'components/ContentContainer' import CenterMidContainer from 'components/CenterMidContainer' import GeneralRoulette from 'components/GeneralRoulette...
examples/transitions/app.js
samidarko/react-router
import React from 'react'; import { Router, Route, Link, History, Lifecycle } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard">Dashboard</Link></li> <li><Link to="/form">Form</Link></li> </ul> {this.props...
packages/material-ui-icons/src/FontDownload.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13h1.86l5.11 13h-2.09z" /></g> , 'FontDownload');
app/components/Parser.js
sdlfj/eq-roll-tracker
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as ParserActions from '../actions/parser'; import styles from './Parser.css'; import RollList from './RollList'; import type { rollType } from '../reducers/parser'; import sound...
src/DropdownStateMixin.js
leozdgao/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; /** * Checks whether a node is within * a root nodes tree * * @param {DOMElement} node * @param {DOMElement} root * @returns {boolean} */ function isNodeInRoot(node, root) { while (node) { ...
daily-frontend/src/components/Content/Contents.js
zooyalove/dailynote
import React from 'react'; const Contents = ({ children }) => { return ( <div className="contents-wrapper"> {children} </div> ); }; export default Contents;
src/js/components/character-list/character-list-item.js
trwalker/marvel-react
import React from 'react'; import { Link } from 'react-router' class CharacterListItem extends React.Component { constructor(props) { super(props); this.character_ = props.character; } render() { var imgStyle = { width:'100%', height: '260px' }; return ( <div ...
public/js/components/matches/MatchContainer.react.js
TRomesh/Coupley
import React from 'react'; import Match from './Match.react'; import List from 'material-ui/lib/lists/list'; import MatchStore from '../../../stores/MatchStore'; import MatchActions from '../../../actions/MatchActions'; const MatchContainer = React.createClass({ getInitialState: function () { return { ...
src/components/InputToggle.js
jeffslofish/open-source-help-wanted
import React from 'react'; import PropTypes from 'prop-types'; const InputToggle = ({ leftLabel, rightLabel, reference }) => { return ( <div className='input-element'> <label>{leftLabel}</label> <input type='checkbox' ref={reference} /> <label>{rightLabel}</label> </div> ); }; InputToggl...
frontend/src/components/FAQ.js
gbezyuk/django-react-redux-universal-hot-example
import React from 'react'; export default class FAQ extends React.Component { render() { return <div className="questions"> Have questions? Ask for help <a href="https://github.com/gbezyuk/django-react-redux-universal-hot-example/issues" target="_blank">on Github</a> or in the <a href="http://w...
docs/app/Examples/elements/List/Content/ListExampleItem.js
vageeshb/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleItem = () => ( <List> <List.Item>1</List.Item> <List.Item>2</List.Item> <List.Item>3</List.Item> </List> ) export default ListExampleItem
src/index.js
alexqeo/react-redux-todos
import React from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import ReactDOM from 'react-dom'; import App from './containers/App'; import todoApp from './reducers'; let store = createStore(todoApp); ReactDOM.render( <Provider store={store}> <App /> </Provider>, doc...
pootle/static/js/shared/components/AutosizeTextarea.js
dwaynebailey/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 autosize from 'autosize'; import React from 'react'...
packages/mcs-lite-ui/src/Label/Label.example.js
MCS-Lite/mcs-lite
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import Label from '.'; storiesOf('Label', module).add( 'API', withInfo({ text: 'default', inline: true, })(() => <Label required>Email</Label>), );
client/scripts/components/admin/done-with-filter-button/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright ยฉ 2005-2016 Kuali, Inc. This program 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, either version 3 of the Lic...
server/frontend/src/components/SideBar/index.js
cs472-spots/spots
import React from 'react'; class SideBar extends React.Component { render() { const { profile } = this.props; var sidebarClass = this.props.isOpen ? 'sidebar open' : 'sidebar'; return ( <div className={sidebarClass}> <div> { // User panel } <div c...
src/components/search/search.js
thinktopography/reframe
import Searchbox from '../searchbox' import Infinite from '../infinite' import { digest } from 'json-hash' import PropTypes from 'prop-types' import Dynamic from './dynamic' import Options from './options' import React from 'react' class Search extends React.Component { static propTypes = { filter: PropTypes.ob...
src/components/Content.js
namelos/react-demo
import React, { Component } from 'react'; export default class Content extends Component { render = () => <div style={ styles }> { this.props.children } </div> } const styles = { width: '80%', margin: '50px auto' };
src/Tab.js
mmarcant/react-bootstrap
import React from 'react'; import TabContainer from './TabContainer'; import TabContent from './TabContent'; import TabPane from './TabPane'; const propTypes = { ...TabPane.propTypes, disabled: React.PropTypes.bool, title: React.PropTypes.node, /** * tabClassName is used as className for the associated ...
examples/counter/core/components/Root.js
Travix-International/frint
import React from 'react'; import { observe, streamProps } from 'frint-react'; import { incrementCounter, decrementCounter } from '../actions/counter'; class Root extends React.Component { render() { return ( <div className="container"> <div className="row"> <div className="eight col...
src/App.js
iamashraful/My-github-page
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/...
common/components/AddMember.js
nikgraf/redux-universal-app
import React from 'react'; const AddMember = ({onAdd}) => <button onClick={ () => onAdd('Gretl') }> Add Member here </button> ; export default AddMember;
examples/todomvc/src/App.js
Bloomca/redux-tiles
import React, { Component } from 'react'; import NewTodo from './components/newTodo'; import MainSection from './components/main'; import 'todomvc-app-css/index.css' class App extends Component { render() { return ( <div className="App"> <NewTodo /> <MainSection /> </div> ); } }...
src/components/quote.js
waywaaard/spectacle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getStyles } from '../utils/base'; import Radium from 'radium'; @Radium export default class Quote extends Component { render() { const typefaceStyle = this.context.typeface || {}; return ( <span className={this.props...
13. ReactJS Fundamentals - Feb 2019/02. React Components/Home-Agent/front-end/src/index.js
zrusev/SoftwareUniversity2016
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/All.js
MichaelDeBoey/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps = {}; props: Props; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Componen...
docs/src/app/components/pages/components/Chip/Page.js
barakmitz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import chipReadmeText from './README'; import ChipExampleSimple from './ExampleS...
shared/components/game/header/baseInfo.react.js
marek-sed/cogni
import React from 'react'; import moment from 'moment'; import 'moment-duration-format'; const BaseInfo = ({player, gameId, gameTime}) => { const {firstName, surname} = player; const formatTime = (time) => moment.duration(time).format('mm:ss'); return ( <div className="basic-info"> <div>{`${firstName...
src/admin/client/modules/products/edit/variants/components/grid.js
cezerin/cezerin
import React from 'react'; import { Link } from 'react-router-dom'; import messages from 'lib/text'; import style from './style.css'; import Paper from 'material-ui/Paper'; import FontIcon from 'material-ui/FontIcon'; import IconButton from 'material-ui/IconButton'; import RaisedButton from 'material-ui/RaisedButton'...
src/components/Card.js
shierby/shierby.github.io
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Spinner from 'react-spinkit'; import Repos from './Repos'; import UserProfile from './UserProfile'; import github from '../api/githubAxios'; class Card extends Component { constructor(props) { super(props); ...
src/Modal.js
shaneosullivan/spotlist
import React, { Component } from 'react'; export default class Modal extends Component { componentDidMount() { document.body.addEventListener('keydown', this._keyListener, false); } componentWillUnmount() { document.body.removeEventListener('keydown', this._keyListener, false); } render() { ret...
src/Route.js
bibleexchange/be-front-new
import React from 'react'; import { IndexRoute, Route, Redirect } from 'react-router'; // queries import ViewerQueries from './queries/ViewerQueries'; // relay containers/components import App from './components/App/AppComponent'; import AudioComponent from './components/Audio/AudioIndex'; import Bible from './compon...
src/components/StartOfNightView.js
KtuluTeam/Ktulu
import React from 'react' import { Text, View, Button } from 'react-native' import { ReadLoud, ManitouInfo } from './TextViews' import { NextFooter } from './Buttons' export const StartOfNightView = ({statueHolder, onSubmit, onMenu}) => { return ( <View> <ReadLoud text={'Wszyscy idฤ… spaฤ‡'} /> <...
examples/shared-root/app.js
zipongo/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/shared-root' }) class App extends React.Component { render() { return ( <div> ...
src/components/UserInfo.js
TarlyFM/tarlyfm_front
import React from 'react'; const UserInfo = (props) => { if (props.user.logged_in) return <span> <label><i>Bienvenue, {props.user.username}</i></label> <a style={{'cursor':'pointer', 'float':'right'}} onClick={props.user.logout}>logout</a> </span> else return <a style={{'cursor':'pointer'}}...
example/src/Paper.js
Demi-IO/golden-type
import React from 'react'; import {NEUTRAL_LIGHT} from 'golden-type/constants'; import {merge} from 'golden-type/prelude'; import {Small} from 'golden-type'; const countChildren = children => children instanceof Array ? children.length : (children ? 1 : 0); const paperStyle = { boxShadow: `2px 3px 8px 1px ${NEUTRAL_...
dashboard/index.js
Ankiewicz/veteran-mentor
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import allreducers from './reducers'; import axios from 'axios'; import { createStore, applyMiddleware, compose } from 'redux' import thunk from 'redux-thunk' import { createLogger } from 'redux-logger' // React Vis...
app/components/Header.js
alexpell00/FRCUltimateManager
/* * @Author: alexpelletier * @Date: 2016-03-20 16:01:58 * @Last Modified by: alexpelletier * @Last Modified time: 2016-03-21 20:00:31 */ import React from 'react'; import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router' var Header = React.createClass({ render: function() { ...
src/app.js
rerdos/react-2048-game
import React from 'react'; import ControlPanel from './components/controlPanel'; import Board from './components/board'; export default () => ( <div className="App"> <ControlPanel /> <Board /> </div> );
writeExampleWebpack2/src/app.js
fengnovo/webpack-react
import React from 'react' import ReactDom from 'react-dom' import {createStore} from 'redux' import {Provider} from 'react-redux' import TodoAppReducer from './js/reducers' import App from './js/contains/App' import './css/font/fontawesome-webfont.eot' import './css/font/fontawesome-webfont.svg' import './css/font/fo...
src/index.js
ben-eb/midas
// @flow import postcss from 'postcss'; import toHTML from 'hast-util-to-html'; import ToVDOM from './toVDOM'; type StringifierType = { stringify: Function }; type MidasOptions = { stringify?: Function, wrap?: boolean, }; /** * Midas takes a CSS string, and compiles it into a HTML output that's complet...
src/svg-icons/content/link.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3....
src/js/pages/BatchSend/index.js
trazyn/weweChat
import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import clazz from 'classname'; import classes from './style.css'; import MessageInput from 'components/MessageInput'; @inject(stores => ({ show: stores.batchsend.show, close: () => stores.batchsend.toggle(false), sea...
examples/src/components/CustomRender.js
millerized/react-select
import React from 'react'; import Select from 'react-select'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setState({ value }); console.log('Support level sel...
packages/material-ui-icons/legacy/SignalCellularConnectedNoInternet1BarOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z" /></React.Fragment> , 'SignalCellularConnectedNoInternet1BarOutlined');
src/routes/dashboard/components/numberCard.js
cuijiaxu/react-front
import React from 'react' import PropTypes from 'prop-types' import { Icon, Card } from 'antd' import CountUp from 'react-countup' import styles from './numberCard.less' function NumberCard ({ icon, color, title, number, countUp }) { return ( <Card className={styles.numberCard} bordered={false} bodyStyle={{ padd...
03-oh-my-youtube/src/components/VideoListItem.js
posquit0/react-tutorial
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './VideoListItem.css' class VideoListItem extends Component { render() { const { video, onVideoSelect } = this.props; const { title } = video.snippet; const thumbnail = video.snippet.thumbnails.default.url; return ...
src/components/clothing-panel.js
sebastianrb/react-redux-weather-app
import React from 'react'; import HI from "heat-index"; import EasyTransition from 'react-easy-transition'; import { Link } from "react-router-dom"; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { connect } from "react-redux"; import { transitionSetting } from "../index.js"; import Cit...
lib/runtime/components/questions/MultiNumberQuestion.js
jirokun/survey-designer-js
/* eslint-env browser */ import React, { Component } from 'react'; import classNames from 'classnames'; import ItemDefinition from '../../models/survey/questions/internal/ItemDefinition'; import QuestionDetail from '../parts/QuestionDetail'; import * as CommonQuestionParts from '../parts/CommonQuestionParts'; /** ่จญๅ•๏ผšๆ•ฐ...
packages/wix-style-react/src/SocialPreview/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, divider, code, playground, api, testkit, doDont, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import SocialPreview from '..'; import ImageViewer from '../../ImageVi...
stories/Action.js
Talend/react-talend-components
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { Action } from '../src/index'; const myAction = { label: 'Click me', icon: 'fa fa-asterisk', onClick: action('You clicked me'), }; storiesOf('Action', module) .addWithInfo('default', () => ( <div> <p>By default :</p> ...
App/db/entities/content/Place.js
nathb2b/mamasound.fr
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. 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, either version 3 of the * License, or (at your option) any later version. ...
src/createNavigationContainer.js
Steviey/win-react-navigation
/* @flow */ import React from 'react'; import invariant from 'fbjs/lib/invariant'; import { BackAndroid, Linking, } from './PlatformHelpers'; import NavigationActions from './NavigationActions'; import addNavigationHelpers from './addNavigationHelpers'; import type { NavigationRoute, NavigationAction, Navig...
pathfinder/vtables/decommissioningcommissioningapplications/src/Table.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import TableUtilities from './common/TableUtilities'; class Table extends Component { constructor(props) { super(props); } _trClassname(row, fieldValue, rowIdx...
envkey-react/src/containers/select_account_container.js
envkey/envkey-app
import React from 'react' import h from 'lib/ui/hyperscript_with_helpers' import { connect } from 'react-redux' import { push } from 'react-router-redux' import { Link } from 'react-router' import Spinner from 'components/shared/spinner' import {OnboardOverlay} from 'components/onboard' import {selectAccount, logout, r...
src/components/next.js
jasonaowen/recurse-faces
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actionCreators from '../action_creators'; import { getRandomPerson } from '../api'; import { Button } from 'react-bootstrap' class Next extends Component { handleGetNewPersonClick = (event) => { event.preventDefault(); ...
stories/EndorseContentLayout/examples/error.js
nirhart/wix-style-react
import React from 'react'; import EndorseContentLayout from 'wix-style-react/EndorseContentLayout'; import Button from 'wix-style-react/Button'; const secondaryCtaStyle = { fontSize: '14px', color: '#2b81cb', textDecoration: 'none' } export default () => <EndorseContentLayout head="Oopsโ€ฆ Something Went W...
code/web/node_modules/react-bootstrap/es/Jumbotron.js
zyxcambridge/RecordExistence
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 ...
components/EmailMultiInput/EmailMultiInput.js
PactCoffee/loggins
import React, { Component } from 'react'; import TagInput from 'react-tagsinput'; import { BACKSPACE, TAB, ENTER, DEL, COMMA, SPACE } from '../../util/keyCodes'; import s from './EmailMultiInput.css'; const MATCHER = /[^\s@,]+@[^\s,@]+\.[^\s@,]+/; export default class EmailMultiInput extends Component { constructo...
src/components/TimeLocation.js
devoidofgenius/react-weather
import React from 'react'; import '../css/TimeLocation.css' class TimeLocation extends React.Component { render() { return ( <div className="time-location"> <p className="time">Last Updated: {this.props.time}</p> <p className="current-location"><span className="locate">&#10148;</span>{this...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
yangchenghu/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import { map } from 'lodash'; import React, { Component } from 'react'; import { Container } from 'flux/utils'; import classnames from 'classnames'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } f...
imports/client/ui/pages/Home/oldhomepage/HowToHelpSection/Item/index.js
focallocal/fl-maps
import React from 'react' import './styles.scss' const Item = ({ item, loginButton }) => <div className="item"> <h3 className='item-text'>{item.text}</h3> {item.link !== undefined ? loginButton : null} <br/> <span className='item-subText'>{item.subText}</span> {item.link !== undefined && <a...
src/svg-icons/image/iso.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (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-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
AppVilRecipe/VilRecipes/index.ios.js
damdamgo/VilRecipe
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class VilRecipes extends Component { render() { return ( <View style={styles.containe...
src/RouteUtils.js
vqun/x-react-router
import React from 'react'; import Route from './Route'; import { isArray, some } from './utils'; export function isValidReactElement(element) { return element === null || React.isValidElement(element); } export function createElement(o, props) { return isValidReactElement(o) ? o : React.createElement(o, props); }...
packages/ringcentral-widgets/components/Environment/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; import BackHeader from '../BackHeader'; import Panel from '../Panel'; import Line from '../Line'; import IconLine from '../IconLine'; import TextInput from '../TextInpu...
src/components/forms/elements/check-box/index.js
huyhoangtb/reactjs
import React from 'react' import {Field, reduxForm} from 'redux-form' import Checkbox from 'material-ui/Checkbox' const renderCheckbox = ({input, label, meta: {touched, error}, ...custom}) => ( <Checkbox label={label} checked={input.value ? true : false} onCheck={input.onChange} ...
src/client/app/components/pages/admin/admin-u2f.js
LINKIWI/apache-auth
import React from 'react'; import request from 'browser-request'; import Button from '../../ui/button'; import Table from '../../ui/table'; import browser from '../../../util/browser'; export default class AdminU2F extends React.Component { constructor(props) { super(props); this.state = { users: []...
src/svg-icons/device/signal-cellular-4-bar.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
website/src/components/newsletter.js
spacy-io/spaCy
import React from 'react' import PropTypes from 'prop-types' import classes from '../styles/newsletter.module.sass' export default function Newsletter({ user, id, list }) { const action = `//${user}.list-manage.com/subscribe/post?u=${id}&amp;id=${list}` return ( <form id="mc-embedded-subsc...
wwwroot/app/src/components/PantryPage/EmptyItemNameAlert.js
AlinCiocan/FoodPlanApp
import React from 'react'; import AlertModal from '../base/modal/AlertModal'; const EmptyItemNameAlert = (props) => ( <AlertModal isOpen={props.isOpen} title="You must specify a name for your item." actionButtonText="OK" onAction={props.onAction} /> ); export default EmptyItemN...
packages/mineral-ui-icons/src/IconWarningSimple.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconWarningSimple(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...icon...
src/Parser/Core/Modules/Items/Legion/DarkmoonDeckPromises.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { calculatePrimaryStat } from 'common/stats'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SpellManaCost from 'Parser/Core/Modules/SpellManaCost'; impo...
docs/src/app/components/pages/components/RaisedButton/ExampleComplex.js
xmityaz/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import FontIcon from 'material-ui/FontIcon'; const styles = { button: { margin: 12, }, exampleImageInput: { cursor: 'pointer', position: 'absolute', to...
node_modules/react-bootstrap/es/ModalTitle.js
yeshdev1/Everydays-project
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 ...
packages/cockpit/ui/src/components/TextEditorToolbar.js
iurimatias/embark-framework
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {Button, Nav, NavLink} from 'reactstrap'; import classnames from 'classnames'; import FontAwesomeIcon from 'react-fontawesome'; import AddFileModal from '../components/AddFileModal'; import AddFolderModal from '../components/AddFolder...
app/javascript/mastodon/features/favourited_statuses/index.js
salvadorpla/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
frontend/src/components/eois/details/cfeiDetailsHeader.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { browserHistory as history } from 'react-router'; import Paper from 'material-ui/Paper'; import Typography from 'material-ui/Typography'; import HeaderOptionsContainer from...
app/client/components/map/Inventory.js
breakfast-mimes/cyber-mimes
import React from 'react'; export default class Inventory extends React.Component { constructor(props) { super(props); this.state = { } } render(){ const {item, equip, i} = this.props return( <div className="invItem noSelect" onClick={equip.bind(null, item, i)}> |name:{item.n...
app/react-icons/fa/battery-4.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaBattery4 extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m33.6 13.3v13.4h-29.1v-13.4h29.1z m2.3 10.1h2.2v-6.8h-2.2v-5q0-0.2-0.2-0.4t...
pages/lab.js
davidpham5/resume
import React from 'react'; import JenSimmons from '../components/JenSimmons'; function Lab () { return ( <div> <JenSimmons /> </div> ) } export default Lab;