path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/real-world/index.js | phated/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
src/components/mainPanel/topnav/Search.js | EyEder/TM-Shop | import React from 'react';
import ReactDOM from 'react-dom'
class Search extends React.Component {
constructor(props) {
super(props);
}
handleChange(e) {
this.props.searchToy(e.target.value);
}
render() {
return (
<div className="search">
<input type="text" placeholder="Search toys..."
/... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/view-column.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionViewColumn = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/>
</SvgIcon>
);
ActionViewColumn.displayName = 'ActionViewColumn';
ActionViewColumn.muiName = 'SvgIcon';
export default ActionVi... |
react-router/components/Application.js | devypt/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import Nav from './Nav';
import Timestamp from './Timestamp';
import ApplicationStore from '../stores/ApplicationStore';
import {connectToStores, provideContex... |
app/components/users/UserProfileForm.js | alexko13/block-and-frame | import React, { Component } from 'react';
import Geosuggest from 'react-geosuggest';
class UserProfileForm extends Component {
constructor(props) {
super(props);
this._onBlur = this._onBlur.bind(this);
this._onLocationSelect = this._onLocationSelect.bind(this);
}
_onBlur() {
this.refs.geosugges... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js | Clearcover/web-build | /**
* 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 from 'react';
import tiniestCat from './assets/tiniest-cat.jpg';
export default () => (
<img id="feature-image-inclusion... |
scripts/index.js | Jonekee/flux-react-router-example | import React from 'react';
import { createHistory, createHashHistory } from 'history';
import Root from './Root';
const rootEl = document.getElementById('root');
// Use hash location for Github Pages
// but switch to HTML5 history locally.
const history = process.env.NODE_ENV === 'production' ?
createHashHistory() :... |
src/components/common/Header.js | Marsellus47/parking | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Menu } from 'semantic-ui-react';
export default class Header extends Component {
constructor(props) {
super(props);
this.state = { activeItem: 'home' };
this.handleItemClick = this.handleItemClick.bind(this);
... |
blueocean-material-icons/src/js/components/svg-icons/editor/linear-scale.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorLinearScale = (props) => (
<SvgIcon {...props}>
<path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 2.5 2.5c1.03 0 1.9-.62 2.29-1.5h2... |
src/routes/twitter/TweetsApp.js | hmeinertrita/MyPlanetGirlGuides | /**
* 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 Tweets from './Tweets... |
app/scripts/components/kuchyne/kitchen_f.js | kroupaTomass/Rondo-kuchyne | import React from 'react';
import { Link } from 'react-router';
class Kitchen_f extends React.Component {
constructor(props, context) {
super(props);
}
render() {
return (
<div className="col-md-4 no_padding">
<div className="single_image">
<a id="kitchen_f" href="#animatedModal_... |
src/components/old/World.js | yabadabu/react-playground | import React from 'react';
export default class World extends React.Component {
render() {
return <div>World</div>
}
}
|
src/parser/druid/feral/modules/azeritetraits/IronJaws.js | sMteX/WoWAnalyzer | import React from 'react';
import { formatNumber } from 'common/format';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { calculateAzeriteEffects } from 'common/stats';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyze... |
src/components/ethereum/BlocksTable.js | AlanVerbner/lightweight-eth-explorer | import React from 'react';
import { maxLength } from '../../utils/format-utils';
import { Link } from 'react-router-dom';
import { bigNumber, formatTimestamp } from '../../utils/format-utils';
const BlockRow = ({block}) => {
return (
<tr>
<td>
<Link to={`${process.env.PUBLIC_URL}/block/${block.... |
mxcube3/ui/containers/LoggerContainer.js | amilan/mxcube3 | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { setLogPage } from '../actions/logger';
export class LoggerContainer extends React.Component {
constructor(props) {
super(props);
this.firstPage = props.setLogPage.bind(this, 0);
this.la... |
src/components/withEmitter.js | literarymachine/crg-ui | import React from 'react'
import PropTypes from 'prop-types'
const withEmitter = (BaseComponent) => {
const EmitterComponent = (props, context) => (
<BaseComponent
emitter={context.emitter}
{...props}
/>
)
EmitterComponent.contextTypes = {
emitter: PropTypes.objectOf(PropTypes.any).isRe... |
src/components/tasks/NodeList.js | golemfactory/golem-electron | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Tooltip from '@tippy.js/react';
import BlockNodeModal from './modal/BlockNodeModal';
const { clipboard } = window.electron;
function statusDot(status) {
switch (status) {
case 'Starting':
return 'icon-status-do... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | MitarashiDango/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
src/client/pages/home.react.js | gaearon/este | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import React from 'react';
import {Link} from 'react-router';
import {msg} from '../intl/store';
export default class Home extends Component {
render() {
return (
<DocumentTitle title={msg('home.title'... |
src/js/client.dev.js | ilken/ChosenPokemons | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import Root from './pages/Root.js';
import { AppContainer } from 'react-hot-loader';
const render = (Component) => {
ReactDOM.render(
<AppContainer>
<Component/>
</AppContainer>,
document.getEle... |
client/src/components/dashboard/profile/user-info.js | ronniehedrick/scapeshift | import React, { Component } from 'react';
class UserInfo extends Component {
render() {
return (
<div>
{this.props.profile}
</div>
);
}
}
export default UserInfo;
|
src/index.js | mrjkc/react-redux | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import SearchBar from './components/search_bar';
import VideoList from './components/video_list';
const API_KEY = 'AIzaSyAupn_4VIjJw7AGYNIG_xL6AwqHMyl8eCM';
class App extends Component {
constructo... |
example/examples/CustomTiles.js | ali-alamine/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView, { MAP_TYPES, PROVIDER_DEFAULT } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4... |
app/boards/motec-d153/components/rev-bar-progress.js | fermio/motorsport-display | import React from 'react';
import _ from 'lodash';
const RevBarProgress = React.createClass({
propTypes: {
rpm: React.PropTypes.number,
revs: React.PropTypes.number
},
shouldComponentUpdate: function(nextProps, nextState) {
return this.props.revs !== nextProps.revs
|| ... |
src/pages/detailPage/index.js | chenchenyuyu/zhihuDaily-react | import React from 'react';
// import { connect } from 'react-redux';
import CYComponent from 'components/base/index';
import DetailHeader from '../../components/detail-header';
import DetailContent from '../../components/detail-content';
class DetailPage extends CYComponent {
render() {
return(
<div>
... |
Faw.Web.Client/src/layouts/LoginLayout/LoginLayout.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import { Grid, Cell } from 'react-mdl'
import LoginHeader from '../../components/Headers/LoginHeader'
import LoginFooter from '../../components/Footers/LoginFooter'
import LoadingBar from 'react-redux-loading-bar'
import '../../styles/core.scss'
import './LoginLayout.scss'
export const Login... |
examples/custom-server-fastify/pages/index.js | callumlocke/next.js | import React from 'react'
import Link from 'next/link'
export default () => (
<ul>
<li><Link href='/b' as='/a'><a>a</a></Link></li>
<li><Link href='/a' as='/b'><a>b</a></Link></li>
</ul>
)
|
examples/sidebar/app.js | chunwei/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{category.name}</h1>
{this.props.children || (
... |
src/components/Workout/View/ExerciseList.js | diegocasmo/workouter | import React from 'react'
import {WorkoutExerciseItem} from './ExerciseItem'
export const WorkoutExerciseList = ({exercises=[]}) => (
<div>
<p className='h3 wkr-workout-exercise-list__title'>Exercises</p>
{exercises.length > 0
? <ol>
{exercises.map((x, i) => <li key={i}><WorkoutExerciseItem {... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleDivider.js | ben174/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleDivider = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider>/</Breadcrumb.Divider>
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadcrumb.Divider>/... |
packages/editor/src/components/Icons/AlignRight.js | boldr/boldr | import React from 'react';
import Icon from './Icon';
const AlignRight = props => (
<Icon viewBox="0 0 448 512" {...props}>
<path d="M160 84V44c0-8.837 7.163-16 16-16h256c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H176c-8.837 0-16-7.163-16-16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c... |
src/svg-icons/device/bluetooth-disabled.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothDisabled = (props) => (
<SvgIcon {...props}>
<path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js | romaindso/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' },
... |
src/svg-icons/navigation/more-vert.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMoreVert = (props) => (
<SvgIcon {...props}>
<path d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"... |
src/main.js | magic-FE/react-redux-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store/createStore';
import App from './containers/AppContainer';
// store initial
const initialState = window.INITIAL_STATE;
const store = createStore(initialState);
// some setup
const MOUNT_NODE = document.getElementById('root')... |
styleguide/screens/Design/Typography.js | NGMarmaduke/bloom | import React from 'react';
import cx from 'classnames';
import Specimen from '../../components/Specimen/Specimen';
import { H, D } from '../../components/Scaffold/Scaffold';
import css from './Typography.css';
const Typography = () => (
<div>
<H level={ 1 }>Typography</H>
<D>
<H level={ 2 }>Font Fami... |
lib/containers/user-mention-tooltip-container.js | atom/github | import React from 'react';
import {graphql, createFragmentContainer} from 'react-relay';
import PropTypes from 'prop-types';
import Octicon from '../atom/octicon';
export class BareUserMentionTooltipContainer extends React.Component {
static propTypes = {
repositoryOwner: PropTypes.shape({
login: PropType... |
client/src/app/install/install-step-7-completed.js | ivandiazwm/opensupports | import React from 'react';
import store from 'app/store';
import ConfigActions from 'actions/config-actions';
import i18n from 'lib-app/i18n';
import Header from 'core-components/header';
import Message from 'core-components/message';
class InstallStep7Completed extends React.Component {
componentDidMount() {
... |
src/svg-icons/image/exposure.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposure = (props) => (
<SvgIcon {...props}>
<path d="M15 17v2h2v-2h2v-2h-2v-2h-2v2h-2v2h2zm5-15H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 5h6v2H5V5zm15 15H4L20 4v16z"/>
</... |
App/app.js | l337h4x0r/signalr-demo | import express from "express"
import { createServer } from "http"
import path from "path"
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
const config = require('./webpack.config');
const compiler = webpack(config);
imp... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js | lawrence-yu/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleSimple = () => (
<div style={style.container}>
<RefreshIn... |
src/shared/components/form/formPassword/formPassword.js | hollomancer/operationcode_frontend | import React, { Component } from 'react';
import FormInput from '../formInput/formInput';
class FormPassword extends Component {
render() {
return (
<FormInput
{...this.props}
inputType="password"
ref={(child) => { this.inputRef = child; }}
/>
);
}
}
export default Form... |
src/Songdetail.js | rweekers/voornameninliedjes-frontend | import React, { Component } from 'react';
import axios from "axios";
import ReactMarkdown from 'react-markdown';
import './Songdetail.css';
const API = 'https://api.voornameninliedjes.nl/songs/';
class Songdetail extends Component {
constructor(props) {
super(props);
this.state = {
song: '',
p... |
public/app/src/components/FormGroup.js | wjwu/blog | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const FormGroup = props => {
let label;
if (props.label) {
label = (<label className='control-label'>{ props.label }</label>);
}
const errors = props.errors;
let eleErrors;
let cls = 'form-group';
if ... |
src/index.js | hannupekka/badgenator | // @flow
import 'babel-polyfill';
import 'dom4';
import 'normalize.css/normalize.css';
import 'font-awesome/css/font-awesome.min.css';
import React from 'react';
import { render } from 'react-dom';
import getHistoryInstance from 'utils/history';
import { syncHistoryWithStore } from 'react-router-redux';
import configur... |
src/parser/mage/frost/modules/features/IceLance.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import EnemyInstances, { encodeTargetString ... |
src/scripts/components/app/AppHeader.component.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
node_modules/recharts/demo/component/RadarChart.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import { Surface, Radar, RadarChart, PolarGrid, Legend, Tooltip,
PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer } from 'recharts';
import DemoRadarItem from './DemoRadarItem';
import { changeNumberOfData } from './utils';
const data = [
{ subject: 'Math', A: 120, B: 110 },
... |
src/containers/App/header.js | zhangsichu/HybridAppReduxVsIonic | import logo from '../../images/header.png'
import React from 'react'
import styles from './styles'
function Header () {
return (
<a className={styles.header} href='#/'>
<img src={logo} alt='Header' />
</a>
)
}
export default Header
|
blueocean-material-icons/src/js/components/svg-icons/image/timer.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageTimer = (props) => (
<SvgIcon {...props}>
<path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-... |
components/App/App.js | craigbilner/apple-pie-universe | import React from 'react';
export default () => (<div>hello universe</div>);
|
client/src/app/parts/profile/views/profileView.js | Einsteinish/DumbNode | import React from 'react';
import DocTitle from 'components/docTitle';
import ProfileForm from '../components/profileForm';
export default function ProfileView(props){
return (
<div id="profile">
<DocTitle title="My Profile"/>
<ProfileForm {...props}/>
</div>
);
}
|
node_modules/react-select/src/Option.js | darklilium/Factigis_2 | import React from 'react';
import classNames from 'classnames';
const Option = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string, // className (based on mouse position)
instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (... |
docs/tutorial/DO_NOT_TOUCH/11/src/components/Toast/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
export default connect({
toast: state`app.toast`
},
function Toast (props) {
if (!props.toast) {
return null
}
return (
<div className='c-alerts c-alerts--bottomright'>
<div classNa... |
packages/site/web/index.js | ZhonganTechENG/zarm | import 'core-js/es';
import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter } from 'react-router-dom';
import App from './components/App';
ReactDOM.render(
<HashRouter>
<App />
</HashRouter>,
document.getElementById('app'),
);
|
web/src/components/UploadProcess.js | Ding-Jun/Analysis | import React from 'react';
//import Messager from './Messager'
import {
Form,
Button,
Table
} from 'antd'
import _ from 'lodash'
import $ from 'jquery'
const FormItem = Form.Item;
const createForm = Form.create;
class UploadProcess extends React.Component {
constructor(props) {
super(props);
// Operatio... |
src/index.js | BrownEPTech/brown-ep-startup-ideas-app | /**
* Index - this is where everything
* starts - but offloads to app.js
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
/* global __DEV__ */
import React from 'react';
import { applyMiddleware, compose, createStore } from 'redux';
import { connect, Provider } from 'react-re... |
docs/src/app/components/pages/components/AppBar/ExampleIconMenu.js | matthewoates/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import NavigationClose from 'material-ui/s... |
src/scenes/Login/Login.js | antoinechalifour/Reddix | import React from 'react'
import styled from 'styled-components'
import InfiniteProgressWrapper from 'Components/InfiniteProgressWrapper'
import {
BOX_SHADOW_1,
BOX_SHADOW_2
} from 'Util/constants'
const Outer = styled.div`
min-height: 100vh;
min-width: 100vw;
display: flex;
align-items: center;
justify... |
react-app/src/Reports.js | parkjoon/computer-showcase-forms | import React, { Component } from 'react';
export const ReportsMetaData = {
name: "Reports",
description: "daily transaction reports",
paths: [],
icon: "icon-bar-chart"
};
export default class Reports extends Component {
componentDidMount() {
this.props.handleReportsUpdate();
}
render() {
let updatedTimeT... |
carbon-page/src/App.js | ShotaOd/Carbon | import React, { Component } from 'react';
import connect from './store/connect';
import Board from './board/index';
const status = [
{
title: 'TODO',
number: 1,
},
{
title: 'DOING',
number: 2,
},
{
title: 'DONE',
number: 3,
},
{
title: 'NG',
number: 4,
},
];
const stor... |
actor-apps/app-web/src/app/components/Install.react.js | bensonX/actor-platform | import React from 'react';
export default class Install extends React.Component {
render() {
return (
<section className="mobile-placeholder col-xs row center-xs middle-xs">
<div>
<img alt="Actor messenger"
className="logo"
src="assets/img/logo.png"
... |
src/js/components/Header.js | slavapavlutin/pavlutin-node | import $ from 'jquery';
import React from 'react';
import { NavLink as Link } from 'react-router-dom';
import Icon from 'react-fontawesome';
import Logo from './Logo';
import Overlay from './Overlay';
import Navigation from './Navigation';
import { withClassName } from './HOC';
class Header extends React.Component {
... |
src/containers/WorkInProgress.js | ayastreb/money-tracker | import React from 'react';
import { Message } from 'semantic-ui-react';
export default () => (
<Message
size="large"
icon="hourglass half"
header="Work in Progress"
content="This page is not ready yet, check back later 😉"
/>
);
|
src/parser/mage/frost/modules/traits/GlacialAssault.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import { formatNumber } from 'common/format';
import Events from 'parser/core/Events';
import { SELECTED_PLAYER } from 'parser/core/EventFilter';
import TraitStatisticBox from 'interface/others/TraitStatisticBox... |
src/pages/rubicon.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Rubicon' />
)
|
example/src/main.js | captainill/react-tag-select | import ReactTagSelect from 'ReactTagSelect';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
/* eslint-disable */
// Set up test data
var Countries = ['Afghanistan','Albania','Algeria','Andorra','Angola','Anguilla','Antigua & Barbuda','Argentina','Armenia','Aruba','Australia','Austria',... |
src/utils/route.js | munza/react-reducks-starter | import React from 'react';
import _ from 'lodash';
import { Switch, Route } from 'react-router-dom';
import routes from '../routes';
const renderRoutes = (routes) => (
<Switch>
{routes.map((route, i) => (
<Route exact={route.exact} key={i} path={route.path} render={props => (
<route.component {...... |
packages/component/src/Activity/Bubble.js | billba/botchat | /* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2, 10] }] */
import { hooks } from 'botframework-webchat-api';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import isZeroOrPositive from '../Utils/isZeroOrPositive';
import useStyleSet from '../hooks/us... |
src/components/Canvas/ConvexHulls.js | codaco/Network-Canvas | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findIndex } from 'lodash';
import getAbsoluteBoundingRect from '../../utils/getAbsoluteBoundingRect';
import { ConvexHull } from './ConvexHull';
const getColor = (group, options) => {
const colorIndex = findIndex(options, ['value'... |
admin/client/components/CreateForm.js | Ftonso/keystone | import React from 'react';
import Fields from '../fields';
import InvalidFieldType from './InvalidFieldType';
import { Alert, Button, Form, Modal } from 'elemental';
var CreateForm = React.createClass({
displayName: 'CreateForm',
propTypes: {
err: React.PropTypes.object,
isOpen: React.PropTypes.bool,
list: R... |
docs/app/Examples/collections/Grid/Types/GridExampleCelledInternally.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleCelledInternally = () => (
<Grid celled='internally'>
<Grid.Row>
<Grid.Column width={3}>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column width={10}>
... |
client/lib/components/shared/login/inputs/Email.js | noxee/reddit-fantasy | import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
export default class extends Component {
constructor(props, context) {
super(props, context);
this.handleChange = this.handleChange.bind(this);
this.state = {
value: null,
valid: tru... |
examples/tutorials/react-integration/front/src/App.js | softindex/datakernel | import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
... |
saga/seata-saga-statemachine-designer/ggeditor/components/Minimap/index.js | seata/seata | import React from 'react';
import G6 from '@antv/g6';
import { pick } from '@utils';
import { MINIMAP_CONTAINER } from '@common/constants';
import withGGEditorContext from '@common/context/GGEditorContext/withGGEditorContext';
require('@antv/g6/build/plugin.tool.minimap');
const { Minimap: G6Minimap } = G6.Components... |
src/Fade.js | kwnccc/react-bootstrap | import React from 'react';
import Transition from './Transition';
class Fade extends React.Component {
render() {
return (
<Transition
{...this.props}
className='fade'
enteredClassName='in'
enteringClassName='in'
>
{this.props.children}
</Transition>
... |
packages/icons/src/md/maps/Layers.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdLayers(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M23.99 38.08L9.24 26.61 6 29.13l18 14 18-14-3.26-2.53-14.75 11.48zM24 33l14.73-11.45L42 19 24 5 6 19l3.26 2.53L24 33z" />
</IconBase>
);
}
expo... |
app/scripts/components/Avatar.js | blittle/gospel-study-tools | import React from 'react';
import { HOST } from '../constants';
import './Avatar.css';
import { logoutUser, showAuthErrorLogin, deleteUser } from '../data';
function findAncestor (el, cls) {
while ((el = el.parentElement) && !el.classList.contains(cls));
return el;
}
export default class Avatar extends React.Compon... |
src/svg-icons/maps/local-convenience-store.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalConvenienceStore = (props) => (
<SvgIcon {...props}>
<path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/>
</SvgIcon>
);
MapsLocalConvenienceStore = ... |
src/svg-icons/av/hearing.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHearing = (props) => (
<SvgIcon {...props}>
<path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ... |
app/containers/PourbaixDiagramsPage/index.js | mhoffman/CatAppBrowser | /*
*
* PourbaixDiagramsPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import PourbaixDiagramView from 'components/PourbaixDiagramView';
import Flexbox from 'flexbox-react';
export class PourbaixDiagramsPage extends React.Component { // eslint-disabl... |
src/MasterDetailsView/windows/Master/index.js | gabrielbull/react-desktop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { parseDimension } from '../../../styleHelper';
import { convertColor, hexToRgb } from '../../../color';
import { ColorContext, colorPropTypes, colorContextTypes } from '../../../style/color/windows';
import { ThemeContext, themePropTy... |
test/integration/serverless/pages/fetch.js | BlancheXu/test | import fetch from 'isomorphic-unfetch'
import React from 'react'
export default class extends React.Component {
static async getInitialProps () {
try {
const res = await fetch('')
const text = await res.text()
console.log(text)
return { text }
} catch (err) {
if (err.message.inc... |
client/components/usersList.js | yaatra/PointBreak | import React from 'react'
import {Link} from 'react-router-dom'
const UsersList = props => {
const {similarUsers, heading} = props
return (
<section className="clearfix bg-dark profileSection">
<div className="col-xs-12">
<div className="pageTitle">
{heading ? <div><h4>{heading}</h4><hr /></d... |
src/shared/components/MoneyFormat/index.js | rvboris/finalytics | import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { memoize, get } from 'lodash';
import accounting from 'accounting';
export const format = (num, currency) => {
const formatOptions = { format: '%v %s' };
if (currency) {
formatOptions.symbol = ... |
src/views/forms/range/Range.js | mrholek/CoreUI-React | import React from 'react'
import { CCard, CCardBody, CCardHeader, CCol, CFormLabel, CFormRange, CRow } from '@coreui/react'
import { DocsCallout, DocsExample } from 'src/components'
const Range = () => {
return (
<CRow>
<CCol xs={12}>
<DocsCallout name="Range" href="forms/range" />
</CCol>
... |
react/src/components/masthead/SprkMasthead.js | sparkdesignsystem/spark-design-system | /* global document window */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import throttle from 'lodash/throttle';
import uniqueId from 'lodash/uniqueId';
import SprkMastheadMenuIcon from './components/SprkMastheadMenuIcon/SprkMastheadMenuIcon';
impor... |
src/svg-icons/maps/satellite.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSatellite = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.... |
src/components/TodoApp.js | woowoo/react-todo | import React from 'react';
import TodoList from './TodoList';
import { List } from 'immutable';
import TodoForm from './TodoForm';
export default class TodoApp extends React.Component {
render() {
const { todos, addTodo, removeTodo, toggleTodo, saveTodos } = this.props;
return (
<div className="todo-a... |
client/components/pageHeader.js | brewgauge/bg-frontend | 'use strict'
import React from 'react'
import {Link} from 'react-router'
import {Menu} from './index'
export default React.createClass({
render () {
const {title, titleLink} = this.props
const titleTag = titleLink
? <Link to={titleLink}>{title}</Link>
: title
return (
<div className=... |
src/frontend/characters/components/UndoRedoButtons.js | plotify/plotify | import React from 'react'
import PropTypes from 'prop-types'
import UndoCharacterButton from './UndoCharacterButton'
import RedoCharacterButton from './RedoCharacterButton'
import { withStyles } from 'material-ui/styles'
import { connect } from 'react-redux'
import { isCharacterEditModeEnabled } from '../selectors'
co... |
html.js | Tkoefod/javasciprt-today | import React from 'react'
import Helmet from 'react-helmet'
import { prefixLink } from 'gatsby-helpers'
import { TypographyStyle, GoogleFont } from 'react-typography'
import typography from './utils/typography'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
propTypes () {
return {... |
src/components/todo.js | GenFirst/todo-react-app | import React from 'react';
import ReactDOM from 'react-dom'
import { Col, FormGroup, FormControl, Checkbox, Button } from 'react-bootstrap';
import PropTypes from 'prop-types';
class Todo extends React.Component {
constructor(props) {
super(props);
this.state = {editMode: false, value: '', showError: false,... |
node_modules/enzyme/src/version.js | raptor1989/MobileHeader | import React from 'react';
export const VERSION = React.version;
const [major, minor] = VERSION.split('.');
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
export const REACT15 = major === '15';
export const REACT155 = REACT15 && minor >= 5;
|
src/components/Editor/Editor.js | hhj679/mybition-web | import React from 'react'
import { Editor } from 'react-draft-wysiwyg'
import styles from './Editor.less'
import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'
const DraftEditor = (props) => {
return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {..... |
cerberus-dashboard/src/components/SafeDepositBoxSettings/SafeDepositBoxSettings.js | Nike-Inc/cerberus-management-service | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
test/integration/font-optimization/fixtures/with-google/pages/amp.js | JeromeFitz/next.js | import React from 'react'
const Page = () => {
return <div>Hi!</div>
}
export const config = { amp: true }
export default Page
|
modules/react-router-2.5.2/modules/IndexRedirect.js | nanyou-environment/enBackEnd | import React from 'react'
import warning from './routerWarning'
import invariant from 'invariant'
import Redirect from './Redirect'
import { falsy } from './InternalPropTypes'
const { string, object } = React.PropTypes
/**
* An <IndexRedirect> is used to redirect from an indexRoute.
*/
const IndexRedirect = React.c... |
src/modules/commenters/components/CommenterPage/CommenterPage.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import { connect } from 'react-redux';
import { compose } from 'react-apollo';
// components
import BackgroundImageHolder from '..... |
src/App/index.js | Erazihel/react-wp | // @flow
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
import NavbarComponent from '../Navbar';
import Home from '../Home';
import PostComponent from '../Post';
class App extends React.Component<any, any> {
render() {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.