path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
example/components/ComplexNested.js
a-type/studs
import React from 'react'; import styled from 'styled-components'; import theme from '../theme'; import Button from './Button'; const selector = theme .register('ComplexNested', theme => ({ background: theme.colors.secondary, // purely for testing the documentation renderer nestedValue: { foo: 'bar...
Code/V1/src/src/EmojiSwitch.js
neurotechuoft/MindType
import React, { Component } from 'react'; import Emojis from './EmojisSmall'; import io from "socket.io-client"; import './App.css'; import './EntrySizes.css'; import { getRandomArray } from './helpers/shuffle'; // Getting rows const row1 = document.getElementsByClassName('row1'); const row2 = document.getElementsByC...
src/components/ChatApp/Settings/PreviewThemeChat.js
RMCoder198/chat.susi.ai
import React, { Component } from 'react'; import * as $ from 'jquery'; import './PreviewThemeChat.css'; import susiWhite from '../../../images/susi-logo-white.png'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import Send from 'material-ui/svg-icons/content/send'; import PropTypes from 'prop-t...
src/svg-icons/action/update.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionUpdate = (props) => ( <SvgIcon {...props}> <path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.5...
test/unit/testHelper.js
mileszs/dwtools
import jq from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import createHistory from 'history/lib/createBrowserHistory'; import { Provide...
packages/ndla-icons/src/editor/Camera.js
netliferesearch/frontend-packages
/** * Copyright (c) 2017-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT import React from 'react'; import Icon from '../Icon'; const Camera = props => ( <Icon viewBo...
src/components/theme-giraffe/create-petition/ppp-steps/summary.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import { InputMaterial } from 'GiraffeUI/input-material' import cx from 'classnames' import Lightbulb from '../../../../giraffe-ui/svgs/lightbulb.svg' const Summary = ({ toggleOpen, updateStateFromValue, getStateValue, nextStep, setRef }) => ( <div classNa...
node_modules/react-bootstrap/es/CarouselCaption.js
ivanhristov92/bookingCalendar
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 ...
examples/basic/app.js
ctxhou/react-tabs
import React from 'react'; import { Tab, Tabs, TabList, TabPanel } from '../../lib/main'; const App = React.createClass({ render() { return ( <div> <p> <em>Hint:</em> <ul> <li>use keyboard tab to focus tabs</li> <li>use arrow keys to navigate focused tabs</li> </ul> </p> ...
packages/material-ui-icons/src/VolumeDown.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let VolumeDown = props => <SvgIcon {...props}> <path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z" /> </SvgIcon>; VolumeDown = pure(VolumeDown); VolumeDown.mu...
src/dumb/editor/custom_field/CustomFieldPreview.js
jeckhummer/wf-constructor
import React from 'react'; import {Divider} from "semantic-ui-react"; import {CUSTOM_FIELD_TYPES} from "../../../constants"; export const CustomFieldPreview = ({selectedCustomField, placeholder}) => { return ( <div> Preview <Divider /> { selectedCustomFie...
app/javascript/mastodon/components/media_attachments.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { MediaGallery, Video, Audio } from 'mastodon/features/ui/util/async-components'; import Bundle from 'mastodon/features/u...
src/svg-icons/editor/highlight.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorHighlight = (props) => ( <SvgIcon {...props}> <path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/> </SvgIcon> ); Edito...
src/index.js
fastmonkeys/respa-ui
import 'react-app-polyfill/ie11'; import { browserName } from 'react-device-detect'; import 'location-origin'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-intl-redux'; import { BrowserRouter as Router } from 'react-router-dom'; import firebase from 'firebase/app'; imp...
src/components/posts_new.js
kevinw123/ReduxBlog
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { createPost } from '../actions'; class PostsNew extends Component { renderField(field){ const { meta: { touched, error } } = field; ...
.storybook/stories.js
metasfresh/metasfresh-webui-frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; const example = require('./Example/Example.story.js'); const stories = require('./foundStories').default; for (const [storyName, storyExport] of [['Example', example], ...stories]) { const { name, default: story } = storyExport; story(...
app/index.js
JSSolutions-Academy/newsly
import React from 'react'; import { render } from 'react-dom'; import SignInPage from './components/SignInPage'; import MainLayout from './components/MainLayout'; if (window.signin) { render(<SignInPage />, document.getElementById('signin')); } else if (window.app) { render(<MainLayout />, document.getElementById...
angular-rails/freelance-camp-fe/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
mrmcduff/udemyprojects
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'));
wail-ui/background/js/archiver.js
N0taN3rd/wail
import 'babel-polyfill' import '../../../wail-core/util/setMethods' import React from 'react' import {render} from 'react-dom' import ArchiveComponent from '../../../wail-archiver' render(<ArchiveComponent />, document.getElementById('archiverMount'))
app/javascript/flavours/glitch/features/picture_in_picture/components/header.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'flavours/glitch/components/icon_button'; import { Link } from 're...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
docs/app/Examples/collections/Menu/States/Hover.js
ben174/Semantic-UI-React
import React from 'react' import { Menu } from 'semantic-ui-react' const Hover = () => { return ( <Menu compact> <Menu.Item as='a'>A link</Menu.Item> <Menu.Item link>div Link</Menu.Item> </Menu> ) } export default Hover
src/svg-icons/action/tab.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTab = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/> </SvgIcon> ); ActionTab = pure(ActionTab); ActionTab....
src/components/BusMarker.js
carfreekeywest/map
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import slug from 'slug'; import { Popup as MapboxPopup } from 'react-mapbox-gl'; import { getBusLocation } from '../services/bus'; export default class BusMarker extends Component { static propTypes = { name: PropTypes.string.isRequire...
src/icons/IosFlask.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosFlask extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M391.016,382.994l-0.15-0.124L323.7,272H188.554l-66.549,110.855l-0.166,0.042l-0.177,0.302 c-5.461,8.334-8.319,18.7...
web_modules/view/SpentList.js
userspace/spent
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment' const SpentList = ({list, increment, decrement, remove}) => <div id="spent-list" className="col-md-8 col-md-offset-2"> <h4><small>Últimos 15 movimientos</small></h4> <div className="table-responsive"> <table classN...
assets/jqwidgets/demos/react/app/progressbar/layout/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxProgressBar from '../../../jqwidgets-react/react_jqxprogressbar.js'; class App extends React.Component { render() { return ( <div > <div style={{ fontFamily: 'Verdana', fontSize: 12, float: 'left' }}> ...
tests/app/static/jsx/pyxleychart.js
stitchfix/pyxley
import React from 'react'; import {Row, Col, Grid} from 'react-bootstrap'; import {Filter, Chart} from 'pyxley'; class PyxleyChart extends React.Component { constructor(props) { super(props); } _gatherParams(input) { var params = {}; for(var i = 0; i < this.props.filters.length; ...
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/SettingsSceneContent.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import { DialogContent, DialogActions, Button, Tabs, Tab, AppBar } from '@material-ui/core' import GeneralSettings from './GeneralSettings' import ExtensionSettings from './ExtensionSettings' import AccountSettings from './Accounts/AccountSettings' import Pro...
docs/app/Examples/views/Feed/Content/FeedExampleSummaryDate.js
mohammed88/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleSummaryDate = () => ( <Feed> <Feed.Event> <Feed.Label> <img src='http://semantic-ui.com/images/avatar/small/jenny.jpg' /> </Feed.Label> <Feed.Content> <Feed.Summary> You added <a>Jenny ...
public/systemjs/app/pages/component/generic.js
inquisive/keystonejs-site
import React from 'react'; /** * A generic container * expects a html prop * */ class Generic extends React.Component { constructor(props) { super(props) this.displayName = 'Generic ' this.state = { html: props.html || props.response } this.props = props }, componentWillReceiveProps(props) { ...
src/containers/DevTools/DevTools.js
lordakshaya/pages
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q"> <LogMonitor theme="tomorrow"...
static/src/components/Cloud.js
andribja/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { type: string, number: string }; export default ({type, number}: Props): React.Element => { const depth = '0.2'; const className = `cloud cloud-${number} layer`; switch (type) { case 0: { return ( <svg cl...
node_modules/react-bootstrap/es/NavDropdown.js
vitorgomateus/NotifyMe
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
docs/app/Examples/elements/Label/Content/LabelExampleImageShorthand.js
koenvg/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleImageShorthand = () => { const imageProps = { avatar: true, spaced: 'right', src: 'http://semantic-ui.com/images/avatar/small/elliot.jpg', } return <Label as='a' content='Elliot' image={imageProps} /> } export def...
src/components/CloudChamber/CloudChamber.js
phazor/phazor.github.io
import React, { Component } from 'react'; import EmbedComponent from '../EmbedComponent/EmbedComponent'; import './CloudChamber.css' var codePenEmbedString = "<iframe height='500' scrolling='no' src='//codepen.io/phazor-1471862257/embed/GWjmxa/?height=500&theme-id=light&default-tab=result&embed-version=2' frameborder=...
app/jsx/external_apps/components/DeleteExternalToolButton.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - 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...
web/main.js
ByzantineFailure/TweetStream
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
src/routes/error/ErrorPage.js
jhlav/mpn-web-app
/** * 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 PropTypes from 'prop-...
src/LinearProgress/LinearProgress.js
rscnt/material-ui
import React from 'react'; import transitions from '../styles/transitions'; function getRelativeValue(value, min, max) { const clampedValue = Math.min(Math.max(min, value), max); const rangeValue = max - min; const relValue = Math.round(clampedValue / rangeValue * 10000) / 10000; return relValue * 100; } func...
src/svg-icons/action/accessible.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
internals/templates/app.js
Ennovar/clock_it
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/pages/antd/AutoCompleteTest.js
SmiletoSUN/react-redux-demo
import React from 'react'; import { Card } from 'antd'; import DialPlate from '@/components/basicComponent/DialPlate'; export default class CompleteTest extends React.Component { state = { // dataSource: [], }; componentDidMount() { setInterval(this.fetchDataSource, 5000); } componentWillUmount() { ...
node_modules/react-router/es6/RouteContext.js
ottomajik/react-demo
'use strict'; 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 transitions. */ var RouteCon...
src/containers/StyleGuideView.js
GlenHughes/thegymbuddy
/** * Style Guide * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import { View, Alert, ListView, ScrollView, StyleSheet, TouchableOpacity, } from 'react-native'; import { TabViewAnimated, TabBar } from 'react-native-tab-vi...
myCompany/myCompany/static/js/auth.js
Rom4eg/myCompany
import './../sass/auth.sass'; import "foundation-sites/dist/plugins/foundation.core"; import "foundation-sites/dist/plugins/foundation.abide"; import React from 'react'; import ReactDom from 'react-dom'; import { BaseController } from './base.js'; import {Router, Route, browserHistory} from 'react-router'; import { ...
src/js/components/icons/base/BrandAppleAppStore.js
kylebyerly-hp/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...
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js
nathanmarks/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; const LinearProgressExampleSimple = () => ( <LinearProgress mode="indeterminate" /> ); export default LinearProgressExampleSimple;
src/components/ui/Text.js
elarasu/roverz-chat
/** * Text * <Text h1>Hello World</Text> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text } from 'react-native'; // Consts and Libs import { AppStyles } from '../../theme/'; /* C...
src/SplitToggle.js
pandoraui/react-bootstrap
import React from 'react'; import DropdownToggle from './DropdownToggle'; export default class SplitToggle extends React.Component { render() { return ( <DropdownToggle {...this.props} useAnchor={false} noCaret={false} /> ); } } SplitToggle.defaultProps = DropdownToggle...
src/components/orders/orders_table.js
intrepion/hojberg-mastering-reactjs-tutorial
import React from 'react'; import OrderRow from './order_row'; class OrdersTable extends React.Component { render() { const rows = this.props.orders.map((order, i) => { return <OrderRow order={order} key={i} />; }); return ( <table className='orders-table'> ...
src/icons/VolumeUpIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class VolumeUpIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78...
src/modules/App/components/Navigation.js
hdngr/mantenuto
import React from 'react'; import PropTypes from 'prop-types'; import Navbar from 'react-bootstrap/lib/Navbar'; import NavigationHeader from './NavigationHeader'; import NavigationCollapse from './NavigationCollapse'; // a bit hacky const hideNavigation = (props) => { return props.pathname === '/' && !props.authen...
src/index.js
imcvampire/simple-online-form
import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
app/containers/AcquisitionPage/form.telephone.js
rvsiqueira/client
import React from 'react'; import { reduxForm, Field } from 'redux-form/immutable'; import RenderField from 'components/RenderField'; import Button from 'components/Button'; import validate from './validate'; import FormFooter from 'components/FormFooter'; import messages from './messages'; import { FormattedMessage } ...
docs/app/Examples/collections/Grid/Variations/GridStretchedEqualExample.js
jamiehill/stardust
import React from 'react' import { Image, Grid, Segment } from 'stardust' const { Column, Row } = Grid const image = <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> const GridStretchedEqualExample = () => ( <Grid columns='equal'> <Row stretched> <Column> <Segment>1</Segment> ...
techCurriculum/ui/solutions/4.4/src/components/Message.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
chinwag/src/components/Subjects.js
ChinwagMM/ChinwagApp
import React from 'react' import Banner from './Banner' import { Link } from 'react-router' const Subjects = React.createClass({ render() { const subjects = [ { link: 'insurance', title: 'Find health insurance' }, { link: 'food', title...
src/client/components/Header/Header.js
jaimerosales/visual-reports-bim360dc
import AppNavbar from '../Navbar/AppNavbar' import React from 'react' import './Header.scss' class Header extends React.Component { render () { return ( <div> <AppNavbar {...this.props}/> </div> ) } } export default Header
aaf-enrollment/src/components/enrollment/method-authenticators/HOTPMethod.js
MicroFocus/CX
import React from 'react'; import Authenticator from '../Authenticator'; import ShowHidePassword from '../../ShowHidePassword'; import {Accordion} from '../../../ux/ux'; import {generateFormChangeHandler} from '../../../utils/form-handler'; import TextField from '../../TextField'; import t from '../../../i18n/locale-ke...
ajax/libs/react-instantsearch/3.3.2/Dom.js
extend1994/cdnjs
/*! ReactInstantSearch 3.3.2 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define ...
client/src/screens/home/index.js
jmsmrgn/fem-testing-workshop
import React from 'react' import {connect} from 'react-redux' import agent from '../../shared/agent' import Banner from './banner' import MainView from './main-view' import Tags from './tags' const Promise = global.Promise const mapStateToProps = state => ({ ...state.home, appName: state.common.appName, token: ...
demos/todomvc/src/components/Footer/index.js
bdjnk/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, signal} from 'cerebral/tags' import counts from '../../computed/counts' import classnames from 'classnames' const filters = ['All', 'Active', 'Completed'] export default connect({ filter: state`filter`, counts, filterClicked: signal...
src/containers/Full/Full.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; import Header from '../../components/Header/'; import Aside from '../../components/Aside/'; import Footer from '../../components/Footer/'; class Full extends Component { render() { return ( <div className="app"> <Header /> <div className="app-body">...
app/Components/Footer/index.js
ecidi/winterfall
/** * Copyright (c) 2016-present, ecidi. * All rights reserved. * * This source code is licensed under the GPL-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import styles from './styles.css'; class Footer extends React.Component { render() { ...
src/client/app/components/layout/logo.js
LINKIWI/apache-auth
import React from 'react'; import browser from '../../util/browser'; const Logo = (props) => { const onLogoClick = (evt) => browser.push('/login'); return ( <div {...props}> <div className="logo text-center" onClick={onLogoClick}> <div className="bg-gray-70" style={{ height: 35, ...
yycomponent/input-number/InputNumber.js
77ircloud/yycomponent
import React from 'react'; import { InputNumber as _InputNumber } from 'antd'; class InputNumber extends React.Component{ constructor(props){ super(props); } render() { let className=this.props.className; className+=" ant-input-number-handler-hide"; {/*if(this.props.step<1){ className+=" a...
src/components/form/input-radio.js
Vision100IT/v100it-template
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './input.scss'; const InputRadio = ({hasError, label, name, onChange, options, placeholder, required, width}) => { return ( <fieldset className={classnames('form-group', {'has-error': hasError}, st...
src/routes/home/index.js
GLExperiments/GLExperiments
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; impo...
src/components/Payments.js
chatch/stellarexplorer
import React from 'react' import Grid from 'react-bootstrap/lib/Grid' import Panel from 'react-bootstrap/lib/Panel' import Row from 'react-bootstrap/lib/Row' import {injectIntl} from 'react-intl' import PaymentTable from './PaymentTable' import {setTitle} from '../lib/utils' class Payments extends React.Component { ...
src/main/resources/code/react/Apps/ManageRadars/Pages/AddFromPreviousRadarPage/radarDropdownMap/index.js
artieac/technologyradar
import React from 'react'; import { Link } from 'react-router-dom'; export const radarDropdownMap = (handleDropdownSelection) => { const getDisplayName = (rowData) => { return rowData.name + " - " + rowData.formattedAssessmentDate; } return [ { key: 'dropdownItem', render: rowData => { ...
src/containers/DevToolsWindow.js
deevatech/frontend
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
src/encoded/static/components/item-pages/components/FormattedInfoBlock.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { ajax, console, isServerSide, object, analytics, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { PartialList } from '@hms-dbmi-bgm/shared-portal-components/es/components/...
js/components/Main.js
jvalen/react-pleasing-start
import React from 'react'; import { connect } from 'react-redux'; const App = function (props) { return ( <div className="wrapper"> { props.children } </div> ); }; function select(state) { return { data: state }; } export default connect(select)(App);
js/jqwidgets/demos/react/app/dropdownlist/checkboxes/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownList.checkIndex(0); this.refs.myDropDownList.on('checkChange', (event) => { ...
packages/ringcentral-widgets-docs/src/app/pages/Styles/Dropdown/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import SettingsIcon from 'ringcentral-widgets/assets/images/Settings.svg'; import MeetingIcon from 'ringcentral-widgets/assets/images/Meeting.svg'; import ContactIcon from 'ringcentral-widgets/assets/images/Contact.svg'...
src/component.js
macropodhq/axolotl
import React from 'react'; const ELSE_COMPONENT = true; const IF_COMPONENT = false; export default function(name, componentType) { return ( class Variation extends React.Component { static contextTypes = { axo: React.PropTypes.object.isRequired, }; componentDidMount() { this....
client/components/App.js
creativcoder/rio
import React from 'react'; import Dashboard from './dashboard/Dashboard'; import Login from './login/Login'; import {Router, Route, browserHistory } from 'react-router'; import { store } from '../index'; export default class App extends React.Component { constructor(props) { super(props); this.requ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
scyankai/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
app/src/components/highscore/HighscoreList.js
kort/kort-native
import React, { Component } from 'react'; import { ListView, RefreshControl } from 'react-native'; import { connect } from 'react-redux'; import { downloadHighscore } from '../../actions/HighscoreActions'; import { forceViewUpdateHighscore } from '../../actions/NavigationActions'; import HighscoreL...
frontend/src/Slider.js
generalelectrix/color_organist
import React from 'react'; import './Slider.css'; export const StatefulSlider = ({label, onChange, initialValue=0.0, min, max, showValue}) => { const [value, setValue] = React.useState(initialValue) const handleChange = v => { setValue(v) onChange(v) } return ( <Slider label={label} o...
examples/todomvc/index.js
paultannenbaum/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/icons/CameraAltIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class CameraAltIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><circle cx="24" cy="24" r="6.4"/><path d="M18 4l-3.66 4H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.7...
client/App.js
b3j0f/lechangement
/** * Root Component */ import React from 'react'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import PropTypes from 'prop-types'; // Import Routes import routes from './routes'; // Base stylesheet import './main.css'; export default function App(props) { return...
node_modules/react-bootstrap/es/MediaList.js
NathanBWaters/jb_club
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 ...
app/router.js
StefanSchwartze/whatiuse
import React from 'react'; import { Router, browserHistory, createMemoryHistory } from 'react-router' import routes from 'routes'; let history; if (process.env.BROWSER) { history = browserHistory; } else { history = createMemoryHistory(); } export default (<Router history={history}>{routes}</Router>);
submissions/pasieronen/client.js
okmttdhr/flux-challenge
import React from 'react'; import Dispatcher from './Dispatcher'; import * as JediConstants from './JediConstants'; import JediApp from './JediApp'; import * as JediStore from './JediStore'; window.onload = () => Dispatcher.dispatch(JediConstants.START, { firstJediId: 3616, firstJediUrl: "http://localhost:...
src/svg-icons/action/done.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDone = (props) => ( <SvgIcon {...props}> <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/> </SvgIcon> ); ActionDone = pure(ActionDone); ActionDone.displayName = 'ActionDone'; export defaul...
src/components/form/group/index.js
JamesHageman/rangle-elm-starter
import React from 'react'; function FormGroup({ children, testid, ...props}) { return ( <div data-testid={testid} className="py2" {...props}> {children} </div> ); } FormGroup.propTypes = { children: React.PropTypes.node, testid: React.PropTypes.string, }; export default FormGroup;
modules/Router.js
jwaltonmedia/react-router
import React from 'react' import warning from 'warning' import createHashHistory from 'history/lib/createHashHistory' import { createRoutes } from './RouteUtils' import RoutingContext from './RoutingContext' import useRoutes from './useRoutes' import { routes } from './PropTypes' const { func, object } = React.PropTyp...
showcase/plot/grid.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
examples/redirect-using-index/app.js
egobrightan/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/redirect-using-index' }) class App extends React.Component { render() { return ( <div> {this.prop...
packages/containers/src/DeleteResource/DeleteResource.stories.js
Talend/ui
import React from 'react'; import DeleteResource from '.'; /* Actions example The components needs two actions, respectively 'cancel-action' and 'validate-action'. Also require two fields, uri it contains the uri to call and resourceType, the type of resource. --------------------------------------- "actions": { "my:...
admin/client/App/shared/Popout/PopoutPane.js
everisARQ/keystone
/** * Render a popout pane, calls props.onLayout when the component mounts */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: Re...
app/containers/App/index.js
castlemilk/nutry-web
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
node_modules/antd/es/switch/index.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/scenes/home/about/financialStatements/financialStatements.js
tal87/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; import FinancialReport from './financialReport'; const FinancialStatements = () => ( <Section title="Financial Statements" theme="gray"> <FinancialReport name="Sample Report 1" url="#" /> <FinancialReport name="Sample Report ...
src/routes/Processes/components/InstanceViewHeader.js
sljuka/buzzler-ui
import Radium from 'radium' import React from 'react' const InstanceViewHeader = (props) => { const { instance, closeInstance } = props return ( <div style={{ textAlign: 'right' }}> <button onClick={() => closeInstance(instance.name, instance.id)}>x</button> </div> ) } InstanceViewHeade...
src/svg-icons/content/reply-all.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReplyAll = (props) => ( <SvgIcon {...props}> <path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReplyAll = pure(ContentReplyAll); Conte...
src/svg-icons/action/get-app.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGetApp = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); ActionGetApp = pure(ActionGetApp); ActionGetApp.displayName = 'ActionGetApp'; export defau...