path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/hardware/keyboard.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
app/javascript/mastodon/features/status/components/action_bar.js
kagucho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenu from '../../../components/dropdown_menu'; import { defineMessages, injectIntl } from 'react-intl'; const messages = de...
archived/scaffold/app/index.js
pbdm/html-base-template
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import App from './pages/App'; class Root extends React.Component { render() { return ( <Router history={hashHistory}> <Route path="/" component={App}> <In...
src/routes.js
VigilantApps/react-skeleton
import React from 'react'; import {HashRouter, Route} from 'react-router-dom'; import App from './app'; import TestPage from './Testing/TestPage'; /** * Application information */ const applicationInfo = { productTitle: 'Untitled User Interface', menu: [ {key: 'home', text: 'Home', href: '#/' }, ...
src/components/ResetPassword.js
codefordenver/encorelink
import PropTypes from 'prop-types'; import React from 'react'; import { withRouter, Link } from 'react-router'; import { compose } from 'redux'; import { Field, reduxForm } from 'redux-form'; class ResetPassword extends React.Component { static propTypes = { handleSubmit: PropTypes.func.isRequired, router: P...
frontend/src/components/LibraryDialog.js
OwenRay/Remote-MediaServer
/** * Created by owenray on 6/30/2017. */ /* global $ */ import React, { Component } from 'react'; import { Input, Row, Button, Modal } from 'react-materialize'; import PropTypes from 'prop-types'; import ServerFileBrowser from './ServerFileBrowser'; class LibraryDialog extends Component { constructor(props) { ...
app/components/PersonList/PersonList.js
rhinos-app/rhinos-app-dev
import React from 'react' import { View, StyleSheet } from 'react-native' import { List, ListItem } from 'react-native-elements' export default class PersonList extends React.Component { onItemPress = (item) => { if (this.props.onItemPress) { this.props.onItemPress(item) } } render () { retur...
front/app/js/components/controls/containers/FlexGrid.js
nudoru/React-Starter-3
import React from 'react'; import { joinClasses } from '../../../utils/componentUtils'; import { Container, ContainerFluid } from './Container'; export const FlexGrid = ({children, ...rest}) => <Container {...rest}>{children}</Container>; export const FlexGridFluid = ({children, ...rest}) => <ContainerFluid {...
node_modules/rc-input-number/es/InputHandler.js
ZSMingNB/react-news
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inheri...
src/components/Avatar.js
njscococo/githuber_react_practice
import React from 'react'; import ReactDOM from 'react-dom'; export class Avatar extends React.Component { render() { const imgStyle = { height: 180, width: 160 }; const floatDivStyle = { height: 180, float: 'left', pa...
app/components/PageForm.js
pbillerot/reacteur
'use strict'; import React from 'react'; import 'whatwg-fetch'; import { Link, browserHistory } from 'react-router'; import Select from 'react-select'; import { Checkbox, CheckboxGroup } from 'react-checkbox-group'; // W3 const { Alerter, Card, Content, Footer, Header, IconButton , Menubar, Nav, Navbar, NavGroup...
app/javascript/mastodon/features/compose/components/upload_form.js
hyuki0000/mastodon
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...
src/platform/site-wide/header/components/Logo/index.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; export const Logo = props => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 57.6 35.2" role="img" {...props} > <title>VA</title> <g fill="#FFF"> <path d="M11.1 35.2L0 0h8.6l4.2 14.9c1.2 4.2 2.2 8.2 3.1 12.6h.1c.9-4.2 1.9-8.4 3.1-12.4...
packages/form/src/Form.js
fi11/uikit
import React from 'react'; import propTypes from 'prop-types'; import getContextShape from './getContextShape'; import Validator from './Validator'; import Store from './Store'; import * as errorStrategies from './errorStrategies'; const Component = React.PureComponent; class Form extends Component { static propTyp...
app/src/App.js
oswaldoferreira/simple-chat
import React, { Component } from 'react'; import logo from './logo.svg'; import Message from './Message'; import './App.css'; let io = require('socket.io-client'); // TODO: Find a way to test locally without having to change it. let socket = io.connect('http://chat.oswaldo.me:8002/'); class App extends Component { ...
src/containers/Thesis/components/edit/ThesisValueField.js
OhtuGrappa2/front-grappa2
import React from 'react' import { string, node } from 'prop-types' import { GridColumn } from 'semantic-ui-react' const ThesisValueField = ({ title, children }) => ( <GridColumn> <h3 className="ui sub header">{title}</h3> {children} </GridColumn> ) ThesisValueField.propTypes = { title: st...
app/components/Category/NotFound.js
cdiezmoran/AlphaStage-2.0
import React from 'react'; import styles from './NotFound.scss'; const NotFound = () => ( <div className={styles.NotFound}> <p>No games in this category yet :(</p> </div> ); export default NotFound;
src/svg-icons/device/screen-lock-portrait.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockPortrait = (props) => ( <SvgIcon {...props}> <path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1....
src/svg-icons/action/loyalty.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLoyalty = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86....
src/index.js
Thomics/Pinterest-Screensaver
import React from 'react'; import ReactDOM from 'react-dom'; import './styles/reset.css'; import App from './containers/App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <App />, document.getElementById('root') ); registerServiceWorker();
webpack/scenes/Subscriptions/Details/SubscriptionDetailAssociations.js
cfouant/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'react-bootstrap'; import { translate as __ } from 'foremanReact/common/I18n'; import helpers from '../../../move_to_foreman/common/helpers.js'; const SubscriptionDetailAssociations = ({ subscriptionDetails }) => { const searchQuery...
lib/src/linesofcode.js
SerendpityZOEY/Fixr-RelevantCodeSearch
/** * Created by yue on 2/13/17. */ import React from 'react'; import {List, ListItem, NestedList} from 'material-ui/List'; import FontIcon from 'material-ui/FontIcon'; const styles = { codeSnippet: { fontFamily: "Fira Mono", fontSize: 14 }, } class Lines extends React.Component{ constr...
src/components/modalwindow/Modalwindow.js
Convicted202/PixelShape
import './modalwindow.styl'; import React from 'react'; import classNames from 'classnames'; const ModalWindow = props => { const classes = classNames( 'modalwindow', { 'shown': props.isShown }); return ( <div className={classes}> <header>{props.title}</header> <section> ...
BaiSi/app/pages/login/loginContainer.js
MisterZhouZhou/ReactNativeLearing
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TextInput, TouchableOpacity } from 'react-native'; import NavBar from 'react-native-navbar'; import wilddog from 'wil...
app/app.js
gitoneman/react-starter
import React from 'react'; var render = require('react-dom').render; //var createBrowserHistory = require('history/lib/createBrowserHistory'); import createHistory from "history/lib/createHashHistory"; import { Router,Route,Link,IndexRoute} from "react-router"; var history = createHistory({ queryKey: false }...
client/src/javascript/components/icons/DownloadThickIcon.js
stephdewit/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class DownloadThickIcon extends BaseIcon { render() { return ( <svg className={`icon icon--download ${this.props.className}`} viewBox={this.getViewBox()}> <polygon points="44.1,23 33,39.7 33,4.6 27,4.6 27,39.7 15.9,23 10....
src/svg-icons/communication/phonelink-ring.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkRing = (props) => ( <SvgIcon {...props}> <path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2...
docs/public/static/examples/v41.0.0/tutorial/image-picker-show.js
exponent/exponent
import React from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import * as ImagePicker from 'expo-image-picker'; export default function App() { let [selectedImage, setSelectedImage] = React.useState(null); let openImagePickerAsync = async () => { let permissionResu...
src/server.js
sarvex/ReactStarter
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; impo...
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js
martinssipenko/framework
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class Example extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-8 col-md-offset-2"> ...
app/javascript/mastodon/features/following/index.js
lynlynlynx/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
src/assets/copy/Login.js
ortonomy/flingapp-frontend
import React from 'react'; export const LoginFooter = { link1: { text: 'Terms & conditions', route: '/terms' }, link2: { text: 'Privacy policy', route: '/privacy' } }; export const ActivationRequest = () => ( <div> <p>You've successfully registered and logged in with <str...
app/src/elements/Header.js
mentdotio/ment.io
import React from 'react' import { Link } from 'react-router-dom' export const Header = () => ( <header> <nav> <ul> <li><Link to='/'>Home</Link></li> <li><Link to='/user-profile'>Roster</Link></li> <li><Link to='/not-found'>404</Link></li> </ul> </nav> </header> )
docs/src/pages/components/lists/PinnedSubheaderList.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListSubheader from '@material-ui/core/ListSubheader'; const useStyles = makeS...
src/svg-icons/maps/local-play.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4....
src/views/components/behaviorcomponents/VoteableBehaviorComponent.es6.js
uzi/reddit-mobile
import React from 'react'; // for type checking import { models } from '@r/api-client'; import propTypes from '../../../propTypes'; import validatePropTypes from '../../../lib/validatePropTypes'; const T = React.PropTypes; export default class VoteableBehaviorComponent { // we're a plain class, but we're going to u...
src/views/icons/PlayMediaButtonIcon.js
physiii/open-automation
import React from 'react'; import IconBase from './IconBase.js'; import './StopButtonIcon.css'; export const StopButtonIcon = () => ( <IconBase viewBox="0 -20 395.94667 395"> <path d="m269.652344.472656c-16.9375 0-30.71875 13.78125-30.71875 30.71875v293.546875c0 16.941407 13.78125 30.722657 30.71875 30.722657 16.94...
src/index.js
PaulMill/myline_life
import React from 'react'; import ReactDOM from 'react-dom'; import Routes from './Routes'; import './index.css'; ReactDOM.render( <Routes />, document.getElementById('root') );
config/.storybook/stories/components/LoadingIndicator.js
RyanCCollins/the-agency
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { LoadingIndicator } from 'ui'; import { withKnobs, boolean } from '@kadira/storybook-addon-knobs'; const stories = storiesOf('Loading Indicator', module); stories.addDecorator(withKnobs); stories .addWithInfo( 'is load...
src/components/common/svg-icons/action/print.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPrint = (props) => ( <SvgIcon {...props}> <path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/> </...
app/components/shared/PageWithContainer.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; export default class PageWithContainer extends React.PureComponent { static propTypes = { children: PropTypes.node.isRequired }; render() { return ( <div className="container">{this.props.children}</div> ); } }
fields/types/color/ColorField.js
Yaska/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/components/controls/Select/defaults/placeholderRenderer.js
5rabbits/portrait
/* eslint-disable react/prop-types */ import React from 'react' export default ({ placeholder }) => <div className="Select__placeholder"> {placeholder} </div>
src/svg-icons/action/class.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionClass = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/> </SvgIcon> ); ActionClass = pure(ActionClass);...
src/components/github/Repo.js
MMMalik/react-show-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Repo extends Component { static propTypes = { repo: PropTypes.object } static defaultProps = { repo: {} } render() { const { repo } = this.props; return ( ...
src/parser/mage/arcane/modules/features/TimeAnomaly.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; const MANA_THRESHOLD = 0.70; class TimeAnomaly exte...
app/m_components/FedBack.js
kongchun/BigData-Web
import React from 'react'; import { Link } from 'react-router'; import MyInfoNavbar from './MyInfoNavbar'; import Weixin from './Weixin'; class FedBack extends React.Component { componentDidMount(){ $("#lastPageButton").show(); $(".footer-nav").hide(); } render() { Weixin.getUrl(); Weixi...
fields/types/select/SelectField.js
dvdcastro/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValue) { // TODO: This shoul...
src/client/components/FacebookLoginWidget/FacebookLoginWidget.js
trippian/trippian
import log from '../../log' import React from 'react' const FacebookLoginWidget = ({ name = 'FacebookLoginWidget' }) => { return ( <div> <h3>Widget</h3> {name} </div> ) } FacebookLoginWidget.displayName = 'FacebookLoginWidget' export default FacebookLoginWidget // import log from '../../log' /...
src/svg-icons/notification/sd-card.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSdCard = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); NotificationS...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputer.js
clemensw/stardust
import React from 'react' import { Grid } from 'semantic-ui-react' const GridExampleReversedComputer = () => ( <Grid reversed='computer' columns='equal'> <Grid.Row> <Grid.Column>Computer A Fourth</Grid.Column> <Grid.Column>Computer A Third</Grid.Column> <Grid.Column>Computer A Second</Grid.Colu...
examples/transitions/app.js
rkaneriya/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link, History, Lifecycle } from 'react-router' const history = useBasename(createHistory)({ basename: '/transitions' }) const App = React.createClass({ render() { return ( <div> <ul> ...
frontend/src/screens/history/widgets/select-night/select-night.js
desihub/qlf
import React from 'react'; import Proptypes from 'prop-types'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; const styles = { grid: { display: 'grid', gridTemplateAreas: "'title control control control'", alignItems: 'center', }, select: { d...
src/components/Footer.js
tommydx/front2
import React, { Component } from 'react'; import { Link } from 'react-router'; class Footer extends Component { // EXTERNAL ROUTES GET <a> tag - <Link> is for internal routing and to avoid re-rendering the page render() { return ( <div className="footer"> <Link className="footer-link" to="ht...
src/svg-icons/notification/time-to-leave.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationTimeToLeave = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-....
src/components/GenericBrick/index.js
line64/landricks-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ThemePropagator } from '../../'; import { LandricksPropTypes } from '../../conventions'; import styles from './styles'; class GenericBrick extends Component { renderHeader(styles, props) { if (!props.hasHeader) { retu...
test/integrations/examples/Bar-react-happo.js
enduire/happo.io
import React from 'react'; export default [ { component: 'Bar', variants: { one: () => <div>one</div>, two: () => <div>two</div>, }, }, ];
ui/app/components/main_panel/app_buttons.js
leapcode/bitmask-dev
import React from 'react' import {Modal, Button, ButtonGroup, ButtonToolbar, Glyphicon} from 'react-bootstrap' import App from 'app' import Splash from 'components/splash' import bitmask from 'lib/bitmask' export default class AppButtons extends React.Component { static get defaultProps() {return{ }} construc...
APMStart/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
pjenifer2/ang
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'));
dva/wd/src/routes/Product/DetailPage.js
imuntil/React
import React from 'react'; import { connect } from 'dva'; import QueueAnim from 'rc-queue-anim' import { WhiteSpace as WS, Icon, Toast } from 'antd-mobile' import { IMGURL, mustLikeIds, types } from '../../constant' import Loading from '../../components/Loading.js' import Like from '../../components/Like/Like.js' impor...
client/src/components/SignUpPage/index.js
mick842/react-node-auth
import React, { Component } from 'react'; import SignUpForm from './SignUpForm'; import { Auth } from '../../services'; class SignUpPage extends Component { constructor(props) { super(props); this.state = { username: '', password: '', error: null } } handleChange = (event) => { ...
examples/counter/containers/CounterApp.js
michael-ni/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp extend...
src/components/common/permission-context/withPermission.js
goodjoblife/GoodJobShare
import React from 'react'; import { wrapDisplayName, setDisplayName, compose } from 'recompose'; import { withRouter } from 'react-router-dom'; import usePermission from '../../../hooks/usePermission'; const withPermissionProps = Component => { const hoc = setDisplayName(wrapDisplayName(Component, 'withPermission'))...
views/blocks/SearchResult/ResultItem.js
dimastark/team5
import React from 'react'; import './ResultItem.css'; export default class SearchResultItem extends React.Component { render() { return this.props.children; } }
src/routes/index.js
hatton/BloomReact
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from 'layouts/app'; import EditTab from 'views/EditTab'; import CollectionTab from 'views/CollectionTab'; //import PublishTab from 'views/PublishTab'; // NOTE: here we're making use of the `resolve.root` configuration // option in we...
app/components/children/dashboard-children/FormNode.js
asconwe/formulate
import React from 'react'; import { Link } from 'react-router-dom'; import axios from 'axios'; import DeleteForm from './formNode-children/DeleteForm'; import PublishForm from './formNode-children/PublishForm'; class FormNode extends React.Component { constructor() { super(); this.state = { ...
demo/component/ScatterChart.js
thoqbk/recharts
import React from 'react'; import { ScatterChart, Scatter, CartesianGrid, Tooltip, Legend, XAxis, YAxis, ZAxis, ReferenceLine, ReferenceDot, ReferenceArea } from 'recharts'; import { changeNumberOfData } from './utils'; const data01 = [ { x: 100, y: 200, z: 200 }, { x: 120, y: 100, z: 260 }, { x: 170, y: 300, z...
src/components/gmaps.js
chiss2906/react-gmaps
import React from 'react'; import assign from 'react/lib/Object.assign'; import MapEvents from '../events/map'; import Listener from '../mixins/listener'; const Gmaps = React.createClass({ mixins: [Listener], map: null, getInitialState() { return { isMapCreated: false }; }, componentDidMoun...
src/svg-icons/editor/format-align-justify.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignJustify = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignJustify = pure(EditorFormatAl...
slides/p1/slide-6-0.js
fk1blow/react-presentception
import React from 'react'; export default class Slide extends React.Component { render() { return ( <div className="slide-mask"> <div className="slide mw8 center"> <section> <h2 className="tc">xPresentation named: <em>'p1'</em></h2> </section> <section> ...
client/components/Swiper/index.js
sageliu/uusee
import React from 'react'; import ReactSwipe from 'react-swipe'; export default class Swiper extends React.Component { constructor() { super(); this.state = { index: 0 } } render() { let option = { callback: (index) => { this.setState({index: index}) }, auto: this.props.opt.auto, continu...
demo/js/carousel.js
bebeanan/monkey-ui
import React from 'react'; import ReactDOM from 'react-dom'; import MonkeyUi from '../../lib/monkeyui.js'; var Carousel=MonkeyUi.Carousel; class Page11 extends React.Component{ render() { return ( <div className="mancatain"> <Carousel autoplay> <div><h3>1</h3></div> <div><h3>2</h3></div> ...
examples/with-apollo-and-redux-saga/pages/index.js
BlancheXu/test
import React from 'react' import { connect } from 'react-redux' import { startClock } from '../lib/clock/actions' import { countIncrease } from '../lib/count/actions' import { loadData } from '../lib/placeholder/actions' import App from '../components/App' import Header from '../components/Header' import Page from '...
app/javascript/mastodon/features/direct_timeline/index.js
pso2club/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations'; impo...
src/routes.js
karmapa17/garchen-panel
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import App from './containers/App/App'; import PageAbout from './containers/PageAbout/PageAbout'; import PageAddEntry from './containers/PageAddEntry/PageAddEntry'; import PageEditFolder from './containers/PageEditFolder/PageEditFolder'; import...
admin/client/App/shared/Portal.js
webteckie/keystone
/** * Used by the Popout component and the Lightbox component of the fields for * popouts. Renders a non-react DOM node. */ import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, // eslint-disable-line react/sort-comp compone...
11-react-context/src/theme-context.js
iproduct/course-node-express-react
import React from 'react'; export const themes = { light: { name: 'Light Theme', foreground: '#000000', background: '#eeeeee', }, dark: { name: 'Dark Theme', foreground: '#ffffff', background: '#0000ff', }, }; //1. Create context // Context lets us pass a value d...
packages/mineral-ui-icons/src/IconBattery60.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 IconBattery60(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
src/js/components/header/navigation.js
trwalker/marvel-react
import React from 'react'; class Navigation extends React.Component { render() { return ( <nav className="navbar navbar-inverse"> <div className="container-fluid"> <div className="navbar-header"> <a className="navbar-brand" href="#">Ma...
src/components/operations/series-list.js
FranckCo/Operation-Explorer
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { seriesLink } from './routes'; import display from 'utils/display-results' import { sortArrayByKey } from 'utils/sort-array' import D from 'i18n' const sortArray = sortArrayByKey('label'); export default fu...
src/svg-icons/image/slideshow.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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 = pure(I...
src/index.js
doublerz/tractor-beam-emulator
import React from 'react' import { render } from 'react-dom' import { App } from './App' render(<App />, document.getElementById('root'))
frontend/src/components/forms/fields/projectFields/agencies.js
unicef/un-partner-portal
import React, { Component } from 'react'; import { isEmpty } from 'ramda'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SelectForm from '../../selectForm'; import { mapAgenciesNamesToSelection } from '../../../../store'; import { loadAgenciesNames } from '../../../../reducers/agenci...
examples/docusaurus-2/src/pages/index.js
zeit/now-cli
import React from 'react'; import classnames from 'classnames'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const features = [ {...
www/src/components/Terminal.js
TaitoUnited/taito-cli
import React from 'react'; import styled from '@emotion/styled'; import { useTrail, animated } from 'react-spring'; import taitoCharacterImg from '../images/taito_char_white.png'; import { useOnScreen } from '../hooks'; import { media } from '../utils'; const trailConfig = { mass: 5, tension: 3000, friction: 50...
src/components/Footer/index.js
codex49/icon-generator
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import html2canvas from '../../../lib/html2canvas'; import { showPopupDownload } from '../../../src/redux/actions'; class Footer extends Component { static...
analysis/monkmistweaver/src/modules/talents/RisingMist.js
yajinni/WoWAnalyzer
import React from 'react'; import { formatNumber, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing'; import Events from 'parser/core/Events'; import ...
components/react-semantify/src/modules/tab.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; import StateSelector from '../mixins/stateSelector'; let defaultClassName = 'ui tab'; const Tab = React.createClass({ mixins: [ClassGenerator, StateSelector], render: function () { let {className, active, loading, tab, ...oth...
frontend/src/containers/Logout/Logout.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { logout as doLogout } from 'store/modules/auth'; class Logout extends Component { static propTypes = { logout: PropTypes.func, loggingOut: PropTypes.bool } constructor(props) { ...
client/src/App.js
DemocracyGuardians/DGTeam
import React, { Component } from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { connect } from 'react-redux' import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom' import './App.css'; import Login from './containers/Login' import Signup from './containers/Signup' import ...
src/svg-icons/places/spa.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSpa = (props) => ( <SvgIcon {...props}> <path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z"/><path d="M15.49 9.63c...
src/modules/persisted/components/Editor-persisted.js
otissv/graphql-guru-ide
import React from 'react'; import autobind from 'class-autobind'; import styled from 'styled-components'; import RequestPersistedEditor from './Request-persisted'; import PersistedResultEditor from './Result-persisted'; import IconButton from '../../../styled/components/IconButton'; import '../css/style-persisted.css';...
packages/examples/src/resume/Experience.js
diegomura/react-pdf
/* eslint-disable react/no-array-index-key */ import React from 'react'; import { Text, View, StyleSheet } from '@react-pdf/renderer'; import Title from './Title'; import List, { Item } from './List'; const styles = StyleSheet.create({ container: { flex: 1, paddingTop: 30, paddingLeft: 15, '@media ...
pootle/static/js/shared/components/FormCheckedInput.js
dwaynebailey/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; const FormCheckedInput = Reac...
src/components/common/svg-icons/notification/mms.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/> </SvgIcon> ); NotificationMms = ...
node_modules/react-router/es/withRouter.js
pornvutp/tact
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Route from './Route'; /** ...
website/site.js
hailocab/react-pure
import React from 'react'; import { render } from 'react-dom'; import { renderToStaticMarkup, renderToString } from 'react-dom/server'; import Layout from './components/Layout'; import Index from './components/IndexPage'; if (typeof document !== 'undefined') { render(<Index />, document.getElementById('app')); } ...
src/client/components/UserCard.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import FollowButton from '../widgets/FollowButton'; import Avatar from '../components/Avatar'; import './UserCard.less'; const UserCard = ({ username, alt }) => ( <div className="UserCard"> <div className="Use...
client/node_modules/uu5g03/dist-node/forms-v3/radios.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js'; import InputMixin from './mixins/input-mixin.js' import GroupMixin from './mixins/group-mixin.js' import InputWrapper from './internal/input-wrapper.js'; import Checkbbox from './checkbox.js'; import './radios.less';...
src/components/DatePicker/MonthRangePicker.js
UncleYee/crm-ui
import React from 'react'; import ReactDOM from 'react-dom'; import RangePicker from 'react-daterange-picker'; import Popover from 'react-bootstrap/lib/Popover'; import Overlay from 'react-bootstrap/lib/Overlay'; import InputGroup from 'react-bootstrap/lib/InputGroup'; import FormControl from 'react-bootstrap/lib/FormC...