path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/device/settings-system-daydream.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSettingsSystemDaydream = (props) => (
<SvgIcon {...props}>
<path d="M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1.... |
app/javascript/mastodon/features/ui/components/column.js | alarky/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import scrollTop from '../../../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
heading: PropTypes.string,
icon: PropTypes.str... |
src/components/SecondaryNavigation/SecondaryNavigation.stories.js | wfp/ui | import React from 'react';
import markdown from './README.mdx';
import {
SecondaryNavigation,
SecondaryNavigationTitle,
} from './SecondaryNavigation';
import Breadcrumb from '../Breadcrumb';
import BreadcrumbItem from '../BreadcrumbItem';
import BreadcrumbHome from '../BreadcrumbHome';
import Tabs from '../Tabs';... |
assets/ReactBasics/HelloWorldIUsage.js | reactinflipflops/slides | import React from 'react';
import ReactDOM from 'react-dom';
const Wrapper = () => {
return <div>Hello World!</div>;
};
const node = document.getElementById('root');
ReactDOM.render(<Wrapper />, node);
|
src/routes/not-found/NotFound.js | sjackson212/A6DotCom | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './NotFound.css';
class NotFound extends React.Component {
static propTypes = {
title: PropTypes.string.isRequired,
};
render() {
return (
<div className={s... |
frontend/src/app/containers/App.js | clouserw/testpilot | /* global ga */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push as routerPush } from 'react-router-redux';
import cookies from 'js-cookie';
import Clipboard from 'clipboard';
import { getInstalled, isExperimentEnabled, isAfterCompletedDate, isInstalledLoaded } from '../... |
src/main.js | gbanis/rc-manager | import React from 'react';
import ReactDOM from 'react-dom';
import store from './redux/config/store';
import App from './App';
import injectTapEventPlugin from 'react-tap-event-plugin';
// ========================================================
// Render Setup
// =====================================================... |
src/Table.js | rapilabs/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
render() {
let c... |
plugins/nexus-coreui-plugin/src/frontend/src/components/pages/admin/AnonymousSettings/AnonymousMachine.js | sonatype/nexus-public | /*
* Sonatype Nexus (TM) Open Source Version
* Copyright (c) 2008-present Sonatype, Inc.
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public... |
src/views/HomeView/HomeView.js | obfk/buildmaster | import React from 'react'
import { connect } from 'react-redux'
import classes from './HomeView.scss'
export class HomeView extends React.Component {
render () {
return (
<div className={classes['HomeView']}>
<h1>Buildmaster™</h1>
</div>
)
}
}
export default connect(
(state) => { ret... |
client/modules/Post/__tests__/components/PostListItem.spec.js | tklem/RecipeDisplay | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import PostListItem from '../../components/PostListItem/PostListItem';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ... |
src/components/layer/layer.js | zhangjingge/sse-antd-admin | import { Modal, message } from 'antd'
import React from 'react'
import ReactDOM from 'react-dom'
import classnames from 'classnames'
import styles from './layer.less'
const { info, success, error, warning, confirm } = Modal
const layer = {
prefixCls: 'ant-layer',
index: 1,
info,
success,
error,
warning,
... |
fields/types/color/ColorField.js | Redmart/keystone | import ColorPicker from 'react-color';
import Field from '../Field';
import React from 'react';
import { FormInput, InputGroup } from 'elemental';
const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches'];
const TRANSPARENT_BG =
`<svg width="24" height="24" viewBox="0 0 24 24"... |
my-app/src/components/helper/pulsifier.js | sThig/jabbascrypt | import React from 'react';
import Pulse from './Pulse'
class Pulsifier extends React.Component {
getRandomNumber(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
generatePulse(i) {
const props = {
key: i,
top: this.getRandomNumber(-385, 256),
left: this.getRando... |
showcase/plot/custom-svg-example.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/CounterApp.js | amannn/react-keep-state | import React, { Component } from 'react';
export default class CounterApp extends Component {
constructor(props) {
super(props);
this.state = {showChildren: true};
}
onToggleClick(e) {
e.preventDefault();
this.setState({showChildren: !this.state.showChildren});
}
render() {
let {showCh... |
src/FormItem.js | Frezc/rc-mobx-form | import React from 'react';
import PropTypes from 'prop-types';
import { checkIsRequired } from './utils'
import { observer } from 'mobx-react'
let FormItem = null
/**
* set the internal FormItem component that be used in rc-mobx-form
* @param fi FormItem Component
*/
export function setInternalFormItem(fi) {
For... |
src/containers/DevTools/DevTools.js | RSS-Dev/live-html | import React from 'react'
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools'
// Monitors are separate packages, and you can make a custom one
import DiffMonitor from 'redux-devtools-diff-monitor'
import Dispatch from 'redux-devtools-dispatch'
import DockMonitor from 'redux-devtools-dock-m... |
react/src/react-beautiful-dnd/index.js | pbdm/html-base-template | import React from 'react';
import initialData from './initial-data';
import Column from './column';
import { DragDropContext } from 'react-beautiful-dnd';
export default class App extends React.Component {
state = initialData;
onDragEnd = result => {
console.log('ondragend', result);
const { destination, ... |
src/svg-icons/av/shuffle.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvShuffle = (props) => (
<SvgIcon {...props}>
<path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2.... |
src/_core/index.js | hotboxtech/static | import {
Route,
Router,
hashHistory,
} from 'react-router';
import App from './app';
import {
HomeView,
} from '../views';
import React from 'react';
import {render} from 'react-dom';
function run() {
render(
<Router history={hashHistory}>
<Route component={App}>
<Route path="/... |
src/svg-icons/communication/call-split.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallSplit = (props) => (
<SvgIcon {...props}>
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/>
</SvgIcon>
);
CommunicationCallS... |
lib/components/ResultsHeroes/ResultsHeroes.js | christielynam/do-you | import React from 'react';
import './ResultsHeroes.css';
const ResultsHeroes = ({ personality_blend, personality_types }) => {
const personalityMatches = personality_types.map( type => {
const { name, description, badge, keywords } = type.personality_type
return (
<div className='personality-card'>
... |
src/app/development/trc/LargeNodeContents.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
import SubNode from './SubNode';
import NodeSteps from './NodeSteps';
import TypePuck from './TypePuck';
import { decisionIconHeader, trcProjectTypes } from './textContent';
/*
Used to create contents of nodes on screens above tablet breakpoint (see FlowDi... |
src/parser/shared/modules/items/bfa/AncientKnotOfWisdom.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatPercentage, formatNumber } from 'common/format';
import { calculatePrimaryStat } from 'common/stats';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interfac... |
src/sections/Background/Background.js | jmsaulnier/jmsaulnier.works | import React, { Component } from 'react';
import App from './3d';
import styles from './Background.css';
/**
* Background component
*/
export default class Background extends Component {
constructor(props) {
super(props);
this.state = {};
this.$canvas = null;
}
componentDidMount() {
const app = n... |
client/src/components/svg/FilePickerIcon.js | Wiredcraft/jekyllpro-cms | import React from 'react';
export default props => {
return (
<svg
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z" />
<path d="M0 0h24v24H0... |
node_modules/._react-slick@0.14.7@react-slick/src/mixins/helpers.js | angustas/company | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper';
import assign from 'object-assign';
var helpers = {
initialize: function (props) {
const slickList = ReactDOM.findDOMNode(this.list);
var slideCount = Reac... |
src/Toolbar/ToolbarTitle.js | pradel/material-ui | import React from 'react';
function getStyles(props, context) {
const {
baseTheme,
toolbar,
} = context.muiTheme;
return {
root: {
paddingRight: baseTheme.spacing.desktopGutterLess,
lineHeight: `${toolbar.height}px`,
fontSize: toolbar.titleFontSize,
position: 'relative',
... |
src/components/About/index.js | WendellLiu/GoodJobShare | import React from 'react';
import { Link } from 'react-router';
import Helmet from 'react-helmet';
import { Section, Wrapper, Heading, P } from 'common/base';
import CallToActionFolder from 'common/CallToAction/CallToActionFolder';
import CallToActionBanner from 'common/CallToAction/CallToActionBanner';
import { Facebo... |
lib/src/navbar.js | SerendpityZOEY/Fixr-RelevantCodeSearch | /**
* Created by yue on 8/16/16.
*/
import React from 'react';
import AppBar from 'material-ui/AppBar';
import Drawer from 'material-ui/Drawer';
import Searchpanel from './searchpanel.js';
const styles = {
wholeBar: {
backgroundColor:'#5e35b1'
},
title: {
textAlign:'center'
}
}
clas... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateNotDefinedButUsed.js | ylu1317/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
render() {
return this.state.children;
}
}
class MyComponent2 extends React.Component {
render() {
const state = {};
return state;
}
}
const expression1 = () =>
class extends React.Component {
render() {
... |
src/components/Main.js | swustdyd/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
import ControllerUnit from './ControllerUnit';
var imageDatas = require('../data/imageDatas.json');
imageDatas = ((imageDatasArr) => {
for(var i = 0; i < imageDatasArr.length; i++){
... |
examples/js/keyboard-nav/nav-with-expand-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 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 id = startId + i;
products.push({
id: id,
... |
src/client/components/SaveTripButtonWidget/SaveTripButtonWidget.js | trippian/trippian | import log from '../../log'
import React from 'react'
const SaveTripButtonWidget = ({
handleSave, disableButton
}) => {
return (
<button className={`save-trip-button ${disableButton ? 'disable' : ''}`} disable={disableButton}>
<i className="fa fa-heart" onClick={handleSave.bind(null, true)}></i>
</bu... |
admin/src/components/Lightbox.js | asifiqbal84/keystone | import React from 'react';
import blacklist from 'blacklist';
import Portal from './Portal';
const Transition = React.addons.CSSTransitionGroup;
const BODY = document.getElementsByTagName('body')[0];
var Lightbox = React.createClass({
displayName: 'Lightbox',
propTypes: {
backdropClosesModal: React.PropTypes.bool... |
app/components/Home.js | danielfranca/xpensetrackrreact | import React from 'react';
import { Link } from 'react-router';
import BudgetListContainer from '../containers/BudgetListContainer';
function Home(props) {
return (
<div>
<div className="ui container">
<h2 className="ui header center aligned" style={{marginTop: '5px', color: "#... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | CODEINAE/todoy | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
src/parser/warrior/fury/modules/features/RampageCancelled.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
const RAMPAGE_HITS_PER_CAST = 4;
class RampageCancelled extends Analyzer {
// Rampage is in fact 5 separate spells... |
packages/veritone-widgets/src/widgets/EngineSelection/EngineListView/EngineListContainer/index.js | veritone/veritone-sdk | import React from 'react';
import { connect } from 'react-redux';
import { func, string, arrayOf, bool, shape, any } from 'prop-types';
import { isEmpty, noop } from 'lodash';
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
import { withStyles } from '@... |
src/components/AnimatedBox.js | lewiscowper/react-blessed-hot-motion | import React, { Component } from 'react';
import { Spring } from 'react-motion';
import { rgbToHex, interpolateColor } from '../utils/colors';
const colors = {
base00: '#2d2d2d',
base01: '#393939',
base02: '#515151',
base03: '#747369',
base04: '#a09f93',
base05: '#d3d0c8',
base06: '#e8e6df',
base07: '#... |
src/Icons/Suggestion.js | hasseboulen/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=idea&i=252366
// Idea by Gregor Cresnar from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}>
<path d="M38.7,90v-2.9c0-1.5,1.2-2.8,2.8-2.8h16.9c1.5,0.1,2.7,1.3,2.7,2.8V90c... |
src/NavDropdown.js | xiaoking/react-bootstrap | import React from 'react';
import Dropdown from './Dropdown';
class NavDropdown extends React.Component {
render() {
let { children, title, noCaret, ...props } = this.props;
return (
<Dropdown {...props} componentClass="li">
<Dropdown.Toggle
useAnchor
disabled={props.disab... |
src/js/components/PatchworkPlannerApp.js | thomas-lack/patchwork-planner | import React from 'react';
import PatternSelect from '../containers/PatternSelect';
import PatchworkField from '../containers/PatchworkField';
const PatchworkPlannerApp = () => (
<div id="viewport">
<PatternSelect />
<PatchworkField />
</div>
);
export default PatchworkPlannerApp; |
src/app/index.js | ConnorGBrewster/FLLSS | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
import { syncReduxAndRouter } from 'redux-simple-router';
import { createHashHistory } from 'h... |
src/components/map/LocationTypeAhead.js | react-in-action/letters-social | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import MapBox from 'mapbox';
import Loader from '../Loader';
/**
* Presents the user with a typeahead so they can pick a location
* @type {Object}
*/
export default class LocationTypeAhead extends Component {
static propTypes = {
... |
src/svg-icons/hardware/desktop-mac.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
docs/app/Examples/views/Card/Content/CardExampleImageCard.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Card, Icon, Image } from 'semantic-ui-react'
const CardExampleImageCard = () => (
<Card>
<Image src='http://semantic-ui.com/images/avatar/large/daniel.jpg' />
<Card.Content>
<Card.Header>Daniel</Card.Header>
<Card.Meta>Joined in 2016</Card.Meta>
<Card.Desc... |
src/components/FiatRate.js | amiuhle/kasisto | import Big from 'big.js'
import React from 'react'
import Icon from './Icon'
export default ({ fiatCurrency, rate, exchange, className }) => (
<small className={`${className || ''}`}>
{ rate == null ? <Icon name='loading' /> : new Big(rate).toFixed(2) } {fiatCurrency} / XMR <br />
<a target='_blank' href={ex... |
react/features/base/react/components/native/Pressable.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { TouchableWithoutFeedback } from 'react-native';
/**
* The type of the React {@link Component} props of {@link Pressable}.
*/
type Props = {
children: React$Node,
/**
* Called when the touch is released, but not if cancelled (e.g. By a scroll
... |
src/index.js | drodenberg/resume | import React from 'react';
import ReactDOM from 'react-dom';
import './styles/index.css';
import App from './components/App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregist... |
src/utils/childrenValueInputValidation.js | natlownes/react-bootstrap | import React from 'react';
import { singlePropFrom } from './CustomPropTypes';
const propList = ['children', 'value'];
export default function valueValidation(props, propName, componentName) {
let error = singlePropFrom(propList)(props, propName, componentName);
if (!error) {
error = React.PropTypes.node(pro... |
app/src/tabs/GiveTab.js | ericvrp/SoliditySandbox | import React from 'react'
import { Card, CardHeader, CardText } from 'material-ui/Card'
import RaisedButton from 'material-ui/RaisedButton'
import TextField from 'material-ui/TextField'
import QrReader from 'react-qr-reader'
import { observer } from 'mobx-react'
import { observable } from 'mobx'
import { sendEther } fr... |
src/app/core/atoms/icon/icons/near-miss.js | blowsys/reservo | import React from 'react'; const NearMiss = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="19 7 21 7 21 3 19 3"/><polygon points="19 11 21 11 21 9 19 9"/><path d="M14,14 L14,13 C14,11.895 13.105,11 12,11 C10.895,11 10,11.895 10,13 L10,21 L14,21 L14,17.974 C14.838,18.609 15.87,19 17,19 L17,17 C15.... |
client/src/components/home.js | CharismaticChard/CharismaticChard | import React from 'react';
import { connect } from 'react-redux';
import { Link, Redirect } from 'react-router-dom';
class Home extends React.Component {
render() {
return (
<div className="home">
<div className="text-center">
<h4 className="homeWelcome">Welcome To Splitter!</h4>
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js | christiantinauer/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';
function load() {
return [
{ id: 1, name: '1' },
... |
app/src/General/components/Loading.js | rmonnier/hypertube | import React from 'react';
const Loading = () => (<div style={{ color: 'whiteSmoke' }} />);
export default Loading;
|
pages/sass.js | Cspeisman/cspeisman.github.io | import React from 'react'
import './example.scss'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
export default class Sass extends React.Component {
render () {
return (
<DocumentTitle title={`${config.siteTitle} | Hi sassy friends`}>
<div>
<h1
... |
client/src/containers/private-route/index.js | OpenChemistry/materialsdatabank | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Route } from 'react-router-dom';
import { getMe } from '../../redux/selectors/girder';
import LoginRequired from '../../components/login-required';
class PrivateRoute extends Component {
render() {
const {component, me, ..... |
lib/containers/hyper.js | chabou/hyper | /* eslint-disable react/no-danger */
import React from 'react';
import Mousetrap from 'mousetrap';
import {connect} from '../utils/plugins';
import * as uiActions from '../actions/ui';
import {getRegisteredKeys, getCommandHandler, shouldPreventDefault} from '../command-registry';
import stylis from 'stylis';
import ... |
src/Login.js | Samuron/WaveHustle | import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import firebase from 'firebase';
const style = {
textAlign: 'center',
width: '500px',
margin: '100px auto 0 auto',
padding: '10px'
};
export default class Login extends Component {
static contextTypes = {
rou... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/DropdownToggle.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 ... |
client/app/containers/HomePage/index.js | gustblima/what-can-i-play-with-my-friends | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import Modal from 'react-modal';
import { createStructuredSelector } from 'reselect';
import { List, Map } from 'immutable';
impor... |
frontend/src/index.js | gatesy/SpotifyPlaylistCurator | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
client/src/app/components/common/Footer.js | zraees/sms-project | /**
* Created by griga on 11/24/15.
*/
import React from 'react'
import {Dropdown, MenuItem} from 'react-bootstrap'
export default class Footer extends React.Component {
render(){
return (
<div className="page-footer">
<div className="row">
<div className... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-voice.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsVoice = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5... |
src/routes/add/index.js | ynu/res-track-wxe | import React from 'react';
import Add from './Add';
import { addResource } from '../../actions/add';
export default {
path: '/add',
async action({ store }) {
const add = async values => {
try {
const data = await store.dispatch(addResource(values));
window.location = `/detail/${data}`;
... |
frontend/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Cinderpup/TwitterActions | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/modal.js | jonishaso/nice-tdl | import React, { Component } from 'react';
import 'bootstrap/dist/css/bootstrap.css'
class Modal extends Component {
// constructor(props){
// super(props);
// this.close = this.close.bind(this);
// }
close(e) {
e.preventDefault()
if (this.props.onClose) {
this.props.onClose()
}
}
... |
src/App/Body/Inputs/PasteInput/PasteHandler/PasteTextField.js | ksmithbaylor/emc-license-summarizer | import React from 'react';
import colors from 'data/colors';
import TextField from 'material-ui/lib/text-field';
export default class PasteTextField extends React.Component {
static propTypes = {
onEnterKeyDown: React.PropTypes.func.isRequired
};
render() {
return (
<TextField
autoFocus
... |
node_modules/_rc-table@5.6.12@rc-table/es/TableCell.js | ligangwolai/blog | 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... |
node_modules/react-bootstrap/es/FormControl.js | lucketta/got-quote-generator | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
frontend/react-slingshot/src/index.js | ggchan0/git_diffed | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tell webpack t... |
app/assets/javascripts/articles.js | embbnux/kails | import React from 'react';
import ReactDOM from 'react-dom';
import Articles from './components/articles';
const articles = window.__PRELOADED_STATE__.articles;
ReactDOM.render(
<Articles articles={ articles } />,
document.getElementById('articles')
);
|
public/javascripts/components/topic-bar.js | JetChat/JetChat | import React from 'react';
import Reflux from 'reflux';
import SearchPane from './search-pane';
import NewTopicPane from './group-header-pane';
import TopicPane from './topic-pane';
import ChatStore from '../events/chat-store';
var TopicBar = React.createClass({
mixins: [Reflux.connect(ChatStore, 'store')],
r... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/crop-landscape.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape.displayName = 'ImageCropLandscape';
ImageCropLan... |
app/javascript/mastodon/features/direct_timeline/components/conversation.js | tateisu/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContainer from '../../../containers/status_container';
export default class Conversation extends ImmutablePureComp... |
packages/core/src/icons/components/AddMultiItems.js | iCHEF/gypcrete | import React from 'react';
export default function SvgAddMultiItems(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 1000 1000"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M406.3 343.8V2... |
react/features/mobile/navigation/components/welcome/functions.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { getFeatureFlag, WELCOME_PAGE_ENABLED } from '../../../../base/flags';
import { IconArrowBack } from '../../../../base/icons';
import HeaderNavigationButton
from '../HeaderNavigationButton';
/**
* Determines whether the {@code WelcomePage} is enabled by the app itself... |
src/js/CreateStepper/BonusPeriodSelectForm.js | ludonow/ludo-beta-react | import React, { Component } from 'react';
import styled from 'styled-components';
import MediaQuery from 'react-responsive';
import MenuItem from 'material-ui/MenuItem';
import SelectField from 'material-ui/SelectField';
import {
bonusPeriodIconList,
getBonusPeriodIndexFromPeriod,
getPeriodDisplayByPeriod,... |
src/index.js | D7Torres/react-forecastsparks | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
src/components/Search.js | Mukesh23singh/EmailFinderNew | import React from 'react';
import { connect } from 'react-redux';
import agent from '../agent';
const mapStateToProps = state => ({
...state.emails
});
const mapDispatchToProps = dispatch => ({
search: payload =>
dispatch({ type: 'Emails', payload }),
});
class Search extends React.Component {
constructor(... |
src/utils/controller.js | waywaaard/spectacle | import React, { Component } from 'react';
import createHistory from 'history/createHashHistory';
import PropTypes from 'prop-types';
import { updateRoute } from '../actions';
import { countSlides } from './slides';
import theme from '../themes/default';
import Context from './context';
const history = createHistory()... |
client/modules/polls/VoteForm/QuestionChoices.js | ncrmro/ango | import React from 'react'
import Radio from 'react-mdc-web/lib/Radio/Radio'
import RadioGroup from 'react-mdc-web/lib/Radio/RadioGroup'
import { createFragmentContainer, graphql } from 'react-relay'
let QuestionChoices = ({ choiceSet, action, selected }) =>
<div>
{ choiceSet.edges.length > 0 ?
<RadioGrou... |
app/javascript/mastodon/features/ui/components/columns_area.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import TabsBa... |
app/screens/other/settings.js | andry-baka/dapur-ngebul-app | import React from 'react';
import {
ScrollView,
View,
TouchableOpacity,
StyleSheet
} from 'react-native';
import {
RkText,
RkStyleSheet,
RkTheme
} from 'react-native-ui-kitten';
import {
RkSwitch,
FindFriends
} from '../../components';
import {FontAwesome} from '../../assets/icons';
export class Sett... |
app/components/blog/Editor.js | Atamas1llya/Flerse | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { FormGroup, FormControl, Button } from 'react-bootstrap';
import { newStory } from '../../actions/user/stories';
class Editor extends Component {
constructor() {
super();
this.state = {
}
}
newStory(e) {
e.... |
src/components/articles/GIHealth.js | gelo592/IntegrativeMed-Site | import React from 'react'
import Typography from '@material-ui/core/Typography';
import { withStyles } from '@material-ui/core/styles';
import { colors } from '../../constants/constants';
const styles = theme => ({
para: {
lineHeight: 2.2,
fontSize: 17,
paddingBottom: 20,
color: colors.text,
}
});
... |
packages/mineral-ui-icons/src/IconIso.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 IconIso(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleMenuDirectionLeft.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleMenuDirectionLeft = () => (
<Dropdown text='Menu' floating labeled button className='icon'>
{/* <i class="dropdown icon"></i> */}
<Dropdown.Menu className='left'>
<Dropdown.Item>
<i className='dropdown i... |
app/components/app.js | matthewglover/react-redux-material-ui | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Paper from 'material-ui/Paper';
import Header from './header';
import VisibleTodoList from '../containers/visible_todo_list';
const style = {
padding: '10px',
display: 'flex',
flexDirection: 'column',
alignIt... |
docs/src/examples/collections/Menu/Content/MenuExampleDropdownItem.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Dropdown, Menu } from 'semantic-ui-react'
const MenuExampleDropdownItem = () => (
<Menu vertical>
<Dropdown item text='Categories'>
<Dropdown.Menu>
<Dropdown.Item>Electronics</Dropdown.Item>
<Dropdown.Item>Automotive</Dropdown.Item>
<Dropdown.Item>... |
src/components/Forms/CheckoutForm.js | zerkedev/zerke-app | import React from 'react';
import {injectStripe} from 'react-stripe-elements';
import {StripeProvider} from 'react-stripe-elements';
import {Elements} from 'react-stripe-elements';
import AddressSection from '../../components/StripeFormFields/AddressSection';
import CardSection from '../../components/StripeFormFields... |
packages/cf-component-notifications/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import {
NotificationList,
Notification,
NotificationGlobalContainer
} from 'cf-component-notifications';
import { Button } from 'cf-component-button';
let UNIQUE_ID = 0;
class NofiticationsComponent extends React.Component {
constructor(props) {
super(props);
this.state = {... |
example/src/screens/transitions/CollapsingHeader.js | inalist/react-native-navigation | import React from 'react';
import {StyleSheet, View, Text, ScrollView} from 'react-native';
class CollapsingHeader extends React.Component {
static navigatorStyle = {
drawUnderTabBar: true,
navBarButtonColor: '#ffffff',
navBarTextColor: '#ffffff',
collapsingToolBarImage: require('../../../img/gyro_h... |
src/components/Header/Header.js | ImanMh/react-proto | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isom... |
js/Landing.js | sheamunion/fem_intro_react_code_along | import React from 'react'
import { Link } from 'react-router-dom'
import '../public/normalize.css'
import '../public/style.css'
const Landing = React.createClass({
render () {
return (
<div className='landing'>
<h1>some videos</h1>
<input type='text' placeholder='Search' />
<Link to... |
src/js/index.js | jagatjeevan/mailapp | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import AppPaths from './constants/path';
import { createHistory, useBasename } from 'history';
const newbrowserHistory = useBasename(createHistory)({
basename: AppPaths.basePath
});
console.lo... |
src/svg-icons/places/smoking-rooms.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSmokingRooms = (props) => (
<SvgIcon {...props}>
<path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16.... |
docs/src/pages/components/text-fields/LayoutTextFields.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import TextField from '@material-ui/core/TextField';
const useStyles = makeStyles((theme) => ({
root: {
display: 'flex',
flexWrap: 'wrap',
},
textField: {
marginLeft: theme.spacing(1),
marginRight: theme.spacing(1),... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.