path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/IndecisionApp.js
fjoder/indecision-app
import React from 'react'; import AddOption from './AddOption'; import Options from './Options'; import Action from './Action'; import Header from './Header'; import OptionModal from './OptionModal'; export default class IndecisionApp extends React.Component { state = { options: [], selectedOption: undefined...
src/svg-icons/notification/vibration.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVibration = (props) => ( <SvgIcon {...props}> <path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0...
www/imports/mapPage/calc/Submap.js
ucscHexmap/hexagram
// Logic and state for the creating a sub-map with data from another map. import { connect } from 'react-redux' import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux' import rx from '/imports/common/rx' import SubmapPres from '/imports/mapPage/calc/SubmapPres' const ge...
indico/web/client/js/react/components/principals/imperative.js
ThiefMaster/indico
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import _ from 'lodash'; import React from 'react'; import ReactDOM from 'react-dom'; import {Favori...
src/js/popup.js
lobbylayer/chrome
import Info from './popup/Info' import React from 'react' import { render } from 'react-dom' import client from './graphql' import { ApolloProvider } from 'react-apollo' render( ( <ApolloProvider client={client}> <Info /> </ApolloProvider> ), window.document.getElementById('app-container') )
LoadingView.js
yanniz0r/react-native-loading-view
import React, { Component } from 'react'; import { StyleSheet, View, Text, ActivityIndicator } from 'react-native'; export default class LoadingView extends Component { renderActivityIndicator = () => { const defaultIndicator = ( <ActivityIndicator style={[this.props.indicatorStyle]} size={this.pr...
app/components/UserCard/index.js
medevelopment/UMA
import React from 'react'; import {Link, browserHistory} from 'react-router'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ModeEdit from 'material-ui/svg-icons/editor/mode-edit'; import TextField from 'material-ui/TextField'; import axios from 'axios'; import {getBranchName} from '../../f...
blueocean-material-icons/src/js/components/svg-icons/av/loop.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvLoop = (props) => ( <SvgIcon {...props}> <path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 1...
ozwillo-datacore-web/src/main/webapp/dc-ui/src/components/reading/commonQueries.js
ozwillo/ozwillo-datacore
import React from 'react'; import LinkPlayground from '../linkPlayground.js'; export default class commonQueries extends React.Component{ render() { return ( <div> <h2>Most common queries</h2> <ul> <li className="listespace"> <LinkPlayground tools={this.props.tools} ur...
src/components/Ledgers.js
chatch/stellarexplorer
import React from 'react' import Grid from 'react-bootstrap/lib/Grid' import Panel from 'react-bootstrap/lib/Panel' import Row from 'react-bootstrap/lib/Row' import {injectIntl} from 'react-intl' import LedgerTable from './LedgerTableContainer' import {setTitle} from '../lib/utils' class Ledgers extends React.Componen...
src/server.js
codejunkienick/katakana
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/app.js
chpio/xmpp-app
import React from 'react'; import ReactDOM from 'react-dom'; import {hello} from '../native' ReactDOM.render( <div>{hello()}</div>, document.getElementById('out') );
definitions/npm/redux-forms-react_v0.11.x/flow_v0.34.x-v0.52.x/test_redux-forms-react_v0.11.x.js
orlandoc01/flow-typed
/* @flow */ import React from 'react'; import { Form, Field, FieldArray } from 'redux-forms-react'; let el; /* ======== */ /* = Form = */ /* ======== */ el = ( <Form name="test" /> ); let f: HTMLFormElement; el = ( <Form name="test" persistent onSubmit={(values) => new Promise((resolve, reject) => {...
docs/src/app/components/pages/components/Menu/ExampleNested.js
tan-jerene/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', mar...
src/components/PodcastDropdown.js
reactivepod/fido-web
import React from 'react'; const PodcastDropdown = ({ handlePodcastChange, fido, podcasts, selected }) => { if (podcasts.length) { return ( <span>, find reviews for <select onChange={handlePodcastChange} value={selected}> {Object.keys(fido).map((id) => { const podcast = fido[id].meta; ...
example/ProgressBar.js
glenjamin/devboard
import React from 'react'; var ProgressBar = React.createClass({ propTypes: { n: React.PropTypes.number.isRequired, label: React.PropTypes.bool, striped: React.PropTypes.bool, animated: React.PropTypes.bool, type: React.PropTypes.oneOf([ 'success', 'info', 'warning', 'dang...
src/icons/InsertEmoticonIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class InsertEmoticonIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M23.99 4C12.94 4 4 12.95 4 24s8.94 20 19.99 20C35.04 44 44 35.05 44 24S35.04 4 23.99 4zM24 40c-8.84...
src/index.js
jahuk/bet-platform-react
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import configureStore from './store/configureStore'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import {syncHistoryWithStore} from 'react-router-redux'; import Main from './commons/main/Main'...
src/components/features_slide2.js
joakimremler/horse-project
import React, { Component } from 'react'; import SwipeableViews from 'react-swipeable-views'; export default class FeaturesSlide2 extends Component { render() { return ( <div className="features-main container"> <img className="features-overlay" src="./data/slider_mid.png" alt="Time tracker"/> ...
src/components/admin/Statistics.js
katima-g33k/blu-react-desktop
/* eslint react/sort-comp: 0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Col, Panel, Row, } from 'react-bootstrap'; import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts'; import moment from 'moment'; import { DatePicker...
app/javascript/flavours/glitch/features/local_settings/page/index.js
im-in-space/mastodon
// Package imports import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; // Our imports import LocalSettingsPageItem from './item'; // * * * * * * * * * * * * * * * * * * ...
app/js/views/Components/Buttons/Buttons.js
jagatjeevan/dakiya
import React, { Component } from 'react'; class Buttons extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-md-6"> <div className="card"> <div className="card-header"> <strong>Options...
techCurriculum/ui/solutions/4.1/src/index.js
tadas412/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...
fields/components/columns/CloudinaryImageSummary.js
ONode/keystone
import React from 'react'; const IMAGE_SIZE = 18; const linkStyle = { marginRight: 8, }; const boxStyle = { borderRadius: 3, display: 'inline-block', height: IMAGE_SIZE, overflow: 'hidden', verticalAlign: 'middle', width: IMAGE_SIZE, }; const imageStyle = { display: 'block', height: IMAGE_SIZE, left: '50%',...
new-lamassu-admin/src/pages/Wizard/helper.js
naconner/lamassu-server
import * as R from 'ramda' import React from 'react' import { getSchema as CommissionsSchema } from 'src/pages/Commissions/helper' import { LocaleSchema } from 'src/pages/Locales/helper' import { WalletSchema } from 'src/pages/Wallet/helper' import { fromNamespace, namespaces } from 'src/utils/config' import Commissi...
src/pages/paper/detail/reviewerDetail.js
sunway-official/acm-admin
import React from 'react'; import { Col, Grid, Row } from 'react-flexbox-grid'; import './style.css'; import { RaisedButton } from 'material-ui'; import * as moment from 'moment'; import { Link } from 'react-router-dom'; const S3_GET_PREFIX = process.env.REACT_APP_S3_GET_PREFIX; const styleBtn = { margin: '0px 10px'...
src/components/video_list_item.js
iamwithnail/react-redux
/** * Created by chris on 04/03/2017. */ import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { // that {video} means that the first props has a property called video // equivalent to const video = props.video; const imageUrl = video.snippet.thumbnails.default.url; return ( ...
client/src/components/ButtonLogout.js
serban-petrescu/candidate-management
import React from 'react'; import {Button} from 'react-bootstrap'; import {logoutUser} from '../actions/LoginLogout'; import {bindActionCreators} from "redux"; import {connect} from "react-redux"; class ButtonLogout extends React.Component { handleClick = () => { let HTTP_STATUS_OK = 200; let resu...
src/js/components/ProjectsStats/ProjectsStats.js
TheoZimm/SaltyDashboard
/* eslint-disable */ import React from 'react'; import Box from 'grommet/components/Box'; import Legend from 'grommet/components/Legend'; import AnnotatedMeter from 'grommet-addons/components/AnnotatedMeter'; import Heading from 'grommet/components/Heading'; class ProjectsStats extends React.Component { construc...
src/svg-icons/communication/contact-phone.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactPhone = (props) => ( <SvgIcon {...props}> <path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-...
assets/js/components/SearchForm.js
shiloa/shlux
import React from 'react'; export default class SearchForm extends React.Component { constructor(props) { super(props); } render() { var countSpan; if (this.props.count && this.props.count >= 0) { countSpan = <span className="label label-success">{this.props.count} servers found</span>; } ...
src/svg-icons/hardware/mouse.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareMouse = (props) => ( <SvgIcon {...props}> <path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/> </SvgIcon> ); HardwareMouse =...
redux/demo-app-redux/src/index.js
weixianpin/test
// jshint esversion: 6 import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import CounterPanel from './view/CounterPanel.js'; ReactDOM.render(<App />, document.getElementById('root')); registerService...
frontend/src/Movie/Edit/EditMovieModalContent.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import Button from 'Components/Link/Bu...
src/index.js
zebogen/film-bff-client
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from 'components/Root'; import configureStore from 'store/configureStore'; require('favicon.ico'); import 'styl...
src/articles/2018-09-30-Suggestions/index.js
fyruna/WoWAnalyzer
import React from 'react'; import { Link } from 'react-router-dom'; import { Zerotorescue } from 'CONTRIBUTORS'; import RegularArticle from 'interface/news/RegularArticle'; import RandomImageToMakeThisArticleLessBland from './weirdnelfandherfriend.png'; export default ( <RegularArticle title={<>What are <i>YOUR</i...
src/svg-icons/editor/money-off.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMoneyOff = (props) => ( <SvgIcon {...props}> <path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27zM5.33 4.06L4.06 ...
src/svg-icons/device/battery-charging-50.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging50 = (props) => ( <SvgIcon {...props}> <path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V...
docs/src/sections/OverlaySection.js
pombredanne/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function OverlaySection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <A...
src/botPage/view/react-components/OfficialVersionWarning.js
binary-com/binary-bot
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from '../../../common/i18n'; import * as style from '../style'; const OfficialVersionWarning = ({ show }) => show ? ( <div style={style.bottomWarning}> <div id="end-note"> {`${translate('This is ...
org.jcryptool.core.help/javascript/tocbot-4.11.2/pages/changelog.js
jcryptool/core
import React from 'react' import Template from '../src/components/Template' import TryIt from '../src/components/Template/TryIt' import CONFIG from './_config.js' import PAGE_JSON from './_CHANGELOG.json' const Index = (props) => { return ( <Template title={CONFIG.title} subtitle='Changelog' d...
ReportSystem/src/main/webapp/resources/js/components/user/user.js
LittleLazyCat/TXEY
import React from 'react' import SpanItem from './span-item' import Button from 'react-bootstrap/lib/Button' export default class User extends React.Component{ render() { return ( <div className="user-box"> <SpanItem value={this.props.id} /> <SpanItem value={this.props.name} /> <SpanItem value=...
src/pages/index.js
radubrehar/evanghelic.ro
import React from 'react'; import Link from 'gatsby-link'; import Text from '@app/Text'; import Card from '@app/Card'; import Contact from './contact'; import WelcomeContainer from 'src/components/WelcomeContainer'; import NewsContainer from 'src/components/NewsContainer'; const IndexPage = ({ data }) => { const ...
lib/DropdownButton/DropdownButton.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import Button from '../Button'; import Icon from '../Icon'; const DropdownButton = React.forwardRef(({ children, ...buttonProps }, ref) => { const iconType = buttonProps['aria-expanded'] ? 'triangle-up' : 'triangle-down'; return ( <Butto...
src/svg-icons/places/hot-tub.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesHotTub = (props) => ( <SvgIcon {...props}> <circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12...
src/App.js
crapulus/react-chat-widget
import React, { Component } from 'react'; import {Provider} from 'mobx-react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import DevTools from 'mobx-react-devtools'; //dev-only import Widget from './Containers/Widget.jsx'; import ChatStore from './Stores/ChatStore'; const chatStore = new ChatStore(); ...
src/svg-icons/communication/dialpad.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationDialpad = (props) => ( <SvgIcon {...props}> <path d="M12 19c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM6 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
02-minify/resources/assets/js/app3.js
Imballinst/webpack-incremental-tutorial
import React from 'react'; import feelsBadMan from '../img/feelsbadman.png'; import jquery from 'jquery'; import moment from 'moment'; import '../scss/index.scss'; console.log('xp');
app/components/Github/Repos.js
Villanuevand/react-github-search
import React from 'react'; export default class Repos extends React.Component { constructor(props) { super(props); this.state = {repos: props.repos} } render () { return ( <div className="container"> <p>Repos: {this.state.repos}</p> </div> ); } }
docs/src/pages/components/click-away-listener/ClickAway.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import ClickAwayListener from '@material-ui/core/ClickAwayListener'; const useStyles = makeStyles((theme) => ({ root: { position: 'relative', }, dropdown: { position: 'absolute', top: 28, right: 0, left: 0, ...
actor-apps/app-web/src/app/components/SidebarSection.react.js
gale320/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
src/components/ArticleTile.js
iskarica/react-native-newsapp
import React from 'react'; import PropTypes from 'prop-types'; import { View, TouchableHighlight, Text, Image, StyleSheet } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Icon from 'react-native-vector-icons/Ionicons'; import Button from 'react-native-button'; import moment from 'moment...
packages/material-ui-icons/src/AcUnit.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AcUnit = props => <SvgIcon {...props}> <path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.24 3....
src/components/main.js
summer213/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import { findDOMNode } from 'react-dom'; // let yeomanImage = require('../images/yeoman.png'); // 获取图片数据 var imageDatas = require('../data/imageData.json'); // 利用自执行函数,将图片信息转成图片URL路径信息 imageDatas = (function genImageURL(imag...
app/home/GDHalfHourHot.js
Hey2Li/RNGD
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, ListView, DeviceEventEmitter, Dimensions, Navigator } from 'react-native'; import CommunaNavBar from '../main/GDCommunalNavBar'; import CommunaHotCell from '../main/GDCommunalHotCell'; import No...
packages/ringcentral-widgets-docs/src/app/pages/Components/TextInput/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import TextInput from 'ringcentral-widgets/components/TextInput'; const props = {}; /** * A example of `TextInput` */ const TextInputDemo = () => <TextInput {...props} />; export default TextInputDemo;
example/DioryGridExample.js
DioryMe/diory-react-components
import React from 'react' import { Diory, DioryGrid } from '../lib' const dioryGrid = { text: 'This is a grid', style: { backgroundColor: 'blue', fontFamily: 'arial', color: 'white', text: { fontSize: '2em', width: '100%' } }, diorys: { someKey: { text: 'This diory is positioned to th...
src/main.js
kritikasoni/smsss-react
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
app/containers/HomePage/index.js
TheTopazWombat/levt-2
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
packages/veritone-react-common/src/components/FilePicker/FileList/FileListItem.js
veritone/veritone-sdk
import React, { Component } from 'react'; import DeleteIcon from '@material-ui/icons/Delete'; import IconButton from '@material-ui/core/IconButton'; import CropIcon from '@material-ui/icons/Crop'; import { withStyles } from '@material-ui/styles'; import { shape, func, number, string, any, bool } from 'prop-types'; imp...
packages/react-dom/src/test-utils/ReactTestUtils.js
flarnie/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom'; import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflect...
WebApp/wwwroot/ReactApp/src/components/codecamp/speakers/SpeakerList.js
pkellner/svcc-react4
import PropTypes from 'prop-types'; import React from 'react'; import SpeakerListItem from './SpeakerListItem'; export default function SpeakerList(props) { const { speakers } = props; return ( <div className="container-main speakers"> <div className="row"> <div className="col-12"> <di...
src/components/Statement/Statement.js
nambawan/g-old
/* eslint-disable no-shadow */ import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/withStyles'; import { defineMessages, FormattedMessage, injectIntl, intlShape, } from 'react-intl'; import Textarea from 'react-textarea-autosize'; // TODO replace with ...
admin/client/App/screens/Item/components/FormHeading.js
helloworld3q3q/keystone
import React from 'react'; import evalDependsOn from '../../../../../../fields/utils/evalDependsOn'; module.exports = React.createClass({ displayName: 'FormHeading', propTypes: { options: React.PropTypes.object, }, render () { if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) { re...
src/svg-icons/image/remove-red-eye.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRemoveRedEye = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5...
test/test_helper.js
acdickin/Krandrew
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/modules/Tab/Tab.js
shengnian/shengnian-ui-react
import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { AutoControlledComponent as Component, customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Grid from '../../collections/Grid/Grid' import GridColumn from '../../collections/Grid/GridCol...
packages/showcase/axes/static-hints.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
examples/huge-apps/components/App.js
Nedomas/react-router
/*globals COURSES:true */ import React from 'react' import Dashboard from './Dashboard' import GlobalNav from './GlobalNav' class App extends React.Component { render() { return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={COURSES...
src/containers/Home/IntroSection.js
d-amit/in-di-go
import React from 'react'; import { Button, Section } from '../../components'; import $ from 'jquery'; const goToNext = (target) => { if (target) { $('html, body').animate({ scrollTop: $(target).offset().top },'500', 'swing'); } } const IntroSection = ({ id, className}) => { let sectionCla...
web/client/src/index.js
marbletrader/marbletrader
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import allReducers from './reducers' import App from './containers/App' import './index.css' const store = createStore(allReducers) ReactDOM.render( <Provider store={store}> <App...
client/Contests/pages/HomePage.js
rystecher/senior-design
import React from 'react'; import LoginOrRegisterForm from '../Login/components/LoginOrRegisterForm.js'; import { connect } from 'react-redux'; import { userRegisterRequest } from '../Login/actions/registerActions'; import '../contestnavigator.css'; import './homepage.css'; class HomePage extends React.Component { ...
examples/js/components/PageNotFound.js
pvoznyuk/react-bootstrap-table
import React from 'react'; class PageNotFound extends React.Component { render() { return ( <div>Page Not Found</div> ); } } export default PageNotFound;
src/views/Oscillator/WaveFileLoader.js
looshi/wavetable-synth-2
/* Dropdown, shows a list of files. On select, loads the file. */ import React from 'react' import Select from 'react-select' import {connect} from 'react-redux' import Actions from '../../data/Actions.js' class WaveFileLoader extends React.Component { constructor (props) { super(props) this.state = { ...
src/svg-icons/notification/ondemand-video.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationOndemandVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z"/> </SvgIc...
app/components/MessageBox/index.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class MessageBox extends Component { // eslint-disable-line react/prefer-stateless-function static propTypes = { asyncState: PropTypes.object.isRequired, }; render() { const { asyncState } = this.props; re...
app/src/components/Description.js
GlyphGryph/DarkerDaysAhead
import React from 'react' import PropTypes from 'prop-types' const Description = (props) => ( <div> <div> { props.content.name } </div> </div> ) Description.propTypes = { content: PropTypes.object.isRequired, } export default Description
src/client/react/admin/views/ResponsesView/ResponsePreview.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import DateFormat from 'dateformat'; import { graphql } from 'react-apollo'; import { Button, Dialog } from '@blueprintjs/core'; import FormInput from '../../../../../../lib/react/components/forms/FormInpu...
docs/src/examples/elements/Button/Content/ButtonExampleMultipleConditionals.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleMultipleConditionals = () => ( <Button.Group> <Button>One</Button> <Button.Or /> <Button>Two</Button> <Button.Or /> <Button>Three</Button> </Button.Group> ) export default ButtonExampleMultipleConditionals
src/Bookshelf.js
jamesbibby/reactnd_project_mybooks
import React from 'react' import PropTypes from 'prop-types' import Book from './Book' const Bookshelf = props => { const { title, shelf, books, onShelfChange } = props return ( <div className="bookshelf"> <h2 className="bookshelf-title"> <i className={`title-icon icon-${shelf}`} /> <span className="boo...
src/components/nav.js
kapz/anapaula.art
import React from 'react' import styled from 'styled-components' import Link from 'gatsby-link' const Wrapper = styled.nav` padding-left: 35px; margin-top: 20px; @media screen and (max-width: 768px) { display: none; position: fixed; top: 0; right: 0; left: 0; ...
src/client/Viewer.Components/Viewer.Extensions.Dynamic/Viewing.Extension.DualViewer/Viewing.Extension.DualViewer.js
jaimerosales/visual-reports-bim360dc
///////////////////////////////////////////////////////// // Viewing.Extension.DualViewer // by Philippe Leefsma, April 2016 // ///////////////////////////////////////////////////////// import ExtensionBase from 'Viewer.ExtensionBase' import WidgetContainer from 'WidgetContainer' import './Viewing.Extension.DualViewer....
packages/react-interactions/accessibility/src/FocusContain.js
mjackson/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {KeyboardEvent} from 'react-interactions/events/keyboard'; import React from 'react'; import {useFocusWit...
src/components/pokemon/slot/PokeSlot.js
TechyFatih/Nuzlog
import React from 'react'; import { Media } from 'react-bootstrap'; import './PokeSlot.css'; import male from 'img/male-small.png'; import female from 'img/female-small.png'; import item from 'img/item.png'; import getFullname from 'utilities/getFullname'; import PokeIcon from '../PokeIcon'; export default class P...
src/svg-icons/action/credit-card.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCreditCard = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); Action...
docs/src/app/components/pages/components/Stepper/GranularControlStepper.js
owencm/material-ui
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; const getStyles = () => { return { root: { width: '100%', maxWidth: 700, margin: 'auto', }...
src/pages/404.js
zccz14/blog
import React from 'react' import Layout from '../components/layout' import SEO from '../components/seo' const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
src/components/labels_manager/labels_list.js
roman01la/f-react-kit
import React from 'react'; import Label from './label'; import { mutateLocal } from '../../lib/state_tools/mutator_client'; import { connectCSSExtractor } from '../../lib/css_tools/extract_css'; import styles from './labels_list.css'; function setSelectionState(item) { return () => mutateLocal(['setLabelSelection', ...
app/javascript/mastodon/features/nicovideo/player/components/player.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ToggleButton from './toggle_button'; import Controller from './controller'; export default class Player extends React.PureComponent { static propTypes = { visible: PropTypes.bool.isRequired, videoId: PropTypes.string, input: PropType...
src/replies/Replies.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getIsAuthenticated, getAuthenticatedUserName, getFeed, getPosts } from '../reducers'; import { getFeedContentFromState, getFeedLoadingFromState, getFeedHasMoreFromState, } from '../helpers/stateHelpers';...
src/components/Error.js
edauenhauer/google-drive-copy-folder
/** * Error message container */ 'use strict'; import React from 'react'; import Alert from './Alert'; import Warning from './icons/Warning'; export default function Error(props) { return ( <Alert label="Oh no! Something went wrong" className="alert--error" icon={<Warning />} > {pr...
src/components/Loading.js
jmannDev43/dataExplorer
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; const Loading = () => <LinearProgress mode="indeterminate" />; export default Loading;
src/svg-icons/action/lock-open.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOpen = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ...
test-harness/app/components/scenes/register.js
bugsnag/bugsnag-react-native
import bugsnag from 'lib/bugsnag'; import React, { Component } from 'react'; import { View, StyleSheet, Alert } from 'react-native'; import { FormLabel, FormInput, Button } from 'react-native-elements' import PropTypes from 'prop-types' const styles = StyleSheet.create({ container: { alignSelf: 'stretch', flex: 1, b...
src/js/SideMenu.js
mtford90/brio
import React from 'react'; import location from './location'; import {homePageSelected} from './util'; export default class SideMenu extends React.Component { constructor(props) { super(props); this.state = {menu: {}} } resolve(section) { var subSectionNames = Object.keys(section.sections); wh...
docs/src/app/components/pages/components/TextField/ExampleDisabled.js
hai-cea/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleDisabled = () => ( <div> <TextField disabled={true} hintText="Disabled Hint Text" /><br /> <TextField disabled={true} id="text-field-disabled" defaultValue="Disabled Value" />...
src/Dialog/Dialog.js
skarnecki/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import EventListener from 'react-event-listener'; import keycode from 'keycode'; import transitions from '../styles/transitions'; import Overlay from '../internal/Overlay'; import RenderToLayer from '../internal/RenderToLayer'; import Paper from '../Paper'; ...
src/components/TagInput/TagInput.js
samerce/lampshade
import React from 'react'; import Autosuggest from 'react-autosuggest'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import cx from 'classnames'; import s from './TagInput.css'; import autosuggestTheme from '../autosuggestTheme.css'; import autobind from 'autobind-decorator'; const TAGS = [ 'eg...
ui/src/main/js/components/UpdateDetails.js
rdelval/aurora
import React from 'react'; import { Container, ContentPanel, StandardPanelTitle, PanelSubtitle } from 'components/Layout'; import UpdateInstanceEvents from 'components/UpdateInstanceEvents'; import UpdateInstanceSummary from 'components/UpdateInstanceSummary'; import UpdateSettings from 'components/UpdateSettings'; im...
src/snack-overflow/emcit/client/desktop/src/components/splash/index.js
civiclee/Hack4Cause2017
import React from 'react' export default class Splash extends React.Component { render() { return (<div>Hello Desktop</div>); } }