path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
modules/components/Admin/components/AddUser/index.js
hmltnbrn/classroom-library
import React from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; import Dialog from 'material-ui/Dialog'; import Snackbar from 'material-ui/Snackbar'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; ...
docs/app/Examples/views/Statistic/index.js
aabustamante/Semantic-UI-React
import React from 'react' import Content from './Content' import Types from './Types' import Variations from './Variations' const StatisticExamples = () => ( <div> <Types /> <Content /> <Variations /> </div> ) export default StatisticExamples
docs/app/Examples/collections/Grid/Variations/GridExampleStretched.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid, Segment } from 'semantic-ui-react' const GridExampleStretched = () => ( <Grid columns={3} divided> <Grid.Row stretched> <Grid.Column> <Segment>1</Segment> </Grid.Column> <Grid.Column> <Segment>1</Segment> <Segment>2</Segment> ...
tech_stack/src/components/common/Button.js
haaswill/ReactNativeCourses
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, children }) => { const { buttonStyle, textStyle } = styles; return ( <TouchableOpacity onPress={onPress} style={buttonStyle}> <Text style={textStyle}> {children} </Text> </Toucha...
src/components/form/NumberField.js
RelativeMedia/rm-frontend
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' const NumberField = ({ disabled, inputLg, input, label, placeholder, type, meta: {valid, touched, error} }) => { const classes = classNames('form-group', { 'has-error': (touched && !valid), 'has-success': (touche...
pages/index.js
Digital-Sandwich/ghibli-api-next
/*TO DO -display all properties of featured item -display properties of item when clicked /TO DO */ import React from 'react'; import axios from 'axios'; import Link from 'next/link'; import PageHead from '../components/head'; import Nav from '../components/nav'; import AppTitle from '../components/app-title'; import ...
src/Parser/RestoDruid/Modules/Legendaries/T21_2Set.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; import Mastery from '...
index.js
dominiktilp/currys-web-app
import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import configureStore from './utils/configureStore'; import routes from './routes/routing'; import Immutable from 'immutable'; import 'isomorphic-fetch'; requir...
src/js/views/Login/Login.js
TheoZimm/SaltyDashboard
import React from 'react'; import Box from 'grommet/components/Box'; import Header from '../../components/Header/'; import DashboardLogin from '../../components/DashboardLogin'; class Login extends React.Component { render() { return ( <Box> <Header /> <DashboardLogin /> </Box> )...
app/containers/LocaleToggle/index.js
vinhtran19950804/procure_react
/* * * LanguageToggle * */ import React from 'react'; import PropTypes from 'prop-types'; 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 '../../...
src/components/questionAnswerComponent/questionAnswerComponent.js
craigbilner/quizapp
'use strict'; import React from 'react'; import radium from 'radium'; import QuestioneeComponent from '../questioneeComponent/questioneeComponent'; import QuestionComponent from '../questionComponent/questionComponent'; import RoundComponent from '../roundComponent/roundComponent'; import QuestionIndxComponent from '....
src/components/video_list_item.js
callistusystan/youtubeApp
import React from 'react'; const VideoListItem = ({ video, onVideoSelect }) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={ () => onVideoSelect(video) } className="list-group-item"> <div className="video-list media"> <div className="media-...
app/components/ClickMarker/index.js
ScoutingIJsselgroep/Jotihunt
/** * * ClickMarker * */ import React from 'react'; import { Marker } from 'react-google-maps'; // import styled from 'styled-components'; function ClickMarker({ latlng }) { return (<Marker position={{ lat: latlng[0], lng: latlng[1] }} > </Marker>); } ClickMarker.propTypes = { latlng: React.PropTypes.ar...
src/components/DataTable/defaultActionHeadRenderer.js
propertybase/react-lds
import React from 'react'; export default ({ dataKey }) => ( // eslint-disable-line react/prop-types <th key={dataKey} scope="col"> <div className="slds-th__action"> <span className="slds-assistive-text">Actions</span> </div> </th> );
src/containers/Home.js
kyleaclark/nba-trade-machine
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import * as TradeActions from '../actions/trade'; ...
src/encoded/static/components/navigation/components/BigDropdown/BigDropdownContainer.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { CSSTransition } from 'react-transition-group'; import ReactTooltip from 'react-tooltip'; import { layout, console, analytics } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; expo...
renderer/components/UI/CloseButton.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { themeGet } from '@styled-system/theme-get' import { Flex, Box } from 'rebass/styled-components' import X from 'components/Icon/X' const CloseButtonWrapper = styled(Box)` height: ${({ size }) => (size === 's' ...
app/containers/Home/HomePage.js
ryanwashburne/react-skeleton
// React import PropTypes from 'prop-types'; import React from 'react'; // Redux import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as global from 'app/reducers/globalReducer'; // UI import { Container, Col, Row, CardBody, Button, Card, CardImage, CardTitle, CardText } from 'm...
src/svg-icons/image/panorama-horizontal.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaHorizontal = (props) => ( <SvgIcon {...props}> <path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C...
app/javascript/mastodon/containers/mastodon.js
yukimochi/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { BrowserRouter, Route } from 'react-router-dom'; import { ScrollContext } from 'react-router-scroll-4'; import UI from '../features/ui'; import { fetchCust...
app/js/components/Footer.js
grimcoder/chess-react
'use strict'; import React from 'react'; class Footer extends React.Component{ constructor(props) { super(props); } render() { return ( <footer> Footer </footer> ); } } export default Footer;
src/components/boardList/index.js
marg51/uto
import React from 'react' import {connect} from 'react-redux' import { Link } from 'react-router' import Emoji from '../../utils/emoji' import Debug from '../../utils/debug' function getStyle(board) { return { padding: "20px", backgroundImage: "url("+board.prefs.backgroundImage+")", backgr...
js/components/blocks/SearchBlock.js
Sacret/githubify
'use strict'; import React from 'react'; import Reflux from 'reflux'; import _ from 'lodash'; // import { Grid, Row, Col } from 'react-bootstrap'; import { Input, Button, Glyphicon } from 'react-bootstrap'; // import FilterActions from '../../actions/FilterActions'; // import FilterStore from '../../stores/FilterStore...
scripts/components/Thumbnail.js
jirivrany/react-video-example
/*eslint-disable no-unused-vars*/ 'use strict'; import React from 'react'; export default React.createClass({ componentWillReceiveProps: function(nextProps) { let api = this.refs.thumbnail.getDOMNode(); api.currentTime = nextProps.seek; }, render: function() { return ( ...
src/components/commonComponents/genericChart.js
toffee7/ReactStarterComponents
import React, { Component } from 'react'; import Highcharts from 'highcharts'; // generic Chart for HighCharts API class GenericChart extends Component{ constructor(props) { super(props); } // Destroy chart before unmount. componentWillUnmount() { this.chart.destroy(); } shouldComponentUpdate() {...
src/components/pages/history/index.js
modern-translator/client
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import React from 'react'; import PropTypes from 'prop-types'; import AppBar from '@material-ui/core/AppBar'; imp...
src/routes/privacy/index.js
KantanGroup/zuzu-sites
/** * 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/charts/stackedArea/StackedArea.js
jchen-eb/britecharts-react
import React from 'react'; import PropTypes from 'prop-types'; import stackedArea from './stackedAreaChart'; import {loadingContainerWrapper} from '../loading/LoadingContainer'; class StackedArea extends React.Component { static propTypes = { /** * Internally used, do not overwrite. */ ...
frontend/app/components/Form/FormPhraseBooks.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import FormPhraseBook from 'components/Form/FormPhraseBook' import { getIndexOfElementById, removeItem, moveItemDown, moveItemUp } from 'components/Form/FormInteractions' import BrowseComponent from 'components/BrowseComponent' import ProviderHelpers from 'co...
src/js/modules/video_embed.js
fncoder/youtube-search-videos
import React from 'react' class EmbedVideo extends React.Component { render () { return ( <iframe id='player' src={`https://www.youtube.com/embed/${this.props.videoId}`} /> ) } } export default EmbedVideo
client/src/components/StudentsPage.js
yegor-sytnyk/contoso-express
import React from 'react'; import _ from 'lodash'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {Pagination} from 'react-bootstrap'; import StudentsList from './student/StudentsList'; import * as studentActions from '../actions/studentActions'; import StudentSave from './student...
react-tasks/src/App.js
driverInside/react-basic
import React, { Component } from 'react'; import TaskList from './TaskList' import './App.css'; class App extends Component { constructor(props) { super(props); this.state = { items: [], task: '' }; } inputOnChange(e) { e.preventDefault(); var task = e.target.value; this.s...
src/components/Rating/index.js
xanf/letsreact2
import React from 'react'; const Rating = ({list}) => ( <ul> { list.map(item => <li key={item.id}>{item.name} - {item.points}</li>) } </ul> ); export default Rating;
src/Tooltip/TooltipContent.js
boldr/boldr-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; class TooltipContent extends Component { static propTypes = { textAlign: PropTypes.string, maxWidth: PropTypes.string, /** * Tooltip content to be rendered */ children: PropTy...
src/public/js/components/Header.js
nuberos/taliesin
import React from 'react'; import ReactDOM from 'react-dom'; import Separator from './Separator' import Link from './Link' export default class Header extends React.Component { render() { return ( <div id="headercontainer" className="container-fluid"> <div className="row mt-5"> <div class...
app/react-icons/fa/map.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaMap extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m11.4 0q0.3 0 0.5 0.2t0.2 0.5v32.9q0 0.4-0.3 0.6l-10.7 5.7q-0.2 0.1-0.4 0.1-0.3 ...
src/js/components/input/input_file.js
working-minds/realizejs
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from '../../prop_types'; import $ from 'jquery'; import i18n from '../../i18n'; import { autobind, mixin } from '../../utils/decorators'; import InputBase from './input_base'; import { CssClassMixin } from '../../mixins'; @...
src/plot/series/mark-series.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/containers/Education/index.js
carlyleec/cc-react
import React from 'react'; import { graphql } from 'react-apollo'; import styled from 'styled-components'; import Container from '../../components/Container'; import Loading from '../../components/Loading'; import renderMarkdown from '../../utils/renderMarkdown'; import IntraCardTitle from '../../components/IntraCardT...
app/javascript/mastodon/features/home_timeline/index.js
corzntin/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
src/routes.js
ipostol/sociometry-react
import React from 'react'; import {IndexRoute, Route, browserHistory} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Login, LoginSuccess, NotFound, SignUpPage, Home, UserPage, Classes, Members, Conducts, Pin...
node_modules/react-bootstrap/es/InputGroup.js
CallumRocks/ReduxSimpleStarter
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 ...
examples/query-params/app.js
1000hz/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; retur...
src/example/index.js
klarna/higher-order-components
import React from 'react' import { render } from 'react-dom' import componentQueries from 'react-component-queries' import WithDeprecatedPropExample from './WithDeprecatedPropExample' import WithDeprecationWarningExample from './WithDeprecationWarningExample' import WithDisplayNameExample from './WithDisplayNameExampl...
app/javascript/mastodon/features/account/components/action_bar.js
imomix/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenu from '../../../components/dropdown_menu'; import Link from 'react-router-dom/Link'; import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } from 'react-intl'; ...
test/integration/production-swcminify/components/hello-context.js
zeit/next.js
import React from 'react' import PropTypes from 'prop-types' export default class extends React.Component { static contextTypes = { data: PropTypes.object, } render() { const { data } = this.context return <div>{data.title}</div> } }
client/fragments/sign-up/controller.js
yeoh-joer/synapse
/** * External dependencies */ import React from 'react' /** * Internal dependencies */ import SignUp from './main' import { renderWithReduxStore } from 'client/lib/react-helpers' export default { start(ctx) { renderWithReduxStore(<SignUp/>, 'primary', ctx.store) } }
components/LobbyLayout/LobbyHeader.js
marchisbogdan/licenta-front
import React from 'react'; import MdMenuIcon from 'react-icons/lib/md/menu'; import {IconButton,Menu,MenuItem} from "react-mdl"; import Link from '../Link'; import s from './LobbyHeader.css'; import history from '../../src/history'; import {evictSession} from '../../core/sessionManager'; class LobbyHeader extends Reac...
src/svg-icons/notification/airline-seat-recline-normal.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatReclineNormal = (props) => ( <SvgIcon {...props}> <path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5...
example/js/views/MyViewController.js
nebrius/flvx
/* The MIT License (MIT) Copyright (c) 2014 Bryan Hughes <bryan@theoreticalideations.com> (http://theoreticalideations.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, in...
docs/src/sections/GridPaginationSection.js
yyssc/ssc-grid
import React from 'react'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function GridSection() { return ( <div className="bs-docs-section"> <h3><Anchor id="grid-pagination">显示分页</Anchor></h3> <p>使用<code>paging</cod...
frontend/component/Notification.js
wangmuming/node-forum
import React from 'react'; import { Router, Route, Link, browserHistory } from 'react-router'; // import jQuery from 'jQuery'; import {notificationList, notificationSetRead} from '../lib/client'; import {redirectURL} from '../lib/utils'; export default class Notification extends React.Component{ constructor(pros){ ...
app/containers/DevTools.js
ADI-Labs/calendar-web
import React from 'react' // Exported from redux-devtools import { createDevTools } from 'redux-devtools' // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' // createDevTools takes a monitor and pr...
client/src/javascript/components/icons/DetailNotAvailableIcon.js
stephdewit/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class DetailNotAvailableIcon extends BaseIcon { render() { return ( <svg className={`icon icon--clock ${this.props.className}`} viewBox={this.getViewBox()}> <rect y="26.63" width="60" height="6.75" /> </svg> ); ...
docs/src/PageHeader.js
gianpaj/react-bootstrap
import React from 'react'; const PageHeader = React.createClass({ render() { return ( <div className="bs-docs-header" id="content"> <div className="container"> <h1>{this.props.title}</h1> <p>{this.props.subTitle}</p> </div> </div> ); } }); export default Pag...
src/components/Icon/Icon.js
Landish/react-spectre-css
import React from 'react'; import { string } from 'prop-types'; import classNames from 'classnames'; const Icon = ({ name, className, ...rest }) => { return ( <i className={classNames( 'icon', name.length ? `icon-${name}` : false, className )} {...rest} /> ); }; /...
Practicas/Pokechat-F/componentes/PokeAvatar.js
tonkyfiero/React_Ejercicios
/* *Importacion de modulos */ import React from 'react'; export default class PokeAvatar extends React.Component{ render(){ var url=`./imagenes/${this.props.numero}.jpg` return( <img src={url} /> ) } }
examples/src/views/Dashboard.js
LayGit/layui
import React from 'react' import { Link } from 'react-router' export default class Dashboard extends React.Component { render () { return ( <div> </div> ) } } module.exports = exports['default']
app/screens/docs/index.js
rocjs/getroc
import React from 'react'; export default class Docs extends React.Component { render() { return ( <div className="wrapper"> <div className="markdown-body" dangerouslySetInnerHTML={ { __html: require('../../../docs/DOCS.md') } } ...
public/js/components/admin/settings/settings.react.js
MadushikaPerera/Coupley
import React from 'react'; import Snack from './snackbar.react'; import NewAdminModal from './NewAdminmodal.react'; import UpAdminModal from './updateAdminmodal.react'; import PwdModal from './ResetPwd.react'; import DeactivateModal from './Deactivate.react'; import Divider from 'material-ui/lib/divider'; import PathSt...
src/svg-icons/hardware/cast.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareCast = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4...
client/src/components/LoadingSpinner.js
MaximeSarrato/dariobattle
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import { CircularProgress } from 'material-ui/Progress'; import purple from 'material-ui/colors/purple'; const styles = theme => ({ progress: { margin: theme.spacing.unit * 2 } }); const LoadingSpin...
js/components/anatomy/index.js
bengaara/simbapp
import React, { Component } from 'react'; import { StatusBar } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles fro...
node_modules/react-router/es/Router.js
Right-Men/Ironman
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
e2e-tests/production-runtime/src/components/static-query/use-static-query/inline-query.js
ChristopherBiscardi/gatsby
import React from 'react' import { useStaticQuery, graphql } from 'gatsby' function InlineQuery(props) { const data = useStaticQuery(graphql` query { sitePage(path: { eq: "/static-query/" }) { pluginCreator { name } } } `) if (data) { return <p {...props}>{data....
src/components/FormRadio/FormRadio.js
Landish/react-spectre-css
import React from 'react'; import { string, bool, func } from 'prop-types'; import classNames from 'classnames'; const FormRadio = ({ name, value, isChecked, onChange, children, className, ...rest }) => { return ( <label className={classNames('form-radio', className)} {...rest}> <input ...
app/javascript/mastodon/features/pinned_statuses/index.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
app/javascript/mastodon/features/ui/components/column.js
Nyoho/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
packages/veritone-react-common/src/components/SearchBarAdvanced/story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import AppBar from '../AppBar'; import { SearchBarAdvanced } from './index'; storiesOf('Search Bar (advanced)', module).add('Default', () => { return ( <AppBar title="CMS" profi...
packages/ringcentral-widgets-docs/src/app/pages/Components/Environment/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import Environment from 'ringcentral-widgets/components/Environment'; const props = {}; props.server = 'test string'; props.recordingHost = 'test string'; props.enabled = false; props.onSetData = () => null; props.defaultHidden = false; /** * A example of `Envir...
src/repository/screens/repository-file.screen.js
gitpoint/git-point
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { View, ScrollView, Text, StyleSheet, Dimensions, Image, ImageBackground, } from 'react-native'; import { Icon } from 'react-native-elements'; import SyntaxHighlighter from '...
src/grid.js
JesperLekland/react-native-svg-charts
import React from 'react' import PropTypes from 'prop-types' import { G, Line } from 'react-native-svg' const Horizontal = ({ ticks = [], y, svg }) => { return ( <G> {ticks.map((tick) => ( <Line key={tick} x1={'0%'} x2=...
app/components/race-results/OrdinalNumber.js
opensprints/opensprints-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './OrdinalNumber.css'; export default class OrdinalNumber extends Component { static propTypes = { place: PropTypes.number.isRequired }; static placementClass(place) { switch (place) { case 1: ...
src/browser/lib/logRenderTime.js
stephengfriend/cmsbl-este
import Component from 'react-pure-render/component'; import React from 'react'; // When UI renders thousands components, it's useful to check render time. // Example: // @logRenderTime // export default class App extends Component {} export default function logRenderTime(BaseComponent) { return class LogRenderTim...
src/ui/components/RecordButton.js
mattbasta/pinecast-studio
import React from 'react'; import SyrupyButton from './SyrupyButton'; export default class RecordButton extends SyrupyButton { render() { const {state: {clicking, hovering}} = this; const scale = hovering ? (clicking ? '0.9' : '1.05') : '1'; return <button {...this.alwaysProps...
demo/src/components/App/components/Examples/components/MultipleSections/MultipleSections.js
fresk-nc/react-autosuggest
import styles from './MultipleSections.less'; import theme from './theme.less'; import React, { Component } from 'react'; import isMobile from 'ismobilejs'; import Link from 'Link/Link'; import Autosuggest from 'AutosuggestContainer'; import languages from './languages'; import { escapeRegexCharacters } from 'utils/ut...
src/svg-icons/device/sd-storage.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSdStorage = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); DeviceSdStorage ...
bench/fixtures/basic/pages/stateless-big.js
sedubois/next.js
import React from 'react' export default () => { return ( <ul> {items()} </ul> ) } const items = () => { var out = new Array(10000) for (let i = 0; i < out.length; i++) { out[i] = <li key={i}>This is row {i + 1}</li> } return out }
renderer/containers/AddTodo.js
vesparny/todoo
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...
packages/veritone-widgets/src/widgets/OAuthLoginButton/story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; storiesOf('OAuthLoginButtonWidget', module).add('Base', () => { return ( <p>Please see BaseStory.js in this repo for examples of this widget.</p> ); });
actor-apps/app-web/src/app/components/Install.react.js
liruqi/actor-platform
import React from 'react'; export default class Install extends React.Component { render() { return ( <section className="mobile-placeholder col-xs row center-xs middle-xs"> <div> <img alt="Actor messenger" className="logo" src="assets/img/logo.png" ...
templates/rubix/node-seed/src/common/footer.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Grid, } from '@sketchpixy/rubix'; export default class Footer extends React.Component { state = { version: 0 }; componentDidMount() { this.setState({ version: document.body.getAttribute('data-version') }); } render() { var year = ne...
contact/todo/index.js
linuxing3/electron-react
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; // import './app.globa...
app/jsx/shared/SpaceMaillistField.js
sfu/canvas-spaces
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ICInputField from '../components/ICInputField'; const SpaceMaillistField = props => { const validate = event => { props.setError('maillist', ''); const maillist = event.target.value.trim().replace('@sfu.ca', ''); if (!m...
src/routes/login/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...
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js
hmoraes/actor-platform
import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, Snackbar } from 'material-ui'; import ReactZeroClipboard from 'react-zeroclipboard'; import { KeyCo...
node_modules/react-taco-table/site/src/components/ExampleSortConfig.js
premcool/getmydeal
import React from 'react'; import { TacoTable, DataType, SortDirection, Formatters } from 'react-taco-table'; import cellLinesData from '../data/cell_lines.json'; /** * An example demonstrating sort configurations */ const columns = [ { id: 'name', type: DataType.String, value: rowData => rowData.cell...
private/Components/Header.js
Bartoshko/occasion-jitsu
import React from 'react' import {Link} from 'react-router-dom' // Header component contains main manu of the app const Header = props => { if(props.viewState === 'start') { return ( <div className='columns'> <div className='row'><h4 className='animated bounce' >occasion-jitsu &#174;</h4></div> ...
src/components/cell/cell.js
n7best/react-weui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Cell consist of `CellBody`, `CellHeader` and `CellFooter` for flexible reason * */ const Cell = (props) => { const { className, children, access, href, link, component, htmlFor, ...others } = pr...
app/containers/App/Failed.js
CityOfZion/neon-wallet
import React from 'react' import styles from './Failed.scss' export default function Failed() { return <div className={styles.failed}>Failed to load.</div> }
node_modules/react-bootstrap/es/Well.js
chenjic215/search-doctor
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 ...
app/containers/App/index.js
scampersand/sonos-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...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-he...
src/stores/GoalStore.js
vsherms/LifeCoach
import {extendObservable} from 'mobx'; import {browserHistory} from 'react-router'; import React from 'react'; export default class GoalStore { constructor(){ extendObservable(this, { lifeGoal: "", valuesArr: [ "Career", "Financial", "Spiritual", "Health", "Intellectual", "Family", "S...
src/shared/components/adBanner/adBanner.js
OperationCode/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import OutboundLink from 'shared/components/outboundLink/outboundLink'; import styles from './adBanner.css'; const AdBanner = ({ link, imageSource, altText, adBannerText, clickText, theme }) => { if (process.env.NODE_ENV === 'production') { return ...
bai/src/pages/BaiWorkshops/AllConferences/index.js
blackinai/blackinai.github.io
import { ThemeProvider } from '@material-ui/core'; import React from 'react'; import Navbar from '../../../components/Navbar'; import Workshops from '../../../components/Workshops'; import Loader from '../../../loader'; import withRoot from '../../../withRoot'; import theme from './../../../theme'; function Conference...
src/main.js
Dankoda/react-unit-test
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__) // Render Setup // ------------------------------------ const MOUNT_N...
react_ui/components/addButton/index.js
chop-dbhi/biorepo-portal
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import red from '@material-ui/core/colors/red'; import Icon from '@material-ui/core/Icon'; import AddIcon from '@material-ui/icons/Add'; import Fab from '@material-ui/core/Fab'; const styles = theme =>...
src/components/map/scaleline.js
jjmulenex/sdk
/* * Copyright 2015-present Boundless Spatial Inc., http://boundlessgeo.com * Licensed 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/licenses/LICENSE-2.0 * Unless required ...
componentes/Start.js
yomi-network/app
import React, { Component } from 'react'; import { Text, TextInput, View, StyleSheet, ListView, ScrollView, TouchableOpacity, Image} from 'react-native'; import DrawerExample from './Header'; import SearchBar from './SearchBar'; import {StackNavigator} from 'react-navigation'; import Terms f...