path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/index.js
ganarajpr/react-node-tree
import React from 'react'; import TreeNode from './TreeNode'; export default class NodeTree extends React.Component { static propTypes = { root : React.PropTypes.object.isRequired, node : React.PropTypes.node } constructor(props) { super(props); } render() { retur...
app/javascript/mastodon/features/account/components/action_bar.js
8796n/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenu from '../../../components/dropdown_menu'; import { Link } from 'react-router'; import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } from 'react-intl'; const...
app/javascript/mastodon/features/ui/components/boost_modal.js
pinfort/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; import StatusContent from '../../....
demo/src/containers/Modal.js
ilxanlar/cathode
import React from 'react'; import { Button, ButtonGroup, Card, Modal } from '../../../src'; class ModalButton extends React.Component { state = { seconds: 0, show: false }; componentDidMount() { this.interval = window.setInterval(() => { this.setState({ seconds: this.state.seconds + 1 }); ...
src/containers/CurrentWeather.js
divyanshu013/impulse-tabs
import React from 'react'; import { connect } from 'react-redux'; import Weather from '../components/Weather'; import { setTemp, setTempFormat, setWeather } from '../actions'; const mapStateToProps = (state) => ({ weather: state.weather }); const mapDispatchToProps = (dispatch) => ({ })
app/components/Header/Header.js
jmsstudio/CurrencyConverter
import React from 'react'; import PropTypes from 'prop-types'; import { View, TouchableOpacity, Image } from 'react-native'; import styles from './styles'; function Header({ onPress }) { return ( <View style={styles.container}> <TouchableOpacity onPress={onPress} style={styles.button}> <Image resi...
src/components/listings.js
MuffinLightning/react-seanbean-sb
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import AppBar from 'material-ui/AppBar'; const style = { margin: 12 }; let music = AudioFX('../src/assets/audio/animalhusbandry.mp3', { formats: ['mp3', 'm4a', 'wav'], volume: 1.0 }); let pl...
src/browser/me/ProfilePage.js
TheoMer/Gyms-Of-The-World
// @flow import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box, Paragraph } from '../../common/components'; import { FormattedMessage } from 'react-intl'; import { Title } from '../components'; const ProfilePage = () => ( <Box> <Title message={linksMessages.profile} ...
src/components/icons/ExpandIcon.js
austinknight/ui-components
import React from 'react'; const ExpandIcon = props => ( <svg width="16px" height="16px" x="0px" y="0px" viewBox="0 0 16 16" fill="white"> {props.title && <title>{props.title}</title>} <g id="expand"> <g id="Email-Client"> <g id="Expand-Icon"> ...
src/pages/tricia.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Tricia' /> )
src/pages/geotag-subscriptions.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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 License, o...
public/js/containers/Topbar.js
nowordforfree/react-cv
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import AppBar from 'material-ui/AppBar'; import IconMenu from 'material-ui/IconMenu'; import IconButton from 'material-ui/IconButton'; import MenuItem from 'material-ui/MenuItem'; import FlatButton from 'material-ui/F...
src/svg-icons/action/book.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBook = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/> </SvgIcon> ); ActionBook = pure(ActionBook); Ac...
react-flux-mui/js/material-ui/src/svg-icons/navigation/arrow-drop-down.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDown = (props) => ( <SvgIcon {...props}> <path d="M7 10l5 5 5-5z"/> </SvgIcon> ); NavigationArrowDropDown = pure(NavigationArrowDropDown); NavigationArrowDropDown.displayName = 'NavigationA...
ui/src/app/components/Header.js
kuppuswamy/foodie
import React from 'react'; export default class Header extends React.Component { render = () => ( <section className="hero is-primary"> <div className="hero-body"> <div className="container"> <h1 className="title"> Foodie </h1> </div> </div> </secti...
src/client/lib/validation.js
skaldo/este
/* Simple serial sync/async chriso/validator.js validation wrapper with promises. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message, prop) { super(); this.message = message; this.prop = prop;...
src/svg-icons/image/blur-off.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
src/svg-icons/social/school.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSchool = (props) => ( <SvgIcon {...props}> <path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/> </SvgIcon> ); SocialSchool = pure(SocialSchool); SocialSchool.displayNa...
src/client/TabItem.js
fewhnhouse/chrome-tab-switcher
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import stringSpanner from './string_spanner'; import Mousetrap from 'mousetrap'; var MATCH_START = '<span class="match">'; var MATCH_END = '</span>'; export default class TabItem extends Component { constructor(props) { super(props); ...
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js
lawrence-yu/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerInternational = () => ( <div> <TimePicker hintText="Custom Labels" okLabel="确定" cancelLabel="取消" /> </div> ); export default TimePickerInternational;
src/index.js
alexwade13/alexwade13.github.io
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import App from './components/App'; import Home from './components/Home'; import PageNotFound from './components/PageNotFound'; import ExampleComponent from './components/ExampleComp...
Router/router-demo/src/router/RouteConfig.js
imuntil/React
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' // const Main = () => <h3>Main</h3> const Sandwiches = () => <h3>Sandwiches</h3> const Tacos = ({ routes }) => ( <div> <h2>Tacos</h2> <ul> <li><Link to="/tacos/bus">Bus</Link></li> <li><Link t...
src/components/Sidebar/Author/Author.js
bapti/blog
// @flow strict import React from 'react'; import { withPrefix, Link } from 'gatsby'; import styles from './Author.module.scss'; type Props = { author: { name: string, bio: string, photo: string }, isIndex: ?boolean }; const Author = ({ author, isIndex }: Props) => ( <div className={styles['author...
components/ParallaxContainer/ParallaxContainer.story.js
NGMarmaduke/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import ParallaxContainer from './ParallaxContainer'; storiesOf('ParallaxContainer', module) .add('ParallaxContainer', () => ( <div style={ { height: '200vh' } }> <ParallaxContainer speed={ 0.5 }> <div style={ { ...
src/browser/app/BaseRoot.js
reedlaw/read-it
// @flow import Fela from '../../common/components/FelaProvider'; import React from 'react'; import configureFela from '../configureFela'; import { Provider as Redux } from 'react-redux'; const getFelaMountNode = () => { const node = document.getElementById('stylesheet'); const parent = node && node.parentNode; ...
examples/todomvc/containers/Root.js
przeor/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
src/svg-icons/hardware/computer.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareComputer = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareComputer ...
react-flux-mui/js/material-ui/src/svg-icons/image/brightness-5.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness5 = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.6...
frontend/src/components/controls/SidebarPageViewerUI/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AutoSizer from 'react-virtualized/dist/commonjs/AutoSizer'; import ArrowKeyStepper from 'react-virtualized/dist/commonjs/ArrowKeyStepper'; import Column from 'react-virtualized/dist/commonjs/Table/Column'; import Table from 'react-virt...
src/components/Loader.js
iWader/website
// @flow import React from 'react'; const Loader = () => ( <div> <h1>Loading...</h1> </div> ); export default Loader;
src/page/IconPage.js
jerryshew/react-uikits
import React, { Component } from 'react'; import { CN, TitleBlock } from '../util/tools'; import { NS, ICONS } from '../constant'; import { Icon } from '../component'; import CodeView from './CodeView'; export class IconPage extends Component { constructor(props){ super(props); this.state = { ...
actor-apps/app-web/src/app/components/common/Favicon.react.js
Rogerlin2013/actor-platform
import React from 'react'; export default class Fav extends React.Component { static propTypes = { path: React.PropTypes.string } constructor(props) { super(props); //// Create link element and it's attributes //let favicon = document.createElement('link'); //let rel = document.createAttrib...
app/src/routes/LocationDetail.js
alpcanaydin/github-stats-for-turkey
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import { emptyStateItem, isInit, isLoading, isFailed } from '../util/stateHelpers'; import { request, fail ...
packages/bonde-admin/src/mobilizations/components/list/items/copy-number.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' const CopyNumber = ({ uses_number: usesNumber }) => ( <div className='users px3 col col-2'> {usesNumber || '-'} </div> ) CopyNumber.propTypes = { uses_number: PropTypes.oneOfType([PropTypes.string, Pro...
test/integration/font-optimization/fixtures/with-typekit/pages/nonce.js
zeit/next.js
import React from 'react' import Head from 'next/head' const Page = () => { return ( <> <Head> <link href="https://use.typekit.net/erd0sed.css" rel="stylesheet" nonce="VmVyY2Vs" /> </Head> <div>Hi!</div> </> ) } export default Page
src/routes/UIElement/dataTable/index.js
caijinchun/hsweb-antd
import React from 'react' import { DataTable } from '../../../components' import { Table, Row, Col, Card, Select } from 'antd' class DataTablePage extends React.Component { constructor (props) { super(props) this.state = { filterCase: { gender: '', } } } handleSelectChange = (gender) => { ...
src/website/app/pages/Typography/FontDemo.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import Heading from '../../SiteHeading'; import type { StyledComponent } from '@emotion/styled-base/src/utils'; const styles = { root: ({ theme }) => ({ [theme.bp_moreSpacious]: { display: 'flex' }, '& div': { flex:...
src/svg-icons/action/label-outline.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabelOutline = (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.16zM16 17H5V7h11l...
src/index.js
yutechnet/react-redux
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import {Router, browserHistory} from 'react-router'; import routes from './routes'; import './style/style.css'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; render( <Router history = {browserHistory} routes ={ro...
src/containers/LoginMenuContainer.js
jtak93/phaser-practice
import React, { Component } from 'react'; import LoginMenu from '../components/LoginMenu'; import axios from 'axios'; class LoginMenuContainer extends Component { constructor(props) { super(props) this.handleUsernameChange = this.handleUsernameChange.bind(this); this.handlePasswordChange = this...
src/website/app/demos/Checkbox/CheckboxGroup/bestPractices.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import DemoForm from '../../common/DemoForm'; import { FormField } from '../../../../../library/Form'; import Checkbox from '../../../../../library/Checkbox'; import { CheckboxGroup } from '../../../../../library/Checkbox'; import type { BestPractices } from '../../../pages/Compo...
react-router/components/Home.js
sensduo/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; class Home extends React.Component { render() { return <p>Welcome to the site!</p>; } } export default Home;
src/containers/Animations.js
rldona/ReactNativeCourseBeeva
import React, { Component } from 'react'; import { StyleSheet, Text, View, Dimensions } from 'react-native'; const { width, height } = Dimensions.get('window'); class Animations extends Component { render() { return ( <View style={styles.container}> <Text>Animations</Text> </View> ...
docs/app/Examples/collections/Menu/States/MenuExampleDisabled.js
shengnian/shengnian-ui-react
import React from 'react' import { Menu } from 'shengnian-ui-react' const MenuExampleDisabled = () => ( <Menu compact> <Menu.Item disabled> Link </Menu.Item> </Menu> ) export default MenuExampleDisabled
app/containers/HomePage.js
Jflinchum/Wiki-Game
import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
docs/src/pages/premium-themes/onepirate/modules/views/ProductCTA.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Hidden from '@material-ui/core/Hidden'; import Container from '@material-ui/core/Container'; import Typography from '../components/Typography'; import T...
portfolio-site/src/scenes/home/About/about.js
dave5801/Portfolio
import React from 'react'; const About = () => ( <div> <h2>This is where I will write about how I awesome I am</h2> </div> ); export default About;
app/javascript/mastodon/features/home_timeline/index.js
ikuradon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
src/browser/modules/Stream/SysInfoFrame/helpers.js
akollegger/neo4j-browser
/* * Copyright (c) 2002-2020 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or ...
Rosa_Madeira/Cliente/src/components/common/Input.js
victorditadi/IQApp
import React, { Component } from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secure }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{label}</Te...
src/Parser/Hunter/BeastMastery/Modules/Spells/DireBeast/DireBeastUptime.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from "common/SPELLS"; import StatisticBox from "Main/StatisticBox"; import SpellIcon from "common/SpellIcon"; import { formatPercentage } from "common/format"; import STATISTIC_...
examples/blockly-react/src/Blockly/index.js
google/blockly-samples
/** * @license * * Copyright 2019 Google LLC * * 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...
src/parser/priest/discipline/modules/items/TarnishedSentinelMedallion.js
FaideWW/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import isAtonement from '../core/isAtonement'; imp...
src/js/services/keys/walletlink.js
KyberNetwork/KyberWallet
import React from 'react'; import BLOCKCHAIN_INFO from "../../../../env" import WalletLink from "walletlink" import Web3 from "web3" import BaseWallet from "./BaseWallet"; export default class WalletLinkKey extends BaseWallet { constructor(props) { super(props); this.walletLink = new WalletLink({ ...
app/javascript/mastodon/components/column_back_button.js
theoria24/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; import { createPortal } from 'react-dom'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.objec...
src/containers/Index.js
hannupekka/badgenator
// @flow import styles from 'styles/containers/Index'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fromJS } from 'immutable'; import type { Map } from 'immutable'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import cuid from 'cuid'; import Badge from 'compone...
src/svg-icons/image/flip.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlip = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v...
client/modules/App/__tests__/App.spec.js
4dinterface/profpruf
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
src/index.js
sanchan/react-awesome-navigation
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
packages/ui/src/components/eventDetails.js
she-smashes/thehub
/** * @author Thenmozhi Subramaniam * @name EventDetails * @desc renders event details component */ import React, { Component } from 'react'; import Moment from 'moment'; import RaisedButton from 'material-ui/RaisedButton'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowCo...
stories/BrowserLayout/HeaderMetrics.js
medialab/hyphe-browser
import React from 'react' const HeaderMetrics = () => ( <ul className="header-metrics-container"> <li className="hint--bottom" aria-label="12 webentities included in the corpus"><i className="metrics-icon ti-layout-column3-alt in" /> <span className="metrics">12009 <label>IN</label></span></li> <li className...
src/components/PendingRide.js
mcamis/drive.vote.driver
import React from 'react'; import autobind from 'autobind-decorator'; @autobind class PendingRide extends React.Component { render() { const ride = this.props.ride; return ( <div className="panel panel-default"> <p>Ride <label>{ride.id}</label></p> ...
src/components/common/svg-icons/editor/border-top.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h...
docs/src/SupportPage.js
andrew-d/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
test/test_helper.js
camboio/yooneau
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/app.js
kors-mk5/react-starter
import React, { Component } from 'react'; import CommentBox from './comment_box'; import CommentList from './comment_list'; export default class App extends Component { render() { return ( <div> <CommentBox /> <CommentList /> </div> ); } }
app/javascript/mastodon/features/community_timeline/index.js
ikuradon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
components/public/Pagination.js
hustlzp/react-redux-example
import React from 'react' import Radium from 'radium' import _ from 'lodash' @Radium export default class Pagination extends React.Component { static defaultProps = { currentPage: 1, perPage: 15, size: 'md' } static propTypes = { totalCount: React.PropTypes.number.isRequire...
error-boundary.js
UXtemple/panels
import React from 'react' export default class ErrorBoundary extends React.Component { state = { hasError: false } componentDidCatch(error, info) { // Display fallback UI this.setState({ hasError: true }) } render() { if (this.state.hasError) { return <div>:/</div> } return this.pr...
data-browser-ui/public/app/components/headerComponents/searchComponent.js
CloudBoost/cloudboost
import React from 'react' import {Popover, PopoverAnimationVertical} from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; var Loader = require('halogen/ScaleLoader') class Search extends React.Component { constructor(){ super() this.state = { open: fals...
src/encoded/static/components/navigation/components/BigDropdown/BigDropdownPageTreeMenu.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import url from 'url'; import _ from 'underscore'; import { console, memoizedUrlParse } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { BigDropdownIntroductionWrapper } from './BigD...
wail-twitter/loginWindow/containers/Login.js
N0taN3rd/wail
import React from 'react' import getMuiTheme from 'material-ui/styles/getMuiTheme' import lightBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import { Provider } from 'react-redux' import configureStore from '../store/index' import LoginW...
extension/examples/todomvc/components/Header.js
gaearon/redux-devtools
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TodoTextInput from './TodoTextInput'; class Header extends Component { handleSave(text) { if (text.length !== 0) { this.props.addTodo(text); } } render() { return ( <header className="header"> <h...
src/components/AuthorChip/index.js
bogas04/SikhJS
import PropTypes from 'prop-types'; import React from 'react'; import { Link } from 'react-router-dom'; import styled from 'react-emotion'; import { GurbaniFont, Chip, Json } from '../'; const StyledLink = styled(Link)` text-decoration: none; `; function AuthorChip ({ english, gurmukhi, id, ...otherProps }) { if ...
Inspector/js/tree.js
truveris/WebDriverAgent
/** * 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...
.noxt/app/app.prod.js
suranartnc/noxt.js
import React from 'react' import { render } from 'react-dom' import Root from './Root' const mountNode = document.getElementById('root') render( <Root />, mountNode )
app/client/src/components/Text/index.js
barahuang/rss-news-reader
import React from 'react'; import './index.css'; export default ({ content, id }) => ( <span className="featured-text" id={id}> {content.split('').map((ch, i) => ( <span key={i} className={`featured-text-letter featured-text-letter-${i + 1}`} > {ch} </span> ))} </...
packages/ringcentral-widgets/components/SmCallControl/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import telephonyStatuses from 'ringcentral-integration/enums/telephonyStatus'; import callDirections from 'ringcentral-integration/enums/callDirections'; import CircleButton from '../CircleButton'; import MuteIcon fro...
packages/mineral-ui-icons/src/IconNavigation.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 IconNavigation(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
react/features/base/toolbox/components/web/OverflowMenuItem.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { Icon } from '../../../icons'; import { Tooltip } from '../../../tooltip'; /** * The type of the React {@code Component} props of {@link OverflowMenuItem}. */ type Props = { /** * A succinct description of what the item does. Used by accessibilit...
ui/src/containers/TaskContainer.js
mxcube/mxcube3
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Characterisation from '../components/Tasks/Characterisation'; import DataCollection from '../components/Tasks/DataCollection'; import Helical from '../components/Tasks/Helical'; import Mesh from '../comp...
src/provider/api-provider.js
gugamm/redux-api-mapper
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class ApiProvider extends Component { getChildContext() { return { api : this.props.api }; } render() { return this.props.children; } } ApiProvider.propTypes = { api : PropTypes.object.isRequired, children : P...
packages/wix-style-react/src/FloatingHelper/FloatingHelperContent/test/FloatingHelperContent.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import FloatingHelperContent from '../FloatingHelperContent'; import Box from '../../../Box'; import Text from '../../../Text'; import { actionButtonTheme } from '../constants'; import { floatingHelperAppearance } from '../../constants'; import Im...
content/theme/components/Pipelines/SegmentDetailEditGenerator.js
typesettin/NativeCMS
import React, { Component } from 'react'; import { StyleSheet, ScrollView, View, Platform, ListView, Image, Dimensions, TextInput, } from 'react-native'; import * as Animatable from 'react-native-animatable'; import styles from '../../../../app/components/Styles/shared'; import layoutStyles from '../../../../app/compon...
admin/client/components/ItemsTable/ItemsTableRow.js
tony2cssc/keystone
import React from 'react'; import classnames from 'classnames'; import Columns from '../../columns'; import CurrentListStore from '../../stores/CurrentListStore'; import ListControl from '../List/ListControl'; import { DropTarget, DragSource } from 'react-dnd'; const ItemsRow = React.createClass({ propTypes: { co...
client/modules/Discussion/components/RootDiscussionForm/RootDiscussionForm.js
XuHaoJun/tiamat
import React from 'react'; import PropTypes from 'prop-types'; import { shouldComponentUpdate } from 'react-immutable-render-mixin'; import DiscussionForm from '../DiscussionForm'; import Ajv from 'ajv'; import rootDiscussionSchema from './schema.json'; import { loadSchema } from '../../../JSONSchema/JSONSchemaAction...
src/svg-icons/maps/directions.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirections = (props) => ( <SvgIcon {...props}> <path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-....
dashboard/src/main.js
kapmahc/h2o
import React from 'react' import ReactDOM from 'react-dom' import {createStore, combineReducers, applyMiddleware} from 'redux' import {Provider} from 'react-redux' import createHistory from 'history/createBrowserHistory' import {Switch} from 'react-router-dom' import {ConnectedRouter, routerReducer, routerMiddleware} f...
src/components/HeaderBar.js
JoeEcob/Spendy
import React from 'react'; import { NavLink } from 'react-router-dom'; import PropTypes from 'prop-types'; import Logout from './Logout'; const HeaderBar = ({ hasAccessToken, logoutOnClick }) => ( <header className="header"> <div className="container"> <NavLink to="/" title="Home"> <h1>Spendy</h1> ...
app/client/main.js
Wiredcraft/pipelines
import 'styles/main.scss'; import React from 'react'; import { render } from 'react-dom'; import Index from 'components/Index/Index'; render(<Index />, document.getElementById('js-main'));
docs/app/Examples/elements/Button/Variations/ButtonExampleCircular.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleCircular = () => ( <Button circular icon='settings' /> ) export default ButtonExampleCircular
client/views/admin/settings/inputs/BooleanSettingInput.js
VoiSmart/Rocket.Chat
import { Field, ToggleSwitch } from '@rocket.chat/fuselage'; import React from 'react'; import ResetSettingButton from '../ResetSettingButton'; function BooleanSettingInput({ _id, label, disabled, readonly, value, hasResetButton, onChangeValue, onResetButtonClick, }) { const handleChange = (event) => { con...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
ganquan0910/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstant...
src/options/index.js
mauron85/keepassxc-browser
/* globals document, navigator */ import { AppContainer } from 'react-hot-loader'; import React from 'react'; import ReactDOM from 'react-dom'; import { IntlProvider } from 'react-intl'; import { addLocaleData } from 'react-intl'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from '...
app/components/FleetFooter.js
Ruin0x11/fleet
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './FleetFooter.css'; import DeckListContainer from '../containers/DeckListContainer'; import NotifierContainer from '../containers/NotifierContainer'; export default class FleetFooter extends Component { render() { ...
techCurriculum/ui/solutions/4.1/src/index.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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 writ...
pkg/interface/chat/src/js/components/lib/resubscribe-element.js
ngzax/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; export class ResubscribeElement extends Component { onClickResubscribe() { this.props.api.chatHook.addSynced( this.props.host, this.props.station, true); } render() { let props = this.props; return ( ...
components/react-semantify/src/mixins/colorSelector.js
react-douban/douban-book-web
import React from 'react'; let colorArray = [ 'black', 'yellow', 'green', 'blue', 'orange', 'purple', 'red', 'teal' ]; export default { propTypes: { color: React.PropTypes.oneOf(colorArray) }, getColor: function () { let color = 'null'; if (typeof this.props.color !== 'undefined') { if...
src/PasswordManager.Web/Client/app/components/App.js
SogetiUSA/PasswordManager
import React from 'react'; import Header from './Header'; import Footer from './Footer'; class App extends React.Component { render() { return ( <div> <Header history={this.props.history} /> {this.props.children} <Footer /> </div> ...
src/NickNameView.js
modrzew/react-chat
import React, { Component } from 'react'; export default class NickNameView extends Component { render() { return ( <NicknameForm changeName={this.props.changeName} /> ); } } var GoButton = React.createClass({ render: function() { return ( <button type="button" class="btn btn...