path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/containers/AssessmentEntry/DefaultMessage.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import forEach from 'lodash.foreach'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import { getProgramEntities } from '../../actions'; import { DefaultMessageView } from '../../co...
app/components/MainContainer/Main/TabController/AlarmsStackController/AlarmEditContainer/AlarmEdit/TimePicker/index.js
reubn/atomic
import React from 'react' import {View, Picker} from 'react-native' import {container, item, picker} from './styles' export default ({hour=0, minute=0, period='am', onChange}) => ( <View style={container}> <Picker itemStyle={item} style={picker} selectedValue={hour} onValueChange={hourNew => onChange('hour', ho...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefined.js
TiddoLangerak/flow
// @flow import React from 'react'; class MyComponent extends React.Component { defaultProps: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { defaultProps: T; static state: T; a: T; b = 5; c: T = 5; method() {} ...
src/components/StatusBar.js
RealOrangeOne/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/StatusBar/StatusBar.js */ import React from 'react'; import ColorPropType from '../propTypes/ColorPropType'; let _backgroundColor = ''; let _barStyle = {}; let _hidden = false; let _networkActivityIndicatorVisible = false; let _transluc...
docs/app/Examples/collections/Form/Types/FormFormExample.js
jcarbo/stardust
import React from 'react' import { Button, Checkbox, Form } from 'stardust' const FormFormExample = () => ( <Form> <Form.Field> <label>First Name</label> <input placeholder='First Name' /> </Form.Field> <Form.Field> <label>Last Name</label> <input placeholder='Last Name' /> </...
server/server.js
iamdew/ReactOnExpressBasic
import './hook'; import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { StaticRouter } from 'react-router'; import routes from '../src/routes'; import path from 'path'; import morgan from 'morgan'; import express from 'express'; import bodyParser from 'body-parser'; import webpack from 'webp...
app/components/CoursesOverview/index.js
cerebral/cerebral-reference-app
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; import selectedTier from 'modules/course/computed/selectedTier'; @Cerebral({ selectedTier: selectedTier, courses: 'techTree.courses', courseDependencyList: 'techTree.courseDependencyList' }) c...
JavaScript/React/LMap/src/app/app.js
batazor/MyExampleAndExperiments
import React from 'react' // eslint-disable-line no-unused-vars import { render } from 'react-dom' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import Root from './containers/Root' import configureStore from './store/configureStore' const store = configureStor...
blueprints/route/files/src/routes/__name__/components/__name__.js
oliveirafabio/test-senior
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
src/router.js
Atypon-OpenSource/wayf-admin
import queryMiddleware from 'farce/lib/queryMiddleware'; import createRender from 'found/lib/createRender'; import makeRouteConfig from 'found/lib/makeRouteConfig'; import Route from 'found/lib/Route'; import { Resolver } from 'found-relay'; import React from 'react'; import { graphql } from 'react-relay'; import { Env...
src/routers.js
cungen/www
import React from 'react'; import { Route, IndexRoute } from 'react-router'; // own components import App from './components/app'; import Posts from './components/partials/posts/' export default ( <Route path='/' component={App}> <Route path='posts' component={Posts} /> </Route> )
src/components/Navigation/Notifications/Notifications.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import NotificationFollowing from './NotificationFollowing'; import NotificationReply from './NotificationReply'; import NotificationTransfer from './NotificationTransfer'; import NotificationMention from './No...
docs/src/app/components/pages/components/AppBar/ExampleIcon.js
owencm/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; const AppBarExampleIcon = () => ( <AppBar title="Title" iconClassNameRight="muidocs-icon-navigation-expand-more" /> ); export default AppBarExampleIcon;
client/routes.js
tranphong001/BIGVN
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/App/App'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(require); }; }...
docs/src/app/components/pages/components/Divider/ExampleMenu.js
pradel/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {Menu, MenuItem} from 'material-ui/Menu'; const style = { // Without this, the menu overflows the CodeExample container. float: 'left', }; const DividerExampleMenu = () => ( <Menu desktop={true} style={style}> <MenuItem primaryText...
ReactNativeRouterFluxDemo/__tests__/index.ios.js
alexwan02/react-tutorial
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
frontend/teg-web-ui/src/common/ErrorFallback.js
tegh/tegh-daemon
import React from 'react' import Typography from '@mui/material/Typography' import ErrorFallbackStyles from './ErrorFallback.styles' // gql` // query { // isConnected @client // nextReconnectAttempt @client // } // ` const ErrorFallback = ({ error }) => { const classes = ErrorFallbackStyles() // if...
src/containers/articles/home.js
b0ts/react-redux-sweetlightstudios-website
import React, { Component } from 'react'; import { articleMounting, blogGetMostRecentPost, changeSiteConfigLanguage } from '../../actions/index.js'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { LinkContainer } from 'react-router-bootstrap'; import { Well } from 'react-boot...
Js/Ui/Components/Alert/Container.js
Webiny/Webiny
import React from 'react'; import Webiny from 'webiny'; class AlertContainer extends Webiny.Ui.Component { constructor(props) { super(props); this.state = { closed: false }; } close() { Promise.resolve(this.props.onClose()).then(() => { if (this.isM...
gNewsDemo/index.android.js
yueenen/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 gNewsDemo extends Component { render() { return ( <View style={styles.container...
src/svg-icons/device/battery-charging-90.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12...
src/modules/search/containers/CommentarySearchToolbarContainer/CommentarySearchToolbarContainer.js
CtrHellenicStudies/Commentary
import React from 'react'; import { compose } from 'react-apollo'; import { connect } from 'react-redux'; // graphql import commentersQuery from '../../../commenters/graphql/queries/list'; import referenceWorksQuery from '../../../referenceWorks/graphql/queries/list'; import keywordsQuery from '../../../keywords/graph...
blueocean-material-icons/src/js/components/svg-icons/image/assistant.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageAssistant = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11l-4.12 1.88z"/> </SvgIcon> ); I...
packages/cp-frontend/test/unit/containers/deployment-groups/list.js
yldio/copilot
/** * @jest-environment jsdom */ import React from 'react'; import renderer from 'react-test-renderer'; import 'jest-styled-components'; import { DeploymentGroupList } from '@containers/deployment-groups/list.js'; import { Router, Store, deploymentGroups } from '../../mocks'; it('renders <DeploymentGroupList /> wi...
assets/javascripts/components/list_manager/ListManager.js
walshyb/DoTab
import React, { Component } from 'react'; import CategoryList from '../category_list/CategoryList'; import AddTaskBar from '../add_task_bar/AddTaskBar'; import { connect } from 'react-redux'; import { list_manager_actions } from '../../redux/list_manager/list_manager' import { util } from '../../utils'; export class L...
src/svg-icons/navigation/arrow-drop-down.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDown = (props) => ( <SvgIcon {...props}> <path d="M7 10l5 5 5-5z"/> </SvgIcon> ); NavigationArrowDropDown = pure(NavigationArrowDropDown); NavigationArrowDropDown.displayName = 'NavigationA...
app/filter/filter-page-header.js
jaketrent/photo-surf
import React from 'react' import styleable from 'react-styleable' import css from './filter-page-header.css' function FilterPageHeader(props) { return ( <div className={props.css.root}> <div className={props.css.left}>{props.left}</div> <div className={props.css.center}>{props.center}</div> <d...
test/GridSpec.js
brynjagr/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Grid from '../src/Grid'; describe('Grid', function () { it('uses "div" by default', function () { let instance = ReactTestUtils.renderIntoDocument( <Grid /> ); assert.equal(React.findDOMNode(instance).nodeName...
src/components/calendarLabel.js
cheeki/react-calendar
/** * Created by 1001196 on 16. 1. 20.. */ import React from 'react'; import LocalString from './localeString'; export default class CalendarLabel extends React.Component { constructor () { super (); } render () { return ( <thead> <tr> {LocalString.day...
src/views/IndexView.js
orbitdb/orbit-web
'use strict' import React from 'react' import { hot } from 'react-hot-loader' import { Redirect } from 'react-router-dom' import RootContext from '../context/RootContext' import { useObserver } from 'mobx-react' function IndexView () { const { networkStore, uiStore } = React.useContext(RootContext) React.useEff...
imports/ui/pages/Documents.js
zarazi/movies-listie
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, Button } from 'react-bootstrap'; import DocumentsList from '../components/DocumentsList'; const Documents = () => ( <div className="Documents"> <Row> <Col xs={ 12 }> <div className="page-header clearfix"> <...
src/svg-icons/action/bookmark-border.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBookmarkBorder = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder = pure(ActionBook...
Example/App.js
billoosijok/react-native-interactive-card
import React from 'react'; import {StyleSheet, Text, ScrollView, View, Animated} from 'react-native'; import CardsInScrollView from './App/CardsInScrollView' import CardsInView from './App/Base' import CustomTransition from './App/CustomTransition' export default class App extends React.Component { loadCardsInView ...
src/components/widget/ArtistList/index.js
industral/RoteSonne.js
import './styles/style.scss' import React from 'react' import {connect} from 'react-redux' import I from 'immutable' import AlbumCover from './AlbumCover' import database from '../../../context/db' class ArtistList extends React.Component { constructor() { super(); } /** * Return a list of artists fro...
admin/client/components/ConfirmationDialog.js
riyadhalnur/keystone
import React from 'react'; import { Modal, ModalBody, ModalFooter, Button } from 'elemental'; module.exports = React.createClass({ displayName: 'ConfirmationDialog', propTypes: { body: React.PropTypes.string, cancelLabel: React.PropTypes.string, confirmationLabel: React.PropTypes.string, confirmationType: Re...
src/component/DOM.js
rerx/rerx
import React from 'react'; import { reactive } from './reactive'; export const DOM = {}; Object.keys(React.DOM).forEach(tag => { const name = tag.charAt(0).toUpperCase() + tag.substr(1); const get = (function() { let component; return () => { if (!component) { component = reactive(tag); ...
src/components/Header.js
MaksimMartyn/LAZARUS
'use strict'; import React from 'react'; const logoClick = (e) => { e.preventDefault(); }; const Header = () => ( <header> <div className="container"> <section className="col-mobile-8 col-4-12"> <a href="#" onClick={logoClick}> <img src="./img/LZRS_Logo.svg" alt="LAZARUS"/> </...
src/js/components/recommendations/CardUserTopLinks.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Image from '../ui/Image'; import LinkImageService from '../../services/LinkImageService'; export default class CardUserTopLinks extends Component { static propTypes = { topLinks : PropTypes.array, sharedLinks: Pr...
app/src/index.js
OpenTrons/opentrons-api
// client entry point and application manifest import React from 'react' import ReactDom from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware, compose } from 'redux' import thunk from 'redux-thunk' import { ConnectedRouter, routerMiddleware } from 'connected-react-router' impor...
springboot/GReact/src/main/resources/static/app/components/todo/components/TodoList.js
ezsimple/java
import React from 'react' import classnames from 'classnames' import {findDOMNode} from 'react-dom' import Moment from '../../utils/Moment' import TodoActions from '../actions/TodoActions' import TodoStore from '../stores/TodoStore' let TodoList = React.createClass({ _toggleItem: function (item) { TodoAc...
js/jqwidgets/demos/react/app/chart/polarseries/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js'; class App extends React.Component { ...
client/src/components/App.js
FlorianEdelmaier/ReduxAsyncDemo
import React from 'react'; import LoginContainer from './LoginContainer'; const App = () => ( <div> <LoginContainer /> <h1>Test</h1> </div> ) export default App;
src/parser/rogue/subtlety/modules/features/checklist/Module.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/Preparation...
app/react-icons/fa/star-half.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaStarHalf extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m29.1 0.7v29.9l-10 5.3q-0.5 0.2-0.9 0.2-0.5 0-0.7-0.3t-0.3-0.8q0-0.1 0.1-0....
app_learn/__tests__/index.ios.js
liuboshuo/react-native
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/containers/Home/Home.js
mbrochh/react-journal
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; import config from '../../config'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from clien...
src/components/Shared/Flame.js
RahulDesai92/PHR
/*In built library react*/ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Animated } from 'react-native' const colors = { 0: 'rgba(252, 159, 13, 0.75)', 50: 'rgba(219, 32, 28, 0.75)', 100: 'rgba(159, 5, 17, 0.75)' } var Flame = React.createClass...
packages/example-phone/src/scripts/components/call/call-remote-view.js
glhewett/spark-js-sdk
import React from 'react'; import Video from '../common/video'; export default function RemoteView({ receivingVideo, remoteMediaStreamUrl, ...rest }) { let mediaElement; if (receivingVideo) { mediaElement = <Video src={remoteMediaStreamUrl} {...rest} />; } else { // eslint-disable-next-line no-ex...
www/src/components/Code.js
tsuyoshiwada/react-drip-form
import React from 'react'; import styled from 'styled-components'; import { PrismCode } from 'react-prism'; const Pre = styled.pre` font-size: 0.875rem; & code { font-size: 0.875rem; } `; const Code = ({ language, children }) => ( <Pre> <PrismCode className={`language-${language}`}>{children}</PrismC...
src/svg-icons/editor/format-textdirection-r-to-l.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionRToL = (props) => ( <SvgIcon {...props}> <path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/> </SvgIcon> ); EditorFormatTextdirectionRTo...
src/components/DropOption/DropOption.js
tigaly/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Dropdown, Button, Icon, Menu } from 'antd' const DropOption = ({ onMenuClick, menuOptions = [], buttonStyle, dropdownProps }) => { const menu = menuOptions.map(item => <Menu.Item key={item.key}>{item.name}</Menu.Item>) return (<Dropdown over...
frontend/src/components/TongueTwisterView.js
ttang02/tongue-twister
import React, { Component } from 'react'; export default class TongueTwisterView extends Component{ }
dapp/src/shared/components/app/plugin.js
airalab/DAO-IPCI
import React from 'react' const Plugin = function Plugin() { return ( <div> <h1>Please, setup one of the suggested plugins for working with dApp</h1> <div className="row"> <div className="col-md-6 col-sm-6 box-item"> <div className="box"> <figure><img src="assets/img/met...
src/components/VideoPlayer/Dash/OverallMetrics.js
matmoi/react-adaptive-streaming
import React from 'react'; import PropTypes from 'prop-types'; import dashjs from 'dashjs'; import { VictoryPie } from 'victory'; import { Label, Button, ButtonGroup, Table } from 'react-bootstrap'; import Colors from "../../utils/Colors.js" export default class DashOverallMetrics extends React.Component { medi...
node_modules/react-bootstrap/es/InputGroupButton.js
saltypaul/SnipTodo
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 ...
node_modules/@material-ui/core/esm/Backdrop/Backdrop.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import Fade from '../Fade'; export var styl...
admin/client/App/screens/Home/index.js
matthieugayon/keystone
/** * The Home view is the view one sees at /keystone. It shows a list of all lists, * grouped by their section. */ import React from 'react'; import { Container, Spinner } from 'elemental'; import { connect } from 'react-redux'; import Lists from './components/Lists'; import Section from './components/Section'; i...
src/index.js
codeNgJon/youtuber
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import _ from 'lodash'; // if it's a library we installed don't need path // if it's something we created ourselves need path import SearchBar from './components/search_bar'; import VideoList from './c...
blueocean-material-icons/src/js/components/svg-icons/content/inbox.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> </SvgIcon> ); ContentInbox.display...
src/components/Contact/Contact.js
recursiveElk/finnoco.com
import React from 'react'; import classNames from 'classnames'; import rstyle from '../../router.css'; import cstyle from './contact.css'; class Contact extends React.Component { constructor(props) { super(props); this.state = { title: this.props.title }; } render() { return ( <div classN...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Listing/ApiProgress.js
ChamNDeSilva/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...
docs/src/app/components/pages/components/SvgIcon/Page.js
barakmitz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconReadmeText from './README'; import IconExampleSimple from './ExampleS...
src/index.js
tw0517tw/labor-cost
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.min.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
packages/stockflux-components/src/components/buttons/borderless-button/BorderlessButton.js
ScottLogic/StockFlux
import React from 'react'; import cx from 'classnames'; import './BorderlessButton.css'; export default ({ children, small, className, onClick, disabled }) => ( <button className={cx('borderless', small, { [className]: className })} onClick={onClick} disabled={disabled} > {children} </button> );
src/molecules/DataRow/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import accounting from 'accounting'; import Tooltip from 'atoms/Tooltip'; import CurrencyAmount from 'molecules/LockUps/CurrencyAmount'; import styles from './data_row.module.scss'; const renderAmount = (amount, unit,...
src/mutations/updatePersonMutation.js
BerndWessels/react-webpack
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2015 Manapaho. 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 Relay from 'react-relay'; /** * Create the Gr...
src/components/video_detail.js
ptorrentf/firstProject
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; //const url = 'https://www.youtube.com/embed/' + videoId; factorizacion linea anterior return ( <div classNam...
src/react/tabs/small_tabs.js
pivotal-cf/pivotal-ui
import React from 'react'; import PropTypes from 'prop-types'; import {Collapsible} from '../collapsible'; import classnames from 'classnames'; class SmallTab extends React.PureComponent { static propTypes = { animation: PropTypes.bool, ariaLabelledBy: PropTypes.string, disabled: PropTypes.bool, expa...
src/components/icons/VoicemailIcon.js
austinknight/ui-components
import React from 'react'; export const VoicemailIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24" fill="currentColor"> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 ...
src/js/ui/icon.js
SpaceHexagon/pylon
import React from 'react'; export default class Icon extends React.Component { constructor() { super(); // Initial state of the component this.state = { }; } componentDidMount () { } handleClick (component, event) { var evt = event.nativeEvent; if (evt.which != 3) { this.vibrate(); component...
client/src/components/Flash/index.js
BhaveshSGupta/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { Alert } from '@freecodecamp/react-bootstrap'; import { TransitionGroup, CSSTransition } from 'react-transition-group'; import './flash.css'; function Flash({ flashMessage, onClose }) { const { type, message, id } = flashMessage; return ( ...
src/components/modals/Newproject/Newproject.js
Convicted202/PixelShape
import React, { Component } from 'react'; import ModalWindow from '../../modalwindow/Modalwindow'; import ToggleCheckbox from '../../togglecheckbox/Togglecheckbox'; import StateLoader from '../../../statemanager/StateLoader'; import { projectExtension } from '../../../defaults/constants'; import './newproject.styl'; ...
examples/00 Chessboard/Tutorial App/index.js
jgable/react-dnd
import React, { Component } from 'react'; import Board from './Board'; import { observe } from './Game'; /** * Unlike the tutorial, export a component so it can be used on the website. */ export default class ChessboardTutorialApp extends Component { constructor(props) { super(props); this.unobserve = obse...
src/svg-icons/editor/format-clear.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatClear = (props) => ( <SvgIcon {...props}> <path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/> </SvgIcon...
ui/src/components/customers/customerShow.js
jollopre/mps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class CustomerShow extends Component { render() { const { customer } = this.props; return ( <dl className="dl-horizontal"> <dt>Reference</dt> <dd>{customer.reference}</dd> <dt>Company Name</dt> ...
app/scripts/app.js
illbexyz/collaborative-paintings
import React from 'react'; import AppRouter from './components/router'; window.React = React; const mountNode = document.getElementById('app'); React.render(<AppRouter/>, mountNode);
src/js/components/icons/base/Run.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...
src/BottomNavigation/BottomNavigation.spec.js
kasra-co/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import BottomNavigation from './BottomNavigation'; import BottomNavigationItem from './BottomNavigationItem'; import getMuiTheme from '../styles/getMuiTheme'; describe('<BottomNavigation />', () => { const ...
client/src/components/Login.js
Velocies/raptor-ads
import React, { Component } from 'react'; import { Button, Form, Grid, Header, Icon } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { changeLoginField, loginUser } from '../actions'; class Login extends Component { constructor(props) { super(props); this.handleChange = this.handleCh...
src/GiftedChat.js
FaridSafi/react-native-gifted-messenger
/* eslint no-param-reassign: 0, no-use-before-define: ["error", { "variables": false }], no-return-assign: 0, no-mixed-operators: 0, react/sort-comp: 0 */ import PropTypes from 'prop-types'; import React from 'react'; import { Animated, Platform, StyleSheet, View } from 'react-native'; import Acti...
src/List/ListItem.spec.js
hwo411/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import {spy} from 'sinon'; import ListItem from './ListItem'; import EnhancedButton from '../internal/EnhancedButton'; import getMuiTheme from '../styles/getMuiTheme'; import NestedList from './NestedList'; d...
app/archive/forms/SingleLineText.js
anthonychung14/mobile-1
import React from 'react' import { View, StyleSheet, Text, TextInput, } from 'react-native'; const SingleLineText = ({ name, input: { onChange, ...restInput }}) => ( <View style={ styles.container }> <Text>{ name || 'No Title' }</Text> <TextInput style={ styles.input } ...
resources/js/Admin/Imports/MutePromotions/Show.js
DoSomething/northstar
import React from 'react'; import { format, parseISO } from 'date-fns'; import Layout from '../../components/Layout'; import DescriptionListCard from '../../../components/Card/DescriptionListCard'; const Show = ({ importFile }) => { const { created_at, id, import_count, metadata, row_count, ...
wrappers/md.js
futuregerald/NetlifyApp
import React from 'react' import 'css/markdown-styles.css' import Helmet from "react-helmet" import { config } from 'config' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <...
test/MenuItemSpec.js
azmenak/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import MenuItem from '../src/MenuItem'; describe('MenuItem', function () { it('should output an li', function () { let instance = ReactTestUtils.renderIntoDocument( <MenuItem> Title </MenuItem> ); assert...
es/_wlk/icons/Facebook.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import _extends from "@babel/runtime/helpers/builtin/extends"; import React from 'react'; import SvgIcon from "@material-ui/core/es/SvgIcon"; /* eslint-disable max-len */ var _ref = /*#__PURE__*/ _jsx("path", { d: "M204.1,0H11.9C5.3,0,0,5.3,0,11.9v192.2c0,6.6,5....
src/client/auth/login.react.js
gaearon/este
import * as actions from './actions'; import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import exposeRouter from '../components/exposerouter.react'; import immutable from 'immutable'; import {focusInvalidField} from '../../lib/validation'...
packages/babel-plugin-transform-react-pure-annotations/test/fixtures/react/createElement/input.js
hzoo/babel
import React from 'react'; React.createElement('div');
node_modules/react-app-tools/templates/app/components/Layout/Navigation.js
RickFrom1987/rickfrom1987.com
/** * React App SDK (https://github.com/kriasoft/react-app) * * Copyright © 2015-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 history from '../../...
app/components/List/index.js
Dattaya/react-boilerplate-object
import React from 'react'; import PropTypes from 'prop-types'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item) => ( ...
test/js/release_test/ViroSkyBoxTest.js
viromedia/viro
/** * Sample React Native App * https://github.com/facebook/react-native *//** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { ViroS...
app/containers/CheckSessionIdcontainer/index.js
vinhtran19950804/procure_react
/** * * CheckSessionIdcontainer * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import injectSaga from 'utils/injectSaga'; import injectReducer from 'utils/injectReducer...
src/SocialBadge/index.js
reinaldoferreira/macmillan-gamification
import React from 'react'; import FacebookLogin from 'react-facebook-login'; import FB from 'fb' const OVERLAY_API = 'https://thawing-depths-99050.herokuapp.com/overlay' const postPhotoToAPI = (photoURL, badge) => { const payload = { image: photoURL, badge: badge } const data = JSON.stringify(payload) ...
tests/AsyncBundle.spec.js
theboyWhoCriedWoolf/async-bundle
import React from 'react'; import { omit } from 'ramda'; import { shallow } from 'enzyme'; import { combineReducers } from 'redux'; import configureStore from 'redux-mock-store'; import BundleLoader from '../src/AsyncBundle'; const mockStore = omit(['getActions', 'clearActions'], configureStore([])()); const mockCre...
app/components/icons/github.js
disolution/disolution-app
import React from 'react'; import { SvgIcon } from 'material-ui'; const GithubIcon = (props) => ( <SvgIcon viewBox="0 0 512 512" {...props}> <path d="M256 70.7c-102.6 0-185.9 83.2-185.9 185.9 0 82.1 53.3 151.8 127.1 176.4 9.3 1.7 12.3-4 12.3-8.9V389.4c-51.7 11.3-62.5-21.9-62.5-21.9 -8.4-21.5-20.6-27.2-20.6-27.2 ...
src/packages/@ncigdc/components/Modals/UploadSet/SetInput.js
NCI-GDC/portal-ui
import React from 'react'; import { debounce } from 'lodash'; import TextArea from './TextArea'; import FileUpload from './FileUpload'; const onUpdate = debounce((str, callback) => { callback( str .split(/[\s,]+/) .filter(Boolean) .map(g => g.toUpperCase()), ); }, 500); const initState = { ...
app/containers/VendorsContainer.js
stratigos/stormsreach
import React from 'react'; import { connect } from 'react-redux'; import VendorList from '../components/VendorList'; const mapStateToProps = (state) => ({ vendors: state.vendors }); const VendorsContainer = connect(mapStateToProps)(VendorList); export default VendorsContainer;
client/src/app/routes/misc/containers/BlankPage.js
zraees/sms-project
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' export default class BlankPage extends React.Component { render() { return ( <div id="content"> <div className="row"> <BigBreadcrumbs items={['Page Header', 'Subtitle']} icon="ho...
app/containers/FeaturePage/index.js
zuban/zuban-boilerplate
/* * FeaturePage * * List all the features */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from './Li...
clients/packages/admin-client/src/mobrender/components/block.spec.js
nossas/bonde-client
/* eslint-disable no-unused-expressions */ import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import Block from '../../mobrender/components/block'; import Widget from '../../mobrender/components/widget.connected'; import BlockChangeBackground from '../../mobrender/components/bl...