path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/notification/mms.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/> </SvgIcon> ); NotificationMms = ...
src/svg-icons/av/hearing.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHearing = (props) => ( <SvgIcon {...props}> <path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ...
src/client/entity-editor/common/new-date-field.js
bookbrainz/bookbrainz-site
import * as _ from 'lodash'; import {Button, FormControl, InputGroup} from 'react-bootstrap'; import {ISODateStringToObject, dateObjectToISOString, getTodayDate} from '../../helpers/utils'; import {isValid, parseISO} from 'date-fns'; import CustomInput from '../../input'; import DatePicker from 'react-datepicker'; impo...
src/svg-icons/device/battery-20.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery20 = (props) => ( <SvgIcon {...props}> <path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7...
ui/node_modules/react-bootstrap/src/NavItem.js
bpatters/eservice
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { onSelect: React.PropTypes.func, active: React.PropTypes.bool, disabled: React.PropTypes.bool, href: React.PropType...
ajax/libs/recompose/0.20.0/Recompose.js
iwdmb/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
dispatch/static/manager/src/js/components/PodcastEditor/EpisodeEditor/index.js
ubyssey/dispatch
import React from 'react' import R from 'ramda' import DocumentTitle from 'react-document-title' import { connect } from 'react-redux' import { withRouter } from 'react-router' import { Link } from 'react-router' import { Button, Intent } from '@blueprintjs/core' import { confirmNavigation } from '../../../util/helper...
mm-react/src/utils/data_util.js
Ameobea/tickgrinder
//! Declares platform constants and metadata used to send commands. // @flow import React from 'react'; import { Input } from 'antd'; type DataDownloaderDefinition = {name: string, description: string, command: string, supportedDownloaders: Array<string>}; /** * Contains a list of all data downloaders and informati...
client/containers/home/index.js
wuyang910217/meteor-react-redux-base
import React from 'react'; import {useDeps} from 'react-simple-di'; import {composeAll, withTracker, withLifecycle} from 'react-komposer-plus'; import Home from '../../components/home'; // function composer({context}, onData) { // const user = context().Meteor.user(); // if (user && Array.isArray(user.emails) &&...
react-native/Albums/src/components/AlbumList.js
vanyaland/react-demos
import React, { Component } from 'react'; import { View, ScrollView } from 'react-native'; import AlbumDetail from './AlbumDetail'; class AlbumList extends Component { state = { albums: [] }; componentWillMount() { fetch('https://rallycoding.herokuapp.com/api/music_albums') .then(response => response....
App/src/features/calendar/Calendar.js
DupK/dashboard-epitech
/** * Created by desver_f on 24/01/17. */ import React, { Component } from 'react'; import _ from 'lodash'; import moment from 'moment'; import { Dimensions, Platform, ScrollView, Text, View } from 'react-native'; import LoadingIndicator from 'react-native-spinkit'; import { observable } from 'react-native-mobx'; im...
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/MigratorTemplatesList/MigratorTemplatesList.js
KlusterKite/KlusterKite
import React from 'react'; import Relay from 'react-relay' import { Link } from 'react-router'; class NodeTemplatesList extends React.Component { constructor (props) { super(props); this.state = { } } static propTypes = { configurationId: React.PropTypes.string, configuration: React.PropTyp...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
ONode/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
src/ThreadedImg.js
raininglemons/infinity-grid
import React from 'react'; import ReactDOM from 'react-dom'; import consoleFactory from 'console-factory'; import Metrics from './Metrics'; const console = consoleFactory('ThreadedImg', 3); const ref = new WeakMap; function workerFn() { self.onmessage = function (e) { const url = e.data; const onload = () ...
public/js/components/test-button.js
lalitkapoor/isomorphic-react-boilerplate
import React from 'react' export default React.createClass({ displayName: 'TestButton' , count: 0 , getInitialState: function() { return { buttonText: this.getButtonText(this.count) } } , getButtonText: function(count) { return `You Click Me ${count} times!` } , onClickHa...
src/components/score.js
thepeted/dungeon-crawler
import React from 'react'; export default ({ iconClass, title, value }) => { return ( <div className="score-item"> <div className={`icon cell ${iconClass}`}/> <span className="score-label">{`${title}: ${value}`}</span> </div> ); };
app/components/ListItem/index.js
yogakurniawan/phone-catalogues
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;
frontend/src/Settings/Profiles/Quality/QualityProfileItemGroup.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CheckInput from 'Components/Form/CheckInput'; import TextInput from 'Components/Form/TextInput'; import Icon from 'Components/Icon'; import Label from 'Components/Label'; import IconButton from 'Com...
client/components/Navbar/NavbarComponent.js
lvarayut/relay-fullstack
// @flow import React from 'react'; import { Link } from 'react-router'; import { Layout, Header, Navigation, Drawer } from 'react-mdl'; import styles from './Navbar.scss'; export default class Navbar extends React.Component { render() { const title = 'Relay Fullstack'; return ( <Layout className={styl...
test/test_helper.js
steeeeee/udemy-react-redux-blog
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...
app/js/components/Dashboard.js
jagatjeevan/react-setup
import React from 'react'; const Dashboard = () => ( <div>This is the dashboard page.</div> ); export default Dashboard;
KeychainExample/App.js
oblador/react-native-keychain
import React, { Component } from 'react'; import { Alert, KeyboardAvoidingView, Platform, StyleSheet, Text, TextInput, TouchableHighlight, View, } from 'react-native'; import SegmentedControlTab from 'react-native-segmented-control-tab'; import * as Keychain from 'react-native-keychain'; const ACCESS_C...
src/svg-icons/hardware/laptop-chromebook.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopChromebook = (props) => ( <SvgIcon {...props}> <path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/> </SvgIcon> ); HardwareLaptopChromebook = pure(HardwareLaptopChromebook); Har...
src/projects/TicTacToe/components/GameRow.js
terakilobyte/terakilobyte.github.io
import React from 'react'; import '../TicTacToe.scss'; import GameTile from './GameTile'; const columns = [0, 1, 2]; const rows = { 0: 'top', 1: 'center', 2: 'bottom' }; export default class GameRow extends React.Component { static propTypes = { row: React.PropTypes.number.isRequired, tileClick: Reac...
src/list-item/test.js
twilson63/t63
import React from 'react' import test from 'tape' import { shallow } from 'enzyme' import ListItem from './' test('<ListItem />', t => { const wrapper = shallow(<ListItem>Beep</ListItem>) t.equals(wrapper.text(), 'Beep') t.end() }) test('<ListItem className />', t => { const wrapper = shallow(<ListItem class...
website/app/components/List/index.js
mattroid/WildWest
import React from 'react'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={...
src/tags/simple.js
JimLiu/bbcode-to-react
import React from 'react'; import Tag from '../tag'; export default (name, attributes) => { class SimpleTag extends Tag { constructor(renderer, settings = {}) { super(renderer, settings); Object.keys(attributes || {}).forEach(key => { this[key] = attributes[key]; }); } toHTML(...
cerberus-dashboard/src/components/LoginUserForm/LoginUserForm.js
Nike-Inc/cerberus-management-service
/* * Copyright (c) 2020 Nike, inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
components/Layout/Navigation.js
Mrancois/barduino
/** * 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'; ...
src/components/app.js
mushishi78/content-editor
import React from 'react'; import { connect } from 'react-redux'; import Addressbar from 'react-addressbar'; import * as actionCreators from '../actions/index'; import { IN_PROGRESS } from '../constants/status-types'; import ConfirmBar from '../components/confirm-bar'; import ContentsViewer from '../components/contents...
voting_app/frontend/src/components/NotFound.js
azaleas/sentio
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'react-router-dom/Link'; const NotFound = ({ className }) => { return ( <div className="ui negative message center"> <div className="header">404</div> <p>Nothing was found here. Go to <Link to="/">main.<...
reactjs_example/hello-world/src/App.js
ordsen/gsoc-preparation
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> ...
fixtures/nesting/src/modern/HomePage.js
terminatorheart/react
import React from 'react'; import {useContext} from 'react'; import {Link} from 'react-router-dom'; import ThemeContext from './shared/ThemeContext'; import Clock from './shared/Clock'; export default function HomePage({counter, dispatch}) { const theme = useContext(ThemeContext); return ( <> <h2>src/mo...
src/index.js
ehellman/3r-styletron-hmr
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * /* Imports /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ import { AppContainer } from 'react-hot-loader' import React from 'react' import ReactDOM from 'react-dom' /* * * * * * * * * * * * * * * * * * * * *...
Beatbox_app/blueprints/smart/files/__root__/containers/__name__.js
whiletrace/beatbox
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' type Props = { } export class <%= pascalEntityName %> extends React.Component { props: Props; render() { return ( <div></div> ) } } const mapStateToProps = (state) => { return {} } const ...
src/js/views/transitions-target.js
nolemmings/touchstonejs-starter
import Container from 'react-container'; import React from 'react'; import Timers from 'react-timers'; import { Mixins } from 'touchstonejs'; module.exports = React.createClass({ mixins: [Mixins.Transitions, Timers], statics: { navigationBar: 'main', getNavigation (props) { return { title: props.navbarTit...
src/svg-icons/av/library-books.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
modules/gob-web/modules/course-table/fake-course.js
hawkrives/gobbldygook
// @flow import React from 'react' import {Container, Title, SummaryRow} from '../course/compact' type PropTypes = { className: string, details?: string, title: string, } export default function FakeCourse(props: PropTypes) { return ( <Container className={`fake-course ${props.className}`}> <Title name={prop...
client/components/EditableList/index.js
DarkHorseJP/RPGScenarist
import React from 'react' import PropTypes from 'prop-types' import ImmutablePropTypes from 'react-immutable-proptypes' import { ListGroup, ListGroupItem } from 'react-bootstrap' import styled from 'styled-components' import ListFooter from './ListFooter' const Wrapper = styled.div` height: calc(${props => props.he...
src/components/wordgrid/index.js
enguerran/dicodigital-web
import React from 'react'; import Word from '../word'; export default React.createClass({ render() { const words = this.props.words.map((word, index) => { const word = <Word word={word} />; return ( <div className="mdl-cell mdl-cell--3-col" key={index}> {word} </div> )...
docs/app/Examples/elements/Image/Types/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'shengnian-ui-react' const ImageTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample...
client/modules/Post/__tests__/components/PostCreateWidget.spec.js
jyothigundeti/sample-app
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { FormattedMessage } from 'react-intl'; import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const props = { ...
client/modules/Post/__tests__/components/PostListItem.spec.js
denistakeda/evolution
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
assets/jqwidgets/demos/react/app/tree/keyboardnavigation/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; class App extends React.Component { componentDidMount() { this.refs.myTree.focus(); } render () { // Create jqxTree let source = [ { icon: '../....
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateUninitialized.js
mroch/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: Props; state: State; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: Props; state: State; de...
src/svg-icons/device/gps-fixed.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsFixed = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
frontend/src/components/partners/profile/modals/updateObservation/updateObservationModal.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import { submit } from 'redux-form'; import ControlledModal from '../../../../common/modals/controlledModal'; import { updatePartnerFlags...
src/components/about/About.js
AlanMorel/aria
import React from 'react'; import Config from '../../Config'; import Utility from '../../Utility'; import Banner from '../navigation/banner/Banner'; class About extends React.Component { componentDidMount() { Utility.setTitle("About"); } getSubtitle() { return "What's this " + Config.ser...
scripts/index.js
rachardking/react-lofty
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
app/components/home.js
oneillci/egghead-react-app
import React from 'react'; export default class Home extends React.Component { render() { return <h2 className="text-center">Search by es6</h2> } } // var React = require("react"); // var Home = React.createClass({ // render: function() { // return( // <h2 className="text-center"> // Search by github u...
turismo_client/src/containers/userMapContainer.js
leiverandres/turismo-risaralda
import React, { Component } from 'react'; import MapWithEvents from '../components/mapWithEvents'; import EventInfoModal from '../components/eventInfoModal'; import requests from '../utils/requests'; class UserMapContainer extends Component { state = { position: [4.814278, -75.694558], events: [], showM...
app/components/scantask/PeriodTask.js
superhuahua/xunfengES
import React from 'react'; import { Form, Input, Tag, Button, notification, Icon } from 'antd'; const FormItem = Form.Item; import axios from 'axios'; class PeriodTask extends React.Component{ constructor(props){ super(props); this.state = { periodAssets:"", periodTimes:"",...
src/components/cards/speaking-card.js
renvrant/renvrant.github.io
import React from 'react'; import Card from './card'; function SpeakingCard() { return ( <Card title="Speaking" color="2"> <ul> <li> <a href="https://fitc.ca/presentation/composing-components-in-angular/" target="_blank"> Composing Components in Angular </a> <cite>FI...
react-ui/src/components/radar.js
danielemanuel/in_search_of_happiness
import React, { Component } from 'react'; import {Radar} from 'react-chartjs-2'; class RadarComparison extends Component { displayName = 'RadarComparison'; render() { let data = this.props.company; const comparisonData = { labels: ['Overall', 'Culture and Values', 'Senior Leadership', 'Compensation ...
src/media/js/addon/containers/dashboardDetail.js
mozilla/marketplace-submission
/* Dashboard page for a single add-on. */ import React from 'react'; import {connect} from 'react-redux'; import {ReverseLink} from 'react-router-reverse'; import {bindActionCreators} from 'redux'; import AddonVersionListingContainer from './versionListing'; import {changeSlug, fetch as fetchAddon} from '../actions/...
packages/ringcentral-widgets/components/Header/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; export function HeaderButton(props) { return ( <div className={classnames( styles.button, props.disabled && styles.disabled, )} onClick={props....
static/src/components/islands/IslandPond.js
Termnator/mikebot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { paused: boolean }; export default ({paused}: Props): React.Element => ( <svg className={`island pond ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259" height="251"> <g fill="none" fill-rule="evenodd"...
src/svg-icons/toggle/star-border.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStarBorder = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1...
app/components/ArticleList.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; import ArticleListStore from '../stores/ArticleListStore'; import ArticleListActions from '../actions/ArticleListActions'; import LogActions from '../actions/LogActions'; import Pages from './Pages'; import SideColumn from './SideColumn'; import Weixi...
src/components/form/field/index.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2017 Loki Education (Social Enterprise) 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, o...
src/routes/Page/components/Page.js
oliveirafabio/test-senior
import React from 'react' import classes from './Page.scss' import CheckIn from 'routes/CheckIn/containers/CheckInContainer' import Consult from 'components/Consult' import PeopleModal from 'components/PeopleModal' import { Button } from 'react-bootstrap' export const Page = (props) => { return ( <div className=...
src/client.js
RomanovRoman/react-starter-kit
/** * 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 'babel-polyfill'; import React from 'react'; import...
src/svg-icons/content/forward.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentForward = (props) => ( <SvgIcon {...props}> <path d="M12 8V4l8 8-8 8v-4H4V8z"/> </SvgIcon> ); ContentForward = pure(ContentForward); ContentForward.displayName = 'ContentForward'; ContentForward.muiNam...
pootle/static/js/admin/components/LanguageForm.js
Avira/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ 'use strict'; import React from 'react'; import { FormEl...
src/admin_components/RaceGroupList.js
chiefwhitecloud/running-man-frontend
import React from 'react'; import PropTypes from 'prop-types'; import RaceGroupListItem from './RaceGroupListItem'; import RaceGroupListItemEdit from './RaceGroupListItemEdit'; const RaceGroupList = ({ raceGroups, onDelete, onEnableEdit, onCancelEdit, onUpdate }) => ( <table> <thead> <tr> <th>Name...
src/index.js
pippo111/react-dnd-chess
import React from 'react'; import ReactDOM from 'react-dom'; import Board from './components/board'; import { observe } from './components/game'; observe(pos => { ReactDOM.render(<Board knightPos={pos} />, document.querySelector('.container')); });
src/svg-icons/communication/email.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationEmail = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); CommunicationEmai...
src/svg-icons/action/credit-card.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCreditCard = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); Action...
src/client/index.js
madole/whiskey-club-roster
import React from 'react'; import ReactDom from 'react-dom'; import App from './containers/App/App'; import { Provider } from 'react-redux'; import configureStore from './store/configure-store'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import injectTapEventPlugin from 'react-tap-even...
third_party/blink/perf_tests/speedometer/resources/todomvc/architecture-examples/react-redux/src/index.js
scheib/chromium
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './containers/App' import reducer from './reducers' import 'todomvc-app-css/index.css' const store = createStore(reducer) render( <Provider store={store}> <App ...
src/Components/Presentational/RoomList/RoomList.js
DeadManPoe/ReactChat
import React from 'react'; import RoomListPropTypes from './RoomListPropTypes'; import RoomItem from '../RoomItem/RoomItem'; const RoomList = (props)=>{ const onRoomClick = (id)=>{ props.onRoomClick(id); }; const roomItems = props.rooms.map( (item)=>( <RoomItem key={item.id} onR...
src/Components/Presentational/MessageSend/MessageSend.js
DeadManPoe/ReactChat
import React from 'react'; import PropTypes from 'prop-types'; import MessageSendPropTypes from './MessageSendPropTypes'; class MessageSend extends React.Component { constructor(){ super(); this.state = { message : '' } } render(){ return ( <div> ...
example/script.js
thejameskyle/react-access
import React from 'react'; import ReactDOM from 'react-dom'; import { AccessProvider, AccessTree, AccessElement } from '../src/index'; const accessTree = window.tree = new AccessTree(); accessTree.observe('ExampleType', function(node) { console.log(node.type + ':' + node.id + ':add'); function onClick() { ...
js/components/App.react.js
wuyuanyi135/react-template
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Nav, NavItem, Navbar, MenuItem } from 'react-bootstr...
fields/types/password/PasswordField.js
ONode/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InlineGroup as Group, InlineGroupSection as Section, } from '../../../admin/client/App/elemental'; module.exports = Field.create({ displayName: 'PasswordField', statics: { type: 'Password', }, getInitialState () { return...
src/scripts/pages/Members.page.js
kodokojo/kodokojo-ui
/** * 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 ...
react/JobLabel/JobLabel.js
seekinternational/seek-asia-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import Badge from '../Badge/Badge'; import styles from './JobLabel.less'; const JobLabel = ({ applied, expired, viewed, isNewJob }) => { return applied || expired || viewed || isNewJob ? ( <span className={styles.badgeWrapper}> {(isNewJob && <B...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/formattedinput/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxFormattedInput from '../../../jqwidgets-react/react_jqxformattedinput.js'; class App extends React.Component { render () { return ( <JqxFormattedInput width={200} height={25} radix={'decimal'} value={15} spinButtons={tr...
build-bench/src/IncludesDisplay.js
FredTingaud/quick-bench-front-end
import React from 'react'; import Editor from 'components/Editor.js'; class DisplayEditor extends React.Component { render() { const options = { selectOnLineNumbers: true, readOnly: true, tabSize: 2, showFoldingControls: "always", foldingStrategy:...
src/object-inspector/ObjectLabel.js
xyc/react-inspector
import React from 'react'; import PropTypes from 'prop-types'; import ObjectName from '../object/ObjectName'; import ObjectValue from '../object/ObjectValue'; import ObjectPreview from './ObjectPreview'; /** * if isNonenumerable is specified, render the name dimmed */ const ObjectLabel = ({ name, data, isNonenumerab...
app/components/auth/signout.js
SmartPowerSocket/DesktopApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; class Signout extends Component { static propTypes = { signoutUser: React.PropTypes.function } componentWillMount() { this.props.signoutUser(); } render() { return (<div> ...
src/common-ui/components/ConfirmModalBtn.js
WorldBrain/WebMemex
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import styles from './ConfirmModal.css' const ConfirmModalBtn = ({ disabled, children, cancel = false, ...btnProps }) => ( <a className={cx(styles.btn, styles.confirmBtn, { [styles.cancelBt...
src/components/MoneyTrackingTable.js
ShaunMcNamee/budget-app
import React from 'react'; import PropTypes from 'prop-types'; import { CurrencyTableCell, PositiveNegativeCurrencyTableCell, CurrencyTableCellHeader } from './CurrencyCells'; class MoneyTrackingTable extends React.Component { render() { var totalMonthly = 0; var totalYear = 0; var totalRemaining = 0; ...
app/javascript/mastodon/features/ui/components/modal_loading.js
lindwurm/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
src/routes/login/index.js
takahashik/todo-app
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
client/components/FormMessageList/FormMessageList.js
ncrmro/reango
import React from 'react' const FormMessageList = (props) => <ul className="FormMessageList" style={{ margin: 'auto', minHeight: '10px' }}> { props.messages.map(error => <li key={error.id || error.key} > {error.message} </li> ) } <...
examples/preact/src/components/Button/Button.js
sapegin/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import './Button.css'; /** * The only true button. */ export default function Button({ color, size, children }) { const styles = { color, fontSize: Button.sizes[size], }; return ( <button className="button" style={styles}> {children} </bu...
src/client/components/search/GridEntityActions.js
gearz-lab/gearz
import React from 'react'; import {ButtonGroup, Button} from 'react-bootstrap'; import _ from 'underscore'; export default React.createClass({ propTypes: { selection: React.PropTypes.object, rows: React.PropTypes.array, handleSelectionChange: React.PropTypes.func }, handleAction: ...
src/client/app/app.react.js
steida/songary
import './app.styl'; import Component from '../components/component.react'; import Footer from './footer.react'; import Header from './header.react'; import React from 'react'; import createActions from './createactions'; import exposeRouter from '../components/exposerouter'; import firebase from '../firebase/decorate'...
js/components/developer/job-information-screen/index.js
justarrived/p2p-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Tab, Tabs } from 'native-base'; import JobDetails from './jobDetails'; import ChooseWorkerScreen from '../choose-worker-screen'; import I18n from '../../../i18n'; class JobInformationScreen extends Component { static...
client/modules/core/components/button.js
yanisurbis/mantra-750words
import React from 'react' const Button = ({number, inc}) => { return ( <button onClick={inc} > <h1>{number}</h1> </button> ) } export default Button
app/components/relog-in-box.js
sirbrillig/voyageur-js-client
import React from 'react'; import { connect } from 'react-redux'; import Notices from 'components/notices'; import { clearNotices } from 'lib/actions/general'; import { doAuthWithPassword, ignoreExpiredToken } from 'lib/actions/auth'; class RelogInBox extends React.Component { componentDidMount() { if ( this.pri...
node_modules/react-bootstrap/es/InputGroupButton.js
ProjectSunday/rooibus
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
frontend/src/index.js
mmlado/animal_pairing
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
examples/6_browser_history/index.js
losogudok/losogudok.github.io
import React from 'react' import ReactDOM from 'react-dom' import {Switch, Router, Route} from 'react-router' import {Link} from 'react-router-dom' import createHistory from 'history/createBrowserHistory' const history = createHistory() const NewRecipe = () => ( <div> <div>Новый рецепт</div> <text...
src/scenes/home/mentorRequest/mentorRequest.js
tal87/operationcode_frontend
import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import Form from 'shared/components/form/form'; import FormButton from 'shared/components/form/formButton/formButton'; import FormInput from 'shared/components/form/formInput/formInput'; import FormSelect from 'shared/components/form...
app/index.js
ianwcarlson/react-multimedia-portfolio
import React from 'react'; import ReactDOM from 'react-dom'; import VideoGrid from './components/VideoGrid.jsx'; import Navigation from './components/Navigation.jsx'; ReactDOM.render(<Navigation />, document.getElementById('navigation-container')); ReactDOM.render(<VideoGrid />, document.getElementById('app-container'...
src/pages/dynamic/Sumpath/Sumpath.js
hyy1115/react-redux-webpack2
import React from 'react' class Sumpath extends React.Component { render() { return ( <div>Sumpath</div> ) } } export default Sumpath
app/javascript/mastodon/features/ui/components/column.js
rainyday/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
client/components/profile.js
guyonroche/quaero
import React from 'react'; const Profile = props => ( <div className="question"> Checkout your account here </div> ); export default Profile;