path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js
benkroeger/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import Transition from 'react-addons-css-transition-group'; import classnames from 'classnames'; import ListFiltersAddForm from './ListFiltersAddForm'; import Popout from '../../../../shared/Popout'; import PopoutList from '../../../../shared/Popout/P...
src/index.js
remy-guyz-hackeference-2016/front-end
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import createLogger from 'redux-logger'; import App from './components/App'; import './index.css'; import rootReducer from './st...
ui/src/main/js/components/JobList.js
rdelval/aurora
import React from 'react'; import Icon from 'components/Icon'; import JobListItem from 'components/JobListItem'; import Pagination from 'components/Pagination'; import { isNully } from 'utils/Common'; import { TASK_COUNTS } from 'utils/Job'; // VisibleForTesting export function searchJob(job, query) { const taskCo...
src/frontend/components/Spinner/index.js
Koleso/invoicer
import React from 'react'; import cx from 'helpers/classes'; // CSS import './index.less'; const Spinner = ({ modifiers }) => { const bm = 'Spinner'; return ( <div className={cx(bm, '', modifiers)}> <div className={cx(bm, 'spinner')}></div> </div> ); }; export default Spinner;
src/frontend/components/admin/ToolBar.js
ChVince/new-record
import React from 'react' import {Navbar, Nav, NavItem, Modal, Button} from 'react-bootstrap' import AddClip from './AddClip' class ToolBar extends React.Component { constructor(props) { super(props); this.state = { showModal: false }; } close = () => { this.p...
src/icons/GlyphFilter.js
ipfs/webui
import React from 'react' const GlyphFilter = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M78.48 19.84h-57a4.1 4.1 0 0 0-4.08 4.08v52.16a4.1 4.1 0 0 0 4.08 4.08h57a4.1 4.1 0 0 0 4.08-4.08V23.92a4.1 4.1 0 0 0-4.08-4.08zm-7.36 43.57h-27a5.07 5.07 0 0 1-9.83 0h-5.41a1.25 1.25 0 1 1 0-2.5h5.43a5.07 5....
src/js/index.js
mirandagithub/reactflux_try
import React from 'react'; import App from './components/App.react'; React.render(<App />, document.getElementById('root'));
src/components/PreviousButton.js
joellanciaux/Griddle
import React from 'react'; const PreviousButton = ({ hasPrevious, onClick, style, className, text }) => hasPrevious ? ( <button type="button" onClick={onClick} style={style} className={className}>{text}</button> ) : null; export default PreviousButton;
src/components/header.js
mozilla/donate.mozilla.org
import React from 'react'; module.exports = React.createClass({ contextTypes: { intl: React.PropTypes.object }, propTypes: { alt: React.PropTypes.string }, render: function() { var alt = "Mozilla"; // FIXME: Should update the list in the regex for locales that did the translation // for ...
examples/app.js
Tiendq/youtube-embed-video
import React from 'react'; import ReactDOM from 'react-dom'; import YoutubeEmbedVideo from '../dist/youtube'; // import YoutubeEmbedVideo from 'youtube-embed-video'; ReactDOM.render(<YoutubeEmbedVideo size="medium" videoId="RnDC9MXSqCY" className="video-player" style={{ borderWidth: 10, borderColor: '#00c775', borderS...
react/examples/Unit_Tests/src/index.js
jsperts/workshop_unterlagen
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './components/App'; import store from './store'; render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
src/components/TableBody/TableView.js
cantonjs/re-admin
import React, { Component } from 'react'; import PropTypes from 'utils/PropTypes'; import { toJS } from 'mobx'; import { observer } from 'mobx-react'; import { isEmpty } from 'utils/fp'; import clearSortedInfo from 'utils/clearSortedInfo'; import { TABLE } from 'utils/Issuers'; import withIssuer from 'hocs/withIssuer';...
examples/reactnative/rn063example/__tests__/App-test.js
bugsnag/bugsnag-js
/** * @format */ import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { renderer.create(<App />); });
test/client/scripts/components/user/travel-log/travel-log-form-test.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/svg-icons/device/bluetooth-searching.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9...
app/jsx/assignments_2/student/components/LatePolicyStatusDisplay/AccessibleTipContent.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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/main/webapp/static/js/club/view/back/blog/ueditor.js
weijiafen/antBlog
import React from 'react'; require('../../../library/ueditor/ueditor.config.js') require('../../../library/ueditor/ueditor.all.min.js') require('../../../library/ueditor/lang/zh-cn/zh-cn.js') var UEditor = React.createClass({ displayName: 'UEditor', // 设置默认的属性值 getDefaultProps: funct...
fluent-react/test/provider_change_test.js
zbraniecki/fluent.js
import React from 'react'; import assert from 'assert'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { LocalizationProvider } from '../src/index'; suite('LocalizationProvider - changing props', function() { test('does not change the ReactLocalization', function() { const wrapper = shallow(...
app/ActionExtensionScreen.js
shaneosullivan/ReactNativeExampleBrowserExtension
// @flow import React from 'react'; import { NativeModules, TouchableOpacity, Text, View } from 'react-native'; export default class ActionExtensionScreen extends React.Component { constructor() { super(); this.state = { domainUrl: null }; } componentDidMount() { NativeModules.ActionExten...
src/svg-icons/device/screen-lock-portrait.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockPortrait = (props) => ( <SvgIcon {...props}> <path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1....
src/containers/DevTools.js
tylergraf/react-twitter
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /> ...
test/components/box-test.js
p632-sp-2016/eDocLite
import React, { Component } from 'react'; import expect from 'expect'; import * as ToolBoxActions from '../../src/components/ToolBoxComponents'; import Box from '../../src/components/Box'; import TestUtils from "react-addons-test-utils"; describe('Box tests', () => { it('should drop a new box on form builder', () =...
routes/react-server.js
domjtalbot/Find-a-listing
/* eslint-disable no-console */ import { Router } from 'express'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { match, RouterContext } from 'react-router'; import routes from '../modules/routes'; const router = new Router(); router.get('*', (req, res) => { res.set('Cache-...
client/src/js/containers/App.js
rmhowe/transport-app
import React from 'react'; import Header from '../components/Header'; import MetroLine from '../components/MetroLine'; import Immutable from 'immutable'; import fetch from 'isomorphic-fetch'; export default class App extends React.Component { constructor(props) { super(props); this.urlRoot = '/'; this.s...
src/containers/Ecommerce/checkout/index.js
EncontrAR/backoffice
import React from 'react'; import LayoutWrapper from '../../../components/utility/layoutWrapper'; import Box from '../../../components/utility/box'; import BillingForm from './billing-form'; import OrderInfo from './order-info'; class CartPage extends React.Component { render() { return ( <LayoutWrapper cl...
node_modules/react-bootstrap/es/Row.js
xuan6/admin_dashboard_local_dev
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/routes/login/index.js
maadcodr/carshow
/** * 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 Login from './Login'; e...
packages/editor/src/components/Controls/ColorPicker/ColorPickerLayout.js
boldr/boldr
/* eslint-disable react/no-unused-prop-types, react/no-array-index-key */ /* @flow */ import React from 'react'; import type { Node } from 'react'; import cn from 'classnames'; import { EyeDropper } from '../../Icons'; import { stopPropagation } from '../../../utils/common'; import Option from '../../Option'; import t...
blueprints/view/files/__root__/views/__name__View/__name__View.js
cargo-transport/web-frontend
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/svg-icons/notification/vpn-lock.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVpnLock = (props) => ( <SvgIcon {...props}> <path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-...
src/svg-icons/social/sentiment-satisfied.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentSatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1...
src/svg-icons/action/lightbulb-outline.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLightbulbOutline = (props) => ( <SvgIcon {...props}> <path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1...
examples/e-commerce/widgets/Ratings.js
algolia/react-instantsearch
import React from 'react'; import { connectRange } from 'react-instantsearch-dom'; import cx from 'classnames'; const Ratings = ({ currentRefinement, refine, createURL, count }) => { const ratings = new Array(4).fill(null).map((_, ratingIndex) => { const value = 4 - ratingIndex; const itemsCount = count ...
app/javascript/mastodon/features/ui/components/embed_modal.js
PlantsNetwork/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage, injectIntl } from 'react-intl'; import api from '../../../api'; @injectIntl export default class EmbedModal extends ImmutablePureComponent { static propTypes...
src/main.js
Spwahle/Narcan-Now-Frontend
import './style/main.scss'; import React from 'react'; import ReactDom from 'react-dom'; import App from './component/app'; import {Provider} from 'react-redux'; import appCreateStore from './lib/app-create-store'; let store = appCreateStore(); class AppContainer extends React.Component { render() { return ( ...
hello-world/src/index.js
tychay/slideshow-react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
pootle/static/js/admin/general/components/ContentEditor.js
JohnnyKing94/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import CodeMirror from 'compon...
blueocean-material-icons/src/js/components/svg-icons/notification/ondemand-video.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationOndemandVideo = (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 14H3V5h18v12zm-5-6l-7 4V7z"/> </SvgIcon> ); NotificationOndemandVideo....
docs/src/examples/elements/Reveal/States/RevealExampleActive.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleActive = () => ( <Reveal active animated='move'> <Reveal.Content visible> <Image src='/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> <Image src='/image...
app/javascript/flavours/glitch/features/ui/components/report_modal.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { changeReportComment, changeReportForward, submitReport } from 'flavours/glitch/actions/reports'; import { expandAccountTimeline } from 'flavours/glitch/actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react...
src/encoded/static/components/item-pages/components/WorkflowNodeElement.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { console, object, valueTransforms } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { expFxn } from './../../util'; import { ViewMetricButton } from './WorkflowDetailPane/FileDetail...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
ralrwais/Portfolio_2017
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/Components/StoppedTasksCard/OtherInfo.js
adamruzicka/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Icon, Button, OverlayTrigger, Tooltip } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import { TASKS_DASHBOARD_AVAILABLE_QUERY_STATES, TASKS_DASHBOARD_AVAILABLE_QUERY_...
Console/app/node_modules/antd/es/layout/layout.js
RisenEsports/RisenEsports.github.io
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/Home.js
Luanre/react-transform-boilerplate
import React, { Component } from 'react'; export default class Home extends Component { render () { return ( <div> <h1>hello</h1> </div> ) } }
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Warnings/MigratableResourcesWarning.js
KlusterKite/KlusterKite
import React from 'react'; import Relay from 'react-relay' export class MigratableResourcesWarning extends React.Component { render() { const resourceState = this.props.resourceState; return ( <div> {resourceState && resourceState.configurationState && resourceState.configurationState.migratab...
src/form/DateField.js
carab/Pinarium
import React from 'react' import BaseTextField from '@material-ui/core/TextField' export default function DateField({ onChange, value, InputLabelProps, ...props }) { const handleChange = event => { const {value, name} = event.target if (onChange instanceof Function) { const computedValue = val...
app/public/index.js
jmcolella/unique-twitter-followers
import React from 'react'; import ReactDOM from 'react-dom'; import routes from '../config/routes'; import App from '../containers/App'; ReactDOM.render( routes, document.getElementById( 'app' ) );
src/svg-icons/av/av-timer.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
client/views/room/contextualBar/Threads/components/Message.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import Message from './Message'; const message = { msg: 'hello world', ts: new Date(0), username: 'guilherme.gazzo', replies: 1, participants: 2, tlm: new Date(0).toISOString(), }; const largeText = { ...message, msg: 'Large text, Large text, Large text, Large text, Large text, L...
assets/javascripts/kitten/components/graphics/icons/cb-icon/index.js
KissKissBankBank/kitten
import React from 'react' import classNames from 'classnames' export const CbIcon = ({ className, ...props }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2051.48 845.02" width="36" className={classNames('k-ColorSvg', className)} {...props} > <title>CB</title> <path d="M205...
src/client/src/Components/TimerForm/index.js
severnsc/brewing-app
import React from 'react' import Button from '../Button' import ErrorText from '../ErrorText' import FlexDiv from '../FlexDiv' import styled from 'styled-components' import PropTypes from 'prop-types' const TimerInputForm = styled.form` display: flex; flex-direction: column; align-items: center; justify-conten...
Example/components/Register.js
hungtn/react-native-router-flux
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import Button from 'react-native-button'; import { Actions } from 'react-native-router-flux'; const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', alignItems: 'center', backgroundColor: '#F...
app/containers/companies/components/create-company/index.js
kimurakenshi/caravanas
import { connect } from 'react-redux'; import { saveCompany } from 'app/actions/company-actions'; import { hasCompany } from 'app/reducers'; import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import PageSubtitle from 'app/compone...
resource/js/components/Page/PageBody.js
crow-misia/crowi
import React from 'react'; export default class PageBody extends React.Component { constructor(props) { super(props); this.crowiRenderer = window.crowiRenderer; // FIXME this.getMarkupHTML = this.getMarkupHTML.bind(this); } getMarkupHTML() { let body = this.props.pageBody; if (body === '')...
app/javascript/mastodon/components/avatar_composite.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarComposite extends React.PureComponent { static propTypes = { accounts: ImmutablePropTypes.list.isRequired, ani...
src/Project.js
Miloucodaisseur/task_manager
import React from 'react'; import jQuery from 'jquery'; import { Router, Route, IndexRoute, Link, browserHistory } from 'react-router'; import ToDoList from './toDoList'; import EditableTitle from './EditableTitle'; class Project extends React.Component { constructor() { super(); this.state = { proje...
ui/src/main/js/pages/Jobs.js
rdelval/aurora
import React from 'react'; import Breadcrumb from 'components/Breadcrumb'; import JobList from 'components/JobList'; import PanelGroup, { PanelSubtitle, StandardPanelTitle } from 'components/Layout'; import Loading from 'components/Loading'; import RoleQuota from 'components/RoleQuota'; import { isNully } from 'utils...
src/utils/defaultMenuRenderer.js
OpenGov/react-select
import classNames from 'classnames'; import React from 'react'; function menuRenderer ({ focusedOption, instancePrefix, labelKey, onFocus, onSelect, optionClassName, optionComponent, optionRenderer, options, valueArray, valueKey, onOptionRef }) { let Option = optionComponent; return options.map((option,...
src/js/components/video/Share.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import Box from '../Box'; import SocialShare from '../SocialShare'; import Form from '../Form'; import FormField from '../FormField...
ReportSystem/src/main/webapp/resources/js/components/common/sidermenu.js
LittleLazyCat/TXEY
import { Menu, Icon } from 'antd'; import React from 'react' const SubMenu = Menu.SubMenu; export default class SiderMenu extends React.Component { constructor(props) { super(props); this.state={ current: 'userMgt', openKeys: [] }; } handleClick(e) { window.location.hash = e.key; ...
src/client/js/menu/MainMenu.js
GoodBoy123/crendorianinvitational
import React from 'react'; import { IndexLink, Link } from 'react-router'; class MainMenu extends React.Component { constructor(props) { super(props) } render() { return( <div className="pure-menu pure-menu-horizontal"> <ul className="pure-menu-list"> <li className="ci-Mainmenu-i...
client/containers/Notifications.spec.js
zhakkarn/Mail-for-Good
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { NotificationsComponent } from './Notifications'; const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars notifications: [], consume: () => {} }); const wrapper = shallow(<NotificationsComponent...
app/components/ContactCreated/index.js
guigonc/client_app
import React from 'react' import { Link } from 'react-router'; import { Alert } from 'react-bootstrap'; const Price = ({}) => ( <div> <Alert bsStyle="success"> <h4>Your contact has been sent!</h4> <p>Our team will get in touch!!!</p> </Alert> </div> ) export default Price
src/demos/testing-a-geospatial-app/1-smoke-tests/root.js
uber-common/vis-academy
/* global document */ import React from 'react'; import {render} from 'react-dom'; import App from './src/provider'; const Root = () => ( <div className="app-container"><App/></div> ); render(<Root />, document.body.appendChild(document.createElement('div')));
app/javascript/flavours/glitch/features/status/components/detailed_status.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from 'flavours/glitch/components/avatar'; import DisplayName from 'flavours/glitch/components/display_name'; import StatusContent from 'flavours/glitch/components/status_content'; imp...
index.js
mvader/react-categorized-tag-input
import React from 'react'; import ReactDOM from 'react-dom'; import Input from './src/index'; const categories = [ { id: 'animals', title: 'Animals', type: 'animal', items: ['Dog', 'Cat', 'Bird', 'Dolphin', 'Apes'] }, { id: 'something', title: 'Something cool', items: ['Something coo...
src/components/ComboBox/ComboBox-test.js
jzhang300/carbon-components-react
import React from 'react'; import { mount } from 'enzyme'; import { findMenuNode, findMenuItemNode, openMenu, assertMenuOpen, generateItems, generateGenericItem, } from '../ListBox/test-helpers'; import ComboBox from '../ComboBox'; const findInputNode = wrapper => wrapper.find('.bx--text-input'); const cle...
components/ProgressiveTransitionImage/index.js
samuelngs/px
import React, { Component } from 'react'; import { Animated, View, InteractionManager } from 'react-native'; import TransitionImage from 'px/components/TransitionImage'; export default class ProgressiveTransitionImage extends Component { static defaultProps = { ...TransitionImage.defaultProps, wrapper ...
app/javascript/mastodon/features/lists/components/new_list_form.js
abcang/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
src/components/general/modals/InformationModal.js
katima-g33k/blu-react-desktop
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal } from 'react-bootstrap'; const InformationModal = props => ( <Modal.Dialog> <Modal.Header> <Modal.Title> {props.title} </Modal.Title> </Modal.Header> <Modal.Body> {props.message} </Modal.B...
src/reconciler/proxyAdapter.js
gaearon/react-hot-loader
import React from 'react'; import { enterHotUpdate, get as getGeneration, hotComparisonOpen, setComparisonHooks } from '../global/generation'; import { getProxyByType, setStandInOptions } from './proxies'; import reconcileHotReplacement, { flushScheduledUpdates, unscheduleUpdate } from './index'; import configuration, ...
src/svg-icons/action/bookmark-border.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBookmarkBorder = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder = pure(ActionBook...
docs/src/app/components/pages/components/IconButton/Page.js
ruifortes/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 iconButtonCode from '!raw!material-ui/IconButton/IconButton'; import icon...
packages/mineral-ui-icons/src/IconLocalSee.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 IconLocalSee(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps...
src/svg-icons/action/view-array.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewArray = (props) => ( <SvgIcon {...props}> <path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/> </SvgIcon> ); ActionViewArray = pure(ActionViewArray); ActionViewArray.displayName = 'ActionViewA...
frontend/src/Settings/CustomFormats/CustomFormats/Specifications/AddSpecificationPresetMenuItem.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import MenuItem from 'Components/Menu/MenuItem'; class AddSpecificationPresetMenuItem extends Component { // // Listeners onPress = () => { const { name, implementation } = this.props; this.props.onPress({ ...
src/client/main.js
jirastom/react-learnig
import React from 'react'; import Router from 'react-router'; import routes from './routes'; const app = document.getElementById('app'); const initialState = window._initialState; Router.run(routes, Router.HistoryLocation, (Handler) => { React.render(<Handler initialState={initialState} />, app); });
frontend/src/Settings/ImportLists/ImportListExclusions/EditImportListExclusionModalContentConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveImportListExclusion, setImportListExclusionValue } from 'Store/Actions/settingsActions'; import selectSettings from 'Store/...
packages/material-ui-icons/src/AirplanemodeInactive.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AirplanemodeInactive = props => <SvgIcon {...props}> <path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19...
tests/lib/rules/indent.js
dguo/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
src/index.js
sljavi/intro-web-speech-api
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './lib/components/main'; import './style/main.css'; var initialProps = { frameUrl: '//slides.com/javierperez-3/deck-1/embed?style=light' }; window.onload = () => { ReactDOM.render( <Main {...initialProps} />, document.querySelec...
src/components/App.js
roslaneshellanoo/react-redux-tutorial
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, routes: PropTypes.object.isRequired, } shouldComponentUpd...
examples/async/index.js
grahamlyus/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...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/GridList/Page.js
pbogdan/react-flux-mui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import gridListReadmeText from './README'; import gridListExampleSimpleCode from...
src/containers/DevTools.js
Shenseye/fisrt-react-redux-todolist
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
qwerjkl112/CMPEN482
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
app/containers/App/components/Building.js
nikb747/threejs-react-proto
// @flow import React from 'react' import * as THREE from 'three' import {GLOBAL_X_OFFSET, GLOBAL_Y_OFFSET, UNIT_SCALE} from '../constants' const Building = (props: { x: number, y: number, width: number, length: number, color: number, height: number}) => { let actualWidth = UNIT_SCALE * props...
src/routes.js
karlbright/hotplate
import React from 'react' import { Route } from 'react-router' import Helmet from 'react-helmet' import Example from './components/example' const test = () => ( <div> <Helmet title='Test title' /> <Example /> </div> ) export default <Route path='/' component={test} />
src/layouts/CoreLayout/CoreLayout.js
hrnik/roofbar
import React from 'react' import PropTypes from 'prop-types' // import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' import NotificationContainer from 'containers/NotificationContainer' export const CoreLayout = ({ children }) => ( <div className='core-layout__viewp...
app/scripts/views/nodeprops.js
transmute-industries/monarch-portal
import React from 'react' import PropTable from './proptable' import {addr} from './typography' export default class NodeProps extends React.Component { render () { const node = this.props || {} const table = [ ['Node ID', addr(node.ID)], ['Version', addr(node.AgentVersion)] ] return Pr...
client/components/Footer/index.js
lafin/talks-on-map
import React, { Component } from 'react'; import classnames from 'classnames'; import style from './style.css'; class Footer extends Component { shouldComponentUpdate() { return false; } render() { return ( <div className={classnames(style.main)}> Footer </div> ); } } export d...
src/svg-icons/image/timelapse.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimelapse = (props) => ( <SvgIcon {...props}> <path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4...
src/components/library/MotionTypography.js
theshaune/react-animated-typography-experiments
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const stagger = keyframes` to { opacity: 1; transform: translateY(0%); } `; const Segments = styled.div` font-family: 'Playfair Display', serif; font-size: 18px; @media (min-width: ...
src/screens/App/screens/About/components/index.js
enesTufekci/react-clear-starter-kit
import React from 'react'; const About = () => ( <div className="text-center"> <h1> About </h1> </div> ); export default About;
react/eventwizard/eventwizard.js
phil-lopreiato/the-blue-alliance
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware, compose } from 'redux' import thunk from 'redux-thunk' import EventWizardFrame from './components/EventWizardFrame' import eventwizardReducer from './reducers' const store = createSt...
app/components/CrafterList.js
stratigos/stormsreach
import React from 'react'; import PropTypes from 'prop-types'; import AvatarContainer from '../containers/AvatarContainer'; const CrafterList = ({ avatars }) => { return( <div className='crafter-list-container'> {avatars.map( (avatar) => { return(<AvatarContainer key={avatar.id} avatarId={avatar.id...
src/svg-icons/navigation/more-horiz.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationMoreHoriz = (props) => ( <SvgIcon {...props}> <path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-...
test/BreadcrumbItemSpec.js
Terminux/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import BreadcrumbItem from '../src/BreadcrumbItem'; describe('BreadcrumbItem', () => { it('Should render `a` as inner element when is not active', () => { const instance = ReactTestUtils.renderInt...
apps/marketplace/components/Opportunities/OpportunitiesPagination.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import AUdirectionLink from '@gov.au/direction-links/lib/js/react' import styles from './Opportunities.scss' const scrollToTop = () => (typeof window !== 'undefined' ? window.scrollTo(0, 0) : '') const showPrevious = props => props.lastPage > 1 && props.cur...