path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/hardware/watch.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareWatch = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2....
src/components/setsize.js
jorgerobles/LaserWeb4
// Copyright 2016 Todd Fleming // // 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 // (at your option) any later version. // // This program is dist...
src/components/common/svg-icons/hardware/tablet-mac.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTabletMac = (props) => ( <SvgIcon {...props}> <path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1...
test/helpers/shallowRenderHelper.js
chazshi/react-gallery
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
Libraries/Utilities/throwOnWrongReactAPI.js
callstack-io/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...
src/svg-icons/image/navigate-before.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNavigateBefore = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); ImageNavigateBefore = pure(ImageNavigateBefore); ImageNavigateBefore.displayName...
app/index.js
KutekGangster/MainWebsite
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; // var React = require('react'); // var ReactDOM = require('react-dom'); // var App = require('./components/App'); ReactDOM.render( <App /> , document.getElementById('app') );
client/common/components/Scrollbars.js
Haaarp/geo
import React from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; class Scrollbar extends React.Component { getClassName(){ return "search-result " + (this.props.className ? this.props.className : ""); } render() { return ( <Scrollbars aut...
examples/universal/client/index.js
davidmarkclements/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsUninitialized.js
jamesgpearce/flow
// @flow import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props> { static defaultProps: DefaultProps; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<DefaultProps, Props...
node_modules/re-base/examples/firestore/chatapp/src/components/NewChat.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import base from '../rebase'; class NewChat extends React.Component { _newChat(e) { e.preventDefault(); /* * Here, we call addToCollection on the '/chats' collection * in Firestore. This will create a new document in the collection. ...
app/js/components/selection.js
mattiaslundberg/typer
import React from 'react' export default class Selection extends React.Component { constructor(props) { super(props) this.onChange = this.onChange.bind(this) this.prepareText = this.prepareText.bind(this) } onChange(evt) { if (evt.target.value) { this.props.onSelect(this.prepareText(evt....
src/components/NavItem.js
houkah26/reddit-clone
import React from 'react'; import { NavLink } from 'react-router-dom'; const NavItem = ({ sub, toggleCollapse }) => ( <button onClick={() => { toggleCollapse(); }}> <NavLink to={sub.url} style={{display: 'block', height: '100%', textDecoration: 'none'}} > {sub.display_name} </Na...
app/src/js/components/item/bottom_bar.js
tahnik/devRantron
/** * Reusable bottom bar for all the item cards. * Controls upvotes and downvotes */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ITEM } from '../../consts/types'; class BottomBar extends Component { constructor() { super(); this.state = { isVoted: 0, ...
src/components/Feedback/Feedback.js
quasicrial/quasicrial
/** * 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 withStyles from 'isomorp...
client/src/admin/assignments/Edit.js
ziel5122/autograde
import React from 'react'; const editStyle = { border: 'solid orangered 2px', }; const Edit = ({ assignment: { attempts, dueDate, name, visible, }, save, }) => ( <tr> <td colSpan={5}> <div style={editStyle}> <div onClick={save} style={{ textA...
admin/client/App/shared/AlertMessages.js
naustudio/keystone
import React from 'react'; import { Alert } from '../elemental'; import { upcase } from '../../utils/string'; /** * This renders alerts for API success and error responses. * Error format: { * error: 'validation errors' // The unique error type identifier * detail: { ... } // Optional details specific t...
src/Client/app/Component/QueryInput.js
TrkiSF2/mysql-query-explain
import React from 'react'; class QueryInput extends React.Component { constructor(props) { super(props); this.state = { value: "" } this.handleChange = this.handleChange.bind(this); this.handleSubmit = this.handleSubmit.bind(this); } handleChange(event) ...
Inspector/js/app.js
riccoyu/WebDriverAgent
/** * 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. */ import Rea...
owtf/webapp/src/containers/SettingsPage/index.js
owtf/owtf
/* * SettingsPage */ import React from 'react'; import {Pane, Button, Alert, Spinner} from 'evergreen-ui'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectFetchError, makeSelectFetchLoading, makeSelectFetchConfiguration...
src/js/components/HeaderWeekDaysRow.js
JasonLantz/o-calendar
import React from 'react' const HeaderWeekDaysRow = (props) => { return( <tr> {props.daysOfWeek.map( (dayOfWeek,i) => <th id ={`weekdayHeaderRowCell${i}`} className ='weekdayHeaderRowCell' key ={`weekdayHeaderRowCell${i}`}> {dayOfWeek} </th> )} </tr> ) } export defau...
client/src/components/App.js
danielasy/cerebral-game-library
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Toolbar from './Toolbar'; import GameDialog from './GameDialog'; import GameList from './GameList'; injectT...
src/svg-icons/hardware/smartphone.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSmartphone = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> ); HardwareSmartphone = p...
examples/async-redux/index.js
BurntCaramel/flambeau
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import Root from './containers/Root'; import { store } from './store'; React.render( <Provider store={store}> {() => <Root />} </Provider>, document.getElementById('root') );
src/containers/NotFound/NotFound.js
hitripod/react-redux-universal-hot-example
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/entypo/Magnet.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Magnet'; let EntypoMagnet = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M12.165,17.86c-0.028,0.309,0.217,0.584,0.545,0.611l3.985,0.326c0.329,0.027,0.621-0.203,0.65-0.512l0.3...
src/client/apps/webpack/client.js
craigspaeth/positron
import App from './components/App' import React from 'react' import ReactDOM from 'react-dom' ReactDOM.render( <App />, document.getElementById('react-root') )
src/js/components/video/Controls.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Button from '../Button'; import Box from '../Box'; import Heading from '../Heading'; import VolumeIcon from '../icons/base/Volu...
react/gameday2/components/embeds/EmbedLivestream.js
nwalters512/the-blue-alliance
import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedLivestream = (props) => { const channel = props.webcast.channel const file = props.webcast.file const iframeSrc = `https://new.livestream.com/accounts/${channel}/events/${file}/player?width=640&height=360&autoPlay=tru...
src/components/icons/MongoDB.js
dtjv/dtjv.github.io
import React from 'react' export const MongoDBIcon = ({ className, ...props }) => ( <svg {...props} className={`text-mongodb ${className}`} role="img" xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 24 24" > <title>MongoDB</title> <path d="M17.182 9.518c-1.263-5....
packages/ringcentral-widgets/components/ConnectivityBadge/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; import connectivityTypes from '../../modules/ConnectivityManager/connectivityTypes'; import Badge from '../Badge'; import Draggable from '../Draggable'; import i18n from './i18n'; import styles from './sty...
react/exercises/part_02/src/Header.js
jsperts/workshop_unterlagen
import React from 'react'; function Header() { return ( <header className="jumbotron"> <h1>Contact Manager</h1> </header> ); } export default Header;
source/shared/components/spacer/index.js
gacosta89/knightsTour
import React from 'react'; const spacerStyle = { flex: 1, background: 'transparent' }; export default () => ({style}) => <div style={{...spacerStyle, ...style}}></div>;
app/js/pages/Doctor_list.js
arcsecw/myfd
import React from 'react'; import PageContainer from '../components/PageContainer'; //{line2.honor!=undefined?(<div> //</div>):""} import { }from 'amazeui-react'; import auth from '../components/auth' import { browserHistory, Router, Route, Link, withRouter } from 'react-router' var Doctor_list =withRouter( React.crea...
docs-ui/components/seenInfo.stories.js
beeftornado/sentry
import React from 'react'; import {text} from '@storybook/addon-knobs'; import {withInfo} from '@storybook/addon-info'; import SeenInfo from 'app/components/group/seenInfo'; export default { title: 'Features/Issues/Seen Info', }; const organization = { slug: 'test-org', }; const date = new Date(); export const ...
src/components/ControlPanel.js
cpachomski/Lines
import React from 'react'; import $ from 'jquery'; import Canvas from './Canvas'; import ControlLegend from './panel_elements/ControlLegend'; import Tooltip from './panel_elements/Tooltip'; import Printer from './helpers/Printer'; import {SwatchesPicker} from 'react-color'; import styles from '../styles/control-panel....
public/products/src/components/ProductsList.js
dolchi21/open-prices
import React from 'react' import ProductsProvider from '../containers/ProductsProvider.js' import { List, ListItem } from './UI.js' import store from '../stores/products.js' var ProductsList = React.createClass({ render() { var { products } = this.props return ( <List> ...
src/svg-icons/maps/zoom-out-map.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsZoomOutMap = (props) => ( <SvgIcon {...props}> <path d="M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm1...
src/svg-icons/action/gif.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGif = (props) => ( <SvgIcon {...props}> <path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/> </Svg...
src/client/auth/withAuthActions.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getIsAuthenticated } from '../reducers'; import LoginModal from '../components/LoginModal'; function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Compo...
src/media/js/site/login.js
mozilla/marketplace-content-tools
import React from 'react'; import {connect} from 'react-redux'; import * as tosActions from './actions/tos'; import {Page, PageSection} from './components/page'; import LoginHandler from './containers/login' import TOSSignatureContainer from './containers/tos'; export class UnauthorizedHandler extends React.Componen...
frontend/src/app/components/NewsletterFooter.js
mozilla/testpilot
import classnames from 'classnames'; import React from 'react'; import NewsletterForm from './NewsletterForm'; export default class NewsletterFooter extends React.Component { renderError() { if (this.props.newsletterForm.failed) { return ( <div className="error" data-l10n-id="newsletterFooterErro...
examples/shared-root/app.js
tikotzky/react-router
import React from 'react'; import HashHistory from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; var App = React.createClass({ render() { return ( <div> <p> This illustrates how routes can share UI w/o sharing the url, when routes have no pa...
assets/javascript/components/profile/profile.js
colinjeanne/learning-site
import AddChild from './addChild'; import { childPropType } from './../propTypes'; import DataList from './dataList'; import InviteFamilyMember from './inviteFamilyMember'; import InviteList from './inviteList'; import React from 'react'; const familyMemberPropType = { id: React.PropTypes.string.isRequired, na...
src/components/RentSelect.js
vdv73rus/kipr-widget
import React, { Component } from 'react'; export default class RentSelect extends Component { constructor(props) { super(props) this.handleChange = this.handleChange.bind(this); } handleChange(e) { this.props.onChange(this.refs.rentType.getDOMNode().value); } render() { return ( <di...
app/server/server.js
jodyzhq/hyoa
import express from 'express' import path from 'path' import bodyParser from 'body-parser' import session from 'express-session' //import redis from 'connect-redis' import socketIO from 'socket.io' import React from 'react' import ReactDOMServer from 'react-dom/server' import { useRouterHistory, RouterContext, match }...
docs/app/Examples/modules/Progress/Content/ProgressExampleProgressRatio.js
aabustamante/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleProgressRatio = () => ( <Progress value='3' total='5' progress='ratio' /> ) export default ProgressExampleProgressRatio
pootle/static/js/editor/components/RawFontTextarea.js
iafan/zing
/* * 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 assign from 'object-assign'; import Mousetrap from ...
src/svg-icons/editor/pie-chart-outlined.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPieChartOutlined = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 2.07c3.61.45 6.48 3.33 6.93 6.93H13V4.07zM4 12c0-4.06 3.07-7.44 7-7.93v15.87c-...
app/javascript/mastodon/features/list_editor/components/edit_list_form.js
pso2club/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
fixtures/packaging/systemjs-builder/dev/input.js
flarnie/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
stories/components/linkButton/index.js
tal87/operationcode_frontend
import React from 'react'; import { HashRouter } from 'react-router-dom'; import { storiesOf } from '@storybook/react'; import { Element } from 'react-scroll'; import LinkButton from 'shared/components/linkButton/linkButton'; const MarginDecorator = storyFn => ( <div style={{ margin: '16px' }}> {storyFn()} </...
js/src/dapps/tokendeploy.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 your option) any lat...
client/extensions/woocommerce/app/order/order-activity-log/events.js
Automattic/woocommerce-services
/** @format */ /** * External dependencies */ import { connect } from 'react-redux'; import { localize, moment } from 'i18n-calypso'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { keys, last, noop, sortBy } from 'lodash'; /** * Internal dependencies */ import './style.scss'...
src/js/components/Button/stories/TipOnButton.js
grommet/grommet
import React from 'react'; import { Box, Button } from 'grommet'; export const TipOnButton = () => ( <Box align="center" pad="medium" gap="large"> <Button label="Default Tip" onClick={() => {}} tip="tooltip" /> <Button label="Tip Drop props" onClick={() => {}} tip={{ dropProps: { align: { ...
app/components/SelectHint/index.js
Goodly/TextThresher
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { styles } from './styles.scss'; function HintOption(props) { return <option value={props.hint_set.hint_type}> {props.hint_set.hint_type} </option>; } const mapStateToProps = state => { return { displa...
src/svg-icons/social/people.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeople = (props) => ( <SvgIcon {...props}> <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2....
Paths/React/05.Building Scalable React Apps/5-react-boilerplate-building-scalable-apps-m5-exercise-files/After/app/components/LinkList/index.js
phiratio/Pluralsight-materials
/** * * LinkList * */ import React from 'react'; import styles from './styles.css'; import Link from '../Link'; function LinkList({ links }) { const linkNodes = links.map(l => ( <Link key={l.id} link={l} /> )); return ( <div className={styles.linkList}> {linkNodes} </div> );...
app/admin/components/AdminDashboardRoutes.js
ecellju/internship-portal
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import HomeNavigate from '../dashboard/HomeNavigate'; import StudentList from '../dashboard/StudentList'; import AccessControlPage from '../containers/AccessControlPage'; import AdminActions from '../dashb...
step6-serviceapi/node_modules/react-router/modules/Router.js
jintoppy/react-training
import createHashHistory from 'history/lib/createHashHistory' import useQueries from 'history/lib/useQueries' import React from 'react' import createTransitionManager from './createTransitionManager' import { routes } from './PropTypes' import RouterContext from './RouterContext' import { createRoutes } from './RouteU...
dcc-portal-ui/app/scripts/oncololliplot/js/react-components/ChartTooltipMulti.js
icgc-dcc/dcc-portal
import React from 'react'; const ChartTooltipMulti = ({ style }) => (<div className="lolliplot-tooltip right in fade" style={style}> <div className="tooltip-arrow"></div> <div className="tooltip-inner"> There are multiple mutations at this coordinate. Click to view. </div> </div>); ChartTooltipM...
webpack/components/NewTemplateSync/NewTemplateSync.js
theforeman/foreman_templates
import React from 'react'; import { LoadingState } from 'patternfly-react'; import PageLayout from 'foremanReact/routes/common/PageLayout/PageLayout'; import PropTypes from 'prop-types'; import NewTemplateSyncForm from './components/NewTemplateSyncForm'; import './NewTemplateSync.scss'; class NewTemplateSync extends ...
code/frontend/src/App.js
CPSC319-2017w1/coast.the-terminal
import React, { Component } from 'react'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import logger from 'redux-logger'; import { CookiesProvider } from 'react-cookie'; import reducer from './reducers'; import Layout from './components/L...
tests/Rules-isNumeric-spec.js
RMSAuto/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
test/fixtures/webpack-message-formatting/src/AppOutOfScopeImport.js
Timer/create-react-app
import React, { Component } from 'react'; import myImport from '../OutOfScopeImport'; class App extends Component { render() { return <div className="App">{myImport}</div>; } } export default App;
app/scripts/components/matched-results.js
hustbill/autorender-js
import React from 'react'; import MatchedText from './matched-text'; const SHOW_ROW_COUNT = 2; const MAX_MATCH_LENGTH = 24; const Match = match => ( <div className="matched-results-match" key={match.label}> <div className="matched-results-match-wrapper"> <span className="matched-results-match-label"> ...
src/components/todo/Todo.js
mpeinado/react-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { deleteTodoAction } from './../../actions/TodoActions'; class Post extends Component { handelClick = () => { this.props.deleteTodo(this.props.todo.id); this.props.history.push('/'); } render() { ...
cheesecakes/plugins/content-manager/admin/src/components/Edit/index.js
strapi/strapi-examples
/** * * Edit * */ import React from 'react'; import PropTypes from 'prop-types'; import { findIndex, get, has, isEmpty, isFunction, upperFirst, } from 'lodash'; // You can find these components in either // ./node_modules/strapi-helper-plugin/lib/src // or strapi/packages/strapi-helper-plugin/lib/src i...
src/js/components/navigation/user-nav-item.js
v3rt1go/jsse-client
'use strict'; import React from 'react'; import AccountSubmenu from './user/account-submenu'; import MailSubmenu from './user/mail-submenu'; import FavoritesSubmenu from './user/favorites-submenu'; import SellerSubmenu from './user/seller-submenu'; class UserNavItem extends React.Component { componentDidMount() { ...
Realization/frontend/czechidm-core/src/components/advanced/SchedulerTaskInfo/SchedulerTaskInfo.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import { SchedulerManager, DataManager } from '../../../redux'; import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo'; import LongRunningTaskName from '../LongRunningTask/LongRunningTaskName'; import Lon...
src/components/ChatList/ChatListFooter/index.js
saitodisse/md-list
import React from 'react'; import {connect} from 'cerebral-view-react'; import _ from 'lodash/fp'; import autosize from 'autosize'; import itemsListCountComputed from '~/computed/itemsListCountComputed'; import styles from './styles'; export default connect({ is_saving: 'main.is_saving', current_item_id: 'chatList...
src/svg-icons/action/toc.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToc = (props) => ( <SvgIcon {...props}> <path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/> </SvgIcon> ); ActionToc = pure(ActionToc); ActionToc.displa...
app/containers/InfoDialog/index.js
brettmorris/YouTubeVideoAggregator
import React from 'react'; import HelpIcon from 'material-ui/svg-icons/action/help-outline'; import { Dialog, IconButton, FlatButton } from 'material-ui'; import styles from './styles'; export default class InfoDialog extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function constructor(pr...
src/NavItem.js
tannewt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
views/decoration_toggle.js
genecyber/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
packages/screenie-cli/src/browser-reporter/components/test-table.js
ParmenionUX/screenie
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import { Icon, Table, Button } from 'semantic-ui-react' import socket from '../socket' const rerunTest = testId => socket.emit('rerunAllMatrices', { testId }) export default connect(state => ({ status: state.sta...
stories/case_form.js
uglymugs/JustNUM
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Provider } from 'react-redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import CaseForm from '../app/components/case_form/'; import configureStore from '../app/configure_store/configure_store.dev'; const store...
app/assets/js/components/atlasNotifications.js
CrucifixArnaud/rapworldmap
import React from 'react'; import PropTypes from 'prop-types'; import {EventEmitter} from 'events'; import {TransitionMotion, spring, presets} from 'react-motion'; export default class AtlasNotifications extends React.Component { static propTypes = { bus: PropTypes.instanceOf(EventEmitter) } constructor(pro...
tools/public-components.js
RichardLitt/react-bootstrap
import React from 'react'; import 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;
app/components/OptionsHeader.js
jastkand/vk-notifications
import React from 'react' import styles from './OptionsHeader.css' export const OptionsHeader = () => { return ( <header className={ styles.header }> <span>Оповещения VK</span> </header> ) }
pages/index.js
noriaki/o6ua6
import React from 'react'; const IndexPage = () => ( <div>Hello world.</div> ); export default IndexPage;
packages/plugins/i18n/admin/src/components/SettingsModal.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { ModalHeader, HeaderModal, HeaderModalTitle, ModalForm, Tabs, TabsNav, Tab, TabsPanel, } from '@strapi/helper-plugin'; import { useIntl } from 'react-intl'; import { getTrad } from '../utils'; const SettingsModal = ({ children, titl...
packages/material-ui-icons/src/ContactMail.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ContactMail = props => <SvgIcon {...props}> <path d="M21 8V7l-3 2-3-2v1l3 2 3-2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34...
actor-apps/app-web/src/app/components/Deactivated.react.js
cnbin/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
modules/tribes/client/components/LeaveTribeModal.js
Trustroots/trustroots
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslation } from 'react-i18next'; import { Modal } from 'react-bootstrap'; export default function LeaveTribeModal({ tribe, show, onConfirm, onCancel }) { const { t } = useTranslation('circles'); return ( <Modal show={show} onHide={o...
src/components/hero.js
evansantos/evansantos.github.io
import React from 'react' import styled, { css } from 'styled-components' import { FaAngleDown, FaInstagram, FaLinkedinIn, FaGithub, FaTwitter } from 'react-icons/fa' import Link from './link' const Intro = styled.div` -webkit-background-size: cover; background-attachment: fixed; background-image: url('https://...
js/components/CSSearchBar.js
kilimondjaro/react-native-couchsurfing-app
// @flow import React, { Component } from 'react'; import { Platform, TextInput, View, ScrollView, Image, StyleSheet } from 'react-native'; import {ItemsWrapperIOS} from './CSHeader'; import type {Item} from './CSHeader'; type Props = { leftItem?: Array<Item>; rightItem?: Array<Item>; value: string; ...
tools/wrapper.js
postor/react-builder
import React from 'react' import Cookies from 'js-cookie' import Router from 'next/router' import { I18nextProvider } from 'react-i18next' import { connect } from 'react-redux' import { default as fetch, getContextedFetch } from './fetch' import { i18nWrapper } from './i18n-helper' import { initStore, reduxWrapper } f...
project/src/scenes/Admin/DashboardLanding.js
boldr/boldr
/* @flow */ import React from 'react'; import { connect } from 'react-redux'; import Heading from '@boldr/ui/Heading'; import ContentPromo from '@boldr/ui/ContentPromo'; // import Tabs from '@boldr/ui/Tabs'; import type { CurrentUser } from '../../types/boldr'; export type Props = { currentUser: CurrentUser, }; /...
ReactNative/EmployeesManager/src/components/common/Spinner.js
makingsensetraining/mobile-pocs
import React from 'react' import { View, ActivityIndicator } from 'react-native' const Spinner = ({ size }) => { return ( <View style={styles.spinnerStyle}> <ActivityIndicator size={size || 'large'} /> </View> ) } const styles = { spinnerStyle: { flex: 1, justifyContent: 'center', alig...
src/views/Main.js
eventhough/hapi-universal-redux
import React from 'react'; import Transmit from 'react-transmit'; import Radium from 'radium'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as CounterActions from 'actions/CounterActions'; import Counter from 'components/Counter'; const styles = { base: { fontFamil...
src/server/main.js
TheGhoul21/irfwan
/** * Created by root on 07/09/16. */ // load the things we need var express = require('express'); var app = express(); import React from 'react'; import ReactDOMServer from 'react-dom/server'; import ExampleComponent from '../view/components/ExampleComponent'; import {version} from '../../configuration/package'; // ...
src/components/Footer/index.js
bkrall/react-portfolio
import React, { Component } from 'react'; /* component styles */ import { styles } from './footer.scss'; export class Footer extends Component { render() { return ( <footer className={styles}> <strong>&copy; 2016 Brian Krall.</strong> &nbsp; Built with React, Sass, and Git. 💻 &nbsp; ...
js/components/PrayersTab.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; var moment = require('moment'); import { actions } from 'react-native-navigation-redux-helpers'; import { Image, WebView, AsyncStorage } from 'react-native'; import { Container, Header, Subtitle, Title, Content, H2, Button, Footer, ...
Simple blogging/app/components/posts/show-post.js
KalinaGeorgieva/FMI-course-Node-Express-React
import React from 'react'; import {Route, Link} from 'react-router-dom'; import ReactMarkdown from 'react-markdown'; const ShowPost = (props) => { let tags = props.tags.split("#").filter(function(item){return item}); let date = new Date(props.timestamp); return ( <div> <div class...
src/components/NavigationBar/index.js
TekkenChicken/t7-chicken-native
import React from 'react'; import { Platform, View, Text } from 'react-native'; // components import NavigationTitle from './Title'; import NavigationSide from './Side'; import Inputs from '../Inputs/Inputs'; import * as Colors from '../../style/vars/colors'; /** * Render's Header Title * @param: title [string] ...
src/components/SearchBar.js
godfredcs/youtube-project
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } onInputChange(term) { this.setState({ term }); this.props.onSearchTermChange(term); } render() { return ( <div className="search-bar"> <input value={t...
app/components/TodoList/TodoItem.js
longgame/koa-react-demo
'use strict;' import React, { Component } from 'react'; import { LinkedStateMixin } from 'react-addons'; import { TodoActions } from '../TodoList'; import template from './TodoItem.rt'; import styles from './TodoItem.scss'; import './pencil.png'; import './trash.png'; module.exports = React.createClass({ mixins:...
src/components/Comment/Comment.js
jonirrings/react-stack
/** * react-stack react-stack * * Copyright © 2016. JonirRings. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-types'; import Author from '../Author'; const propTypes = { c...
src/components/pages/Pagination.js
gorgias/gorgias-docs
import React from 'react' import {JSONTree} from './../JsonTree' import {Code} from './../../utils' export const Pagination = () => ( <div id="pagination" className="section"> <div className="wrap"> {/* Left Column */} <div className="column left"> {/* Description...