path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/device/battery-90.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1...
ReactNativeExampleApp/node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js
weien/Auth0Exercise
/** * 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. * * @provides...
src/website/app/demos/Menu/common/DemoLayout.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import { pxToEm } from '../../../../../library/styles'; import type { StyledComponent } from '@emotion/styled-base/src/utils'; const Root: StyledComponent<{ [key: string]: any }> = styled('div')( ({ theme, width }) => ({ overflow: 'hidd...
src/components/App.js
PearlR/excel-v2
import React from 'react' import { connect } from 'react-redux' import ControlBar from './ControlBar' import Spreadsheet from './Spreadsheet' const App = ({ spreadsheet }) => { return ( <div className="App"> <ControlBar /> <Spreadsheet spreadsheet={spreadsheet} /> </div> ) } const mapStateToP...
app/containers/HomePage/index.js
ipselon/react-boilerplate-clone
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import AtPrefix from './AtPre...
src/scenes/home/resetPassword/resetPassword.js
hollomancer/operationcode_frontend
import React, { Component } from 'react'; import Section from 'shared/components/section/section'; import SignUpLink from 'shared/components/signUpLink/signUpLink'; import RequestToken from './requestToken/requestToken'; import SetPassword from './setPassword/setPassword'; import styles from './resetPassword.css'; con...
packages/components/src/DataViewer/ModelViewer/Leaf/ModelViewerLeaf.component.js
Talend/ui
import classNames from 'classnames'; import noop from 'lodash/noop'; import PropTypes from 'prop-types'; import React from 'react'; import getDefaultT from '../../../translate'; import { SimpleTextKeyValue } from '../../Text'; import theme from '../ModelViewer.scss'; /** * Union with only two type and one null, are r...
src/client/pages/notfound.react.js
terakilobyte/esterethinksocketchat
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import {Link} from 'react-router'; import {msg} from '../intl/store'; class NotFound extends Component { render() { return ( <DocumentTitle title={msg('notFound.title')}> ...
examples/universal/client/index.js
iatzmon/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
src/svg-icons/image/photo.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePhoto = p...
client/modules/core/components/.stories/post.js
MechJosh0/storybook-mdl-error
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import Post from '../post'; storiesOf('core.Post', module) .add('default view', () => { const post = { title: 'React storybook is great', content: ` Lorem ipsum dolor sit amet, consectetur adipisicing elit, ...
client/src/index.js
qasim/what-class-is-this
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './static/index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/react-compat.js
robinpowered/glamorous-native
import React from 'react' // eslint-disable-next-line import/no-mutable-exports let PropTypes if (parseFloat(React.version.slice(0, 4)) >= 15.5) { try { PropTypes = require('prop-types') } catch (error) { // ignore } } PropTypes = PropTypes || React.PropTypes export default PropTypes
docs/src/sections/DatePicker2YearMonthDropdownSection.js
yyssc/ssc-grid
import React from 'react'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function DatePicker2FormatterSection() { return ( <div className="bs-docs-section"> <h3><Anchor id="date-picker2-year-month-dropdown">年份、月份下拉快速选择</A...
node_modules/react-native/RNTester/js/ActivityIndicatorExample.js
RahulDesai92/PHR
/** * 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. * * @flow * ...
docs/src/app/components/pages/components/Dialog/ExampleSimple.js
IsenrichO/mui-with-arrows
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * Dialog with action buttons. The actions are passed in as an array of React objects, * in this example [FlatButtons](/#/components/flat-button...
src/propTypes/StyleSheetPropType.js
lelandrichardson/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/StyleSheetPropType.js */ import React from 'react'; import flattenStyle from './flattenStyle'; const { PropTypes } = React; function StyleSheetPropType(shape) { const shapePropType = PropTypes.shape(shape); return function (props, p...
client/src/app/components/forms/editors/SmartCKEditor.js
zraees/sms-project
import React from 'react' import $script from 'scriptjs' export default class SmartCKEditor extends React.Component { componentDidMount() { $script("https://cdn.ckeditor.com/4.5.11/standard/ckeditor.js", ()=> { const CKEDITOR = window['CKEDITOR']; this._editor = CKEDITOR.replace(this.props.contai...
html.js
adjohnson916/site-gatsby
import React from 'react' import DocumentTitle from 'react-document-title' import { prefixLink } from 'gatsby-helpers' module.exports = React.createClass({ propTypes () { return { title: React.PropTypes.string, } }, render () { const title = DocumentTitle.rewind() let cssLink if (pro...
react/src/Checkbox.js
Chalarangelo/react-mini.css
import React from 'react'; import generateUniqueId from './util/idGenerator'; // Module constants (change according to your flavor file) var inputGroupClassName = 'input-group'; // Checkbox component. export function Checkbox (props){ var outProps = Object.assign({}, props); if (typeof outProps.labelText === 'undef...
scenes/VRSecheltScene.js
zuhairp/LearningSpace
import 'aframe'; import {Entity, Scene} from 'aframe-react'; import React from 'react'; import 'aframe-mountain-component'; import Flashcard from '../components/Flashcard'; import Sky from '../components/primitives/Sky'; /*setting up the entire mountain scene experience*/ class VRSecheltScene extends React.Component...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
luoxiaoshenghustedu/actor-platform
import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActionCreators'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; import { Styles, TextFi...
test/helpers/shallowRenderHelper.js
lxjx/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/components/pages/HmqLayout/page.js
humaniq/humaniq-pwa-website
import React, { Component } from 'react'; import * as T from "prop-types"; import './styles.scss'; import {cssClassName} from 'utils'; const cn = cssClassName('SE_HmqLayout'); import O_Fixed from 'O_Fixed' import NavBar from './NavBar' import history from 'history' class SE_HmqLayout extends Component { handleSubmi...
src/components/Login.js
farazcsk/marauders-map
import React from 'react'; import { RaisedButton, TextField } from 'material-ui'; import { browserHistory } from 'react-router'; import { getTextFromMic, checkForCorrectPassword, checkForCorrectGoodbye } from './../utils/speech.js'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; class Login exten...
assets/js/footer.js
Subash/sundar-nepal.subash.me
import React from 'react'; export default function Footer() { return ( <div className="footer alert alert-success"> <p>Made by Subash Pathak</p> <p> Follow me on <i className="fa fa-twitter" /> <a href="http://twitter.com/sbspk">@sbspk</a>, <i className="fa fa-facebook" /> ...
admin/client/App/shared/InvalidFieldType.js
giovanniRodighiero/cms
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
src/MyCurriculum.js
AdamB59/Klient
import React, { Component } from 'react'; import Sidenav from "./Sidenav"; import { getAPI } from "./service/api" export default class MyCurriculum extends Component { constructor(props){ super(props); this.state = { MyCurriculum: [] } } componentWillMount(){ ...
packages/material-ui-icons/src/Replay10.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1.8l-.3.6s-.3.3-.5.3-.4.1-.6.1-.4 0-.6-.1-.3-...
demo/reactWebDemo/src/index.js
reggieroby/devpack
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/auth/login.js
Hommasoft/wappuapp-adminpanel
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import '../../assets/css/login.css'; import * as Auth from '../../actions/auth'; class Login extends Component { handleFormSubmit({ email, password }) { this.props.login({ email, passw...
src/components/SidebarCategoryLabel.js
LBNL-UCB-STI/beam-viz
import React from 'react'; import ColorPicker from './ColorPicker'; const SidebarCategoryLabel = ({ categoryData: { categoryName, color, visible, }, onChangeCategoryColor, toggleCategoryVisible, className, }) => ( <div className={className}> <div className='layer--description'> <div ...
src/components/Footer/Footer.js
yoocky/nodecms
/** * 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...
app/components/Tabination.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; import { Motion, spring } from 'react-motion'; import styles from '../styles/tabs.scss'; const activeStyles = { border: '1px solid transparent', background: '#FFF' }; const inactiveStyles = { border: '1px solid #D9D9D9', backgr...
src/index.js
tanvir002700/taskManager
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore} from 'redux'; import allReducers from './root_reducer'; import injectTapEventPlugin from 'react-tap-event-plugin'; import App from './components/app'; injectTapEventPlugin(); const store = createSto...
app/javascript/mastodon/main.js
abcang/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { setupBrowserNotifications } from './actions/notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = requ...
src/svg-icons/hardware/dock.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDock = (props) => ( <SvgIcon {...props}> <path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z"/> </SvgIcon> ); HardwareDock = ...
src/app/components/currencies_demo/currencies_converter.js
ROZ32/react-example
import React from 'react'; import image from '../../images/cloud-upload-download-data-transfer.svg'; import '../../styles/basic_demos.scss'; import '../../styles/currencies_demo.scss'; import data from './data'; import CurrencySelector from './currency_selector'; export class CurrenciesConverter extends React.Compon...
client/components/Dynamic/Scheduler/NewActivity.js
Treeeater/expresshome
/* eslint-disable max-len */ /** * Created by Yuchen on 6/6/2017. */ import React from 'react'; import { Link, Redirect } from 'react-router-dom'; import { CardTitle } from '@material-ui/core/Card'; import { Grid, Row, Col } from 'react-styled-flexboxgrid'; import DatePicker from '@material-ui/core/DatePicker'; impor...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/oembed/search-input.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, defaultProps } from 'recompose'; import { debounce } from 'lodash'; /** * The internal dependencies. */ import { KEY_ENTER } from 'lib/constants'; /** * Render the field used to filt...
index.js
FishErr/react-native-camera
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { DeviceEventEmitter, // android NativeAppEventEmitter, // ios NativeModules, Platform, StyleSheet, requireNativeComponent, View, ViewPropTypes } from 'react-native'; const CameraManager = NativeModules.CameraManager |...
app/javascript/mastodon/components/avatar.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
app/containers/ViewProfiles/index.js
dijahmac/JobWeasel-FrontEnd
/* * * ViewProfiles * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router-dom'; import './style.css'; import './styleM.css'; import '../../global.css'; import LeftIcon from 'react-icons/lib/fa/chevron-left'; import RightIcon from 'react-icons/lib/fa/chevron-right'; ...
src/app/main.js
Boluwatifes/andela24
// import required dependencies import { BrowserRouter as Router } from 'react-router-dom'; import React from 'react'; import ReactDom from 'react-dom'; import Layout from './components/Layout'; import '../public/assets/sass/styles.scss'; const app = document.getElementById('app'); // renders the react components to ...
examples/src/MultipleSections/MultipleSections.js
confide/react-autosuggest
import React, { Component } from 'react'; import utils from '../utils'; import Autosuggest from '../../../src/Autosuggest'; import SourceCodeLink from '../SourceCodeLink/SourceCodeLink'; import suburbs from 'json!../suburbs.json'; function randomInt(min, max) { return min + Math.floor(Math.random() * (max - min + 1)...
src/front/components/Board/Board.js
ubery/comments
import React from 'react'; import { connect } from 'react-redux'; import { bind } from '../../utils/reactness'; import api from '../../api'; import style from './Board.css'; import Comment from './Comment'; import Input from './Input'; console.log(api.actions.comments.get()) class Board extends React.Component { ...
basic/node_modules/react-router/modules/Router.js
jintoppy/react-training
import createHashHistory from 'history/lib/createHashHistory' import useQueries from 'history/lib/useQueries' import React from 'react' import createTransitionManager from './createTransitionManager' import { routes } from './PropTypes' import RouterContext from './RouterContext' import { createRoutes } from './RouteU...
src/components/Row.js
nitish24p/react-connect
import React from 'react'; import Cell from './Cell' const Row = (props) => { const { rowIndex, row, nextPlayer, addPiece } = props; const generateCells = row.map((rowItem, columnIndex) => { return ( <Cell key={`${rowIndex}-${columnIndex}`} cell={rowItem} rowIndex={rowI...
src/app/routes/renderRoutes.js
djstein/modern-react
import React from 'react'; import { Route } from 'react-router'; export function renderRoutes(routes) { return routes.map(({ Layout, Component, path, exact }) => { return ( <Route key={path} path={path} exact={exact} render={props => ( <Layout {...props}> ...
definitions/npm/react-jss_v7.x.x/test_react-jss_v7.x.x.js
hansonw/flow-typed
// @flow import React from 'react'; import injectSheet, { JssProvider, ThemeProvider, withTheme, createTheming } from 'react-jss'; import type { Classes, Sheet } from 'react-jss'; const styles = { root: { backgroundColor: 'red', }, [`@media (min-width: ${10}px)`]: { root: { width: 200 } } };...
fields/types/localfiles/LocalFilesField.js
lastjune/keystone
import _ from 'underscore'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'd...
src/Parser/Warlock/Demonology/Modules/Features/DoomUptime.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { ST...
web-react/src/components/Thrusters.js
gizmo-cda/g2x-submarine-v2
import React from 'react'; import Thruster from './Thruster'; class Thrusters extends React.Component { static defaultProps = { width: 100, height: 100, data: [0.0, 0.0, 0.0, 0.0, 0.0] }; render() { let width = this.props.width; let height = this.props.height; let thrusters = this.props.data; retur...
frontend/src/components/eois/buttons/publishCfeiButton.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import ButtonWithTooltipEnabled from '../../common/buttonWithTooltipEnabled'; const messages = { text: 'Publish', }; const PublishCfeiButton = (props) => { const { handleClick, disabled, tooltipInfo } = props; ...
app/components/TopGroup/Accordion/index1.js
theterra/newsb
import React from 'react'; import GroupStyle from '../GroupStyle'; import AccordStyle from './AccordStyle'; export default class TopList extends React.Component { //eslint-disable-line constructor(props) { super(props); this.accordion = this.accordion.bind(this); } componentDidMount() { this.accordio...
index.js
nikitaignatov/magictimes
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware, combineReducers } from 'redux' import { Provider } from 'react-redux' import { syncHistoryWithStore,routerMiddleware } from 'react-router-redux' import { browserHistory } from 'react-router' impo...
Study/Udemy Docker and Kubernetes/Section09/deployment-09-finished/frontend/src/components/goals/CourseGoals.js
tarsoqueiroz/Docker
import React from 'react'; import './CourseGoals.css'; import Card from '../UI/Card'; import GoalItem from './GoalItem'; function CourseGoals(props) { const hasNoGoals = !props.goals || props.goals.length === 0; return ( <section id='course-goals'> <Card> <h2>Your Goals</h2> {hasNoGoals...
src/createBrowserRouter.js
4Catalyzer/found
import BrowserProtocol from 'farce/BrowserProtocol'; import React from 'react'; import createFarceRouter from './createFarceRouter'; import resolver from './resolver'; export default function createBrowserRouter(options) { const FarceRouter = createFarceRouter({ ...options, historyProtocol: new BrowserProto...
geonode/contrib/monitoring/frontend/src/components/cels/response-time/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import styles from './styles'; class ResponseTime extends React.Component { static propTypes = { average: PropTypes.number.isRequired, data: PropTypes.arra...
App/index.android.js
Tyler-Losinski/Rater-Mc-Ratey-Face
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, } from 'react-native'; import { Router, Scene } from 'react-native-router-flux'; import TopList from './top-list.js'; import BreweryCards from '...
packages/ringcentral-widgets-docs/src/app/pages/Components/EntityModal/Demo.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; // eslint-disable-next-line import EntityModal from 'ringcentral-widgets/components/EntityModal'; import { Button } from 'ringcentral-widgets/components/Button'; const props = {}; props.currentLocale = 'en-US'; /** * A example of `EntityModal` */ class EntityModalDemo exten...
rojak-ui-web/src/app/candidate/Candidate.js
rawgni/rojak
import React from 'react' import { connect } from 'react-redux' import { fetchCandidate } from './actions' import Card from '../kit/Card' import SocialMedia from '../kit/SocialMedia' class Candidate extends React.Component { static propTypes = { id: React.PropTypes.number.isRequired, candidate: React.PropTyp...
src/components/Table/Cell.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { uniqueId } from '../../utils'; import { IconSVG } from '../Icon'; const Cell = (props) => { const { children, className, resizable, resizableAssistiveText, scope, sortable, sortDirection,...
src/components/Comments/CommentCard.js
niquepa/react-readable
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardTitle, CardSubtitle, CardText, CardActions, Button, Icon, Grid, Cell, Dialog, DialogHeader, DialogTitle, DialogBody, DialogFo...
src/client/Wrapper.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import url from 'url'; import { connect } from 'react-redux'; import { IntlProvider } from 'react-intl'; import { withRouter } from 'react-router-dom'; import { renderRoutes } from 'react-router-config'; import { LocaleProvider, Layout } from 'antd'; import...
pages/index.js
alexmick/react-comment-experiment
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import rangyClassApplier from 'rangy/lib/rangy-classapplier'; import DocumentPage from '../components/DocumentPage'; import L...
src/containers/NotFound/NotFound.js
ptim/react-redux-universal-hot-example
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/common/components/Footer/Footer.js
pawelmaczka/wojcin
import React from 'react'; import './Footer.scss'; const Footer = () => ( <footer className="footer"> </footer> ); export default Footer;
src/icons/MenuIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class MenuIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 36h36v-4H6v4zm0-10h36v-4H6v4zm0-14v4h36v-4H6z"/></svg>;} };
packages/material-ui-icons/src/RecentActors.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.24 12.25 8 12.25 5.75 11.24 5.75 10 6.76 7.75 8...
src/main.js
0xBADDCAFE/react-tutorial-tictactoe
import React from 'react'; import ReactDOM from 'react-dom'; function Square(props) { return ( <button className="square" style={props.style} onClick={() => props.onClick()}> {props.value} </button> ); } class Board extends React.Component { renderSquare(i, causedWin) { let style = (causedWin ...
source/scripts/components/Cell.js
gsklee/cell
// < Cell/> Component // ================== // // This file defines the React component `< Cell/>`. // // Import Modules // -------------- // // ### NPM Modules import React from 'react'; // Define & Export Module // ---------------------- // // This module contains `< Cell/>`. function getRandomInteger (min, max) {...
app/javascript/mastodon/features/compose/components/compose_form.js
vahnj/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...
app/src/components/Footer/SiteMap/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React from 'react'; import { Link } from 'react-router-dom'; /* * Local Import */ /* * Component */ const SiteMap = () => ( <div id="sitemap"> <h2 id="sitemap-title">Plan du site</h2> <p id="sitemap-desc">Vous êtes perdu? Pas de soucis, suivez le guide !</p> <div i...
src/components/common/svg-icons/maps/map.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMap = (props) => ( <SvgIcon {...props}> <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ...
packages/react-error-overlay/src/containers/StackTrace.js
reedsa/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import StackFrame from './StackFrame'; import Collapsible from '../components/Coll...
src/svg-icons/action/credit-card.js
skarnecki/material-ui
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...
src/js/components/icons/base/Apps.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
static/src/components/Footer.js
hammerandchisel/airhornbot
// @flow import React from 'react'; import numeral from 'numeral'; import * as StatsActions from '../actions/StatsActions'; import * as ShareActions from '../actions/ShareActions'; import ShareStore from '../stores/ShareStore'; import Constants from '../Constants'; const Footer = React.createClass({ render() { ...
src/components/icons/AppointmentIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const AppointmentIcon = props => ( <svg {...props.size || { width: '18px', height: '20px' }} {...props} viewBox="0 0 18 20"> {props.title && <title>{props.title}</title>} <g transform="translate(-3.000000, -2.000000)"> <path d="M11,18.5 L13,18.5 L13,15.5 L16,15.5 L16,13.5 L13...
react/next/components/PageBase.js
Williammer/FrontEnd-deliberate-practices
import React, { Component } from 'react'; import Link from 'next/prefetch' import Header from '../components/Header'; export default class extends Component { render() { const { Comp } = this.props; return ( <div className="App"> <Header /> <div className="App-main"> <Comp />...
src/index.js
pierlo-upitup/polyrhythmical
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, hashHistory } from 'react-router'; import App from './App'; import About from './components/About'; import './styles/main.css'; window.React = React; render( (<Router history={hashHistory}> <Route path="/" component={App}> ...
html/components/welcome.js
hasanali2/schoolms
import React from 'react'; class Welcome extends React.Component { render() { return <p>Welcome</p> } } export {Welcome}
www/src/components/PropDescription.js
haneev/react-widgets
import get from 'lodash/get' import PropTypes from 'prop-types'; import React from 'react'; const propTypes = { prop: PropTypes.object.isRequired, }; function PropDescription({ prop }) { const html = get(prop, 'description.childMarkdownRemark.html', ''); return ( <div dangerouslySetInnerHTML={{ __html: htm...
src/imports/ui/builder/components/wizard/WizardFreeTextQuestion.js
hwillson/meteor-recommendation-builder
import React from 'react'; import WizardFreeTextAnswer from './WizardFreeTextAnswer'; const WizardFreeTextQuestion = ({ question, customerSession }) => ( <div className="wizard-question"> <h1 className="wizard-question-title"> {question.question} </h1> <WizardFreeTextAnswer question={questio...
src/components/user/index.js
plastical/react-theme
/* global PlasticalSettings */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { injectIntl } from 'react-intl'; import classNames from 'classnames'; import DocumentMeta from 'react-document-meta'; import ScrollIntoView from 'scroll-compon...
client/src/ListItem.js
pestrada/requests-app
import React, { Component } from 'react'; import { Card, CardTitle, CardText, CardActions, CardMenu, Badge, Button } from 'react-mdl'; class ListItem extends Component { componentDidMount() { } componentWillUnmount() { } approveRequest = () => { this.props.approveRequest({id: this.props.id, type: 'a...
client/src/components/StatsTable.js
tkeffer/weert-js
/* * Copyright (c) 2016-2018 Tom Keffer <tkeffer@gmail.com> * * See the file LICENSE for your full rights. */ import React from 'react'; import PropTypes from 'prop-types'; import isEmpty from 'lodash/isEmpty'; import Table from 'react-bootstrap/lib/Table'; import * as units from '../units'; import * as utility fr...
src/pages/saildrone.js
taylord65/taylord65.github.io
import React from 'react' import SidePanel from './../components/small/sidePanel' import TabbedContent from './../components/small/tabbedContent' import Desktop from './../components/small/desktop' import Footer from './../components/Footer' import Cover from './../components/Cover' import Fade from 'react-reveal...
src/svg-icons/communication/dialpad.js
pradel/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-...
client/src/components/audio/Audio.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import Loader from 'react-loader'; import StickyAlert from '../utils/StickyAlert'; import AudioForm from '../forms/Audio'; let stickyContainer; const Audio = ({ t, loaded, stickyStyle, stickyContent, ...rest }) =...
src/svg-icons/notification/do-not-disturb-on.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); NotificationDoNotDisturbOn = pure(No...
src/DetailPage.js
mirimCZ/letscode-gql
import React from 'react' import { gql, graphql, compose } from 'react-apollo' const getArticleQuery = gql` query getArticle($id: ID!) { article(id: $id) { id title content ratings { id value } } } ` const addRatingMutation = gql` mutation addRating($articl...
src/client/app/createactions.js
skaldo/este
import Component from '../components/component.react'; import React from 'react'; import fetch from 'isomorphic-fetch'; import {createValidate} from '../validate'; import * as authActions from '../auth/actions'; import * as todosActions from '../todos/actions'; const actions = [authActions, todosActions]; export def...
src/components/icon/components/explorer.js
fmsouza/wcode
import React from 'react'; // Icon taken from: https://github.com/spiffcode/ghedit export const Explorer = (props) => ( <svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' {...props}> <path d='M17.705 8H9s-2 .078-2 2v15s0 2 2 2l11-.004C22 27 22 25 22 25V13.509L17.705 8zM16 10v5h4v10H9V10h7zm5.50...
addons/graphql/.storybook/stories.js
shilman/storybook
import React from 'react'; import { storiesOf } from '@storybook/react' import { setupGraphiQL } from '../src' // setup the graphiql helper which can be used with the add method later const graphiql = setupGraphiQL({ url: 'http://localhost:3000/graphql' }); storiesOf('GraphQL Demo', module) .add('get user info', gr...
gxa/src/main/javascript/bundles/differential-expression/src/DifferentialFoldChangeCell.js
gxa/atlas
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import ReactTooltip from 'react-tooltip' import DifferentialFoldChangeCellInfo from './tooltip/DifferentialFoldChangeCellInfo' const DifferentialCellTd = styled.td` background-color: white; white-space: nowrap; f...
src/actions/notifications.js
ello/webapp
import React from 'react' import * as ACTION_TYPES from '../constants/action_types' import * as MAPPING_TYPES from '../constants/mapping_types' import * as api from '../networking/api' import * as StreamFilters from '../components/streams/StreamFilters' import * as StreamRenderables from '../components/streams/StreamRe...
app/m_components/Home.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; import ArticleList from './ArticleList'; import QuickRead from './QuickRead'; import Header from './Header' class Home extends React.Component { render() { return (<div> <QuickRead/> </div> ); } } export default Home;
src/svg-icons/image/brush.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrush = (props) => ( <SvgIcon {...props}> <path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25...