path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/picture_in_picture/index.js
imas/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import Audio from 'mastodon/features/audio'; import { removePictureInPicture } from 'mastodon/actions/picture_in_picture'; import Header from './components/header'; import F...
app/static/src/performer/TestTypeResultForm_modules/VisualTestForm.js
vsilent/Vision
import React from 'react'; import Form from 'react-bootstrap/lib/Form'; import Panel from 'react-bootstrap/lib/Panel'; import Button from 'react-bootstrap/lib/Button'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootst...
packages/bootstrap-shell/src/providers/Modal/Context.js
TarikHuber/react-most-wanted
import React from 'react' export const Context = React.createContext(null) export default Context
src/svg-icons/av/call-to-action.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvCallToAction = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"/> </SvgIcon> ); AvCallToAction = pure(AvCallToAction);...
lib/components/IndexPage.js
kern/puddin
import DraftActions from '../actions/DraftActions' import DraftStore from '../stores/DraftStore' import OrderSelect from './OrderSelect' import Quote from './Quote' import QuoteEditor from './QuoteEditor' import QuotesActions from '../actions/QuotesActions' import QuotesStore from '../stores/QuotesStore' import React f...
packages/material-ui-icons/src/FilterNone.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z" /></g> , 'FilterNone');
bai/src/components/PartnershipBody/index.js
blackinai/blackinai.github.io
import { Button, Container, ListItem } from '@material-ui/core/'; import Grid from '@material-ui/core/Grid'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import React from 'react'; import Typography from '../Typography'; const styles = (theme) => ({ root: { dis...
src/client/views/compass/compass.js
ghemingway/cad.js
/* Copyright G. Hemingway, 2015 - All rights reserved */ 'use strict'; import React from 'react'; require('./compass.scss'); /*************************************************************************/ function setStyleTransform (element, value) { let style = element.style, styleNames = setStyleTransform...
src/main/resources/public/js/components/autosuggests/tax-reg-activity-autosuggest.js
SICTIAM/ozwillo-portal
import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'debounce'; import Autosuggest from 'react-autosuggest'; import Config from '../../config/config'; const sizeQueryBeforeFetch = Config.sizeQueryBeforeFetch; class TaxRegActivityAutosuggest extends React.Component { static propTyp...
frontend/app/components/SearchDialect/SearchDialectMessage.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import { SEARCH_PART_OF_SPEECH_ANY, SEARCH_DATA_TYPE_PHRASE, SEARCH_DATA_TYPE_WORD, SEARCH_TYPE_DEFAULT_SEARCH, SEARCH_TYPE_APPROXIMATE_SEARCH, SEARCH_TYPE_EXACT_SEARCH, SEARCH_TYPE_CONTAINS_SEARCH, SEARCH_TYPE_STARTS_WITH_SEARCH, SEARCH_TY...
src/svg-icons/action/open-in-browser.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
src/docs/Navigation.js
StudentOfJS/ps-react-rod
import React from 'react'; import PropTypes from 'prop-types'; const Navigation = ({components}) => { return ( <ul className="navigation"> { components.map( name => { return ( <li key={name}> <a href={`#${name}`}>{name}</a> </li> ) }...
ajax/libs/react-instantsearch/4.0.0-beta.3/Dom.js
him2him2/cdnjs
/*! ReactInstantSearch 4.0.0-beta.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"), require("react-dom")); else if(typeof def...
src/components/Footer/Footer.js
djfm/ps-translations-interface-mockup
/** * 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, { Component } from 'react'; import s from '....
app/javascript/flavours/glitch/features/ui/components/boost_modal.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from 'flavours/glitch/components/button'; import StatusContent from '...
web/src/routes/Contacts/components/ContactForm.js
darioml/farley-files
import React from 'react' export class ContactAdd extends React.Component { constructor(props) { super(props); if (this.props.contact) { this.state = Object.assign({ id: undefined, first_name: '', last_name: '', birthday: ...
src/client/components/NewPollPage.js
dgrcode/FCC-Voting-App
'use strict'; import React from 'react'; import NewChoiceInput from './NewChoiceInput'; import { communicateNewPoll } from '../actions/pollActions'; export default class NewPollPage extends React.Component { constructor (props) { super(props); this.state = { name: '', choices: [''] }; } ...
react-flux-mui/js/material-ui/src/svg-icons/content/low-priority.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLowPriority = (props) => ( <SvgIcon {...props}> <path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7....
src/icons/Wifi.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Wifi extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256.1,96L256.1,96c-79.9,0-155.7,29.9-213.9,84.1L32,189.6l9.9,9.8l32.3,32l9.3,9.2l9.6-8.8 c44.5-40.9,102.3-63.5,162.8...
src/js/pages/Featured.js
fjferrer/todoReactFlux
import React from 'react'; export default class Featured extends React.Component { render() { return ( <h1>Featured</h1> ); } }
src/entypo/SelectArrows.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--SelectArrows'; let EntypoSelectArrows = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,1L5,8h10L10,1z M10,19l5-7H5L10,19z"/> </EntypoIcon> ); export default EntypoSele...
components/Layout.js
akiran/nextjs-demo
import React from 'react' import Header from './Header' import Head from 'next/head' export default function Layout(props) { return ( <div> <Head> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /> </Head> <...
ui/js/components/ShellTerminal/ShellTerminal.js
NitorCreations/willow-ui
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import Terminal from 'term.js'; import ReduxWebSocketService from 'websocket/ReduxWebSocketService'; import createUuid from 'util/uuid'; const TerminalStates = { CONNECTING: 0, OPEN: 1, CLOSED: 3, ...
src/FormGroup.js
insionng/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
src/components/player-bar.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import { connect } from 'react-redux'; import type { Dispatch } from 'redux'; import { updateModalType } from '../redux/actions'; import type { Action } from '../redux/actions'; import type { Position } from '../types/domain'; import type { PlayerPageState } from '../types/state';...
classic/src/scenes/wbfa/generated/FASCookie.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faCookie } from '@fortawesome/pro-solid-svg-icons/faCookie' export default class FASCookie extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faCookie} />) } }
scripts/apps/translations/directives/TranslationReactDropdown.js
mugurrus/superdesk-client-core
/* eslint-disable react/no-multi-comp */ import React from 'react'; import PropTypes from 'prop-types'; /** * @ngdoc directive * @module superdesk.apps.translations * @name TranslationReactDropdown * * @requires React * @requires item * @requires className * @requires TranslationService * @requires noLanguage...
assets/js/src/components/_myApps.js
stechDevSP/stechDev
import React from 'react'; import ReactDOM from 'react-dom'; import { StMultiList } from '../webparts/st-multilist.jsx'; import { StCheckUp } from '../webparts/st-checkup.jsx'; import { StProjectGantter } from '../webparts/st-projectgantter.jsx'; import { StPdfMaker } from '../webparts/st-pdfmaker.jsx'; import { StNew...
src/containers/Login/index.js
dadongfang/react_redux_webpack_es6_qiniu
import React from 'react' import { connect } from 'react-redux' import { Form, Input, Button, Icon } from 'antd' import { login } from 'src/actions/account' import global from 'src/js/global' import './index.less' const FormItem = Form.Item class Login extends React.Component { constructor(props, context) { supe...
internals/templates/homePage/homePage.js
pashakbit/react-gallery
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/containers/Chats/ChatMessages.js
petorious/dmprov-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ReactDOM from 'react-dom'; import firebase from 'firebase'; import PropTypes from 'prop-types'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { injectIntl, intlShape } from 'react-intl'; import { setSimpleValue...
webpack/scenes/RedHatRepositories/index.js
adamruzicka/katello
/* eslint-disable import/no-extraneous-dependencies */ /* eslint import/no-unresolved: [2, { ignore: [foremanReact/*] }] */ /* eslint-disable import/no-unresolved */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'reac...
app/javascript/mastodon/main.js
cobodo/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { setupBrowserNotifications } from './actions/notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = requ...
app/constants/Global.js
jaminzzhang/MZMovie
import React from 'react'; import { Dimensions, Platform } from 'react-native'; let {height, width} = Dimensions.get('window'); // 获取屏幕宽度 global.SCREEN_WIDTH = width; // 获取屏幕高度 global.SCREEN_HEIGHT = height; // 系统是iOS global.iOS = (Platform.OS === 'ios'); // 系统是安卓 global.Android = (Platform.OS === 'android');
01_webstack/03Wk04/1_conFusion_http/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
allenmodroid/webstack
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/header/Navigation.js
samihda/pizza
import React from 'react'; import Sequence from './Sequence'; import MainMenu from './MainMenu'; const Navigation = (props) => { const Empty = () => null; return ( <nav> <div className="pure-menu pure-menu-horizontal"> {props.step === 0 ? <MainMenu {...props} /> : <Empty />} {props.step ...
app/components/badges/run-statistics/component.js
DenQ/electron-react-lex
import React, { Component } from 'react'; import Badge from 'material-ui/Badge'; export default class RunVariable extends Component { render() { const { statisticsAlbum } = this.props; return ( <span> <Badge badgeContent={statisticsAlbum.learned} primary={true} se...
src/containers/NotFound/NotFound.js
RomanovRoman/react-redux-universal-hot-example
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/Components/svg/BikeIcon.js
fcgomes92/pousadacaminhodosventos
import React, { Component } from 'react'; export default class BikeIcon extends Component { render() { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...this.props}> <path d="M13.24 61.67c1.682-.642 3.41-.945 5.11-.95l-1.897 14.21c-.1.757.247 1.502.888 1.915.53.34 1.19.4 1....
newclient/scripts/components/config/disclosure-requirements/configuring-panel/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
src/containers/About/About.js
rmwdeveloper/portfolio
import React, { Component } from 'react'; export default class About extends Component { render() { return ( <div> Hey whats up </div> ); } }
node_modules/react-native/Libraries/Components/TextInput/TextInput.js
senolakkas/react-native-minesweeper
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
main.js
lifeiscontent/OpenPoGoUI
import 'babel-polyfill'; import 'whatwg-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import FastClick from 'fastclick'; import { Provider } from 'react-redux'; import store from './core/store'; import router from './core/router'; import history from './core/history'; let routes = require('./r...
client/src/containers/MNISTVisualView.js
scandalouswool/rally
/* MNIST MACHINE LEARNING VISUALIZATION */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; const Synaptic = require('synaptic'); const Network = Synaptic.Network; class MNISTVisualView extends Component { constructor(props) { super(props); this.char...
packages/docs/components/Examples/image/gettingStarted.js
nikgraf/draft-js-plugin-editor
// It is important to import the Editor which accepts plugins. import Editor from '@draft-js-plugins/editor'; import createImagePlugin from '@draft-js-plugins/image'; import React from 'react'; const imagePlugin = createImagePlugin(); // The Editor accepts an array of plugins. In this case, only the imagePlugin // ...
src/svg-icons/toggle/radio-button-checked.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleRadioButtonChecked = (props) => ( <SvgIcon {...props}> <path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3...
src/js/app/header/SearchBar/MobileSearchBar.js
ludonow/ludo-beta-react
import React from 'react'; import styled from 'styled-components'; import magnifierIcon from '../../../../images/magnifier.svg'; import { CancelIconButton, CancelIconPlaceHolder, SearchBar } from './common'; const MobileSearchBarWrapper = styled.div` display: flex; justify-content: center; margin: 0 auto;...
src/svg-icons/notification/personal-video.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPersonalVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); Notifi...
pyxis/views/beacon/all.js
gtkatakura/furb-desenvolvimento-plataformas-moveis
import React from 'react'; import { Text, View, Button, StyleSheet, ScrollView } from 'react-native'; import Components from './../../components'; const styles = StyleSheet.create({ base: { padding: 24, flex: 1 }, name: { fontSize: 24 }, header: { flexWrap: 'wrap', flexDirection: 'row' ...
src/pages/string/Zalgorithm/Zalgorithm.js
hyy1115/react-redux-webpack3
import React from 'react' class Zalgorithm extends React.Component { render() { return ( <div>Zalgorithm</div> ) } } export default Zalgorithm
src/app/components/DialogExampleSimple.js
leoliew/react-webpack-example
/** * Created by leoliew on 2016/11/28. */ import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import ShowCaseCard from './ShowCaseCard'; /** * Dialog with action buttons. The actions are passed in ...
src/index.js
faalsh/react-materialize-demo
import React from 'react' import { render } from 'react-dom' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import {Provider} from 'react-redux' import store from './store' import Layout from './containers/Layout/Layout.jsx' import Matches from './containers/Matches/Matches.jsx' import Repos ...
app/jsx/nav_tourpoints/tour.js
djbender/canvas-lms
/* * Copyright (C) 2020 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/components/RouteNavItem.js
availabs/avail_app_bootstrap
import React from 'react'; import { Route } from 'react-router-dom'; import { NavItem } from 'react-bootstrap'; export default props => ( <Route path={props.href} exact children={({ match, history }) => ( <NavItem onClick={e => history.push(e.currentTarget.getAttribute('href'))} {.....
src-example/components/organisms/FeatureList/index.stories.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import { FeatureList } from 'components' storiesOf('FeatureList', module) .add('default', () => ( <FeatureList /> ))
src/collections/Form/FormDropdown.js
koenvg/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Dropdown from '../../modules/Dropdown' import FormField from './FormField' /** * Sugar for <Form.Field control={Dropdown} />. * @see Dropdown * @see Form */ function FormDropdown(props) {...
src/RefreshIndicator/RefreshIndicator.js
rscnt/material-ui
import React from 'react'; import autoPrefix from '../utils/autoPrefix'; import transitions from '../styles/transitions'; import Paper from '../Paper'; const VIEWBOX_SIZE = 32; function getStyles(props) { const padding = props.size * 0.1; // same implementation of `this.getPaddingSize()` return { root: { ...
src/parser/demonhunter/havoc/modules/talents/DemonBlades.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER } fro...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Fade.js
OpenKGB/webcode
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React fr...
src/common/Clipboard/Clipboard.js
Syncano/syncano-dashboard
import React from 'react'; import CopyToClipboard from 'react-copy-to-clipboard'; import { IconButton, FlatButton, FontIcon } from 'material-ui'; import Tooltip from '../Tooltip'; import Truncate from '../Truncate'; const Clipboard = ({ style, iconStyle, tooltip, text, copyText, onCopy, type, children, ...other }) => ...
src/components/Contact/ContactPage.js
liutongchen/liutong-chen-website
import React from 'react'; import { Col, Row, Tooltip, OverlayTrigger } from 'react-bootstrap'; import personalInfo from '../../../src/info'; import ScrollToTopOnMount from '../commons/ScrollToTopOnMount'; const ContactPage = () => { const gmailTooltip = ( <Tooltip id="tooltip">Gmail</Tooltip> ); c...
src/components/page/Page.js
Ca1YuChen/Lottery
import React from 'react'; import LotteryList from '../LotteryList/LotteryList'; import ButtonAppBar from '../ButtonAppBar/ButtonAppBar'; import AlertDialog from '../AlertDialog/AlertDialog'; import './Page.css'; export default class Page extends React.Component { constructor(props) { super(props); this.stat...
actor-apps/app-web/src/app/utils/require-auth.js
hzy87email/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/FormComponents/SingleInput.js
Minoli/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/screen/RobotArm/RobotArm.js
wavicles/fossasia-pslab-apps
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, KnobWrapper, PaintWrapper, Spacer, } from './RobotArm.styles'; import PaintArea from './Components/PaintArea'; import KnobControl from './Components/KnobControl'; import range from 'lodash/range'; const electro...
docs/app/Examples/elements/Button/Variations/ButtonExampleCircular.js
koenvg/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleCircular = () => ( <Button circular icon='settings' /> ) export default ButtonExampleCircular
src/svg-icons/image/tonality.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTonality = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87....
src/render-to-layer.js
XiaonuoGantan/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import Events from './utils/events'; import Dom from './utils/dom'; import debounce from 'lodash.debounce'; // heavily inspired by https://github.com/Khan/react-components/blob/master/js/layered-component-mixin.jsx const RenderToLayer = React.createClass({ ...
src/svg-icons/device/signal-cellular-0-bar.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar); DeviceSignalCellular0Bar.displayN...
login-test/src/App.js
linearworlds/cognito-groups
import React, { Component } from 'react'; import { withRouter, Link } from 'react-router-dom'; import Routes from './Routes'; import RouteNavItem from './components/RouteNavItem'; import AWS from 'aws-sdk'; import {clearAwsCredentials, getCurrentUser, getTokens, testIsAdminUser} from './libs/awsLib'; import config from...
modules/Layout.js
cloudytimemachine/frontend
import React from 'react' import { Link } from 'react-router/lib/Link' import Navbar from './Common/Navbar' import FooterSocialButtons from './Common/FooterSocialButtons' export default React.createClass({ render() { return ( <div> <Navbar /> {this.props.children} <footer className=...
demo/dynamic-hexbin.js
joelburget/d4
import React from 'react'; import {range} from 'd3-array'; import {hexbin as d3hexbin} from 'd3-hexbin'; import {randomNormal} from 'd3-random'; import {scaleLinear} from 'd3-scale'; import {interpolateLab} from 'd3-interpolate'; const width = 960; const height = 500; let i = -1; let theta = 0; const deltaTheta = 0.3;...
src/App.js
babizhu/you-you
import React, { Component } from 'react'; import { BarChart } from 'react-d3-components'; import { DatePicker } from 'antd'; import { NICE, SUPER_NICE } from './colors'; //import 'antd/style/index.less'; // import less for modifyVars import 'antd/lib/index.css'; //import {buildChartsData} from './milk/data/MilkData'...
src/svg-icons/av/playlist-play.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay = pure(AvPlaylistPlay); AvPlaylistPlay.displayName = '...
demo/src/common/routes/Routes.js
misterfresh/react-easy-transition
'use strict' import React from 'react' import { Route, IndexRoute } from 'react-router' import App from 'containers/App' import Home from './Home/Home' import About from './About/About' import Contact from './Contact/Contact' import NoMatch from 'containers/NoMatch' export default ( <Route path="/" component={App...
Libraries/Modal/Modal.js
happypancake/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/routes.js
wearhacks/stark-classroom
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import Intro from './components/Intro'; import CourseContainer from './containers/CourseContainer'; import NotFoundPage from './components/NotFoundPage.js'; export default ( <Route path="/" component={Ap...
components/Animation.js
andkhong/git-started
import React, { Component } from 'react'; import GitAnimation from './GitAnimation'; import StructureAnimation from './StructureAnimation'; export default class Animation extends Component { constructor(props) { super(props); this.showGit = this.showGit.bind(this); this.showStructure = this.showStructure...
src/components/SimilarItems/SimilarItems.js
expdevelop/d812
import React from 'react' import { Carousel, InitCatalog } from 'components' import { ItemContainer } from 'containers' import s from './SimilarItems.sass' const SimilarItems = ({title, init, data}) => { const empty = !data || !data.length; return ( <div className={s.recommended}> {!empty && <h3 classNa...
src/components/layer/layer.js
hhj679/mybition-web
import { Modal, message } from 'antd' import React from 'react' import ReactDOM from 'react-dom' import classnames from 'classnames' import styles from './layer.less' const { info, success, error, warning, confirm } = Modal const layer = { prefixCls: 'ant-layer', index: 1, info, success, error, warning, ...
examples/counter/containers/App.js
AprilArcus/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
docs/src/CodeExample.js
victorzhang17/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
src/routes/Speeds/components/DashboardSpeedsView.js
liuyaoao/omnyiq-sc1-server-render
import React from 'react'; import axios from 'axios' import Helmet from 'react-helmet' import TimeSelectionTab from '../../../components/TimeSelectionTab' import ReactTabBar from '../../../components/ReactTabBar' import {getSpeedsDownloadChartData, getSpeedsUploadChartData, getSpeedsDL_ULChartData} from './SpeedsChart...
src/BurgerIcon.js
Lafinboy/react-burger-nav
import React from 'react' const BurgerIcon = React.createClass({ propTypes: { onClick: React.PropTypes.func.isRequired }, getInitialState() { return {hover: false} }, getLineStyle(index) { return { position: 'absolute', height: '20%', le...
jest-integration/baseTemplate/src/ClickCounter.js
bruderstein/unexpected-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class ClickCounter extends Component { constructor() { super(); this.state = { count: 0 }; this.onClick = this.onClick.bind(this); } onClick() { this.setState({ count: this.state.count + 1 ...
ajax/libs/react-instantsearch/4.3.0-beta.0/Connectors.js
joeyparrish/cdnjs
/*! ReactInstantSearch 4.3.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
src/svg-icons/action/delete-forever.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
automatic-test-evaluation/src/Blanks/ClassMarksBarChart.js
hris11/AutomaticTestEvaluation
import React, { Component } from 'react'; import { BarChart, Bar, XAxis} from 'recharts'; const CustomBar = (props) => { const { x, y, width, height, fill } = props; if (x === +x && y === +y) { const path = `M${x},${y + height} C${x + width / 3},${y + height} ${x + width / 2},${y + height / ...
packages/material-ui-icons/src/Texture.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Texture = props => <SvgIcon {...props}> <path d="M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 2v2...
packages/material-ui-icons/src/CardGiftcard.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CardGiftcard = 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...
packages/kalama/src/containers/MainWindow.js
corporateanon/kalama
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getRoute } from '../ducks/router'; import Label from '../components/Label'; import { getTasksSummary, STATUS_SCHEDULED, STATUS_FAILED, STATUS_COMPLETED } from '../ducks/d...
examples/with-custom-reverse-proxy/pages/index.js
BlancheXu/test
import React from 'react' export default class extends React.Component { constructor (props) { super(props) this.state = { response: '' } } static async getInitialProps ({ pathname, query }) { return { pathname, query, queryString: Object.keys(query).join('') } } async com...
packages/react-devtools-shared/src/devtools/views/ButtonIcon.js
rickbeerendonk/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import styles from './ButtonIcon.css'; export type IconType = | 'add' | 'cancel' | '...
src/client/components/pages/parts/add-entity-to-collection-modal.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2020 Prabal Singh * * 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 version. * * This program is distr...
docs/src/app/components/pages/components/Menu/ExampleIcons.js
rhaedes/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; import PersonAdd from 'material-ui/svg-icons/social/person-add'; import ContentLink from 'material-ui...
admin/client/App/screens/Home/index.js
vokal/keystone
/** * The Home view is the view one sees at /keystone. It shows a list of all lists, * grouped by their section. */ import React from 'react'; import { Container, Spinner } from '../../elemental'; import { connect } from 'react-redux'; import Lists from './components/Lists'; import Section from './components/Secti...
src/js/components/InfiniteScroll/stories/ShowBefore.js
grommet/grommet
import React from 'react'; import { Box, InfiniteScroll, Text } from 'grommet'; const allItems = Array(240) .fill() .map((_, i) => `item ${i + 1}`); const Example = (props) => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <InfiniteScroll items={allItems} {...props}...
src/templates/index.js
calpa/blog
/* eslint react/prop-types: 0 */ import React from 'react'; import Link from 'gatsby-link'; import Card from '../components/Card'; import Sidebar from '../components/Sidebar'; import ShareBox from '../components/ShareBox'; import './index.scss'; const NavLinkText = ({ color, text }) => ( <div className="navlin...
docs/src/app/components/pages/components/Toolbar/Page.js
tan-jerene/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import toolbarReadmeText from './README'; import toolbarExampleSimpleCode from '...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
nguyenhongson03/actor-platform
import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import Actor...