path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
test/pluginapi.unit.js
rivine/rivine-UI
/* eslint-disable no-unused-expressions */ /* eslint-disable no-invalid-this */ import { expect } from 'chai' import sinon from 'sinon' import { shallow } from 'enzyme' import proxyquire from 'proxyquire' import React from 'react' import DisabledPlugin from '../js/rendererjs/disabledplugin.js' let running = true const...
examples/src/components/CustomComponents.js
khankuan/react-select
import React from 'react'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isDisabled: React.Pro...
src/ui/quark/CenteredContent/index.js
jkubos/tickator-ide
import React from 'react' import classNames from 'classnames' import styles from './style.less' export class CenteredContent extends React.Component { render() { return <div className={styles.main} onClick={e=>this._onClick(e)}> {this.props.children} </div> } _onClick(e) { if (this.props.onCl...
pages/games/index.js
turntwogg/final-round
import React from 'react'; import Page from '../../components/Page'; import PageHeader from '../../components/PageHeader'; import PageContent from '../../components/PageContent'; import GameListing from '../../components/GameListing'; import Grid from '../../components/CSSGrid'; import Loading from '../../components/L...
components/vrframescene.js
Yutenko/stories360
{/*import 'aframe'*/} {/*import 'aframe-bmfont-text-component'*/} import 'aframe-look-at-component' import 'whatwg-fetch' import '../node_modules/artyom.js/build/artyom.min.js' import Promise from 'promise-polyfill' import {toJS} from 'mobx' import React from 'react' import ReactDOM from 'react-dom' import {observer...
src/containers/shared-assets/class-selection-wrapper/separator/separator.js
vFujin/HearthLounge
import React from 'react'; import './separator-styles.css'; const Separator = () => { return ( <div className="separator"> <p>or</p> </div> ) }; export default Separator;
forms-test/src/components/login/PasswordField.js
cnewfeldt/react-lab
import React from 'react'; class PasswordField extends React.Component { passwordOnChange = e => { // Calculate the word count for the password and store it in the parent // Component state value var currentText = e.target.value; var characterCount = currentText.length; this.props.onCountPassword...
app/containers/Root.js
kaunio/gloso
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <Router history=...
src/index.js
ChavdarSlavov/training-build-base
import React from 'react'; import {render} from 'react-dom'; import App from './components/app'; render(<App />, document.getElementById('app'));
client/src/data/sponsors.js
rantav/reversim-summit-2017
import outbrainLogo from '../images/sponsors/outbrain.png'; import wixLogo from '../images/sponsors/wix.png'; import datoramaLogo from '../images/sponsors/datorama.png'; import gigyaLogo from '../images/sponsors/gigya.png'; import kenshooLogo from '../images/sponsors/kenshoo.png'; import appsFlyerLogo from '../images/s...
packages/core/src/icons/components/Cash.js
iCHEF/gypcrete
import React from 'react'; export default function SvgCash(props) { return ( <svg width="1em" height="1em" viewBox="0 0 1000 1000" xmlns="http://www.w3.org/2000/svg" {...props} > <path fillRule="evenodd" clipRule="evenodd" d="M500 812.5c-172.6 0-312...
src/routes/contact/index.js
kumarrus/MuffinMan
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
app/jsx/developer_keys/ManualConfigurationForm/Placement.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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...
app/components/HoveringAxis.js
experimentalDataAesthetics/play-splom
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import connect from '../utils/reduxers'; import { getMuiTheme, getFeatureSideLengthScale, getLayout, getNumFeatures } from '../selectors/index'; import Axis from './Axis'; /** * Shows the Axis on top of the plot that you ...
packages/react-widgets/src/Autocomplete.js
haneev/react-widgets
import cn from 'classnames' import * as PropTypes from 'prop-types' import React from 'react' import { findDOMNode } from 'react-dom' import uncontrollable from 'uncontrollable' import List from './List' import Popup from './Popup' import Input from './Input' import Select from './Select' import Widget from './Widget'...
test/TabbedAreaSpec.js
tonylinyy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import TabbedArea from '../src/TabbedArea'; import NavItem from '../src/NavItem'; import TabPane from '../src/TabPane'; import ValidComponentChildren from '../src/utils/ValidComponentChildren'; import { render } from './helpers'; describ...
node_modules/rebass/src/Container.js
HasanSa/hackathon
import React from 'react' import Base from './Base' import config from './config' /** * Div with max-width and margin auto for centering content */ const Container = (props, { rebass }) => { const { scale } = { ...config, ...rebass } return ( <Base {...props} className='Container' baseSt...
client/lib/mixins/dirty-linked-state/test/test.js
Kimsangcheon/wp-calypso
require( 'lib/react-test-env-setup' )(); /** * External dependencies */ import { expect } from 'chai'; import ReactDom from 'react-dom'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; /** * Internal dependencies */ import dirtyLinkedState from 'lib/mixins/dirty-linked-state'; describ...
src/Header/index.js
reinaldoferreira/macmillan-gamification
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import './Header.css'; class Header extends Component { render() { return ( <header> <h1><Link to="/">Beavers Gamification!!</Link></h1> <span>Login</span> </header> ); } } export default Header;...
examples/BasicExample/index.ios.js
thegamenicorus/react-native-phone-input
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import App from './app' AppRegistry.registerComponent('BasicExample', () => App);
client/src/Assistant/GenericInputs/ConstructionDateInput.js
ciex/mietlimbo
// @flow import React from 'react' import autoBind from 'react-autobind' import { injectIntl, defineMessages } from 'react-intl' import { Card, CardTitle, CardText } from 'material-ui/Card' import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton' import { constructionDateOptionsTranslations } from '../...
test/CarouselSpec.js
BespokeInsights/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Carousel from '../src/Carousel'; import CarouselItem from '../src/CarouselItem'; describe('Carousel', function () { it('Should show the correct item', function () { let instance = ReactTestUtils.renderIntoDocument( <C...
src/components/MainIngredientRecipeType.js
ataylorme/hazels-heritage-frontend
import React from 'react'; import {Row} from 'react-bootstrap'; import MainIngredientLink from './MainIngredientLink'; import RecipeTypeLink from './RecipeTypeLink'; class MainIngredientRecipeType extends React.Component { render() { let {recipe} = this.props; if (false === recipe.main_ingredien...
node_modules/react-router/es/Redirect.js
oiricaud/horizon-education
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
app/javascript/mastodon/features/compose/components/upload.js
Ryanaka/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } fr...
src/browser/routes/card.js
ap-o/intro
import React from 'react'; import Chunk from 'Browser/components/split_chunk'; const loadChunk = () => import(/* webpackChunkName: "card" */ 'Browser/containers/card'); const CardRoute = (props) => <Chunk load={loadChunk} {...props} />; // export export default CardRoute;
components/Modal.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import Icon from './Icon'; import Button from './Button'; class Modal extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, passiveModal: PropTypes....
lib/runtime/components/parts/Value.js
jirokun/survey-designer-js
import React, { Component } from 'react'; import { connect } from 'react-redux'; /** 詳細プレビューで使用する値の表示のためのコンポーネント */ class Value extends Component { render() { const { survey, value, className } = this.props; const replacer = survey.getReplacer(); if (replacer.containsReferenceIdIn(value)) { return ...
examples/universal/server/server.js
pombredanne/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import webpackConfig from '../webpack....
app/js/components/ChannelTop/ChannelTopText/index.js
fullPistol/React-demo
import React, { Component } from 'react'; import { Flex, WhiteSpace } from 'antd-mobile'; import styles from './index.less' class ChannelTopText extends Component { render() { const { title } = this.props; return ( <div className={styles.toptext + ' clearfix'}> { title.map((item, index) => ...
test/run-length-encoding-textarea.spec.js
jharris119/GameOfLife-javascript
/* eslint-env node, mocha */ import React from 'react'; import { assert, expect } from 'chai'; import { mount, shallow } from 'enzyme'; var fs = require('fs'); import RunLengthEncodingTextarea from '../app/run-length-encoding-textarea.jsx'; describe('<RunLengthEncodingTextarea>', function() { describe('#render',...
fields/components/ItemsTableCell.js
andrewlinfoot/keystone
import React from 'react'; import classnames from 'classnames'; function ItemsTableCell ({ className, ...props }) { props.className = classnames('ItemList__col', className); return <td {...props} />; }; module.exports = ItemsTableCell;
src/Alert.js
mengmenglv/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
src/js/components/ui/Button/Button.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './Button.scss'; export default class Button extends Component { static propTypes = { color : PropTypes.string, borderColor : PropTypes.string, backgroundColor : PropTypes.string,...
src/containers/Map/ZerkeMap.js
zerkedev/zerke-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { injectIntl } from 'react-intl'; import isGranted from '../../utils/auth'; import isOnline from '../../utils/online'; import {withRou...
example/components/City/components/Refresh/index.js
Wildhoney/ReactShadow
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'next/link'; import root from 'react-shadow/material-ui'; import * as utils from '../../../../utils'; import * as e from './styles'; export default function Refresh({ name }) { return ( <root.div> <Link href="/[name...
tp-3/sebareverso/src/components/pages/alumnos/AlumnosPage.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import PropTypes from 'prop-types'; import AlumnoListado from './components/listado/AlumnoListado'; import AlumnoForm from './components/form/AlumnoForm'; class AlumnosPage extends React.Component { constructor(){ super(); this.stat...
fields/types/location/LocationField.js
asifiqbal84/keystone
import _ from 'underscore'; import React from 'react'; import Field from '../Field'; import { Button, Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental'; /** * TODO: * - Remove dependency on underscore * - Custom path support */ module.exports = Field.create({ displayName: 'LocationField', g...
src/components/Hello.js
ThibWeb/unidentified
import React from 'react'; export default React.createClass({ displayName: 'Hello', render() { return ( <div> Hello! </div> ); }, });
test/ListGroupItemSpec.js
PeterDaveHello/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ListGroupItem from '../src/ListGroupItem'; describe('ListGroupItem', function () { it('Should output a "span" with the class "list-group-item"', function () { let instance = ReactTestUtils.renderIntoDocument( <ListGro...
addons/themes/minimaxing/layouts/Single.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; import scrollToElement from 'scroll-to-element'; let Home = React.createClass ({ componentDidMount(){ require('../assets/css/main....
public/js/cat_source/es6/components/projects/JobContainer.js
riccio82/MateCat
import JobMenu from './JobMenu' import OutsourceContainer from '../outsource/OutsourceContainer' import CommonUtils from '../../utils/commonUtils' import ManageActions from '../../actions/ManageActions' import ModalsActions from '../../actions/ModalsActions' import ManageConstants from '../../constants/ManageConstants'...
hw5/src/components/profile/avatar.js
yusong-shen/comp531-web-development
/** * Created by yusong on 10/20/16. */ import React from 'react' export const Avatar = ({avatar}) => ( // This is the Profile view. <div> <div className="avatar"> <img src={avatar} width={150} height={150} alt="image missing" /> </div> </div> ) export default Avatar
docs/app/Examples/elements/Segment/Variations/SegmentExampleBasic.js
ben174/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleBasic = () => ( <Segment basic> Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu li...
src/routes.js
ansonpellissier/gordon-shuffle-react
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import ShuffleList from './containers/ShuffleList'; import ShuffleNew from './containers/ShuffleNew'; import ShuffleDraw from './containers/ShuffleDraw'; export default ( <Route path="/" component={App...
src/shared/zarizeni/umistovani/__tests__/Umistovani.spec.js
hhjcz/too-simple-react-skeleton
/** Created by hhj on 2/16/16. */ /* eslint-disable no-unused-expressions, no-unused-vars, import/no-extraneous-dependencies */ import { expect } from 'chai' import React from 'react' import sd from 'skin-deep' import { List } from 'immutable' import Umistovani from '../Umistovani' describe('umistovani Umistovani com...
src/svg-icons/communication/invert-colors-off.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5...
packages/material-ui-icons/src/DeviceHub.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M17 16l-4-4V8.82C14.16 8.4 15 7.3 15 6c0-1.66-1.34-3-3-3S9 4.34 9 6c0 1.3.84 2.4 2 2.82V12l-4 4H3v5h5v-3.05l4-4.2 4 4.2V21h5v-5h-4z" /></g> , 'DeviceHub');
src/App.js
smashercosmo/react-widgets-immutable-demo
import React, { Component } from 'react'; import Immutable from 'immutable'; import Combobox from './Combobox.immutable'; const Item = Immutable.Record({value: '', group: ''}); const data = Immutable.List([ new Item({value: 'One', group: '< 3'}), new Item({value: 'Two', group: '< 3'}), new Item({value: 'Three', ...
client/common/lib/SignTextureCanvas/index.js
henryyp/lab
import React from 'react' import ReactDOM from 'react-dom' import BaseCanvas from 'lib/BaseCanvas' import CanvasCacher from 'lib/CanvasCacher' import * as THREE from 'three' export default class SignTextureCanvas extends React.Component { constructor() { super() } componentDidMount() { this.canvasD...
packages/react-ui-components/src/Headline/index.story.js
neos/neos-ui
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withKnobs, select} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import Headline from '.'; storiesOf('Headline', module) .addDecorator(withKnobs) .addWithInfo( 'default', () => { ...
src/js/pages/Layout.js
barumel/ultritium-radio-player
import React from 'react' import Navigation from '../components/navigation/Navigation.js' import { connect } from 'react-redux'; import UserActions from '../data/actions/user/User'; @connect((store) => { return store; }) class Layout extends React.Component { constructor() { super(); } componentWillMount(...
src/Badge.js
JimiHFord/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
src/components/Options/Diceware.js
nickmccurdy/password-entropy
import { faQuestionCircle } from '@fortawesome/fontawesome-free-solid' import Icon from '@fortawesome/react-fontawesome' import React from 'react' import { FormGroup, FormText, Label } from 'reactstrap' import { dicewareWords } from '../PossiblePasswordsContainer' export default function Diceware() { return ( <...
frontend/src/Artist/Index/Table/ArtistStatusCell.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Icon from 'Components/Icon'; import MonitorToggleButton from 'Components/MonitorToggleButton'; import VirtualTableRowCell from 'Components/Table/Cells/TableRowCell'; import { icons } from 'Helpers/Props'; import styles from './ArtistStatusCell.css'; ...
src/svg-icons/device/signal-wifi-4-bar.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi4Bar = (props) => ( <SvgIcon {...props}> <path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi4Bar = pure(Devic...
packages/component/src/Attachment/VimeoContent.js
billba/botchat
import PropTypes from 'prop-types'; import React from 'react'; import useStyleSet from '../hooks/useStyleSet'; const VimeoContent = ({ alt, autoPlay, embedID, loop }) => { const [{ vimeoContent: vimeoContentStyleSet }] = useStyleSet(); const search = new URLSearchParams({ autoplay: autoPlay ? 1 : 0, badg...
node_modules/expect-jsx/index-test.js
PanJ/SimplerCityGlide
/* eslint-env mocha */ /* eslint react/prop-types:0 */ import React from 'react'; import expect from 'expect'; import expectJSX from './index'; expect.extend(expectJSX); class TestComponent extends React.Component { render() { return <div>Hi! {this.props.name}</div>; } } describe('expect(ReactElement).toEqu...
src/CarouselContext.js
reactstrap/reactstrap
import React from 'react'; /** * CarouselContext * { * direction: PropTypes.oneOf(['start', 'end']).isRequired, * } */ export const CarouselContext = React.createContext({});
app/components/UGSplash/index.js
perry-ugroop/ugroop-react-dup2
import React from 'react'; // import { Carousel } from 'react-bootstrap'; // import styles from './styles.css'; // import imgWorld from './assets/ugroop-around-the-world.png'; // import imgFamily from './assets/ugroop-family-school.png'; // import imgGroup from './assets/ugroop-group-icon.png'; // import imgStudents ...
client/components/Slate/schema.js
XuHaoJun/tiamat
import React from 'react'; import { Link as ReactRouterLink } from 'react-router-dom'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'; import TableRow from '@mater...
modules/__tests__/Redirect-test.js
mattydoincode/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import createHistory from 'history/lib/createMemoryHistory' import Redirect from '../Redirect' import Router from '../Router' import Route from '../Route' describe('A <Redirect>', function () { let node ...
app/javascript/mastodon/features/niconico/components/account_button.js
masarakki/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; class AccountButton extends ImmutablePureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; render() { const { account...
src/svg-icons/image/exposure-neg-1.js
pradel/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...
Realization/frontend/czechidm-core/src/components/basic/TextDivider/TextDivider.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; // import { makeStyles } from '@material-ui/core/styles'; // import AbstractComponent from '../AbstractComponent/AbstractComponent'; /** * Theme decorator. * * @author Radek Tomiška * @since 12.0.0 */ const useStyl...
src/components/Text/index.js
michaltakac/mathworldvr
import React from 'react' import PropTypes from 'prop-types' import { Entity } from 'aframe-react' const propTypes = { children: PropTypes.any, color: PropTypes.string, value: PropTypes.string.isRequired, width: PropTypes.number, lineHeight: PropTypes.number, letterSpacing: PropTypes.number, align: PropT...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import SettingText from '../../../components/setting_text'; import SettingToggle from '../../notifications/components/sett...
app/components/CloseButton.js
Byte-Code/lm-digital-store-private-test
import React from 'react'; import PropTypes from 'prop-types'; import BlockIcon from 'material-ui/svg-icons/navigation/close'; const style = (fill, top, right, backgroundColor) => ({ fill, backgroundColor, top, right, width: 80, height: 80, position: 'absolute', cursor: 'pointer' }); const CloseButto...
src/components/modules/AnimeMainInfo.js
migueliriano/react-anime-project
import React from 'react'; import PropTypes from 'prop-types'; import { MainInfoContainer, PosterContainer, PosterImage, AnimeDetails, Row, TitleDetail, Detail, } from 'style/animeMainInfo'; const AnimeMainInfo = props => ( <MainInfoContainer> <PosterContainer> <PosterImage src={props.poster...
packages/ringcentral-widgets-docs/src/app/pages/Components/TextInput/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
app/components/messages/messages.js
tidepool-org/blip
/* == BSD2 LICENSE == Copyright (c) 2014, Tidepool Project This program is free software; you can redistribute it and/or modify it under the terms of the associated License, which is identical to the BSD 2-Clause License as published by the Open Source Initiative at opensource.org. This program is distributed in the ...
app/javascript/mastodon/components/collapsable.js
kibousoft/mastodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; const Collapsable = ({ fullHeight, isVisible, children }) => ( <Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight :...
src/containers/book-detail.js
ltbicudo/udemy-react-with-redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; class BookDetail extends Component { render() { if (!this.props.book) { return <div>Select a book to get started.</div>; } return ( <div> <h3>Details for:</h3> <div>Title: {this.props.book.title...
index.android.js
feedreaderco/app
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class FeedReader extends Component { render() { return ( <View style={styles.containe...
src/js/shared/components/lead-break.js
akornatskyy/sample-blog-react
import React from 'react'; import PropTypes from 'prop-types'; const LeadBreak = ({text}) => { if (!text) { return null; } const p = text.split('\\n\\n'); const r = []; r.push(<p key="0" className="lead">{p[0]}</p>); for (let i = 1; i < p.length; i++) { r.push(<p key={i}>{p[i...
client/modules/List/pages/ListFeedsPage.js
jeojoe/emplist
import React, { Component } from 'react'; import RequestListButton from '../components/RequestListButton'; import HeaderDescription from '../components/HeaderDescription'; import ListFeedsWrapper from '../components/ListFeedsWrapper'; import { LoaderWithText } from '../../App/components/Loader'; import callApi from '....
fields/types/datearray/DateArrayField.js
riyadhalnur/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ displayName: 'DateArrayField', ...
packages/material-ui-icons/src/LocationOn.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocationOn = props => <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2....
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxlineargauge.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxLinearGauge = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes()...
js/Landing.js
jbarbettini/intro-to-react-workshop
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { setSearchTerm } from './actionsCreators' const { string, func, object } = React.PropTypes const Landing = React.createClass({ contextType: { router: object }, propTypes: { searchTerm: string, ...
src/components/forms/form-mixin.js
adrienhobbs/redux-glow
import React from 'react'; import request from 'superagent'; import isNull from 'lodash/isNull'; const FormMixin = { getInitialState () { return { canSubmit: false, msg: null, buttonMsg: null }; }, onSubmit (data, resetForm) { this.resetForm = resetForm; request.post(this.postUr...
test/components/ExportSlidesComponentTest.js
C3-TKO/junkan
/*eslint-env node, mocha */ /*global expect */ /*eslint no-console: 0*/ 'use strict'; import React from 'react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import { mountWithIntl, shallowWithIntl } from 'helpers/intl-enzyme-test-helper.js'; import ExportSlidesComponent from 'components//ExportSlidesCom...
fixtures/attribute-behavior/src/index.js
chicoxyzzy/react
import './index.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/components/App.js
yoo2001818/ChatBBS
import './style/App.scss'; import React, { Component } from 'react'; import Header from './Header.js'; import ConversationList from './ConversationList.js'; export default class App extends Component { render() { return ( <div id='app'> <Header /> <ConversationList /> </div> ); ...
lib/components/DailyForecastCard.js
jennPeavler/weatherly
import React from 'react' const DailyForecastCard = ( {weatherObj} ) => { let keys = Object.keys(weatherObj.daily) return ( <section id = 'daily-forecast'> {keys.map( (day, index) => { return( <div className = 'daily-forecast-card' key= {index}> <h3 className = 'day'>{weath...
__tests__/components/RedBox.js
weaintplastic/react-sketchapp
import React from 'react'; import invariant from 'invariant'; import renderer from 'react-test-renderer'; import RedBox from '../../src/components/RedBox'; describe('<RedBox />', () => { it('renders simple errors', () => { try { invariant(false, 'THIS IS AN ERROR'); } catch (e) { const tree = ren...
main.js
satyamjha22/loginapp_react
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './src/container/app'; import store from './src/redux/store'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('app') );
src/TextField/TextFieldUnderline.js
kittyjumbalaya/material-components-web
import React from 'react'; import PropTypes from 'prop-types'; import transitions from '../styles/transitions'; const propTypes = { /** * True if the parent `TextField` is disabled. */ disabled: PropTypes.bool, /** * Override the inline-styles of the underline when parent `TextField` is disabled. */ ...
app/javascript/mastodon/features/favourited_statuses/index.js
tri-star/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
frontend/src/components/Header.js
technoboom/it-academy
import React from 'react'; import { Button, Dropdown, Menu } from 'semantic-ui-react'; export default class Header extends React.Component { constructor(props) { super(props); this.handleItemClick = this.handleItemClick.bind(this); this.state = { activeItem: 'home' }; } handleIt...
src/svg-icons/action/redeem.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRedeem = (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.1...
app/javascript/mastodon/main.js
honpya/taketodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
react/features/conference/components/web/ConferenceInfo.js
gpolitis/jitsi-meet
// @flow /* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet'; import { connect } from '../../../base/redux'; import { E2EELabel } from '../../../e2ee'; import { LocalRecordingLabel } from '../../../local-recording';...
src/index.js
caelwinner/invoicer-ui
import { AppContainer } from 'react-hot-loader'; import { render } from 'react-dom'; import React from 'react'; import App from './js/App'; render( <AppContainer><App /></AppContainer>, document.getElementById('root') ); if (module && module.hot) { module.hot.accept('./js/App', () => { const NewApp = requir...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { Pure...
src/svg-icons/action/three-d-rotation.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThreeDRotation = (props) => ( <SvgIcon {...props}> <path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-....
src/store/index.js
nirmalantony/team-9-client
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; // react-md utilizes Google's material icons import WebFont from 'webfontloader'; WebFont.load({ google: { families: ['Hind:300, 700', 'Material Icons'] } }); impo...
flask_react/client/test/components/Protect.spec.js
ebottabi/mmakinde-ebot
/* global expect window*/ import React from 'react'; import { shallow } from 'enzyme'; import Protect from '../../components/Protect'; import mockLocalStorage from '../utils/mockLocalStorage'; window.localStorage = mockLocalStorage; describe('Protect component', () => { it('renders as a footer', () => { const ...
node_modules/re-base/examples/github-notetaker/app/components/Notes/NotesList.js
react-beer/the-beer-store-jsday-facisa
import React from 'react'; class NotesList extends React.Component{ render(){ var notes = this.props.notes.map((note, index) => { return <li className="list-group-item" key={index}> {note} </li> }); return ( <ul className="list-group"> {notes} </ul> ) } }; export default ...
test/SiteMain.spec.js
dramaking/planner
import React from 'react'; import { mount, shallow } from 'enzyme'; import {expect} from 'chai'; import SiteMain from '../lib/SiteMain'; import WorkoutBoard from '../lib/WorkoutBoard'; import WorkoutHeader from '../lib/WorkoutHeader'; describe('<SiteMain/>', function () { it('contains an <WorkoutHeader/> component'...