path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
blueocean-material-icons/src/js/components/svg-icons/hardware/phonelink.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwarePhonelink = (props) => ( <SvgIcon {...props}> <path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/> </SvgIcon> ); HardwarePhonelink.d...
src/layouts/BasicLayout.js
wu-sheng/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
src/svg-icons/image/filter-2.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter2 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ...
node_modules/react-bootstrap/es/MediaLeft.js
superKaigon/TheCave
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/client/components/FeaturesAsync/Features.js
EdgeJay/web-starterkit
/* eslint-disable react/no-danger */ import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { bindActions, mapStateToProps } from '../../stores'; import * as actions from '../../actions/main'; import PageHeader from '../PageH...
examples/with-redux-reselect-recompose/components/addCount.js
giacomorebonato/next.js
import React from 'react' import PropTypes from 'prop-types' import { compose, setDisplayName, pure, setPropTypes } from 'recompose' const AddCount = ({ count, addCount }) => <div> <style jsx>{` div { padding: 0 0 20px 0; } `}</style> <h1>AddCount: <span>{count}</span></h1> <button ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Ttommeke/Ttommeke.github.io
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'));
frontend/src/components/dashboard/agencyDashboard/listOfOpenCfeiTable.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { TableCell } from 'material-ui/Table'; import Typography from 'material-ui/Typography'; import { loadOpenCfeiList } from '../../../reducers/openCfeiDashboardL...
src/routers/ProjectRouter.js
adisrini/personal-website
import React from 'react' import { Route, withRouter } from 'react-router-dom'; import NotFound from '../templates/NotFound/NotFound'; import ProjectWriteup from '../templates/Projects/ProjectWriteup'; import projectdata from '../assets/data/projects'; import Switch from 'react-router-dom/Switch'; const projects = pro...
source/server.js
jchavezjs/platzi-react
import http from 'http'; import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import Pages from './pages/containers/Page.jsx'; import Layout from './pages/components/Layout.jsx'; impor...
docs/src/pages/components/steppers/HorizontalNonLinearStepperWithError.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepLabel from '@material-ui/core/StepLabel'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typo...
widgets/TextAreaWidget.js
FaridSafi/react-native-gifted-form
import React from 'react'; import createReactClass from 'create-react-class'; import { View, TextInput, PixelRatio } from 'react-native'; var WidgetMixin = require('../mixins/WidgetMixin.js'); module.exports = createReactClass({ mixins: [WidgetMixin], getDefaultProps() { return { type: 'TextAr...
benchmarks/dom-comparison/src/implementations/inline-styles/Dot.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import React from 'react'; const Dot = ({ size, x, y, children, color }) => ( <div style={{ ...styles.root, ...{ borderBottomColor: color, borderRightWidth: `${size / 2}px`, borderBottomWidth: `${size / 2}px`, borderLeftWidth: `${s...
src/AffixMixin.js
wjb12/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
src/svg-icons/editor/border-top.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h...
src/components/Main.js
wang-yin-long/test1-by-react
require('normalize.css/normalize.css'); require('styles/App.css'); require('styles/my.css'); import React from 'react'; // 获取图像数据 var imgDatas = require('../datas/pics.json'); // 图像数据转化为图像URL function getImgURL(imgDatasArr) { for (var i = 0; i < imgDatasArr.length; i++) { var oneImgData = imgDatasArr[i]; o...
src/components/Messages.js
GovReady/GovReady-Agent-Client
import React, { Component } from 'react'; import { PropTypes as PT } from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { default as config } from 'config'; import { actions } from 'redux/modules/messageReducer'; class Messages extends Component { // First ...
core/packages/iframes/shared/components/index.js
wp-pwa/wp-pwa
import React from 'react'; import PropTypes from 'prop-types'; import { inject } from 'mobx-react'; import { Fill } from 'react-slot-fill'; import LazyIframe from './LazyIframe'; const Iframes = ({ iframes }) => iframes.map(props => ( <Fill key={props.name} name={props.name}> <LazyIframe {...props} /> ...
src/main/webapp/static/js/club/errorPage.js
weijiafen/antBlog
import React from 'react'; var Application=React.createClass({ render(){ return ( <div> error page </div> ); } }) export default Application;
src/views/MonthsView.js
YouCanBookMe/react-datetime
import React from 'react'; import ViewNavigation from '../parts/ViewNavigation'; export default class MonthsView extends React.Component { render() { return ( <div className="rdtMonths"> <table> <thead> { this.renderNavigation() } </thead> </table> <table> <tbody> { this.re...
app/components/Increment/Increment.js
djizco/boilerplate-react-native
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-native'; export default function Increment({ increment }) { return ( <Button title="Increment" onPress={increment} /> ); } Increment.propTypes = { increment: PropTypes.func.isRequired, };
js/components/pages/DoingsPage.react.js
ciccia/i-done-that
import React, { Component } from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; import * as doingsActions from '../../actions/doingsActions'; import { doingsSelector } from '../../selectors/doingsSelectors'; import DoingsFormFull from '../doings/DoingsForm/full'; import DoingsListFull fro...
src/components/NextView.js
dominictracey/hangboard
import React from 'react' import PropTypes from 'prop-types' import {View} from 'react-native' import AppText from './AppText'; import {StyleSheet} from 'react-native'; NextView.propTypes = { nextWeight: PropTypes.number, nextGrip: PropTypes.string.isRequired, } function NextView(props) { const weightLabel = pr...
demo/components/AddTodo.js
dsibiski/cerebral
import React from 'react'; import {Decorator as Cerebral} from './../CustomController.js'; @Cerebral({ isSaving: ['isSaving'], newTodoTitle: ['newTodoTitle'] }) class AddTodo extends React.Component { onFormSubmit(event) { event.preventDefault(); this.props.signals.newTodoSubmitted(); } onNewTodoTit...
src/components/screen/ScreenHeader.js
hostables/musicquiz
import React from 'react' import ScreenBar from './ScreenBar' import './ScreenHeader.css' import '../../variables.css' const ScreenHeader = ({ children, className }) => ( <ScreenBar className={className ? `ScreenHeader ${className}` : 'ScreenHeader'} backgroundColor="var(--primary)" > {children} </Sc...
src/app/component/material-image/material-image.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import propTypes from '../../prop-types' import cn from '../../lib/class-names' const MaterialImage = ({classNames, color = '#ffffff', image, zoom, square, onClick}) => { const style = { backgroundColor: color } if (image) { style.backgroundI...
lib/utils/plugins.js
wilsontayar/hyper
import {remote} from 'electron'; import {connect as reduxConnect} from 'react-redux'; // patching Module._load // so plugins can `require` them wihtout needing their own version // https://github.com/zeit/hyper/issues/619 import React from 'react'; import ReactDOM from 'react-dom'; import Component from '../component'...
app/javascript/mastodon/features/status/index.js
3846masa/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchStatus } from '../../actions/statuses'; import Immutable from 'immutable'; import EmbeddedStatus from '../../components/status'; import MissingI...
actor-apps/app-web/src/app/components/JoinGroup.react.js
voidException/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
packages/core/admin/admin/src/content-manager/icons/Media/index.js
wistityhq/strapi
import React from 'react'; const Media = () => { return ( <svg width="12" height="11" xmlns="http://www.w3.org/2000/svg"> <g fill="#333740" fillRule="evenodd"> <path d="M9 4.286a1.286 1.286 0 1 0 0-2.572 1.286 1.286 0 0 0 0 2.572z" /> <path d="M11.25 0H.75C.332 0 0 .34 0 .758v8.77c0 .418.33...
website/modules/components/NativeExample.js
DelvarWorld/react-router
import React from 'react' import PropTypes from 'prop-types' import Media from 'react-media' import { Block, Col } from 'jsxstyle' import Bundle from './Bundle' import SourceViewer from './SourceViewer' import SmallScreen from './SmallScreen' import Loading from './Loading' const NativeExample = ({ example }) => ( <...
samples/BasicComponents.js
adamweeks/react-ciscospark-1
import React from 'react'; import Button from '@webex/react-component-button'; import Icon, {ICONS} from '@webex/react-component-icon'; function BasicComponents() { function onClick() { // eslint-disable-next-line no-alert window.alert('onClick'); } const buttonContainerStyle = { width: '40px', ...
src/framework/react/demo/AppContext.js
baukh789/GridManager
import React from 'react'; const AppContext = React.createContext({gridManagerName: 'testReact'}); export default AppContext;
examples/src/index.js
alexkuz/react-json-tree
import { render } from 'react-dom'; import React from 'react'; import App from './App'; render(<App />, document.getElementById('root'));
Console/app/node_modules/antd/es/tree-select/index.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/components/navigation/Header/NavBar/NavBarHeader.js
cltk/cltk_frontend
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { toggleLeftMenu } from '../../../../actions/leftMenu'; import './NavBarHeader.css'; const NavBarHeader = ({ dispatchToggleLeftMenu, leftMenuOpen }) => ( <div className="nav-header"> <i className="mdi ...
src/components/ShareExperience/common/FailFeedback.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import Feedback from 'common/Feedback'; const FailFeedback = ({ info, buttonClick }) => ( <Feedback buttonClick={buttonClick} heading="Oops 有些錯誤發生" info={ info || '請查看你的網路連線再試一次,如果你還沒填寫完,請先別關閉瀏覽器!' } buttonText="好,我知道了" /> );...
app/src/components/App/RouteTransition.js
AlexandreBourdeaudhui/abourdeaudhui.fr
// /* // * Package Import // */ // import React from 'react'; // import PropTypes from 'prop-types'; // import { CSSTransitionGroup } from 'react-transition-group'; // import { Route } from 'react-router-dom'; // // // /* // * Local Import // */ // // // /* // * Component // */ // const RouteTransition = ({ compo...
src/svg-icons/device/battery-90.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1...
lib/react/components/MenuButton.js
bwyap/ptc-amazing-g-race
import React from 'react'; import PropTypes from 'prop-types'; import autobind from 'core-decorators/es/autobind'; import { Popover, Position, Button } from "@blueprintjs/core"; @autobind class MenuButton extends React.Component { static propTypes = { menu: PropTypes.element, iconName: PropTypes.string, text: ...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-swiper.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, SwipeMixin, Tools} from '../common/common.js'; import SwiperBody from './swiper-body.js'; import SwiperMenu from './swiper-menu.js'; import './swiper.less'; export const Swiper = React.createClass({ //@@viewOn:mixins mixins: [ BaseM...
src/main.js
woutervh-/cancun-react
import App from './App'; import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import style from './style'; import FeaturesProvider from './FeaturesProvider'; // Needed for onTouchTap // Can go away when react 1.0 release // Check this repo: // https://...
app/containers/Dashboard/index.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import { createStructuredSelector } from 'reselect'; import { FormattedMessage } from 'react-intl'; import web3Connect from '../AccountProvider/web3Connect'; import makeSelectAccountData from '../AccountProvider/selectors'; import Container from '../../com...
docs/v5/layouts/src/demos/widgets/ActionBarExpandingContent.js
Bandwidth/shared-components
import React from 'react'; import Form from './Form'; const style = { marginTop: '30px', paddingLeft: '30px', paddingRight: '30px', paddingBottom: '30px', }; export default ({ barHeight, expanded, children }) => ( <div style={style}>{children}</div> );
src/js/components/menuNav.js
ShiningZeng/EasyChat
import React, { Component } from 'react'; import {socket, NAME, PHOTO, isPC} from '../main'; export class MenuNav extends Component { constructor(props) { super(props); } componentDidMount() { const funcMode = this.refs.funcMode; this.changeState = this.changeState.bind(this); funcMode.addEventListener(...
src/web/components/ListItem/index.js
lukemarsh/react-redux-boilerplate
import React from 'react'; import styles from './styles.css'; const ListItem = (props) => ( <li className={props.className || styles.item}> <div className={styles.itemContent}> {props.item} </div> </li> ); ListItem.propTypes = { className: React.PropTypes.string, item: React.PropTypes.any, }; ...
src/static/template.js
dhruv-kumar-jha/react-static-complete-website
'use strict'; import React from 'react'; import _ from 'lodash'; import Meta from '../meta'; const HTML = ( props ) => { const body = props.body; // lets find the file names for vendor, bundle and manifest file from the manifest object provided to us by the react-static-webpack-plugin const vendor = _.find( pr...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.PureComponent { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-he...
node_modules/react-native-vector-icons/RNIMigration.js
RahulDesai92/PHR
import React from 'react'; import PropTypes from 'prop-types'; import FontAwesome from 'react-native-vector-icons/FontAwesome'; import Foundation from 'react-native-vector-icons/Foundation'; import Ionicons from 'react-native-vector-icons/Ionicons'; import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; i...
docs/src/client-render.js
seek-oss/seek-style-guide
// Polyfills import 'core-js/fn/array/fill'; import 'core-js/fn/array/includes'; import 'core-js/fn/array/from'; import 'core-js/fn/string/ends-with'; import 'core-js/fn/string/includes'; import 'core-js/fn/string/starts-with'; import 'core-js/fn/object/get-own-property-symbols'; import React from 'react'; import { hy...
src/components/common/hocs/PagedContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import AppButton from '../AppButton'; import messages from '../../../resources/messages'; /** * Use this with the JS Composition pattern to make a Container that has pag...
src/svg-icons/action/view-week.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewWeek = (props) => ( <SvgIcon {...props}> <path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4...
src/containers/Launch/LaunchView.js
npdat/Demo_React_Native
/** * Launch Screen * - Shows a nice loading screen whilst: * - Preloading any specified app content * - Checking if user is logged in, and redirects from there * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes...
src/common/components/select-repository-row/index.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import styles from './selectRepositoryRow.css'; class SelectRepositoryRow extends Component { render() { const { errorMsg, repository, onChange, isRepoEnabled // is reposit...
new-lamassu-admin/src/pages/Dashboard/Alerts/Alerts.js
lamassu/lamassu-server
import { useQuery } from '@apollo/react-hooks' import Button from '@material-ui/core/Button' import Grid from '@material-ui/core/Grid' import { makeStyles } from '@material-ui/core/styles' import classnames from 'classnames' import gql from 'graphql-tag' import * as R from 'ramda' import React from 'react' import { ca...
App.js
AlexMarin/SensorInsights
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { AppNav } from './app/config/router'; export default class App extends Component { render() { return <AppNav />; } } AppRegistry.registerComponent('SensorInsights', () => App);
app/components/todolist/AddTodo.js
flanamacca/react-learning-kit
import React from 'react'; import classNames from 'classnames/bind'; import styles from '../../css/todolist.css'; const cx = classNames.bind(styles); const AddTodo = ({addTodo}) => { let input; return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { ...
src/components/PageHeroes.js
dfilipidisz/overfwolf-hots-talents
import React from 'react'; import { connect } from 'react-redux'; import HeroSelection from './HeroSelection'; import { Grid } from 'semantic-ui-react'; import Separator from './Separator'; import TalentStats from './TalentStats'; import TalentTypeChooser from './TalentTypeChooser'; import { Button } from 'semantic-ui-...
app/containers/Tournament.js
jaadam/golfer-web
import React from 'react'; class Tournament extends React.Component { render() { return ( <h1>Tournament</h1> ); } } export default Tournament;
src/svg-icons/editor/show-chart.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
alessandrostone/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import ActorTheme from 'constants/ActorTheme'; import MessageAction...
docs/src/app/components/pages/components/Tabs/ExampleIconText.js
mtsandeep/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import FontIcon from 'material-ui/FontIcon'; import MapsPersonPin from 'material-ui/svg-icons/maps/person-pin'; const TabsExampleIconText = () => ( <Tabs> <Tab icon={<FontIcon className="material-icons">phone</FontIcon>} label="RE...
components/Champion.js
hobinjk/illuminate
import React from 'react'; import staticApi from '../static/api'; import ChampionIcon from './ChampionIcon'; import ChampionStore from '../stores/ChampionStore'; import ChampionPicker from './ChampionPicker'; import { connectToStores } from 'fluxible-addons-react'; class Champion extends React.Component { constructo...
src/svg-icons/social/party-mode.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPartyMode = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 ....
examples/auth-with-shared-root/components/User.js
mattkrick/react-router
import React from 'react' const User = React.createClass({ render() { return <h1>User: {this.props.params.id}</h1> } }) export default User
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
0xaio/create-react-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'; import load from 'absoluteLoad'; export default class ext...
js/react/offline.js
CANTUS-Project/vitrail
// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Program Name: vitrail // Program Description: HTML/CSS/JavaScript user agent for the Cantus API. // // Filename: js/react/offline.js // Purpose: React...
src/components/homepage/legal.js
LegalCheck/main
import React from 'react' const Legal = () => ( <div className="homeLegal"> <p>All of your answers will be confidential. Answering these questions does not make you a client of Community Law Wellington and Hutt Valley.</p> </div> ) export default Legal
src/screens/team/components/TeamDetail/TeamDetail.js
vio-lets/Larkyo-Client
import React from 'react'; import {Link} from 'react-router-dom'; import './TeamDetail.css'; export default class TeamDetail extends React.Component { constructor(props){ super(props); this.handleCreateNewTeamClicked = this.handleCreateNewTeamClicked.bind(this); this.handleMyTeamClicked = t...
src/Subheader/Subheader.js
igorbt/material-ui
import React from 'react'; import PropTypes from 'prop-types'; const Subheader = (props, context) => { const { children, inset, style, ...other } = props; const { prepareStyles, subheader, } = context.muiTheme; const styles = { root: { boxSizing: 'border-box', color:...
webapp/app/components/Software/Filters/Groups/index.js
EIP-SAM/SAM-Solution-Node-js
// // Filters page software // import React from 'react'; import { FormGroup, ControlLabel, FormControl, Col } from 'react-bootstrap'; import styles from 'components/Software/Filters/styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class SoftwareFiltersGroups extends React.Component { ...
src/containers/Asians/_components/PublishedBreakRound/Ballots/SmallBallots/Instance/OverviewInstance/SpeakerDisplay.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import List, { ListItem, ListItemText } from 'material-ui/List' export default connect(mapStateToProps)(({ speaker, debatersById, score }) => <List> <ListItem dense > <ListItemText primary={`${debatersById[speaker]...
src/CardContext.js
glenjamin/react-bootstrap
import React from 'react'; export default React.createContext(null);
src/games/Game0.js
Breta01/MemoryKing
import React from 'react'; import { Link } from 'react-router'; import gameNumbers from './Numbers'; const NumbersGame = React.createClass({ render() { return ( <div className="game"> <h1>Welcome to the Number:</h1> <div id="gameContent"></div> <d...
src/components/MemoryList/MemoryList.js
rdanieldesign/MemoryApp-ReactStarter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import Link from '../Link'; import MemoryItem from '../MemoryItem'; import { getAllMemories } from '../../stores/MemoryStore'; class MemoryList extends Component { constructor() { super(); thi...
src/index.js
licken/React-Common
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/index.js
danleavitt0/live-react-editor
import React from 'react' import AceEditor from 'react-ace' import $ from 'jquery' var Babel = require('babel') require('brace/mode/jsx') require('brace/theme/monokai') class Home extends React.Component { render () { return( <div> <button onClick={this._save.bind(this)}> save </button> <Ac...
examples/forms-bootstrap/src/components/dialogs-destroy-optimistic/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; export default createReactClass({ displayName: 'Hook', propTypes: { model: PropTypes.object.isRequired }, render: function() { const { model } = this.props; return ( <div style...
node_modules/react-bootstrap/es/DropdownToggle.js
ASIX-ALS/asix-final-project-frontend
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/logo.js
barrierandco/barrierandco
import React from 'react' import styled from 'styled-components' import LogoImage from '../assets/images/logo.svg' const LogoIcon = styled.img` display: block; height: auto; margin: 0 0 8px; width: 64px; @media ${props => props.theme.breakpoint} { margin: 0 auto 8px; width: 80px; } ` const LogoSt...
src/components/antd/spin/index.js
hyd378008136/olymComponents
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ...
examples/counter/containers/App.js
afram/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
fields/components/NestedFormField.js
Pop-Code/keystone
import React from 'react'; import { FormField, FormLabel } from '../../admin/client/App/elemental'; import theme from '../../admin/client/theme'; function NestedFormField ({ children, className, label, ...props }) { return ( <FormField {...props}> <FormLabel cssStyles={classes.label}> {label} </FormLabel>...
src/Alert.js
HorizonXP/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
node_modules/_rc-calendar@9.0.4@rc-calendar/es/Calendar.js
ligangwolai/blog
import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import ReactDOM from 'react-dom'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import KeyCode from 'rc-util/es/KeyCode'; import DateTable from './date/DateTable'; import CalendarHeader from './cale...
src/index.js
uoyknaht/tourreact2
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated loader and ...
src/routes/Library/components/SearchResults/SearchResults.js
bhj/karaoke-forever
import PropTypes from 'prop-types' import React from 'react' import PaddedList from 'components/PaddedList' import ArtistItem from '../ArtistItem' import SongList from '../SongList' import styles from './SearchResults.css' const ARTIST_HEADER_HEIGHT = 22 const ARTIST_RESULT_HEIGHT = 44 const SONG_HEADER_HEIGHT = 22 co...
Admin/Header/Index.js
wangmengling/MaoMobxBlog
import React, { Component } from 'react'; import Header from './Header'; export default () => ( <Header /> )
node_modules/antd/es/locale-provider/index.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/svg-icons/notification/vpn-lock.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVpnLock = (props) => ( <SvgIcon {...props}> <path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-...
src/view/frontend/about-us/goals/index.js
MoosemanStudios/app.moosecraft.us
import React from 'react'; import classNames from 'classnames'; import Helmet from 'react-helmet'; import Column from 'src/components/layout/column'; import Heading from 'src/components/component/heading'; import misc from 'src/styles/misc.scss'; import layout from 'src/styles/layout.scss'; import colors from 'src/st...
packages/ringcentral-widgets-docs/src/app/pages/Components/LogSection/index.js
ringcentral/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...
src/svg-icons/notification/sync-problem.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
src/svg-icons/content/undo.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUndo = (props) => ( <SvgIcon {...props}> <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/> </Svg...
mobile/SchemaAnalyser/src/Home.js
lealhugui/schema-analyser
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; import { Card, Button } from 'react-native-elements'; const instructions = Platform.select({ ios: 'Press Cmd+R to...
src/utils/CustomPropTypes.js
azmenak/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; const ANONYMOUS = '<<anonymous>>'; const CustomPropTypes = { deprecated(propType, explanation){ return function(props, propName, componentName){ if (props[propName] != null) { warning(false, `"${propName}" property of "${componen...
src/Components/Utils/NavBar.js
abhishekdhaduvai/readable_react
import React from 'react'; import AppBar from 'material-ui/AppBar'; class NavBar extends React.Component { render(){ return ( <AppBar title="Readable" iconClassNameRight="muidocs-icon-navigation-expand-more" onClick={() => this.props.handleToggle()}/> ) } } export default Nav...
src/login.js
cemiltokatli/ClearNotes
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import './assets/css/login-register.css'; import UserIcon from './assets/images/user-icon.png'; import PassIcon from './assets/images/lock-icon.png'; class Login extends Component { constructor(props) { super(props); this.formSub...
web/src/client/components/settings.js
mrsharpoblunto/it-gets-the-hose-again
/* * @format */ import React from 'react'; import {useState, useEffect, useContext} from 'react'; import keys from '../../../keys.json'; import {getSettings, updateSettings} from '../actions/settings'; import {useHistory} from 'react-router-dom'; import Loading from './loading'; import {StoreContext} from '../store-...
pkg/interface/link/src/js/components/lib/links-tabbar.js
jfranklin9000/urbit
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { makeRoutePath } from '../../lib/util'; export class LinksTabBar extends Component { render() { let props = this.props; let memColor = '', setColor = ''; if (props.location.pathname.includes('/settings'))...