path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/account/components/action_bar.js
pfm-eyesightjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import Link from 'react-router-dom/Link'; import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } f...
src/svg-icons/image/filter-drama.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterDrama = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4...
src/svg-icons/image/control-point.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPoint = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-...
src/components/download-link.js
getinsomnia/website
import React from 'react'; import classnames from 'classnames'; import { links } from '../config'; import Link from './link'; class DownloadButton extends React.Component { constructor(props) { super(props); this.state = { platform: '__UNSET__' }; } componentDidMount() { const isMobile = w...
js/src/dapps/tokenreg/Accounts/AccountSelector/container.js
jesuscript/parity
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 // (at your option) any la...
app/modules/components/game/game-ui/game-ui.js
alexmdodge/gridgrind
import React from 'react'; import './game-ui.scss'; const GameUI = () => ( <div className="gg-user-interface"> <h2 className="gg-moves-left"> <span id="update-moves-left">3</span> <i className="fa fa-heart" /> Moves Left </h2> <h2 className="gg-current-level"> Lvl <i classN...
src/parser/mage/frost/modules/talents/LonelyWinter.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Statistic from 'interface/statistics/Statistic'; import BoringSpellValueText from 'interface/statistics/components/BoringSpellValueText'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import Analyzer from 'parser/core/Analyzer'; imp...
src/components/Search/Search.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import styles from './Search.less' import { Input, Select, Button, Icon } from 'antd' class Search extends React.Component { state = { clearVisible: false, selectValue: (this.props.select && this.props.selectProps) ...
src/index.js
wallat/little-test
import React from 'react' import { render } from 'react-dom' import './index.css' import '../semantic/dist/semantic.min.css'; import Exame from './Exame.js' import Result from './Result.js' import { Route, HashRouter } from 'react-router-dom' let TO_ANSWER_GROUPS = require('.//GROUP_DEFINITION.json') render( <HashR...
testClient/components/App.js
dmckirnan/ServerHive
import React from 'react'; import Stats from './Stats'; import { Component } from 'react'; import styles from '../styles/main.scss'; class App extends Component { constructor() { super() this.state = { authenticated: false, username: '', password: '', stats: [], } this.login =...
examples/tex/js/components/TeXEditorExample.js
davidchang/draft-js
/** * Copyright (c) 2013-present, Facebook, Inc. All rights reserved. * * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCL...
fields/types/password/PasswordField.js
riyadhalnur/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'PasswordField', getInitialState () { return { passwordIsSet: this.props.value ? true : false, showChangeUI: this.props.mode === 'create' ? true :...
examples/real-world/index.js
clintonhalpin/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
packages/material-ui-icons/legacy/SignalWifi3BarLockRounded.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l10.08 12.56c.8 1 2.32 1 3.12 0l1.94-2.42V14.5z" /><path d="M15.5 1...
yeondudad/Spinbox.js
react-2016/spinbox
import React from 'react'; class Spinbox extends React.Component { /** * Spinbox의 생성자 * @constructs * @param {Spinbox.propTypes} props */ constructor(props) { super(props); this.state = { value: this.props.initialValue }; } /** * Spinbox을 렌...
public/js/components/notifications/Notification.react.js
MadushikaPerera/Coupley
import React from 'react'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import Colors from 'material-ui/lib/styles/colors'; import IconButton from 'material-ui/lib/icon-button'; import MoreVertIcon from 'material-ui/l...
modules/dreamview/frontend/src/components/DataRecorder/index.js
xiaoxq/apollo
import React from 'react'; import { Tab, Tabs, TabList, TabPanel, } from 'react-tabs'; import DriveEventEditor from 'components/DataRecorder/DriveEventEditor'; import AudioEventEditor from 'components/DataRecorder/AudioEventEditor'; export default class DataRecorder extends React.Component { render() { return...
src/svg-icons/action/thumb-up.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbUp = (props) => ( <SvgIcon {...props}> <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-...
src/components/echart.js
thbgh/antdPro
/** * @Author: THB * @Date: 2017-08-03 19:17:20 PM Thursday * @Email: thbwork2016@gmail.com * @Project: SDB * @Filename: echart.js * @Last modified by: THB * @Last modified time: 2017-08-11 15:55:15 PM Friday */ import React, { Component } from 'react'; export default class myChart extends Component { ...
src/svg-icons/social/school.js
ArcanisCz/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/svg-icons/editor/border-bottom.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderBottom = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-2v2zm...
CoreCRM/ClientApp/src/components/Layout/Footer.js
holmescn/CoreCRM
import React from 'react'; import styles from './Footer.less'; const Footer = () => (<div className={styles.footer}>CoreCRM &copyright; 2017</div>); export default Footer;
src/svg-icons/navigation/fullscreen.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen = pure(NavigationFullscre...
packages/netlify-cms-widget-markdown/src/MarkdownControl/ToolbarButton.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import { Icon, buttons } from 'netlify-cms-ui-default'; const StyledToolbarButton = styled.button` ${buttons.button}; display: inline-block; padding: 6px; border: none; background-color: transparent; font-s...
src/components/IngestionWizard/DropDownSelect.js
giux78/daf-dataportal
/** * * DropDownSelect * */ import React from 'react'; class DropDownSelect extends React.Component { // eslint-disable-line react/prefer-stateless-function transforToArray(input){ let array; console.log('transforToArray: ' + input) if(input.indexOf(",") !== -1){ array = input.split(",") }...
components/Job.js
amni/alanmni-portfolio
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' class Job extends React.Component { constructor(props) { super(props); } render () { return ( <div style = {{marginTop: ...
src/molecules/formfields/CheckboxWrapper/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import ErrorMessage from 'atoms/ErrorMessage'; import Layout from 'atoms/Layout'; import Col from 'atoms/Layout/Col'; import Text from 'atoms/Text'; import { renderTooltip } from 'utils/fieldUtils'; import styles from ...
src/main/resources/code/react/Apps/ManageRadars/Pages/ManageRadarTemplatesPage/RadarTemplateDetails/RadarRingsComponent/radarRingMap/index.js
artieac/technologyradar
import React from 'react'; import { Link } from 'react-router-dom'; export const radarRingMap = (editMode, canAddOrDelete, handleNameChange, handleSortOrderChange, handleDeleteClick) => { return [ { title: 'Name', key: 'name', render: rowData => { return <span><input type="text" classNa...
src/containers/LoginPageContainer/LoginPageContainer.js
anvk/redux-portal-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { LoginPage } from '../../components'; import { push as pushRoute } from 'react-router-redux'; import * as loginPageActions from '../../actions/loginPageActions.js'; import { HOME_URL } from '../../constants/constants.js'; import to...
client/modules/comments/components/.stories/comment_list.js
Entropy03/jianwei
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import CommentList from '../comment_list'; import CreateComment from '../../containers/create_comment'; // Create the stub for the composer. setComposerStub(CreateComment, (props) => { ...
docs/app/Examples/collections/Breadcrumb/index.js
jcarbo/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const BreadcrumbExamples = () => ( <div> <ExampleSection title='Types'> <ComponentExample title='Breadcrumb' ...
src/fields/DatePickerField.android.js
MichaelCereda/react-native-form-generator
'use strict'; import React from 'react'; import ReactNative from 'react-native'; let { View, StyleSheet, TextInput, Text, PickerIOS} = ReactNative; import {DatePickerComponent} from '../lib/DatePickerComponent'; export class DatePickerField extends React.Component{ setDate(date){ this.refs.datePickerComponent...
webpack/components/NewTemplateSync/components/TextButtonField/FieldType.js
mmoll/foreman_templates
import React from 'react'; import PropTypes from 'prop-types'; import InputField from './InputField'; import SelectField from './SelectField'; import CheckboxField from './CheckboxField'; const FieldType = ({ item, fieldSelector, input, disabled, blank }) => { if (!fieldSelector) { return <InputField input={inp...
definitions/npm/styled-components_v3.x.x/flow_v0.57.x-v0.74.x/test_styled-components_v3.x.x.js
doberkofler/flow-typed
// @flow import {renderToString} from 'react-dom/server' import styled, { css, ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager } from 'styled-components' import React from 'react' import type { Theme, Interpolation, ReactComponentFunctional, ReactComponentFunctionalUndefined...
components/drawer/drawerSpacer.js
react-material-design/react-material-design
import React from 'react'; import PropTypes from 'prop-types'; import '@material/drawer/dist/mdc.drawer.css'; /** Drawer Spacer */ const DrawerSpacer = ({ children }) => ( <div className="mdc-drawer__toolbar-spacer"> {children} </div> ); DrawerSpacer.propTypes = { children: PropTypes.any, }; expor...
templates/rubix/relay/relay-seed/src/common/footer.js
jeffthemaximum/jeffline
import React from 'react'; import { Row, Col, Grid, } from '@sketchpixy/rubix'; export default class Footer extends React.Component { state = { version: 0 }; componentDidMount() { this.setState({ version: document.body.getAttribute('data-version') }); } render() { var year = ne...
frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import ArtistMetadataProfilePopoverContent from 'AddArtist/ArtistMetadataProfilePopoverContent'; import ArtistMonitoringOptionsPopoverContent from 'AddArtist/ArtistMonitoringOptionsPopoverContent'; import Form from 'Components/Form/Form'; import FormGroup f...
src/components/about-us/web-font.js
twreporter/twreporter-react
import React from 'react' const typekitScripts = ` (function(d) { var config = { kitId: 'nal4paz', scriptTimeout: 3000, async: true }, h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElem...
app/components/modules/examples.module/index.js
omeryagmurlu/algoriv
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { List, ListItem } from 'material-ui/List'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'app/components/IconMenu'; import ActionDelete from 'material-ui/svg-icons/action/delete'; import ContentAdd from 'mater...
src/svg-icons/maps/train.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTrain = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1....
src/components/Common/Spinner.js
MattMcFarland/tw-client
import React from 'react'; // ?lines=13&length=27&width=13&radius=42&scale=1.25&corners=1.0&opacity=0.20&rotate=0&direction=1&speed=1.3&trail=54&top=50&left=50&shadow=on&hwaccel=on const opts = { lines: 13 // The number of lines to draw , length: 27 // The length of each line , width: 13 // The line thickness ...
packages/browser/src/components/DataTable/BooleanTermAggregation.js
appbaseio/dejaVu
// @flow import React from 'react'; import { Popover } from 'antd'; import { MultiDataList } from '@appbaseio/reactivesearch'; import { css } from 'react-emotion'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faFilter } from '@fortawesome/free-solid-svg-icons'; import Flex from '../Flex'...
docs/src/app/components/pages/components/RaisedButton/ExampleComplex.js
skarnecki/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...
modules/dreamview/frontend/src/components/PNCMonitor/index.js
jinghaomiao/apollo
import React from 'react'; import { Tab, Tabs, TabList, TabPanel, } from 'react-tabs'; import ControlMonitor from 'components/PNCMonitor/ControlMonitor'; import LatencyMonitor from 'components/PNCMonitor/LatencyMonitor'; import PlanningMonitor from 'components/PNCMonitor/PlanningMonitor'; import StoryTellingMonitor ...
demos/dinosaur-boutique/src/ButtonModal.js
jacobp100/state-transitions
import React from 'react'; import { TweenState } from '../../../src/index'; export default function List({ onClick, onClear, isActive, title, children }) { let element; if (isActive) { element = ( <TweenState id={ title } key={ title + '-modal' } duration={ 0.3 }> <div className="button-modal__...
common/main-layout/NavBarDefault.js
gobble43/gobble-dist-web
import React from 'react'; import SearchBarContainer from './SearchBarContainer'; const NavbarDefault = () => ( <div className="navbar-auth navbar-wrapper"> <div className="navbar-menu pure-menu pure-menu-horizontal"> <a href="/" className="navbar-menu-heading pure-menu-heading"> <img className="na...
example/App.js
phantomlds/react-native-maps
import React from 'react'; import { Platform, View, StyleSheet, TouchableOpacity, ScrollView, Text, Switch, } from 'react-native'; import { PROVIDER_GOOGLE, PROVIDER_DEFAULT } from 'react-native-maps'; import DisplayLatLng from './examples/DisplayLatLng'; import ViewsAsMarkers from './examples/ViewsAsMark...
src/components/Footer/Footer.js
jlopezh/donation-project
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Footer.scss'; function Footer() { return ( <div className={s.root}> <div className={s.container}> <span className={s.text}>© Jose Luis Lopez H</span> </div> </div> ); } export d...
src/components/SegmentedControl.js
kidaa/elemental
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
admin/client/App/App.js
jacargentina/keystone
/** * The App component is the component that is rendered around all views, and * contains common things like navigation, footer, etc. */ import React from 'react'; import MobileNavigation from './components/Navigation/Mobile'; import PrimaryNavigation from './components/Navigation/Primary'; import SecondaryNaviga...
js/components/typography/index.js
soltrinox/MarketAuth.ReactNative
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, H1, H2, H3, Text } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; class NHTypography extends Component { // eslint-disable...
src/utils/ownerWindow.js
sthawali/react-overlays
import React from 'react'; import ownerWindow from 'dom-helpers/ownerWindow'; export default function (componentOrElement) { return ownerWindow(React.findDOMNode(componentOrElement)); }
src/routes/Member/routes/UpdatePassword/components/UpdatePassword.js
bang88/ant-console
/** * SunEee * @date Created on 11/12/15 * @author YuHui(语晖)<yuhui@suneee.com> */ import React from 'react'; import MainBody from 'components/MainBody'; export default class UpdatePassword extends React.Component { constructor(props) { super(props); this.state = {}; } componentDid...
front/app/app/App.js
nudoru/React-Starter-2-app
import React from 'react'; import { connect } from 'react-redux'; import { Either } from './utils/functional'; import { resetId } from './utils/ElementIDCreator'; import PleaseWaitModal from './rh-components/rh-PleaseWaitModal'; import { AppRouter } from './config/AppRouter'; const LoadingMessage = () => <PleaseWait...
packages/wix-style-react/src/PopoverMenu/docs/index.story.js
wix/wix-style-react
/* eslint-disable no-console */ import React from 'react'; import { api, example, columns, description, divider, header, importExample, playground, tab, tabs, title, } from 'wix-storybook-utils/Sections'; import More from 'wix-ui-icons-common/More'; import Add from 'wix-ui-icons-common/Add'; imp...
src/components/Auth/SignUp/SignUp.react.js
DravitLochan/accounts.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import $ from 'jquery'; import './SignUp.css'; import AppBar from 'material-ui/AppBar'; import PasswordField from 'material-ui-password-fie...
src/components/Login.js
Julzso23/player.me-one-click-share
import React from 'react'; import request from 'superagent'; import Spinner from './Spinner'; import Error from './Error'; import {withRouter} from 'react-router'; import '../styles/form.css'; class Login extends React.Component { constructor(props) { super(props); this.state = { name:...
app/javascript/components/Filters/ReviewedFilter/component.js
thecartercenter/elmo
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'react-bootstrap/Button'; import Form from 'react-bootstrap/Form'; import ButtonGroup from 'react-bootstrap/ButtonGroup'; import { inject, observer } from 'mobx-react'; import FilterOverlayTrigger from '../FilterOverlayTrigger/component'...
client/routes.js
SwanCourses/Mokryi-Vlad
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute, IndexRedirect } from 'react-router'; import App from './modules/App/App'; import Product from './modules/Product/Product'; import { isAdmin, isLoggedIn } from './util/apiCaller'; // require.ensure polyfill for node if (typeof re...
modules/RoutingContext.js
taion/rrtr
import React from 'react' import RouterContext from './RouterContext' import warning from './routerWarning' const RoutingContext = React.createClass({ componentWillMount() { warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'`. http://t...
client/modules/Post/__tests__/components/PostListItem.spec.js
Trulsabe/reactLinuxMern
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
bunnyblue/actor-platform
import React from 'react'; import mixpanel from 'utils/Mixpanel'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'actions/LoginActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; import MyProfileModal from 'components/modals/MyProfile.react'; import ...
app/graph/crosshairComponent.js
also/lead.js
import React from 'react'; import moment from 'moment'; import CursorPositionMixin from './cursorPositionMixin'; export default React.createClass({ mixins: [CursorPositionMixin], contextTypes: { params: React.PropTypes.object.isRequired, sizes: React.PropTypes.object.isRequired }, render() { if ...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
ruikong/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/components/NavBar.js
sseureki/kanamemo
import React, { Component } from 'react'; import Link from 'react-router/Link'; const NavLink = ({ to, children }) => { return ( <Link to={to}>{ ({isActive, location, href, onClick, transition}) => ( <li className={`nav-item${isActive ? ' active' : ''}`}> <a className="nav-link" href={href} onClick={on...
server/dashboard/js/components/MZBenchApp.react.js
machinezone/mzbench
import React from 'react'; import Timeline from './Timeline.react'; import Details from './Details.react'; import Auth from './Auth.react'; class MZBenchApp extends React.Component { render() { return ( <div className="fluid-container"> <Auth title="Sign In"> ...
packages/react-scripts/template/src/SignUpPage/SignUpPage.js
dsopel94/create-react-app
import React from 'react'; import PropTypes from 'prop-types'; import SignUpForm from './SignUpForm'; import axios from 'axios'; import { connect } from 'react-redux'; import * as actions from '../actions/index'; class SignUpPage extends React.Component { /** * Class constructor. */ constructor(props) { ...
packages/editor/src/core/decorators/Link/Link.js
boldr/boldr
/* eslint-disable react/no-array-index-key */ /* @flow */ import React from 'react'; import type { Node } from 'react'; import type { ContentBlock, ContentState } from 'draft-js'; import { ExternalLink } from '../../../components/Icons'; import type { LinkConfig } from '../../config'; type Props = { children: Node,...
docs/app/Examples/views/Card/Variations/ColumnCount.js
jamiehill/stardust
import React from 'react' import { Card } from 'stardust' const src = 'http://semantic-ui.com/images/wireframe/image.png' const ColumnCountCards = () => ( <Card.Group itemsPerRow={6}> <Card raised image={src} /> <Card raised image={src} /> <Card raised image={src} /> <Card raised image={src} /> ...
docs/app/Examples/collections/Grid/Variations/GridExampleEqualWidthColumn.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Segment } from 'semantic-ui-react' const GridExampleEqualWidthColumn = () => ( <Grid columns='equal'> <Grid.Column> <Segment>1</Segment> </Grid.Column> <Grid.Column width={8}> <Segment>2</Segment> </Grid.Column> <Grid.Column> <Segment>3</...
src/class/history-sync/ViewingActivityApp.js
MrMamen/traktflix
import 'material-design-lite'; import React from 'react'; import BrowserStorage from '../BrowserStorage'; import NetflixApiUtils from '../NetflixApiUtils'; import Select from '../Select'; import TmdbImageContainer from '../tmdb/TmdbImageContainer'; import ActivityList from './ActivityList'; import ActivityStore from '....
docs/app/Examples/elements/Divider/Variations/DividerExampleClearing.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Segment, Button, Divider } from 'semantic-ui-react' const DividerExampleClearing = () => ( <Segment> <Button floated='right'>Floated Button</Button> <Divider clearing /> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore....
src/routes/index.js
balmbees/overwatch
import React from 'react'; import App from '../components/App'; // Child routes import home from './home'; import error from './error'; export default { path: '/', // keep in mind, routes are evaluated in order children: [ home, error, ], async action({ next, render, context }) { const component...
teletobit/src/containers/routes/SinglePostRoute.js
edenpark/teletobit
import React, { Component } from 'react'; import SinglePost, { LeftColumn, CenterColumn, RightColumn, Post, PostDeleted } from 'components/SinglePost/SinglePost'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as single from 'redux/modules/single'; impo...
src/containers/Settings.js
sseureki/kanamemo
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { SettingsForm, Footer } from 'components/KanamemoSettings'; import * as actions from 'actions/kanamemoSettings'; class Settings extends Component { handleClick = () => { this.props.resetSettings(); }; render(){ return ( ...
src/FormControls/Static.js
RichardLitt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
rscnt/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
src/_common/LoadingView.js
qingweibinary/binary-next-gen
import React from 'react'; import LogoSpinner from '../_common/LogoSpinner'; export default () => ( <div className="mobile-page"> <LogoSpinner /> </div> );
app/components/Graph.js
jakkra/OneAppToRuleThemAll
'use-strict'; import React from 'react'; import { StyleSheet, View, Picker, Dimensions, Text, InteractionManager, PanResponder, } from 'react-native'; import { MKRangeSlider, MKProgress, } from 'react-native-material-kit'; import { connect } from 'react-redux'; import { fetchTemperatures, fetchTemp...
src/pages/login/components/form.js
sqdron/sqdron.UI
import React from 'react' import classes from './form.css' import TextField from 'material-ui/TextField' export default () => ( <div className={classes.form}> <div className={classes.container}> <form> <TextField className={classes.loginInput} hintText='Hint Text'/> </form> </div> </div...
examples/Simple/app/routes.js
jmurzy/react-router-native
/* @noflow */ import React from 'react'; import { Header, Link, nativeHistory, Route, Router, StackRoute, withRouter, } from 'react-router-native'; import { ScrollView, StyleSheet, View, } from 'react-native'; const styles = StyleSheet.create({ component: { backgroundColor: '#FFFFFF', fle...
ajax/libs/react-instantsearch/4.1.2/Connectors.js
jonobr1/cdnjs
/*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
app/Components/help.js
bobkingof12vs/tayplayer
import React, { Component } from 'react'; export const Help = (props) => { return <div style={{opacity: props.fade ? "" : "1"}} className="help_text"> <pre className="description"> the twitch and youtube player <br /> <br />currently in beta, so please be kind <br />issues should go to th...
src/routes/BarmenOrder/containers/BarmenOrdersContainer.js
hrnik/roofbar
import React from 'react' import { connect } from 'react-redux' import { fetchAllCustomerOrders, completeOrder, cancelOrder, toogleEditMode, notNeedDingDong } from 'store/orders' import BarOrdersView from '../components/BarOrdersView' import { getCompetedOrders, getPednignOrders, getCanceledOrders } from 'selectors/or...
src/main/web/app/components/Calendar.js
dhbw-timetable/rablabla
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import TimeView from './TimeView'; import Day from './Day'; export default class Calendar extends Component { constructor(props) { super(props); this.state = { backdrop: false, backdropTargetHandler: ()...
client/src/Assistant/GenericInputs/AutoSave.js
ciex/mietlimbo
// @flow import React from 'react' import autoBind from 'react-autobind' import { FormattedMessage } from 'react-intl' import { pinkA200 } from 'material-ui/styles/colors' import { RadioButtonGroup, RadioButton } from 'material-ui/RadioButton' import { Card, CardText, CardTitle } from 'material-ui/Card' import Raised...
app/jsx/components/GradesTable.js
instructure/analytics
import React from 'react' import ReactBootstrapTable from '../../../public/javascripts/react-bootstrap-table' import { useScope as useI18nScope } from '@canvas/i18n'; import helpers from '../helpers' const I18n = useI18nScope('analytics'); const {BootstrapTable, TableHeaderColumn} = ReactBootstrapTable const tableOp...
app/components/AreaInfo/AreaInfo.js
zhrkian/SolarDataApp
import s from './AreaInfo.css' import React from 'react' import { Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table' import * as Coordinates from '../../utils/coordinates' import * as Draw from '../../utils/draw' import IconButton from '../IconButton/Ico...
src/index.js
rgdelato/instantly-lunch
require('./styles/styles.scss'); import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware, compose } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import reducer from './reducers/index'; import base from './firebase'; import { Actio...
app/javascript/mastodon/features/compose/components/compose_form.js
kagucho/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
src/js/shared/components/header.js
akornatskyy/sample-blog-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import {LinkContainer} from 'react-router-bootstrap'; import {Navbar, NavbarBrand, Nav} from 'react-bootstrap'; const Header = ({children}) => ( <Navbar bg="dark" variant="dark" expand="md" fixed="top" className="px-3"> <LinkContainer to="/"> ...
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
dsopel94/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...
scripts/formElements/Url.js
ButenkoT/react-practice-
import React from 'react'; import url from 'url'; import styles from '../Form.less'; import querystring from 'querystring'; import path from 'path'; import request from 'browser-request'; //const isValid = url => /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/.test(url); function isValid(videoUrl) { let urlObjec...
client/react/frontpage/components/ShowPage.js
uclaradio/uclaradio
// ShowPage.js // shows full description of a show import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import Loader from './Loader'; import RectImage from '../../common/RectImage'; import './ShowPage.scss'; import { fetchUpdatedShows } from '../actions/shows'; cons...
src/scenes/home/informationForm/informationForm.js
tskuse/operationcode_frontend
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import Section from 'shared/components/section/section'; import FormButton from 'shared/components/form/formButton/formButton'; import { patchBackend } from 'shared/utils/apiHelper'; import Identifier from './formComponents/identifie...
packages/extra/src/Axis.js
finnfiddle/number-picture
// import React from 'react'; // import PropTypes from 'prop-types'; // import * as d3Axis from 'd3-axis'; // import { interpolate } from 'd3-interpolate'; // import { cap, omit } from './util'; // import SelectSelf from './mixins/SelectSelf'; // export default class Axis extends SelectSelf { // constructor(props)...
tp-3/juan-pablo-gonzalez/src/components/pages/notFound/NotFoundPage.js
solp/sovos-reactivo-2017
import React from 'react'; import { Link } from 'react-router-dom'; const NotFoundPage = () => { return ( <div> <h4> La estas <b>SECANDO</b>!! </h4> <Link to="/"> uhh si, quiero volver! </Link> </div> ); }; export default NotFoundPage;
app/javascript/mastodon/features/ui/components/focal_point_modal.js
Kirishima21/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { changeUploadCompose, uploadThumbnail, onCha...
src/svg-icons/device/battery-charging-full.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryChargingFull = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM11 20v-5.5H...
src/components/Home.js
neetuktoor/tossUP
import React from 'react'; class Home extends React.Component { render() { return <div>Homepage</div>; } } export default Home;