path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/notification/wifi.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWifi = (props) => ( <SvgIcon {...props}> <path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9...
app/client/src/routes/manageCampaignVolunteers/index.js
uprisecampaigns/uprise-app
import React from 'react'; import ManageCampaignVolunteers from 'scenes/ManageCampaignVolunteers'; import Layout from 'components/Layout'; import organizeCampaignPaths from 'routes/organizeCampaignPaths'; export default organizeCampaignPaths({ path: '/organize/:slug/volunteers', component: campaign => ( <Lay...
src/svg-icons/image/broken-image.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrokenImage = (props) => ( <SvgIcon {...props}> <path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ...
packages/carbon-react/src/components/Layer/index.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { usePrefix } from '../../internal/usePref...
src/containers/EditPetition.js
iris-dni/iris-frontend
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import { fetchPetition } from 'actions/PetitionActions'; import { updateSuggestionInputValue } from 'actions/AutocompleteActions'; import settings from 'settings'; import cityS...
src/components/App.js
migueliriano/react-anime-project
import React from 'react'; import { Provider } from 'react-redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { Switch, Route } from 'react-router-dom'; import Home from 'containers/Home'; import SingleAnimePage from 'containers/SingleAnimePage'; import configureStore from 'configureSt...
examples/example4.js
gabrielbull/react-tether2
import React, { Component } from 'react'; import Target from './example4/target'; import Source from './example4/source'; class Example4 extends Component { getTarget = () => this.refs.target; render() { return ( <div style={{ background: 'red', position: 'relative', padding: '20px' }}> <div sty...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
Bogala/create-react-app-awesome-ts
/** * Copyright (c) 2015-present, Facebook, Inc. * * 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 './assets/style.css'; export default () => <p id="feature-css-inclusion">We love useless text.</p>;
examples/with-algolia-react-instantsearch/components/app.js
arunoda/next.js
import React from 'react' import PropTypes from 'prop-types' import { RefinementList, SearchBox, Hits, Configure, Highlight, Pagination } from 'react-instantsearch/dom' import { InstantSearch } from './instantsearch' const HitComponent = ({ hit }) => <div className='hit'> <div> <div className='...
src/redux/components/App.js
davidraleigh/universal-redux-starter-todo
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default App
admin/client/App/screens/Item/components/EditFormHeader.js
benkroeger/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
app/views/Resume.js
sysrex/sysrex
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import Helmet from 'react-helmet'; import axios from 'axios'; import Main from '../layouts/Main'; import Education from '../components/Resume/Education'; import Experience from '../components...
src/svg-icons/action/zoom-in.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
react-components/src/library/components/site-notices/notices.js
concord-consortium/rigse
import React from 'react' import Notice from './notice' import css from './style.scss' export default class Notices extends React.Component { constructor (props) { super(props) this.renderNoNotices = this.renderNoNotices.bind(this) } renderNoNotices () { return ( <div className={css.adminSite...
static/src/containers/Group.js
cas-x/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-03-14T10:30:11+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T17:23:02+08:00 * @License: The MIT License (MIT) */ import React, { Component } from 'react'; import Antd, { Table, Button, Row, Col, Input, ...
src/components/Promises/promises_categories_tabs.js
Betree/democracy-watcher
import React from 'react' import TabsView from '../Utils/tabs_view' import PromisesList from './promises_list' const PromisesCategoriesTabs = ({categories, promises}) => { // Categorize promises in an object const promisesTabs = [] for(let category of categories) { const promisesList = <PromisesList promi...
src/index.js
chasm/react-redux-base
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App.jsx' const app = document.createElement('div') document.body.appendChild(app) ReactDOM.render(<App/>, app)
newclient/scripts/components/user/sidebar-step/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
frontend/src/AddMovie/AddNewMovie/AddNewMovieConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { clearAddMovie, lookupMovie } from 'Store/Actions/addMovieActions'; import { clearQueueDetails, fetchQueueDetails } from 'Store/Actions/queueActions'; i...
stories/Dropdown/ExampleWithCustomValue.js
skyiea/wix-style-react
import React from 'react'; import Dropdown from 'wix-style-react/Dropdown'; import Checkbox from 'wix-style-react/Checkbox'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px', marginBottom: '350px' }; class CustomValuesInDropdown extends React.Component { con...
src/components/App/index.js
mvaldas9/wallscreen
import './styles.css'; import React from 'react'; import Background from '../Background'; import Clock from '../Clock'; import Board from '../Board'; import Settings from '../Settings'; class App extends React.Component { render() { return ( <div className="app"> <Background /> <Clock /> ...
src/components/Main.js
bjhan/mytesthome
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; //获取图片的信息 var imageDatas = require('../data/imageDatas.json'); //利用自执行函数,返回图片的URL信息 imageDatas = (function getImageURL(imageDatasArr) { for(var i = 0;i < imageDatasArr.length; i++){ var singleImageData = imageDatasArr[i...
packages/reactor-tests/src/App.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Router, Route, IndexRoute, Link, hashHistory } from 'react-router' import * as tests from './tests'; import Layout from './Layout'; import TestIndex from './TestIndex'; export default class App extends Component { render() { return ( <Router h...
src/Tooltip.js
adampickeral/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
packages/watif-display/src/components/display.js
jwillesen/watif
import React from 'react' import {func, string} from 'prop-types' import {FontAwesomeIcon} from '@fortawesome/react-fontawesome' import {faBook, faEye, faSearch, faHandHoldingBox} from '@fortawesome/pro-regular-svg-icons' import {Tabs, TabPanel} from './tabs' import InteractiveDescription from './interactive-descriptio...
src/svg-icons/editor/vertical-align-center.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignCenter = pure(EditorVerticalAlig...
node_modules/react-bootstrap/es/Badge.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/assets/js/layout/GenreSlide.js
fga-verival/2017-1Grupo2
import React from 'react'; import Slider from 'react-slick' require("slick-carousel/slick/slick.css"); require("slick-carousel/slick/slick-theme.css"); import GameCard from "../components/cards/GameCard"; import { gameListApi } from '../resource/GameApi'; import { Link } from 'react-router-dom' import { Grid } from 'se...
app/containers/App.js
lumibloc/tabloc
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
docs/src/Anchor.js
roderickwang/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.number ]) }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className="anchor"> <span className="anchor-ic...
imports/ui/pages/reset-password.js
irvinlim/free4all
import React from 'react'; import { Grid, Row, Col, Alert, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import { handleResetPassword } from '../../modules/reset-password'; export class ResetPassword extends React.Component { componentDidMount() { handleResetPassword({ component: t...
src/index.js
GiacomoSorbi/8-form-elements
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/common/components/AuthenticationManager.js
BitLooter/Stuffr-frontend
import React from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import log from 'loglevel' import LoginDialog from './LoginDialog' import RegisterDialog from './RegisterDialog' import PasswordResetDialog from './PasswordResetDialog' const MODE_LOGIN = Symbol('MODE_LOGIN') ...
src/index.js
nebgnahz/marry-guess
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/index.js
mitchallen/react-card-grey
/* Module: @mitchallen/react-card-grey Author: Mitch Allen */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; // import { withRouter } from 'react-router-dom'; import Paper from 'material-ui/Paper'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; const paperSt...
node_modules/antd/es/anchor/index.js
prodigalyijun/demo-by-antd
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-run...
src/svg-icons/social/group-add.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialGroupAdd = (props) => ( <SvgIcon {...props}> <path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91....
src/encoded/static/components/anno_viz.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'underscore'; import moment from 'moment'; import globals from './globals'; import { Panel, PanelHeading, TabPanel, TabPanelPane } from '../libs/bootstrap/panel'; import { Modal, ModalHeader, ...
src/Footer.js
leeppolis/bookmarks
import React, { Component } from 'react'; class Footer extends Component { render() { return ( <div className="body-wrapper"> <footer> <small> © <a href="https://simonelippolis.com">Simone Lippolis</a>. All opinions are mine. </small> </footer> </div> ); } } export default Footer;
app/javascript/mastodon/features/getting_started/index.js
ikuradon/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/components/sortable_list/sortable_list.js
thinktopography/reframe
import PropTypes from 'prop-types' import React from 'react' import Item from './item' import _ from 'lodash' class SortableList extends React.Component { render() { const { items } = this.props return ( <div className="reframe-sortable-list"> { items.map((item, index) => ( <Item key...
src/routes/Editor/components/EmailsTab.js
peksi/ilmomasiina
import React from 'react'; import PropTypes from 'prop-types'; import { Textarea } from 'formsy-react-components'; class EmailsTab extends React.Component { static propTypes = { onDataChange: PropTypes.func.isRequired, event: PropTypes.object, }; render() { return ( <div> <Textarea ...
docs/src/examples/elements/Step/Variations/StepExampleSizeBig.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleSizeBig = () => ( <Step.Group size='big'> <Step> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> </Step.Content> </Step> <Step active> <Icon name='payment' /> ...
src/Divider/Divider.js
IsenrichO/mui-with-arrows
import React from 'react'; import PropTypes from 'prop-types'; const Divider = (props, context) => { const { inset, style, ...other } = props; const { baseTheme, prepareStyles, } = context.muiTheme; const styles = { root: { margin: 0, marginTop: -1, marginLeft: ins...
spec/components/layout.js
rahultaglr/taglr-toolbox
import React from 'react'; import { AppBar, Checkbox, Dropdown, IconButton, RadioGroup, RadioButton } from '../../components'; import { Layout, NavDrawer, Panel, Sidebar } from '../../components'; const dummyText = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the ind...
app/components/HomeComponents/TransactionTable.js
hlynn93/basic_ims
import React, { Component } from 'react'; import { Table, Icon, Button, Container } from 'semantic-ui-react'; class TransactionTable extends Component { props: { transactions: [], items: [], onDelete: () => void, onOrder: () => void } render() { const { transactions, items, onOrder, onDelete...
javascript/containers/current-stock-page.js
kdoran/moriana-react
import React from 'react' import { connect } from 'react-redux' import { getItems } from 'store/items' import h from 'utils/helpers' import {buildStockCardHref} from 'components/stockcard-link' const CurrentStockPage = class extends React.Component { state = { activeFilter: 'all', displayedItems: null } component...
src/components/category_frequency_all.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import ReactDOM from 'react-dom'; var SimpleTooltipStyle = require('react-d3-tooltip').SimpleTooltip; var BarTooltip = require('react-d3-tooltip').BarTooltip; //category by frequency const CategoryFreAll = ({data}) => { //activity trend by departments var generalChartData = data; var w...
src/components/SideMenu/index.js
PalmasLab/palmasplay
import React from 'react' import styles from './styles.css' const MenuSection = ({title, icon, children}) => ( <ul> <li className={styles.title}><strong>{title}</strong><i className={`fa fa-${icon}`}></i></li> {children} </ul> ) export const SideMenu = () => ( <div className={styles.sideMe...
src/components/numeric-input.js
bhongy/react-components
/** * A thin wrapper around HTMLInputElement that state as number type * rather than string - avoid ad-hoc string/number handling at use sites. * Handles precision and trailing period. See unit tests for the detail spec. * * TODO: handle formatting (could be tricky with change event value) * * @flow */ import ...
pages/blog/test-article-one.js
fmarcos83/mdocs
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 1</h1> <p>Co...
js/jqwidgets/demos/react/app/chart/dashboard/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let data1 = [ { text: 'Used', value: 55 }, { text: 'Available', value: 9 } ...
app/boards/motec-d153/components/warnings.js
fermio/motorsport-display
import React from 'react'; import _ from 'lodash'; import { EngineWarnings } from '../../constants'; const Warnings = React.createClass({ propTypes: { warnings: React.PropTypes.array }, getDefaultProps: function() { return { warnings: [] } }, shouldComponent...
packages/@lyra/vision/src/containers/LoadingContainer.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' import request from '../util/request' // Yeah, inheritance and all that. Deal with it. class LoadingContainer extends React.PureComponent { constructor() { super() if (!this.getSubscriptions) { throw new Error( `${ this.con...
webapp/app/components/Spinner/index.js
EIP-SAM/SAM-Solution-Node-js
// // Spinner components to display during ajax requests // Props: // color: optional, choose the spinner's color // size: optional, choose the spinner's size // className: optional, add your own css here, to center the component etc... // Example: // import Spinner from 'components/Spinner'; // ... // ...
fields/types/datetime/DatetimeField.js
xyzteam2016/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'DatetimeField', statics: { type: 'Datetime', }, ...
src/routes/mypolls/index.js
binyuace/vote
import React from 'react'; import Layout from '../../components/Layout'; async function action({ fetch, store }) { const resp = await fetch('/api/polls', { method: 'GET', }); const data = await resp.json(); const state = store.getState(); if (!data) throw new Error('Failed to load the polls feed.'); co...
app/components/TagsForm/index.js
54vanya/ru-for-you-front
/** * * TagsInput * */ import React from 'react'; import styled from 'styled-components'; import Input from 'components/Input'; import Button from 'components/Button'; const AddButtonWrapper = styled.div` position:relative; float: right; input{ height:42px; border-bottom-left-radius:0; border-to...
src/svg-icons/av/repeat.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeat = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/> </SvgIcon> ); AvRepeat = pure(AvRepeat); AvRepeat.displayName = 'AvRepeat'; AvRepeat.mu...
docs/app/Examples/elements/Button/Groups/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ButtonGroupsExamples = () => ( <ExampleSection title='Groups'> <ComponentExample title='Group' description='But...
vgdb-frontend/src/components/nav/NavItem.js
mattruston/idb
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import './NavItem.css'; /* Link or Text item on the nav */ class NavItem extends Component { static defaultProps = { bold: false } render() { return ( /* Probably needs to be a router-link or some...
addons/storyshots/stories/directly_required/Button.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px', margin: 10, }; const Button = ({ children, onClick }) => <button style={buttonStyles} onCli...
src/containers/Admin/Chats/Chats.js
EncontrAR/backoffice
import React, { Component } from 'react'; import ContactList from '../../../components/admin/conversations/contactList'; import chatActions from '../../../redux/chat/actions'; import { connect } from 'react-redux'; const { indexAllConversations } = chatActions; class Chats extends Component { render() { retu...
src/js/components/App.js
MarcusWasTaken/ArmelloCards
import React from 'react' import Deck from '../containers/Deck' import DeckList from '../containers/DeckList' import Filters from '../containers/Filters' import 'css/app' const App = () => ( <div className="app clearfix"> <div className="main"> <DeckList /> <Deck /> </div> <aside className="a...
docs/src/pages/premium-themes/onepirate/modules/views/AppForm.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Container from '@material-ui/core/Container'; import Box from '@material-ui/core/Box'; import { withStyles } from '@material-ui/core/styles'; import Paper from '../components/Paper'; const styles = (theme) => ({ root: { display: 'flex', ba...
react/features/conference/components/native/ConferenceTimerDisplay.js
bgrozev/jitsi-meet
// @flow import React from 'react'; import { Text } from 'react-native'; import styles from './styles'; /** * Returns native element to be rendered. * * @param {string} timerValue - String to display as time. * * @returns {ReactElement} */ export default function renderConferenceTimer(timerValue: string) { ...
app/components/Settings/ChannelSelector.js
TheCbac/MICA-Desktop
// @flow /* ********************************************************** * File: ChannelSelector.js * * Brief: React component for choosing which of the sensor * channels that are active. * * Authors: Craig Cheney * * 2017.09.12 CC - Document created * ********************************************************* */ import R...
webapp/app/components/Tr/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component <tr></tr> // import React from 'react'; /* eslint-disable react/prefer-stateless-function */ export default class Tr extends React.Component { render() { const ComponentToRender = this.props.component; let content = null; content = this.props.items.map((item, index) => ( <Componen...
app/js/components/header.js
pauloelias/simple-webpack-react
import React from 'react'; export default class Header extends React.Component { render() { return ( <div> <p>This is the amazing <b>header</b>.</p> </div> ) }; }
react-router-webpack-code-splitting/src/app.js
LiuuY/code-splitting-demo
import React from 'react' import {BrowserRouter, Link, Route} from 'react-router-dom' // getComponent is a function that returns a promise for a component // It will not be called until the first mount function asyncComponent(getComponent) { return class AsyncComponent extends React.Component { static Component =...
js/components/loaders/ProgressBar.android.js
fahrulrizall/projectuts
import React, { Component } from 'react'; import ProgressBar from 'ProgressBarAndroid'; export default class SpinnerNB extends Component { render() { return ( <ProgressBar {...this.prepareRootProps()} styleAttr="Horizontal" indeterminate={false} progress={this.props.prog...
imports/components/Signup.js
adderpositive/chat-app
/*================================================ Signup ====== - is component for UI architecture of sign up @imports - react ================================================ */ // imports import React from 'react'; const Signup = ({ name, email, password, passwordRepeated, setName, setEmail,...
packages/mineral-ui-icons/src/IconLineWeight.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconLineWeight(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
src/svg-icons/av/stop.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvStop = (props) => ( <SvgIcon {...props}> <path d="M6 6h12v12H6z"/> </SvgIcon> ); AvStop = pure(AvStop); AvStop.displayName = 'AvStop'; AvStop.muiName = 'SvgIcon'; export default AvStop;
src/client/components/TrippianListItemRoundWidget/TrippianListItemRoundWidget.js
trippian/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' const TrippianListItemRoundWidget = ({ name = 'Amanda . Sydney', id, picture = 'lorempixel.com/200/200/people/' }) => { return ( <div className="popular-trippians-item text-center"> <Link to={`trippian/${id}`}> ...
client/common/components/DropdownFilter.js
Haaarp/geo
import React from 'react'; import { SplitButton, MenuItem } from 'react-bootstrap'; /* * Props: * items: Array * title: String */ const DropdownFilter = (props) => ( <div className="guide-dropdown-wrap"> <SplitButton title={props.title} pullLeft className="guide-dropdown-custom"> {props.items...
client/views/admin/settings/inputs/ActionSettingInput.js
VoiSmart/Rocket.Chat
import { Button, Field } from '@rocket.chat/fuselage'; import React from 'react'; import { useMethod } from '../../../../contexts/ServerContext'; import { useToastMessageDispatch } from '../../../../contexts/ToastMessagesContext'; import { useTranslation } from '../../../../contexts/TranslationContext'; function Acti...
src/components/search_bar.js
scepticulous/react-video-player
import React, { Component } from 'react'; // const SearchBar = () => { // return <input />; // }; class SearchBar extends Component{ constructor(props) { super(props); this.state = { term: '' }; } render = () => { return ( <div className="search-bar"> ...
src/index.js
vladpolonskiy/news-feed-react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import store from './store'; import {Provider} from 'react-redux'; import {Router, browserHistory} from 'react-router'; import {routes} from './routes'; ReactDOM.render( <Provider store={store}> <Router history={browserHistory} routes={routes} /> </Pr...
src/layouts/ErrorPage/index.js
IntellectionStudio/intellection.kz
import React from 'react'; import Page from 'layouts/Page'; import styles from './index.css'; const STATUS_CODE_NOT_FOUND = 404; const ErrorPage = ({ error = STATUS_CODE_NOT_FOUND, errorText = 'Page Not Found', ...restProps }) => { const pageProps = Page.pickPageProps(restProps); return ( <Page ...
HomeScreen.js
bakin-bacon/app
import React, { Component } from 'react'; import { StyleSheet, View, Text, } from 'react-native'; import * as Colors from './Colors'; export class HomeScreen extends Component { static navigationOptions = { title: "Bakin' Bacon", }; render() { return ( <View style={styles.c...
src/containers/About.js
u-wave/web
import React from 'react'; import UwaveContext from '../context/UwaveContext'; import Overlay from '../components/Overlay'; import About from '../components/About'; const { useContext, } = React; function AboutContainer(props) { const uwave = useContext(UwaveContext); const component = uwave.getAboutPageCompone...
app/components/Footer/index.js
jdelatorreitrs/react-boilerplate
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
examples/PopoverExample.js
instea/react-native-popup-menu
import { Menu, MenuProvider, MenuOptions, MenuTrigger, renderers, } from 'react-native-popup-menu'; import { Text, View, StyleSheet } from 'react-native'; import React from 'react'; const { Popover } = renderers const MyPopover = () => ( <Menu renderer={Popover} rendererProps={{ preferredPlacement: 'botto...
src/plugins/position/components/TableEnhancer.js
joellanciaux/Griddle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from '../../../utils/griddleConnect'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { setScrollPosition } from '../actions'; cons...
src/app/components/AudioEditor.js
skratchdot/audio-editor
import React, { Component } from 'react'; import { Row, Col, Jumbotron } from 'react-bootstrap'; import { connect } from 'react-redux'; import AudioPlayer from './AudioPlayer'; import WaveformAmplitude from './display/WaveformAmplitude'; import DisplayContainer from './DisplayContainer'; import DisplayMessage from './D...
frontend/src/components/common/hoc/tableWithStateInUrl.js
unicef/un-partner-portal
// eslint-disable-next-line import React, { Component } from 'react'; import R from 'ramda'; import PropTypes from 'prop-types'; import { browserHistory as history, withRouter } from 'react-router'; import { connect } from 'react-redux'; import { updateOrder, calculatePaginatedPage, updatePageNumberSize, update...
admin/client/App/screens/Item/index.js
dvdcastro/keystone
/** * Item View * * This is the item view, it is rendered when users visit a page of a specific * item. This mainly renders the form to edit the item content in. */ import React from 'react'; import { Container, Spinner } from 'elemental'; import { connect } from 'react-redux'; import { Link } from 'react-router'...
src/svg-icons/editor/mode-comment.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorModeComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/> </SvgIcon> ); EditorModeComment = pure(EditorModeComment); Edito...
docs/src/app/pages/components/Modal/ExampleModalCustomTitle.js
GetAmbassador/react-ions
import React from 'react' import Modal from 'react-ions/lib/components/Modal' import Header from 'react-ions/lib/components/Modal/Header' import Button from 'react-ions/lib/components/Button' class ExampleModalCustomTitle extends React.Component { constructor(props) { super(props) this.state = { open: ...
docs/app/Examples/addons/Radio/States/index.js
Rohanhacker/Semantic-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 'semantic-ui-react' const RadioStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample...
src/app/components/menuComponents/SettingsMenuItems.js
preeminence/react-redux-skeleton
import React from 'react'; import Settings from 'material-ui/svg-icons/action/settings'; import MenuListItem from './MenuListItem'; import appActions from '../../appActions'; class SettingsMenuItems extends React.Component { handleThemeChange() { this.props.dispatch(appActions.themeChanged()); } handleToggl...
examples/draft-0-10-0/tex/js/components/TeXEditorExample.js
tonygentilcore/draft-js
/** * Copyright (c) 2013-present, Facebook, Inc. All rights reserved. * * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCL...
client/components/AltFooter/index.js
Elektro1776/Project_3
import React, { Component } from 'react'; import { Button } from 'react-toolbox/lib/button'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; class AltFooter extends Component { constructor() { super(); this.state = { }; } render() { const styles = { basic: { ...
src/browser/users/UsersPage.js
reedlaw/read-it
// @flow import OnlineUsers from './OnlineUsers'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box, PageHeader } from '../../common/components'; import { Title } from '../components'; const UsersPage = () => ( <Box> <Title message={linksMessages.users} /> <P...
src/toolbar/SearchField.js
prajapati-parth/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; class SearchField extends Component { getValue() { return ReactDOM.findDOMNode(this).value; } setValue(value) { ReactDOM.findDOMNode(this).value = value; } render() { const { c...
src/app/components/blocks/_copyright.js
maullerz/eve-react
import React from 'react' const _copyright = ({info}) => { return <div className='row'> <div className='col-md-12'> <div className='grayback t-small'> <div className="row"> <div className="col-md-9 col-first"> EVE Online and the EVE logo are the registered trademarks of CCP h...
electron/app/components/PlusButton.js
zindlerb/motif
import React from 'react'; import classname from 'classname'; function PlusButton(props) { return ( <i onClick={props.onClick} className={classnames("fa fa-plus-circle", props.className)} aria-hidden="true" /> ); } export default PlusButton;
src/lib/plugins/hostname.js
Hyperline/hyperline
import os from 'os' import React from 'react' import Component from 'hyper/component' import SvgIcon from '../utils/svg-icon' class PluginIcon extends Component { render() { return ( <SvgIcon> <g fill="none" fillRule="evenodd"> <g className="hostname-icon" tra...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/packages-step/add-item.js
Automattic/woocommerce-services
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { localize } from 'i18n-calypso'; import { includes, size, some } from 'lodash'; import { CheckboxControl } from '@wor...