path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/SparklinesBars.js
konsumer/react-sparklines
import React from 'react'; export default class SparklinesBars extends React.Component { static propTypes = { style: React.PropTypes.object }; static defaultProps = { style: { fill: 'slategray' } }; render() { const { points, width, height, margin, style } = this.props; ...
app/javascript/mastodon/features/compose/components/upload_button.js
cybrespace/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/components/account/recover-password-page/index.js
datea/datea-webapp-react
import React from 'react'; import Button from '@material-ui/core/Button'; import {Tr, translatable} from '../../../i18n'; import {observer, inject} from 'mobx-react'; import AccountFormContainer from '../account-form-container'; import TextField from '@material-ui/core/TextField'; import DIcon from '../../../icons'; im...
packages/bonde-admin/src/components/data-grid/hocs/col-hoc.js
ourcities/rebu-client
import React from 'react' import classnames from 'classnames' export default (WrappedComponent) => { return class PP extends React.Component { render () { const colProps = { className: classnames('flex-auto', this.props.className) } return ( <WrappedComponent {...this.props} {....
app/containers/EditUserProfile.js
alexko13/block-and-frame
import React from 'react'; import userHelpers from '../utils/userHelpers'; import authHelpers from '../utils/authHelpers'; import MenuBar from '../components/MenuBar'; import UserProfileForm from '../components/users/UserProfileForm'; import ImageUpload from '../components/users/Uploader'; import EditSuccess from...
src/components/App.js
jozanza/pixels
import React from 'react'; import { compose, mapProps, withHandlers, withState } from 'recompose'; import styled, { ThemeProvider } from 'styled-components'; import * as actionCreators from '../actionCreators'; import ArtboardSection from './ArtboardSection'; import ToolbarSection from './ToolbarSection'; import MenuWr...
packages/fyndiq-ui-test/stories/component-modal.js
fyndiq/fyndiq-ui
import React from 'react' import { storiesOf, action } from '@storybook/react' import Button from 'fyndiq-component-button' import Modal, { ModalButton, confirm, Confirm, ConfirmWrapper, } from 'fyndiq-component-modal' import { Warning } from 'fyndiq-icons' import './component-modal.css' storiesOf('Modal', mo...
packages/material-ui-icons/src/SettingsInputAntenna.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SettingsInputAntenna = props => <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 10.6...
src/NodeInputListItem.js
falcon-client/hawk
import React from 'react'; export default class NodeInputListItem extends React.Component { constructor(props) { super(props); this.state = { hover: false }; } onMouseUp(e) { e.stopPropagation(); e.preventDefault(); this.props.onMouseUp(this.props.index); } onMouseOver() { ...
src/containers/Asians/TabControls/BreakCategorySettings/BreakCategoryRounds/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import CreateRounds from './CreateRounds' import ViewRounds from './ViewRounds' export default connect(mapStateToProps)(({ breakCategory, breakRounds, disabled }) => { const filterBreakRounds = breakRoundToMatch => breakRoundToMatch.breakCategory...
stories/list/index.js
shulie/dh-component
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import withReadme from 'storybook-readme/with-readme'; import { List, Menu, Dropdown, Icon, Avatar} from '../../src'; import listReadme from './list.md'; const addWithInfoOptions = { inline: true, propTables: false }; const menu ...
frontend/src/components/eois/modals/withdrawApplication/withdrawApplicationForm.js
unicef/un-partner-portal
import React from 'react'; import { reduxForm } from 'redux-form'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import TextFieldForm from '../../../forms/textFieldForm'; const messages = { label: 'Justification', placeholder: 'Provide justification of retraction', }; const ...
packages/components/src/Actions/ActionFile/File.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import Action from '../Action'; const myAction = { label: 'Click me', 'data-feature': 'actionfile', icon: 'talend-upload', onChange: action('You changed me'), displayMode: 'file', }; export default { title: 'Buttons/File', decorator...
client/accept-invite/controller.js
ironmanLee/my_calypso
/** * External Dependencies */ import React from 'react'; /** * Internal Dependencies */ import i18n from 'lib/mixins/i18n'; import titleActions from 'lib/screen-title/actions'; import Main from './main'; export default { acceptInvite( context ) { titleActions.setTitle( i18n.translate( 'Accept Invite', { textO...
src/svg-icons/action/settings-cell.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
gatsby-strapi-tutorial/cms/admin/admin/src/containers/HomePage/BlockLink.js
strapi/strapi-examples
/** * * BlockLink */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import cn from 'classnames'; import PropTypes from 'prop-types'; import styles from './styles.scss'; function BlockLink({ content, isDocumentation, link, title }) { return ( <a className={cn( styles....
src/components/Counter/Counter.js
murrayjbrown/react-redux-rxjs-stampit-babylon-universal
import React from 'react'; import classes from './Counter.scss'; export const Counter = (props) => ( <div> <h2 className={classes.counterContainer}> Counter: {' '} <span className={classes['counter--green']}> {props.counter} </span> </h2> <button className="btn btn-default...
src/components/Box/Tools.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' const Body = ({children}) => { return ( <div className='box-tools'> {children} </div> ) } Body.propTypes = { children: PropTypes.node } export default Body
src/components/Newsletter/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; export function Newsletter() { return ( <section className="newsletter bg-black white pt3 pt5-m"> <div id="mc_embed_signup" className="grid"> <div className="grid-item w-10 push-1"> <h3 className="f2">Our newsletter</h3> </div> <form className="grid-item w-10 push...
src/components/common/Image.js
jaggerwang/zqc-app-demo
/** * 在球场 * zaiqiuchang.com */ import React from 'react' import {StyleSheet, View, Image, TouchableOpacity} from 'react-native' import flattenStyle from 'flattenStyle' import {COLOR} from '../../config' import * as helpers from '../../helpers' import * as components from '../' export default ({playIconVisible = f...
react/gameday2/components/embeds/EmbedDacast.js
fangeugene/the-blue-alliance
import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedDacast = (props) => { const channel = props.webcast.channel const file = props.webcast.file const iframeSrc = `https://iframe.dacast.com/b/${channel}/c/${file}` return ( <iframe src={iframeSrc} width...
app/components/CompareImages.js
Kamahl19/image-min-app
import React from 'react'; export default React.createClass({ displayName: 'CompareImages', propTypes: { images: React.PropTypes.array.isRequired, }, getInitialState() { return { sliderCss: {}, leftImageCss: {}, imgCss: {}, enableMouseMo...
src/dots.js
sanbornmedia/react-slick
'use strict'; import React from 'react'; import classnames from 'classnames'; var getDotCount = function (spec) { var dots; dots = Math.ceil(spec.slideCount / spec.slidesToScroll); return dots; }; export var Dots = React.createClass({ clickHandler: function (options, e) { // In Autoplay the focus stays...
src/Announcer.js
thinkcompany/react-a11y-announcer
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Announcer extends Component { constructor(props) { super(props); this.state = { text: '' } } static propTypes = { text: PropTypes.string, politeness: PropTypes.string } stati...
app/components/hello/hello.js
dfmcphee/express-react
import React from 'react'; export default class Hello extends React.Component { constructor(props) { super(props); this.state = { message: 'Loading...' }; this.fetchMessage(); } fetchMessage() { fetch('/message.json') .then((response) => response.json()) .then((data) => t...
src/components/common/svg-icons/action/delete.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDelete = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/> </SvgIcon> ); ActionDelete = pure(ActionDelete); ActionDelete.display...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
skevy/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment => ( ...
packages/ringcentral-widgets-docs/src/app/pages/Components/PresenceSettingSection/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
frontend/src/app/components/ExperimentRowCard.js
dannycoates/testpilot
import React from 'react'; import { Link } from 'react-router'; import classnames from 'classnames'; import { experimentL10nId } from '../lib/utils'; const ONE_DAY = 24 * 60 * 60 * 1000; const ONE_WEEK = 7 * ONE_DAY; const MAX_JUST_LAUNCHED_PERIOD = 2 * ONE_WEEK; const MAX_JUST_UPDATED_PERIOD = 2 * ONE_WEEK; export ...
src/routes/y-axis-assembly/YAxisAssembly.js
bigearth/www.clone.earth
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './YAxisAssembly.css'; import { Grid, Row, Col, Image } from 'react-bootstrap'; import DocsTOC from '../../components/DocsTOC'; class YAxisAssembly extends React.Component { ...
src/svg-icons/image/timer-3.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer3 = (props) => ( <SvgIcon {...props}> <path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1....
docs/app/Examples/collections/Form/FieldVariations/FormExampleRequiredFieldShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Form } from 'shengnian-ui-react' const FormExampleRequiredFieldShorthand = () => ( <Form> <Form.Checkbox inline label='I agree to the terms and conditions' required /> </Form> ) export default FormExampleRequiredFieldShorthand
examples/js/selection/select-hook-table.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-alert: 0 */ /* eslint guard-for-in: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const...
app/containers/UpgradeDialog/index.js
VonIobro/ab-web
import React from 'react'; import { Receipt } from 'poker-helper'; import { createStructuredSelector } from 'reselect'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Form, Field, SubmissionError, reduxForm } from 'redux-form/immutable'; import { makeSelectAccountData } from '../.....
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/Permission.js
sambaheerathan/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/index.js
melihberberolu/yemeksepeti-task
import React from 'react'; import { render } from "react-dom"; import App from './App'; import registerServiceWorker from './registerServiceWorker'; require("./assets/sass/main.scss"); render( <App />, document.getElementById("app") ); registerServiceWorker();
src/TabPane.js
roderickwang/react-bootstrap
import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import Tab from './Tab'; const TabPane = React.createClass({ componentWillMount() { deprecationWarning( 'TabPane', 'Tab', 'https://github.com/react-bootstrap/react-bootstrap/pull/1091' ); }, render() { ...
packages/react-ui-components/src/Dialog/index.story.js
mstruebing/PackageFactory.Guevara
import React from 'react'; import {storiesOf, action} from '@storybook/react'; import {withKnobs, text, boolean} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import Dialog from '.'; import Button from './../Button'; storiesOf('Dialog', module) .addDecorator(withKnobs) .addW...
app/components/FullRoster.js
BeAce/react-babel-webpack-eslint-boilerplate
import React from 'react'; const FullRoster = () => (<div> <ul>api12</ul> </div>); export default FullRoster;
app/components/users/UserForm.js
MakingSense/mern-seed
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import Formsy from 'formsy-react'; import autoBind from '../../lib/autoBind'; import { Input, Textarea } from 'formsy-react-components'; class UserForm extends Component { constructor(props, context) { ...
src/components/UI/Tabs/Tabs.js
bocasfx/Q
import React from 'react'; import './Tabs.css'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setSelection } from '../../../actions/Selection'; import PropTypes from 'prop-types'; class Tabs extends React.Component { static propTypes = { selection: PropTypes.object,...
web/portal/src/components/Form/Radio/index.js
trendmicro/serverless-survey-forms
import React, { Component } from 'react'; import Question from '../Question'; class Radio extends Component { render() { const { data, onClick } = this.props; return ( <div className="question" onClick={onClick} > <Question ...
components/header.js
waigo/waigo.github.io
import React from 'react'; import { Link } from 'react-router'; import { prefixLink } from 'gatsby-helpers'; import Headroom from 'react-headroom'; import { config } from 'config'; import Classnames from 'classnames'; const NAV = [ { label: 'Guide', title: 'Documentation guide', link: prefixLink(config...
react/src/containers/Login/Login.js
hnquang112/laradock
import React from 'react'; import {Btn} from '../../components/Controls/Button/Button'; import History from '../../routes/History'; class Login extends React.Component { // this method is only to trigger route guards , remove and use your own logic handleLogin = () => { localStorage.setItem('token','to...
07/src/App.js
viddamao/front-end-demo
import React, { Component } from 'react'; import './App.css'; class App extends Component { render() { return ( <div className="wrapper"> <h1 className="todo-title">React-Todos</h1> <p>implements a todo list with React</p> <div className="App"> </div> </div> ); } } export...
imports/ui/components/resident-details/accounts/transaction/transaction-pa.js
gagpmr/app-met
import React from 'react'; import * as Styles from '/imports/modules/styles.js'; import { UpdateResident } from '/imports/api/residents/methods.js'; export class TransactionPa extends React.Component { constructor(props) { super(props); } removeBill(e) { e.preventDefault(); var resid = e.current...
src/svg-icons/social/notifications-paused.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsPaused = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11...
src/index.js
sebastiandeutsch/react-redux-starter
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; ReactDOM.render( <App />, document.getElementById('application') );
examples/dyno/app.js
chentsulin/react-tabs
import React from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import { Tab, Tabs, TabList, TabPanel } from '../../lib/main'; Modal.setAppElement(document.getElementById('example')); Modal.injectCSS(); const App = React.createClass({ getInitialState() { return { isModalOpen:...
node_modules/react-bootstrap/es/Label.js
vitorgomateus/NotifyMe
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
fields/types/color/ColorField.js
helloworld3q3q/keystone
import { SketchPicker } from 'react-color'; import { css, StyleSheet } from 'aphrodite/no-important'; import Field from '../Field'; import React from 'react'; import { Button, FormInput, InputGroup } from 'elemental'; import transparentSwatch from './transparent-swatch'; import theme from '../../../admin/client/theme';...
src/svg-icons/action/explore.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionExplore = (props) => ( <SvgIcon {...props}> <path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2...
packages/mineral-ui-icons/src/IconRemoveCircle.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 IconRemoveCircle(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
showcase/examples/candlestick/candlestick.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/svg-icons/av/replay-30.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay30 = (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-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-....
actor-apps/app-web/src/app/components/Main.react.js
allengaller/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from 'actions/VisibilityActionCreators'; import ActivitySection from 'components/ActivitySection.react'; import SidebarSection from 'components/SidebarSection.react'; import ToolbarSection from 'components/Toolba...
app/components/ItemThumbnail/ItemThumbnail.js
zhrkian/SolarDataApp
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import s from './ItemThumbnail.css'; export default class ItemThumbnail extends Component { static contextTypes = { router: React.PropTypes.object.isRequired } componentWillMount() { const { FITS } = window.astro ...
src/components/Header.js
teamstrobe/mancreact-client
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { groupURI } from '../config/urls'; import apiFetch from '../apiFetch'; import LoginLink from './LoginLink'; import LogoutBtn from './LogoutBtn'; class Header extends Component { state = { group: null, }; componentWil...
src/js/components/navigation/Navigation.js
csepreghy/VR-Cinema-Website-with-React.js
import {Entity} from 'aframe-react'; import React from 'react'; import Back from './buttons/Back'; import BookSeat from './buttons/BookSeat'; import ChangeSeat from './buttons/ChangeSeat'; export default class Navigation extends React.Component { opacity = { x: 0 }; constructor(props) { super(props); th...
src/docs/examples/MyHelloWorld/ExampleMyHelloWorld.js
Mikhail2k15/ps-react-michael
import React from 'react'; import MyHelloWorld from 'ps-react/MyHelloWorld'; export default function ExampleMyHelloWorld(){ return <MyHelloWorld message="Pluralsight viewers"/> }
client/src/app/app.layout.js
Thiht/docktor
// React import React from 'react'; // Components import NavBar from './navBar.component.js'; import Footer from './footer.component.js'; import Toasts from '../toasts/toasts.component.js'; import Modal from '../modal/modal.component.js'; // JS dependancies import 'jquery'; import form from 'semantic/dist/semantic.js...
components/GuestContainer.js
flyingant/tedxguanggu.org
/** * Created by FlyingAnt on 3/23/16. */ import React from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import styles from '../less/main.less' import cn from 'classnames'; //component import Navigator from '../components/navigator/Navigator' import ListItemBox from '../componen...
example/data.js
dancormier/react-native-swipeout
import React from 'react'; import {Image} from 'react-native'; var btnsDefault = [ { text: 'Button' } ]; var btnsTypes = [ { text: 'Primary', type: 'primary', }, { text: 'Secondary', type: 'secondary', }, { text: 'Delete', type: 'delete', } ]; var rows = [ { text: "Basic Example", right:...
example/v9.x.x/reactnative-expo/App.js
i18next/react-i18next
import React from 'react'; import { withNamespaces } from 'react-i18next'; import { createStackNavigator, createAppContainer } from 'react-navigation'; import i18n from './js/i18n'; import Home from './js/pages/Home'; import Page2 from './js/pages/Page2'; const Stack = createStackNavigator({ Home: { screen: Home }, ...
components/front/routes.js
wi2/sails-isomorphic-react-admin-example
"use strict"; import React from 'react' import {RouteHandler, Route} from 'react-router' module.exports = ( <Route handler={RouteHandler}> <Route name="home" path="/" handler={require('./pages/home')} /> </Route> );
src/svg-icons/maps/local-pizza.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPizza = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2...
src/common/components/img/component.js
gravitron07/brentayersV6
import React from 'react'; export default class Img extends React.Component { render() { // let path = require(this.props.source); return ( <img src="" /> ); } }
modules/IndexRoute.js
davertron/react-router
import React from 'react' import invariant from 'invariant' import warning from 'warning' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { bool, func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRout...
admin-frontend/src/app.js
BarcampBangalore/hashbeam
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import Login from './components/login'; import MainScreen from './components/main-screen'; import PrivateRoute from './components/private-route'; const App = () => ( <Switch> <PrivateRoute path="/" exact component={MainScreen} /> <R...
src/app/icons/github.js
Eric-Vandenberg/react-redux-weatherapp.io
import React from 'react'; const GithubIcon = () => ( <svg viewBox="0 0 284 277"> <g> <path fill="#fff" d="M141.888675,0.0234927555 C63.5359948,0.0234927555 0,63.5477395 0,141.912168 C0,204.6023 40.6554239,257.788232 97.0321356,276.549924 C104.12328,277.86336 106.726656,273.471926 106.726656,269.7242...
frontend/src/containers/DevTools/DevTools.js
chriswk/repoindexer
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="H" changePositionKey="Q"> <LogMonitor /> </Dock...
node_modules/case-sensitive-paths-webpack-plugin/demo/src/init.js
Oritechnology/pubApp
import AppRoot from './AppRoot.component.js'; import React from 'react'; import ReactDOM from 'react-dom'; const app = { initialize() { ReactDOM.render(<AppRoot/>, document.getElementById('react-app-hook')); } }; app.initialize();
app/javascript/mastodon/features/standalone/public_timeline/index.js
pixiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandPublicTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import { defineMessages, ...
client/components/settingsCard/index.js
DeadPackets/HackPi
import React, { Component } from 'react'; import { StyleSheet, View, Text, Dimensions, Switch, TextInput } from 'react-native' const {width, height} = Dimensions.get('window') export class SwitchSetting extends Component { constructor() { super() this.state = { value: true } } render() { return( ...
packages/icons/src/md/maps/Directions.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDirections(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M43.405 22.585c.79.78.79 2.04.01 2.83l-18 18c-.78.78-2.05.78-2.83 0v-.01l-18-17.99c-.78-.78-.78-2.05 0-2.83l18-18c.77-.78 2.04-.78 2.82 0l18 18zm-...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/ModalBody.js
Akkuma/npm-cache-benchmark
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 ...
src/routes/system/ModifyPassword/index.js
daizhen256/i5xwxdoctor-web
import React from 'react' import PropTypes from 'prop-types' import {connect} from 'dva' import ModifyForm from './ModifyForm' import { Link } from 'dva/router' function ModifyPassword({ dispatch, systemModifyPassword, loading }) { const modifyFormProps = { loading, onOk(data) { dispatch({ type: `sys...
src/icons/CheckBoxIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class CheckBoxIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM20 34L10 24l2...
demo/react-app/src/App.js
BigFatDog/parcoords-es
import React from 'react'; import Chart from './chart'; import './App.css'; function App() { return ( <div className="App"> <Chart/> </div> ); } export default App;
app/components/Preview/Header/HeaderButton/HeaderButton.js
realgvard/telegram_theme_customizer
import React, { Component } from 'react'; import reactCSS, { hover } from 'reactcss'; import ReactDOM from 'react-dom'; class HeaderButton extends Component { // _onHintTextClick() { // const component = ReactDOM.findDOMNode(this.refs.ButtonComponent); // // console.dir(component) // ...
templates/rubix/rubix-bootstrap/src/ProgressBar.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import BProgressBar from './BProgressBar'; export default class ProgressBar extends React.Component { static propTypes = { value: React.PropTypes.number }; render() { let props = { ...this.props }; if (props.value) { props.now = props.value; delete props.value...
packages/wix-style-react/src/AreaChart/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, code, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import { simpleUsage, collapsedLabelsUsage, combinedDa...
src/application/App/FindSongs/FindSongs.js
AoDev/kaiku-music-player
import PropTypes from 'prop-types' import React from 'react' export default function FindSongs (props) { return ( <div className="text-center"> <h1>Your library is empty!</h1> <button className="btn-default" onClick={props.showSettings}> Start looking for songs </button> </div> ) ...
lib/widgets/ModelEditor/views/ModelMetaArrayField.js
ExtPoint/yii2-gii
import React from 'react'; import PropTypes from 'prop-types'; import {html} from 'components'; import ModelMetaRow from './ModelMetaRow'; import './ModelMetaArrayField.less'; const bem = html.bem('ModelMetaArrayField'); class ModelMetaArrayField extends React.Component { static formId = 'ModelEditor'; sta...
src/svg-icons/av/album.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAlbum = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-...
client/src/components/Repos/ReposConfirmDeleteAll.js
vfeskov/win-a-beer
import React from 'react' import PropTypes from 'prop-types' import Button from '@material-ui/core/Button' import DialogTitle from '@material-ui/core/DialogTitle' import DialogActions from '@material-ui/core/DialogActions' import Dialog from '@material-ui/core/Dialog' import withTheme from '@material-ui/core/styles/wit...
docs/src/app/components/pages/components/Dialog/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dialogReadmeText from './README'; import DialogExampleSimple from './Exam...
test/test_helper.js
RaneWallin/FCCLeaderboard
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...
frontend/src/Settings/Notifications/Notifications/AddNotificationModalContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter ...
node_modules/react-bootstrap/es/MediaBody.js
CallumRocks/ReduxSimpleStarter
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 ...
src/components/Trend/Trend.js
Zoomdata/nhtsa-dashboard
import flowRight from 'lodash.flowright'; import React, { Component } from 'react'; import TrendChart from '../TrendChart/TrendChart'; import { observer, inject } from 'mobx-react'; import { toJS } from 'mobx'; class Trend extends Component { render() { const { store } = this.props; const data = toJS(store.c...
packages/material-ui-icons/src/GetApp.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let GetApp = props => <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" /> </SvgIcon>; GetApp = pure(GetApp); GetApp.muiName = 'SvgIcon'; export default GetApp;
packages/nova-core/lib/modules/containers/withCurrentUser.js
HelloMeets/HelloMakers
import React, { Component } from 'react'; import { getFragment } from 'meteor/nova:lib'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; const withCurrentUser = component => { return graphql( gql` query getCurrentUser { currentUser { ...UsersCurrent ...
app/javascript/mastodon/features/compose/components/upload_form.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import UploadProgressContainer from '../containers/upload_progress_container'; imp...
assets/javascripts/kitten/components/structure/tables/list-table/stories.js
KissKissBankBank/kitten
import React from 'react' import { createGlobalStyle } from 'styled-components' import { ListTable } from './index' import { ScreenConfig, VisuallyHidden, pxToRem, COLORS, TYPOGRAPHY, StatusWithBullet, Text, Checkbox, DropdownSelect, } from 'kitten' import { DocsPage } from 'storybook/docs-page' impo...
app/components/Footer/FooterStudio.js
dedywahyudi/lilly-contentful
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; class RepoContributorsItem extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { const item = this.props.item; const peopleLink = `/design/` + item.slug; // eslint-di...
app/components/Toggle/index.js
fascinating2000/productFrontend
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
fields/types/boolean/BooleanField.js
matthewstyers/keystone
import React from 'react'; import Field from '../Field'; import Checkbox from '../../components/Checkbox'; import { FormField } from '../../../admin/client/App/elemental'; const NOOP = () => {}; module.exports = Field.create({ displayName: 'BooleanField', statics: { type: 'Boolean', }, propTypes: { indent: Re...
app/MnmNewsList.js
alvaromb/mnm
import React from 'react' import { Platform, StyleSheet, View, ListView, ActivityIndicatorIOS, ProgressBarAndroid, InteractionManager, RefreshControl, Dimensions } from 'react-native' import MnmNewsRow from './MnmNewsRow' import ThumborURLBuilder from 'thumbor-url-builder' import { THUMBOR_KEY, THUMBO...
frontend/src/admin/common/forms/FormHeaderWithSave.js
rabblerouser/core
import React from 'react'; import { SpacedLayout } from 'layabout'; import styled from 'styled-components'; import { Button } from '../../common'; const HeaderText = styled.span` font-size: 1.1em; font-weight: bold; `; const FormHeaderWithSave = ({ children }) => ( <SpacedLayout container="header"> <HeaderT...