path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
hw7-frontend/src/app.js
lanyangyang025/COMP531
import React from 'react' import { connect } from 'react-redux' import Landing from './components/auth/landing' import Main from './components/main/main' import Profile from './components/profile/profile' //refer to specific page const App = ({ location }) => { if (location == 'MAIN_PAGE') { return <Ma...
src/svg-icons/content/add.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAdd = (props) => ( <SvgIcon {...props}> <path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/> </SvgIcon> ); ContentAdd = pure(ContentAdd); ContentAdd.displayName = 'ContentAdd'; ContentAdd.muiName = 'SvgIcon...
src/client/components/PaginationWidget/PaginationWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' const PaginationWidget = ({ name = 'PaginationWidget' }) => { return ( <div> <h3>Widget</h3> {name} </div> ) } PaginationWidget.displayName = 'PaginationWidget' export default PaginationWidget
client/containers/lists/unavailable/unavailableListItem.js
TecProgPurrsuit/TeamBasedLearningApp
/** * This file is responsible for rendering the unavailables lists itens. * * @summary Component for render unavailable lists itens. * * @class UnavailableListItem */ import React from 'react'; import TeacherListTail from '../teacherListTail'; function UnavailableListItem(props) { return ( <div className="card...
components/score.js
yeso126/Mapapp
import React, { Component } from 'react'; import { View, Text, StyleSheet, } from 'react-native'; import { observer, inject } from 'mobx-react'; @inject('gameStore') @observer export default class Score extends Component { componentWillUnmount(){ this.props.gameStore.resetScore(); } render() { re...
examples/js/remote/remote-export-csv.js
neelvadgama-hailo/react-bootstrap-table
import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; export default class RemoteExportCSV extends React.Component { constructor(props) { super(props); } render() { return ( <BootstrapTable data={ this.props.data } remote={ true...
docs/src/app/components/pages/get-started/Prerequisites.js
nathanmarks/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import prerequisitesText from './prerequisites.md'; const Prerequisites = () => ( <div> <Title render={(previousTitle) => `Prerequisites - ${previousTitle}`} /> <MarkdownElement text={p...
packages/veritone-react-common/src/components/FormBuilder/FormItems/Switch.js
veritone/veritone-sdk
import React from 'react'; import { string, bool, func } from 'prop-types'; import FormHelperText from '@material-ui/core/FormHelperText'; import MuiSwitch from '@material-ui/core/Switch'; import FormControl from '@material-ui/core/FormControl'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import ...
src/svg-icons/action/credit-card.js
spiermar/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...
node_modules/react-bootstrap/es/NavDropdown.js
nikhil-ahuja/Express-React
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/interface/icons/Health.js
sMteX/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props}> <path d="M32.105,26.297c-3.863-9.098-14.842-6.841-14.914,3.719c-0.04,5.799,3.176,8.808,14.937,16.919 c10.688-7.172,14.945-11.183,14.905-16.982C46.96,19.367,3...
packages/cp-frontend/src/components/manifest/environment.js
yldio/copilot
import React from 'react'; import { Field } from 'redux-form'; import remcalc from 'remcalc'; import { Row } from 'react-styled-flexboxgrid'; import { Button, Divider, H3, P } from 'joyent-ui-toolkit'; import { EEditor } from './editors'; import Files from './files'; const EnvironmentDivider = Divider.extend`margin-t...
app/src/components/photo.js
cyberpolin/cyberpolin.github.io
import React from 'react' import styled from 'styled-components' const Photo = styled.div` background: url('/img/cyberpolin.png'); background-size: cover; height: 150px; width: 150px; border-radius: 50%; @media (max-width: 600px){ height: 120px; width: 120px; } ` const PhotoShadow = styled.div...
analysis/druidferal/src/modules/talents/Bloodtalons.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import HIT_TYPES from 'game/HIT_TYPES'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { ThresholdStyle } from 'parser/core/ParseResults'; impo...
app/main.js
paulinoj/newRockus
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import ReduxThunk from 'redux-thunk'; import ReduxPromise from 'r...
vertex_ui/src/components/ColorPicker/Sketch/Sketch.js
zapcoop/vertex
import React from 'react'; import reactCSS from 'reactcss'; import { ColorWrap, Saturation, Hue, Alpha, Checkboard, } from 'react-color/lib/components/common'; import SketchFields from './SketchFields'; import SketchPresetColors from './SketchPresetColors'; export const Sketch = ({ width, rgb, hex, ...
step7-flux/node_modules/react-router/modules/RouteContext.js
jintoppy/react-training
import warning from './routerWarning' import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitio...
src/components/common/MarketingFeatureItem.js
mitmedialab/MediaCloud-Web-Tools
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { assetUrl } from '../../lib/assetUtil'; const MarketingFeatureItem = (props) => { const { titleMsg, contentM...
node_modules/react-bootstrap/es/MediaBody.js
vietvd88/developer-crawler
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
fhchina/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin } from 'react-intl'; import classnames from 'classnames'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import DialogStore from 'stores/DialogStore'; import ActivityStore from 'stores/ActivityStore'; //import A...
public-src/components/notificationZone.js
evantahler/ah-resque-ui
import React from 'react' import { Alert } from 'react-bootstrap' // this.props.show: boolean // this.props.level: level // this.props.message: message export default React.createClass({ getInitialState () { return { show: this.props.show || false, level: this.props.level || 'danger', message:...
test/storyshots/setup.js
all3dp/printing-engine-client
/* eslint-disable no-console */ import React from 'react' import util from 'util' import registerRequireContextHook from 'babel-plugin-require-context-hook/register' registerRequireContextHook() // We need to catch proptype warnings in the tests. // Keep a reference to the original console methods. const consoleWarn...
components/TodoList.js
pmdarrow/react-todo
import React from 'react'; import TodoItem from './TodoItem'; export default class extends React.Component { render() { return ( <div> <button onClick={this.props.onAddTodo}>Add Todo</button> <ul> <For each="item" of={this.props.todos}> <TodoItem key={ite...
src/components/icons/MinusIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const MinusIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100"> {props.title && <title>{props.title}</title>} <rect x="25" y="45" width="50" height="10" /> </svg> ); export default MinusIcon;
src/components/App.js
abhas9/sachinspace
import React from 'react'; import masterdata from '../store/masterdata.js'; import Filters from './Filters.js'; import Result from './Result.js'; export default React.createClass({ render() { return ( <div> <Filters /> <Result /> </div> ) } });
dbus-keeper/keeper-web/app/app.js
BriData/DBus
import 'babel-polyfill' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { applyRouterMiddleware, Router, browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { useScroll } from 'react-router-scroll' import { make...
app/index.js
CiccioBenzina/zhydrabook
import React from 'react'; import { render } from 'react-dom'; import { hashHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import { syncHistoryWithStore } from 'react-router-redux'; import 'semantic-ui-css/semantic.css'; import Root from './containers/Root'; import configureStore from ...
node_modules/react-bootstrap/es/Clearfix.js
firdiansyah/crud-req
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/parser/priest/holy/modules/talents/75/SurgeOfLight.js
fyruna/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; import ItemManaGained from 'interface/others/ItemManaGained'; import SpellLink from 'common/SpellLink'; // Example Log: ...
src/index.js
alisson446/redux-firebase
import React, { Component } from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import createLogger from 'redux-logger'; import { Provider } from 'react-redux'; import elasticsearch from 'elasticsearch'; import rootReducer, { syncTod...
submissions/masiulis/src/components/components/sith-list.js
enkidevs/flux-challenge
import React from 'react'; import classnames from 'classnames'; import request from 'superagent'; import { __, range, update, isNil, drop, dropLast, concat, pipe, filter, reject, find, findLast, findLastIndex, findIndex, not, compose} from 'ramda'; import Sith from './components/sith-list-item.js'; let currentRequest...
app/scripts/routes.js
pandaduc/react-starterkit
import React from 'react'; import { Route, DefaultRoute, NotFoundRoute } from 'react-router'; import App from './pages/app.jsx'; import Home from './pages/home.jsx'; import Info from './pages/info.jsx'; import NotFound from './pages/notFound.jsx'; var routes = ( <Route name="app" path="/" handler={ App }> <Rout...
step4-router/node_modules/react-router/modules/IndexRoute.js
jintoppy/react-training
import React from 'react' import warning from './routerWarning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRo...
src/templates/about-page.js
njosieb/ecocentrixco
import { graphql } from 'gatsby' import Img from 'gatsby-image' import PropTypes from 'prop-types' import React from 'react' import Content, { HTMLContent } from '../components/Content' import Layout from '../components/Layout' export const AboutPageTemplate = ({ title, content, contentComponent, aboutUsBackgr...
lib/loader/EatBeanLoader.js
wangdicoder/react-native-indicator
import React from 'react'; import PropTypes from 'prop-types'; import { Animated } from 'react-native'; import { Surface, Shape } from '@react-native-community/art'; import AnimatedCircle from '../animated/AnimatedCircle'; import { color } from '../const'; export default class EatBeanLoader extends React.PureComponent...
src/interface/icons/Cooldown.js
yajinni/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/search/?q=Lightning%20Bolt&i=1188000 // Lightning by Mooms from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" className="stroke icon" {...other}> <path d="M32,0C14.355,0,0,14.355,0,32c0,17.644...
www/src/components/FormWithErrors.js
jquense/react-formal
import React from 'react'; import Form, { formStatics } from 'react-formal'; import Result from './Result'; function FormWithErrors({ children, ...props }) { return ( <Form {...props} className="lg:flex"> <div className="lg:flex-2">{children}</div> <Result className="lg:ml-4 lg:mt-0" showErrors /> ...
app/javascript/mastodon/containers/compose_container.js
PlantsNetwork/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
example/story.js
mihalik/storybook-addon-markdown
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import markdownDecorator, {addWithMarkdown} from '../src'; import Button from './Button'; import readme from '!raw!../README.md'; const inline = ` # Test markdown ### Features * One * Two * Three `; const inlineSecond = ` # Second mar...
StarterRNP/src/screens/_Subtance/InfoBox.js
khanhqd/ProjectOT1
import React, { Component } from 'react'; import { View, Dimensions, Text } from 'react-native'; var {height, width} = Dimensions.get('window'); import styles from './Styles.js'; class InfoBox extends Component { render(){ return( <View style={styles.box}> <View style={styles.titleContainer}> ...
docs/app/Examples/modules/Progress/Variations/ProgressExampleInvertedColor.js
mohammed88/Semantic-UI-React
import React from 'react' import { Progress, Segment } from 'semantic-ui-react' const ProgressExampleInvertedColor = () => ( <Segment inverted> <Progress percent={32} inverted color='red' label /> <Progress percent={59} inverted color='orange' label /> <Progress percent={13} inverted color='yellow' label...
docs/app/Examples/collections/Message/Variations/MessageExampleCompact.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' const MessageExampleCompact = () => ( <Message compact> Get all the best inventions in your e-mail every day. Sign up now! </Message> ) export default MessageExampleCompact
src/ButtonInput.js
pivotal-cf/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
react-apollo/src/components/InputEmailWithErrors/index.js
strapi/strapi-examples
/** * * InputEmailWithErrors * */ /* eslint-disable no-mixed-operators */ import React from 'react'; import PropTypes from 'prop-types'; import { isEmpty, isFunction } from 'lodash'; import cn from 'classnames'; // Design import Label from '../../components/Label'; import InputDescription from '../../components/...
App.js
concensus/react-native-ios-concensus
import React from 'react'; import { Platform, StatusBar, StyleSheet, View } from 'react-native'; import { AppLoading, Asset, Font } from 'expo'; import { Ionicons } from '@expo/vector-icons'; import RootNavigation from './navigation/RootNavigation'; export default class App extends React.Component { state = { is...
frontend/app/js/components/rules_v2/edit/action.js
serverboards/serverboards
import React from 'react' import i18n from 'app/utils/i18n' import cache from 'app/utils/cache' import Selector from 'app/components/selector' import GenericForm from 'app/components/genericform' import Loading from 'app/components/loading' import {object_is_equal, map_get} from 'app/utils' import RulesHelp from './rul...
lib/station/index.js
openstardrive/flight-director
import React from 'react' import { connect } from 'react-redux' import { updateConfiguration, startPollingServer } from './actions' import Clients from '../clients' import Systems from '../systems' import Configuration from '../configuration' require('./index.css') export class Station extends React.Component ...
packages/slate-html-serializer/test/serialize/inline-with-mark.js
AlbertHilb/slate
/** @jsx h */ import React from 'react' import h from '../helpers/h' export const rules = [ { serialize(obj, children) { if (obj.kind == 'block' && obj.type == 'paragraph') { return React.createElement('p', {}, children) } if (obj.kind == 'inline' && obj.type == 'link') { ret...
src/svg-icons/av/pause.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPause = (props) => ( <SvgIcon {...props}> <path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/> </SvgIcon> ); AvPause = pure(AvPause); AvPause.displayName = 'AvPause'; AvPause.muiName = 'SvgIcon'; export default AvP...
app/javascript/pwdlocker/views/PasswordForm.js
rubydonkey/pwdlocker.com
/** * Created by zarko on 7/19/17. */ 'use strict'; import React from 'react'; import {Link} from 'react-router-dom'; import {Prompt} from 'react-router'; function PasswordForm(props){ return( <div className='row'> <div className='col-md-8 col-md-offset-2'> <div className='card'...
app/javascript/mastodon/features/status/components/action_bar.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMess...
stories/index.js
flanamacca/react-learning-kit
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; require('./TodoList');
client/src/index.js
stephenwoosley/woosreads
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();
web/old_src/VmprobeConsole.js
vmprobe/vmprobe
import $ from 'jquery'; import React from 'react'; import PureComponent from 'react-pure-render/component'; import HTML5Backend from 'react-dnd-html5-backend'; import { DragDropContext } from 'react-dnd'; import update from './update'; import * as ResourceWindow from './ResourceWindow'; import * as ControlPanel fr...
src/components/MainPage/FormTable/LeftPane.js
coolshare/ReactReduxPattern
import React from 'react' import { Accordion, Panel,PanelGroup } from 'react-bootstrap'; import styles from './FormTable.css'; import {connect} from 'react-redux' import cs from '../../../services/CommunicationService' /** * */ class _LeftPane extends React.Component{ constructor(props) { super(props) this.state =...
web/components/screens/shared/CopyGameLinkButton.js
skidding/flatris
// @flow import React, { Component } from 'react'; import { getShareUrl } from '../../../utils/url'; import CopyButton from '../../shared/CopyButton'; import type { GameId } from 'shared/types/state'; type Props = { disabled: boolean, gameId: GameId, }; export default class CopyGameLinkButton extends Component<...
node_modules/antd/es/button/button-group.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; var __rest = this && this.__rest || function (s, e) { var t = {}; for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; }if (s != nu...
examples/03 Nesting/Drag Sources/Container.js
jowcy/react-dnd
import React from 'react'; import SourceBox from './SourceBox'; import TargetBox from './TargetBox'; import Colors from './Colors'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; @DragDropContext(HTML5Backend) export default class Container { render() { ...
app/index.js
ByunJaeSeok/selfStudy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; const rootElement = document.getElementById('root'); ReactDOM.render(<App />, rootElement);
app/javascript/mastodon/features/mutes/index.js
summoners-riftodon/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...
ajax/libs/react-instantsearch/3.2.1/Dom.js
nolsherry/cdnjs
/*! ReactInstantSearch 3.2.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
src/CommentsArea.js
pkerpedjiev/hg-website
import React from 'react'; import {json, request} from 'd3-request'; import Comment from './Comment'; export default class CommentsArea extends React.Component { constructor(props) { super(props); this.commentServer = "http://127.0.0.1:8001"; this.state = { commentText: "This is a test comment", ...
src/components/Patterns/PatternsComponent.js
coolshare/ReactReduxStarterKit
import React from 'react'; import PatternsRightPaneContainer from './RightPane/PatternsRightPaneContainer'; import PatternsLeftPaneContainer from './LeftPane/PatternsLeftPaneContainer'; import { Grid, Row, Col } from 'react-bootstrap'; const PatternsComponent = (props) => { return ( <div id="PatternsComponent"> ...
client/src/components/deliveries/Delivery.js
PCGeekBrain/TruckTrack
import React from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; const Delivery = (props) => { const delivered_at = props.delivered_at ? "Delivered at: " + new Date(props.delivered_at).toLocaleString() : "Not Delivered Yet"; return ( <div id={`delivery-${props.id}`} className={props.delivered...
examples/dynamic-segments/app.js
okcoker/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
js/components/sidebar/index.js
bsusta/HelpdeskAppTemplate
import React, { Component } from 'react'; import { Image, Platform } from 'react-native'; import { connect } from 'react-redux'; import { Title ,Header, Body, Content, Text, List, ListItem, Icon, Container, Left, Right, Badge, Button, View, StyleProvider, getTheme, variables } from 'native-base'; import { Actions } fr...
src/components/Input.js
stefan-moraru/please
import React, { Component } from 'react'; import Dropzone from 'react-dropzone'; import request from 'superagent'; import stringSimilarity from 'string-similarity'; import ReactTooltip from 'react-tooltip'; import _ from '../services/_'; const GOOGLE_API_KEY = "AIzaSyDScKGu3VK7x27dk0E4bmdiSmP9dsC-cLU"; const CV_URL = ...
src/components/FindSet.js
JasonLunsford/LEGO_Tracker
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { InputGroup, InputGroupAddon, Input, Table } from 'reactstrap'; import SearchIcon from 'react-icons/lib/fa/search'; import { ResultItem } from './ResultItem'; export const FindSet = (props) => { let flatResults = []; l...
examples/todo/js/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 'babel/pol...
src/encoded/static/browser.js
T2DREAM/t2dream-portal
// Entry point for browser import React from 'react'; import ReactDOM from 'react-dom'; import domready from 'domready'; import ga from 'google-analytics'; import App from './components'; function getRenderedProps (document) { var props = {}; // Ensure the initial render is exactly the same props.href = do...
client/components/Searchbar.js
MusicConnectionMachine/VisualizationG6
import React from 'react' import { connect } from 'react-redux' import { setSearchTerm } from '../states/actionCreators' import Autocomplete from 'react-autocomplete' const { object, string, func, bool } = React.PropTypes class Searchbar extends React.Component { constructor (props) { super(props) ...
example/src/index.js
alexandreneves/react-flyout
import React from 'react'; import {render} from 'react-dom'; import Root from './containers/Root'; import './css/stylesheet.css'; render(<Root />, document.getElementById('example'));
example/main.js
amsardesai/react-chartist
import React from 'react'; import ChartistGraph from '../index'; class Pie extends React.Component { render() { var data = { labels: ['W1', 'W2', 'W3', 'W4', 'W5', 'W6', 'W7', 'W8', 'W9', 'W10'], series: [ [1, 2, 4, 8, 6, -2, -1, -4, -6, -2] ] }; var options = { high: 10...
src/app/core/atoms/text/index.js
blowsys/reservo
/* @flow */ import React from 'react'; import colors from 'atoms/colors'; import _ from 'lodash'; import './styles.scss'; export type ITextProps = { children?: string | any, bold?: boolean, color?: 'default' | 'primary' | 'secondary' | 'warning' | 'alert' | 'success' | string, fontWeight?: number, ...
examples/02 - Side effects/components/Dep.js
Kureev/browserify-react-live
import React, { Component } from 'react'; export default class Test extends Component { render() { return ( <p>Hi, I'm MyComponent2 dependency</p> ); } }
src/App/component.js
alexyuly/full-stack-template
import React from 'react'; import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; import PropTypes from 'prop-types'; const App = ({ classes, message, theme, }) => ...
src/containers/DevTools.js
jenyckee/midi-redux
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
src/pages/DataEntry/components/EndStep.js
EehMauro/dyscalculia-web
import React from 'react'; import color from 'color'; import { withStyles } from 'material-ui/styles'; import { RaisedButton } from '../../../components'; import { colors } from '../../../conventions'; import Button from 'material-ui/Button'; import Typography from 'material-ui/Typography'; import CircularProgressbar ...
react-click-test/client/main.js
hwillson/meteor-troubleshooting
import { Meteor } from 'meteor/meteor'; import { render } from 'react-dom'; import React from 'react'; const hubs = [ { _id: 1, name: 'Hub test 1' }, { _id: 2, name: 'Hub test 2' } ]; const renderIfData = (hubs) => { if (hubs && hubs.length > 0) { return hubs.map((hub) => { return ( <li key={h...
examples/functional-flag/styleguide/components/FunctionalTag.js
vue-styleguidist/vue-styleguidist
import React from 'react' import PropTypes from 'prop-types' import Styled from 'rsg-components/Styled' const styles = ({ color, fontFamily }) => ({ wrapper: { backgroundColor: color.base, borderRadius: 3, display: 'inline-block', height: 24 }, tag: { color: color.baseBackground, fontFamily: fontFamily....
src/components/AboutContent.js
shp54/cliff-effects
import React from 'react'; import { Header, Message } from 'semantic-ui-react'; // CUSTOM COMPONENTS import { ExternalLink } from '../forms/formHelpers'; import { interpolateSnippets } from '../utils/interpolation'; /** Todo simplify the process of creating content for the 'About' page */ const namesList = [ 'Anni...
app/components/ConsoleToolbar.js
danielribeiro/fil
import React from 'react'; import {connect} from 'react-redux'; import {setPreference} from 'actions/preferences'; import {getExtension} from 'helpers'; import {byExtension} from 'interpreters'; class ConsoleToolbar extends React.Component { handleRunButton(event) { event.preventDefault(); this.props.onRun(...
src/components/layout/Intro.js
jung-digital/ringa-example-react
import React from 'react'; import './Intro.scss'; export default class Intro extends React.Component { render() { return <div className="intro"> <h1>Welcome to the Ringa ReactJS Demo</h1> <div>Documentation:</div> <ul> <li><a href="http://www.github.com/jung-digital/ringa/wiki" target=...
docs/app/Examples/elements/Step/Content/index.js
jamiehill/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const Content = () => ( <ExampleSection title='Content'> <ComponentExample title='Description' description='A step ca...
app/react-icons/fa/repeat.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaRepeat extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m37.3 5.7v10q0 0.6-0.4 1t-1 0.4h-10q-1 0-1.4-0.9-0.3-0.8 0.4-1.5l3-3.1q-3.3-3...
DemoApp/lib/search/index.js
andyfen/react-native-UIKit
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, Image, TouchableOpacity, TextInput, View } from 'react-native'; import {primary, lightGrey, gutter} from '../variables' const searchIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABHNCSVQICAg...
js/jqwidgets/demos/react/app/treegrid/headertemplate/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.expandRow(2); } render () { // prepare the data let employees = [ ...
src/components/common/svg-icons/action/swap-vert.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVert = (props) => ( <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> </SvgIcon> ); ActionSwapVert = pure(ActionSwapVert); ActionSwapVert.displa...
node_modules/react-bootstrap/es/utils/ValidComponentChildren.js
soniacq/LearningReact
// 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...
ajax/libs/react-instantsearch/4.1.0/Connectors.js
wout/cdnjs
/*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
src/ui/sample/chart/lineChart/index.js
steem/qwp-antd
import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Card, Button } from 'antd' import Container from '../Container' import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts' const data = [ { name: 'Page A', uv: 4000, pv: 2400, ...
src/js/components/icons/base/PlatformDropbox.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...
test/test_helper.js
nimibahar/reduxBlog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/DropdownToggle.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import classNames from 'classnames'; import { findDOMNode } from 'react-dom'; import isRe...
modules/RouteContext.js
zenlambda/react-router
import warning from './warning' import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. *...
server/sonar-web/src/main/js/apps/background-tasks/header.js
KoushikdMS/sonarqube
import React from 'react'; export default React.createClass({ render() { return ( <header className="page-header"> <h1 className="page-title">Background Tasks</h1> <p className="page-description">The server is in charge to process reports submitted by batch analyses. This ...
ui/src/components/NotFound/index.js
LearningLocker/learninglocker
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Coming soon!</h1> <p>This page is still being built</p> </div> ); }
react-redux-demo/todos/src/containers/AddTodo.js
fengnovo/webpack-react
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
src/svg-icons/image/collections-bookmark.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollectionsBookmark = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/>...
frontend/app/common/schemas/customFields/DataTestId.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import t from 'tcomb-form' import StringHelpers, { CLEAN_ID } from 'common/StringHelpers' function renderInput(locals) { const onChange = function renderInputOnChange(event) { locals.onChange(event.target.value) } return ( <input className="form-control" data-testid=...