path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/action/pan-tool.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPanTool = (props) => ( <SvgIcon {...props}> <path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4...
src/svg-icons/action/account-circle.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1....
src/components/pages/grocerylist/myGrocerylists.js
emilmannfeldt/ettkilomjol
import React, { Component } from 'react'; import './grocerylist.css'; import TextField from '@material-ui/core/TextField'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'; import DialogTitle from '@material-ui/core...
template/components/Outside.js
HumbleSpark/sambell
import React from 'react'; import { Link } from 'react-router-dom'; export default () => <div>{`I can't let you go outside, Sam.`} <Link to="/">Go Home</Link>.</div>
client/modules/messaging/components/.stories/conversation_participants.js
StorytellerCZ/Socialize-starter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import ConversationParticipants from '../conversation_participants.jsx'; storiesOf('messaging.ConversationParticipants', module) .add('default view', () => { return ( <Convers...
Realization/frontend/czechidm-core/src/content/audit/event/EntityEventTable.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import _ from 'lodash'; import moment from 'moment'; // import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import * as Utils from '../../../utils'; import { En...
src/components/ui/Spacer.js
yursky/recommend
/** * Spacer * <Spacer size={10} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; /* Component ==================================================================== */ co...
src/routes/index.js
oldsaratov/postcards-spa
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to file...
react/features/app/components/AbstractApp.js
parisjulien/arkadin-jitsimeet
import React, { Component } from 'react'; import { I18nextProvider } from 'react-i18next'; import { Provider } from 'react-redux'; import { compose, createStore } from 'redux'; import Thunk from 'redux-thunk'; import { i18next } from '../../base/i18n'; import { localParticipantJoined, localParticipantLeft } fr...
src/components/posts_show.js
brettcelestre/react-blog-posts
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions/index'; class PostsShow extends Component { componentDidMount() { // Pulls ':id' off of the URL const { id } = this.props.match.params;...
frontend/src/components/dashboard/agencyDashboard/partnerDecisions/partnerDecisions.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import Paper from 'material-ui/Paper'; import Button from 'material-ui/Button'; import Grid from 'material-ui/Grid'; import Typography from 'material-ui/Typography'; import { withStyles } from 'material-ui/styles'; import { Link } from 'react-router'; impor...
public/container/App/index.js
nikolenkoanton92/boilerplate
import React from 'react' import Navbar from '../../component/Navbar/index.jsx!' import Footer from '../../component/Footer/index.jsx!' class App extends React.Component { render() { return ( <div> <Navbar /> {this.props.children} <Footer /> </div> ) } } export defa...
src/app/App.js
whiskyoo/dva-scaffolding
import React from 'react'; import './App.less'; import styles from './App.modules.less'; class App extends React.Component { render() { return ( <div className="app"> <h1 className={styles.title}>dva-scaffolding</h1> <p>Welcome to index ...^__^...</p> </div> ); } } export defa...
src/components/HeroComponent.js
chiefwhitecloud/running-man-frontend
import React from 'react'; export default function HeroComponent() { return ( <div style={{height:"450px", backgroundColor:"#292c2f", color:"#ffffff", position:"relative"}}> <div style={{position:"absolute", left:"50%", top:"50%", transform: "translateX(-50%) translateY(-50%)"}}> <h1 style={{textAl...
fields/types/relationship/RelationshipFilter.js
suryagh/keystone
import async from 'async'; import React from 'react'; import xhr from 'xhr'; import { FormField, FormInput, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/components/Popout/PopoutList'; const INVERTED_OPTIONS = [ { label: 'Linked To', value: false }, { label: 'NOT Linked To', va...
Website/src/components/App.js
ameyjain/WallE-
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> {this.props.children} </div> ); } }
src/modules/comments/components/CommentWorkSelect/CommentWorkSelect.js
CtrHellenicStudies/Commentary
import React from 'react'; import './CommentWorkSelect.css'; const CommentWorkSelect = props => { return ( <div className="commentWorkSelect"> </div> ); } export default CommentWorkSelect;
app/components/Form/Dropdown.js
pacmessica/hackathon-frontend
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Form.scss'; export const DropDown = ({ label, options, value, onChange }) => ( <div className={styles.field}> <div className={styles.dropDown}> <label>{label}</label> <select value={value} onChange={(...
src/svg-icons/hardware/keyboard-arrow-right.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowRight = (props) => ( <SvgIcon {...props}> <path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowRight = pure(HardwareKeyboardArrowRight); Hardwar...
lib/Welcome-Search.js
robbiegreiner/weathrly
import React from 'react'; import Controls from './Controls.js'; import AutoComplete from './autocomplete/AutoComplete.js'; const WelcomeSearch = ({ setAppState, getCurrentWeather, searchValue, cityTrie, suggestionArray, }) => { return ( <div className="welcome-screen"> <h1>welcome to good ...
app/react-icons/fa/calendar.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCalendar extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m4.4 37.1h6.4v-6.4h-6.4v6.4z m7.8 0h7.2v-6.4h-7.2v6.4z m-7.8-7.8h6.4v-7.2h-...
app/assets/javascripts/src/components/sharedComponents/InputErrorMessage.js
talum/creamery
import React from 'react' const InputErrorMessage = (props) => { if (props.isVisible) { return ( <div className="module"> <div className="heading heading--color-pink"> { props.message} </div> </div> ) } else { return (<div></div>) } } export default InputErrorM...
website-prototyping-tools/RelayPlayground.js
gabelevi/relay
/** * Copyright (c) 2013-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. */ /* eslint-...
demo/src/index.js
petermoresi/react-table-for-bootstrap
/** * Copyright (c) 2015, Peter W Moresi * */ import React from 'react'; import MyApp from './components/MyApp.js' React.render( <div className="container main"> <h1>Crayola Colors</h1> <MyApp /> </div>, document.body );
app/components/Fields/Group/GroupTile.js
JasonEtco/flintcms
/* eslint-disable jsx-a11y/no-static-element-interactions */ import React from 'react' import PropTypes from 'prop-types' import DeleteIcon from 'components/DeleteIcon' import store from 'utils/store' export default function GroupTile ({ onClick, label, handle, isActive, onDelete }) { const { dispatch } = store r...
src/model/Figure/Footman.js
bigamasta/chess-challenge
/** * Created by BigaMasta on 3/8/16. */ import Figure from './Figure'; import FigureColors from '../../constants/FigureColors'; import React from 'react'; import Positioner from '../../utils/Positioner'; /** * The Footman object that encapsulates all footman specific logic. */ export default class Footman extends ...
src/svg-icons/action/print.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPrint = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/> </...
src/common/components/Heading.js
TheoMer/este
// @flow import type { TextProps } from './Text'; import type { Theme } from '../themes/types'; import Text from './Text'; import React from 'react'; type HeadingContext = { theme: Theme, }; const Heading = (props: TextProps, { theme }: HeadingContext) => { const { bold = true, fontFamily = theme.heading....
src/beforeRouteReadyRender.js
foysavas/react-route-ready
import React from 'react'; import PropTypes from 'prop-types'; export default function beforeRouteReadyRender(renderer) { return (Component) => { Component.contextTypes = Object.assign(Component.contextTypes, { reactRouteReadyLoading: PropTypes.bool.isRequired, reactRouteReadyLoaded: PropTypes.bool.i...
src/svg-icons/image/blur-off.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
docs/src/examples/views/Feed/Content/FeedExampleExtraImages.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleAdditionalInformation = () => ( <Feed> <Feed.Event> <Feed.Label image='/images/avatar/small/helen.jpg' /> <Feed.Content> <Feed.Date>3 days ago</Feed.Date> <Feed.Summary> <a>Helen Troy</a> add...
src/components/App/App.js
OSBI/saiku-react-starter
/** * Copyright 2017 OSBI Ltd * * 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 ...
client/app/components/App.js
RichHomies/ReactorMaker
import React from 'react'; import Navbar from './Navbar'; import Footer from './Footer'; var App = React.createClass({ render: function() { return ( <div> <Navbar /> {this.props.children} <Footer /> </div> ); } }) export default App;
src/client/components/SectionHeaderWidget/SectionHeaderWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { SectionHeaderWidget as appConfig } from '../../config/appConfig' const SectionHeaderWidget = ({ title = appConfig.title, subTitle = appConfig.subTitle }) => { return ( <div className="section-header text-center"> <h2>{title}</h2> {s...
src/features/home/ColResizer.js
supnate/command-pad
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import classnames from 'classnames'; import { setColWidth } from './redux/actions'; export class ColResizer extends Component { static propTypes = { col...
src/app/pin/components/PinList.js
brandondewitt/react-pinterest-clone
import React, { Component } from 'react'; import { Link } from 'react-router'; import { Table } from 'react-bootstrap'; import { PinDetail } from 'pin/components/PinDetail'; export class PinList extends Component { constructor() { super(); this.state = {}; } render() { const pins = this.props.pins.ma...
demo/Button.js
szchenghuang/react-mdui
'use strict'; //############################################################################# // Stylesheets. //############################################################################# //############################################################################# // Library includes. //#########################...
src/svg-icons/image/photo-library.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoLibrary = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>...
react/features/settings/components/web/audio/AudioSettingsContent.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../../base/i18n'; import { IconMicrophoneHollow, IconVolumeEmpty } from '../../../../base/icons'; import JitsiMeetJS from '../../../../base/lib-jitsi-meet'; import { equals } from '../../../../base/redux'; import { createLocalAudioTra...
src/Components/Form/Form.js
PaulPourtout/datathon-ajis
import React, { Component } from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import Paper from 'material-ui/Paper'; const handicapType = [ <MenuItem key={1} value={1} primaryText="Handicap auditif" />, <MenuItem key={2} value={2} primaryText="Handicap me...
src/parser/warlock/destruction/CONFIG.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Chizu } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a ...
src/svg-icons/content/filter-list.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFilterList = (props) => ( <SvgIcon {...props}> <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/> </SvgIcon> ); ContentFilterList = pure(ContentFilterList); ContentFilterList.displayName = 'Con...
app/containers/RecipesContainers.js
Right-Men/Birdman
import React from 'react'; import {connect} from 'react-redux'; import Recipe from '../pages/Recipe'; class RecipesContainers extends React.Component { render() { return ( <Recipe {...this.props} /> ) } } export default connect((state) => { const { Recipe } = state; retu...
OrgView.js
dmrd/org_squared
let Org = require('./org/org'); let Parser = require('./org/org_parser'); let Moment = require('moment'); import { Router } from './Router' import { withNavigation, NavigationActions, StackNavigation, DrawerNavigation, DrawerNavigationItem, } from '@exponent/ex-navigation'; import { StyleSheet, } from 'rea...
actor-apps/app-web/src/app/components/SidebarSection.react.js
nguyenhongson03/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
examples/todomvc/containers/App.js
gogobook/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider redux={...
src/parser/paladin/protection/modules/features/ShieldOfTheRighteous.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatPercentage, formatThousands } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable...
react-flux-mui/js/material-ui/src/svg-icons/editor/insert-comment.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertComment = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); EditorInsertCom...
src/scripts/components/dropdown/Dropdown.component.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at ...
src/components/Home/HomePage.js
AKaudinov/ReactReduxStarterKit
import React from 'react'; //There are some limitations to hot-reloading, stateless function components don't //hot-reload unless they have a parent class based component //which is why HomePage is a class based component class HomePage extends React.Component { render() { return ( <div class...
src/index.js
LucasCaixeta/ReduxSimpleStarter_2
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
src/components/App.js
mleonard87/chapp-client
import { connect } from 'react-redux'; import { pushState } from 'redux-router'; import React from 'react'; import {fromJS, List, Map} from 'immutable'; export const App = React.createClass({ render: function() { return this.props.children; } }); connect( // Use a selector to subscribe to state state => (...
examples/counter/containers/CounterApp.js
gxbsst/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp extend...
Examples/UIExplorer/js/ActivityIndicatorExample.js
aaron-goshine/react-native
/** * Copyright (c) 2013-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. * * The examp...
app/javascript/mastodon/components/video_player.js
pfm-eyesightjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; const messages = defineMessages({ toggle_...
app/containers/Profile/ConfirmModal.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import { toggleModal, enableSubmitForm, disableSubmitForm, confirmCurrentPwd } from '../../actions'; import { Modal } from ...
generators/react/templates/src/services/i18n/create-component-with-intl.js
theodo/theodo-stack-generator
// @flow import React from 'react'; import renderer from 'react-test-renderer'; import { IntlProvider } from 'react-intl'; import frMessages from 'translations/fr.json'; import { flattenMessages } from './intl'; type IntlProps = { locale: string, messages: { [string]: string }, }; const locales = { fr: flatten...
ui/src/stories/Spinner.stories.js
damianmoore/photo-manager
import React from 'react' import Spinner from '../components/Spinner' export default { title: 'Photonix/Misc/Spinner', component: Spinner, } const Template = (args) => ( <div style={{ width: '100%', height: '100%', position: 'absolute', top: 0, left: 0, display: 'flex', ...
src/icons/MusicNote.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class MusicNote extends React.Component { render() { if(this.props.bare) { return <g> <path d="M426,32.1c-2.2,0-5.1,0.6-5.1,0.6L203.3,65.9C189.5,69.6,177,83,176,97.5V384h-61v-0.1c-28,0-51.1,20-51.1,48 s23.1,48,51....
src/transition/app.js
SodhanaLibrary/react-examples
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; class App extends React.Component { constructor(props) { super(props); this.state = { items: ['Item 1...', 'Item 2...', 'Item 3...', 'Item 4...'] } this.handleAdd = this.handleAdd....
app/components/Logo/index.js
acebusters/ab-web
import React from 'react'; import styled from 'styled-components'; import { baseColor, white, } from '../../variables'; export const LogoContainer = styled.div` width: 40px; height: 40px; box-sizing: content-box; `; export const NameContainer = styled.div` font-size: 20px; font-weight: bold; `; // esl...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
luwei2012/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
Rosa_Madeira/Revendedor/src/components/clientes/ClienteVendaLista.js
victorditadi/IQApp
import React, { Component } from 'react'; import { ScrollView, RefreshControl, ListView } from 'react-native'; import axios from 'axios'; import _ from 'lodash'; import { ButtonHome } from '../common'; import { connect } from 'react-redux'; import { fetch_cliente_venda } from '../../actions'; import ClienteVendaItem fr...
src/icons/SocialSnapchatOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialSnapchatOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256.283,47.553c70.693,0,128,54.682,118,128.931c-2.072,15.388-3.422,31.483-4.26,44.759c0,0,2.402,4.253...
About.js
ArmWeb/bet_practice
import React from 'react'; export default class About extends React.Component{ render(){ return (<div> This is about page </div>) } }
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDrop.js
Yaska/keystone
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { Sortable } from './ItemsTableRow'; import DropZone from './ItemsTableDragDropZone'; var ItemsTableDragDrop = React.createClass({ displayName: 'ItemsTableDragDrop', propTypes: { colum...
src/svg-icons/action/tab-unselected.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTabUnselected = (props) => ( <SvgIcon {...props}> <path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v...
app/components/App.js
JoaoCnh/picto-pc
import React, { Component } from 'react'; import Nav from './layout/Nav'; import BubbleWrap from './common/BubbleWrap'; import AuthAPI from '../api/auth'; import batteryUtils from '../utils/battery'; export default class App extends Component { _logout() { this.props.logout(); return this.props.p...
packages/material-ui-icons/src/PlayCircleOutline.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PlayCircleOutline = props => <SvgIcon {...props}> <path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ...
app/components/ButtonAdd/index.js
Ratholien/JobReact
import React from 'react'; import PropTypes from 'prop-types'; import { FlatButton } from 'material-ui'; import ActionAndroid from 'material-ui/svg-icons/content/add'; const ButtonAdd = ({ showForm }) => ( <FlatButton icon={<ActionAndroid />} onClick={showForm} /> ); ButtonAdd.propTypes = { showForm: PropTypes.fu...
src/encoded/static/components/item-pages/QualityMetricView.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import _ from 'underscore'; import memoize from 'memoize-one'; import Collapse from 'react-bootstrap/esm/Collapse'; import { console, object, schemaTransforms, valueTransforms } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import DefaultItemView, { WrapInCo...
src/svg-icons/social/cake.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
src/components/Widgets/DateControl.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import DateTime from 'react-datetime'; export default class DateControl extends React.Component { componentDidMount() { if (!this.props.value) { this.props.onChange(new Date()); } } handleChange = (datetime) => { this.props.onChang...
examples/todomvc/containers/Root.js
yang-wei/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
src/containers/search_bar.js
johnliu8365/Learn_Redux_Weather-Forecast-App
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChange = this.onInputChang...
app/javascript/mastodon/features/compose/components/upload_button.js
Craftodon/Craftodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/svg-icons/image/leak-add.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLeakAdd = (props) => ( <SvgIcon {...props}> <path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-...
src/svg-icons/image/filter-1.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter1 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> ...
src/main/resources/js/views/WelcomeView.js
fnerdrum/hendelse-datomic
import React from 'react'; import { Link } from 'react-router'; class WelcomeView extends React.Component { constructor(props) { super(props); } render() { return ( <div className="welcome-view"> <p>For enkel visning og søk i hendelser i Henvendelse.</p> ...
docs/src/app/components/pages/components/CircularProgress/Page.js
mtsandeep/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import circleProgressReadmeText from './README'; import circleProgressCode from ...
demo-app/src/components/ProductRow.js
nol13/fuzzball.js
import React from 'react'; import PropTypes from 'prop-types'; import styles from '../styles/productRow.module.scss'; const ProductRow = ({ data }) => <div> <p className={styles.prodrow}>{data[0].name}, Score: {data[1]} </p> </div>; ProductRow.propTypes = { data: PropTypes.array }; export default...
src/components/Widget.js
dfilipidisz/overwolf-hots-talents
import React from 'react'; import cn from 'classnames'; import AppPopup from './AppPopup'; import { Motion, spring } from 'react-motion'; class MinimizedWidget extends React.Component { render () { const { closeWidget, openMain, openDetails, isDetailsOpen, openOn, placement } = this.props; const toggleProps...
src/skeletons/firstIter/layout/PageHeading.js
WapGeaR/react-redux-boilerplate-auth
import React from 'react' import Helmet from 'react-helmet' export default class PageHeading extends React.Component { render() { return ( <div className="page-heading"> <h1>{this.props.title ? this.props.title : 'Упячка попяке'}</h1> {this.props.title && <Helmet title={this.props.title} />...
src/components/conversation-admin/participant-header.js
pol-is/polisClientAdmin
/* * Copyright 2012-present, Polis Technology 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 for non-commercial use can be found in the PATENTS file * in the sam...
app/containers/Franchise/index.js
prudhvisays/newsb
import React from 'react'; import { connect } from 'react-redux'; import FranchiseMap from '../../components/FranchiseForm/Map'; import FranchiseForm from '../../components/FranchiseForm'; import * as actions from './actions'; class Franchise extends React.Component { // eslint-disable-line react/prefer-stateless-func...
modules/dreamview/frontend/src/components/StatusBar/AutoMeter.js
ycool/apollo
import React from 'react'; import { observer } from 'mobx-react'; import Speedometer from 'components/StatusBar/Speedometer'; class Meter extends React.Component { render() { const { label, percentage, meterColor, background, } = this.props; const percentageString = `${percentage}%`; return ...
src/components/SmartComponent.js
tiberiuc/react-redux-minimal-starter
import React from 'react' import {connect} from 'react-redux' import {pushState } from 'redux-router' class SmartComponent extends React.Component { render() { const {dispatch, pushState} = this.props; const handleRedirect = () => { console.log(this.props.location) dispatch(pushState(null, '/...
src/svg-icons/image/switch-camera.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchCamera = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5...
react-dev/pages/footer.js
DeryLiu/DeryLiu.github.io
import React from 'react'; import Paper from 'material-ui/Paper'; import { blueGrey800, grey50, teal900, green900, green500, teal500, cyan500 } from 'material-ui/styles/colors'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; ...
src/client/story_box.js
jingweno/hacker-menu
import React from 'react' import _ from 'lodash' import Client from 'electron-rpc/client' import StoryList from './story_list.js' import Spinner from './spinner.js' import Menu from './menu.js' import StoryType from '../model/story_type' export default class StoryBox extends React.Component { constructor (props) { ...
imports/ui/components/Routes/PlaceOrderAuthenticated.js
haraneesh/mydev
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; const PlaceOrderAuthenticated = ({ layout: Layout, roles, authenticated, component: Component, ...rest }) => ( <Route {...rest} render={props => ( authenticated ? (<Layout ...
test/client/containers/thumbs.js
berkeley-homes/near-miss-positive-intervention
import test from 'tape' import React from 'react' import { shallow } from 'enzyme' import { Thumbs } from '../../../src/client/containers/thumbs.js' import ThumbsUp from '../../../src/client/components/thumbs_up.js' import ThumbsDown from '../../../src/client/components/thumbs_down.js' test('<Thumbs />', t => { cons...
client/analytics/components/partials/filter/popUps/FilterItemXAxelList.js
Haaarp/geo
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import ToggleButtonList from 'konux/common/components/ToggleButtonList'; import {analytics} from './../../../../actions'; import { ChartType, AxelType } from './../../../../constants'; class XAxelList extends Reac...
src/client/shell/index.js
jordond/xmlr
import React from 'react' import DevTools from 'mobx-react-devtools' // Add components or styles /** * Shell component * * Top most level of all components in the application, all routes and children will be placed inside * Contains mobx dev tools for development * * @param {Object} props - See proptypes * @re...
app/jsx/conferences/renderAlternatives.js
djbender/canvas-lms
/* * Copyright (C) 2020 - 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...
src/components/ui/PremiumFeatureContainer/index.js
meetfranz/franz
import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; import PropTypes from 'prop-types'; import { defineMessages, intlShape } from 'react-intl'; import injectSheet from 'react-jss'; import { oneOrManyChildElements } from '../../../prop-types'; import UserStore from '../../../stores...
mobile/mock ups/albums/src/components/AlbumList.js
parammehta/TravLendar
import React, { Component } from 'react'; import { ScrollView } from 'react-native'; import axios from 'axios'; import AlbumDetail from './AlbumDetail'; class AlbumList extends Component { state = { albums: []}; componentWillMount() { axios.get('https://rallycoding.herokuapp.com/api/music_alb...
Libraries/Components/WebView/WebView.ios.js
browniefed/react-native
/** * 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. * * @provides...
test/__fixtures__/Standard.js
gilbarbara/react-joyride
import React from 'react'; import PropTypes from 'prop-types'; import Joyride, { STATUS } from '../../src/index'; import tourSteps from './steps'; const filteredSteps = tourSteps .filter((d, i) => i !== 3) .map(d => { if (d.target === '.mission button') { d.target = '.mission h2'; } return d; ...
src/index.js
wengyian/project-manager-system
/** * Created by 51212 on 2017/4/7. */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter as Router, Route, browserHistory} from 'react-router-dom'; //import { Router, Route, hashHistory } from 'react-router'; //import createBrowserHistroy from 'history/createBrowserHist...