path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/javascript/mastodon/features/ui/components/upload_area.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.boo...
node_modules/react-bootstrap/es/MediaRight.js
C0deSamurai/muzjiks
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 ...
packages/react/components/fab-button.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../ru...
src/components/Feed.js
tableau-app/app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import GalleryCard from './GalleryCard'; import Nav from './Nav'; import { fetchPosts, likePost, addComment } from '../actions'; class Feed extends Component { componentDidMount() { this.props.fetchPosts(); } handleLike(postI...
src/js/CreateStepper/Content/BasicDataForm/index.js
ludonow/ludo-beta-react
import React, { Component } from 'react'; import styled from 'styled-components'; import ReportIntervalButtonList from './ReportIntervalButtonList'; import Slider from './Slider'; import TagList from './TagList'; import TextInput from './TextInput'; // styled components const Wrapper = styled.div` display: flex; ...
src/components/comment_list.js
JKRy/react-redux-testing
import React from 'react'; import { connect } from 'react-redux'; const CommentList = (props) => { const list = props.comments.map(comment => <li key={comment}>{comment}</li> ); return ( <ul className='comment-list'> {list} </ul> ); }; function mapStateToProps(...
client/src/components/export/selectedScreens/ExportAsImageScreen.js
alecortega/palettable
// @flow import React from 'react'; import type { ColorType } from '../../../constants/FlowTypes'; import UIButton from '../../shared/button/UIButton'; import exportOptionsKeys from '../exportOptionsKeys'; type Props = { +onSelectExportType: (key: string) => {}, +likedColors: ColorType[], }; class ExportContentIm...
admin/client/App/screens/List/components/ListDownloadForm.js
xyzteam2016/keystone
import React from 'react'; import assign from 'object-assign'; import Popout from '../../../shared/Popout'; import PopoutList from '../../../shared/Popout/PopoutList'; import { Button, Checkbox, Form, FormField, InputGroup, SegmentedControl } from 'elemental'; import { downloadItems } from '../actions'; const FORMAT_O...
app/components/ActionBar/FlagAmountCall.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import { FlagCall } from './styles'; import { formatNtz } from '../../utils/amountFormatter'; const FlagAmountCall = ({ active, amountToCall, sliderOpen, myStack, }) => { // hide flag if only option is to 'check' or 'all-in' const hide = amoun...
draft-js-buttons/src/components/BlockquoteButton/index.js
dagopert/draft-js-plugins
import React from 'react'; import createBlockStyleButton from '../../utils/createBlockStyleButton'; export default createBlockStyleButton({ blockType: 'blockquote', children: ( <svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"> <path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6...
src/components/common/svg-icons/av/play-arrow.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayArrow = (props) => ( <SvgIcon {...props}> <path d="M8 5v14l11-7z"/> </SvgIcon> ); AvPlayArrow = pure(AvPlayArrow); AvPlayArrow.displayName = 'AvPlayArrow'; AvPlayArrow.muiName = 'SvgIcon'; export defau...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
Dodelkin/react-router
/*globals COURSES:true */ import React from 'react' class Grades extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Grades</h3> <ul> {assignments.map(assignment => ( <li key={assignment.id}>{assignment...
src/routes.js
BavoG/onesupportdocu
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import Ivenues from './Ivenues'; import Home from './components/Home'; const rootPath = '/'; const onRouteUpdate = function () { let docElements = document.querySelectorAll('.article'); if (docElements.length > 0 ...
chinwag/src/index.js
ChinwagMM/ChinwagApp
import React from 'react' import { render } from 'react-dom' import { BrowserRouter, Match, Miss, Route, Switch } from 'react-router' // import { RouteTransition } from 'react-router-transition' import './css/style.css' import App from './components/App' import Subjects from './components/Subjects' import Survey from ...
monkey/monkey_island/cc/ui/src/components/report-components/security/issues/Log4ShellIssue.js
guardicore/monkey
import React from 'react'; import CollapsibleWellComponent from '../CollapsibleWell'; import {Button} from 'react-bootstrap'; export function log4shellIssueOverview() { return (<li>Some servers are vulnerable to the Log4Shell remote code execution exploit.</li>) } export function log4shellIssueReport(issue) { ret...
app/containers/LanguageProvider/index.js
anoChick/nekojima
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
website-prototyping-tools/playground.js
xymostech/relay
/** * Copyright 2013-2015, 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. */ import 'babel/pol...
storybook/config.js
tidepool-org/viz
/* eslint-disable */ import React from 'react'; import { configure, addDecorator, addParameters } from '@storybook/react'; import { withNotes } from '@storybook/addon-notes'; import { withKnobs } from '@storybook/addon-knobs'; import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'; import DataUtil from '../src/...
src/server.js
davidmarkclements/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
src/lib/svg.js
LifeSourceUA/lifesource.ua
import React from 'react'; import PropTypes from 'prop-types'; export const STATE_NORMAL = 'normal'; export const STATE_HOVER = 'hover'; export const STATE_ACTIVE = 'active'; const svg = (Component, { width = 0, height = 0 } = {}) => { return class Svg extends Component { static propTypes = { ...
src/js/App.js
klapec/redditfetch
import React from 'react'; import Store from './stores/Store'; import Sidebar from './components/Sidebar'; import PostList from './components/PostList'; const App = React.createClass({ getInitialState() { return { currentCategory: '', categoryList: [] }; }, componentWillMount() { this.s...
code/workspaces/web-app/src/pages/AdminUsersPage.js
NERC-CEH/datalab
import React from 'react'; import Page from './Page'; import AdminUsersContainer from '../containers/adminListUsers/AdminUsersContainer'; const AdminUsersPage = () => ( <Page title="Users"> <AdminUsersContainer /> </Page> ); export default AdminUsersPage;
src/components/type.js
DictumMortuum/dictum-dev
'use strict'; import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import { Type } from '../redux/actions'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import PropTypes from 'prop-types'; class Types extends Re...
src/containers/app/settings/subject/equity.js
w280561543/financial
import React from 'react'; import Table from 'antd/lib/table'; import service from './service'; import tableLayout from './table_layout'; class Equity extends React.Component { state = { data: [] } getTabs() { let _this = this; service.getTabs(3).then((result) => { _this.setState({ d...
src/Input/InputSuffix.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import CloseThin from './../Icons/dist/components/CloseThin'; import ArrowDownThin from './../Icons/dist/components/ArrowDownThin'; import Search4 from './../Icons/dist/components/Search4'; import ThemedInputErrorSuffix from './ThemedInputErrorSuffix'; imp...
src/SetItem.js
a-tarr/Fleetr
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { observable } from 'mobx'; import { Sets } from './data/sets'; import { Button, Icon } from 'semantic-ui-react'; import './styles/SetItem.css'; @observer class SetItem extends Component { @observable count = 0; constructor(pr...
frontend/src/index.js
Farbod909/parking-app-server
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/components/projects/show/VideoPlayer.js
tehfailsafe/portfolio2015
import React from 'react'; import ReactDOM from 'react-dom'; import TweenMax from 'gsap'; const VideoPlayer = React.createClass({ propTypes: { src: React.PropTypes.string.isRequired, }, getInitialState(){ return{ playing: false } }, stop(){ this.refs.video.load(); this.setState({p...
src/svg-icons/device/data-usage.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
example/index.android.js
PlexChat/mobx-navigation
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import Root from './src/Root'; export default class example extends Component { render() { return ( <Root /> ); } } AppRegistry.registerComponent('example', () => example);
app/components/DataGrid/index.js
sulthan16/awesome-jr-frontend-sulthan
/** * * DataGrid * */ import React from 'react'; import ReactDataGrid from 'react-data-grid'; import sorty from 'sorty'; class DataGrid extends React.PureComponent { constructor(props) { super(props); this.getMinHeight = this.getMinHeight.bind(this); this.handleGridSort = this.handleGridSort.bind(this);...
src/client/controllers/search.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2015 Ohm Patel * * 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 distrib...
src/components/DndContainer.js
vire/resit
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import Dustbin from './Dustbin'; import Box from './Box'; import { appColor } from '../constants'; import { Paper } from 'material-ui'; @DragDropContext(HTML5Backend) expo...
client/modules/core/configs/notifications.js
pstuart/Open-Dash
import { Meteor } from 'meteor/meteor'; import React from 'react'; import sAlert from 'react-s-alert'; import swal from 'sweetalert'; /** * sAlerts defaults * https://github.com/juliancwirko/react-s-alert */ // wrapper for simpler calls export const Notify = { success(text, location) { sAlert.info(text, { ...
src/renderer/ast_renderers/javascript/expression-renderers.js
mizki9577/ast-editor
// @flow import type babylon from 'babylon' import React from 'react' import { NodeRenderer, NodeWrapper, FunctionRenderer, BracketRenderer, PunctuationRenderer, CommaSeparatedList } from './index.js' import { ClassRenderer } from './class-renderers.js' import * as reservedKeywords from './reserved-keywords.js' type U...
src/header.js
bsansouci/sixteen-fs
import React, { Component } from 'react'; import Util, {Hover, Image, VertRule} from './util'; export class HeaderBar extends Component { render() { var logo = ( <div style={{ position: 'relative', backgroundColor: '#f7f7f7', borderRadius: '3px', paddingLeft: '10px', ...
src/svg-icons/notification/sms-failed.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSmsFailed = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); NotificationSmsFail...
frontend/src/components/workouts/details/WorkoutDetailsTable.js
VladimirAnaniev/LoggIt
import React from 'react' import {Table} from 'react-materialize' export default function WorkoutDetailsTable ({exercises}) { return ( <Table> <thead> <tr> <th data-field='name'>Name</th> <th data-field='sets'>Sets</th> <th data-field='reps'>Reps</th> <th dat...
src/svg-icons/content/send.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSend = (props) => ( <SvgIcon {...props}> <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/> </SvgIcon> ); ContentSend = pure(ContentSend); ContentSend.displayName = 'ContentSend'; ContentSend.muiName = ...
app/js/components/player/Duration.js
arcsecw/zhaiyao
import React from 'react' export default function Duration ({ className, seconds }) { return ( <time dateTime={`P${Math.round(seconds)}S`} className={className}> {format(seconds)} </time> ) } function format (seconds) { const date = new Date(seconds * 1000) const hh = date.getUTCHours() const ...
src/pages/Editor/pages/MapEditor/pages/EditMap/containers/MapEditor/MapEditor.js
caspg/datamaps.co
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux' import CommonEditor from './containers/CommonEditor' import LinearScaleEditor from './containers/LinearScaleEditor' import EquidistantScaleEditor from './containers/EquidistantScaleEditor' MapEditor.propTypes = { ma...
src/App.js
WindProphet/emu8086
import React, { Component } from 'react'; import './App.css'; import { Register, Memory, Stack } from './Component'; import { Debug, Codelist, Screen } from './Control'; import {Title} from './Title'; import {debug as core} from './concatenated.js'; /*eslint no-restricted-globals: ["error", "event", "fdescribe"]*/ clas...
fields/types/numberarray/NumberArrayFilter.js
giovanniRodighiero/cms
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormSelect, Grid, } from '../../../admin/client/App/elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label:...
node_modules/react-native/local-cli/templates/HelloNavigation/components/KeyboardSpacer.js
vinicius-ov/Livefy
'use strict'; /* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Platform, View, Keyboard, LayoutAnimation, UIManager, } from 'react-native'; type Props = { offset?: number, } type State = { keyboardHeight: number } // Consider contributing this to the ...
client/src/app/components/ui/UiAccordion.js
zraees/sms-project
import React from 'react' import ReactDOM from 'react-dom' let UiAccordion = React.createClass({ componentDidMount: function(){ $(ReactDOM.findDOMNode(this)).accordion({ autoHeight : false, heightStyle : "content", collapsible : true, animate : 300, ...
src/io/signal.js
synestize/synestizer
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Subject } from 'rxjs/Subject'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/operator/scan'; import 'rxjs/add/operator/sampleTime'; import 'rxjs/add/operator/pluck'; import 'rxjs/add/operator/distinctUntilChanged'; import { saturate, des...
korntastic/tests/components/Nav.spec.js
JohnMcSpedon/hackzurich2017
import test from 'ava' import React from 'react' import Topbar from '../../src/components/Topbar' import { shallow } from 'enzyme' test('<Topbar /> component', t => { const wrapper = shallow(<Topbar />) t.is(wrapper.name(), 'View') t.is(wrapper.children().length, 1) t.is(wrapper.children().first().name(), 'Tex...
examples/auth-with-shared-root/components/Login.js
mattydoincode/react-router
import React from 'react' import { History } from 'react-router' import auth from '../utils/auth.js' const Login = React.createClass({ mixins: [ History ], getInitialState() { return { error: false } }, handleSubmit(event) { event.preventDefault() const email = this.refs.email.value ...
docs/app/Examples/elements/Icon/IconSet/IconExamplePaymentOptions.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Icon } from 'semantic-ui-react' const IconExamplePaymentOptions = () => ( <Grid columns='5' doubling> <Grid.Column> <Icon name='american express' /> <p>american express</p> </Grid.Column> <Grid.Column> <Icon name='credit card alternative' /> ...
src/modules/etfms-profile/components/Widget/SearchResults.js
devteamreims/4me.react
import React from 'react'; import Results from '../Results'; const SearchResults = ({ onClickOnFlight, }) => { return ( <Results onClickOnFlight={onClickOnFlight} /> ); }; export default SearchResults;
app/jsx/due_dates/DueDateAddRowButton.js
djbender/canvas-lms
/* * Copyright (C) 2015 - 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/client/app/panels/menu.panel.js
mapkiwiz/sectorisation
import React from 'react'; import {Link} from 'react-router'; import {MessagePanel} from './message.panel'; export function MenuPanel(props, context) { return ( <div className="col-md-4 col-md-offset-8 panel-container"> <h3>Outil de sectorisation</h3> <hr/> <MessagePanel></MessagePanel> ...
App/Containers/LaunchScreen.js
jpklein/TwistedMind
import React from 'react' import { ScrollView, Text, Image, View } from 'react-native' import { Images } from '../Themes' // Styles import styles from './Styles/LaunchScreenStyles' export default class LaunchScreen extends React.Component { render () { return ( <View style={styles.mainContainer}> ...
data/i18n/en.js
clearfixmeetup/www
import React from 'react'; import site from '../site.yml'; module.exports = { '_global_': { meta_description: 'The first advanced CSS meetup in Barcelona', topics_lets_talk: `Let's talk about`, topics_words: ['components', 'performance', 'architecture', 'standards', 'animation', 'SVG', 'mod...
src/docs/layout/ComponentMain/Editor/index.js
bfletcherbiggs/DocreactJS
import React from 'react'; import PropTypes from 'prop-types'; import CodeMirror from 'codemirror'; import style from './style.styl'; import 'codemirror/lib/codemirror.css'; import 'codemirror/mode/javascript/javascript.js'; import './one-dark.styl'; class Editor extends React.Component { static propTypes = { cl...
site/src/containers/Docs.js
lostpebble/pebblebed
import React from 'react' import { getRouteProps, Link } from 'react-static' const test = require('../test.md') export default getRouteProps(({ posts }) => ( <div> <div dangerouslySetInnerHTML={{ __html: test }} /> <h1>It's blog time.</h1> <br /> All Posts: <ul> {posts.map(post => ( ...
website/core/WebPlayer.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/js/app.js
pwalczyszyn/anchored
'use strict'; import React from 'react'; import MainView from './views/MainView.react'; import debug from 'debug'; // Enabling debug debug.enable('*'); let container = document.getElementById('container'); React.render(React.createElement(MainView), container);
src/app/components/AppError/index.js
mike182uk/xbl-friends
import React from 'react' import { Alert } from 'react-bootstrap' export default function AppError (props) { return ( <div> <Alert bsStyle='danger'>{props.message}</Alert> </div> ) }
renderer/components/Directory.js
JiniHendrix/reactide
import React from 'react'; import File from './File'; import CreateMenu from './CreateMenu'; import CreateForm from './CreateForm'; import RenameForm from './RenameForm'; import PropTypes from 'prop-types'; const Directory = ({ directory, dblClickHandler, clickHandler, selectedItem, openCreateMenu, openMen...
index.ios.js
futurice/PelaryHemmo
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; import { setConfiguration } from './src/utils/configuration'; class Hemmo extends Component...
app/javascript/mastodon/features/ui/components/tabs_bar.js
mosaxiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; export const links = [ <NavLink className='tabs-bar...
src/components/pages/section/EditView.js
yiweimatou/yishenghoutai
import React from 'react' import { Field,reduxForm } from 'redux-form' import TextField from '../../ReduxForm/TextField' import { RaisedButton,MenuItem,Tabs,Tab } from 'material-ui' import SelectField from '../../ReduxForm/SelectField' import SectionAreaSelect from '../../SectionAreaSelect' import EditLblView from '../...
src/containers/BrandList/ActionButtons.js
Dominic-Preap/react-admin
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { Button, DropdownToggle, DropdownMenu, DropdownItem, Modal, ModalHeader, ModalBody, ModalFooter, UncontrolledButtonDropdown } from 'reactstrap'; import { actions } from '....
examples/src/components/CustomOption.js
alanrsoares/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
components/Pagination.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classnames from 'classnames'; import Icon from './Icon'; import Select from './Select'; import SelectItem from './SelectItem'; import TextInput from './TextInput'; import { equals } from '../lib/array'; class Pagination extends Compon...
fixtures/nesting/src/modern/lazyLegacyRoot.js
acdlite/react
import React from 'react'; import {useContext, useMemo, useRef, useState, useLayoutEffect} from 'react'; import {__RouterContext} from 'react-router'; import {ReactReduxContext} from 'react-redux'; import ThemeContext from './shared/ThemeContext'; let rendererModule = { status: 'pending', promise: null, result:...
fields/types/text/TextColumn.js
mikaoelitiana/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes....
client/components/App.js
rjbailey/drawperator
import React from 'react' import { connect } from 'react-redux' import Screen from '../Screen' import JoinGameScreen from './JoinGameScreen' import WaitingForPlayersScreen from './WaitingForPlayersScreen' import ChooseInitialWordScreen from './ChooseInitialWordScreen' import DrawScreen from './DrawScreen' import GuessS...
src/svg-icons/image/exposure-neg-1.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg1 = (props) => ( <SvgIcon {...props}> <path d="M4 11v2h8v-2H4zm15 7h-2V7.38L14 8.4V6.7L18.7 5h.3v13z"/> </SvgIcon> ); ImageExposureNeg1 = pure(ImageExposureNeg1); ImageExposureNeg1.displayName...
examples/counter/index.js
Lacerda/redux
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.getElementById('root') );
src/main.js
Domiii/project-empire
// import our own main CSS import 'src/views/styles/styles.scss'; // import third-party CSS import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'font-awesome/css/font-awesome.min.css'; import 'react-select/dist/react-select.css'; import 'react-bootstrap-table-next/dist...
client/src/components/Details/IPDetails.js
demisto/alfred
import './IPDetails.less'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import { compareDate, dateToString, keysToString } from '../../utils/utils'; import Table from '../UIComponents/Table'; import { ReputationHeader } from './ReputationHeader...
src/views/comment.js
jessy1092/react-semantify
import React from 'react'; import filter from '../filter'; import Div from '../commons/div'; const defaultClassName = 'comment'; const componentName = 'Comment'; const Comment = new filter(Div) .classGenerator(defaultClassName) .getComposeComponent(componentName); export default Comment;
src/packages/@ncigdc/modern_components/CaseSymbol/CaseSymbol.relay.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { graphql } from 'react-relay'; import { makeFilter } from '@ncigdc/utils/filters'; import { compose, withPropsOnChange, branch, renderComponent } from 'recompose'; import { BaseQuery } from '@ncigdc/modern_components/Query'; export default (Component: ReactClass<*>) => co...
core/src/plugins/gui.ajax/res/js/ui/Workspaces/detailpanes/InfoPanel.js
huzergackl/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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, o...
components/animals/husickaDvoubarva.child.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/husickaDvoubarva/0...
app/javascript/src/components/conversations/Conversation.js
michelson/chaskiq
import React from 'react' import { withRouter, Link } from 'react-router-dom' import { connect } from 'react-redux' import { ThemeProvider } from 'emotion-theming' import Tooltip from 'rc-tooltip' import graphql from '../../graphql/client' import { last } from 'lodash' import Moment from 'react-moment' import { toCam...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
luwei2012/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
modules/Navigation.js
dyzhu12/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that modify the URL. * * Example: * * import { Navigation } from 'react-router'; * * var MyLink = React.createClass({ * mixins: [ Navigation ], * handleClick(event) { * event.preventDefault(); * ...
app/page/playerListItem.js
yksdjx/react-music
import React from 'react' import Pubsub from 'pubsub-js' let PlayerListItem = React.createClass({ playMusic(musicItem){ Pubsub.publish('PLAY_MUSIC',musicItem) }, deleteMusic(musicItem,e){ e.stopPropagation(); Pubsub.publish('DELETE_MUSIC',musicItem) }, render() { let...
src/components/popup/NewSupplierAdmin.js
belaczek/BeerCheese-client
import React from 'react'; import { Modal, ModalBody, Container, Row, Form, FormGroup, Label, Input, Button, Col, InputGroupAddon, InputGroup, } from 'reactstrap'; import api from '../../api'; export default class NewSupplierAdmin extends React.Component { state = {}; onSubmit = (event) => { event.preve...
docs/src/app/components/pages/components/Divider/ExampleMenu.js
lawrence-yu/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {Menu, MenuItem} from 'material-ui/Menu'; const style = { // Without this, the menu overflows the CodeExample container. float: 'left', }; const DividerExampleMenu = () => ( <Menu desktop={true} style={style}> <MenuItem primaryText...
src/components/app.js
tea-kay/FCC-Leaderboard-React
import React, { Component } from 'react'; import axios from 'axios'; import MDSpinner from 'react-md-spinner'; import CamperList from './camper_list.js'; export default class App extends Component { constructor(props) { super(props); this.state = { recentCampers: [], allTimeCampers: [], cu...
app/javascript/mastodon/components/button.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
examples/02 Drag Around/Naive/index.js
numso/react-dnd
import React, { Component } from 'react'; import Container from './Container'; import { Link } from 'react-router'; export default class DragAroundNaive extends Component { constructor(props) { super(props); this.handleHideSourceClick = this.handleHideSourceClick.bind(this); this.state = { hideSour...
src/index.js
Alex-Just/gymlog
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import { AppContainer } from 'react-hot-loader'; const STORE = configureStor...
src/routes/Login/components/LoginPage.js
avidreder/monmach-client
import React from 'react' import RaisedButton from 'material-ui/FlatButton' import CustomGenres from 'components/CustomGenres' import QueueContainer from 'components/Queue' import TrackProfile from 'components/TrackProfile' import withEmptyState from 'components/EmptyState' import CurrentTrack from 'components/CurrentT...
client/modules/App/__tests__/Components/Footer.spec.js
Alex-Keyes/socialmediabot
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
demo/static/js/node_modules/react-router/modules/IndexRoute.js
jonashagstedt/django-jsx
import React from 'react'; import invariant from 'invariant'; import warning from 'warning'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './PropTypes'; var { bool, func } = React.PropTypes; /** * An <IndexRoute> is used to specify its parent's <Route index...
src/components/Loans.js
tallessa/tallessa-frontend
import React from 'react'; const Loans = () => ( <div>Loans</div> ); export default Loans;
src/svg-icons/action/swap-vert.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVert = (props) => ( <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> </SvgIcon> ); ActionSwapVert = pure(ActionSwapVert); ActionSwapVert.displa...
src/appReact/appBase.js
devmessias/brasillivre
import React from 'react'; import ReactDOM from 'react-dom'; import {Action} from './actions/Action.js'; import Map from './components/Map/main.js'; class Base extends React.Component{ render(){ return ( <Map/> ); } } ReactDOM.render((<Base/>) , document.getElementById('reactDiv'));
analysis/demonhunterhavoc/src/modules/Abilities.js
yajinni/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import CoreAbilities from 'parser/core/modules/Abilities'; import COVENANTS from 'game/shadowlands/COVENANTS'; class Abilities extends CoreAbilities { spellbook() { const combatant = this.selectedCombatant; ...
forcast.android.js
nuttyboysoftware/ReactNativeDemo
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableHighlight, TouchableNativeFeedback, Dimensions, ListView, ToastAndroid } from 'react-native'; var width = Dimensions.get('window').width; var height = Dimensions.get('window').heig...
front_end/src/components/App/Navigation/Timeline.js
mozilla/splice
import React, { Component } from 'react'; import { Link } from 'react-router'; window.$ = require('jquery'); window.jQuery = $; export default class Timeline extends Component { getCancelLink(){ let output; if(this.props.location.pathname.match(/\/accounts\/create/) || this.props.location.pathname.ma...
blueocean-material-icons/src/js/components/svg-icons/places/smoking-rooms.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const PlacesSmokingRooms = (props) => ( <SvgIcon {...props}> <path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16.5 7.2v1.5c2.24 0 4 1.83 4 4.07V15...
src/ViewStack.js
bartlomn/react-viewstack
require( './view-stack.scss' ); import React, { Component } from 'react'; import classnames from 'classnames'; export default class ViewStack extends Component { /** * Default component css classses * @type {String} */ static defaultClassNames = 'view-stack'; /** * Default animation css classses ...
internals/templates/app.js
pashakbit/react-gallery
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultProps.js
claudiopro/flow
// @flow import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props> { static defaultProps: DefaultProps = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<DefaultProps, ...