path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
packages/frontend/tests/components/common/IconButton/index.spec.js
ks888/LambStatus
import React from 'react' import IconButton from 'components/common/IconButton' import { shallow } from 'enzyme' describe('IconButton', () => { const generateProps = () => { return { onClick: sinon.spy(), iconName: 'file_upload', name: 'Upload' } } it('should render the button.', () =>...
examples/js/column-format/react-column-format-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0*/ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; function addProducts(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { const id = startId + i; jobs.push...
test/development/basic-basepath/next-dynamic/components/welcome.js
JeromeFitz/next.js
import React from 'react' export default class Welcome extends React.Component { state = { name: null } componentDidMount() { const { name } = this.props this.setState({ name }) } render() { const { name } = this.state if (!name) return null return <p>Welcome, {name}</p> } }
app/javascript/mastodon/features/compose/components/search.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; const messages = defineMessages({...
src/components/dashboard/feed/comment.js
cosminseceleanu/react-sb-admin-bootstrap4
import React from 'react'; import { Media } from 'reactstrap'; import CommentActions from './comment-actions'; const Comment = ({isReply, user, src, text, children}) => { return ( <Media className={isReply ? "mt-3" : ""}> <Media object src={src} className={isReply ? "d-flex pr-3" : "d-flex...
src/interface/DamageTakenTable.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SpellLink from 'interface/SpellLink'; import Icon from 'interface/Icon'; import { formatNumber } from 'common/format'; import Tooltip, { TooltipElement } from 'interface/Tooltip'; export const MITIGATED_NONE = 0; export const MITIGATED_MAGICAL = 1;...
examples/polling/src/components/RemoveLoadingScreen.js
lore/lore
/** * This component removes the loading screen. It does so by adding a class to hide it, * and then removes it from the DOM by setting the display property to 'none'. **/ import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; export default createReactCla...
web/src/scripts/middleware/editor/AutocompleteMiddleware.js
alexzherdev/deco-ide
/** * Copyright (C) 2015 Deco Software Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be...
src/parser/shaman/shared/talents/SpiritWolf.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatThousands, formatNumber } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; ...
src/mention/test-pages/promise.js
Kindling/react-tinymce-mention
import React from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import Editor from './components/Editor'; import Mention from '../Mention'; ReactDOM.render( <div> <Editor /> <Mention showDebugger={true} delimiter={'@'} dataSource={axios.get('/public/api/complex.json'...
core/router.js
gabergg/react-scene-graph
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/components/common/svg-icons/communication/portable-wifi-off.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPortableWifiOff = (props) => ( <SvgIcon {...props}> <path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02....
front_end/src/pages/Tiles/TilesPage.js
oyiptong/splice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { pageVisit } from 'actions/App/AppActions'; class TilesPage extends Component { componentDidMount() { const { dispatch } = this.props; pageVisit('Tiles', this); } render() { return ( <div> <h1>Til...
client/components/MainBackup.js
Frostimage/Frostimage
import React from 'react'; import THREE from 'three'; import Detector from '../public/dist/Detector'; class MainBU extends React.Component { constructor( props ) { super( props ); this.state = { data: [] } } render() { // Declare Varibles let scene, camera, renderer, bulblight, conta...
tests/Formsy-spec.js
meraki/mki-formsy-react
import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-dom/test-utils'; import Formsy from './..'; import TestInput from './utils/TestInput'; import TestInputHoc from './utils/TestInputHoc'; import immediate from './utils/immediate'; import sinon from 'sinon'; export default { 'S...
ui/app/ui/__specs__/user-menu.spec.js
antono/ban-dong-dong
import React from 'react'; import { shallow } from 'enzyme'; import toJSON from 'enzyme-to-json'; import UserMenu from '../user-menu'; function setup() { const props = { handleSignOut: jest.fn() }; const component = shallow(<UserMenu.WrappedComponent {...props} />); return { props, component }; } descri...
docs-ui/components/text.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import Text from 'app/components/text'; export default { title: 'Core/Style/Text', }; export const Default = withInfo('On-demand styling for native dom elements')(() => ( <div style={{padding: 20, backgroundColor: '#ffffff'}}> <Text> ...
react-weather-forecast/test/test_helper.js
majalcmaj/ReactJSCourse
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
examples/auth-with-shared-root/components/About.js
taion/rrtr
import React from 'react' const About = React.createClass({ render() { return <h1>About</h1> } }) export default About
test/js/AR/release_test/ARPlaneSelectorTest.js
viromedia/viro
/** * Copyright (c) 2017-present, Viro Media, 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 Re...
examples/src/app.js
oriweingart/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import Select from 'react-select'; import CustomRenderField from './components/CustomRenderField'; import MultiSelectField from './components/MultiSelectField'; import RemoteSelectField from './components/RemoteSelectField'; import SelectedValuesField from '...
docs/src/app/pages/components/DatePicker/ExampleDatePickerCallback.js
GetAmbassador/react-ions
import React from 'react' import DatePicker from 'react-ions/lib/components/DatePicker' import Button from 'react-ions/lib/components/Button' import style from './style.scss' const oldDate = '2017-07-07' const newDate = '2019-03-03' class ExampleDatePickerCallback extends React.Component { constructor(props) { ...
src/pages/best-posts.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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, o...
src/molecules/header/stories.js
dsmjs/components
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ import React from 'react'; import any from '@travi/any'; import storyRouter from 'storybook-router'; import {linkTo} from '@storybook/addon-links'; import Header from './index'; export default { title: 'Molecules/Header', decorat...
frontend/src/Settings/Profiles/Quality/QualityProfileItem.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CheckInput from 'Components/Form/CheckInput'; import Icon from 'Components/Icon'; import IconButton from 'Components/Link/IconButton'; import { icons } from 'Helpers/Props'; import translate from 'U...
app/client/src/components/LoginModalPrompt/LoginModalPrompt.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import Dialog from 'material-ui/Dialog'; import IconButton from 'material-ui/IconButton'; import Login from 'components/Login'; import Signup from 'components/Signup'; import layoutStyles from 'styles/...
blueprints/view/files/__test__/views/__name__View.spec.js
DonHansDampf/whattoeat_website
import React from 'react' describe('(View) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
src/containers/Routes/NoMatchRoute.js
jmahc/that-react-app-you-want
import React from 'react' const NoMatchRoute = () => ( <div className="block"> <h1>Page Not Found</h1> <p>We couldn't find the page you were looking for.</p> </div> ) export default NoMatchRoute
src/components/video_detail.js
gerCasas/ReduxSimpleStarter
import React from 'react'; const VideoDetail = ({video}) => { //si el video viene vacio entonces lo validamos y regresamos loading if(!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; // ES5 sintax // const url = 'https://www.youtube.com/embed/' + videoId; // ES6 sintax ...
app/routes/Course/routes/Assignments/components/Sidebar.js
jefferchang/reactApp
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class Sidebar extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment =>...
src/js/components/icons/base/PlatformDos.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/common/admin/analytics/AnalyticsResultsTable.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedMessage } from 'react-intl'; import { urlToSource, urlToCollection } from '../../../../lib/urlUtil'; const localMessages = { name: { id: 'analytics.table.name', defaultMessage: 'Name' }, count: { id: 'analytics.table.count...
client/admin/mailer/Mailer.stories.js
subesokun/Rocket.Chat
import React from 'react'; import { Mailer } from './Mailer'; export default { title: 'admin/pages/mailer', component: Mailer, }; export const _default = () => <Mailer />;
js/Search.spec.js
dianafisher/FEM-complete-intro-to-react
import React from 'react' import { shallow } from 'enzyme' import { shallowToJson } from 'enzyme-to-json' import Search from './Search' import ShowCard from './ShowCard' import preload from '../public/data.json' test('Search snapshot test', () => { const component = shallow(<Search />) const tree = shallowToJson(c...
src/svg-icons/action/https.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
src/components/GlobalForm.js
tonyxiao/segment-debugger
import React from 'react' import CSSModules from 'react-css-modules' import { Form, FormGroup, FormControl, ControlLabel, Col, HelpBlock } from 'react-bootstrap' import styles from './GlobalForm.scss' export const GlobalForm = ({ fields: {writeKey, sdk} }) => ( <Form horizontal> <FormGroup controlId="writeKey" v...
src/pages/BookAdd.js
prodigalyijun/demo-by-antd
import React from 'react'; import HomeLayout from '../layouts/HomeLayout'; import BookEditor from '../components/BookEditor'; class BookAdd extends React.Component { render() { return ( <BookEditor /> ); } } export default BookAdd;
react-snake/app/main.js
react-europe/hackathon
/** * Main component. * * @author Rob Gietema * @licstart The following is the entire license notice for the JavaScript * code in this page. * * Copyright (C) 2015 Rob Gietema * * @licence The above is the entire license notice for the JavaScript code in * this page. * @version 0.0.1 */...
admin/components/page_menu.js
svyatogor/dreamscape
import React from 'react' import PropTypes from 'prop-types' import {compose} from 'recompose' import {connect} from 'react-redux' import { List, ListItem, Paper, Subheader, Divider, MenuItem, IconMenu, IconButton, makeSelectable, } from 'material-ui' import {map, get, pickBy} from 'lodash' import {hu...
example/examples/GradientPolylines.js
lelandrichardson/react-native-maps
import React from 'react'; import { StyleSheet, Dimensions } from 'react-native'; import MapView, { Polyline, ProviderPropType } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DE...
src/js/radiobutton/test/test.js
HBM/md-components
/* global it, describe */ import assert from 'assert' import React from 'react' import Radiobutton from '../' import {mount} from 'enzyme' const noop = () => {} describe('Radiobutton', () => { it('should render a simple example', () => { const wrapper = mount(<Radiobutton name='test' onChange={noop} />) as...
src/containers/ProfilesIndex.js
lancespears/profile-maker
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../actions/index'; import { bindActionCreators } from 'redux'; import ProfilesList from '../components/ProfilesList'; const style = { page: { margin: 30, }, }; @connect(state => ({ profiles: state.profiles.all }), ac...
src/esm/components/graphics/logos/la-banque-postale/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["variant", "width", "height"], _excluded2 = ["color"], _excluded3 = ["colors"]; import React from 'react'; import PropTypes from 'prop-types'; ...
app/node_modules/react-router/es6/RouteContext.js
BZhawaii/ArtStorm
import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent trans...
src/App.js
SATELLITE-CAPSTONE-18/Capstone-Web
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
frontend/src/pages/sys-admin/web-settings/section.js
miurahr/seahub
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const propTypes = { headingText: PropTypes.string.isRequired, children: PropTypes.object.isRequired }; class Section extends Component { constructor(props) { super(props); } render() { const { headingText, children} = th...
frontend/src/components/public_group/PublicGroupWhoWeAre.js
carlosascari/opencollective-website
import React from 'react'; import UserCard from '../../components/UserCard'; import Markdown from '../../components/Markdown'; import { displayUrl } from '../../components/DisplayUrl'; export default class PublicGroupWhoWeAre extends React.Component { render() { const { group, i18n } = this.props; const ti...
lib/error-debug.js
nelak/next.js
import React from 'react' import ansiHTML from 'ansi-html' import Head from './head' export default ({ error, error: { name, message, module } }) => ( <div style={styles.errorDebug}> <Head> <meta name='viewport' content='width=device-width, initial-scale=1.0' /> </Head> {module ? <h1 style={styles....
src/js/pages/App.js
amalbose/axa-media
import React from 'react'; import Header from '../components/Header' import Footer from '../components/Footer' export default class App extends React.Component { render() { return ( <div> <Header headerTitle='Home' /> {this.props.children} <Fo...
node_modules/react-bootstrap/es/PageHeader.js
joekay/awebb
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
AgentME/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps = {}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaultProps = {}; ...
app/javascript/mastodon/components/column_back_button.js
alarky/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length === 1)...
react/Textarea/Textarea.js
seekinternational/seek-asia-style-guide
import styles from './Textarea.less'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import FieldMessage from '../private/FieldMessage/FieldMessage'; import FieldLabel from '../private/FieldLabel/FieldLabel'; import Text from '../Text/Text'; function...
src/js/TextFields/__tests__/TextField.js
lwhitlock/grow-tracker
/* eslint-env jest */ jest.unmock('../TextField'); import React from 'react'; import { findDOMNode } from 'react-dom'; import { Simulate, renderIntoDocument, findRenderedComponentWithType, scryRenderedComponentsWithType, } from 'react-dom/test-utils'; import TextField from '../TextField'; import InputField fr...
src/index.js
rbose85/redux-reddit-tutorial
import './styles.css' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import configureStore from './configureStore' import AsyncApp from './components/AsyncApp' (() => { const store = configureStore() const app = document.createElement('div') document...
src/components/home/HomePage.js
CodeTaha/react-redux-starter
/** * Created by taha on 9/10/17. */ import React from 'react'; import {Link} from 'react-router'; class HomePage extends React.Component { render() { return ( <div className="jumbotron"> <h1>Administration</h1> <p>React, Redux and React Router in ES6 for ultra-responsive web apps</p> ...
react-demo/app/index.js
yuhualingfeng/react-study
import React from 'react' import ReactDOM from 'react-dom' class App extends React.Component{ constructor(props){ super(props); this.state = { name:2 } this.handle = this.handle.bind(this); } componentDidMount(){ alert(1); console.log(this.refs.qw); } handle(){ this.setState({name:3}); } rende...
collect-webapp/frontend/src/datamanagement/components/recordeditor/fields/FileField.js
openforis/collect
import './FileField.css' import React from 'react' import { Button, Progress } from 'reactstrap' import L from 'utils/Labels' import ServiceFactory from 'services/ServiceFactory' import { FileAttributeDefinition } from 'model/Survey' import DeleteIconButton from 'common/components/DeleteIconButton' import Dropzone ...
app/javascript/mastodon/components/error_boundary.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { version, source_url } from 'mastodon/initial_state'; export default class ErrorBoundary extends React.PureComponent { static propTypes = { children: PropTypes.node, }; state = { hasErr...
docs/app/Examples/elements/Label/Types/LabelExampleCorner.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image } from 'shengnian-ui-react' const LabelExampleCorner = () => ( <Grid columns={2}> <Grid.Column> <Image fluid label={{ as: 'a', corner: 'left', icon: 'heart' }} src='/assets/images/wireframe/image.png' /> </Grid.Column> <G...
src/svg-icons/av/hd.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHd = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-...
client/src/components/BackButton/tests/BackButton-story.js
silverstripe/silverstripe-asset-admin
import React from 'react'; // eslint-disable-next-line import/no-extraneous-dependencies import { storiesOf } from '@storybook/react'; import { Component as BackButton } from 'components/BackButton/BackButton'; storiesOf('AssetAdmin/BackButton', module) .add('Default', () => ( <BackButton /> )) .add('With ba...
src/views/forms/input-group/InputGroup.js
mrholek/CoreUI-React
import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CDropdown, CDropdownDivider, CDropdownItem, CDropdownMenu, CDropdownToggle, CFormCheck, CFormInput, CFormLabel, CFormSelect, CFormTextarea, CInputGroup, CInputGroupText, CRow, } from '@coreui/react' impo...
src/app/core/atoms/icon/icons/paperclip.js
blowsys/reservo
import React from 'react'; const Paperclip = (props) => <svg {...props} viewBox="0 0 9 17"><g strokeLinecap="round"><g strokeWidth="2" transform="translate(-1665.000000, -528.000000)"><path d="M1669.38462,539.921502 L1669.38462,532.119849 C1669.38462,532.076179 1669.43431,532.040634 1669.49504,532.040634 L1672.6588,532...
examples/auth-with-shared-root/components/About.js
tkirda/react-router
import React from 'react' const About = React.createClass({ render() { return <h1>About</h1> } }) export default About
src/components/planeditor/listeditor.js
jamjar919/bork
import React from 'react'; import PropTypes from 'prop-types'; import ListEditorItem from './listeditoritem'; import ListRenderer from './listrenderer'; const $ = require('jquery'); const uuidv4 = require('uuid/v4'); class ListEditor extends React.Component { constructor(props) { super(); this.st...
src/pages/suggestions/Form.js
thomasthiebaud/lundalogik
import React from 'react' import PropTypes from 'prop-types' import { reduxForm } from 'redux-form' import { Button, Form as ANTForm, } from 'antd' import Tags from 'components/Field/Tags' import RangePicker from 'components/Field/RangePicker' import TimePicker from 'components/Field/TimePicker' import InputNumbe...
src/svg-icons/action/grade.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGrade = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ActionGrade = pure(ActionGrade); ActionGrade....
js/components/NewFormCheckPage/NewFormCheckPage.js
xuorig/form-check-app
/* @flow */ import React from 'react' import Relay from 'react-relay'; import ReactDOM from 'react-dom'; import Dropzone from 'react-dropzone'; import Select from 'react-select'; import 'babel/polyfill'; import styles from './NewFormCheckPage.css'; import $ from 'jquery'; require('react-select/dist/react-select.css')...
src/svg-icons/communication/call-split.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallSplit = (props) => ( <SvgIcon {...props}> <path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/> </SvgIcon> ); CommunicationCallS...
src/forms/controls/control-with-suggestions/components/input-with-suggestions-utils.spec.js
Zenika/Pogues
import React from 'react'; import { updateSuggestions, initialize, getNewIndex } from './input-with-suggestions-utils'; describe('input-with-suggestions-utils', () => { describe('updateSuggestions', () => { test('if the text match the regexp', () => { expect( updateSuggestions('text', /^(text...
src/SubMenus.js
dragfire/react-menus-dd
import React from 'react'; import Menu from './Menu'; import './menus.css'; import PropTypes from 'prop-types'; const SubMenus = (props) => { const { list, children, style, } = props; const className = 'Menus'; let MenuList = ( <ul className={className} style={style} > {ch...
docs/src/PageFooter.js
erictherobot/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className="bs-docs-footer" role="contentinfo"> <div c...
src/containers/Admin/MissingPeople/new/index.js
EncontrAR/backoffice
import React, { Component } from 'react'; import LayoutWrapper from '../../../../components/utility/layoutWrapper'; import Box from '../../../../components/utility/box'; import { Button, Col, Row, Input, Select } from 'antd'; import { Link } from 'react-router-dom'; import missingPersonActions from '../../../../redux/m...
src/svg-icons/action/flight-land.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightLand = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2...
app/components/LoadingIndicator/index.js
kdprojects/nichesportapp
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
node_modules/react-bootstrap/es/FormGroup.js
vitorgomateus/NotifyMe
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 ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
artful-addict/kh-squared-ria
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'));
src/components/NewUser/NewUser.js
Decidr/react-decidr
import React, { Component } from 'react'; import update from 'react-addons-update'; import { browserHistory } from 'react-router'; import Nav from '../Nav/Nav'; export default class NewUser extends Component { constructor(props){ super(props); this.state = { user: {} }; } handleChange(event)...
packages/insights-web/src/scenes/explorer/connection/subset/menu/index.js
mariusandra/insights
import React from 'react' import { useActions, useValues } from 'kea' import { Icon, Menu } from 'antd' import connectionsLogic from 'scenes/explorer/connection/logic' export default function SubsetMenu () { const { selectedSubset, otherSubsets, connectionId } = useValues(connectionsLogic) const { newSubset, editS...
components/TodoInput.js
CityRay/React15-Todo-List
import React, { Component } from 'react'; class TodoInput extends Component { constructor(props, context) { super(props, context); this.onSubmit = this.onSubmit.bind(this); this.state = { inputText: '' }; } shouldComponentUpdate() { // component has no ...
docs/pages/api-docs/dialog-title.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/dialog-title'; const requireRaw = require.context('!raw-loader!./', false, /\/dialog-title\.md$/); export default function P...
js/components/developer/forgot-password/index.js
justarrived/p2p-client
import React, { Component } from 'react'; import { StyleSheet, View, Text } from 'react-native'; import { Container, Content, Input, Item, Button, Label, Text as NBText } from 'native-base'; import styles from './style'; import I18n from '../../../i18n'; import globalStyle from '../../../resources/globalStyle'; e...
examples/real-world/server.js
eiriklv/redux-saga
/* eslint-disable no-console */ import "babel-polyfill" import webpack from 'webpack' import webpackDevMiddleware from 'webpack-dev-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import config from './webpack.config' import express from 'express' import path from 'path' import favicon from 'serve...
demo/src/components/App/components/Footer/Footer.js
JacksonKearl/react-autosuggest-ie11-compatible
import styles from './Footer.less'; import React from 'react'; import Link from 'Link/Link'; const Footer = () => <div className={styles.container}> <div> {'Crafted with love by '} <Link className={styles.link} href="https://twitter.com/moroshko" underline={false} > ...
src/components/appfooter.js
bhuvanmalik007/mission-admission
import React from 'react' import { Link } from 'react-router' //eslint-disable-line export default props => <div>Footer Here</div>
src/parser/hunter/survival/modules/spells/azeritetraits/LatentPoison.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import SPELLS from 'common/SPELLS'; import { RAPTOR_MONGOOSE_VARIANTS } from 'parser/hunter/survival/constants'; /** * Serpent Sting damage applies Latent Po...
frontend/src/Activity/Queue/TimeleftCell.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import formatTime from 'Utilities/Date/formatTime'; import formatTimeSpan from 'Utilities/Date/formatTimeSpan'; import getRelativeDate from 'Utilities/Date/getRelativeDate'; import formatBytes ...
src/encoded/static/components/static-pages/placeholders/ExperimentSetMatrix.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import url from 'url'; import queryString from 'query-string'; import { Popover, Button } from 'react-bootstrap'; import { console, object, ajax } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; ...
src/components/Switch/Switch-test.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import Switch from '../Switch'; import { shallow } from 'enzyme'; describe('Switch', () => { describe('componen...
React_Redux/blog/src/components/header.js
awg3/LearnCodeImprove
import React from 'react'; export default (props) => { return( <header> <h1> Blog </h1> </header> ); }
src/svg-icons/content/flag.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFlag = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ContentFlag = pure(ContentFlag); ContentFlag.displayName = 'ContentFlag'; ContentFlag.muiName = '...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(users) { return [ { id: 1, name: '1' ...
src/svg-icons/maps/local-pharmacy.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPharmacy = (props) => ( <SvgIcon {...props}> <path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/> </SvgIcon> ); MapsLocalPharmacy = pure...
packages/idyll-components/src/preview.js
idyll-lang/idyll
import React from 'react'; class Preview extends React.Component { constructor(props) { super(props); this.state = { mounted: false }; } componentDidMount() { this.setState({ mounted: true }); } render() { const { hasError, idyll, updateProps, titl...
source/components/Button/index.js
everydayhero/impact-board
import React from 'react' import css from 'cxsync' import connectTheme from '../../lib/connectTheme' import * as styles from './styles' const Button = ({ theme, href, onClick, children, color, target = '_top', size, dispatch, ...props }) => { const Tag = href ? 'a' : 'button' const classNames = ...
www/frontSrc/Header/Objects/PollerObject.js
jben94/centreon
import React from 'react' import Button from '@material-ui/core/Button' import { withStyles } from '@material-ui/core/styles' import Popover from '@material-ui/core/Popover' import Typography from '@material-ui/core/Typography' import PollerIcon from "../Icons/PollerIcon" import numeral from "numeral" const styles = t...
frontend/src/screens/landing/widgets/about/about.js
desihub/qlf
import React from 'react'; import Paper from '@material-ui/core/Paper'; const styles = { container: { display: 'flex', justifyContent: 'center', }, main: { maxWidth: '70vw', // maxHeight: '65vh', height: 'calc(100vh - 223px)', overflowY: 'auto', margin: '16px', padding: '16px', ...
public/src/containers/calendar/calendar.js
white87332/react-redux-sample
import React from 'react'; import update from 'immutability-helper'; import { connect } from 'react-redux'; import equal from 'deep-equal'; import './calendar.scss'; // has params state function mapStateToProps() { return {}; } // has params dispatch function mapDispatchToProps() { return {}; } class Calenda...
src/Requests.js
TutorFox/TutorFox
import React from 'react'; import RequestPanel from './RequestPanel'; export default class Requests extends React.Component { render () { const reqs = this.props.requests.map((req, i) => { return ( <RequestPanel id={req.user} course={req.course} deleteRequest={this.props.deleteRequest.bind(null, ...