path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/Footer/Footer.js | L2D22/RPS | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 'isomorp... |
src/router/Landing.js | change-soft8/cs-project | import React from 'react'
const Landing = React.createClass({
render() {
return (
<div>
<h1>Landing Page</h1>
<p>This page is only shown to unauthenticated users.</p>
<p>Partial / Lazy loading. Open the network tab while you navigate. Notice that only the required components are do... |
src/svg-icons/image/brightness-2.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
I... |
client/src/javascript/components/modals/torrent-details-modal/NavigationList.js | jfurrow/flood | import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
class NavigationList extends React.Component {
static propTypes = {
itemClassName: PropTypes.string,
items: PropTypes.array,
listClassName: PropTypes.string,
onChange: PropTypes.func,
selectedClass... |
src/modules/search-form/components/form.js | kksevta/flight-search | import React, { Component } from 'react';
import { Cities } from 'app/config/data'
import DynamicSlider from './dynamic-slider'
import * as Errors from 'app/config/errors'
class Form extends Component {
constructor(props) {
super(props);
this.state = {
formDirty: true, //boole... |
test/components/Checkbox.js | gcanti/tcomb-form | import tape from 'tape'
import t from 'tcomb-validation'
import bootstrap from 'tcomb-form-templates-bootstrap'
import React from 'react'
import { Checkbox } from '../../src/components'
import { ctx, ctxPlaceholders, getRenderComponent } from './util'
const renderComponent = getRenderComponent(Checkbox)
const transfor... |
app/javascript/mastodon/features/direct_timeline/index.js | rekif/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | fengshao0907/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
src/svg-icons/communication/textsms.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationTextsms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
Communica... |
src/icons/font/NoteIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* Note button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const NoteIcon = (props, context) => {
let theme =
c... |
ReduxBasedNavigation/js/routes/Route2.js | agenthunt/react-native-scratchpad | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}
});
export default class Route2 extends Component {
render(){
return (
... |
docs/app/Examples/elements/Header/Types/HeaderExamplePage.js | ben174/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExamplePage = () => (
<div>
<Header as='h1'>First Header</Header>
<Header as='h2'>Second Header</Header>
<Header as='h3'>Third Header</Header>
<Header as='h4'>Fourth Header</Header>
<Header as='h5'>Fifth Header</Head... |
app/javascript/mastodon/features/ui/components/focal_point_modal.js | MitarashiDango/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { changeUploadCompose, uploadThumbnail, onCha... |
node_modules/react-bootstrap/es/Thumbnail.js | vitorgomateus/NotifyMe | 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/p5/P5.js | aitorfernandez/trackicon-invaders | import React, { Component } from 'react';
import { getIdenticonCode } from './../../utils';
import { GenreSelect } from './../genre';
import P5Wrapper from './P5Wrapper';
import sketch from './sketch';
import './p5.css';
function getInitialState() {
return {
identicons: {
invaders: { },
defender: {... |
src/components/GithubButton/GithubButton.js | askd/animakit | import React from 'react';
import PropTypes from 'prop-types';
import styles from './GithubButton.css';
const GithubButton = (props) => {
const name = props.component ? `animakit-${props.component}` : 'animakit';
return (
<a
className={ styles.button }
href={ `https://github.com/animakit/${name}` ... |
examples/universal/server/server.js | pedrottimark/redux | /* eslint-disable no-console, no-use-before-define */
import path from 'path';
import Express from 'express';
import qs from 'qs';
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from '../webpack.... |
src/svg-icons/action/restore.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestore = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
examples/fiber/debugger/src/Fibers.js | shergin/react | import React from 'react';
import { Motion, spring } from 'react-motion';
import dagre from 'dagre';
import prettyFormat from 'pretty-format';
import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
}
i... |
docs/src/app/components/pages/components/LinearProgress/ExampleDeterminate.js | ArcanisCz/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
export default class LinearProgressExampleDeterminate extends React.Component {
constructor(props) {
super(props);
this.state = {
completed: 0,
};
}
componentDidMount() {
this.timer = setTimeout(() => thi... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
client/app.js | dralletje/Tonlist | import React from 'react'
import 'whatwg-fetch'
import io from 'socket.io-client'
import {compose} from 'recompose'
import {observeProps, createEventHandler} from 'rx-recompose'
import {Observable} from 'rx'
import 'bootstrap/dist/css/bootstrap.css'
import header from './assets/tonlist-monochrome1.png'
import backgrou... |
src/components/timer/index.js | jiriKuba/Calculatic | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Text, StyleSheet } from 'react-native';
import { stringPadLeft} from '../../utils/stringHelper';
class Timer extends Component {
getTimerCountDown() {
return setInterval(() => {
this.decrementTime();
... |
src/index.js | arunchaganty/briefly | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './{appName}';
// Set up parameters for the interface using _input/_output.
function tryGetValue(id) {
try {
return JSON.parse(document.getElementById(id).value);
} catch(err) {
console.info("Ignorning input ... |
src/PageHeader.js | chrishoage/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageHeader = React.createClass({
render() {
return (
<div {...this.props} className={classNames(this.props.className, 'page-header')}>
<h1>{this.props.children}</h1>
</div>
);
}
});
export default PageHeader;
|
stories/Dropdown.stories.js | ProteinsWebTeam/interpro7-client | import React from 'react';
import { action } from '@storybook/addon-actions';
import DropDownButton from 'components/SimpleCommonComponents/DropDownButton';
import { foundationPartial } from '../src/styles/foundation';
import fonts from 'EBI-Icon-fonts/fonts.css';
const f = foundationPartial(fonts);
export default ... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Badge.js | Akkuma/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/appReact/components/Map/RightNav.js | devmessias/brasillivre | import React from 'react';
import Envelope from 'react-icons/lib/fa/envelope';
import {Action} from './../../actions/Action.js';
const _openAbout=()=>Action('OpenModal','About');
class RightNav extends React.Component {
render(){
return (
<section className='rightNav'>
<div
... |
app/javascript/mastodon/features/generic_not_found/index.js | masto-donte-com-br/mastodon | import React from 'react';
import Column from '../ui/components/column';
import MissingIndicator from '../../components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator fullPage />
</Column>
);
export default GenericNotFound;
|
src/example/components/card.js | pierr/behaviour-test | import React from 'react';
import {Link} from 'react-router';
const cardStyle= {
flex: 1,
minWidth: '300px',
maxWidth: '300px',
marginTop: '7px',
marginRight: '20px',
marginBottom: '20px'
};
const Card = ({title,description, route, destination }) => {
return (
<div style={cardStyle} className="demo-... |
src/components/services/tabs/TabBarSortableList.js | GustavoKatel/franz | import React, { Component } from 'react';
import { observer, PropTypes as MobxPropTypes } from 'mobx-react';
import PropTypes from 'prop-types';
import { SortableContainer } from 'react-sortable-hoc';
import TabItem from './TabItem';
@observer
class TabBarSortableList extends Component {
static propTypes = {
se... |
app/js/dev/redux-dev-tools-exports.js | dothanhlam/mflenses | 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 LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
// createDevTools takes a monitor an... |
src/components/app.js | omarchacinortega13/react-redux-weather-map | import React, { Component } from 'react';
import SearchBar from '../containers/SearchBar';
import WeatherList from '../containers/WeatherList';
export default class App extends Component {
render() {
return (
<div>
<SearchBar/>
<WeatherList/>
</div>
);
}
}
|
blueocean-material-icons/src/js/components/svg-icons/action/card-giftcard.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCardGiftcard = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1... |
src/components/ListingLink.js | ZachGawlik/print-to-resist | import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router-dom';
const ListingLink = ({ children, listingId }) =>
<Link className="ListingLink" to={`/poster/${listingId}`}>
{children}
</Link>;
ListingLink.propTypes = {
children: PropTypes.node.isRequired,
listingId: ... |
src/js/pages/Proposals/Leisure/BasicPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../../../i18n/Translate';
import TopNavBar from '../../../components/TopNavBar/TopNavBar.js';
import '../../../../scss/pages/proposals/leisure/basic.scss';
import StepsBar from "../../../components/ui/StepsBar/StepsBar"... |
src/components/CreateVmWizard/steps/_TableInlineEditRow.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import TableConfirmButtonsRow from 'patternfly-react/dist/js/components/Table/TableConfirmButtonsRow'
const TableInlineEditRow = props => {
const buttonsPosition = (window, rowDimensions) => {
const position = {}
if (props.last) {
position.b... |
src/components/space-stations.js | cosmowiki/cosmowiki | import React from 'react';
import Notes from './notes';
import {Summary} from './chunks/summary';
const SpaceStationsComponent = ({spaceStations:stations}) => {
return (
<main role="main" className="pure-u-1">
<div id="siteTitle" className="spacestations pure-u-1 center">
<div id="siteTitleContaine... |
src/svg-icons/av/web.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvWeb = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/>
</SvgIcon>
);
AvWeb = pur... |
src/components/fieldset_text.js | frig-js/frig | import React from 'react'
const FieldsetText = (props, context) => {
const spanProps = Object.assign({}, props)
delete spanProps.text
return (
<span {...spanProps}>
{props.text(context.frigFieldset.index)}
</span>
)
}
FieldsetText.propTypes = {
text: React.PropTypes.func.isRequired,
}
FieldsetT... |
src/routes/dashboard/Dashboard.js | medevelopment/updatemeadmin |
import React from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
class Dashboard extends React.Component {
static propTypes = {
news: PropTypes.arrayOf(PropTypes.shape({
title: PropTypes.string.isRequired,
lin... |
client/src/views/Resources/components/tip-of-the-month/components/tip-overview/index.js | DillGromble/TNABT-org | import React from 'react'
import './tip-overview.css'
import placeholder from './tip-placeholder.png'
const TipOverview = () => (
<div className="tip-overview-container">
<h3 className="tip-header-placeholder">First tip of the month coming soon!</h3>
<img className="tip-img-placeholder" src={placeholder} a... |
src/components/Navbar/navbar.js | mpazevic/CrowdBoard | import React from 'react';
import "./navbar-style.scss";
const Navbar = () => {
return (
<div className="navbar col-12">
<h1 className="navbar-head">CrowdBoard</h1>
</div>
)
}
export default Navbar;
|
app/components/examples/Button/index.js | GuiaLa/guiala-web-app | /**
*
* Button.react.js
*
* A common button, if you pass it a prop "route" it'll render a link to a react-router route
* otherwise it'll render a link with an onclick
*/
import React from 'react';
import styles from './styles.css';
function Button(props) {
const className = props.className ? props.className ... |
packages/veritone-react-common/src/components/FormBuilder/FormConfiguration/FormConfiguration.story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import { DndProvider } from "react-dnd";
import { action } from '@storybook/addon-actions';
import HTML5Backend from "react-dnd-html5-backend";
import FormConfiguration from './';
storiesOf('FormBuilder/FormConfiguration', module)
.add('textInp... |
src/App.js | kevinfrei/rollercoaster | //@flow
import React from 'react';
import FunctionList from './FuncList';
import FunctionState from './FuncState';
import FunctionGraph from './FuncGraph';
import FunctionEditor from './FuncEditor';
import FileDialog from './FileDialog';
import GraphSettings from './GraphSettings';
import {MathJaxFixer} from './MathJ... |
pages/404.js | jubearsun/cmyk | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
export default class NotFound extends Component {
render () {
return (
<div className="page page--not-found">
... |
packages/mineral-ui-icons/src/IconFormatShapes.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 IconFormatShapes(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
src/svg-icons/notification/disc-full.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDiscFull = (props) => (
<SvgIcon {...props}>
<path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
... |
src/js/containers/app/main-header.js | frontendbr/eventos | 'use strict'
import React from 'react'
const MainHeader = () => (
<header className='header' role='banner'>
<a className='logo' href='./' role='logo'>
<img src='svg/logo.svg' />
</a>
<a
className='btn-link'
href='https://github.com/frontendbr/eventos'
title='Anuncie seu evento'>
... |
src/index.js | andrei-cacio/redux-github-explorer | import './style.less';
import Immutable from 'immutable';
import React from 'react';
import { render } from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import { Provider } from 'react-redux';
import App from './co... |
src/results/Result.react.js | DhammaLuke/citybook | import React, { Component } from 'react';
import Panel from 'react-bootstrap/lib/Panel';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
import Button from 'react-bootstrap/lib/Button';
import ButtonGroup from 'react-bootstrap/lib/ButtonGroup';
import Glyphicon from 'react-bootstr... |
OleksiiOnSoftware.Apps.Blog/client/containers/App/index.js | boades/PpmSystem | // Framework
import React from 'react'
import { Route, Switch } from 'react-router'
// Custom UI
import { ScrollToTop, GoogleAnalyticsTrackPageView } from 'components'
/**
* Root element of the application.
* It renders a set of static top-level routes and makes sure that only one top-level route can be selected at... |
ajax/libs/react-instantsearch/4.1.3/Connectors.js | BenjaminVanRyseghem/cdnjs | /*! ReactInstantSearch 4.1.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
node_modules/react-router/es6/RouteUtils.js | jeffshen18/React-Course | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
function isValidChild(object) {
... |
src/svg-icons/hardware/tv.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
src/containers/ButtonContainer.js | opiskelija-dashboard/dashboard | import React, { Component } from 'react';
import '../App.css';
import { connect } from 'react-redux';
import { toggleVisibility } from '../actions/index';
import { Button } from 'semantic-ui-react';
export class ButtonContainer extends Component {
render() {
const text = this.props.text;
const actived = (th... |
components/LinksList.js | vinaypuppal/linklet-app | import React from 'react'
import Router from 'next/router'
import NProgress from 'nprogress'
import Pagination from 'rc-pagination'
import MLinkCard from './MLinkCard'
// import LinkCard from './LinkCard'
import PageInfo from './PageInfo'
import SearchBar from '../components/Search'
import db from '../lib/db'
import Sn... |
dnim-client/src/components/SearchBar.js | zhangmingkai4315/DNIS-Project | import React from 'react';
import ShortCutButton from './ShortCutButton';
export default class SearchBar extends React.Component {
constructor(props) {
super(props);
this. _handleChange = this. _handleChange.bind(this);
this. _handleKeyPress = this. _handleKeyPress.bind(this);
this.onClickShortCutButt... |
components/button.js | volodalexey/spachat | import React from 'react'
import {Link} from 'react-router'
import {element} from './element'
import localization from '../js/localization'
const Button = React.createClass({
renderExtraAttributes(){
let options = {}, config = this.props.config;
if (config.data && config.data.mode_to &&
config.data.mo... |
src/components/Profile/ProfileDetails.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import { Link } from 'react-router-dom';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Title, Button } from 'bloomer';
import Loader from '../Loader';
import Page from '../Page';
import './ProfileDetails.scss';
const ProfileDetails = ({ user: userStore }... |
src/component/Buy.js | RobotDisco/snack-tracker-to | import React, { Component } from 'react';
class Buy extends Component {
render() {
return (
<button disabled={!this.props.enabled} onClick={(e) => this.props.cb(this.props.employeeId, this.props.snackId)}>Buy</button>
);
};
}
export default Buy;
|
client/app/scripts/main.js | kinvolk/scope | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import '../styles/main.scss';
import '../images/favicon.ico';
import configureStore from './stores/configureStore';
const store = configureStore();
function renderApp() {
const App = requir... |
app/node_modules/redux-devtools-log-monitor/src/LogMonitorEntryAction.js | BZhawaii/ArtStorm | import React, { Component } from 'react';
import JSONTree from 'react-json-tree';
const styles = {
actionBar: {
paddingTop: 8,
paddingBottom: 7,
paddingLeft: 16
},
payload: {
margin: 0,
paddingLeft: 16,
overflow: 'auto'
}
};
export default class LogMonitorAction extends Component {
c... |
src/components/Form/RadioGroup.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import FormElement from './FormElement';
import FormElementControl from './FormElementControl';
import FormElementError from './FormElementError';
import FormElementLabel from './FormElementLabel';
import { getUniqueHash } from '../../utils';
const Radio... |
packages/icons/src/md/action/Home.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdHome(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<polygon points="20 41 20 29 28 29 28 41 38 41 38 25 44 25 24 7 4 25 10 25 10 41" />
</IconBase>
);
}
export default MdHome;
|
app/javascript/mastodon/features/report/components/status_check_box.js | TheInventrix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
import noop from 'lodash/noop';
import StatusContent from '../../../components/status_content';
import { MediaGallery, Video } from '../../ui/util/async-component... |
addons/actions/.storybook/stories.js | enjoylife/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action, decorateAction } from '../src';
const pickFirst = decorateAction([
args => args.slice(0, 1)
]);
storiesOf('Button', module)
.add('Hello World', () => (
<button onClick={action('hello-world')}>Hello World</button>
))
... |
src/parser/paladin/retribution/modules/core/Judgment.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import EnemyInstances from 'parser/shared/modules/EnemyInstances';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink... |
src/application.js | popcodeorg/popcode | import 'core-js';
import 'regenerator-runtime/runtime';
import 'whatwg-fetch';
import 'raf/polyfill';
import './init/DOMParserShim';
import React from 'react';
import ReactDOM from 'react-dom';
import Application from './components/Application';
import init from './init';
const {store} = init();
ReactDOM.render(
... |
src/components/pages/Account/Reset.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports.
*/
import React from 'react';
import connectToStores from 'fluxible-addons-react/connectToStores';
import {FormattedMessage} from 'react-intl';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
import ResetStore from '../../../stores/Account/ResetStore';
import resetRequest from ... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-17/theme/context.js | Brandon-J-Campbell/codemash | import React from 'react';
export default React.createContext();
|
examples/async/index.js | contolini/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
app/containers/DashboardContainer/index.js | Blacksage959/Michael.McCann | /*
*
* DashboardContainer
*
*/
import React from 'react';
import Helmet from 'react-helmet';
export default class DashboardContainer extends React.PureComponent {
constructor(props){
super(props);
this.state ={
title:"",
body:"",
image:"",
preview:"",
}
}
handleTitle = (event) => {
... |
analysis/druidferal/src/modules/features/EnergyCapTracker.js | yajinni/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { formatPercentage } from 'common/format';
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER';
import Statistic from 'parser/ui/Statistic';
import RegenResourceCapTracker from 'parser/shared/modu... |
src/icons/SendIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SendIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M4.02 42L46 24 4.02 6 4 20l30 4-30 4z"/></svg>;}
}; |
docs/src/PageFooter.js | yickli/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
src/components/Icon/Icon.js | Amine-H/Amine-H.github.io | // @flow strict
import React from 'react';
import styles from './Icon.module.scss';
type Props = {
name: string,
icon: {
viewBox?: string,
path?: string
}
};
const Icon = ({ name, icon }: Props) => (
<svg className={styles['icon']} viewBox={icon.viewBox}>
<title>{name}</title>
<path d={icon.pa... |
src/components/App.js | eddiekollar/ReactSimple | import React, { Component } from 'react';
import Home from './Home';
class App extends Component {
render() {
return (
<div>
<h2>Welcome to React Simple</h2>
<p >
To get started, edit <code>src/components/App.js</code> or <code>src/components/Home.js</code> and save to reload.
... |
app/javascript/mastodon/components/autosuggest_textarea.js | tateisu/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import Im... |
client/menu/menu.js | sekainogenkai/faito | import {Buttons} from '../game/input';
import {DummyInputTarget} from '../player';
import React from 'react';
// maybe use this method later https://facebook.github.io/react-native/docs/style.html
const styles = {
menu: {
position: "absolute",
top: 0,
left: 0,
bottom: 0,
... |
src/common/StatusLabel/InactiveStatusLabel.js | Syncano/syncano-dashboard | import React from 'react';
import { FontIcon } from 'material-ui';
import { colors as Colors } from 'material-ui/styles';
const InactiveStatusLabel = ({ style }) => (
<FontIcon
style={style}
className="synicon-close"
color={Colors.red400}
/>
);
export default InactiveStatusLabel;
|
src/client/assets/js/nodes/processors/uibuilder/features/palette/components/Palette.js | me-box/iot.red | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { actionCreators as paletteActions, viewConstants, selector } from '../';
import "./Palette.scss";
import FontIcon from 'react-md/lib/FontIcons';
import Paper from 'react-md/lib/Papers';
i... |
examples/date-type/src/DateField.js | fourlabsldn/fl-form-builder | import React from 'react';
import ReactDOM from 'react-dom';
import { curry } from 'lodash/fp';
const updateField = curry((update, state, initialState, fieldName, e) => {
const value = e.target.value || initialState[fieldName];
const newState = Object.assign({}, state, { [fieldName]: value });
update(newState);
... |
ui/src/containers/SideNav/CollapsibleNav.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { routeNodeSelector } from 'redux-router5';
import { VelocityComponent } from 'velocity-react';
import { compose } from 'recompose';
import { connect } from 'react-redux';
import { includesSegment } from 'router5.helpers';
import Link ... |
src/svg-icons/action/restore-page.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestorePage = (props) => (
<SvgIcon {...props}>
<path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3.... |
example/src/pages/ResponsiveImages.js | ethanselzer/react-image-magnify | import React, { Component } from 'react';
import {
Col,
Grid,
Jumbotron,
Row
} from 'react-bootstrap';
import Helmet from 'react-helmet';
import Header from '../components/Header';
import ResponsiveImages from '../components/ResponsiveImages';
import 'bootstrap/dist/css/bootstrap.css';
import '../styles/app.c... |
src/server.js | peeyush1234/react-nodejs-skeleton | /**
* 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 path from 'path';
import express from 'express';... |
app/src/components/Users/index.js | jeremyhon/sia-challenge | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Route, Switch, Link, withRouter } from 'react-router-dom';
import { fetchUsers } from './actions';
import List from './views/list';
import Form from './views/form';
import Detail from './views/detail';
class Users extends Compon... |
src/ButtonInput.js | snadn/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
src/components/Username/WithCard.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import useUserCard from '../../hooks/useUserCard';
import UsernameBase from '.';
const { useCallback } = React;
function UsernameWithCard({ user }) {
const userCard = useUserCard(user);
const onUsernameClick = useCallback((event) => {
event.preven... |
packages/icons/src/md/maps/RestaurantMenu.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdRestaurantMenu(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M15.71 26.417l5.66-5.66L7.34 6.727c-3.12 3.12-3.12 8.19 0 11.31l8.37 8.38zm13.57-3.63c3.05 1.43 7.36.42 10.54-2.76 3.83-3.83 4.56-9.3 1.63-12.... |
src/server.js | cssinjs/cssinjs | import React from 'react'
import {renderToString} from 'react-dom/server'
import {match, RouterContext} from 'react-router'
import {stripIndents} from 'common-tags'
import {minify} from 'html-minifier'
import {SheetsRegistry} from 'react-jss'
import {version} from '../package.json'
import routes from './routes'
import... |
app/index.js | Andrew-Hird/bFM-desktop | import React from 'react';
import { render } from 'react-dom';
import { hashHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import { syncHistoryWithStore } from 'react-router-redux';
import Root from './containers/Root';
import configureStore from './store/configureStore';
import './app.... |
examples/auth-with-shared-root/components/About.js | bs1180/react-router | import React from 'react'
const About = React.createClass({
render() {
return <h1>About</h1>
}
})
export default About
|
code/workspaces/web-app/src/components/app/NavLink.js | NERC-CEH/datalab | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import { NavLink } from 'react-router-dom';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import Icon from '@material-ui/core/Icon';
const styles = theme => ({
listIcon: {... |
src/svg-icons/editor/format-indent-increase.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
src/Parser/Mage/Shared/Modules/Features/RuneOfPower.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combatants from 'Parser/Core/Module... |
examples/todomvc/containers/Root.js | knowbody/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
react-flux-mui/js/material-ui/src/svg-icons/image/grid-off.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOff = (props) => (
<SvgIcon {...props}>
<path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.