path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/communication/phonelink-ring.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkRing = (props) => ( <SvgIcon {...props}> <path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2...
practices/omok/src/Board.js
jhwgnu/redux
import React from 'react' const Board = ({ squares, status, onSquare, onRestart }) => ( <div> <h3>{status}</h3> <div className="board-row"> <button className="square" id="0_0" onClick={()=>onSquare(0,0)}>{squares[0][0]}</button> <button className="square" id="0_1" onClick={...
components/Calendar/CalendarItem/CalendarItem.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import momentPropTypes from 'react-moment-proptypes'; import moment from 'moment'; import css from './CalendarItem.css'; const defaultDate = moment(); export const defaultClassNames = { root: css.root, today: css.today, ...
frontend/sections/admin/rss-provider/rss-provider.js
apostolidhs/wiregoose
import React from 'react'; import { Link } from 'react-router'; import ListView from '../../../components/list-view/list-view.js'; import Form from '../../../components/rss-provider/form.js'; export default class RssProvider extends ListView { static columns = [ { id: 'name' }, { id: 'link', ...
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/js-unify/src/demo/pagination/pagination.js
js-works/js-surface
import { defineClassComponent, defineFunctionalComponent, hyperscript as h, mount } from 'js-unify'; import { Seq } from 'js-essential'; import PaginationHelper from './helper/PaginationHelper.js'; import ComponentHelper from './helper/ComponentHelper.js'; import React from 'react'; import ReactDOM...
src/component/ReleaseImages.js
ciyer/outlier
import React, { Component } from 'react'; import { Link } from 'react-router-dom' import { urlStringForProductName } from '../utils'; // Not currently used, but keeping around in case... // function isSingleProduct(releases) { // const productName = releases[0]['Product'] // return releases.every(r => r['Product...
src/presentations/reactDay/reactRedux/slides/aboutme/index.js
react-skg/meetup
import React from 'react'; import { Appear, Link } from 'spectacle'; import { Header, Slide } from '../../components'; export default ( <Slide id="about" > <Header title="REDUX" subtitle="State Management with" withAnimations compact={false} /> <br /> <br /> <Appear>...
examples/todos-with-undo/src/containers/UndoRedo.js
lifeiscontent/redux
import React from 'react' import { ActionCreators as UndoActionCreators } from 'redux-undo' import { connect } from 'react-redux' let UndoRedo = ({ canUndo, canRedo, onUndo, onRedo }) => ( <p> <button onClick={onUndo} disabled={!canUndo}> Undo </button> <button onClick={onRedo} disabled={!canRedo}>...
definitions/npm/styled-components_v3.x.x/flow_v0.57.x-/test_styled-components_v3.x.x.js
mwalkerwells/flow-typed
// @flow import {renderToString} from 'react-dom/server' import styled, { ThemeProvider, withTheme, keyframes, ServerStyleSheet, StyleSheetManager } from 'styled-components' import React from 'react' import type { Theme, Interpolation, ReactComponentFunctional, ReactComponentFunctionalUndefinedDefault...
src/components/widget/BarcodeScanner/BarcodeScannerWidget.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import BarcodeScanner from './BarcodeScanner'; import PropTypes from 'prop-types'; import currentDevice from 'current-device'; function addBarcodeScanner(WrappedComponent) { return class BarcodeScannerWidget extends Component { static propTypes = { layout: PropTyp...
src/utils/CustomPropTypes.js
apisandipas/react-bootstrap
import React from 'react'; import warning from 'react/lib/warning'; import childrenToArray from './childrenToArray'; const ANONYMOUS = '<<anonymous>>'; /** * Create chain-able isRequired validator * * Largely copied directly from: * https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9...
src/app/pages/NotFound.js
skratchdot/js-playground
import React, { Component } from 'react'; import { Jumbotron } from 'react-bootstrap'; import { Link } from 'react-router'; import { connect } from 'react-redux'; const packageInfo = require('../../../package.json'); class NotFound extends Component { render() { return ( <div> <Jumbotron className=...
gritsurvey/node_modules/react-router/es/Switch.js
Alex-Gardner/grit-survey
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/routes/content/index.js
zerubeus/voicifix
/** * 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 Content from './Content'...
client/src/component/category.js
grumoon/GruBlog
import React from 'react' import {Card} from 'antd'; import $ from 'jquery'; import {Link} from 'react-router' import {Utils, Constants} from '../lib/common.js' import './css/category.css' export class Category extends React.Component { constructor(props) { super(props); this.state = { ...
node_modules/react-bootstrap/es/Thumbnail.js
joekay/awebb
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 ...
githubApp/js/pages/HomePage.js
anchoretics/ztf-work-app
/** * Created by lingfengliang on 2017/3/15. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, Navigator, ListView, } from 'react-native'; import { ListItem, Left, Body...
docs/app/Examples/elements/Rail/Types/RailExampleDividing.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image, Rail, Segment } from 'shengnian-ui-react' const RailExampleDividing = () => ( <Grid centered columns={3}> <Grid.Column> <Segment> <Image src='/assets/images/wireframe/paragraph.png' /> <Rail dividing position='left'> <Segment>Left R...
node_modules/@material-ui/core/esm/StepConnector/StepConnector.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; export var styles = function styles(theme) ...
src/components/hello-world/hello-world.js
felipethome/react-seed-es6
import React from 'react'; class HelloWorld extends React.Component { render() { return ( <h1>Hello World!</h1> ); } } export default HelloWorld;
src/svg-icons/maps/local-offer.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalOffer = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86...
components/Navbar/Menu.js
YongYuH/Ludo
// @flow import React from 'react'; import styled from 'styled-components'; import { translate } from 'react-i18next'; import Link from 'next/link'; import { StyledAnchor } from '../../baseStyle'; const selectedStyle = 'background-color: black; border: 1px white solid; border-radius: 1rem;'; const ListItem = styled.l...
src/components/Fields.js
Journey316/resume
import React, { Component } from 'react'; import CreateView from './CreateView'; class Fields extends React.Component { constructor(props){ super(props); this.state = { title: '', text: '', error: '', createdArr: [] }; this.onFormSubmit = this.onFormSubmit.bind(this); this...
webpack/ForemanTasks/Components/Chart/Chart.js
ares/foreman-tasks
/* Copied from react-c3js: https://github.com/bcbcarl/react-c3js/blob/master/src/index.js Added missing features: * onChartCreate * onChartUpdate TODO: update react-c3js or move to patternfly-react */ /* eslint-disable global-require, import/no-extraneous-dependencies, ...
src/svg-icons/device/wifi-tethering.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiTethering = (props) => ( <SvgIcon {...props}> <path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21...
docs/src/PageFooter.js
mxc/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/Menu.js
jozaru/my-bank-app
import React from 'react'; import MenuItem from '../containers/ConnectedMenuItem'; import items from './menuItems'; import { Navbar, Nav } from 'react-bootstrap'; class Menu extends React.Component { render() { const menuItems = items.map((item) => { return ( <MenuItem key={item.id} ...
admin/client/components/List/ListFiltersAdd.js
Tangcuyu/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import Transition from 'react-addons-css-transition-group'; import classnames from 'classnames'; import CurrentListStore from '../../stores/CurrentListStore'; import ListFiltersAddForm from './ListFiltersAddForm'; import Popout from '../Popout'; import Popout...
website/src/pages/index.js
joelmukuthu/knorm
import React from 'react'; import classnames from 'classnames'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const features = [ {...
app/javascript/src/client/lib/navbar_dropdown.js
rringler/billtalk
import React, { Component } from 'react'; import { NavDropdown } from 'react-bootstrap'; export default class NavbarDropdown extends Component { constructor(props) { super(props); this.state = { open: false }; } onDropdownToggle = (newState, _, { source }) => { if (!newState && source === 'rootClos...
src/client/assets/js/nodes/outputs/export/node.js
me-box/iot.red
import React from 'react'; //import composeNode from 'utils/composeNode'; import Textfield from 'components/form/Textfield'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import { formatSchema } from 'utils/utils'; import {configNode} from 'utils/...
js/components/RichTeXEditorExample.js
jonirrings/draftr
/** * Copyright (c) 2013-present, Facebook, Inc. All rights reserved. * * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCL...
src/components/InitLoading.js
jikotw74/StockBin
import React, { Component } from 'react'; import './InitLoading.css'; import mottos from '../config/mottos'; import LinearProgress from 'material-ui/LinearProgress'; class InitLoading extends Component { // constructor(props) { // super(props); // this.state = { // home: true // }...
client/components/Footer/FooterComponent.js
nickeblewis/wordpress-experiment
import React from 'react'; import { Footer as MDLFooter, FooterSection } from 'react-mdl'; import './Footer.scss'; export default class Footer extends React.Component { static propTypes = { username: React.PropTypes.string.isRequired, website: React.PropTypes.string.isRequired }; render() { return (...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
riku6460/chikuwagoddon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandHashtagTimeline } from '../../../actions/timelines'; import { connectHashtagStream } from '../../../actions/streaming'; import Masonry from 're...
src/addons/dragAndDrop/backgroundWrapper.js
Incubity/react-big-calendar
import React from 'react' import { DropTarget } from 'react-dnd' import cn from 'classnames'; import dates from '../../utils/dates'; import BigCalendar from '../../index' export function getEventTimes({ start, end }, dropDate, type) { // Calculate duration between original start and end dates const duration = dat...
src/router.js
zab/jumpsuit
import React from 'react' import { syncHistoryWithStore } from 'react-router-redux' import { Router } from 'react-router' // import { GetHistory } from './historyMode' import { store } from './createStore' let syncedHistory export const getSyncedHistory = () => syncedHistory export default React.createClass({ rend...
saga/seata-saga-statemachine-designer/ggeditor/components/DetailPanel/index.js
seata/seata
import React from 'react'; import { pick } from '@utils'; import { STATUS_CANVAS_SELECTED } from '@common/constants'; import withGGEditorContext from '@common/context/GGEditorContext/withGGEditorContext'; import Panel from './Panel'; class DetailPanel extends React.Component { state = { status: '', } constr...
src/components/structures/GroupView.js
aperezdc/matrix-react-sdk
/* Copyright 2017 Vector Creations Ltd. Copyright 2017, 2018 New Vector Ltd. 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 appli...
example/src/components/OnPositionChangedLabel.js
ethanselzer/react-touch-position
import React from 'react'; export default (props) => { const { touchPosition: { x = 0, y = 0, } = {}, isPositionOutside = true } = props; return ( <div> {`x: ${x}`}<br /> {`y: ${y}`}<br /> {`isPositionOutside: ${is...
app/index.js
sindrma/homepage
/** * Created by sindre on 6/29/15. */ import React from 'react'; import Router from 'react-router'; import { DefaultRoute, Link, Route, RouteHandler } from 'react-router'; import HelloHandler from './components/hello'; class App extends React.Component { render(){ return (<div className="nav"> ...
packages/icons/src/md/device/NetworkWifi.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdNetworkWifi(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <g> <path fillOpacity=".3" d="M24.3 42.98L47.56 14c-.9-.68-9.85-8-23.28-8C10.85 6 1.9 13.32 1 14l23.26 28.98.02.02.02-.02z" ...
app/containers/Game/GameConfig.js
adrianocola/spyfall
import React from 'react'; import { Col, Input, Label, Row } from 'reactstrap'; import { css } from 'emotion'; import Localized from 'components/Localized/Localized'; import { logEvent } from 'utils/analytics'; import { useConfigTime } from 'selectors/configTime'; import { useConfigSpyCount } from 'selectors/configSpyC...
js/components/home/index.js
amandamfielding/Coffee-Shop-Mobile
'use strict'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Text, Image, View, Dimensions } from 'react-native'; import { pushNewRoute, replaceRoute } from '../../actions/route'; import { actions } from 'react-native-navigation-redux-helpers'; import FontAwesome from 'react-...
src/pages/recipes.js
mydearxym/mastani
import React from 'react' import { Provider } from 'mobx-react' import { merge } from 'ramda' import { SITE_URL } from '@/config' import { ROUTE, METRIC } from '@/constant' import { getJwtToken, makeGQClient, ssrRescue, parseTheme } from '@/utils' import { P } from '@/schemas' import GlobalLayout from '@/containers/...
packages/forms/stories/CoreLayouts.stories.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import { HeaderBar, Layout, Dialog, Drawer as DrawerComponent } from '@talend/react-components'; import Form from '../src'; const simple = require('./json/concepts/simple.json'); function LayoutDrawer({ title, stacked, ...props }) { const drawers = [ <...
src/popover/popover-footer.js
ricsv/react-leonardo-ui
import React from 'react'; import { luiClassName } from '../util'; const PopoverFooter = ({ className, children, nopad, ...extraProps }) => { const finalClassName = luiClassName('popover__footer', { className, states: { nopad }, }); return ( <div className={finalClassName} {...extraProps}> ...
src/components/App/WeirdLocaleYearInfo.js
TTCErembodegem/TTC-React-Front
import React from 'react'; export const WeirdLocaleYearInfo = ({params}) => ( // eslint-disable-line <div> <h2> WIJZIGING ZAAL </h2> <b>Opgelet: TTC Erembodegem speelt niet meer op Groeneweg 28</b> <br /> <h3>Sportzaal Technigo</h3> <b>{params.location}</b> <br /> {params.trai...
app/containers/FeaturePage/index.js
surzhik/coreola5
/* * FeaturePage * * List all the features */ import React from 'react'; import {connect} from 'react-redux'; import {push} from 'react-router-redux'; import {createStructuredSelector} from 'reselect'; import {m2s} from '../../utils/' import {selectMessages} from '../LanguageProvider/selectors'; import {changeCrum...
client/analytics/components/partials/filter/popUps/FilterItemAssetList.js
Haaarp/geo
import React from 'react'; import {connect} from 'react-redux'; import ToggleButtonList from 'konux/common/components/ToggleButtonList'; import {bindActionCreators} from 'redux'; import {filter} from './../../../../actions'; class AssetList extends React.Component { onClick(asset) { const isAssetSelected =...
data-browser-ui/public/app/components/tableComponents/td/listComponents/geoList.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; import Dialog from 'material-ui/Dialog'; import TextField from 'material-ui/TextField'; class GeoListComponent extends React.Component { constructor(){ super() this.state = { isModalOpen:false } } componentDidMount(){ } openCloseModal(what){...
app/containers/SingleProductContainer.js
gklapman/Grace-Shopper
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import SingleProduct from '../components/SingleProduct' import ReviewsContainer from './ReviewsContainer' import {addCartItem} from '../reducers/cart.jsx' class SingleProductContainer extends React.Component { render...
src/stats/view/RatioScaleDescriptivesComponent.js
sozemego/StatHelper
import React from 'react'; import {FlatButton} from 'material-ui'; import {BAR_CHART, HISTOGRAM_CHART} from '../../charts/constants'; const descriptiveContainerStyle = { display: 'flex', flexDirection: 'column', margin: '4px 25px 4px 25px' }; export class RatioScaleDescriptivesComponent extends React.Component ...
frontend/src/components/eois/details/headerOptions/agencyDirectHeaderOptions.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { compose } from 'ramda'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import DropdownMenu from '../../../common/dropdownMenu'; import SpreadContent from '../../../common/spreadContent'; import Edit...
examples/library/src/containers/Foobar.js
pure-ui/styleguide
/* @flow weak */ import React from 'react'; import { Grid, Row, } from 'react-bootstrap'; import { Button, } from '../components'; const Root = () => <Grid> <Row> <Button>Here is a sample button</Button> </Row> <Row> <Button bsStyle="primary">Here is a primary button</Button> </Row...
src/components/Pagination/Pagination.js
wpioneer/gatsby-starter-lumen
// @flow strict import React from 'react'; import classNames from 'classnames/bind'; import { Link } from 'gatsby'; import { PAGINATION } from '../../constants'; import styles from './Pagination.module.scss'; type Props = { prevPagePath: string, nextPagePath: string, hasNextPage: boolean, hasPrevPage: boolean ...
fixtures/packaging/systemjs-builder/dev/input.js
Simek/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
client/src/components/GithubButton/GithubButton.js
jabelone/marvin
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
src/js/components/icons/base/ShieldConfigure.js
codeswan/grommet
import React from 'react'; import ShieldSecurity from './ShieldSecurity'; export default (props) => { console.warn( 'ShieldConfigure has been renamed to ShieldSecurity.' + ' Plese update your import statement.' ); return <ShieldSecurity {...props} />; };
src/Fade.js
victorzhang17/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; class Fade extends React.Component { render() { let timeout = this.props.timeout || this.props.duration; retu...
src/js/components/forms/AutosuggestWord.js
mikka22pl/glossa
import React from 'react'; import Autosuggest from 'react-autosuggest'; const getSuggestions = value => { const inputValue = value.trim().toLowerCase(); const inputLength = inputValue.length; return inputLength === 0 ? [] : } class AutosuggestWord extends React.Component { constructor() { super(); thi...
lib/views/renderers/html-renderer.js
jneuendorf/code-annotations
import React from 'react' import PropTypes from '../../prop-types' export default class HtmlRenderer extends React.Component { static propTypes = PropTypes.Renderer static isBinary = false static description = 'Renders HTML inline (rich text)' static type = 'html' static fileExtension = 'html' ...
app/components/Vesting/PowerDownDestinationPrompt.js
soosgit/vessel
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import InputRange from 'react-input-range'; import { Checkbox, Divider, Message, Modal, Segment } from 'semantic-ui-react'; import { Form, Input } from 'formsy-semantic-ui-react' import...
src/Recruiters.js
ZacharyCalvert/ZachCalvert
import React, { Component } from 'react'; import AboutMe from './AboutMe'; import RecruiterQuestions from './RecruiterQuestions'; import RecruiterCommute from './RecruiterCommute'; import SubNav from './SubNav'; import _ from "lodash"; var subNavEntries = [ { page: 'questions', text: 'questions' }, { ...
components/Lorem/Lorem.js
alexmick/react-comment-experiment
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; class Lorem extends Component { render() { return ( <div className="Lorem"> <p>Lorem ipsum dolor sit ame...
src/routes/home/index.js
AlanDeLonga/portfolio
import React from 'react'; import Home from './Home'; // import fetch from '../../core/fetch'; import Layout from '../../components/Layout'; import workProjs from '../../data/workProjs'; import persProjs from '../../data/persProjs'; export default { path: '/', async action() { // const resp = await fetch('/g...
lib/ui/src/modules/ui/components/left_panel/index.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React from 'react'; import pick from 'lodash.pick'; import Header from './header'; import Stories from './stories'; import TextFilter from './text_filter'; const scrollStyle = { height: 'calc(100vh - 105px)', marginTop: 10, overflowY: 'auto', }; const mainStyle = { p...
src/index.js
jimkim/vainglory
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import { Router, browserHistory } from 'react-router'; import promise from 'redux-promise'; import reducers from './reducers'; import routes from './routes...
examples/real-world/server.js
granmoe/redux-saga
/* eslint-disable no-console */ import "babel-polyfill" import webpack from 'webpack' import webpackDevMiddleware from 'webpack-dev-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import config from './webpack.config' import express from 'express' import path from 'path' import favicon from 'serve...
mlflow/server/js/src/experiment-tracking/components/artifact-view-components/ShowArtifactTextView.js
mlflow/mlflow
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getSrc } from './ShowArtifactPage'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { coy as style } from 'react-syntax-highlighter/dist/cjs/styles/prism'; import { getLanguage } from '../../../common/ut...
public/js/index.js
oson/hanson
import React from 'react'; import ReactDOM from 'react-dom'; import Navigation from './components/Navigation.jsx'; import Login from './components/Login.jsx'; import Dashboard from './components/Dashboard.jsx'; // Get which site to render? var site = document.getElementById('root').getAttribute("data-site"); // Ren...
app/widgets/Spinner/index.js
bboysathish/react-boilerplate
import React from 'react'; import './style.css'; export default ({ isLoading }) => { if (!isLoading) { return (<div> </div>); } return ( <div className="loader"> <div className="banner"> { `LOADING` } <div className="banner-left"></div> <div className="banner-right"></div> ...
PoSideMenuDemo/react-native-source/PoMain.js
pofabs/PoSideMenu
/** * Created by pofabs on 16/12/12. * @providesModule PoMain */ import SideMenu from 'PoSideMenu'; import React, { Component } from 'react'; import PoMenu from 'PoMenu'; import MainNaviBar from 'PoMainNavBar'; import CustomMadeMain from 'PoCustomMadeMain'; import SpecialMain from 'PoSpecialMain'; import { AppRe...
src/wrappers/BotChatWrapper.js
tmpaul06/gathering-client
import React from 'react'; import { socket } from '../socket'; import ChatBox from '../components/ChatBox'; export default class BotChatWrapper extends React.Component { constructor(props) { super(props); this.state = { messages: [] }; this.handleBotReply = this.handleBotReply.bind(this); t...
src/components/run.js
heikkipesonen/sysart
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/svg-icons/action/update.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionUpdate = (props) => ( <SvgIcon {...props}> <path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.5...
src/v2/components/UI/Avatar/index.js
aredotna/ervell
import React from 'react' import styled, { css } from 'styled-components' import { space } from 'styled-system' const mixin = css` display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; width: ${x => x.size}px; height: ${x => x.size}px; background-color...
src/client/components/shared/ErrorBoundary/ErrorBoundary.js
JoeKarlsson/react-redux-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; class ErrorBoundary extends React.Component { constructor(props) { super(props); this.state = { hasError: false, error: null, errorInfo: null, }; } componentDidCatch(error, info) { // Display fallback UI this.setState({ hasError: ...
src/svg-icons/editor/format-color-fill.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorFill = (props) => ( <SvgIcon {...props}> <path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 ...
React Native/Demos/address_book/index.ios.js
AngryLi/ResourceSummary
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TabBarIOS, NavigatorIOS, Image, TextInput, StatusBarIOS, ScrollView, TouchableHighlight, Activi...
docs/components/common/link/link.js
t1m0n/air-datepicker
import React from 'react'; import PropTypes from 'prop-types'; import {default as NextLink} from 'next/link'; import css from './link.module.scss'; function Link({href, children, ...rest} = {}) { return ( <NextLink href={href} {...rest}> <a className={css.el} target={rest.target}>{children}</a...
src/containers/scrollview.story.js
francisl/baer
import React from 'react'; import { containerSizeStyles } from '../../stories/config'; import ScrollView from './scrollview'; import Button from '../widgets/button'; const buttonList = [0,1,2,3,4,5,6,7,8,9,10].map(() => { return (<Button> 😀 😎 👍 💯 </Button>); }); export default () => ( <div style=...
src/index.js
TylerBriskie/client-portal-blackjack-UI
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/client/controllers/editor/edit.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2015 Ben Ockmore * 2015 Sean Burke * * 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 2 of the License, or * (at your option) any later ve...
src/containers/pages/home/cards/cards.js
vFujin/HearthLounge
import React from 'react'; import { Link } from 'react-router-dom' const CardsBlock = () => { return ( <div> <Link to={'/cards'}> <div className="icon-wrapper"> <span className="hs-icon icon-all-cards"></span> </div> </Link> </div> ); }; export default Ca...
src/CheckBox/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Icon from '../Icon'; import classNames from 'classnames'; import styles from './styles.css'; function CheckBox(props) { return ( <div className={classNames(styles.default, {[styles.checked]: props.checked}, {[...
src/page/pageList/list.js
zonghuan/xzs-amp
import React from 'react' import "./list.less" import Panel from 'react-bootstrap/lib/Panel' import Button from 'react-bootstrap/lib/Button' import "widget/common" var formatDate = (str)=>{ var date = new Date(str) return date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate()+ ' '+date.getHours()+':'+da...
src/routes/BoardList/components/BoardListView.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { toast } from 'react-toastify' import { concat, findIndex } from 'lodash' import { getMsg, isScreenSize } from 'utils/commonUtil' import BoardElement from './BoardElement' import Editor from ...
app/components/HotThreads.js
SuperDOgePx/chrome-extension-react
import React, { Component } from 'react'; import { GET } from '../utils/http'; const apiUrl = 'https://voz-living.appspot.com/query?id=agxzfnZvei1saXZpbmdyFQsSCEFwaVF1ZXJ5GICAgICA5JEKDA&format=json'; export default class HotThreads extends Component { constructor(prop) { super(prop); this.state = { is...
client/src/component/common/item-body.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import * as UU5 from 'uu5g03'; import ItemForm from "./item-form.js"; import Calls from '../../calls.js'; import Utils from '../../utils.js'; import './item-body.css'; let ComponentItemBody = React.createClass( { mixins: [ UU5.Common.BaseMixin, UU5.Common...
examples/few-dependencies/src/index.js
suevalov/code-splitting-in-react-apps-presentation
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/client/app/views/user.js
boris91/hype
import React, { Component } from 'react'; //import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import 'app/styles/user.less'; class UserPage extends Component { render() { return <div id='user' class='user'> User page. </div>; } }; const stateToProps = state => state; const di...
FrontEnd/src/components/article-list/article-list.js
liu599/BlogUpgrade
import React from 'react'; import {Link} from 'react-router-dom'; import Article from '@/components/article/article'; import Comments from '@/components/comments/comments'; import allActions from '@/redux/actions'; import { connect } from 'react-redux'; import { Menu, Dropdown, Icon } from 'antd'; class ArticleList ex...
frontend/src/components/Header.js
beelzebielsk/hoopla
import React, { Component } from 'react'; import { Redirect } from 'react-router'; import '../styles/header.css'; import AuthService from './AuthService' import { Navbar, NavItem, Icon, Input, Button } from 'react-materialize'; class Header extends Component { constructor(props) { super(props); thi...
src/components/spinny-component.js
havok2905/react-night-entry
import React from 'react'; class Spinny extends React.Component { constructor(props) { super(props); } render() { if(this.props.spinning) { return ( <div className='spinny'> </div> ); } else { return ( <div></div> ); } } } export default Spinny...
src/svg-icons/content/redo.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
src/mixins/helpers.js
hangarlabs/hangar-react-slick
'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...
packages/material-ui-icons/src/StarHalf.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let StarHalf = props => <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" ...
src/mui/list/Filter.js
marmelab/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash.debounce'; import isEqual from 'lodash.isequal'; import FilterForm from './FilterForm'; import FilterButton from './FilterButton'; import removeEmpty from '../../util/removeEmpty'; import withPermissionsFilteredC...
app/components/Stats/Table.js
sysrex/sysrex
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TableRow from './TableRow'; class Table extends Component { getRows() { return this.props.data.map(pair => ( <TableRow key={pair.label} label={pair.label} value={pair.value} link={pair.link...