path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/components/icons/List.js
webrecorder/webrecorder
import React from 'react'; function List() { return ( <svg width="18px" height="16px" viewBox="0 0 18 16" version="1.1" xmlns="http://www.w3.org/2000/svg"> <g stroke="none" strokeWidth="1" fill="none" fillRule="evenodd" opacity="0.6"> <g id="List-on-Cover-Page" transform="translate(-9.000000, -20....
src/components/SelectInputKeyboard/SelectInputKeyboard.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import PropTypes from 'prop-types'; import styled, { ThemeProvider } from 'styled-components'; import _ from 'lodash'; import { RequiredText } from '../RequiredText/RequiredText'; import { typography, colors, renderThemeKeyOrDefaultValue } from '../styles'; import Dropdown from './Dropdown';...
src/svg-icons/action/camera-enhance.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCameraEnhance = (props) => ( <SvgIcon {...props}> <path d="M9 3L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2h-3.17L15 3H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.2...
addons/info/src/components/PropVal.js
nfl/react-storybook
import React from 'react'; import createFragment from 'react-addons-create-fragment'; const valueStyles = { func: { color: '#170', }, attr: { color: '#666', }, object: { color: '#666', }, array: { color: '#666', }, number: { color: '#a11', }, string: { color: '#22a', ...
src/svg-icons/av/volume-up.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeUp = (props) => ( <SvgIcon {...props}> <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91...
frontend/src/components/submitcast/ShowTimePicker.js
tanzdervampire/website
// @flow import React from 'react'; import PropTypes from 'prop-types'; import TimePicker from 'material-ui/TimePicker'; import './ShowTimePicker.css'; class ShowTimePicker extends React.Component { static propTypes = { onTimeSelected: PropTypes.func.isRequired, selectedTime: PropTypes.instance...
ui/js/pages/library/Library.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { loadCategory, loadItem, unloadCategory, unloadItem } from '../../actions'; import List from '../../components/List'; import Loading from '../../componen...
admin/client/App/shared/Popout/PopoutListItem.js
cermati/keystone
/** * Render a popout list item */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, isSelected: React.PropTy...
docs/app/Examples/elements/List/Content/ListExampleDescription.js
shengnian/shengnian-ui-react
import React from 'react' import { List } from 'shengnian-ui-react' const ListExampleDescription = () => ( <List> <List.Item> <List.Icon name='marker' /> <List.Content> <List.Header as='a'>Krowlewskie Jadlo</List.Header> <List.Description>An excellent polish restaurant, quick delivery...
server/priv/js/components/Bench.react.js
ethercrow/mzbench
import React from 'react'; import BenchStore from '../stores/BenchStore'; import BenchNav from './BenchNav.react'; import BenchOverview from './BenchOverview.react'; import BenchGraphs from './BenchGraphs.react'; import BenchReports from './BenchReports.react'; import BenchScenario from './BenchScenario.react'; import...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
res-ac/mstdn.res.ac
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import IconButton from '../../../...
src/svg-icons/editor/vertical-align-top.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignTop = (props) => ( <SvgIcon {...props}> <path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/> </SvgIcon> ); EditorVerticalAlignTop = pure(EditorVerticalAlignTop); EditorVerticalAlignTop.dis...
lib/Icon/stories/Contexts.js
folio-org/stripes-components
/** * Icon -> various icon context examples */ import React from 'react'; import Icon from '../Icon'; import Headline from '../../Headline'; import Button from '../../Button'; export default () => { return ( <> <Headline size="x-large"> <Icon icon="arrow-left"> Back </Icon> ...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/directoryinfobar.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' const colorBackDisabled = '#C5C5C5' const colorBackEnabled = '#00CBA0' const DirectoryInfoBar = ({path, nfiles, onBackClick}) => { const backButtonStyle = { color: (() => { if (path === '') { return colorBackDisabled } return colorBackEnable...
src/js/AnimalsApp.js
bcongdon/gdq-stats
import React from 'react' import ReactDOM from 'react-dom' import axios from 'axios' import { GDQ_STORAGE_ENDPOINT, PRIMARY_COLOR, SECONDARY_COLOR } from './constants' import { BarChart, Bar, Tooltip, ResponsiveContainer, XAxis, YAxis, CartesianGrid } from 'recharts' import PacmanLoader from 'halogen/Pa...
src/svg-icons/av/closed-caption.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvClosedCaption = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5...
stories/examples/InputGroupAddon.js
reactstrap/reactstrap
import React from 'react'; import { InputGroup, InputGroupText, Input } from 'reactstrap'; const Example = (props) => { return ( <div> <InputGroup> <InputGroupText>To the Left!</InputGroupText> <Input /> </InputGroup> <br /> <InputGroup> <Input /> <InputGro...
ui/src/components/MapTileLayer.js
brocaar/lora-app-server
import React, { Component } from 'react'; import { TileLayer } from 'react-leaflet'; class MapTileLayer extends Component { render() { return( <TileLayer url='//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png' attribution='&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributor...
test/components/WrappedButton.js
tizmagik/react-csjs
import React from 'react'; import { testStyles } from '../testUtil'; import withStyles from '../../src'; // Wrapped Syntax const ButtonComponent = ({ classes, children }) => ( <div className={classes.button}> <span className={classes.label}> {children} </span> </div> ); export default withStyles(tes...
examples/web/counter/counter-view.js
christyharagan/cycle-react
import React from 'react'; import * as InteractionTypes from './interaction-types'; import Counter from './counter-component'; export default function makeView(interactions, model) { return model.map(counter => <div> <Counter counter={counter} {...interactions.bindListeners(InteractionTypes)...
examples/counter/index.js
yz89/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
app/components/Header/Header.js
celikmus/MathWise
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text, TouchableOpacity } from 'react-native'; import { connect } from 'react-redux'; import { MaterialCommunityIcons } from '@expo/vector-icons'; import { getIconName } from '../../utils/icons'; import styles from './styles'; const Header = ...
tp-4/euge/src/app.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import { Provider } from 'react-redux'; import { BrowserRouter as Router } from 'react-router-dom'; import injectTapEventPlugin from './shared/components/tapEventPluginInjector'; import App from './pages/layout'; import configureStore from './redux/configureStore'; // bootstrap events for Ma...
src/components/learn/WordList.js
pcwu/word-pusher
import React from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'; import IconButton from 'material-ui/IconButton'; import { playAudio } from '../../utils'; import '../../css/Lesen.css'; const WordTable = ({ words }) => ( <Table> <TableHead...
blueocean-material-icons/src/js/components/svg-icons/hardware/memory.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareMemory = (props) => ( <SvgIcon {...props}> <path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2h2zm-4 6H...
src/ui/components/generic/_loginComponent.js
e-Ray/web_platform
import React from 'react'; import TextField from 'material-ui/TextField'; import Dialog from 'material-ui/Dialog'; import RaisedButton from 'material-ui/RaisedButton'; import { login } from '../../../api/Auth/_auth'; class LoginComponent extends React.Component { constructor(props) { super(props); this.sta...
test/regressions/site/src/tests/IconButton/ContrastIconButton.js
und3fined/material-ui
// @flow weak import React from 'react'; import IconButton from 'material-ui/IconButton'; import { deepOrange } from 'material-ui/styles/colors'; export default function ContrastIconButton() { return ( <IconButton contrast style={{ backgroundColor: deepOrange[500] }}>home</IconButton> ); }
src/Parser/Hunter/Marksmanship/Modules/Features/VulnerableUptime.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { ST...
src/components/P/SkeletonParagraph.js
Bandwidth/shared-components
import React from 'react'; import styled from 'styled-components'; import userSpacing from 'extensions/userSpacing'; import Skeleton from 'skeletons/Skeleton'; const SkeletonParagraphContainer = styled.div.attrs({ spacing: userSpacing, })` margin: ${props => props.spacing}; display: flex; flex-direction: colum...
src/components/desktop/pages/RenderTitle.js
Ruffeng/VERMELL_REDUX
import React from 'react'; import { Col } from 'react-bootstrap' const RenderTitle = (props) => ( <Col sm={8} style={{paddingLeft: 0}}> <h1>{props.title}</h1> </Col> ); export default RenderTitle;
src/ui/MonacoEditor.js
builden/react-electron-boilerplate
/// <reference path="../../node_modules/monaco-editor/monaco.d.ts" /> import React from 'react'; import PropTypes from 'prop-types'; import { registerProviders, watchContent } from './editor-extensions'; function noop() {} class MonacoEditor extends React.Component { constructor(props) { super(props); this...
src/components/Work.js
evelinalaroussi/evelinalaroussi.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; //import { Code } from '../styles/style'; //import s from '../styles/home.style'; import Icon from 'react-icons-kit'; //import icons import { arrowLeft } from 'react-icons-kit/icomoon'; export defaul...
packages/mineral-ui-icons/src/IconOfflinePin.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 IconOfflinePin(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
universal/routes.js
grishanin/auctionata
import React from 'react'; import { Route, /* IndexRoute */ } from 'react-router'; import App from './containers/App'; import AuctionContainer from './containers/AuctionContainer'; export default ( <Route path='/' component={App}> <Route path='auctions/:auctionId' component={AuctionContainer}></Route> </Route...
docs/src/IntroductionPage.js
jontewks/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
13. ReactJS Fundamentals - Feb 2019/05. Higher Order Components/Warning/warning/src/App.js
zrusev/SoftwareUniversity2016
import React, { Component } from 'react'; import Article from './components/Article/Article' import RegisterForm from './components/RegisterForm/RegisterForm' import Navigation from './components/Navigation/Navigation' import BindingForm from './components/BindingForm/BindingForm'; import warningWrapper from './hoc/war...
packages/reactor-kitchensink/src/examples/Lists/Grouped/Grouped.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { List } from '@extjs/ext-react'; Ext.require('Ext.Toast'); export default class GroupedListExample extends Component { store = Ext.create('Ext.data.Store', { autoLoad: true, proxy: { type: 'rest', url: 'resources/data/...
app/js/components/Footer.js
alex-xia/react-rocket-demo
'use strict'; import React from 'react'; class Footer extends React.Component{ constructor(props) { super(props); } render() { return ( <footer> Footer </footer> ); } } export default Footer;
app/javascript/mastodon/features/ui/components/embed_modal.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage, injectIntl } from 'react-intl'; import api from '../../../api'; export default @injectIntl class EmbedModal extends ImmutablePureComponent { static propTypes...
src/components/Torrent/ProgressBar/index.js
fcsonline/react-transmission
import React from 'react'; import CSSModules from 'react-css-modules'; import styles from './styles/index.css'; function getPercentage(torrent) { // TODO: Extract from session store if configure globally or grab torrent one const seedRatioLimit = torrent.seedRatioLimit; if (torrent.needsMetaData) { return ...
src/components/EyeIcon/EyeIcon.js
alopezitrs/ps-react-analo
import React from 'react'; /** SVG Eye Icon */ function EyeIcon() { // Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg return ( <svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22"> <g transform="matrix(.02146 0 0 .02146 1 1)" fill...
stories/examples/ToastHeaderIcon.js
reactstrap/reactstrap
import React from 'react'; import { Toast, ToastBody, ToastHeader, Spinner } from 'reactstrap'; const Example = (props) => { return ( <div> <Toast> <ToastHeader icon="primary"> Reactstrap </ToastHeader> <ToastBody> This is a toast with a primary icon — check it o...
src/components/obligee/PointNameCell.js
axmand/react-webpack-redux
import React from 'react' // import PropTypes from 'prop-types' // import ReactDOM from 'react-dom' import { connect } from 'react-redux' // import Dialog, { // DialogActions, // DialogContent, // DialogContentText, // DialogTitle, // } from 'material-ui/Dialog'; import Button from 'material-ui/Button';...
tom-binary-tree/src/compose.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' import { Rx } from 'tom' function composeStates(x, y) { return { model: [x.model, y.model], effect: x.effect || y.effect ? [x.effect, y.effect] : null } } function isNotNil(x) { return x !== null && x !== undefined } const empty$ = Rx.Observable.empty() const defaultTemplate ...
pages/index.js
dvorovenko/dvorovenko.github.io
import React from 'react'; export default () => ( <div className="l_root"> <div className="l_page m_active_page m_text_align"> <form action="" className="b_form"> <div className="title">Insert your Github name</div> <input placeholder="dvorovenko" type="text" className="text" /> <bu...
HTML/JavaScript/myapp-react-app/src/components/HelloReact.js
xiaoxiaoyao/MyApp
import React, { Component } from 'react'; class HelloReact extends Component{ constructor(props) { super(props); this.state = { name:props.name, num:props.num, HelloReactStyleObject:{ color:'red', fontSize:'24px' } }; }; handleChange(e) ...
public/components/tehtPage/tabsComponents/someuutiset/FieldKuvat.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; import { connect } from 'react-redux'; import Basic from '../reusables/templates/Basic'; import ShareButton from './ShareButton'; import { showAllImages, showPrioImages } from '../../../../reducer/images/actions'; const FieldKuvat = (props) => <div className="kuvat"> <p><b>Kuvat:...
src/media/js/addon/components/review.js
mozilla/marketplace-submission
import React from 'react'; import {ReverseLink} from 'react-router-reverse'; import {AddonListingForReview} from './listing'; import Search from '../components/search'; import AddonSubnav from '../components/subnav'; import {Page, PageSection} from '../../site/components/page'; import Paginator from '../../site/compon...
docs/app/Examples/elements/Image/Groups/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ImageTypesExamples = () => ( <ExampleSection title='Groups'> <ComponentExample title='Size' description='A grou...
lib/Navigation/Tabs/tabFour/views/TabFourScreenOne.js
Ezeebube5/Nairasense
import React from 'react'; import { View } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Container, Body, H1, Header, Left, Right, Button, Title } from 'native-base'; import Icon from 'react-native-vector-icons/FontAwesome'; import { Colors }...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
Viktorminator/coinvscoin
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/Footer/PdfFooter/index.js
korabh/quran.com-frontend
import React from 'react'; import Link from 'react-router/lib/Link'; const PdfFooter = () => ( <footer> <div className="container"> <div className="row"> <div className="col-md-12"> <p className="text-center"> This PDF is exported from {' '} <Link to="https://quran...
app/javascript/flavours/glitch/features/ui/components/bundle_modal_error.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from 'flavours/glitch/components/icon_button'; const messages = defineMessages({ error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading th...
components/card/cardTitle.js
react-material-design/react-material-design
import classNames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; // TODO: Avatar support /** Card Title */ const CardTitle = ({ title, subtitle, larger }) => (<section className="mdc-card__primary"> <h1 className={classNames('mdc-card__title', { 'mdc-card__title--large': l...
src/components/ColorButtons.js
robertkirsz/magic-cards-manager
import React from 'react' import PropTypes from 'proptypes' import cn from 'classnames' import _every from 'lodash/every' const ColorButtons = ({ colors, toggleAll, toggleNone, monocoloredOnly, multicoloredOnly, handleChangeMonocolored, handleChangeMulticolored }) => ( <div className="color-buttons btn-toolbar" role...
src/components/MenuButton/MenuButton.js
LemonsLab/Quiz
/** * Created by piotrandrzejewski on 21.10.2017. */ import React from 'react'; import { StyleSheet, Text, TouchableHighlight, View } from 'react-native'; class MenuButton extends React.Component { render(){ return( <TouchableHighlight style={styles.button} onPress={this.props...
app/src/components/Tutorial/index.js
civa86/electrophone
import React from 'react'; import icon from '../../../img/icon.png'; const Tutorial = () => { return ( <div id="tutorial" className="modal fade" tabIndex="-1" role="dialog"> <div className="modal-dialog" role="document"> <div className="modal-content"> <div ...
app/javascript/mastodon/features/status/components/detailed_status.js
5thfloor/ichiji-social
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
client/modules/App/components/DevTools.js
Theknickerbocker/UB_Grader
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
app/packs/src/components/generic/GenericElCriteria.js
ComPlat/chemotion_ELN
/* eslint-disable react/forbid-prop-types */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Row, Col } from 'react-bootstrap'; import { sortBy } from 'lodash'; import { GenProperties, GenPropertiesLayerSearchCriteria } from './GenericElCommon'; import GenericEl from '../m...
src/index.js
PanJ/rooftopkaraoke
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
app/javascript/mastodon/features/list_adder/components/account.js
ikuradon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from...
src/containers/Charts/reactChart2/components/radar/radar.js
EncontrAR/backoffice
import React from 'react'; import {Radar} from 'react-chartjs-2'; import { data } from './radarConfig'; class RadarChart extends React.Component { render() { return ( <Radar data={data} height={230} /> ); } }; export default RadarChart;
app/containers/App/index.js
OrenElad/picashare
/** * * 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) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
node_modules/react-select/src/utils/defaultMenuRenderer.js
premcool/getmydeal
import classNames from 'classnames'; import React from 'react'; function menuRenderer ({ focusedOption, instancePrefix, labelKey, onFocus, onSelect, optionClassName, optionComponent, optionRenderer, options, valueArray, valueKey, onOptionRef }) { let Option = optionComponent; return options.map((option,...
app/components/EarningsTableHeader/index.js
projectcashmere/web-server
/** * * EarningsTableHeader * */ import React from 'react'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; const Table = styled.table` background-color: grey; color: white; height: 40px; margin: 5px; width: 100%; `; function EarningsTab...
node_modules/react-select/src/Async.js
xuan6/admin_dashboard_local_dev
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; import stripDiacritics from './utils/stripDiacritics'; const propTypes = { autoload: PropTypes.bool.isRequired, // automatically call the `loadOptions` prop on-mount; defaults to true cache: PropTypes.a...
Swipeable.js
bevkoski/react-native-swipeable-cards-demo
import React from 'react'; import { View, StyleSheet, Platform } from 'react-native'; import PropTypes from 'prop-types'; import Interactable from 'react-native-interactable'; import Card from './Card' export default class Swipeable extends React.Component { static propTypes = { cards: PropTypes.array.isRequire...
src/routes/index.js
bingomanatee/ridecell
import React from 'react'; import { Route, IndexRoute } from 'react-router'; // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files regardle...
src/svg-icons/action/report-problem.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReportProblem = (props) => ( <SvgIcon {...props}> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/> </SvgIcon> ); ActionReportProblem = pure(ActionReportProblem); ActionReportProblem.displa...
src/svg-icons/image/rotate-right.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateRight = (props) => ( <SvgIcon {...props}> <path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7...
src/date-time-picker/date-time.js
mikalai-sauchanka/react-date-time-picker
import React from 'react' import PropTypes from 'prop-types' import DayView from './day-view' import MonthView from './month-view' import YearView from './year-view' import TimeView from './time-view' import moment from 'moment' import _ from 'lodash' import { CSSTransitionGroup } from 'react-transition-group' const _...
app/js/components/Hello.js
dYb/react-boilerplate
import React from 'react'; import { Link } from 'react-router'; export default class Hello extends React.Component { constructor(props) { super(props); } render() { const name = this.props.params.name return ( <div className="hello"> <h2>Hello {name}</h2> <ul> <li><L...
client/views/omnichannel/triggers/TriggersForm.stories.js
VoiSmart/Rocket.Chat
import { FieldGroup, Box } from '@rocket.chat/fuselage'; import React from 'react'; import { useForm } from '../../../hooks/useForm'; import TriggersForm from './TriggersForm'; export default { title: 'omnichannel/TriggersForm', component: TriggersForm, }; export const Default = () => { const { values, handlers }...
packages/kickoff-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
TryKickoff/create-kickoff-app
/** * 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, { Component } from 'react'; import PropTypes from 'prop-types'; async function load() { return { users: [ { i...
packages/react/src/components/Fieldset.js
wq/wq.app
import React from 'react'; import PropTypes from 'prop-types'; export default function Fieldset({ label, children }) { return ( <fieldset> <legend>{label}</legend> {children} </fieldset> ); } Fieldset.propTypes = { label: PropTypes.string, children: PropTypes.no...
app/javascript/mastodon/features/ui/components/columns_area.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import TabsBa...
client/src/modules/Registration/RegistrationPage/RegistrationPage.js
kvago36/graphql-relay
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { gql, graphql, compose } from 'react-apollo'; import { Header } from 'semantic-ui-react'; import { GC_LOGIN } from '../../../constants/constants'; import './RegistrationPage.css'; import Registration from '../components/Registrat...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInlineCentered.js
vageeshb/Semantic-UI-React
import React from 'react' import { Loader } from 'semantic-ui-react' const LoaderExampleInlineCentered = () => ( <Loader active inline='centered' /> ) export default LoaderExampleInlineCentered
App/ui/views/_default/.empty.js
CaipiLabs/caipi
/* * Copyright (c) 2018. Wise Wild Web * * This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License * Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode * * @author : Nathanael Braun * @contact : caipilabs@gmail.com...
examples/library/src/containers/Root.js
carteb/carte-blanche
/* @flow weak */ import React from 'react'; import { Grid, Row, } from 'react-bootstrap'; import { Button, } from '../components'; const Root = () => <Grid> <Row> <Button>Here is a sample button</Button> </Row> <Row> <Button bsStyle="primary">Here is a primary button</Button> </Row...
js/components/thumbnail/index.js
mrcflorian/classbook
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, Thumbnail, Text, Body, Left, Right } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; co...
src/components/common/svg-icons/action/cached.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
jenkins-design-language/src/js/components/material-ui/svg-icons/image/slideshow.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageSlideshow = (props) => ( <SvgIcon {...props}> <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageSlideshow.displayName = 'ImageSlideshow'; ImageSlid...
src/SplitButton.js
xiaoking/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
src/components/AddImage.js
dggriffin/noteworthee
//import styles from 'styles/Note.css'; import React from 'react'; import { FlatButton, TextField, IconButton } from 'material-ui'; import AddCircleIcon from 'material-ui/svg-icons/content/add-circle'; import RemoveCircleIcon from 'material-ui/svg-icons/content/remove-circle'; class AddImage extends React.Component { ...
simul/app/components/profile2.js
sf-red-pandas-2016/simul-react-native
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight, } from 'react-native'; import I18n from 'react-native-i18n' import NewStory from './newStory'; import UserMessages from './userMessages'; import Contact from './contact'; import userStories from './userStories'; imp...
src/scenes/App/scenes/Home/scenes/Activity/index.js
jsza/tempus-website
import React from 'react' import cx from 'classnames' import {prettyZoneName} from 'root/utils/TempusUtils' import {LinkContainer} from 'react-router-bootstrap' import {Redirect} from 'react-router-dom' import DropdownButton from 'react-bootstrap/lib/DropdownButton' import MenuItem from 'react-bootstrap/lib/MenuItem' ...
src/containers/Asians/BreaksCalculator/StandingPerRound/returnTableRow/returnRound/index.js
westoncolemanl/tabbr-web
import React from 'react' import { TableCell } from 'material-ui/Table' export default ( team, numberOfRounds, minBreak, rank, numberOfBreakingTeams, sureBreak ) => { let arr = [] for (let roundIndex = 1; roundIndex <= numberOfRounds; roundIndex++) { const text = team[roundIndex] ? team[roundIndex...
src/svg-icons/av/replay-10.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay10 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1....
node_modules/react-native-form-generator/src/lib/DatePickerComponent.ios.js
tedsf/tiptap
'use strict'; import React from 'react'; let { View, StyleSheet, TextInput, Text, DatePickerIOS} = require('react-native'); import {Field} from './Field'; export class DatePickerComponent extends React.Component{ constructor(props){ super(props); this.state = { date: props.date? new Date(props.date)...
docs/src/examples/elements/List/Types/ListExampleOrderedValue.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleOrderedValue = () => ( <List as='ol'> <List.Item as='li' value='*'> Signing Up </List.Item> <List.Item as='li' value='*'> User Benefits </List.Item> <List.Item as='li' value='*'> User Types ...
public/js/components/DetailsReactionOrAllergy.js
Vabrins/CadernetaDoIdoso
import React from 'react'; import $ from 'jquery'; import { Link } from 'react-router-dom'; class DetailsReactionOrAllergy extends React.Component { constructor (props) { super(props); this.state = {medicine_2_4:'', date_2_4:'', adverse_reactions_or_allergies_2_4:'', created_at:'', list : []}; } comp...
blueocean-material-icons/src/js/components/svg-icons/notification/phone-paused.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c0-.55-.45...
components/nav-bar.ios.js
APU-Flow/FlowApp
// nav-bar.ios.js // Flow 'use strict'; import React, { Component } from 'react'; import { TabBarIOS } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import Graphs from '../scenes/graphs'; import Meters from '../scenes/meters'; import Overview from '../scenes/overview'; import Settings fr...
information/blendle-frontend-react-source/app/modules/settings/containers/PremiumSubscriptionCancelContainer.js
BramscoChill/BlendleParser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CancelPremium from '../components/CancelPremium'; import NotificationsActions from 'actions/NotificationsActions'; import PremiumCanceledNotification from 'components/notifications/PremiumCanceledNotification'; const REASON_OTHER = 'o...
src/components/Link.js
jennaprovazek/Todo
import React from 'react' import PT from 'prop-types' const propTypes = { active: PT.bool.isRequired, children: PT.node.isRequired, onClick: PT.func.isRequired } const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span> } return ( <a href="#" onCli...
actor-apps/app-web/src/app/components/common/Favicon.react.js
hardikamal/actor-platform
import React from 'react'; export default class Fav extends React.Component { static propTypes = { path: React.PropTypes.string } constructor(props) { super(props); //// Create link element and it's attributes //let favicon = document.createElement('link'); //let rel = document.createAttrib...
jekyll-strapi-tutorial/api/plugins/content-type-builder/admin/src/components/AttributeCard/index.js
strapi/strapi-examples
/** * * AttributeCard * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import IcoBoolean from '../../assets/images/icon_boolean.png'; import IcoDate from '../../assets/images/icon_date.png'; import IcoEmail from '../../assets/images/icon_email.png'; im...
lib/components/Login.js
StephanieEA/firebae
import React from 'react'; import { BrowserRouter, Route, Link, Match } from 'react-router' import { pick, map, extend } from 'lodash'; import Button from './Button'; import RandomMessage from './RandomMessage'; import firebase, { reference, signIn } from '../firebase' const Login = ({ authorize, user }) => { if (us...