path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
UI/Charts/LineChart.js
Datasilk/Dedicate
import React from 'react'; import {View, ScrollView, StyleSheet, Dimensions, TouchableWithoutFeedback, Animated} from 'react-native'; import Text from 'text/Text'; import AppStyles from 'dedicate/AppStyles'; import {Svg, Line, Polyline, Circle} from 'react-native-svg'; import IconSwipeArrow from 'icons/IconSwipeArrow';...
actor-apps/app-web/src/app/index.js
JeeLiu/actor-platform
import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import injectTapEventPlugin from 'react-tap-event-plugin'; import Deactivated from 'components/Deactivated.react'; import Login from 'components/Login.react'; import ...
app/containers/SideBar/PermissionsNavTree.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import TreeView from 'react-treeview'; import { Link } from 'react-router'; import { capitalize } from '../../utils'; import { filterBoundaries } from './utils'; import { collapsedProgramEntity, get...
pootle/static/js/admin/components/Language/LanguageAdd.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import LanguageForm from './La...
test/helpers/shallowRenderHelper.js
Aleczhang1992/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
internals/templates/containers/HomePage/index.js
mhoffman/CatAppBrowser
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/index.js
wmaurer/frontend_pizza_react_redux
import 'babel-polyfill'; require('./app.css'); import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import DevTools from './containers/DevTools'; import configureStore from './store/configureStore'; const store = configureStore(); R...
ReactComponents/CauseListView.js
DoSomething/LetsDoThis-iOS
'use strict'; import React from 'react'; import { AppRegistry, ListView, StyleSheet, Text, Image, RefreshControl, TouchableHighlight, View } from 'react-native'; var Style = require('./Style.js'); var Bridge = require('react-native').NativeModules.LDTReactBridge; var NetworkErrorView = require('./Net...
src/modules/Checkbox/Checkbox.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { AutoControlledComponent as Component, createHTMLLabel, customPropTypes, getElementType, getUnhandledProps, makeDebugger, META, partitionHTMLInputProps, useKeyOnly, } from '../../li...
app/javascript/mastodon/components/modal_root.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import 'wicg-inert'; export default class ModalRoot extends React.PureComponent { static propTypes = { children: PropTypes.node, onClose: PropTypes.func.isRequired, }; state = { revealed: !!this.props.children, }; activeElement = t...
src/components/Icon/Icon-story.js
joshblack/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 { iconAdd, iconAddSolid, iconAddOutline } from 'carbon-icons'; import { storiesOf } from '@storybook/react'...
blueocean-material-icons/src/js/components/svg-icons/action/info.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionInfo = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo.displayName = 'ActionInfo'; ActionInfo.muiName = 'SvgIcon'; ...
src/components/TextInputStyledComponents/TextInputStyledComponents.js
thomashoggard/ps-react-tom
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styled from 'styled-components'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({ htmlId, name, label, type = "tex...
packages/icons/src/dv/Vue.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvVue(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M45 5.831L24 42.169 3 5.831h3.413L24 36.264 41.587 5.83H45zm-21 8.264l4.855-8.264h7.363L24 26.973 11.782 5.831h7.363L24 14.095z" /> </IconBase> ); ...
demo/index.js
JulienPradet/react-flip
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { HashRouter } from 'react-router-dom'; import Navigation from './Navigation'; import Examples from './Examples'; import './style/index.scss'; class App extends Component { render() { return ( <HashRouter> <div> ...
app/components/Menu/MenuHeader.js
cdiezmoran/playgrounds-desktop
/** * Created on Tue Nov 8 2016 * * Side-bar menu header component containing the user profile pic and username * and the search bar component. * * @flow */ import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import jwtDecode from 'jwt-decode'; // import SearchBar from '../SearchBar'; ...
src/src/components/SideBar/Nav.js
chaitanya1375/Myprojects
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom'; import { Collapse } from 'react-bootstrap'; class Nav extends Component { state = {}; render() { let { location } = this.props; return ( <ul className="nav"> <li className={location.pathname === ...
src/Col.js
xsistens/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
node_modules/react-scripts/template/src/index.js
webtutorial/builder
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/performance/LineAndBarsChart.js
jmporchet/bravakin-client
import React from 'react'; import { AreaClosed, BarGroup, LinePath } from '@vx/shape'; import { Group } from '@vx/group'; import { AxisLeft, AxisBottom } from '@vx/axis'; import { scaleTime, scaleBand, scaleLinear, scaleOrdinal } from '@vx/scale'; import { curveMonotoneX } from '@vx/curve'; import { timeFormat } from '...
docs/src/app/components/pages/components/Menu/ExampleNested.js
owencm/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', mar...
src/modules/pages/feeds/js/feedStore.js
lenxeon/react
import React from 'react'; let FeedStore = { list(cat, page, size, cb) { cat = cat || 'all'; page = page || 1; size = size || 20; $.get('/dist/data/feeds/list_' + cat + '.json', function(result) { let list = result[0].card_group; setTimeout(() => { cb({ list: list }); }, 500) ...
client/app/components/MapPage.js
BeaconCorp/beacon
import React from 'react'; import { Link } from 'react-router'; import { Map, Marker, Popup, TileLayer } from 'react-leaflet'; import { getAllBeacons } from '../utils/helpers'; var MapPage = React.createClass({ getInitialState: () => { console.log('MapPage.getInitialState()'); return { beacons: [], ...
clients/libs/slate-editor-list-plugin/src/ListButtonBar.js
nossas/bonde-client
/* eslint-disable no-undef */ import React from 'react' import { UnorderedListButton, OrderedListButton } from './' // FIXME: Needs to handle assets files to work with SSR // eslint-disable-next-line @typescript-eslint/no-var-requires if (require('exenv').canUseDOM) require('./ListButtonBar.module.css') const ListBu...
src/client/components/Note.js
ampext/graphql-notes
import React from 'react'; import PropTypes from 'prop-types'; import { createFragmentContainer } from 'react-relay'; import Button from './Button'; class Note extends React.PureComponent { onRemoveButton = () => this.props.onRemove(this.props.item.id); onEditButton = () => { const {id, content, date} = this...
packages/mineral-ui-icons/src/IconMonochromePhotos.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconMonochromePhotos(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
src/components/__tests__/placeholder-test.js
shwethadn/StarterApp
/** * Test to check if the component renderes correctly */ /* global it expect */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Soon from '../general/Placeholder'; /** * Check if alerts renders correcly * and asserting it to the matching snapshot */ it('Soo...
src/scripts/views/detailView.js
sharnee/instaClone
import React from 'react' import Header from './header' import Footer from './footer' // import Likes from './likes' import CommentsHeader from './commentsHeader' import Comments from './comments' import Image from './image' var DetailView = React.createClass({ render: function() { return ( <div className="de...
src/Jumbotron.js
dongtong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
packages/spust-koa/src/BodyParser.js
michalkvasnicak/spust
// @flow import koaBodyParser from 'koa-bodyparser'; import React from 'react'; import { type Context as ServerContext, serverContextType } from './Server'; export default class BodyParser extends React.Component<void, *, void> { static contextTypes = serverContextType; context: ServerContext; constructor(pr...
src/svg-icons/notification/confirmation-number.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationConfirmationNumber = (props) => ( <SvgIcon {...props}> <path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2...
custom_modules/Picture.js
hustmsc/hustmsc-app
import React, { Component } from 'react'; import { StyleSheet, Image } from 'react-native'; export default class Picture extends Component { render() { return ( <Image source={this.props.src} style={styles.images} /> ); } } const styles = StyleSheet.create({ images: { width: 193, heigh...
app/components/Form/FormField.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import FormGroup from './FormGroup'; import Input from '../Input'; import Label from '../Label'; import { ErrorMessage, WarningMessage } from '../../components/FormMessages'; const FormField = ({ input, label, type, meta: { touched, error, warning }, ...pr...
src/svg-icons/social/sentiment-dissatisfied.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentDissatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 1...
js/src/ui/ModalBox/summary.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 3 of the License, or // (at your option) any lat...
admin/client/views/signin.js
Ftonso/keystone
'use strict'; import classnames from 'classnames'; import React from 'react'; import ReactDOM from 'react-dom'; import SessionStore from '../stores/SessionStore'; import { Alert, Button, Form, FormField, FormInput } from 'elemental'; import { createHistory } from 'history'; var history = createHistory(); var SigninV...
modules/__tests__/Redirect-test.js
zipongo/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 ...
src/components/HabitPageContent.js
simplebee/everyday
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import { Route, Link } from 'react-router-dom'; import { Button } from 'antd'; import Calendar from './Calendar'; import Datapoints from './Datapoints'; import Graph from './Graph'; import { dele...
examples/js/selection/select-bgcolor-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
node_modules/react-router/es6/Link.js
save-password/save-password.github.io
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
generators/js-framework/modules/react/components/Footer.js
sahat/boilerplate
import React from 'react'; class Footer extends React.Component { render() { return ( <footer> <p>© 2016 Company, Inc. All Rights Reserved.</p> </footer> ); } } export default Footer;
src/MediaListItem.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; class MediaListItem extends React.Component { render() { const { className, ...props } = this.props; const [bsProps, elementProps] = splitBsProps(props); const cl...
examples/src/components/CustomRenderField.js
silppuri/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
client/index.js
Jakeyrob/chill
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; require('./styles.css'); ReactDOM.render( <App />, document.getElementById('app') );
src/components/Start.js
Babbins/fullstalker
import React from 'react'; import {Link} from 'react-router'; function myFunction() { console.log('your mom!'); } export default () => ( <div> <br /> <br /> <br /> <div className="valign-wrapper row"> <div className="valign col s7 center"> <img id="logo" className="text-align" src="/m...
fields/types/select/SelectField.js
riyadhalnur/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', valueChanged (newValue) { // TODO: This should be natively handled by the Selec...
src/react/JSONTree/JSONStringNode.js
threepointone/redux-devtools
import React from 'react'; import reactMixin from 'react-mixin'; import { SquashClickEventMixin } from './mixins'; import hexToRgb from '../../utils/hexToRgb'; const styles = { base: { paddingTop: 3, paddingBottom: 3, paddingRight: 0, marginLeft: 14 }, label: { display: 'inline-block', ma...
test/NavItemSpec.js
azmenak/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import NavItem from '../src/NavItem'; describe('NavItem', function () { it('Should add active class', function () { let instance = ReactTestUtils.renderIntoDocument( <NavItem active={true}> Item content </NavIte...
src/svg-icons/action/settings-input-antenna.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputAntenna = (props) => ( <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
src/component/check.js
stevenocchipinti/react-toggle
import React from 'react' export default () => ( <svg width='14' height='11' viewBox='0 0 14 11'> <title> switch-check </title> <path d='M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0' fill='#fff' fillRule='evenodd' /> </svg> )
src/app/components/Delta.js
devgru/color
import React from 'react'; import { hcl } from 'd3-color'; import deltae from 'deltae'; import toString from '../domain/ColorToString'; import classNames from 'classnames'; import round from 'round-to-precision'; const cents = round(0.01); function Delta(props) { let delta = 0; const hcl1 = hcl(props.colors[0]); ...
HTML/前端/my-react-app-spring-boot-yao/src/hello.js
xiaoxiaoyao/MyApp
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') );
src/Parser/HolyPaladin/Modules/Items/Tier19_4set.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; impo...
src/containers/Editor.js
petercollingridge/math-for-programmers-prototype
import React, { Component } from 'react'; import PropTypes from 'prop-types'; // CodeMirror Imports import CodeMirror from 'react-codemirror2'; import 'codemirror/mode/stex/stex'; import 'codemirror/lib/codemirror.css'; import 'codemirror/theme/monokai.css'; class Editor extends Component { constructor(props) { ...
src/components/Scenario.js
kalpetros/hawkpass
import PropTypes from 'prop-types'; import React from 'react'; import { Panel } from './Panel'; export const Scenario = props => { const { per_second, per_minute, per_hour, per_day, per_year } = props.values; return ( <div className="grid grid-cols-2 sm:grid-cols-5 gap-4"> <Panel> <div classNam...
ui/src/app/components/Types.js
kuppuswamy/foodie
import React from 'react'; import AddTypeMutation from '../mutations/AddTypeMutation'; import EditTypeMutation from '../mutations/EditTypeMutation'; import DeleteTypeMutation from '../mutations/DeleteTypeMutation'; export default class Types extends React.Component { state = { text: '', editID: null, sho...
src/components/Sidebar/SelectMessage.js
vogelino/design-timeline
import React from 'react'; export default () => ( <div className="sidebar_selectMessage"> Please select an item to view its content </div> );
ui/src/main/js/components/__tests__/Diff-test.js
medallia/aurora
import React from 'react'; import { shallow } from 'enzyme'; import Diff from '../Diff'; import { TaskConfigBuilder } from 'test-utils/TaskBuilders'; describe('Diff', () => { it('Should not add change classes to diff viewer when objects are same', () => { const el = shallow(<Diff left={{test: true}} right={{te...
src/js/components/members/newMemberForm.js
jrnail23/sitterswap-ui
import React from 'react' import Input from '../common/textInput' import {Link} from 'react-router' export default class extends React.Component { static propTypes = { member: React.PropTypes.shape({ firstName: React.PropTypes.string.isRequired, lastName: React.PropTypes.string.isRequired, emai...
src/utils/griddleConnect.js
GriddleGriddle/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; /// This method appends options onto existing connect parameters export const mergeConnectParametersWithOptions = ( originalConnect, newOptions ) => { const [ mapStateFromProps, mapDispatchFromProps, ...
spec/javascripts/jsx/grading/CourseTabContainerSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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/renderer/components/app-wrapper.js
sirbrillig/gitnews-menubar
import PropTypes from 'prop-types'; import { ipcRenderer } from 'electron'; import React from 'react'; import { connect } from 'react-redux'; import { markAllNotesSeen, scrollToTop, markAppHidden, markAppShown, } from 'common/lib/reducer'; class AppWrapper extends React.Component { constructor(props) { super(pr...
fields/types/color/ColorField.js
suryagh/keystone
import ColorPicker from 'react-color'; import Field from '../Field'; import React from 'react'; import { FormInput, InputGroup } from 'elemental'; const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches']; const TRANSPARENT_BG = `<svg width="24" height="24" viewBox="0 0 24 24...
packages/ringcentral-widgets/components/IncomingCallPad/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Tooltip from 'rc-tooltip'; import 'rc-tooltip/assets/bootstrap_white.css'; import ForwardForm from '../ForwardForm'; import ReplyWithMessage from '../ReplyWithMessage'; import ActiveCallButton from...
website/src/index.js
chrisl8/ArloBot
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.css'; import './index.css'; import App from './containers/App'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root'), );
components/Messenger/Messenger.js
tbescherer/TrumpAnxietyHotline
import React from 'react'; import store from '../../core/store.js'; import {keycodes} from './constants.js'; class Messenger extends React.Component { constructor(props) { super(props); this.post = this.post.bind(this); this.changeBlogText = this.changeBlogText.bind(this); this.rend...
src/components/molecules/Loading/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link} from 'components'; import RefreshIndicator from 'material-ui/RefreshIndicator'; import CircularProgress from 'material-ui/CircularProgress'; const Wrapper = styled.div ` text-align: center; padding: 40px 20px; .text{ color:#555; font...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
fhchina/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/routes/admin/index.js
ADourgarian/Syscoin-Payroll
/** * 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...
src/components/profile/Profile.js
n8e/melange
import React from 'react'; import PropTypes from 'prop-types'; import './Profile.css'; const Profile = ({ name, nameColor, textColor, profile, handleClick, handleChange }) => ( <div className="profile-card"> <h3>Profile</h3> <div className="profile-entry"> <strong style={{ marginRight: '10px' }}>User ...
src/components/field_group.js
b0ts/react-redux-sweetlightstudios-website
import React from 'react'; import { FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap'; const FieldGroup = ({ id, label, help, ...props }) => ( <FormGroup controlId={id}> <ControlLabel>{label}</ControlLabel> <FormControl {...props} /> {help && <HelpBlock>{help}</HelpBlock>} </FormGroup...
src/svg-icons/editor/insert-invitation.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertInvitation = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> ...
react/CrossIcon/CrossIcon.sketch.js
seek-oss/seek-style-guide
import React from 'react'; import CrossIcon from './CrossIcon'; import generateSketchIconSizes from '../private/generateSketchIconSizes'; export const symbols = { ...generateSketchIconSizes('Cross', <CrossIcon />) };
src/client/client-views/org.js
davidbstein/moderator
import React from 'react' import {connect} from 'react-redux' import API from '../client-model/API' import EventCard from './event-card' export default connect( storeState => storeState, dispatch => ({API: new API(dispatch)}) )( class Org extends React.Component { constructor(props) { super(props); ...
router_tutorial/07-more-nesting/modules/Repo.js
Muzietto/react-playground
import React from 'react'; export default React.createClass({ render() { return ( <div> <h3>link of Repos remains active because Repo is nested in Repos and Repos is nested in /</h3> <h6>here under comes the repo name</h6> <h4>{this.props.params.repoName}</h4> <h6>here under c...
renderer/components/Icon/ConnectOnboarding.js
LN-Zap/zap-desktop
import React from 'react' const SvgConnectOnboarding = props => ( <svg height="1em" viewBox="0 0 96 62" width="1em" {...props}> <g fill="none" fillRule="evenodd" stroke="currentColor"> <circle cx={30} cy={30} r={30} transform="translate(1 1)" /> <circle cx={30} cy={30} r={30} transform="translate(35 ...
tests/Rules-isEmptyString-spec.js
yesmeck/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
pages/index0.js
adjohnson916/site-gatsby
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' // Styles for highlighted code blocks. import 'css/zenburn.css' export default class Sass extends React.Component { render () { return ( <div> <h1> Hi people </h1> <p...
app/react-icons/fa/volume-off.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaVolumeOff extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m28.6 7.9v24.2q0 0.6-0.4 1t-1 0.5-1-0.5l-7.4-7.4h-5.9q-0.6 0-1-0.4t-0.4-1v...
src/components/EditableSelectInput/EditableSelectInput.stories.js
austinknight/ui-components
import React from "react"; import { storiesOf } from "@storybook/react"; import EditableSelectInput from "./"; import { wrapComponentWithContainerAndTheme, colors } from "../styles"; const darkExample = { height: "220px", backgroundColor: "#2a434a", padding: "16px" }; const genericOptions = [ { value: "1", ...
app/javascript/mastodon/features/ui/components/tabs_bar.js
RobertRence/Mastodon
import React from 'react'; import PropTypes from 'prop-types'; import NavLink from 'react-router-dom/NavLink'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; export const links = [ <NavLink className='tabs-bar__link p...
docs/includes/nav/Sidebar.js
harjeethans/materialistic
import React from 'react'; import {Link} from 'react-router'; function Sidebar(props) { const renderSidebarItems = function(items){ return ( items.map((item, index) => { return ( <li className="mdl-list__item" key={index}> <span className="mdl-list__item-primary-content"> ...
frontend/modules/recipe_form/components/TabbedView.js
RyanNoelk/OpenEats
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { Popover, OverlayTrigger } from 'react-bootstrap' import { injectIntl, defineMessages, } from 'react-intl'; class TabbedView extends React.Component { constructor(props) { super(props); this.state = ...
app/components/shape_tween.js
laynemcnish/personal-site
import React, { Component } from 'react'; import d3 from 'd3'; export default class ShapeTween extends Component { componentDidMount () { var node = React.findDOMNode(this); var width = 960, height = 500; var projection = d3.geo.albers() .rotate([120, 0]) .center([15, 35]) ...
src/containers/pages/create-deck/after-class-selection/left-container/filter-sidebar.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import IconFilter from '../../../../shared-assets/filters/redux-icon-filter'; import InputFilter from '../../../../shared-assets/filters/redux-input-filter'; import SliderFilter from '../../../../shared-assets/filters/redux-slider-fi...
public/js/cat_source/es6/components/modals/LoginModal.js
matecat/MateCat
import PropTypes from 'prop-types' import update from 'immutability-helper' import _ from 'lodash' import React from 'react' import TextField from '../common/TextField' import * as RuleRunner from '../common/ruleRunner' import * as FormRules from '../common/formRules' import {checkRedeemProject as checkRedeemProjectAp...
src/routes.js
allyrippley/7ds
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './containers/App' import Main from './containers/Main' import AboutPage from './containers/About' import Portfolio from './containers/Portfolio' import PortfolioPage from './containers/Portfolio/Page' import Contact from './con...
client/modules/App/__tests__/Components/Footer.spec.js
Trulsabe/reactLinuxMern
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 ...
example-slack-message/src/App.js
atFriendly/react-native-friendly-chat
import React, { Component } from 'react'; import { View, Platform } from 'react-native'; import PropTypes from 'prop-types'; import { GiftedChat } from 'react-native-gifted-chat'; import emojiUtils from 'emoji-utils'; import SlackMessage from './SlackMessage'; class App extends Component { renderMessage(props) { ...
src/components/tablePrices/presentation/TPDeadlines.js
edu-affiliates/promo_calculators
'use strict'; import React from 'react'; import {connect} from 'react-redux' import {changeDeadline} from '../../../store/actions' class TPDeadlines extends React.Component { constructor(props) { super(props); } render() { const {deadlineList, deadline} = this.props; let list = d...
src/components/course/CourseForm.js
RockingChewee/react-redux-building-applications
import React from 'react'; import TextInput from '../common/TextInput'; import SelectInput from '../common/SelectInput'; const CourseForm = ({course, allAuthors, onSave, onChange, saving, errors}) => { return ( <form> <h1>Manage Course</h1> <TextInput name="title" label="Title" ...
packages/my-joy-instances/src/containers/create-instance/index.js
geek/joyent-portal
/* eslint-disable camelcase */ import React from 'react'; import { Margin } from 'styled-components-spacing'; import ReduxForm from 'declarative-redux-form'; import { stopAsyncValidation, SubmissionError, destroy } from 'redux-form'; import { connect } from 'react-redux'; import { set, destroyAll } from 'react-redux-v...
packages/icons/src/md/image/ExposureNeg2.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdExposureNeg2(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M31.09 33.58l5.73-6.13c.75-.79 1.44-1.57 2.08-2.35.63-.78 1.18-1.56 1.64-2.33.46-.78.82-1.55 1.07-2.33.26-.78.39-1.57.39-2.37 0-1.07-.18-2.04-.5...
frontend/src/components/Auth/presenter.js
plusbeauxjours/nomadgram
import React from 'react'; import styles from './styles.scss'; import PropTypes from 'prop-types'; import LoginForm from 'components/LoginForm'; import SignupForm from 'components/SignupForm'; const Auth = ( { action, changeAction }, context ) => ( <main className={styles.auth}> <div className={s...
app/index.js
binayverma/weathernow
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import configureStore from './store/configureStore'; import Root from './con...
examples/vuecli3-custom/styleguide/components/SectionsRenderer.js
vue-styleguidist/vue-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import Styled from 'rsg-components/Styled'; import Heading from 'rsg-components/Heading'; // Avoid circular ref // Import default implementation using `rsg-components-default` import DefaultSectionsRenderer from 'rsg-components-default/Sections/SectionsRen...
src/components/Home.js
aalselius/Test
import React, { Component } from 'react'; import Image from './Image.js'; import ImageHeader from './ImageHeader.js'; import InfoText from './InfoText.js'; import Header from './Header.js'; class Home extends Component { constructor() { super(); this.state = { imageUrl: '', ...
client/views/admin/settings/SettingsRoute.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../../components/NotAuthorizedPage'; import { useRouteParameter } from '../../../contexts/RouterContext'; import { useIsPrivilegedSettingsContext } from '../../../contexts/SettingsContext'; import EditableSettingsProvider from '../../../providers/EditableSet...
src/components/posts_index.js
937aaron/reduxblog
import _ from 'lodash' import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPosts } from '../actions'; import { Link } from 'react-router-dom'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts() } renderPosts(){ return _.map(thi...