path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/material-ui-icons/src/DirectionsRun.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4....
frontend/src/Components/Form/DeviceInputConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { clearOptions, defaultState, fetchOptions } from 'Store/Actions/providerOptionActions'; import DeviceInput from './DeviceInput'; function createMapStat...
src/routes.js
lewisjared/voting-client
import React from 'react' import {Route, IndexRoute} from 'react-router'; import App from './components/App'; //import JoinForm from './components/Join'; import RoomContainer from './containers/Room'; import {VotingContainer} from './containers/Voting'; import {ResultsContainer} from './components/Results'; import {Cr...
src/Parser/Mage/Shared/Modules/Features/CancelledCasts.js
hasseboulen/WoWAnalyzer
import React from 'react'; import CoreCancelledCasts from 'Parser/Core/Modules/CancelledCasts'; import Wrapper from 'common/Wrapper'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; class CancelledCasts extends CoreCancelledCas...
src/svg-icons/content/low-priority.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLowPriority = (props) => ( <SvgIcon {...props}> <path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7....
app/javascript/mastodon/features/report/components/status_check_box.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
ajax/libs/react-instantsearch/5.0.0/Dom.js
joeyparrish/cdnjs
/*! ReactInstantSearch 5.0.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
src/components/itemsManager/GuardianSelector.js
MrRandol/littleLight
/****************** REACT IMPORTS ******************/ import React from 'react'; import { View, Image, Text, Modal, TouchableOpacity, TouchableWithoutFeedback, Dimensions, Button } from 'react-native'; /***************** CUSTOM IMPORTS ******************/ import T from 'i18n-react'; var styles = require('../../st...
src/index.js
ETBlue/llscanner
import React from 'react' import { render } from 'react-dom' import { createStore, combineReducers, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { ConnectedRouter, routerReducer, routerMiddleware } from 'react-router-redux' import createHistory from 'history/createBrowserHistory' import...
app/react-icons/fa/cc-diners-club.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCcDinersClub extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m15 26v-12.1q-1.8 0.7-3 2.4t-1.1 3.7 1.1 3.7 3 2.3z m8.8-6q0-2.1-1.1-3....
src/components/Chat/Message.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import CircularProgress from '@mui/material/CircularProgress'; import useUserCard from '../../hooks/useUserCard'; import Avatar from '../Avatar'; import Username from '../Username'; import compile from './Markup/compile'; import Delet...
src/index.js
MohammadHasham/Redux-YouOwn
import React from 'react'; import ReactDOM from 'react-dom'; import {Route,IndexRoute,Router,browserHistory} from 'react-router'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import Routes from './routes' import App from './components/app'; import reducers from './reduce...
frontend/src/components/Submission.js
beelzebielsk/hoopla
import React, { Component } from 'react'; import { Input, Button } from 'react-materialize'; import '../styles/submission.css'; import AuthService from './AuthService'; import ChallengePage from './ChallengePage'; class Submission extends Component { constructor(props){ super(props); this.state = {...
client/src/components/Task/TaskTrueFalse.js
DemocracyGuardians/DGTeam
import React from 'react'; import { withRouter } from 'react-router-dom' import PropTypes from 'prop-types' import { Button, Checkbox, Icon, Message } from 'semantic-ui-react' import TaskStepBaseClass from './TaskStepBaseClass' import './TaskTrueFalse.css' class TaskTrueFalse extends TaskStepBaseClass { constructor...
src/components/Help/Help.js
VitaliyGaliy/GroceryList
import React from 'react' import classes from './Help.scss' export const Help = () => ( <div className={classes.Help}> <h1>Help</h1> <div className='row'>fun</div> </div> ) export default Help
src/app/core/atoms/icon/icons/spill-contained.js
blowsys/reservo
import React from 'react'; const SpillContained = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M12,3 C16.9702847,3 21,7.02971525 21,12 C21,16.9702847 16.9702847,21 12,21 C7.02971525,21 3,16.9702847 3,12 C3,7.02971525 7.02971525,3 12,3 Z M12,5 C8.13428475,5 5,8.13428475 5,12 C5,15.8657153 8.13428475,19 ...
app/scripts/partials/Notification.react.js
darbio/auth0-roles-permissions-dashboard-sample
import React from 'react'; export default class Notification extends React.Component { constructor(props) { super(props); } getClassName() { if ('success' === this.props.level) { return 'alert alert-dismissible alert-success'; } else if ('error' === this.props.level) { return 'alert alert-dismissible a...
src/svg-icons/navigation/close.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose = pure(Navig...
web/src/common/index.js
Jorginho211/TFG
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { Router, hashHistory as history } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import injectTapEventPlugin from 'react-tap-event-plugin' import { IntlProv...
src/svg-icons/device/signal-cellular-no-sim.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
components/CellTags.js
lodev09/react-native-cell-components
import React from 'react'; import PropTypes from 'prop-types'; import theme from '../lib/theme'; import Cell from './Cell'; import { View, TextInput, Text, TouchableWithoutFeedback, TouchableOpacity, StyleSheet } from 'react-native'; class CellTags extends React.Component { static defaultProps = { ...
app/containers/HolidaysPage/index.js
zebbra-repos/Zeiterfassung-medi
/* * * HolidaysPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { bindRoutineCreators } from 'redux-saga-routines'; import { createStructuredSelector } from 'reselect'; import { fromJS } from 'immutabl...
src/components/shared/Pane.js
svrnm/demomonkey
import React from 'react' import PropTypes from 'prop-types' class Pane extends React.Component { static propTypes = { children: PropTypes.any } render() { return ( <div className="tabs__pane"> {this.props.children} </div> ) } } export default Pane
assets/javascripts/kitten/karl/pages/footer/components/baseline.js
KissKissBankBank/kitten
import React from 'react' import { Title, KkbbFlashIllustration } from 'kitten' import { SocialButton } from './social-button' export const Baseline = props => { return ( <div className="k-Footer__baseline" {...props}> <KkbbFlashIllustration className="k-u-hidden@m-down" /> <KkbbFlashIllustration siz...
app/components/SideDrawer/index.js
omeryagmurlu/algoriv
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { themedStyle, themeVars } from 'app/utils'; import FlatButton from 'material-ui/FlatButton'; import HardwareKeyboardArrowRight from 'material-ui/svg-icons/hardware/keyboard-arrow-right'; import H...
docs/app/Examples/elements/Step/Variations/Sizes.js
jamiehill/stardust
import React from 'react' import { Step } from 'stardust' const steps = [ { icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' }, { active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' }, { disabled: true, icon: 'info', title: 'Confirm Order', descr...
src/svg-icons/editor/format-align-center.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignCenter = pure(EditorFormatAli...
src/components/Editor/EditorPreviewPane/PreviewHOC.js
Aloomaio/netlify-cms
import React from 'react'; class PreviewHOC extends React.Component { /** * Only re-render on value change, but always re-render objects and lists. * Their child widgets will each also be wrapped with this component, and * will only be updated on value change. */ shouldComponentUpdate(nextProps) { ...
node_modules/re-base/examples/firebase/todolist - syncState/chatapp/src/components/NewChat.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import base from '../rebase'; class NewChat extends React.Component { _newChat(e) { e.preventDefault(); /* * Here, we call .post on the '/chats' ref * of our Firebase. This will do a one-time 'set' on * that ref, replacing it with ...
src/server.js
thomastanhb/ericras
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/common/Components/PrivateRoute.js
NERC-CEH/irecord-app
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import userModel from 'user_model'; const PrivateRoute = ({ component }) => { const routeRender = props => { if (userModel.hasLogIn()) { return React.createElement(component, props); } ...
client/src/components/common/adminDashboard.js
natalie-elizabeth/doczy
import React, { Component } from 'react'; import { Card, CardTitle } from 'material-ui/Card'; import DocumentList from '../Documents/documentList'; import RaisedButton from 'material-ui/RaisedButton'; import { Link } from 'react-router-dom'; const dashboard = () => ( <div> <Card className="container"> ...
app/static/src/diagnostic/ItemDetails.js
vsilent/Vision
import React from 'react'; import ReactDOM from 'react-dom'; import * as d3 from "d3"; import EquipmentForm from './EquipmentForm'; var ItemDetails = React.createClass({ getInitialState: function () { return { isVisible: false, action: 'hide', equipment:{} } ...
src/Main/Layout/DocumentTitleUpdater.js
enragednuke/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import getFightName from 'common/getFightName'; import { getFightId, getPlayerName, getReportCode } from 'selectors/url/report'; import { getFightById } from 'selectors/fight'; import { getReport } from 'selectors/rep...
app/javascript/mastodon/features/pinned_statuses/index.js
pointlessone/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
docs/tutorial/DO_NOT_TOUCH/04/src/components/App/index.js
FWeinb/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, signal} from 'cerebral/tags' import Toast from '../Toast' export default connect({ title: state`title`, subTitle: state`subTitle`, buttonClicked: signal`buttonClicked` }, function App (props) { return ( <div className='o-...
client/src/index.js
dotloadmovie/smf-s3-upload-bridge
import React from 'react'; import ReactDOM from 'react-dom'; import './css/index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
server/routes/react-router-render.js
tech-dojo/react-showcase
import React from 'react'; import {renderToString} from 'react-dom/server'; import {match, RouterContext} from 'react-router'; import createLocation from 'history/lib/createLocation'; import ShowCase from './../../app/components/ShowCase'; import DataWrapper from './../../app/components/DataWrapper'; import ShowPiece f...
src/pages/admin/CustomersProspectAdminPage.js
ihenvyr/react-app
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; const CustomersProspectAdminPage = () => { return ( <div> <Helmet title="Prospect Customers - Admin" meta={[ { name: "description", content: "Prospect Customers - Admin" } ...
app/components/elements/common/modal.js
allecsro/dynotool
import React from 'react'; import PropTypes from 'prop-types'; const Modal = (props) => { return ( <div className="modal active item-modal"> <div className="modal-overlay" /> <div className="modal-container"> <div className="modal-header"> <button className="btn btn-clear float-righ...
lib/components/GithubRepo/GithubRepo.js
vandreleal/react-social-github
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { StarIcon, RepoIcon, RepoForkedIcon, OctofaceIcon } from 'react-octicons'; import './GithubRepo.css'; var emojiJs = require('emoji-js'); class GithubRepo extends Component { constructor() { super(); this.state = { ...
client/components/Home.js
JessicaNeary/store-front
import React from 'react' import ImageScroller from './ImageScroller' import ProductGallery from './ProductGallery' import { products } from '../../products.js' const Home = () => { const featured = products.filter(function (item) { return item.featured }) return ( <div className='Home'> <ImageSc...
src/components/status.js
openregister/specification
import React from 'react'; import PropTypes from 'prop-types'; import { css } from 'emotion'; const wipStyle = css` background-color: tomato; color: ivory; text-transform: uppercase; line-height: 1.1; font-size: 16px; vertical-align: middle; padding: 0 2px; `; const expStyle = css` background-color: ...
app/config/routes.js
natac13/london-ontario-data
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from '../containers/App' import Search from '../components/Search/' import RouteTimesWrapper from '../components/RouteTimesWrapper/' export default ( <Route path='/' component={App}> <IndexRoute component={Search} /> <Rout...
packages/icons/src/md/navigation/ChevronRight.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdChevronRight(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <polygon points="19.83 12 17 14.83 26.17 24 17 33.17 19.83 36 31.83 24" /> </IconBase> ); } export default MdChevronRight;
tools/public-components.js
pivotal-cf/react-bootstrap
import React from 'react'; import * as index from '../src/index'; let components = []; Object.keys(index).forEach(function (item) { if (index[item] instanceof React.Component.constructor) { components.push(item); } }); export default components;
admin/client/components/ItemsTableRow.js
riyadhalnur/keystone
import React from 'react'; import classnames from 'classnames'; import Columns from '../columns'; import CurrentListStore from '../stores/CurrentListStore'; import ListControl from './ListControl'; import { DropTarget, DragSource } from 'react-dnd'; const ItemsRow = React.createClass({ propTypes: { columns: React...
src/svg-icons/editor/merge-type.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
docs/app/Examples/addons/Radio/Types/RadioExampleToggle.js
shengnian/shengnian-ui-react
import React from 'react' import { Radio } from 'shengnian-ui-react' const RadioExampleToggle = () => ( <Radio toggle /> ) export default RadioExampleToggle
src/scripts/views/HomeView.js
IronNation/NCI-trial-search
import Header from './header' import React from 'react' import ResultsList from './map' class HomeView extends React.Component { render() { return ( <div className = 'homeView'> <Header /> <Home /> </div> ) } } class Home extends React.C...
Tutorial/ReactVersion/src/index.js
tableau/extensions-api
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Main'; ReactDOM.render(<App />, document.getElementById('root'));
src/components/Menubar.js
r-portas/robogals-brisbane-pwa
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; import './Menubar.css'; class Menubar extends Component { parseLink(link) { if (link.object === 'page') { return link.object_slug; } return link.object; } renderSubLink...
packages/react-server-examples/bike-share/components/station-card.js
davidalber/react-server
import React from 'react'; import {logging} from 'react-server'; const logger = logging.getLogger(__LOGGER__); const timeSinceTimestamp = s => { const parsed = Date.parse(s); const timeSince = (new Date()) - parsed; const minutesSince = Math.floor(timeSince / 60000); const secondsSince = Math.floor((timeSince / 10...
app/javascript/mastodon/features/domain_blocks/index.js
salvadorpla/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/user/ChangePasswordSuccessMessage.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { FormattedMessage, injectIntl } from 'react-intl'; const localMessages = { title: { id: 'success.email', defaultMessage: 'Password Changed' }, intro: { id: 'success.emailInfo', defaultMes...
demo/component/Legend.js
scostaqb/recharts
import React from 'react'; import { Surface, Legend } from 'recharts'; const data = [ { value: 'Apple', color: '#ff7300' }, { value: 'Samsung', color: '#bb7300' }, { value: 'Huawei', color: '#887300' }, { value: 'Sony', color: '#667300' }, ]; const data2 = [ { value: 'Apple', type: 'scatter', color: '#ff730...
src/client/components/base/Share/Share.js
DBCDK/content-first
import React from 'react'; import facebook from './facebook.svg'; import './Share.css'; /** Social media share button - Currently only supporting facebook * @param {String} href (!Required) The url to the page you want the user to share * @param {String or Object} children The button text * @param {bool} p...
src/components/OptimisticSlider/OptimisticSlider.js
bhj/karaoke-forever
import React from 'react' import PropTypes from 'prop-types' import Slider from 'rc-slider' import { lockScrolling } from 'store/modules/ui' // depends on styles/global/rc-slider export default class OptimisticSlider extends React.Component { static propTypes = { className: PropTypes.string, handle: PropType...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxlayout.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxLayout = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
src/components/ImportEpwing.js
rsimmons/immersion-player
import React, { Component } from 'react'; import './ImportEpwing.css'; import SecondaryScreen from './SecondaryScreen.js'; import SystemBrowserLink from './SystemBrowserLink.js'; import Button from './Button.js'; import { importEpwing } from '../dictionary'; const { ipcRenderer } = window.require('electron'); // use...
src/components/meetings/questions/QuestionsList.js
VGraupera/1on1tracker
import React from 'react'; import { List, ListItem } from 'material-ui/List'; import Paper from 'material-ui/Paper'; import QuestionAnswer from 'material-ui/svg-icons/action/question-answer'; import PropTypes from 'prop-types'; /** * @description PropTypes for QuestionsList * @type {{questions}} */ const propTypes ...
redux-form/src/index.js
murielg/react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-promise'; import reducers from './reducers'; import routes from './routes'; const ...
src/components/characterCard/CharacterCardEdit.js
Beardles/novelizr
import React from 'react' import { Button, Header, Icon, Modal } from 'semantic-ui-react' import CharacterCardForm from './CharacterCardForm' const CharacterCardEdit = ({ open, characters, selectedCharacterCard, updateSelectedCharacterCard, handleCreateComplete, handleEditCancel }) => { if (selectedCharacterCard =...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.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...
src/svg-icons/action/spellcheck.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpellcheck = (props) => ( <SvgIcon {...props}> <path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-...
packages/material-ui-icons/src/AirlineSeatReclineNormal.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5 5 5h6v-2H9c-1.66 0-3-1.34-3-3zm14 4.07L14.93 15H11.5v-3.68c1.4 1.15 ...
src/routes/dashboard/components/completed.js
hhj679/mybition-web
import React from 'react' import PropTypes from 'prop-types' import styles from './completed.less' import classnames from 'classnames' import { color } from '../../../utils' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' function Completed ({ data }) { r...
src/renderer/components/requests/request-stats.js
niklasi/halland-proxy
import React from 'react' import {CardText} from 'material-ui/Card' import prettyBytes from 'pretty-bytes' import prettyMs from 'pretty-ms' const RequestStats = ({ metadata = {} }) => { return <CardText> <div>Response time: {prettyMs(metadata.responseTime || 0)}</div> <div>Response size: {prettyBytes(metadat...
client/views/setupWizard/Pager.js
Sing-Li/Rocket.Chat
import { Button, ButtonGroup } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../contexts/TranslationContext'; export function Pager({ disabled, onBackClick, isContinueEnabled = true }) { const t = useTranslation(); return <ButtonGroup align='end'> {onBackClick ? <But...
src/components/flows/thirdPillar/ThirdPillarSetup/ThirdPillarSetup.js
TulevaEE/onboarding-client
import React from 'react'; import Types from 'prop-types'; import { Link, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; export const ThirdPillarSetup = ({ nextPath, isThirdPillarActive }) => ( <div> {isThirdPillarActive && <Redirect to={...
src/cell/index.js
HVF/franchise
import React from 'react' import ReactDOM from 'react-dom' import * as State from '../state' import * as U from '../state/update' import ReactCodeMirror from '@skidding/react-codemirror' import CodeMirror from 'codemirror' // import 'codemirror/mode/sql/sql' import 'codemirror/mode/markdown/markdown' import 'codemir...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
rutan/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; @injectIntl export default class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
src/components/Home.js
Jalissa/rss-feed-client
import React from 'react'; const Home = (props) => { return ( <div> <h1 className="text-center">Feedr</h1> <p className="text-center">Your offline rss reader</p> <div className="jumbotron"> {props.children} </div> </div> ); }; export default Home;
src/parser/demonhunter/havoc/modules/talents/Demonic.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SpellLink...
app/components/SignupForm.js
trussworks/DoDidDone
import React from 'react'; import TextField from 'material-ui/TextField'; const SignupForm = () => ( <div> <TextField hintText="Name" id="nameField" /><br /> <TextField hintText="Email" errorText="This field is required." id="emailField" type="email" /><br /> <...
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js
hsavit1/gosofi_webpage
// TODO: This module should be ElementChildren, and should use named exports. import React from 'react'; /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the compone...
docs/src/app/components/pages/components/Snackbar/ExampleAction.js
w01fgang/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleSimple extends React.Component { constructor(props) { super(props); this.state = { autoHideDur...
client/components/App.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import Routes from './routing/Routes' import UserDataContainer from 'client/containers/UserDataContainer' /* * The Provider component provides * the React store to all its child * components so we don't need to pass * it explicitly to all the components....
client/src/h.js
ChenH0ng/blog
import React from 'react'; export default React.createElement;
app/components/Institution/DeletePermissionMsg.js
klpdotorg/tada-frontend
import React from 'react'; const DeletePermissionMsg = () => { return ( <div className="alert alert-info"> <i className="fa fa-info-circle fa-lg" aria-hidden="true" /> You cannot delete this institution until its classes are deleted </div> ); }; export { DeletePermissionMsg };
fields/types/date/DateColumn.js
Freakland/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, ...
src/common/Socket/Channel.js
Syncano/syncano-dashboard
import React from 'react'; import { colors as Colors } from 'material-ui/styles/'; import SocketWrapper from './SocketWrapper'; export default React.createClass({ displayName: 'ChannelSocket', getDefaultProps() { return { tooltip: 'Create a Channel Socket' }; }, getStyles() { return { ...
app/javascript/components/HandoverAutocomplete.js
leihs/leihs_legacy
// TODO: cleanup /* eslint-disable react/no-string-refs */ /* global _ */ /* global _jed */ import React from 'react' import createReactClass from 'create-react-class' import PropTypes from 'prop-types' import Autocomplete from '@eins78/react-autocomplete' export const HandoverAutocomplete = createReactClass({ pro...
docs/app/Examples/collections/Form/Types/FormExampleForm.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button, Checkbox, Form } from 'semantic-ui-react' const FormExampleForm = () => ( <Form> <Form.Field> <label>First Name</label> <input placeholder='First Name' /> </Form.Field> <Form.Field> <label>Last Name</label> <input placeholder='Last Name' ...
components/SVG/FacebookSvg.js
numieco/numie
import React from 'react' export default class FacebookSvg extends React.Component { render () { return ( <svg width="40px" height="40px" viewBox="0 0 40 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink"> <title>facebook-logo-button</title> <...
src/svg-icons/device/signal-cellular-no-sim.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
malte-wessel/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class AnnouncementsSidebar extends React.Component { render() { let { announcements } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcements....
packages/mcs-lite-ui/src/LandingHeader/LandingHeader.js
MCS-Lite/mcs-lite
/* global window */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import rafThrottle from 'raf-throttle'; import getScrollTop from '../utils/getScrollTop'; const ZINDEX = 1; export const Container = styled.header` height: ${props => props.theme.height.header...
ui/app.js
JamenMarz/cluster
import React, { Component } from 'react'; import { Bar } from '.'; class App extends Component { render() { return ( <div className="app"> <Bar /> <div>{this.props.children}</div> </div> ); } } export default App;
src/svg-icons/social/school.js
kasra-co/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...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
v2tmobile/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import pureRender from 'pure-render-decorator'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions/AddContactActionCreators'...
packages/cf-builder-card/example/basic/component.js
koddsson/cf-ui
import React from 'react'; import { CardBuilder } from 'cf-builder-card'; import { Table, TableBody, TableRow, TableCell } from 'cf-component-table'; import { Button } from 'cf-component-button'; const EXAMPLE_CARD = 'EXAMPLE_CARD'; const MyButton = ( <Button type="default" onClick={() => console.log('Button clicke...
PuppyPlayDate/UserEdit.js
Tooconfident/Puppy_PlayDate
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TextInput, View, ListView, NavigatorIOS, Image, TouchableHighlight } from 'react-native'; import UserDogs from './UserDogs'; const styles = require('./style.js'); // URL to the API to get a specific user if you append...
src/components/List/ListItem.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import Icon from '../Icon'; export const ListItem = ({ children, className, title, kind, ...other }) => { const classNames = classnames('wfp--list__element', className, { 'wfp--list-item--checkmark': kind === 'che...
app/index.js
lachok/react-starter
import 'react-hot-loader/patch' import React from 'react' import { render } from 'react-dom' import './main.less' import App from './App' import { AppContainer } from 'react-hot-loader' const renderApp = (AppComponent) => { render(<AppContainer><AppComponent /></AppContainer>, document.getElementById('app')) } ren...
packages/material-ui-icons/src/Battery20Sharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 17v5h10v-5H7z" /><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v13h10V4z" /></React.Fragment> , 'Battery20Sharp');
pages/_document.js
AptoGen/AptoGen-Website
import React from 'react'; import Document, { Head, Main, NextScript } from 'next/document'; import flush from 'styled-jsx/server'; import { COLORS } from '../lib/styles'; export default class MyDocument extends Document { static getInitialProps({ renderPage }) { const { html, head, errorHtml, chunks ...
src/app/homelessness/HomelessnessSummary.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import HomelessnessCounts from './HomelessnessCounts'; import HomelessnessDemographics from './HomelessnessDemographics'; import HomelessnessEnrollment from './HomelessnessEnrollment'; import PageHeader from '../../shared/PageHeader'; import ButtonGroup fro...
investninja-web-ui-admin/src/components/Header/Header.js
InvestNinja/InvestNinja-web-ui
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
frontend/src/Settings/Profiles/Metadata/ReleaseStatusItems.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FormGroup from 'Components/Form/FormGroup'; import FormInputHelpText from 'Components/Form/FormInputHelpText'; import FormLabel from 'Components/Form/FormLabel'; import ReleaseStatusItem from './ReleaseStatusItem'; import styles from '...