path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
js-src/components/TextInput.js
tcschiller/rio-starter-kit
// TextInput.js import React from 'react'; import component from '../JsxComponent'; const TextInput = component('TextInput', { updateText (event) { this.props.value.update(() => event.target.value); } }, function ({ value }) { return <input type="text" placeholder="Enter text here" value={value} o...
docs/app/Examples/elements/Divider/Types/DividerExampleVertical.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid, Segment, Divider } from 'semantic-ui-react' const DividerExampleVertical = () => ( <Grid columns={3} relaxed> <Grid.Column> <Segment basic> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec odio. </Segment> </Grid.Column> <Divider...
client/src/clarity/ClarityLoading.js
flyrightsister/boxcharter
/* * Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved. * * This file is part of BoxCharter. * * BoxCharter is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, either version 3 of the License, ...
tests/lib/rules/indent.js
joakimbeng/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
src/routes/dashboard/components/browser.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import { Table, Tag } from 'antd' import styles from './browser.less' import { color } from 'utils' const status = { 1: { color: color.green, }, 2: { color: color.red, }, 3: { color: color.blue, }, 4: { color: color.yellow, },...
src/pages/configurator/CreatePackageMessagePage.js
belaczek/BeerCheese-client
import React, { Component } from 'react'; import { Row, Col, FormGroup, Label, Input } from 'reactstrap'; import { updateCart } from '../../actions/cart'; import { connect } from 'react-redux'; // import localizedTexts from '../../text_localization/LocalizedStrings'; class CreatePackageMessagePage extends Component { ...
src/shared/views/collectionItems/collectionItems/CollectionItemRoute.js
in-depth/indepth-demo
import React from 'react' import { CollectionItemsListContainer } from './index' const CollectionItemsRoute = (props) => { return ( <div> <CollectionItemsListContainer orderBy={props.location.query.orderBy} /> </div> ) } CollectionItemsRoute.propTypes = { location: React.PropTypes.object, } exp...
assets/jqwidgets/demos/react/app/tooltip/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTooltip from '../../../jqwidgets-react/react_jqxtooltip.js'; class App extends React.Component { render () { let imgStyle = { margin: 10 }; let tooltipStyle = { float: 'left' }; let containersStyle = { width: 400, float...
src/components/Main.js
zeybar/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; // 获取图片相关数据 var imageDatas = require('../sources/imageDatas.json'); // 利用自执行函数,将图片名信息转成图片URL路径信息 imageDatas = (function genImageURL(imageDatasArr) { for (let i = 0;i < imageDatasArr.lengt...
src/components/Header/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './header.scss'; const Header = ({ children, padding }) => ( <header className={padding ? styles.padding : styles.root}> {children} </header> ); export default Header;
src/components/Footer.js
kazupooot/kazupooot.github.io
import React from 'react'; import styled from 'styled-components'; import { Text, Flex, Box } from 'rebass'; import Fade from 'react-reveal/Fade'; import PropTypes from 'prop-types'; import ContentfulLogo from './Logo/Contenful.svg'; import GatsbyLogo from './Logo/Gatsby.svg'; const FooterContainer = styled.footer` ...
src/isomorphic/components/Nav/index.js
hzhu/react-universal
import React from 'react' import { Link } from 'react-router-dom' const Nav = () => ( <nav> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/topics">Topics</Link></li> <li><Link to="/counter">Counter</Link></li> <li><Link to="/weather">Weather</Link></li> </ul> </nav> ) export...
src/ValidateFloatInput.js
yyssc/ssc-grid
/* eslint-disable no-var, curly, vars-on-top, func-names, one-var, no-unused-vars, guard-for-in */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import FormControl from 'react-bootstrap/lib/FormControl'; import HelpBlock from 'react...
src/icons/IosArrowBack.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosArrowBack extends React.Component { render() { if(this.props.bare) { return <g> <polygon points="352,128.4 319.7,96 160,256 160,256 160,256 319.7,416 352,383.6 224.7,256 "></polygon> </g>; } return ...
gui/components/RouteButton.js
venogram/ExpressiveJS
import React, { Component } from 'react'; import PropTypes from 'prop-types'; function RouteButton(props) { const routeId = props.method + ' ' + props.route; return ( <button className="RouteButton" onClick={() => {props.onRouteButtonClick(routeId)}}> {props.route} </button> ) } RouteButton.propT...
src/components/comment_box.js
ctrl-alt-p/born-to-sell
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions'; class CommentBox extends Component { constructor(props) { super(props); this.state = { comment: '' }; } handleChange(event) { this.setState({ comment: event.target.value }); } ...
packages/node_modules/@cerebral/react/src/Hoc.js
garth/cerebral
import React from 'react' import { View, throwError } from 'cerebral' import PropTypes from 'prop-types' class BaseComponent extends React.Component { constructor(dependencies, mergeProps, props, controller, name) { super(props) if (!controller) { throwError( 'Can not find controller, did you r...
src/svg-icons/hardware/tablet-android.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletAndroid = (props) => ( <SvgIcon {...props}> <path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/> </SvgIcon...
src/components/ChatList/ChatList.storiesHelpers.js
helpscout/blue
import React from 'react' import AvatarSpec from '../../utilities/specs/avatar.specs' import ChatSpec from '../../utilities/specs/chat.specs' import { Avatar, ChatList } from '../index' const avatars = AvatarSpec.generate(8) const getItemMarkup = () => { const fixtures = ChatSpec.generate(8) const values = Object...
js/MDCProgress/MDCProgressView.js
Sw0rdstream/react-native-material-components
import {requireNativeComponent, processColor} from 'react-native'; import React, { Component } from 'react'; export default class MDCProgressView extends React.Component { static propTypes = { progress: React.PropTypes.number, trackTintColor: React.PropTypes.string, progressTintColor: React.PropTypes.str...
packages/native/src/components/screens/budget/BudgetList.js
hwaterke/inab
import React from 'react' import PropTypes from 'prop-types' import {SectionList, StyleSheet, Text, View} from 'react-native' import {connect} from 'react-redux' import { BudgetItemResource, CategoryGroupResource, CategoryResource, getAvailableByCategoryIdForSelectedMonth, getSelectedMonthBudgetItemByCategory...
envkey-react/src/components/invites/invite_user_overlay.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import Spinner from "components/shared/spinner" import copy from 'lib/ui/copy' export default class InviteUserOverlay extends React.Component { constructor(props){ super(props) this.state = { copied: false } } _onCopy(){ const...
examples/ChoroplethExample.js
ornl-sava/vis-react-components
import React from 'react' import { format } from 'd3' import { ChoroplethChart } from '../src' import { randomChoroplethData } from './data/exampleData' import map from './data/world-110.json' const toolTipFunction = (d) => { var toolTip = '<span class="title">' + d.x + '</span>' + format(',')(d.y) return...
packages/cf-style-container/src/index.js
jroyal/cf-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { combineRules } from 'fela'; import { ThemeProvider, connect } from 'react-fela'; import { static as Immutable } from 'seamless-immutable'; import { capitalize } from 'underscore.string'; import createFelaComponent from './createCompo...
docs/src/CodeExample.js
bbc/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
frontend/src/components/auth_link.js
jjasonclark/GLAD-to-JAM-on-Docker
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; const AuthLink = ({ loggedIn }) => { console.log(`AuthLink loggedIn: ${loggedIn}`); if (loggedIn) { return( <div className="links centered"> <Link to="/logout">logout</Link> </div>) ; } ...
client/components/Login.js
Troop18/mytroop.site
import React from 'react'; import Relay from 'react-relay'; import FacebookLogin from './FacebookLogin'; const Dialog = require('material-ui/lib/dialog'); const FlatButton = require('material-ui/lib/flat-button'); class Login extends React.Component { constructor() { super(); this.handleFacebookResponse = th...
web/src/components/Calendar/components/Time/TimeSlot.js
AcrylicInc/totalblu
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cn from 'classnames' import { elementType } from 'components/Calendar/utils/propTypes' export default class TimeSlot extends Component { static propTypes = { dayWrapperComponent: elementType, value: PropTypes.instanceOf(Dat...
examples/react-es6/CheckboxWithLabel.js
siddhartharay007/jest
import React from 'react'; class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // since auto-binding is disabled for React's class model // we can prebind methods here // http://facebook.github.io/react/blog/2015/01/27/react-v0.1...
src/parser/shared/modules/items/bfa/raids/uldir/SyringeOfBloodborneInfirmity.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { calculateSecondaryStatDefault } from 'common/stats'; import { formatPercentage, formatNumber } from 'common/format'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import Analyzer from 'parser/core/A...
src/components/NotFoundPage.js
lwilli/WeatherCompare
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/client.js
FOUfashion/frontend
import React from 'react'; import Router from 'react-router'; import {history} from 'react-router/lib/BrowserHistory'; import FluxibleComponent from 'fluxible-addons-react/FluxibleComponent'; import debug from 'debug'; import routes from './routes'; import flux from './flux'; const log = debug('fou:bootstrap'); windo...
webpack/components/InfoModalBodyContent.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; // Provides a content based library for the InfoModal 'body' to reduce duplication of content export default class InfoModalBodyContent extends Component { constructor(props) { super(props); this.state = { show: false }; ...
docs/src/app/components/pages/components/Table/ExampleSimple.js
igorbt/material-ui
import React from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; /** * A simple table demonstrating the hierarchy of the `Table` component and its sub-components. */ const TableExampleSimple = () => ( <Table> <TableHeader> ...
src/components/TextInputBEM/TextInputBEM.js
Shuki-L/ps-react-shuki
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold...
client/modules/auth/Auth.js
ncrmro/ango
import React from 'react' import Textfield from 'react-mdc-web/lib/Textfield/Textfield' import Button from 'react-mdc-web/lib/Button' import Checkbox from 'react-mdc-web/lib/Checkbox' import LoginUserMutation from './mutations/Login' import SignupUserMutation from './mutations/Signup' import FormMessageList from 'compo...
components/Deck/ContentModulesPanel/ContributorsPanel/ContributorItem.js
slidewiki/slidewiki-platform
import React from 'react'; import {creatorAttribute} from './util/ContributorsUtil'; import {contains} from './util/ContributorsUtil'; import UserPicture from '../../../common/UserPicture'; class ContributorItem extends React.Component { render() { return ( <a className="item" href={'/user/' + ...
app/javascript/flavours/glitch/components/timeline_hint.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
frontend/src/DiscoverMovie/Table/DiscoverMovieTable.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import VirtualTable from 'Components/Table/VirtualTable'; import VirtualTableRow from 'Components/Table/VirtualTableRow'; import DiscoverMovieItemConnector from 'DiscoverMovie/DiscoverMovieItemConnector'; import { sortDirections } from 'Helpe...
examples/complete/material/src/routes/Projects/components/NewProjectTile/NewProjectTile.js
prescottprue/react-redux-firebase
import React from 'react' import PropTypes from 'prop-types' import ContentAddCircle from '@material-ui/icons/AddCircle' import Paper from '@material-ui/core/Paper' import { makeStyles } from '@material-ui/core/styles' import styles from './NewProjectTile.styles' const useStyles = makeStyles(styles) function NewProje...
packages/cf-component-form/src/FormFooter.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = ({ theme }) => ({ padding: theme.padding, borderTop: theme.borderTop, textAlign: theme.textAlign }); class FormFooter extends React.Component { render() { const { className, ...
src/svg-icons/communication/screen-share.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56...
pootle/static/js/admin/components/Project/ProjectController.js
pavels/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import Search from '../Search'...
plugins/Relay/QueryViewer.js
aolesky/react-devtools
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */...
src/svg-icons/communication/voicemail.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationVoicemail = (props) => ( <SvgIcon {...props}> <path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3...
src/svg-icons/av/airplay.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAirplay = (props) => ( <SvgIcon {...props}> <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); AvAirplay = pure(AvAirplay...
node_modules/react-bootstrap/es/MediaBody.js
ProjectSunday/rooibus
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 ...
components/pagination/options.js
TDFE/td-ui
/* eslint-disable no-unused-vars */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Select from '../select'; const Option = Select.Option; class Options extends Component { constructor(props) { super(props); this.state = { value: props.pageSize.toString() } } ...
mla_game/front-end/javascript/components/partials/game_meta.js
WGBH/FixIt
import React from 'react' class GameMeta extends React.Component { constructor(){ super() } render(){ const {meta, aapb_link, sources } = this.props; let noData = meta === null, program, series, station, broadcastDate, transcript_sources if(!n...
lts/deps/npm/docs/src/templates/Page.js
enclose-io/compiler
import React from 'react' import {graphql} from 'gatsby' import styled from 'styled-components' import FoundTypo from 'src/components/FoundTypo' import Scripts from 'src/components/scripts' const version = require('../../../package.json').version const Content = styled.div` max-width: 760px; margin: auto; paddin...
index.ios.js
thesabbir/oconnect
/** * 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 oconnect extends Component { render() { return ( <View style={styles.container}...
android/source/component/imageBox.js
cloudfavorites/favorites
import React, { Component } from 'react'; import { View, Image, Dimensions, StyleSheet, ActivityIndicator } from 'react-native'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import { StyleConfig } from '../style'; const {width, height} = Dimensions.get('window'); const defaultMaxWidth = w...
src/routes/notFound/NotFound.js
BankaiMikeH/HackWSU2017_AirRands
/** * 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 PropTypes from 'prop-...
react-relative-portal/src/BadHint.js
smartprogress/smartprogress.github.io
import React from 'react'; export default class BadHint extends React.Component { static propTypes = { children: React.PropTypes.any, }; state = { hover: false, }; render() { const { children } = this.props; const { hover } = this.state; return ( <div style={styles.container}> ...
src/containers/HomePage.js
knod/cliff-effects-1
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class HomePage extends Component { render() { return ( <div id='HomePage'> <div id='HomeContent'> <div className="main-wrapper"> <div className="headings"> <h1>Cliff Effects Tool<...
src/js/components/ui/AnswerQuestionCard/AnswerQuestionCard.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './AnswerQuestionCard.scss'; import CardUser from "../../cardUsers/CardUser"; import translate from "../../../i18n/Translate"; @translate('AnswerQuestionCard') export default class AnswerQuestionCard extends Component { ...
via-web/src/App.js
GoogleCloudPlatform/dataflow-video-analysis
/** * Copyright 2020, Google, Inc. * 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 by applicable law or agreed to i...
client/pages/photo.js
RobinClowers/photo-album
import React from 'react' import Head from 'next/head' import Error from 'next/error' import Layout from 'client/components/Layout' import BackToAlbumLink from 'client/components/BackToAlbumLink' import PhotoComments from 'client/components/PhotoComments' import { getPhoto } from 'client/src/api' import { Router } from...
client/src/react/notes/NoteForm.js
charlesj/Apollo
import React from 'react' import { connect, } from 'react-redux' import { Field, reduxForm, } from 'redux-form' import PropTypes from 'prop-types' import { SaveButton, CancelButton, } from '../_controls' let NoteForm = props => { const { handleSubmit, onCancel, } = props return ( <form className="noteForm" onS...
js/src/component/ItemForm.js
outeredge/edge-magento-module-menu
import React from 'react'; import Select from 'react-select'; import Dropzone from 'react-dropzone'; import request from 'superagent'; import { api } from '../helpers/api'; export default class ItemForm extends React.Component { constructor(props) { super(props); this.state = { item_id...
examples/reused_components/src/index.js
MrEfrem/redux-fly
//@flow import React from 'react' import ReactDOM from 'react-dom' import { createStore, compose } from 'redux' import { Provider } from 'react-redux' import { enhanceStore } from 'redux-fly' import Layout from './containers/page/Layout' const composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOL...
src/components/Page/Page.js
edgarallanglez/foxacademia_frontend
/** * 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 PropTypes from 'prop-...
src/smif/app/src/components/ConfigForm/General/Buttons.js
nismod/smif
import React from 'react' import PropTypes from 'prop-types' /** * SuccessButton * * Primary button */ const SuccessButton = (props) => ( <input id={props.id} className="btn btn-success btn-margin" type="button" value={props.value} onClick={props.onClick} /> ) SuccessBu...
src/components/widgets/RichTextRenderer.js
rsamec/react-designer
import React from 'react'; //import backdraft from 'backdraft-js'; import {convertToRaw,convertFromRaw} from 'draft-js'; import {stateToHTML} from 'draft-js-export-html'; import styleFont from './utils/font'; // const markup = { // 'BOLD': ['<strong>', '</strong>'], // 'ITALIC': ['<em>', '</em>'], // 'UNDERLINE': [...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupOrSize.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupOrSize = () => ( <Button.Group size='large'> <Button>One</Button> <Button.Or /> <Button>Three</Button> </Button.Group> ) export default ButtonExampleGroupOrSize
src/components/View/ViewContainer.js
ubc-subbots/ubc-subbots.github.io
import React from 'react'; import constants from '../../js/constants'; import Container from 'react-bootstrap/Container'; import Slide from 'react-reveal/Slide'; export default class ViewContainer extends React.Component{ render() { return( <div className="ViewContainer"> <Sli...
src/js/containers/app/main-footer.js
frontendbr/eventos
'use strict' import React from 'react' const footerLinks = [{ href: 'https://github.com/frontendbr/forum', title: 'Acesso nosso fórum', content: 'Fórum' }, { href: 'https://github.com/frontendbr/vagas', title: 'Publique ou encontre uma vaga', content: 'Vagas' }] const MainFooter = () => ( <footer class...
src/ParticipationListMobile/RenderTopTenList.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.css'; import Wrapper from '../Wrapper'; import ChallengeMeta13 from '../ChallengeMeta13'; import LeaderboardSeparator1 from '../LeaderboardSeparator1'; function RenderTopTenlist(props) { const numberOfSections = props.sortedL...
src/components/NoteEditor/Forms/BibleVerseForm.js
bibleexchange/be-front-new
import React from 'react'; import TextInput from '../TextInput'; export default class BibleVerseForm extends React.Component { render() { return ( <div> <TextInput label='cross reference' name='reference' value={this.props.inputs.reference} handleEdit={this.props.handleInputChanges} /> ...
docs/app/Examples/modules/Popup/Variations/PopupExamplePosition.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Icon, Popup, Grid } from 'semantic-ui-react' const PopupExamplePosition = () => ( <Grid columns={3} style={{ width: '600px' }}> <Grid.Row> <Grid.Column> <Popup trigger={<Icon name='heart' color='red' size='large' circular />} content='I am posi...
src/js/components/common/fields/Input.js
katie-day/we_do
import React from 'react'; import PropTypes from 'prop-types'; const Input = ({ input, meta: { touched, error }, label, type, placeholder, className, required, }) => { return ( <div className={`form__field width-1/2@medium ${className}`}> <label htmlF...
src/js/components/icons/base/Inbox.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...
app/addons/documents/index-results/components/results/TableView.js
apache/couchdb-fauxton
// 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 by applicable law or agreed to in writing, software // distributed un...
stories/components/quoteBanner/index.js
miaket/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import QuoteBanner from 'shared/components/quoteBanner/quoteBanner'; storiesOf('shared/components/quoteBanner', module) .add('Default', () => ( <QuoteBanner author="James bond" quote="I always enjoyed learning a new tongue" ...
src/components/pages/bookItem.js
cruxbreaker/universal-react-bookstore-app
"use strict" import React from 'react'; import {Row, Col, Well, Button} from 'react-bootstrap'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {addToCart, updateCart} from '../../actions/cartActions'; class BookItem extends React.Component { handleCart() { const boo...
src/components/statusBar/index.js
fmsouza/wcode
import React from 'react'; import './styles.css'; export default (props) => ( <div className="StatusBar"> <div className="left" /> <div className="right"> <a href="https://github.com/fmsouza/monaco-web-ide" target="_blank" rel="noopener noreferrer"> Github </...
src/packages/@ncigdc/components/Explore/CasesTab.js
NCI-GDC/portal-ui
import React from 'react'; import ExploreCasesTable from '@ncigdc/modern_components/ExploreCasesTable'; import ExploreCasesPies from '@ncigdc/modern_components/ExploreCasesPies/ExploreCasesPies'; const CasesTab = () => ( <div> <ExploreCasesPies /> <ExploreCasesTable /> </div> ); export default CasesTab;
react/features/video-menu/components/web/MuteEveryoneElsesVideoButton.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import ContextMenuItem from '../../../base/components/context-menu/ContextMenuItem'; import { translate } from '../../../base/i18n'; import { IconMuteVideoEveryoneElse } from '../../../base/icons'; import { connect } from '../../../base/redux'; import AbstractMuteEveryoneElsesVideo...
modules/saldotuc-website/src/views/App/index.js
nerdify/saldotuc
import React from 'react'; import { graphql, QueryRenderer } from 'react-relay'; import CardForm from 'components/CardForm'; import CardList from 'components/CardList'; import Container from 'components/Container'; import withAuth from 'utils/withAuth'; import environment from 'relayEnvironment'; import { Title } ...
website/modules/examples/Sidebar.js
DelvarWorld/react-router
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' // Each logical "route" has two components, one for // the sidebar and one for the main area. We want to // render both of them in different places when the // path matches the current URL. const routes = [ { path...
src/index.js
pauljnovak/react-brick-game
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import reduxStore from './stores' import App from './components/Main' let store = reduxStore({}); render( <Provider store={store}> <App/> </Provider>, document.getElementById('app') );
admin/client/App/elemental/ScreenReaderOnly/index.js
dryna/keystone-twoje-urodziny
import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; function ScreenReaderOnly ({ className, ...props }) { props.className = css(classes.srOnly, className); return <span {...props} />; }; const classes = StyleSheet.create({ srOnly: { border: 0, clip: 'rect(0,0,0,0)', height: ...
packages/@lyra/components/src/autocomplete/story.js
VegaPublish/vega-studio
import React from 'react' import {storiesOf, action} from 'part:@lyra/storybook' import Autocomplete from 'part:@lyra/components/autocomplete/default' import {range} from 'lodash' import Chance from 'chance' const chance = new Chance() const formStyle = {width: '30em', margin: '0 auto', paddingBottom: '20em'} storie...
src/index.js
joshpitzalis/path
import React from 'react'; import ReactDOM from 'react-dom'; import Routes from './Routes'; import './styles/root.css'; ReactDOM.render( <Routes /> , document.getElementById('root') )
lib/components/modifications-map/hop-layer.js
conveyal/analysis-ui
/** represent selected hops in an adjust-speed modification */ import React from 'react' import {GeoJSON, MapComponent} from 'react-leaflet' import lineSlice from '@turf/line-slice' import {point} from '@turf/helpers' import {v4 as uuidv4} from 'uuid' import colors from '../../constants/colors' import {getPatternsForM...
app/javascript/flavours/glitch/features/standalone/compose/index.js
vahnj/mastodon
import React from 'react'; import Composer from 'flavours/glitch/features/composer'; import NotificationsContainer from 'flavours/glitch/features/ui/containers/notifications_container'; import LoadingBarContainer from 'flavours/glitch/features/ui/containers/loading_bar_container'; import ModalContainer from 'flavours/g...
src/components/Counter/Counter.js
MityaDSCH/MityaDSCH.github.io
import React from 'react' import classes from './Counter.scss' export const Counter = (props) => ( <div> <h2 className={classes.counterContainer}> Counter: {' '} <span className={classes['counter--green']}> {props.counter} </span> </h2> <button className='btn btn-default' ...
geonode/contrib/monitoring/frontend/src/components/molecules/average-cpu/index.js
timlinux/geonode
import React from 'react'; import PropTypes from 'prop-types'; import CircularProgress from 'material-ui/CircularProgress'; import HoverPaper from '../../atoms/hover-paper'; import styles from './styles'; class AverageCPU extends React.Component { static propTypes = { cpu: PropTypes.number, } static contex...
views/ios/main.js
MervynFang/playwithreactnative
/** * @Author: MervynFang * @Date: 2016,May,01 18:08:02 * @Last modified by: Mervyn * @Last modified time: 2016,Aug,01 01:17:14 */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Alert, ScrollView, Image, Platform, ToastAndroid, TouchableHighlight, TouchableOpacity }...
ajax/libs/react-instantsearch/4.3.0-beta.0/Dom.js
sashberd/cdnjs
/*! ReactInstantSearch 4.3.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
src/scripts/components/app.js
brandly/ss15-queso
/** @jsx REACT.DOM */ import React from 'react'; import Header from './header'; import TrackList from './track-list'; import ControlPanel from './control-panel'; import Queso from '../models/queso'; import Track from '../models/track'; export default React.createClass({ queso: new Queso(), componentWillMount: fun...
examples/async/containers/Root.js
xiamidaxia/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
src/common/lint-warning/index.js
stylelint/stylelint-demo
import PropTypes from 'prop-types'; import React from 'react'; import SeverityLabel from '../severity-label'; import styles from './index.css'; export default function LintWarning({ line, column, endLine, endColumn, text, rule, severity }) { const [locLine, locColumn] = formatLocation(line, column, endLine, endColu...
example/index.android.js
joshjconlin/react-native-multi-slider-1
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import Example from './Example'; AppRegistry.registerComponent('example', () => Example);
app/static/scripts/user/emailForm/main.js
joshleeb/Tobio-PreRelease
import User from '../user.js'; import UserStore from '../store.js'; import userConsts from '../constants.js'; import React from 'react'; require('./styles.scss'); export default class UserEmailForm extends React.Component { constructor() { super(); this.state = { email: '', loading: false, ...
src/components/ImageInput.js
awentzonline/doppelchat
import React from 'react'; import Cropper from 'react-cropper'; import {Dialog, FlatButton, IconButton, Paper, TextField} from 'material-ui'; import FileInput from 'react-file-input'; import config from 'config'; import PeerActions from 'peers/PeerActions'; import CORSImage from 'sources/CORSImage'; import ChatUserSt...
frontend/app/components/ui/tooltip.js
LINKIWI/linkr
/* global setTimeout, clearInterval */ import React from 'react'; export const GRACE_TIMEOUT_INTERVAL = 150; /** * Component used to display tooltips over children elements when the user mouse-hovers over the * children elements. Contains logic to intelligently tolerate minor mouse-out events, so to not * collaps...
examples/js/manipulation/export-csv-column-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0*/ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; p...
src/components/rounded_toggle.js
bernardAdark/myCrib-doc
import React from 'react'; import PureRenderMixin from 'react-pure-render/mixin'; var RoundedToggle = React.createClass({ mixins: [PureRenderMixin], propTypes: { options: React.PropTypes.arrayOf(React.PropTypes.string).isRequired, active: React.PropTypes.string.isRequired, onChange: React.PropTypes.fun...
src/svg-icons/editor/format-bold.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatBold = (props) => ( <SvgIcon {...props}> <path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1...