path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/molecules/FileDetailTitleBlock/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link} from 'components'; import Paper from 'material-ui/Paper'; import Copyright from 'material-ui/svg-icons/action/copyright'; import {size, palette} from 'styled-theme'; const Wrapper = styled.div ` .fdtb-main{ padding: 30px; color: ${pal...
src/Score/ui/ScoreBox.js
techmsi/mental-health-app
import React, { Component } from 'react'; class ScoreBox extends Component { render () { const { score } = this.props; return <h3>{score} pts</h3>; } } export default ScoreBox;
fields/types/localfiles/LocalFilesField.js
Pop-Code/keystone
/* TODO: this file has been left as a reference for the new File type field. Some features here, including size formatting and icons, may be ported across. */ import _ from 'lodash'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import { Button, FormField, FormInput, FormNote } fr...
example/demo-next/components/Toggle.js
orangebook/FlyLab
import React from 'react'; export default class Toggle extends React.Component { constructor(props) { super(props); this.state = { isToggleOn: true }; this.handleClick = this.handleClick.bind(this); } handleClick() { this.setState(prevState => ({ isToggleOn: !prevState.isToggleOn, }));...
src/layouts/PageLayout/PageLayout.js
Dimitrievskislavcho/funfunfuncReduxCI
import React from 'react' import { IndexLink, Link } from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='container text-center'> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='page-layout__nav-ite...
App/Containers/ThemeScreen.js
oreofish/v2exClient
// @flow import React from 'react' import { View, ScrollView, Text, Image } from 'react-native' import { Colors, Fonts, Images } from '../Themes' import R from 'ramda' // Styles import styles from './Styles/ThemeScreenStyle' // Colors const colors = R.keys(Colors) // Font Types const types = R.keys(Fonts.type) // Fo...
newclient/scripts/components/user/date-control/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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 Lic...
app/components/ProgressBar/index.js
bsherrill480/website-asd-init
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
node_modules/react-icons/io/sad.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoSad = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.5 2.5c9.7 0 17.5 7.8 17.5 17.5s-7.8 17.5-17.5 17.5-17.5-7.8-17.5-17.5 7.8-17.5 17.5-17.5z m-8.7 20.3c0.2-0.4 0.3-0.9 1-1.2s1.1 0 1.5 0.3c0.3 0.2 0.8 0.2 1.2 0.1 0.2-0...
src/components/comment-list.js
Doko-Demo-Doa/CSClient-RN
import React, { Component } from 'react'; import { List } from 'native-base'; export class CommentList extends Component { render() { return <List />; } }
src/todo/TodoList.js
VasilyShelkov/My-First-Redux-To-Do
import React, { Component } from 'react'; import Todo from './Todo'; class TodoList extends Component { render() { return ( <ul> {this.props.todos.map(todo => <Todo key={todo.id} {...todo} onClick={() => this.props.onTodoClick(todo.id)} /> )} </ul> ); } } export default TodoLi...
src/js/components/icons/base/PlatformAruba.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...
src/page/common/devtools/DevTools.js
lcxfs1991/steamer-react
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 an...
examples/SingleTopicExample.js
ornl-sava/vis-react-components
// import React from 'react' import React from 'react' // import PropTypes from 'prop-types' import { format, scaleLinear, scaleOrdinal, schemeCategory20, select } from 'd3' import cloud from '../examples/data/for-hci/cloud2' import { HeatmapChart, HistogramChart } from '../src' import { linearOrdinalHeatmapData } from...
src/views/layouts/GridColumn.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import './GridColumn.css'; export const GridColumn = (props) => ( <div styleName={'column' + (props.columns || '')}> {props.children} </div> ); GridColumn.propTypes = { children: PropTypes.node, columns: PropTypes.number }; export default GridColum...
pages/game.js
turntwogg/esports-aggregator
import React from 'react'; import { useTheme } from '@turntwo/react-ui'; import Page from '../components/Page'; import PageHero from '../components/PageHero'; import PageHeader from '../components/PageHeader'; import PageContent from '../components/PageContent'; import ArticlesList from '../components/ArticlesList'; i...
src/components/Interactive/RadioList/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import RadioColumn from './RadioColumn' const Presenter = (props) => { const columns = [] const columnCount = 2 const maxPerColumn = Math.ceil(props.entries.length / columnCount) for (let i = 0; i < columnCount; i++) { columns.push( <Radi...
packages/react/src/components/TableBody.js
wq/wq.app
import React from 'react'; export default function TableBody(props) { return <tbody {...props} />; }
src/components/nav-helper.js
markpalfreeman/github-labels
import app from 'ampersand-app' import React from 'react' import localLinks from 'local-links' export default React.createClass({ displayName: 'NavHelper', onClick (event) { const pathName = localLinks.getLocalPathname(event) if (pathName) { event.preventDefault() app.router.history.navigate(...
packages/wix-style-react/src/Animate/Animate.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; /** Animate Component */ const getDelayValue = delay => { switch (typeof delay) { case 'string': return delay; case 'number': return `${delay}ms`; default: return undefined; } }; const Animate = React.forwardRef( ( ...
packages/lesswrong/components/async/editor-plugins/markdown-shortcuts-plugin/index.js
Discordius/Telescope
import React from 'react'; import { blockRenderMap as checkboxBlockRenderMap, CheckableListItem, CheckableListItemUtils, CHECKABLE_LIST_ITEM } from 'draft-js-checkable-list-item'; import { Map } from 'immutable'; import adjustBlockDepth from './modifiers/adjustBlockDepth'; import handleBlockType from './modifiers/h...
src/modules/xman/components/StatusMessage.js
devteamreims/4me.react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import Paper from 'material-ui/Paper'; class StatusMessage extends Component { render() { const { messages, style, } = this.props; const inside = _.map(messages, (message, index) => ...
algorithms/test_helper.js
bryankle/dungeoncrawler
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/Main.js
lorange/my-gallery-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDom from 'react-dom'; import ImgFigure from './ImgFigure'; import ControllerUnit from './ControllerUnit'; let imageDatas = require('../data/imageDatas.json'); /**为图片数据添加url值 * @param imageDatasArr * @returns ...
app/components/LoginForm/index.js
oualid-mazouz/fbchallenge
import React from 'react'; import {Row,Col,Button,Input,Preloader} from 'react-materialize'; import '../../styles/login/login.css'; class LoginForm extends React.Component { render(){ const {onSubmit,onEmailChange,onPasswordChange,errors,onEnterPressed,isLoading} = this.props; console.log('is...
packages/components/src/ObjectViewer/Table/Table.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import union from 'lodash/union'; import toFlat from '../toflat'; import JSONLike from '../JSONLike'; import theme from './Table.scss'; /** * @param {Object} data * @param {Bool} isFlat * @return {Array<String>} */...
tools/public-components.js
coderstudy/react-bootstrap
import React from 'react'; import * as index from '../src/index'; let components = []; Object.keys(index).forEach(function (item) { if (index[item] instanceof React.Component.constructor) { components.push(item); } }); export default components;
client/modules/App/__tests__/Components/Footer.spec.js
codejunky/neda
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
src/components/admin/locations/zoneView.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { Col, Row, Input } from 'antd'; import SearchInput from './searchInput'; import CoordinateInput from './coordinateInput'; const MAX_LENGTH = 30 export default class ZoneView extends Component { handleInputChange(field, e) { var zone = Object.assign({}, this.pro...
react-redux-tutorial/03-navigating-with-link/modules/About.js
react-scott/react-learn
/** * Created by scott on 7/10/16. */ import React from 'react' export default React.createClass({ render() { return <div>About</div> } })
src/js/components/navigation.js
Wildhoney/earlytwenties.co.uk
import 'gsap'; import React from 'react'; import {findDOMNode} from 'react-dom'; import {fromEvent} from 'baconjs'; export default class extends React.Component { /** * @method componentDidMount * @return {void} */ componentDidMount() { } /** * @method render * @return {XML}...
src/components/Content/Content.js
macdja38/pvpsite
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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-typ...
src/controls/ZoomControl.js
gribnoysup/react-yandex-maps
import React from 'react'; import PropTypes from 'prop-types'; import { withParentContext } from '../Context'; import withYMaps from '../withYMaps'; import { BaseControl } from './BaseControl'; export function ZoomControl(props) { return <BaseControl {...props} name="ZoomControl" />; } if (process.env.NODE_ENV !=...
src/main/app/components/core/layout/Main.js
reactor/reactor-pylon
import React from 'react'; import Status from "./../status/Status" class Main extends React.Component { render() { return ( <div id="application"> <Status></Status> {this.props.children} </div> ); } } export default Main;
templates/rubix/laravel/laravel-example/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...
expo/CensoredStamp.js
redpandatronicsuk/react-native-censored
import React from 'react' import { Svg } from 'expo' import { censoredStampPath } from '../data/censored-stamp-path' export default class CensoredStamp extends React.Component { render() { const { height = 65.5, width = 339.4, style, scale = 1, fill = '#BE1622' } = this.props return ( <Svg style={sty...
docs/pages/premium-themes/paperbase/index.js
lgollut/material-ui
import React from 'react'; import AppTheme from 'docs/src/modules/components/AppTheme'; import Paperbase from 'docs/src/pages/premium-themes/paperbase/Paperbase'; export default function Page() { return ( <AppTheme title="Paperbase theme - Material-UI" description={`A page that mimics Firebase. ...
packages/react/src/components/molecules/HeaderSearch/index.js
massgov/mayflower
/** * HeaderSearch module. * @module @massds/mayflower-react/HeaderSearch * @requires module:@massds/mayflower-assets/scss/01-atoms/button-with-icon * @requires module:@massds/mayflower-assets/scss/01-atoms/button-search * @requires module:@massds/mayflower-assets/scss/01-atoms/input-typeahead * @requires module:...
src/components/Main.js
LonelyObserver/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //获取图片相关的数据 let imageDatas = require('../data/imageDatas.json'); //将图片名信息转成图片URL路径信息 imageDatas = imageDatas.map(x => { x.imgURL = require('../images/' + x.fileName); return x; }); /...
msrc/app.js
change-soft8/cs-project-antd
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router } from 'react-router' import withExampleBasename from '../cfg/withExampleBasename' import routes from './config/routes' render(( <Router history={withExampleBasename(browserHistory)} routes={routes} /> ), document...
developers.diem.com/src/@libra-opensource/diem-docusaurus-components/src/Footer/SocialLinks/index.js
libra/libra
import React from 'react'; import Facebook from '../img/facebook.svg'; import LinkedIn from '../img/linked-in.svg'; import Twitter from '../img/twitter.svg'; import Instagram from '../img/instagram.svg'; import Github from '../img/github.svg'; import styles from './styles.module.css'; const Link = ({to, icon}) => ( ...
shared/routes.js
mrjones91/MERN.io
import { Route, IndexRoute } from 'react-router'; import React from 'react'; import App from './container/App'; import PostContainer from './container/PostContainer/PostContainer'; import PostDetailView from './container/PostDetailView/PostDetailView'; const routes = ( <Route path="/" component={App} > <IndexRou...
src/js/components/ListItem.js
nickjvm/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import classnames from 'classnames'; import Box from './Box'; import Props from '../utils/Props'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.LIST_ITEM; export defau...
src/components/app.js
ravindraranwala/countdowntimerapp
import React, { Component } from 'react'; import TimerList from '../containers/timer_list.js'; import TimerNew from '../containers/timer_new.js'; export default class App extends Component { render() { return ( <div className="row"> <div className="col-md-2"> <TimerNew /> </div>...
index.js
ap13p/simple-todo
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
exercise-05-solution/src/components/PokemonCard.js
learnapollo/pokedex-react
import React from 'react' import { propType } from 'graphql-anywhere' import gql from 'graphql-tag' import styled from 'styled-components' const Button = styled.div` color: #A3A3A3; height: 48px; line-height: 1; font-size: 18px; padding: 15px 30px; cursor: pointer; font-weight: 300; border-radius: 4px ...
src/components/TextInput/TextInput-story.js
jzhang300/carbon-components-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import TextInput from '../TextInput'; const TextInputProps = { className: 'some-class', id: 'test2', labelText: 'Text Input label', onClick: action('onClick'), onChange: action('onChang...
src/components/settings/SetRates.js
whphhg/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { join } from 'path' import moment from 'moment' /** Ant Design */ import Button from 'antd/lib/button' import Switch from 'antd/lib/switch' import Tooltip from 'antd/lib/tooltip' /** Component */ ...
powerauth-webflow/src/main/js/components/bankAccountSelect.js
lime-company/powerauth-webflow
/* * PowerAuth Web Flow and related software components * Copyright (C) 2017 Wultra s.r.o. * * This program 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, or * (...
vertex_ui/src/components/Divider/Divider.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import classNames from 'classnames'; import _ from 'underscore'; import classes from './Divider.scss'; class Divider extends React.Component { static propTypes = { textPosition: PropTypes.string, children: PropTypes.oneOfType([PropTypes.stri...
src/containers/Articles/ArticlePage/ArticlePage.js
ReactPoland/react-community
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import _find from 'lodash/find'; import _isEmpty from 'lodash/isEmpty'; import { slate } from 'utils'; import permission from 'utils/privileges'; // STORE impor...
app/config/routes.js
StuartPearlman/github-battle
import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import Home from '../components/Home'; import Main from '../components/Main'; import ConfirmBattleContainer from '../containers/ConfirmBattleContainer'; import PromptContainer from '../containers/PromptContainer'; import R...
docs/app/Examples/modules/Checkbox/States/CheckboxExampleReadOnly.js
shengnian/shengnian-ui-react
import React from 'react' import { Checkbox } from 'shengnian-ui-react' const CheckboxExampleReadOnly = () => ( <Checkbox label='This checkbox is read-only' readOnly /> ) export default CheckboxExampleReadOnly
react/features/conference/components/native/NavigationBar.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { SafeAreaView, Text, View } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import { getConferenceName } from '../../../base/conference'; import { getFeatureFlag, MEETING_NAME_ENABLED } from '../../../base/flags'; import { conn...
frontend/src/views/Post.js
felipeskroski/readable
import React, { Component } from 'react'; import {Link} from 'react-router-dom' import { connect } from 'react-redux' import { fetchPost, fetchDeletePost, fetchComments, fetchPosts, fetchNewComment } from '../actions' import PostItem from '../components/PostItem' import CommentItem from '../components/CommentItem' impo...
src/components/Chatbot/VoiceRecognition.js
jainvabhi/PWD
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class VoiceRecognition extends Component { constructor (props) { super(props); const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition || window.mozSpeechRecognition || wind...
Paths/React/05.Building Scalable React Apps/6-react-boilerplate-building-scalable-apps-m6-exercise-files/After/app/containers/LanguageProvider/index.js
phiratio/Pluralsight-materials
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/index.js
matthewbadeau/OSHW-Logo-Autogen
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/frontend/welcome/recently-opened-files/components/RecentFilesList.js
plotify/plotify
import { CSSTransition, TransitionGroup } from 'react-transition-group' import List from 'material-ui/List' import PropTypes from 'prop-types' import React from 'react' import RecentFileListItem from './RecentFileListItem' import { withStyles } from 'material-ui/styles' const RecentFilesList = (props) => { const { ...
lib/index.js
ebias/react-native-photo-browser
import React from 'react'; import PropTypes from 'prop-types'; import { Animated, Dimensions, ListView, View, Platform, StyleSheet, ViewPropTypes } from 'react-native'; import Constants from './constants'; import { TopBar } from './bar'; import GridContainer from './GridContainer'; import FullScreenCont...
app/jsx/assignments_2/teacher/components/ConfirmDialog.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
app/components/PopupWrapper.js
altany/react-new-tab-chrome-extension
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { closePopup } from '../actions/popup'; @connect( null, dispatch => ({ closePopup: bindActionCreators(c...
src/SnackBar/SnackBar.js
collegepulse/material-react-components
import React from 'react'; import ReactTransitionGroup from 'react-transition-group/TransitionGroup'; class SnackBar extends React.Component { constructor(props) { super(props); this.queue = this.queue.bind(this); this.dequeue = this.dequeue.bind(this); this.handleTransition = this.handleTransition.b...
app/scripts/footer.js
winsan-zhang/website-test
import React from 'react'; import ReactDOM from 'react-dom'; import '../styles/footer.css'; class Footer extends React.Component{ render(){ return ( <footer className="footer"> <div className="container"> <div className="footer-wrap"> ...
srcjs/components/BookPanel.js
spapas/react-tutorial
import React from 'react' import { connect } from 'react-redux' import Table from './Table' import { loadBooks, changePage, toggleSortingAndLoadBooks, changeSearchAndLoadBooks } from '../actions' import PagingPanel from './PagingPanel' import BookSearchPanel from './BookSearchPanel' import { Link } from 'react-router' ...
clients/packages/admin-client/src/components/share/twitter-share-button.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage, injectIntl, intlShape } from 'react-intl' const TwitterShareButton = ({ href, text, intl }) => { const handleClick = () => { // Optional Query params // via: twitter user to associate with the tweet // related: additi...
src/Footer.js
code-for-nashville/inclucivics
import React from 'react' import mhrcLogo from './img/metro-human-rights-commision-logo.png' import './Footer.css' export default (props) => ( <footer className='col-xs-12'> <div className='container'> Brought to you by <a rel='noopener noreferrer' target='_blank' href='http://www.codefornashville.org'> ...
app/javascript/mastodon/components/permalink.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
src/docs/examples/TextInputCSSModules/ExampleError.js
nreoch25/react-package-dev
import React from 'react'; import TextInputCSSModules from 'react-package-dev/TextInputCSSModules'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInputCSSModules htmlId="example-optional" label="First Name" na...
node_modules/react-bootstrap/es/InputGroup.js
caughtclean/but-thats-wrong-blog
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/components/packages/toolbar/Toolbar.js
rvpanoz/luna
import React from 'react'; import cn from 'classnames'; import PropTypes from 'prop-types'; import { useState, useCallback } from 'react'; import { useDispatch } from 'redux-react-hook'; import { withStyles } from '@material-ui/core/styles'; import Toolbar from '@material-ui/core/Toolbar'; import Typography from '@mate...
WeatherApp/src/containers/HomeContainer.js
luongthomas/React-Portfolio
import React, { Component } from 'react'; import Home from '../components/Home'; class HomeContainer extends Component { render() { return ( <Home /> ); } }; export default HomeContainer;
frontend/src/System/Updates/UpdatesConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import * as commandNames from 'Commands/commandNames'; import { executeCommand } from 'Store/Actions/commandActions'; import { fetchGeneralSettings } from 'Stor...
stories/core/Counter.js
rentpath/react-ui
import React from 'react' import { Button, Counter } from 'react-ui-core/src' const count = 3 const decrementOperator = (<span>Remove</span>) const incrementOperator = (<span>Add</span>) const onClick = currentCount => { console.log(`current count: ${currentCount}`) // eslint-disable-line no-console } export cons...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
vanloswang/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAp...
src/svg-icons/communication/chat-bubble-outline.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubbleOutline = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/> </SvgIcon> ); CommunicationChatBubbleOutl...
src/views/clause/ClausePanel.js
bostontrader/senmaker
// @flow import React from 'react' import ClauseTable from './ClauseTable' import ClauseAEForm from './addedit/ClauseAEForm' import ClauseActions from '../../data/clause/ClauseActions' /* The ClausePanel is responsible for displaying everything about our list of clause. Such the table of Clause, and the add or ed...
clients/privacy/components/FieldsPrivacySettings.js
CalderaWP/Caldera-Forms
import React from 'react'; import PropTypes from "prop-types"; import {FieldPrivacySettings} from "./FieldPrivacySettings"; /** * All field-related privacy settings for a form * * @since 1.7.0 * * @param props * @returns {*} * @constructor */ export const FieldsPrivacySettings = (props) => { return ( ...
blueocean-material-icons/src/js/components/svg-icons/hardware/keyboard-arrow-right.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareKeyboardArrowRight = (props) => ( <SvgIcon {...props}> <path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowRight.displayName = 'HardwareKeyboardArrowRight'; HardwareKeyboardArrowRight.muiNa...
src/routes/Tournaments/components/TeamList.js
akossebestyen/getrecd-client-redux
import React from 'react'; const TeamList = ({teams}) => { return ( <div> <ul> {teams.map((t,i) => { return <li key={t.id}>{t.teamName}</li> })} </ul> </div> ); }; export default TeamList;
node_modules/material-ui/src/styles/theme-decorator.js
aykutyaman/meteor1.3-react-flowrouter-demo
import React from 'react'; export default (customTheme) => { return function(Component) { return React.createClass({ childContextTypes: { muiTheme: React.PropTypes.object, }, getChildContext() { return { muiTheme: customTheme, }; }, render() { ...
src/parser/shared/modules/features/Checklist/PreparationRule.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans } from '@lingui/macro'; import Rule from './Rule'; import Requirement from './Requirement'; class PreparationRule extends React.PureComponent { static propTypes = { children: PropTypes.node, thresholds: PropTypes.object.isRequired...
docs/app/Examples/elements/Segment/Groups/SegmentExampleNestedSegments.js
ben174/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleNestedSegments = () => ( <Segment.Group> <Segment>Top</Segment> <Segment.Group> <Segment>Nested Top</Segment> <Segment>Nested Middle</Segment> <Segment>Nested Bottom</Segment> </Segment.Group> ...
admin/src/components/SecondaryNavigation.js
BlakeRxxk/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; import { Container } from 'elemental'; var SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { className: React.PropTypes.string, children: React.PropTypes.node.isRequired, href: ...
file_manager/static/file_manager/js/src/modals/TreeViewModal.js
avignat/OCP
import Modal from 'react-modal'; import React from 'react'; import $ from 'jquery'; import { resetStyles } from 'modals/resetStyles'; const jsTree = 'jsTree'; export default class TreeViewModal extends React.Component { constructor(props) { super(props); this.state = {modalIsOpen: false}; } ...
src/components/App.js
codex49/icon-generator
import React, { Component } from 'react'; import drawSvgIcons from '../../lib/draw-svg'; import AppAPI from '../main/mocks/appAPI'; import Header from './Header'; import Icons from './Icons'; import Board from './Board'; import Backgrounds from './Backgrounds'; import Footer from './Footer'; import Download from './Do...
src/app/component/close-button/close-button.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import propTypes from '../../prop-types' import cn from '../../lib/class-names' import Icon from '../icon' import closeIcon from '../../../asset/icon/close.svg' const CloseButton = ({classNames, size = 'default', invert = false, onClick = () => {}}) => ( ...
client/reactapp/components/LoginPage.js
LucaColonnello/loopback-example-react
import React from 'react'; export default class LoginPage extends React.Component { static contextTypes = { router: React.PropTypes.func } constructor ( props, context ) { super( props, context ); this.props = props; this.state = { }; this.context = context; } componentWillReceiveProps ( nextProps ...
src/svg-icons/image/photo-size-select-small.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectSmall = (props) => ( <SvgIcon {...props}> <path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H...
packages/xo-web/src/common/action-row-button/index.js
vatesfr/xo-web
import React from 'react' import ActionButton from '../action-button' import styles from './index.css' const ActionRowButton = props => <ActionButton {...props} className={styles.button} size='small' /> export { ActionRowButton as default }
app/components/Footer/index.js
patrykomiotek/seo-monitor-front
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import messages from './messages'; function Footer() { return ( <div> <section> <FormattedMessage {...messages.licenseMessage} /> </section> <section> <FormattedMessage ...
src/index.js
JRiepe/reactblog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import reducers from './reducers'; import routes from './routes'; import ReduxPromise from 'redux-promise'; ...
docs/src/PageFooter.js
pandoraui/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className="bs-docs-footer" role="contentinfo"> <div c...
src/svg-icons/action/assignment.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignment = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-...
webpack/components/surveys/SurveyShow.js
CDCgov/SDP-Vocabulary-Service
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { hashHistory, Link } from 'react-router'; import { Modal, Button, Row, Col } from 'react-bootstrap'; import Linkify from 'react-linkify'; import Pagination from 'rc-pagination'; import parse from 'date-fns/parse'; import format from '...
src/components/tree/Node.js
sanjay1909/WeaveReact
import React from 'react'; import ReactDOM from 'react-dom'; import ComponentManager from "../../ComponentManager"; import AbstractComponent from "../../AbstractComponent"; import Style from "../../utils/Style"; import NodeConfig from "./NodeConfig"; class Node extends AbstractComponent { constructor(props) ...
js/components/icon/state.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Text, Body, Left, Right, Grid, Row, Col, Icon } from 'native-base'; import styles f...
src/Option.js
Craga89/react-select
import React from 'react'; import classNames from 'classnames'; const Option = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, // className (based on mouse position) isDisabled: React.PropTypes.bool, // the option is disabled isFocus...
src/components/Header/Header.js
attdona/bota
import React from 'react' import { Link } from 'react-router' import IconMenu from 'material-ui/IconMenu' import IconButton from 'material-ui/IconButton' import FontIcon from 'material-ui/FontIcon' import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more' import MenuItem from 'material-ui/...
examples/create-react-app/src/pages/index.js
dsslimshaddy/material-ui
// @flow import React, { Component } from 'react'; import Button from 'material-ui/Button'; import Dialog, { DialogTitle, DialogContent, DialogContentText, DialogActions, } from 'material-ui/Dialog'; import Typography from 'material-ui/Typography'; import withRoot from '../components/withRoot'; const styles =...