path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/scripts/hocs/with-theme.js
hms-dbmi/4DN_matrix-viewer
import React from 'react'; import toVoid from '../utils/to-void'; const { Provider, Consumer } = React.createContext({ close: toVoid, open: toVoid, }); // Higher order component const withTheme = (Component) => React.forwardRef((props, ref) => ( <Consumer> {(theme) => <Component ref={ref} {...props} ...
src/components/Todo/TaskList.js
elemus/react-redux-todo-example
import React from 'react'; import PropTypes from 'prop-types'; import Task from './Task'; const TaskList = ({ tasks, onTaskToggle, onTaskDelete }) => { const taskNodes = tasks.map(task => ( <Task key={task.id} id={task.id} description={task.description} isDone={task.isDone} onToggle...
examples/js/cell-edit/demo.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import ClickToEditTable from './click-to-edit-table'; import DbClickToEditTable from './dbclick-to-edit-table'; import BlurToSaveTable from './blur-to-save-table'; import CellEditHookTable from './cell-edit-hook-table'; import NonEditableTable from './non-editable-tabl...
app/containers/Root.js
surrealroad/electron-react-boilerplate
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <...
src/exhibition/containers/Input.js
aihornmac/vexy
import React from 'react'; import PureInput from 'components/PureInput'; export default () => ( <div> <article> <section> <h3>Pure Input</h3> <div style={{ width: '20em', padding: '1em', background: 'rgba(90, 90, 90, .2)' }}> {[12, 14, 16, 18, 20].map(size => <div key...
client/src/components/breweries/brewery-list-item.js
commoncode/ontap
/** * BreweryListItem * */ import React from 'react'; import { breweryModel } from '../../proptypes'; const BreweryListItem = props => ( <div className="brewery-list-item"> <header> <h4 className="brewery-name"><a href={`/#/breweries/${props.id}`}>{props.name}</a></h4> <h5 className="brewery-loc...
app/components/Modules/ListsTimeline/ListsTimeline.js
shibe97/worc
import React, { Component } from 'react'; import Timeline from '../Timeline/Timeline'; import styles from './listsTimeline.css'; export default class ListsTimeline extends Component { componentWillMount() { this.props.requestStreamSiteFollow(); } render() { return ( <div> <p className={sty...
Navigator.js
ganny26/angularUI
import React from 'react'; import {StackNavigator} from 'react-navigation'; import LoginScreen from './LoginScreen'; import SplashScreen from './SplashScreen'; const Navigator = StackNavigator({ Login: { screen: LoginScreen, }, Splash: { screen: SplashScreen, }, }); export default Nav...
fields/types/localfiles/LocalFilesField.js
matthieugayon/keystone
import _ from 'lodash'; import bytes from 'bytes'; import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; const ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'dmg', 'doc', 'dotx', 'dwg'...
react-flux-mui/js/material-ui/src/svg-icons/image/details.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageDetails = (props) => ( <SvgIcon {...props}> <path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/> </SvgIcon> ); ImageDetails = pure(ImageDetails); ImageDetails.displayName = 'ImageDetails'; ImageDetai...
src/svg-icons/action/perm-contact-calendar.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermContactCalendar = (props) => ( <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-...
src/About.js
Software-Eng-THU-2015/pacific-rim
import React, { Component } from 'react'; export default class About extends Component { render(){ return( <h1>About us</h1> ) } }
src/reducers/reducer_limit.js
mcekiera/hangman
import React from 'react'; import { CHAR_MISSED } from '../actions/index'; export default function (state = 9, action) { switch (action.type) { case CHAR_MISSED: return state - 1; default: return state; } }
react_components/PaginationBoxView.js
AdeleD/react-paginate
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import PageView from './PageView'; import BreakView from './BreakView'; import { classNameIfDefined } from './utils'; export default class PaginationBoxView extends Component { static propTypes = { pageCount: PropTypes.n...
common/components/Page404/Page404.js
sauleddy/HomePortal
import React, { Component } from 'react'; class Page404 extends Component { render() { return ( <div className="container"> <div className="row justify-content-center"> <div className="col-md-6"> <div className="clearfix"> <h1 className="float-left display-3 mr-4...
components/Indicators/Indicator.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import css from './Indicator.css'; const Indicator = ({ active, className, ...rest }) => { const classes = classnames( css.root, active ? css.active : null, className, ); return <div className={ clas...
src/packages/carpool-view-flow/components.js
vilnius/vilnius-carpool
import React from 'react' import {FlowHelpers} from './flowHelpers' // Sample components OffersMenu = React.createClass({ render() { return <div> I'm green offers menu </div> } }); RequestsMenu = React.createClass({ render() { return <div> I'm blue requests menu </div> } }); AllYou...
examples/es6-tests-webpack/lib/watch-list-component.js
davidchang/ngReact
import React from 'react'; function renderWatchedRepos() { let watchedRepos = this.props.watchedRepos; return watchedRepos.map(function (repo, index) { return ( <li key={index}>{repo.name}</li> ); }); } class WatchList extends React.Component { render() { return ( <ul> {render...
src/svg-icons/action/print.js
verdan/material-ui
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/components/Footer/index.js
hasibsahibzada/quran.com-frontend
import React from 'react'; import Link from 'react-router/lib/Link'; import styled from 'styled-components'; import LocaleFormattedMessage from 'components/LocaleFormattedMessage'; import { FOOTER_EVENTS } from '../../events'; const Container = styled.footer` background-color: ${props => props.theme.colors.tuatara}...
app/components/StatusInfoPanel/index.js
zmora-agh/zmora-ui
/** * * StatusInfoPanel * */ import React from 'react'; import Typography from 'material-ui/Typography'; import { withStyles, createStyleSheet } from 'material-ui/styles'; import { FormattedMessage } from 'react-intl'; import Button from 'material-ui/Button'; import Card, { CardContent } from 'material-ui/Card'; i...
src/components/Settings.js
tilgram/tilgram-frontend
import ListErrors from './ListErrors'; import React from 'react'; import agent from '../agent'; import { connect } from 'react-redux'; import { SETTINGS_SAVED, SETTINGS_PAGE_UNLOADED, LOGOUT } from '../constants/actionTypes'; class SettingsForm extends React.Component { constructor() { super(); this.s...
test/test_helper.js
Starnes81/ReduxBlogTut
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...
public/controllers/management/components/management/configuration/util-components/refresh-cluster-info-button.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for render button to refresh cluster nodes info. * Copyright (C) 2015-2022 Wazuh, Inc. * * 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 2 o...
app/layouts/Main.js
sysrex/sysrex
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import ReactGA from 'react-ga'; import Header from '../components/Template/Header'; import Nav from '../components/Template/Nav'; if (process.env.NODE_ENV === 'production' || 'development') { ReactGA.in...
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/FormControlStatic.js
jmanday/Master
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/javascript/mastodon/components/logo.js
tootcafe/mastodon
import React from 'react'; const Logo = () => ( <svg viewBox='0 0 216.4144 232.00976' className='logo'> <use xlinkHref='#mastodon-svg-logo' /> </svg> ); export default Logo;
src/index.js
marinamarina/hoc-react-tutorial
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import {Router, Route, browserHistory} from 'react-router' import Authentication from './components/requreAuth' import AboutUs from './components/aboutUs' import Re...
src/components/channelList.js
thipokKub/Clique-WebFront-Personnal
import React, { Component } from 'react'; import Circle from './circle'; class channelList extends Component { // constructor(props) { // super(props); // // } render() { let parent = "channel"; return ( <section className="channelList"> <Circle pare...
examples/real-world/routes.js
leoasis/redux
import React from 'react' import { Route } from 'react-router' import App from './containers/App' import UserPage from './containers/UserPage' import RepoPage from './containers/RepoPage' export default ( <Route path="/" component={App}> <Route path="/:login/:name" component={RepoPage} /> <Route p...
src/js/scopes/scopes.conversation.js
stamkracht/Convy
import React from 'react'; import SwipeableViews from 'react-swipeable-views'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import config from '../config'; import actions from '../actions'; import Chat from './scopes.chat'; import Profile from './scopes.profile'; import ChatSe...
client/components/operations/index.js
jankeromnes/kresus
import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import { translate as $t, wellsColors, formatDate } from '../../helpers'; import { get } from '../../store'; import InfiniteList from '../ui/infinite-list'; import withLongPress from '../ui/longpres...
src/svg-icons/action/input.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInput = (props) => ( <SvgIcon {...props}> <path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"/> </...
modules/Route.js
jwaltonmedia/react-router
import React from 'react' import warning from 'warning' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './PropTypes' const { string, bool, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to t...
node_modules/react-scripts/template/src/App.js
jkahrs595/website
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
demo/demoFactory/components/fieldComponents/TextBox.js
redux-autoform/redux-autoform
import React from 'react'; import { any, func, string } from 'prop-types'; export default class TextBox extends React.Component { static propTypes = { value: any, onChange: func.isRequired, placeholder: string, displayName: string, name: string.isRequired, error: str...
client/src/main.js
impomales/Voting_App
import React from 'react'; import ReactDOM from 'react-dom'; import {BrowserRouter as Router, Route, Link, Switch, Redirect} from 'react-router-dom'; import $ from 'jquery'; import ip from 'ip'; import ObjectID from 'mongodb'; import {Grid, Row, Col, Clearfix, PageHeader, Jumbotron, ListGroup, ListGroupItem, Navbar...
admin/lib/post/components/postAdd.js
synthesis-js/react-synthesis
// Dashboard.js import React from 'react'; // import ALL components from plugin/index.js const postData = document.getElementById('post-data'); // need to sanitize user input // postData.onsubmit = (e) => { // e.preventDefault(); // const title = document.getElementById('post-title').value; // const body = d...
src/pages/projects/smart-bricks.js
JordanVincent/jordan-vincent.com
import React from 'react'; import { Figure, Distribute, Bleed, SectionHeading, Paragraph, Article, } from 'components/projects/utils'; import bookletOpenImage from 'assets/projects/smart-bricks/smart-bricks-booklet-open.jpg'; import bookletImage from 'assets/projects/smart-bricks/smart-bricks-booklet.jpg'...
app/components/ListItem/index.js
projectcashmere/web-server
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
src/js/components/icons/base/New.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/containers/LanguageProvider/index.js
projectcashmere/web-server
/* * * 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/images/UserDefined.svg.js
dkadrios/zendrum-stompblock-client
import React from 'react' export default () => ( <svg x="0" y="0" width="150" height="150" viewBox="0 0 1000 1000"> <g> <path d="M85.4,952.3c0,20.8-17.1,37.7-37.4,37.7C27.1,990,10,973.2,10,952.3c0-68.4,28.3-120,67.3-157.5c53.5-51.6,128.9-74.8,173.8-78.9c9.1-0.5,17.4-4.5,22.7-9.4v-0.5l0.5-0.5c...
ui/src/containers/ExperimentData/ExperimentData.js
vlad-doru/experimento
import React from 'react' import { connect } from 'react-redux' import * as repositoryActions from '../../redux/modules/repository' import ExperimentOverview from '../../components/ExperimentOverview' import OfflineSimulation from '../../components/OfflineSimulation' import ExperimentExample from '../../components/Exp...
pkg/interface/soto/src/js/components/root.js
jfranklin9000/urbit
import React, { Component } from 'react'; import { BrowserRouter, Route } from "react-router-dom"; import classnames from 'classnames'; import _ from 'lodash'; import { HeaderBar } from './lib/header-bar'; import { Popout } from './lib/icons/popout'; import { History } from './history'; import { Input } from './input';...
components/Layout/Navigation.js
CharlesSanford/personal-site
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; ...
frontend/src/admin/common/forms/InputField.js
rabblerouser/core
import React from 'react'; import FieldError from './FieldError'; import Label from './Label'; import Input from './Input'; const InputField = ({ input, label, placeholder, type, meta: { touched, error } }) => ( <div> <Label htmlFor={input.name} > {label} {touched && error ? <FieldError err...
src/components/LaserComponent.js
pacmessica/worms-copy
import React from 'react'; class LaserComponent extends React.Component { constructor() { super(); } laserStyle() { return { position: "fixed", width: "5px", height: "5px", backgroundColor: "green", left: this.props.x + 5 + "px", top: this.props.y + "px" }; } ...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallButton/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ActiveCallButton from 'ringcentral-widgets/components/ActiveCallButton'; // eslint-disable-next-line import KeypadIcon from 'ringcentral-widgets/assets/images/Dialpad.svg'; const props = {}; // eslint-disable-next-line props.onClick = () => alert('clicked')...
node_modules/react-taco-table/src/TacoTableRow.js
together-web-pj/together-web-pj
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import TacoTableCell from './TacoTableCell'; const propTypes = { columns: PropTypes.array.isRequired, columnGroups: PropTypes.array, columnSummaries: PropTypes.array, className: PropTypes.string, highlighted: ...
src/Parser/HolyPaladin/Modules/Talents/DevotionAura.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import makeWclUrl from 'common/makeWclUrl'; import SpellIcon from 'common/SpellIcon'; import { formatThousands, formatNumber } from 'common/format'; import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'Main/LazyLoadStatisticBox'; import Module from 'Pa...
docs/src/app/components/pages/components/FloatingActionButton/ExampleSimple.js
mtsandeep/material-ui
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import ContentAdd from 'material-ui/svg-icons/content/add'; const style = { marginRight: 20, }; /** * Default size and `mini` FABs, in primary (default), `secondary` and `disabled` colors. */ const FloatingActionButton...
src/components/SelectAnswer/SelectAnswerCheckbox.js
imcvampire/simple-online-form
import React from 'react' import PropTypes from 'prop-types' import { Checkbox } from 'material-ui' const SelectAnswerCheckbox = ({ answers, selected, handleCheckboxAnswer, }) => ( <div> <p>Select correct answers:</p> { answers.map((answer, index) => ( <Checkbox label={answer} ...
docs/app/Examples/elements/Button/Content/ButtonExampleConditionals.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleConditionals = () => ( <Button.Group> <Button>Cancel</Button> <Button.Or /> <Button positive>Save</Button> </Button.Group> ) export default ButtonExampleConditionals
src/client/components/BTooltip.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { Tooltip } from 'antd'; class BTooltip extends React.Component { static propTypes = { title: PropTypes.node.isRequired, }; constructor(props) { super(props); this.state = { bottom: false, }; this.setTitle = this.s...
src/components/Header/Header.js
TackleboxBeta/betabox-seed
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { IndexLink } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; import Navbar from 'react-bootstrap/lib/Navbar'; import Nav from 'react-bootstrap/lib/Nav'; import NavItem from 'react-bootstrap/lib/NavItem'; i...
src/components/leaders/Leaders.js
jahuk/bet-platform-react
import React from 'react'; import User from './user/User'; const Leaders = ({leaders}) => { return ( <div> <h2>Leaders:</h2> <table className="table users"> <thead> <tr> <th/> <th>Name</th> <th>Points</th> </tr> </thead> <tbody> ...
src/components/Home.js
ramaya314/UndocuFunds
import React from 'react'; class Home extends React.Component { render() { return( <div> HOME </div> ); } } export default Home
test/integration/prerender/pages/fallback-only/[slug].js
zeit/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' export async function getStaticPaths() { return { paths: [], fallback: true, } } export async function getStaticProps({ params }) { await new Promise((resolve) => setTimeout(resolve, 1000)) return { pro...
src/svg-icons/notification/do-not-disturb.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturb = (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 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13...
pkg/ui/src/components/dashboard/RecentUpdates.js
matt-deboer/kuill
import React from 'react' import PropTypes from 'prop-types' import { List, ListItem } from 'material-ui/List' import Subheader from 'material-ui/Subheader' import Divider from 'material-ui/Divider' import Paper from 'material-ui/Paper' import { white } from 'material-ui/styles/colors' import { Link } from 'react-route...
src/components/pages/section/ListView.js
yiweimatou/yishenghoutai
import React from 'react' import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, FlatButton, Dialog } from 'material-ui' import PagingTableFooter from '../../PagingTableFooter' import EditView from './EditView' const styles = { content:{ width:'1...
client/modules/App/__tests__/App.spec.js
caleb272/PollIt
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
app/javascript/mastodon/components/status_list.js
theoria24/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap from './load_gap...
modules/gui/src/app/home/body/users/userList.js
openforis/sepal
import {BottomBar, Content, SectionLayout, TopBar} from 'widget/sectionLayout' import {Button} from 'widget/button' import {Buttons} from 'widget/buttons' import {Layout} from 'widget/layout' import {Pageable} from 'widget/pageable/pageable' import {Scrollable, ScrollableContainer, Unscrollable} from 'widget/scrollable...
src/svg-icons/action/build.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBuild = (props) => ( <SvgIcon {...props}> <path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-...
src/views/App/App.js
phazor/phazor.github.io
import React, { Component } from 'react'; import MenuBar from '../../components/MenuBar/MenuBar'; import Footer from '../../components/Footer/Footer'; import './App.css'; class App extends Component { render() { return ( <main className="App wrapper"> <MenuBar></MenuBar> {this.props.childre...
src/modules/TemplateSearchOptions.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import ResourceSelector from './ReactSelector' import FontAwesome from 'react-fontawesome'; import { Button } from 'react-bootstrap'; class TemplateSearchOptions extends React.Component { constructor(props) { super(props); let initialType = "Te...
js-old/src/views/RpcCalls/components/RpcDocs/RpcDocs.js
destenson/ethcore--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...
src/svg-icons/image/control-point-duplicate.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPointDuplicate = (props) => ( <SvgIcon {...props}> <path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 ...
resources/assets/js/components/teacher/SearchStudentComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import { searchStudent } from '../../actions/studentSearchActions'; const mapStateToProps = (state) => { return { suggestions: state.studentReducer.suggestions }; }; const mapDispatc...
src/index.js
spahvenn/webshop-react
import React from 'react'; import ReactDOM from 'react-dom'; import AppProvider from './app-provider.component.jsx'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import './index.css'; ReactDOM.render( <AppProvider />, document.getElementById('root') );
app/javascript/mastodon/components/display_name.js
hugogameiro/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, others: ImmutablePropTypes.list, }; render () { const { account, others } = this.pro...
src/Gallery/gallery.js
ziel5122/pdie
import Paper from 'material-ui/Paper'; import React from 'react'; import styles from './styles'; const Gallery = () => ( <div style={styles.gallery}> <Paper style={styles.img0} zDepth={0}> <div style={{ backgroundColor: 'green', height: '100%', }} /> </Paper> ...
src/client/components/frontpage/FrontPage.container.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import scrollToComponent from 'react-scroll-to-component'; import Head from '../base/Head'; import T from '../base/T'; import Hero from '../hero/Hero.component'; import KioskHero from '../kiosk/Hero/KioskHero.component'; import ListsBelt from '../base/Belt...
docs/app/Examples/elements/Input/Variations/InputExampleRightLeftLabeled.js
shengnian/shengnian-ui-react
import React from 'react' import { Input, Label } from 'shengnian-ui-react' const InputExampleRightLeftLabeled = () => ( <Input labelPosition='right' type='text' placeholder='Amount'> <Label basic>$</Label> <input /> <Label>.00</Label> </Input> ) export default InputExampleRightLeftLabeled
smsgw/static/js/pages/directory.react.js
VojtechBartos/smsgw
'use strict'; import React from 'react'; import Component from '../components/component.react'; import Wrapper from '../components/wrapper.react'; import Subheader from '../components/subheader.react'; class Directory extends Component { render() { const menu = [ { label: 'Contacts', route: 'contacts' },...
examples/todos/src/components/Link.js
pavelivanov/redaction
import React from 'react' import PropTypes from 'prop-types' const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span> } return ( <a href="#" onClick={e => { e.preventDefault() onClick() }} > {children} </a> ) } Link....
src/containers/Reactions/Reactions.js
redux-saga/redux-saga-devtools
import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components' import { connect } from 'react-redux' import EffectView from '../EffectView' import { getReactions } from '../../store/selectors' const ReactionsContainer = styled.div` position: relative; width: 100%; height:...
app/index.js
alandawi/react-native-tvshows
import React, { Component } from 'react'; import { Root, Tabs } from './config/router'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import RootReducer from './reducers'; import thunk from 'redux-thunk'; class App extends Component { render() { return <Provider st...
src/Tooltip.js
jamon/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import FadeMixin from './FadeMixin'; const Tooltip = React.createClass({ mixins: [BootstrapMixin, FadeMixin], propTypes: { placement: React.PropTypes.oneOf(['top', 'right', 'bottom', 'left']), po...
client/src/html.js
jonathanihm/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; export default class HTML extends React.Component { render() { return ( <html id='__fcc-html' {...this.props.htmlAttributes} lang='en'> <head> <meta charSet='utf-8' /> <meta content='ie=edge' httpEquiv='x-ua-compatib...
ui/src/components/workflow/tasks/TasksMetaList.js
d3sw/conductor
import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; import { Breadcrumb, BreadcrumbItem, Input, Well, Button, Panel, DropdownButton, ButtonToolbar, MenuItem, Popover, OverlayTrigger, ButtonGroup } from 'react-bootstrap'; import {BootstrapTable, TableHeaderColumn} from 'react-b...
modules/shared/Header.js
edvinerikson/universal-react-kickstarter
import React from 'react'; import Radium from 'radium'; const styles = { base: { color: '#222', fontWeight: 100, fontFamily: 'Segoe UI, HelveticaNeue-Light, sans-serif', lineHeight: 1.4, }, }; @Radium class Header extends React.Component { static propTypes = { size: React.PropTypes.oneOf([1,...
src/components/common/loading/index.js
ndxm/nd-react-scaffold
import styles from './index.css' import React from 'react' export default React.createClass({ propTypes: { isLoading: React.PropTypes.bool.isRequired }, render() { return ( <div className={ this.props.isLoading === true ? styles.show : styles.hide }></div> ) } })
src/svg-icons/image/camera.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCamera = (props) => ( <SvgIcon {...props}> <path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4...
src/routes/user/index.js
vincentdd/crm
import React from 'react' import PropTypes from 'prop-types' import { routerRedux } from 'dva/router' import { connect } from 'dva' import { Row, Col, Button, Popconfirm } from 'antd' import List from './List' import Filter from './Filter' import Modal from './Modal' const User = ({ location, dispatch,...
client/components/Footer/index.js
yjcxy12/ProductSelection
import React from 'react'; import { Paper } from 'material-ui'; import './style.scss'; function Footer() { return <Paper className="footer" style={{ backgroundColor: '#16a085' }} />; } export default Footer;
src/routes.js
dylanlott/bridge-gui
import React from 'react'; import {Router, IndexRoute, Route, hashHistory} from 'react-router'; import LoginForm from 'containers/auth/login-form'; import SignupForm from 'containers/auth/signup-form'; import SignupSuccess from 'components/message-page/signup-success'; import PasswordReset from 'containers/auth/passwor...
src/components/common/Logo.js
securely-app/web
import React from 'react'; import styled from 'styled-components'; import logo from '../../assets/images/securely-logo.svg'; const StyledLogo = styled.img` display: block; margin: 0 auto; `; const LogoWrapper = styled.div`padding: 48px 0 24px 0;`; const Logo = () => <LogoWrapper> <StyledLogo src={logo} alt...
src/svg-icons/navigation-arrow-drop-right.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; let NavigationArrowDropRight = (props) => ( <SvgIcon {...props}> <path d="M9.5,7l5,5l-5,5V7z" /> </SvgIcon> ); NavigationArrowDropRight = pure(NavigationArrowDropRight); NavigationArrowDropRight.displayName = 'Navi...
src/components/app.js
jmdelcarmen/gartist
import React, { Component } from 'react'; import { connect } from 'react-redux'; import actions from '../actions'; import Nav from './dashboard/nav'; class App extends Component { renderNav = () => this.props.auth.authenticated ? <Nav logout={() => this.props.logoutUser()}/> : <div></div>; render() { retu...
examples/js/sort/reusable-custom-sort-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/inactive/RecipeList.js
MichaelLSmith/recipeBox
//this will be a container. It will render all the recipes as a list. //the ingredients are from a separate component that renders the ingredients list. //this could become App.js import React, { Component } from 'react'; import { connect } from 'react-redux'; import shortid from 'shortid'; import _ from 'lodash'; ...
src/main.js
TiX-measurements/tix-web
import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './store/createStore'; import AppContainer from './containers/AppContainer'; // ======================================================== // Store Instantiation // ======================================================== const initialS...
client/source/components/Breadcrumbs.js
r-pr/mnesis
import React from 'react'; import PropTypes from 'prop-types'; class Breadcrumbs extends React.Component { constructor(props) { super(props); this.state = {}; } getBreadcrumbs(){ let breadcrumbs = []; let inactiveDictsLi = <li key={1}> <a href="#" ...
app/containers/RepoListItem/index.js
VeloCloud/website-ui
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'; import...
storybook/config.js
jukper/mastodon
import { configure, setAddon } from '@kadira/storybook'; import IntlAddon from 'react-storybook-addon-intl'; import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { addLocaleData } from 'react-intl'; import en from 'react-intl/locale-data/en'; import '../app/assets/stylesheets/compone...
app/components/StickyBoard.js
MarcinJarecki/React-js-Sticky-Notes
import React from 'react'; import NoteBoard from './stickyBoard/NoteBoard'; import '../main.css'; var StickyBoard = React.createClass({ render: function() { return ( <div> <NoteBoard/> </div> ); } }); module.exports = StickyBoard;
examples/huge-apps/routes/Grades/components/Grades.js
jbbr/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;