path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes/Todo/containers/AddTodo.js
YannickBochatay/JSYG-starterkit
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' import { FormattedMessage } from "react-intl" class AddTodo extends React.Component { constructor(props) { super(props) this.onSubmit = this.onSubmit.bind(this) } onSubmit(e) { e.preventDefault(...
src/components/OfficialRankGraph.js
giladgreen/pokerStats
import React, { Component } from 'react'; import {connect} from 'react-redux'; import {cloneDeep} from 'lodash'; import {getBackgroundColorByPlayerName, geTextColorByPlayerName} from '../colorsHelper'; import {bindActionCreators} from 'redux'; import {LineChart,ReferenceLine, Line, XAxis, YAxis, CartesianGrid, Tooltip,...
ignite/Examples/Containers/ignite-ir-boilerplate/GridExample.js
jpklein/TwistedMind
import React from 'react' import { View, Text, ListView } from 'react-native' import { connect } from 'react-redux' // For empty lists // import AlertMessage from '../Components/AlertMessage' // Styles import styles from './Styles/GridExampleStyle' class GridExample extends React.Component { constructor (props) { ...
ui/js/components/SectionMultiEdit.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormFieldAdd from './FormFieldAdd'; import Button from './Button'; import SectionFields from './SectionFields'; import SectionItem from './SectionItem'; export default class SectionMultiEdit extends Component { constructor() { ...
imports/ui/components/SessionList.js
hanstest/hxgny
import React from 'react' import DataList from '../components/DataList' import { insertSession, updateSession, removeSession } from '../../api/data/methods' class SessionList extends React.Component { state = { key: (new Date()).getTime(), } refresh = () => { this.setState({ key: (new Date()).getTime(...
front-end (deprecated)/src/components/Shared/Footer.js
iankhor/medrefer
import React from 'react' const Footer = (props) => { return ( <div className="generic-center"> <h1>This is from Footer</h1> </div> ) } export default Footer
src/utils/ValidComponentChildren.js
thealjey/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
components/MessageForm.js
caesai/sushka-chat
import React from 'react'; // import io from 'socket.io-client'; import { connect } from 'react-redux'; import * as actions from '../actions/actions'; import store from '../store/store'; import * as styles from './scss/MessageForm.scss'; // const socket = io(); export default class MessageForm extends React.Component...
src/components/Results.js
my-contributions/my-contributions.github.io
import './Results.scss'; import React from 'react'; import PropTypes from 'prop-types'; import GitHub from '../api/GitHub'; import Author from './Author'; import PullRequests from './PullRequests'; import Issues from './Issues'; export default class Results extends React.PureComponent { render() { return ...
src/js/components/icons/base/Scorecard.js
kylebyerly-hp/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...
node_modules/react-scripts/template/src/index.js
CodeShareRepeat/ReactBookStore
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
breezy_rails/lib/install/templates/web/application.js
jho406/Breezy
import React from 'react'; import { combineReducers, createStore, applyMiddleware, compose } from 'redux'; import reduceReducers from 'reduce-reducers'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import { render } from 'react-dom'; import { ApplicationBase, fragmentMiddleware } from '@jho4...
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Base/Loading/Loading.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
components/time_picker/ClockHours.js
KerenChandran/react-toolbox
import React from 'react'; import utils from '../utils/utils'; import Face from './ClockFace'; import Hand from './ClockHand'; const outerNumbers = [0, ...utils.range(13, 24)]; const innerNumbers = [12, ...utils.range(1, 12)]; const innerSpacing = 1.7; const step = 360 / 12; class Hours extends React.Component { st...
fields/types/localfile/LocalFileField.js
matthieugayon/keystone
import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; module.exports = Field.create({ shouldCollapse () { return this.props.collapse && !this.hasExisting(); }, fileFieldNode () { return ReactDOM.findDOMNod...
client/views/edit_seq.js
visipedia/annotation_tools
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap'; import {KEYS} from '../utils.js'; /** * Edit a sequence of images. Unlike task_seq.js, this will load and save data to the server each time, * rather than saving state. */ export class EditSequence extends React.Component { con...
src/documentation/Favicons/FaviconGenerator.js
wfp/ui
/* eslint-disable jsx-a11y/label-has-associated-control */ /* eslint-disable no-console */ import React, { Component } from 'react'; import Button from '../../components/Button'; import TextInput from '../../components/TextInput'; import { Module, ModuleBody } from '../../components/Module'; import ReduxFormWrapper fr...
src/app/common/UserInterface/components/Text.js
toxzilla/app
import React from 'react'; import shallowCompare from 'react-addons-shallow-compare'; export default class Text extends React.Component { static displayName = 'Text' static propTypes = { l10n: React.PropTypes.object.isRequired, id: React.PropTypes.string, className: React.PropTypes.string, onTran...
app/javascript/mastodon/features/getting_started/index.js
rekif/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/modules/RenderHtmlLayout.js
janoist1/universal-react-redux-starter-kit
import React from 'react' import server from 'react-dom/server' /** * Render the HTML layout * * @param head * @param body & scripts * @param resolverPayload * @returns {string} */ export function renderHtmlLayout(head, body, resolverPayload = {}) { return '<!DOCTYPE html>' + (0, server.renderToStaticMarkup)(...
components/publication/datasets.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' import {sortBy, deburr} from 'lodash' import LoadingIcon from 'react-icons/lib/fa/refresh' import Box from '../box' import Link from '../link' import Button from '../button' class Datasets extends React.Component { static propTypes = { published: Pro...
src/CommentForm.js
JiLiZART/react-tutorial
'use strict'; import React from 'react'; export default React.createClass({ displayName: 'CommentForm', onSubmitHandler(e) { e.preventDefault(); this.handleSubmit(); return; }, handleSubmit() { var author = React.findDOMNode(this.refs.author).value.trim(); var...
src/components/header_page.js
kaloudiyi/VotePlexClient
// src/components/Header.js import React, { Component } from 'react'; import { Nav, Navbar, NavItem } from 'react-bootstrap'; import PropTypes from 'prop-types'; import history from '../history'; class HeaderPage extends Component { createPoll() { history.replace('/polladd'); } login() { this.props.auth...
src/stories/Welcome.js
raavanan/jukebox
import React from 'react'; const styles = { main: { margin: 15, maxWidth: 600, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', }, logo: { width: 200, }, link: { color: '#1474f3', textDecoration: 'none', borderBottom: '1px ...
src/components/omnibar/Omnibar.js
ello/webapp
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import Editor from '../editor/Editor' import { ChevronIcon } from '../assets/Icons' import { css, hover, media, modifier } from '../../styles/jss' import * as s from '../../styles/jso' const omnibarStyle = css( s.relativ...
src/components/EventHeader/EventHeader.js
filipsuk/eventigoApp
/* @flow */ import React from 'react'; import { Text, View, StyleSheet } from 'react-native'; import EventTags from '../EventTags'; import EventDate from '../EventDate'; import LinearGradient from 'react-native-linear-gradient'; import { fontSizes } from '../../styles'; import type { Event } from '../../types/model'; ...
src/components/icons/WindIcon.js
maximgatilin/weathernow
import React from 'react'; export default function WindIcon() { return ( <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 194.71 125.2"><title>wind</title><path d="M749,698.65h0c0-.25,0-0.5,0-0.75a36.25,36.25,0,1,0-72.51,0s0,0,0,.07a29.59,29.59,0,0,0,1.39,59.16H749A29.24,29.24,...
demo/src/index.js
FunctionFoundry/react-table-for-bootstrap
/** * Copyright (c) 2015, Peter W Moresi * */ import React from 'react'; import MyApp from './components/MyApp.js' React.render( <div className="container main"> <h1>Crayola Colors</h1> <MyApp /> </div>, document.body );
node_modules/react-icons/md/cake.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdCake = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 15c2.7 0 5 2.3 5 5v2.6c0 1.8-1.5 3.3-3.3 3.3-0.8 0-1.6-0.4-2.2-1l-3.6-3.6-3.6 3.6c-1.3 1.3-3.4 1.3-4.6 0l-3.6-3.6-3.6 3.6c-0.6 0.6-1.4 1-2.2 1-1.8 0-3.3-1.5-3.3-3.3v...
app/components/ProblemExamples/index.js
zmora-agh/zmora-ui
/** * * ProblemExamples * */ import React from 'react'; import Paper from 'material-ui/Paper'; import Grid from 'material-ui/Grid'; import Typography from 'material-ui/Typography'; import Divider from 'material-ui/Divider'; import { FormattedMessage } from 'react-intl'; import { examplesPropType } from './constants'...
imports/ui/pages/teams/NewTeam.js
KyneSilverhide/team-manager
import React from 'react'; import TeamEditor from '../../components/teams/TeamEditor.js'; const NewTeam = () => ( <div className="NewTeam"> <h4 className="page-header">Ajout d'une nouvelle équipe</h4> <TeamEditor /> </div> ); export default NewTeam;
src/client/components/devtools/index.js
kevinhikaruevans/uojs2
import React, { Component } from 'react'; import DevtoolsMap from 'component/devtools-map' import DevtoolsCursore from 'component/devtools-cursore' import style from './style' class Devtools extends Component { static displayName = '[component] devtools'; state = { x : localStorage.getItem('d...
es/components/sidebar/panel.js
cvdlab/react-planner
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var _createClass = function () { function defineProperties(ta...
src/views/main/routes.js
zanph/board
import React from 'react' import {Route, IndexRoute} from 'react-router' import Main from './Main' import Container from './Container' import CommentBox from 'components/CommentBox/CommentBox' import Landing from 'components/Landing/Landing' export const makeMainRoutes = () => { return ( <Route path="/" compone...
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/DeleteDialog.js
mccun934/katello
import React from 'react'; import PropTypes from 'prop-types'; import { MessageDialog } from 'patternfly-react'; import { sprintf, translate as __ } from 'foremanReact/common/I18n'; const DeleteDialog = ({ show, selectedRows, onDeleteSubscriptions, onSubscriptionDeleteModalClose, }) => ( <MessageDialog show={s...
front/app/js/components/controls/containers/Module.js
nudoru/React-Starter-3
import React from 'react'; import PropTypes from 'prop-types'; import { css } from 'emotion'; import { metrics, modularScale, colorList } from '../../../theme/Theme'; import { Container } from './Container'; import { joinClasses } from '../../../utils/componentUtils'; const containerComponentStyle = css` width: 100%...
src/components/appbar.js
Rabbit884/reactapp
import React from 'react'; import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import LinearProgress from 'material-ui/LinearProgress'; import { cyanA200 } from 'material-ui/styles/colors' import { Link } from 'react-router'; const titleName =...
pootle/static/js/admin/components/SearchBox.js
pavels/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import _ from 'underscore'; c...
src/svg-icons/action/offline-pin.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...
app/javascript/mastodon/features/list_editor/components/account.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
src/components/FBLoginView.js
dbyilmaz/jobs
import React, { Component } from 'react'; import { StyleSheet,Text,View } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome' import { Button, SocialIcon } from 'react-native-elements'; class FBLoginView extends Component { static contextTypes = { isLoggedIn: React.PropTypes.bool,...
server/soman/frontend/app/components/sensors/EventHistory.js
bilgorajskim/soman
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; const styles = { radioButton: { marginTop: 16, }, }; /** * Dialog c...
src/layouts/layout-4-5.js
nuruddeensalihu/binary-next-gen
import React from 'react'; export default (components, className, onClick) => ( <div className={className} onClick={onClick}> <div className="vertical"> {components[0]} {components[1]} {components[2]} </div> <div className="horizontal"> {compo...
admin/client/App/screens/Item/components/RelatedItemsList.js
helloworld3q3q/keystone
import React from 'react'; import { Link } from 'react-router'; import { Columns } from 'FieldTypes'; import { Alert, Spinner } from 'elemental'; const RelatedItemsList = React.createClass({ propTypes: { list: React.PropTypes.object.isRequired, refList: React.PropTypes.object.isRequired, relatedItemId: React.Pr...
src/client/home/components/Nav/Nav.js
noahamar/smlscrn
import React from 'react'; import classNames from 'classnames/bind'; import styles from './Nav.styl'; import FilterOptions from '../FilterOptions/FilterOptions'; import MenuButton from '../MenuButton/MenuButton'; const cx = classNames.bind(styles); export default class Nav extends React.Component { constructor(pr...
src/utils/childUtils.js
xmityaz/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export function createChildFragment(fragments) { const newFragments = {}; let validChildrenCount = 0; let firstKey; // Only create non-empty key fragments for (const key in fragments) { const currentChild = fragments[k...
src/encoded/static/components/static-pages/placeholders/HiGlassEmbeddedInstance.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { console, object, ajax } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { BasicUserContentBody, ExpandableStaticHeader } from './../components/BasicUserContentBody'; import { HiGla...
packages/material-ui-icons/src/Tablet.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z" /></g> , 'Tablet');
packages/storyboard-extension-chrome/src/components/015-toolbar.js
guigrpa/storyboard
import React from 'react'; import * as ReactRedux from 'react-redux'; import { Icon, isDark, hintShow } from 'giu'; import Login from './010-login'; import Settings from './016-settings'; import * as actions from '../actions/actions'; const mapStateToProps = (state) => ({ wsState: state.cx.wsState, }); const mapDisp...
internals/templates/appContainer.js
54vanya/ru-for-you-front
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
local-cli/templates/HelloWorld/index.ios.js
peterp/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
src/containers/search_bar.js
jstowers/ReduxWeatherApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; // import fetchWeather payload import { fetchWeather} from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' } ...
src/components/data/DataExplorer.js
dherault/Oso
import React from 'react'; import definitions from '../../models/'; import { Link } from 'react-router'; export default class DataExplorer extends React.Component { render() { const links = Object.keys(definitions).map(model => { const x = definitions[model].pluralName; return <li key=...
node_modules/react-native/Libraries/Components/WebView/WebView.ios.js
TrungSpy/React-Native-SampleProject
/** * 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...
packages/arwes/src/Content/Content.js
romelperez/prhone-ui
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; export default function Content(props) { const { theme, classes, className, children, ...etc } = props; const cls = cx(classes.root, className); return ( <div className={cls} {...etc}> {children} </div> );...
client/LogoBar/Name.js
PicDrop/PicDrop
import React from 'react'; class Name extends React.Component { render() { return ( <div className="box"> <h2>PicDrop</h2> </div> ); } } export default Name;
src/scenes/User/components/Overview/components/TimelineGroup/index.js
antoinechalifour/Reddix
import React from 'react' import styled from 'styled-components' import TimelineItem from '../TimelineItem' import { BOX_SHADOW_2 } from 'Util/constants' const Container = styled.div` display: flex; flex-direction: row; ` const Posts = styled.div` flex: 1; padding: 24px 16px; ` const Timeline = styled.div` ...
tests/unit/development/TestReactComponentRequired.react.js
plotly/dash
import React from 'react'; // A react component with all of the available proptypes to run tests over /** * This is a description of the component. * It's multiple lines long. */ class ReactComponent extends Component { render() { return ''; } } ReactComponent.propTypes = { children: React.Prop...
docs/src/Anchor.js
xiaoking/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
src/modules/PlaylistUploadButton/component.js
svmn/ace-fnd
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import CircularProgress from 'material-ui/CircularProgress'; import FontIcon from 'material-ui/FontIcon'; import { fullWhite } from 'material-ui/styles/colors'; export defa...
packages/reactor-rest-example/src/index.js
sencha/extjs-reactor
import 'babel-polyfill'; import React from 'react'; import App from './App'; import { launch } from '@extjs/reactor'; launch(<App/>);
modules/IndexRoute.js
yongxu/react-router
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './PropTypes'; var { bool, func } = React.PropTypes; /** * An <IndexRoute> is used to specify its parent's <Route indexRoute> in * a JSX route config...
src/client/lib/validation.js
dfogas/my-mindmap
/* Simple serial "one by one" sync/async promises based validation. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message: string, prop: string) { super(); this.message = message; this.prop = pro...
src/components/Footer/Footer.js
IanChuckYin/IanChuckYin.github.io
import React, { Component } from 'react'; import styles from './Footer.module.scss'; import { connect } from 'react-redux'; import SplitContainer from '../SplitContainer/SplitContainer'; import WithTypeAnimation from '../../hoc/WithTypeAnimation/WithTypeAnimation'; const TYPE_ANIMATION_OPTIONS = { speed: 40, ...
node_modules/react-icons/fa/beer.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaBeer = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m14.8 20v-8.6h-5.7v5.7q0 1.2 0.8 2.1t2 0.8h2.9z m22.8 10v4.3h-25.7v-4.3l2.9-4.3h-2.9q-3.5 0-6-2.5t-2.5-6.1v-7.1l-1.5-1.4 0.7-2.9h10.8l0.7-2.8h21.4l0.7 4.2-1.4 0.8v17.8z"...
packages/lore-hook-react/src/index.js
lore/lore
/* global document */ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; export default { dependencies: ['redux', 'router'], defaults: { react: { /** * ID of DOM Element the application will be mounted to ...
reactjs-redux/src/index.js
hawkup/github-stars
import { AppContainer } from 'react-hot-loader'; import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import store from './store'; import Root from './Root'; const history = syncHistoryWithStore(browserHis...
src/svg-icons/action/eject.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEject = (props) => ( <SvgIcon {...props}> <path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/> </SvgIcon> ); ActionEject = pure(ActionEject); ActionEject.displayName = 'ActionEject'; ActionEject.muiName = 'Svg...
src/svg-icons/hardware/computer.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareComputer = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareComputer ...
react/apidocs/apidocs.js
bdaroz/the-blue-alliance
import React from 'react' import ReactDOM from 'react-dom' import ApiDocsFrame from './ApiDocsFrame' const swaggerUrl = document.getElementById('swagger_url').innerHTML ReactDOM.render( <ApiDocsFrame url={swaggerUrl} />, document.getElementById('content') )
docs/resume/_next/static/webpack/static/development/pages/index.js.2d4113408dcb5b18c464.hot-update.js
davidpham5/resume
webpackHotUpdate("static/development/pages/index.js",{ /***/ "./pages/index.js": /*!************************!*\ !*** ./pages/index.js ***! \************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_e...
client/components/basic/burger/BurgerIcon.js
Sing-Li/Rocket.Chat
import { css } from '@rocket.chat/css-in-js'; import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import { useIsReducedMotionPreferred } from '../../../hooks/useIsReducedMotionPreferred'; const Wrapper = ({ children }) => <Box is='span' display='inline-flex' flexDirection='column' alignIt...
src/Select.js
range-me/react-select
import React from 'react'; import ReactDOM from 'react-dom'; import Input from 'react-input-autosize'; import classNames from 'classnames'; import stripDiacritics from './utils/stripDiacritics'; import Async from './Async'; import Option from './Option'; import Value from './Value'; function stringifyValue (value) {...
src/svg-icons/toggle/star-border.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
packages/docsite/src/html.js
r24y/tf-hcl
import React from 'react' import Helmet from 'react-helmet' let stylesStr if (process.env.NODE_ENV === 'production') { try { stylesStr = require('!raw-loader!../public/styles.css') } catch (e) { console.log(e) } } export default class HTML extends React.Component { render() { const head = Helmet.r...
examples/shopping-cart/index.js
mjw56/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import logger from 'redux-logger' import thunk from 'redux-thunk' import reducer from './reducers' import { getAllProducts } from './actions' i...
src/docs/examples/TextInputStyledComponents/ExampleError.js
wsherman67/UBA
import React from 'react'; import TextInputStyledComponents from 'ps-react/TextInputStyledComponents'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInputStyledComponents htmlId="example-optional" label="First Name" ...
src/modules/editor/components/popovers/addTooltip/AddTooltipMenu/AddVimeoButton/AddVimeoButton.js
CtrHellenicStudies/Commentary
import React from 'react'; import autoBind from 'react-autobind'; import { connect } from 'react-redux'; // redux import editorActions from '../../../../../actions'; // components import AddTooltipMenuItemButton from '../../AddTooltipMenuItemButton'; // icons import { FaVimeo } from "react-icons/fa"; class AddVimeo...
grunt/config-grunt/node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
perrineb/2015-lpdw-html5css3
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
malax/src/modules/main/index.js
cseale/nasa-space-jockey
import React from 'react'; import Navbar from '../navbar'; import Button from './button'; import satelitebutton from './satelitebutton.svg' import vrbutton from './vrbutton.svg' import telescopebutton from './telescope.svg' import {Link} from 'react-router-dom' class Main extends React.Component { render() { ...
app/app.js
dcarneiro/my-react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
src/routes/Builder/components/EquipToCharSelect.js
DaveSpringer/bmg-rap-sheets
import React from 'react' import './style/EquipToCharSelect.scss' import EquipmentItem from '../../../components/EquipmentItem/EquipmentItem' import Character from './Character' class EquipToCharSelect extends React.Component { constructor (props) { super(props) this.handleCharacterSelect = this.handleCharac...
docs/src/app/components/pages/components/RaisedButton/ExampleComplex.js
kasra-co/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import FontIcon from 'material-ui/FontIcon'; const styles = { button: { margin: 12, }, exampleImageInput: { cursor: 'pointer', position: 'absolute', to...
app/containers/LocaleToggle/index.js
KraigWalker/frontendfriday
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
client/src/components/instructor/InstructorList.js
yegor-sytnyk/contoso-express
import React from 'react'; import InstructorRow from './InstructorRow'; const InstructorList = ({instructors, selectedInstructorId, onSelectClick, onSaveClick, onDetailsClick, onDeleteClick}) => { return ( <table className="table"> <thead> <tr> <th>Last Name</th> ...
admin/client/App/shared/FlashMessages.js
alobodig/keystone
/** * Render a few flash messages, e.g. errors, success messages, warnings,... * * Use like this: * <FlashMessages * messages={{ * error: [{ * title: 'There is a network problem', * detail: 'Please try again later...', * }], * }} * /> * * Instead of error, it can also be hilight, info, ...
index.ios.js
yomi-network/app
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class yomi extends Component { render() { return ( <View style={styles.container}> ...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-blockquote.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ColorSchemaMixin, ContentMixin, Tools} from '../common/common.js'; import Environment from '../environment/environment.js'; import Footer from './blockquote-footer.js' import './blockquote.less'; export const Blockquote = React.createClass({ //@@viewOn...
src/Badge.js
blue68/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_04/finished/src/index.js
yevheniyc/C
import C from './constants' import React from 'react' import { render } from 'react-dom' import routes from './routes' import sampleData from './initialState' import storeFactory from './store' import { Provider } from 'react-redux' import { addError } from './actions' const initialState = (localStorage["redux-store"]...
src/components/ChatApp/MessageSection/DialogSection.js
isuruAb/chat.susi.ai
import Dialog from 'material-ui/Dialog'; import React, { Component } from 'react'; import Login from '../../Auth/Login/Login.react'; import SignUp from '../../Auth/SignUp/SignUp.react'; import ForgotPassword from '../../Auth/ForgotPassword/ForgotPassword.react'; import PropTypes from 'prop-types'; import Close from 'ma...
lib/circlePacking/circlePacking.js
team-parsnips/ReD3
import React from 'react'; import * as d3 from 'd3'; class CirclePacking extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { var height, width, svg, margin, diameter, g, color, pack; height = +this.props.height; width = +this.props.w...
docs-ui/components/scoreCard.stories.js
beeftornado/sentry
import React from 'react'; import styled from '@emotion/styled'; import {t} from 'app/locale'; import ScoreCard from 'app/components/scoreCard'; import space from 'app/styles/space'; export default { title: 'UI/ScoreCard', }; export const Default = () => ( <Wrapper> <ScoreCard title={t('First Score')} ...
src/routes/not-found/index.js
tonimoeckel/lap-counter-react
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 Layout from '../../co...
src/components/StationSelector.js
gj262/noaa-coops-viewer
import PropTypes from 'prop-types' import React from 'react' import Select from 'react-select' import './StationSelector.scss' export default class StationSelector extends React.Component { static propTypes = { stations: PropTypes.array.isRequired, selectedStationID: PropTypes.string, selectStationID: P...
client/components/Menu/MenuMobile.js
Art404/platform404
import React from 'react' import {Link} from 'react-router' import Squad from './Squad' class MenuMobile extends React.Component { static displayName = 'MenuMobile'; static propTypes = { 'params': React.PropTypes.object, 'squad': React.PropTypes.array, 'main': React.PropTypes.object, 'actions': Re...
fields/types/boolean/BooleanColumn.js
davibe/keystone
import React from 'react'; import classnames from 'classnames'; import Checkbox from '../../../admin/src/components/Checkbox'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var BooleanColumn = React.createClass({ ...
envkey-react/src/components/forms/app/app_form.js
envkey/envkey-app
import React from 'react' import {RadioGroup, Radio} from 'react-radio-group' import moment from 'moment' import AppImporter from './app_importer' import { SubscriptionWallContainer } from 'containers' export default class AppForm extends React.Component { constructor(props) { super(props) this.state = { ...
examples/universal/server/server.js
drewschrauf/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; import { fetch...
examples/relay-treasurehunt/js/components/App.js
dmfrancisco/relay
/** * Copyright 2013-2015, 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 CheckHidin...