path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/router.js
gusdewa/MultiStores
import React from 'react'; /* eslint-disable */ function decodeParam(val) { if (!(typeof val === 'string' || val.length === 0)) { return val; } try { return decodeURIComponent(val); } catch (err) { if (err instanceof URIError) { err.message = `Failed to decode param '${val}'`; err.sta...
pages/about.js
willopez/project-seed
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import Layout from '../components/layout'; export default class About extends Component { static async getInitialProps({ req }) { if (req) { Helmet.renderStatic(); } return { title: 'Ab...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
thuongho/dream-machine
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/chrome/Chrome.js
casesandberg/react-color
import React from 'react' import PropTypes from 'prop-types' import reactCSS from 'reactcss' import merge from 'lodash/merge' import { ColorWrap, Saturation, Hue, Alpha, Checkboard } from '../common' import ChromeFields from './ChromeFields' import ChromePointer from './ChromePointer' import ChromePointerCircle from '...
examples/transitions/app.js
cold-brew-coding/react-router
import React from 'react'; import { Router, Route, Link, History, Lifecycle } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard">Dashboard</Link></li> <li><Link to="/form">Form</Link></li> </ul> {this.props...
app/javascript/components/Accounts/Users/Password.js
luckypike/mint
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import axios from 'axios' // import { deserialize } from 'jsonapi-deserializer' import { path } from '../../Routes' import { useI18n } from '../../I18n' import { useForm, Errors } from '../../Form' import styles from './P...
src/ui/elements/logos/Backbone.js
gouxlord/dev-insight
import React from 'react' var Backbone = React.createClass({ render: function () { return ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 129.08 162" preserveAspectRatio="xMinYMin meet"> <polygon fill="#0071B5" points="108.083,64.441 108.083,39.751 85.755,51.576 64.33,39.25...
app/js/components/content/DropFileComponent.js
theappbusiness/tab-hq
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import GoogleDriveMixin from '../../mixins/GoogleDriveMixin'; const DropFileComponent = React.createClass({ mixins: [GoogleDriveMixin], uploadFile(e) { // console.log(e); }, addLinkFromDrive(elem, params) { this.props.addLink...
stories/default-size/percent-size.js
pionl/react-resizable-box
/* eslint-disable */ import React from 'react'; import Resizable from '../../src'; const style = { display: 'flex', alignItems: 'center', justifyContent: 'center', border: 'solid 1px #ddd', background: '#f0f0f0', }; export default () => ( <Resizable style={style} defaultSize={{ width: '30%'...
src/svg-icons/action/build.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBuild = (props) => ( <SvgIcon {...props}> <path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-...
packages/forms/src/UIForm/fields/FieldTemplate/FieldTemplate.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { useTranslation } from 'react-i18next'; import { Button } from 'react-bootstrap'; import OverlayTrigger from '@talend/react-components/lib/OverlayTrigger'; import Icon from '@talend/react-components/lib/Icon'; im...
analysis/demonhuntervengeance/src/modules/talents/SpiritBombSoulsConsume.js
yajinni/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import BoringSpellValueText from 'parser/ui/BoringSpellValueText'; import Statistic from 'parser/ui/Statistic'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER'; import SPELLS from 'common/SPELLS'; import { SpellLink } ...
src/scenes/Home/Home.js
strues/react-universal-boiler
// @flow import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import type { Connector } from 'react-redux'; import { fetchPosts, fetchPostsIfNeeded } from '../../state/modules/posts'; import Post from '../../components/Post'; import type { PostsReducer, Dis...
app/components/H3/index.js
Cherchercher/Wedding-Llama
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
packages/mineral-ui-icons/src/IconAlarmAdd.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 IconAlarmAdd(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps...
src/src/Components/RulesEditor/components/CustomTime/index.js
ioBroker/ioBroker.javascript
import { TextField } from '@material-ui/core'; import React from 'react'; import cls from './style.module.scss'; import PropTypes from 'prop-types'; import clsx from 'clsx'; const CustomTime = ({ value, style, onChange, className }) => { return <TextField id="time" type="time" onChange={(e)...
src/AffixMixin.js
coderstudy/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; const AffixMixin = { propTypes: { offset: React.PropTypes.number, offsetTop: React.PropTypes.number, offsetBottom: React.PropTypes.number }, getInitialState() { return { a...
fields/types/name/NameColumn.js
suryagh/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; import displayName from 'display-name'; var NameColumn = React.createClass({ displayName: 'NameColumn', propTy...
test/fixtures/fragment.js
zeit/styled-jsx
import React from 'react' export default () => ( <> <p>Testing!!!</p> <p className="foo">Bar</p> <> <h3 id="head">Title...</h3> <React.Fragment> <p>hello</p> <> <p>foo</p> <p>bar</p> </> <p>world</p> </React.Fragment> </> <styl...
app/javascript/mastodon/features/notifications/components/filter_bar.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
src/svg-icons/device/signal-cellular-3-bar.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar); DeviceS...
src/pages/Registry.js
btthomas/blakeandanna
import React from 'react' import popup from '../popup.js'; const links = [ { url: 'https://www.crateandbarrel.com/gift-registry/anna-hunter-and-blake-thomas/r5729048', imgSrc: 'https://images.crateandbarrel.com/is/image/Crate/WebsiteHeaderLogo/fmt=png-alpha/170805043136/WebsiteHeaderLogo.jpg' }, { ur...
client/react/panel/inputs/InputEditableDateTimeField.js
uclaradio/uclaradio
// InputEditableDateTimeField.js import React from 'react'; import { ButtonGroup, DropdownButton, MenuItem, Input, Glyphicon, } from 'react-bootstrap'; import Dates from '../../common/Dates'; /** * Show current saved value for day/time and let user update data and submit changes * * @prop title: form titl...
server/sonar-web/src/main/js/apps/account/components/Password.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
docs/app/Examples/views/Item/Content/ItemExampleLink.js
aabustamante/Semantic-UI-React
import React from 'react' import { Image as ImageComponent, Item } from 'semantic-ui-react' const paragraph = <ImageComponent src='/assets/images/wireframe/short-paragraph.png' /> const ItemExampleLink = () => ( <Item.Group> <Item> <Item.Image size='tiny' src='/assets/images/wireframe/image.png' /> ...
tp-3/euge/src/index.js
jpgonzalezquinteros/sovos-reactivo-2017
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root from './components/Root'; require('./favicon.ico'); // Tell webpack to load favicon.ico render( <AppContainer> <Root/> </AppContainer>, document.ge...
pootle/static/js/shared/components/AutosizeTextarea.js
evernote/zing
/* * Copyright (C) Pootle contributors. * Copyright (C) Zing contributors. * * This file is a part of the Zing 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 autosize from 'au...
plugins/react/frontend/components/controls/base/ArrayControl/ConstraintsForm/index.js
carteb/carte-blanche
import React from 'react'; import controlTypes from '../../../../CustomMetadataForm/controlTypes'; import getControl from '../../../../../utils/getControl'; import renderConstraintForm from './renderConstraintForm'; import Row from '../../../../form/Grid/Row'; import LeftColumn from '../../../../form/Grid/LeftColumn'; ...
app/components/Facebook.js
vietvd88/developer-crawler
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Facebook.css'; import SortTable from './SortTable' import { Button, FormControl, FormGroup, ControlLabel } from 'react-bootstrap'; export default class Home extends Component { constructor(props) { supe...
packages/server/src/core/renderers.js
warebrained/basis
import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; // renderReactView export default (res, view, title, componentType, props) => { const element = React.createElement(componentType, props, null); const markup = renderToStaticMarkup(element); res.render(view, { title, markup });...
clients/packages/admin-client/src/pages/admin/mobilizations/launch/page.js
nossas/bonde-client
import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import * as paths from '../../../../paths'; import * as MobActions from '../../../../mobrender/redux/action-creators'; import { Loading } from '../../../../components/await'; import MobSelectors from '../../../../mobrender/redux/sele...
src/parser/deathknight/blood/modules/features/BoneShield.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/oth...
app/javascript/mastodon/components/animated_number.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedNumber } from 'react-intl'; import TransitionMotion from 'react-motion/lib/TransitionMotion'; import spring from 'react-motion/lib/spring'; import { reduceMotion } from 'mastodon/initial_state'; const obfuscatedCount = count => { if (co...
src/index.js
jcxk/ethercity
import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './container/Root'; import configureStore from './store/configureStore'; import { syncHistoryWithStore } from 'react-router-redux'; import inje...
ui/src/pages/404.js
danielbh/danielhollcraft.com-gatsbyjs
import React from 'react' export default ({ data }) => { return ( <section id="one"> <div className="container"> <header className="major" style={{paddingBottom: '45vh'}}> <h2>404 error!</h2> </header> </div> </section> ) }
src/components/project/ProjectView.js
omgunis/portfolio
import React from 'react'; {/* View for single project, /project/:id, imported into ManageProjectPage */} const ProjectView = ({ project }) => { return ( <form> <h1>{ project.title }</h1> </form> ); }; ProjectView.propTypes = { project: React.PropTypes.object.isRequired }; export default ProjectV...
modules/Route.js
RickyDan/react-router
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; import warning from 'warning'; var { string, bool, func } = React.PropTypes; /** * A <Route> is used to declare which components are rendered ...
client/modules/App/__tests__/Components/Footer.spec.js
trantuthien/React-Test
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 ...
src/common/components/Routes.js
GarciaEdgar/firstReactApplication
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import LoginPage from '../../pages/login/page'; import HomePage from '../../pages/home/page'; export default ( <Route path="/" component={App}> <IndexRoute component={LoginPage} /> <Route path="home" compo...
app/javascript/src/pages/settings/VerificationView.js
michelson/chaskiq
import React from 'react' import Prism from 'prismjs' import { connect } from 'react-redux' import FilterMenu from '../../components/FilterMenu' import Button from '../../components/Button' import Input from '../../components/forms/Input' function VerificationView({app}){ const [currentLang, setCurrentLang] = Reac...
auth/src/components/LoginForm.js
carlosnavarro25/calculadora
import React, { Component } from 'react'; import { Text } from 'react-native'; import firebase from 'firebase'; import { Button, Card, CardSection, Input, Spinner } from './common'; class LoginForm extends Component { state = { email: '', password: '', error: '', loading: false }; onButtonPress(){ const { ema...
src/Dropdown/__tests__/Dropdown_test.js
react-fabric/react-fabric
import React from 'react' import { render, mount } from 'enzyme' import test from 'tape' import Dropdown from '..' import events from '../../util/events.js' const defaultOptions = [ { label: 'Foo', value: 'foo' }, { label: 'Bar', value: 'bar' } ] test('Dropdown', t => { t.ok(Dropdown, 'export') t.equal(Dropd...
src/components/GoogleMapContainer/RichMarker.js
joelvoss/react-gmaps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOMServer from 'react-dom/server'; import createElementFromString from 'utilities/createElementFromString'; import CustomMarker from 'components/CustomMarker'; /** * This component represents an overlay view. */ class RichMark...
src/app.js
fjoder/indecision-app
import React from 'react'; import ReactDOM from 'react-dom'; import IndecisionApp from './components/IndecisionApp'; import 'normalize.css/normalize.css'; import './styles/styles.scss'; ReactDOM.render(<IndecisionApp />, document.getElementById('app'));
src/svg-icons/maps/train.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTrain = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1....
src/assets/js/react/components/FontManager/AddFont.js
GravityPDF/gravity-forms-pdf-extended
/* Dependencies */ import React from 'react' import PropTypes from 'prop-types' import { sprintf } from 'sprintf-js' /* Components */ import FontVariant from './FontVariant' import AddUpdateFontFooter from './AddUpdateFontFooter' /** * @package Gravity PDF * @copyright Copyright (c) 2021, Blue Liquid Designs ...
src/svg-icons/action/note-add.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionNoteAdd = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </SvgIcon> );...
index.ios.js
denistakeda/LifeBalance
import React from 'react'; import { AppRegistry } from 'react-native'; import App from './src/mobile/App'; const LifeBalance = () => { return ( <App /> ); }; AppRegistry.registerComponent('LifeBalance', () => LifeBalance); export default LifeBalance;
lib/ui/core.js
Markcial/electro-corder
import React from 'react'; import range from '../misc/utils'; export class Button extends React.Component { constructor(props) { super(props); this.state = { label: props.label, click: props.click }; } click (evt) { this.state.click(evt); } render() { return ( <button...
app/javascript/mastodon/components/status_content.js
alarky/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import escapeTextContentForBrowser from 'escape-html'; import PropTypes from 'prop-types'; import emojify from '../emoji'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permal...
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2018-01-11/src/main/js-surface-react-native.js
js-works/js-surface
import adaptReactLikeComponentSystem from './adaption/adaptReactLikeComponentSystem'; import React from 'react'; import ReactNative from 'react-native'; const { createElement, defineComponent, isElement, mount, unmount, Adapter, Config } = adaptReactLikeComponentSystem({ name: 'react-...
src/routes/gallery/Gallery.js
malinowsky/dataroot_03
/** * 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-...
test/test_helper.js
YacYac/ReduxSimpleStarter
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...
src/components/cart/cartCheckOut/CartCheckOutListItemComponent.js
bluebill1049/cart
'use strict'; import React from 'react'; require('styles/cart/cartCheckOut/CartCheckOutListItem.scss'); class CartCheckOutListItemComponent extends React.Component { constructor(props) { super(props) } render() { return ( <li className="cartlistitem-component clearfix"> <img src={this.pr...
src/components/SegmentedControl.js
pairyo/elemental
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
src/app.react.js
JasonStoltz/test-runner-demo
import {connect} from 'react-redux'; import {List} from 'immutable'; import React from 'react'; import Promise from 'bluebird'; import PureComponent from 'react-pure-render/component'; import TestsService from './model/test'; import mapStateToProps from './lib/mapStateToProps'; import mapDispatchToProps from './lib/ma...
src/components/Scheme/HypertensionC.js
lethecoa/work-order-pc
import React from 'react'; import {Form, InputNumber, Row, Col} from 'antd'; import styles from './Scheme.less'; const FormItem = Form.Item; const formItemLayout = { labelCol: { xs: { span: 24 }, sm: { span: 8 }, }, wrapperCol: { xs: { span: 24 }, sm: { span: 16 }, }, }; class HypertensionC extends React....
src/components/pages/NotFoundPage.js
mm-taigarevolution/tas_web_app
import React from 'react'; import { Link } from 'react-router-dom'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
app/views/Homepage/components/RetroTitanic.js
herereadthis/redwall
import React from 'react'; import AppConstants from 'AppConstants'; export default class RetroTitantic extends React.Component { constructor() { super(); } componentWillMount() { } componentDidMount() { } render() { var titanticStyle; titanticStyle = { ...
src/js/component/ClearCompleted.js
dtk0528/TODOs
import React, { Component } from 'react'; class ClearCompleted extends Component { render() { let clearButton = null; if (this.props.itemCount > 0) { clearButton = ( <button className="clear-completed" onClick={ this.props.onButtonClick } >Clear</button> ); ...
src/mobile/routes.js
Perslu/rerebrace
import chalk from 'chalk'; import { injectReducer } from './redux/reducers'; import React from 'react'; import { Route, IndexRoute } from 'react-router/es6'; import App from './App' import GalleryView from './public/containers/GalleryView'; import ProfileView from './public/containers/ProfileView'; // import Home from...
app/javascript/mastodon/components/radio_button.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class RadioButton extends React.PureComponent { static propTypes = { value: PropTypes.string.isRequired, checked: PropTypes.bool, name: PropTypes.string.isRequired, onChange: PropTypes....
client/src/components/Polls.js
NicholasAsimov/voting-app
import React from 'react'; import { connect } from 'react-redux'; import Poll from './Poll'; import { Link } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; import { ListGroup, ListGroupItem } from 'react-bootstrap'; class Polls extends React.Component { render() { return ( <di...
src/icons/AndroidAdd.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidAdd extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_7_"> <g> <path d="M416,277.333H277.333V416h-42.666V277.333H96v-42.666h138.667V96h42.666v138.667H416V277.333z"></...
src/components/GroceryList.js
clayhan/reactserver
import React from 'react'; export default class GroceryList extends React.Component { constructor(props) { super(props); this.state = { clickedItems: [] }; this.handleClick = this.handleClick.bind(this); } handleClick(e) { const clickedItems = this.state.clickedItems.slice(); clic...
src/Containers/Top10/Top10.js
rahulp959/airstats.web
import React from 'react' import {connect} from 'react-redux' import TableTop from './TableTop/TableTop' import './Top10.scss' import { fetchTop10 } from '../../ducks/top10.js' let top10Dispatcher const refreshTime = 60 * 30 * 1000 // Once per half-hour class Top10 extends React.Component { componentDidMount () { ...
src/router.js
ITenTeges/portfolioPage
/** * 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'; ...
examples/huge-apps/routes/Course/components/Course.js
AnSavvides/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
components/Login/ReviseUser.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import {navigateAction} from 'fluxible-router'; import {connectToStores} from 'fluxible-addons-react'; import checkEmail from '../../actions/user/registration/checkEmail'; import checkUs...
Realization/frontend/czechidm-core/src/components/advanced/ProfileInfo/ProfileInfo.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import * as Basic from '../../basic'; import { ProfileManager } from '../../../redux'; import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo'; import EntityInfo from '../EntityInfo/EntityInfo'; import Two...
app/components/App/App.js
Tonnu/workflows-ecs-ecr-demo
import React from 'react'; import createStore from 'lib/createStore'; import { Provider } from 'react-redux'; import HelloApp from 'components/HelloApp/HelloApp'; const store = createStore(); class App extends React.Component { render() { return ( <Provider {...{ store }}> <HelloApp/> </P...
src/containers/DevTools/DevTools.js
svsool/react-redux-universal-hot-example
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 /...
app/javascript/mastodon/features/community_timeline/index.js
ebihara99999/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../ui/components/column'; import { refreshTimeline, updateTimeline, deleteFromTimelines, connectTimeline, disconne...
features/filmStrip/components/web/DominantSpeakerIndicator.js
jitsi/jitsi-meet-react
import React, { Component } from 'react'; import Icon from 'react-fontawesome'; import { styles } from './styles'; /** * Thumbnail badge showing that the participant is the dominant speaker in * the conference. */ export class DominantSpeakerIndicator extends Component { /** * Implements React's {@link Co...
src/svg-icons/av/video-label.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoLabel = (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 13H3V5h18v11z"/> </SvgIcon> ); AvVideoLabel = pure(AvVideoLabel); AvVid...
examples/todomvc/containers/Root.js
dherault/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js
timlogemann/create-react-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'; async function load() { return [ { id: 1, name: '1'...
src/Components/SearchHeader.stories.js
elderfo/elderfo-react-native-components
import React from 'react'; import { Text, View } from 'react-native'; import { storiesOf, action, linkTo, } from '@kadira/react-native-storybook'; import { Container, SearchHeader } from '../'; storiesOf('SearchHeader', module) .addDecorator(story => ( <Container> {story()} </Container...
examples/src/app.js
yonaichin/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import Contributors from './components/Contributors'; import GithubUsers from './components/GithubUsers'; import CustomComponents from './components/CustomComponents'; import CustomRender f...
src/app/components/team/TeamData/TeamDataComponent.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Box from '@material-ui/core/Box'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import Card from '@material-ui/core/Card'; import CardContent from ...
docs/src/NavMain.js
adampickeral/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
src/admin/BedChart.js
ocelotconsulting/global-hack-6
/* eslint no-new: "off" */ import React from 'react' import { v4 } from 'uuid' import ChartKey from './ChartKey' import Row from 'react-bootstrap/lib/Row' import Col from 'react-bootstrap/lib/Col' import ChartistGraph from 'react-chartist' export default class BedChart extends React.Component { constructor(props) { ...
src/components/auth/accountpage.js
Hommasoft/wappuapp-adminpanel
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import * as Auth from '../../actions/auth'; class AccountPage extends Component { handleFormSubmit({ newpassword, oldpassword }) { this.props.changepassword({ newpassword, oldpassword ...
src/plugins/position/components/SpacerRow.js
joellanciaux/Griddle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from '../../../utils/griddleConnect'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import withHandlers from 'recompose/withHandlers'; co...
node_modules/react-bootstrap/es/ModalBody.js
firdiansyah/crud-req
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 ...
imports/ui/components/Routes/Authenticated.js
haraneesh/mydev
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; /* const Authenticated = ({ layout: Layout, roles, authenticated, component, ...rest }) => ( <Route {...rest} render={props => ( authenticated ? (<Layout {...props} i...
packages/mcs-lite-ui/src/DataChannelAdapter/DataChannelAdapter.example.js
MCS-Lite/mcs-lite
import React from 'react'; import styled from 'styled-components'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import { action } from '@storybook/addon-actions'; import DataChannelCard from '../DataChannelCard'; import DATA_CHANNELS from './API'; import DataChannelAda...
src/docs/components/header/HeaderExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Header from 'grommet/components/Header'; import Title from 'grommet/components/Title'; import Search from 'grommet/components/Search'; import Menu from 'grommet/components/Menu'; import Box from 'gromm...
packages/benchmarks/src/index.js
css-components/styled-components
/* eslint-disable no-param-reassign */ /* global document */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './app/App'; import impl from './impl'; import Tree from './cases/Tree'; import SierpinskiTriangle from './cases/SierpinskiTriangle'; const implementations = impl; const packageNam...
app/routes/routes/PaySuccess/components/PaySuccess.view.js
bugknightyyp/leyizhu
import React from 'react' import {observer} from 'mobx-react' import {Route, Link} from 'react-router-dom' import {IMAGE_DIR, TOKEN, GET_HOTEL_INFO, RESPONSE_CODE_SUCCESS} from 'macros' import {setParamsToURL, dateToZh} from 'utils' import './paySuccess.less' export default observer( (props) => ( <div className=...
frontend/src/Factura/FacturaTable.js
GAumala/Facturacion
import React from 'react'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'; import TextField from 'material-ui/TextField'; import IconButton from 'material-ui/IconButton'; import Delete from 'material-ui/svg-icons/action/delete'; import Math fro...
lib/routes.js
codevlabs/filepizza
import React from 'react' import { Route, DefaultRoute, NotFoundRoute, RouteHandler } from 'react-router' import App from './components/App' import DownloadPage from './components/DownloadPage' import UploadPage from './components/UploadPage' import ErrorPage from './components/ErrorPage' export default ( <Route ha...
2016-04-declarative-charts/assets/highcharts.js
rosko/slides
import React from 'react'; import IframeExample from '../components/IframeExample'; function Highcharts() { return <IframeExample html={`<html><head> <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> <script src="https://code.highcharts.com/highcharts.js"></script> ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Rmutek/rmutek.github.io
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'));
packages/ui/src/components/Sprinkle.stories.js
dino-dna/donut
import React from 'react' import { storiesOf } from '@storybook/react' import Sprinkle from './Sprinkle' export default storiesOf('Sprinkle', module) .add('basic', () => { return ( <svg viewport='0 0 60 60' width='60' height='60'> <Sprinkle /> </svg> ) }) .add('rotated', () => { return ( <svg v...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
JeeLiu/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const GroupProfileMembers = React.createClass(...
src/DataTables/DataTablesTableBody.js
hyojin/material-ui-datatables
import React from 'react'; import PropTypes from 'prop-types'; import {TableBody} from 'material-ui/Table'; import ClickAwayListener from 'material-ui/internal/ClickAwayListener'; class DataTablesTableBody extends TableBody { static muiName = 'TableBody'; static propTypes = { /** * @ignore * Set to ...
src/svg-icons/action/settings-backup-restore.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBackupRestore = (props) => ( <SvgIcon {...props}> <path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2....
server/middleware/reactApplication/index.js
dariobanfi/react-avocado-starter
import React from 'react'; import Helmet from 'react-helmet'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import { StaticRouter } from 'react-router-dom'; import { ServerStyleSheet } from 'styled-components'; import config from '../../../config'; import ServerHTML from './ServerHTML'; imp...
src/components/Feedback/Feedback.js
seriflafont/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...