path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/RevealAuction/RevealAuctionJsonDialog.js
PhyrexTsai/ens-bid-dapp
import React from 'react'; import Dialog from 'material-ui/Dialog'; import Slide from 'material-ui/transitions/Slide'; import IconButton from 'material-ui/IconButton'; import CloseIcon from 'material-ui-icons/Close'; import Button from 'material-ui/Button'; import Card from 'material-ui/Card'; import TextField from 'ma...
src/svg-icons/action/lock-open.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOpen = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ...
modules/react-docs/src/components/MarkdownTitle.js
conorhastings/react-color
/* jshint node: true, esnext: true */ "use strict"; import React from 'react'; import ReactCSS from 'reactcss'; class MarkdownTitle extends ReactCSS.Component { constructor() { super(); this.state = { hover: false, }; this.handleHover = this.handleHover.bind(this); } classes() { retu...
src/routes.js
jseminck/jseminck-be-main
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import LinksPage from "./components/Links"; import Game from "./components/Translation/Game"; import LoginPage from './components/Login'; import NotFoundPage from './components/NotFoundPage.js'; import Ser...
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
frnk94/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
server/sonar-web/src/main/js/apps/overview/main/components.js
vamsirajendra/sonarqube
import moment from 'moment'; import React from 'react'; import { Timeline } from './timeline'; export const Domain = React.createClass({ render () { return <div className="overview-card">{this.props.children}</div>; } }); export const DomainTitle = React.createClass({ render () { if (this.props.linkT...
src/svg-icons/image/photo-camera.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24...
fixtures/ssr/src/index.js
ArunTesco/react
import React from 'react'; import {createRoot} from 'react-dom'; import App from './components/App'; let root = createRoot(document, {hydrate: true}); root.render(<App assets={window.assetManifest} />);
src/components/VmActions/WindowsRdpButton.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { getRDP } from '_/actions' import { isWindows } from '_/helpers' import { canConsole } from '_/vm-status' /** * Button to send a RDP connection file to the user for a Windows VM. */ const WindowsRdpButton = ({...
src/components/Spinner.js
merrettr/school-ui
import React from 'react'; const Spinner = ({ scale = 1, visible = true }) => visible ? <div style={{ display: 'flex', justifyContent: 'center' }}> <i className="fa fa-circle-o-notch fa-spin fa-3x fa-fw" style={{ fontSize: `${scale * 3}em` }}/> <span className="sr-only">Loading...</span> </div> : <div>...
src/svg-icons/image/photo-album.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </Sv...
app/javascript/mastodon/features/ui/components/actions_modal.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
examples/js/shopping-list-redux-hoc/client/containers/App.js
reimagined/resolve
import React from 'react' import { renderRoutes } from 'react-router-config' import Header from './Header' const App = ({ route }) => ( <div> <Header title="ReSolve Shopping List Example" name="Shopping Lists Example" favicon="/favicon.png" css={['/bootstrap.min.css', '/fontawesome.min.css...
client/node_modules/uu5g03/dist-node/forms-v3/select.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, LsiMixin, Tools} from './../common/common.js'; import Backdrop from './../bricks/backdrop.js'; import Span from './../bricks/span.js'; import Link from './../bricks/link.js'; import ItemList from './internal/item-list.js'; import Label from...
react-native/nativebase/js/components/semana/DayListItem.js
lemol/diario-escola-sabatina
import React, { Component } from 'react'; import { TouchableOpacity, View } from 'react-native'; import { Text, Button, Icon, H3, H2, H1, List, ListItem } from 'native-base'; import { Grid, Row, Col } from 'react-native-easy-grid'; import styles from './styles'; export default function({ dia: { tema, data }, openDay...
assets/js/components/score.js
CandN/eliscore
import React from 'react' class Score extends React.Component { render () { const { score, opponentScore } = this.props let scoreClass if (score === opponentScore) { scoreClass = 'draw' } else if (score < opponentScore) { scoreClass = 'lost' } else { scoreClass = 'win' } ...
src/components/About/Bio/Bio.js
jumpalottahigh/jumpalottahigh.github.io
import React from 'react' import styled from 'styled-components' import { Link } from 'gatsby' import Button from '../../elements/Button/Button.js' import H2 from '../../elements/H2/H2.js' import CenteredDiv from '../../elements/CenteredDiv/CenteredDiv.js' const StyledBio = styled.section` background: #dedede; ` co...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
MaleSharker/Qingyan
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/components/product/item.js
RamEduard/admin-lte-express
/** * Created by Ramon Serrano <ramon.calle.88@gmail.com> * Date: 5/24/16 * Time: 2:03 PM */ import React from 'react'; import { Link } from 'react-router'; import AppStore from '../../stores/app-store'; import StoreWatchMixin from '../../mixins/StoreWatchMixin'; import AppActions from '../../actions/app-actions' ...
react-flux/demo01/js/components/UXKit/Icon.js
majunbao/xue
import React from 'react'; class Icon extends React.Component { render() { return ( <i></i> ) } } // × // ✓
StateProps/main.js
tareque20/react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.jsx'; ReactDOM.render(<App />, document.getElementById('app'));
server/sonar-web/src/main/js/apps/projects/header.js
vamsirajendra/sonarqube
import React from 'react'; import CreateView from './create-view'; export default React.createClass({ propTypes: { hasProvisionPermission: React.PropTypes.bool.isRequired }, createProject() { new CreateView({ refresh: this.props.refresh }).render(); }, renderCreateButton() { if (!this...
src/client/pages/search-page.react.js
lassecapel/este-isomorphic-app
import React from 'react'; import DocumentTitle from 'react-document-title'; import SearchBox from '../search/search-box.react'; import ProductList from '../products/product-list.react'; import SearchMessage from '../search/search-message.react'; import Pagination from '../products/pagination.react'; import {getProduc...
src/ReactBoilerplate/Scripts/components/TwoFactor/VerifyCodeForm.js
theonlylawislove/react-dot-net
import React from 'react'; import Form from 'components/Form'; import { reduxForm } from 'redux-form'; import { Input } from 'components'; import { verifyCode } from 'redux/modules/account'; class VerifyCodeForm extends Form { modifyValues(values) { return { ...values, provider: this.props.sentCodeWi...
src/components/Footer.js
vitorbarbosa19/ziro-online
import React from 'react' import Link from 'gatsby-link' import { buttonStyleBright } from '../styles/styles' export default (props) => ( <div> {props.page !== '/acesso' ? <div style={{ position: 'fixed', bottom: '0', width: '100%', display: 'flex', justifyContent: 'cent...
react-dev/pages/post.js
575617819/yanghang
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import { blueGrey800, grey50, teal900, green900, green500, teal500, cyan500 } from 'material-ui/styles/colors'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/Mui...
packages/strapi-plugin-content-manager/admin/src/containers/Edit/index.js
lucusteen/strap
/* * * Edit * */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import _ from 'lodash'; import { router } from 'app'; import { define } from 'i18n'; import Container from 'components/Container'; import EditForm from 'components/EditForm'; im...
src/components/Day.js
mohebifar/react-persian-datepicker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { persianNumber } from '../utils/persian'; const styles = { wrapper: {}, button: { outline: 'none', cursor: 'pointer' } }; export default class Day extends Component { static propT...
entry_types/scrolled/package/spec/support/pageObjects.js
tf/pageflow
import React from 'react'; import {renderInEntry} from './rendering'; import {Entry} from 'frontend/Entry'; import foregroundStyles from 'frontend/Foreground.module.css'; import {loadInlineEditingComponents} from 'frontend/inlineEditing'; import {api} from 'frontend/api'; import {act, fireEvent, queryHelpers, queries...
app/containers/Record/index.js
Omnicrola/panoptes-react
/* * * Record * */ import React from 'react'; import {connect} from 'react-redux'; import Helmet from 'react-helmet'; import selectRecord from './selectors'; import {FormattedMessage} from 'react-intl'; import messages from './messages'; import TimeForm from 'components/TimeForm'; import TimeEntryList from 'compon...
node_modules/@expo/vector-icons/vendor/react-native-vector-icons/lib/tab-bar-item-ios.js
jasonlarue/react-native-flashcards
import { isEqual, pick } from 'lodash'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { TabBarIOS } from './react-native'; export default function createTabBarItemIOSComponent( IconNamePropType, getImageSource ) { return class TabBarItemIOS extends Component { static pr...
src/containers/Create_New_Group.js
giladgreen/pokerStats
import React, { Component } from 'react'; import { addGroup,deleteGroup } from '../actions/index'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import pokerIcons from '../components/pokerIcons'; import { browserHistory } from 'react-router'; import {cloneDeep} from 'lodash'; import xxx...
src/shipit/frontend/src/views/NewRelease/index.js
La0/mozilla-relengapi
import React from 'react'; import { ButtonToolbar, Button, FormGroup, FormControl, ControlLabel, InputGroup, DropdownButton, MenuItem, Collapse, Modal, Tooltip, OverlayTrigger, } from 'react-bootstrap'; import { object } from 'prop-types'; import { NavLink } from 'react-router-dom'; import * as moment from 'moment'...
server/sonar-web/src/main/js/app/utils/startReactApp.js
Builders-SonarSource/sonarqube-bis
/* * 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...
react-flux-mui/js/material-ui/src/svg-icons/maps/local-movies.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMovies = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </Svg...
app/components/FilterFields/DateField.js
barbalex/kapla3
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormGroup, InputGroup, FormControl, ControlLabel, Glyphicon } from 'react-bootstrap'; import moment from 'moment'; import DatePicker from 'react-datepicker'; import { observer } from 'mobx-react'; import compose from 'recom...
src/components/containers/RegisterContainer.js
teamNOne/showdown
import React from 'react'; import UserActions from '../../actions/UserActions'; import FormActions from '../../actions/FormActions'; import FormStore from '../../stores/FormStore'; import Register from '../user/Register'; import Validator from '../../utilities/FormValidator'; export default class RegisterContainer ext...
js/index.js
sambev/fe-boot
'use strict'; import React from 'react'; require('css/base.css'); var TestComponent = React.createClass({ render () { return (<div> <h1>It works!</h1> <p> This is some text</p> </div>); } }); React.render(<TestComponent />, document.querySelector('#content'));
Console/app/node_modules/rc-tooltip/es/Tooltip.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runt...
stories/sync.js
wcastand/okami
import React from 'react' import {storiesOf} from '@storybook/react' import frLocale from 'date-fns/locale/fr' import parse from 'date-fns/parse' import isSameDay from 'date-fns/isSameDay' import {Div} from 'glamorous' import Calendar from '../src/' import DailyCalendar from '../src/components/daily' import Weekly fr...
src/svg-icons/places/all-inclusive.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAllInclusive = (props) => ( <SvgIcon {...props}> <path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7...
src/main.js
thanhiro/techmatrix
import React from 'react'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { useRouterHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import makeRoutes from './routes'; import Root from './containers/Root'; import co...
client/index.js
BattleSneks/BattleSneks
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import App from './containers/App.jsx'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root'), );
src/containers/ContactForm.js
jp7internet/react-apz
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { reduxForm, Field } from 'redux-form'; import TextInput from '../components/TextInput'; class ContactForm extends Component { required(value) { return value && value.length > 0 ? undefined : 'This field is required.'; } ...
docs/src/_bilprospekt_radio_component.js
Bilprospekt/bilprospekt-ui
import React from 'react'; import _ from 'underscore'; import {Radio} from 'bilprospekt-ui'; const {RadioButton, RadioButtonGroup} = Radio; const RadioDoc = React.createClass({ render() { return ( <div id='RadioDoc'> <p className="table-header-label">Radio</p> <...
pages/error/index.js
sunilbandla/caniuse-inmyapp
/** * 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'; ...
packages/benchmarks/reshadow/client/Table.js
A-gambit/CSS-IN-JS-Benchmarks
import React from 'react'; import styled from 'reshadow'; const Table = ({table, toPercent}) => styled` table { display: table; margin: 10px 10px 10px 0; } row { display: table-row; } `( <table as="div"> {table.map((row, i) => ( <row> {row.map((x, j) => styled` cell {...
src/stateAndProps.js
Zyj163/React_learning
/** * Created by ddn on 16/11/7. */ import React from 'react'; import ReactDOM from 'react-dom'; //自定义控件 //方式一:函数 //function Welcome(props){ // return <h1>Hello, {props.name}</h1> //} //方式二:类(ES6 class) class Welcome extends React.Component { render() { return <h1>Hello, {this.props.name}</h1>; } ...
src/components/ThankYou/ThankYou.js
dorono/resistance-calendar-frontend
import React from 'react'; import { Link } from 'react-router-dom'; import styles from './ThankYou.sass'; const ThankYou = () => { return ( <div className={styles.thankYouWrapper}> <div className={styles.textWrapper}> <h1>Thank you! Your event has been submitted for review.</h1> <Link to="...
docs/src/app/components/pages/customization/StylesOverridingInlineExample.js
mtsandeep/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingInlineExample = () => ( <Checkbox name="StylesOverridingInlineExample" label="Checked the mail" style={{ width: '50%', margin: '0 auto', border: '2px solid #FF9800', backgroundColor: '#ff...
components/reports/ConsumptionCategoryPieChart.js
hutsi/bookkeeping
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import withWidth from '@material-ui/core/withWidth'; import Chart from 'react-google-charts'; class ConsumptionCategoryPieChart extends Component { static propTypes = { data: PropTypes.instanceOf(Array), width: PropTypes.oneOf(['x...
lib/components/DownloadPage.js
gramakri/filepizza
import ChromeNotice from './ChromeNotice' import DownloadActions from '../actions/DownloadActions' import DownloadButton from './DownloadButton' import DownloadStore from '../stores/DownloadStore' import ErrorPage from './ErrorPage' import ProgressBar from './ProgressBar' import React from 'react' import Spinner from '...
src/app/index.js
shawnmclean/redux-react-es6-tutorial
import React from 'react' import App from './containers/App' React.render( <App />, document.getElementById('app') )
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
christiantinauer/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'; import load from 'absoluteLoad'; export default class ext...
src/components/Layout/Header/index.js
Apozhidaev/terminal.mobi
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import cx from 'classnames'; import './styles.css'; import Archive from './Archive'; class Header extends Component { constructor(props) { super(props); this.state = { collapsed: tr...
react/features/video-menu/components/native/ConnectionStatusComponent.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { Text, View } from 'react-native'; import { withTheme } from 'react-native-paper'; import { Avatar } from '../../../base/avatar'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { BottomSheet, isDialogOpen, hideDialog } from '../../....
src/layouts/CoreLayout/CoreLayout.js
TheModevShop/craft-app
import React from 'react'; import {connect} from 'react-redux'; import Header from '../../components/Header'; import {teardownSession} from '../../store/authentication'; import _ from 'lodash'; import './core-layout.less'; import '../../styles/core.less'; export const CoreLayout = (props) => { const path = _.get(pro...
src/svg-icons/image/crop-16-9.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop169 = (props) => ( <SvgIcon {...props}> <path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/> </SvgIcon> ); ImageCrop169 = pure(ImageCrop169); ImageCr...
packages/reactor-kitchensink/src/examples/Layouts/vbox/vbox.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel, Spacer } from '@extjs/ext-react'; import colors from '../../colors'; export default class VBoxLayoutExample extends Component { render() { const panelProps = { height: 175, margin: '0 0 40 0', default...
src/js/components/icons/base/Install.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/layout.js
akabekobeko/akabeko.me
import React from 'react' import PropTypes from 'prop-types' import { Helmet } from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' const Layout = ({ children }) => ( <StaticQuery query={graphql` query SiteTitleQuery { site { siteMetadata { title blogT...
admin/client/App/components/Navigation/Mobile/ListItem.js
brianjd/keystone
/** * A list item of the mobile navigation */ import React from 'react'; import { Link } from 'react-router'; const MobileListItem = React.createClass({ displayName: 'MobileListItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropTypes.string.isRe...
src/components/withAxios.js
sheaivey/react-axios
import React from 'react' import PropTypes from 'prop-types' import Request from './Request' import { AxiosContext } from './AxiosProvider' export const withAxios = (mixed = {}) => { if(typeof mixed === 'function') { // basic axios provider HoC const WrappedComponent = mixed return (props) => { con...
tests/lib/rules/vars-on-top.js
jamestalmage/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
src/svg-icons/notification/network-check.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkCheck = (props) => ( <SvgIcon {...props}> <path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28...
client/components/AppLoading.js
kuip/oro-devi
import React from 'react'; AppLoading = React.createClass({ render: function render() { return React.createElement("p"); } });
src/components/appStructure/additionalInfo/newBlogs.js
Jguardado/HiRproject
import React from 'react'; const NewBlogs = () => { return ( <div className='newcomp two'> <div className="box-heading">New Blog Posts</div> <h4> <ul className="list-items"><a href='https://medium.com/@juanguardado/redux-single-source-of-truth-e1fe1fb6ffec#.k7bgyf2uu'>Redux: Art of the State<...
src/routes.js
Capgemini/react-scaffold
import React from 'react'; import { Route, DefaultRoute, NotFoundRoute } from 'react-router'; import NotFound from './components/NotFoundPage'; import Home from './components/Home'; import About from './components/About'; import App from './components/App'; export default ( <Route name="app" path="/" handler={ App ...
src/renderApp.js
ender74/yart
import React from 'react' import ReactDOM from 'react-dom' import AppView from './views/app/AppView' ReactDOM.render(<AppView />, document.getElementById("container"))
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Base/Header/Header.js
thusithak/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
webpack/components/Content/Details/ContentDetailInfo.js
mccun934/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'react-bootstrap'; // using Map to preserve order const createRows = (details, mapping) => { const rows = []; /* eslint-disable no-restricted-syntax, react/jsx-closing-tag-location */ for (const key of mapping.keys()) { row...
src/views/forms/layout/Layout.js
mrholek/CoreUI-React
import React from 'react' import { CButton, CCard, CCardBody, CCardHeader, CCol, CForm, CFormCheck, CFormInput, CFormLabel, CFormSelect, CInputGroup, CInputGroupText, CRow, } from '@coreui/react' import { DocsExample } from 'src/components' const Layout = () => { return ( <CRow> <...
examples/js/keyboard-nav/pagination-nav-table.js
prajapati-parth/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, ...
src/client.js
hakonrossebo/ciq-layout-composer
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import {Provider} from 'react-redux'; imp...
examples/server-rendering/routes.js
acdlite/redux-router
import React from 'react'; import {Route} from 'react-router'; import {App, Parent, Child} from './components'; export default ( <Route path="/" component={App}> <Route path="parent" component={Parent}> <Route path="child" component={Child} /> <Route path="child/:id" component={Child} /> </Route>...
fields/types/code/CodeField.js
joerter/keystone
import _ from 'lodash'; import CodeMirror from 'codemirror'; import Field from '../Field'; import React from 'react'; import ReactDOM from 'react-dom'; import { FormInput } from 'elemental'; import classnames from 'classnames'; /** * TODO: * - Remove dependency on underscore */ // See CodeMirror docs for API: // h...
app/javascript/mastodon/features/standalone/compose/index.js
summoners-riftodon/mastodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
src/svg-icons/action/settings-input-composite.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputComposite = (props) => ( <SvgIcon {...props}> <path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2....
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js
manchesergit/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; /** * Simple Icon Menus demonstrating some of the layouts possible using the `anc...
src/parser/hunter/marksmanship/modules/talents/HuntersMark.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import Enemies from 'parser/shared/modules/Enemies'; import calculateEffectiveDamage from 'parser/core/cal...
app/javascript/mastodon/features/ui/index.js
rekif/mastodon
import classNames from 'classnames'; import React from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Redirect, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import NotificationsContai...
src/components/MediaList/LoadingRow.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import MediaLoadingIndicator from './MediaLoadingIndicator'; function LoadingRow({ className, ...attrs }) { return ( <div className={cx('MediaListRow', 'is-loading', className)} {...attrs}> <MediaLoadingIndicator classNam...
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/import-export.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationImportExport = (props) => ( <SvgIcon {...props}> <path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/> </SvgIcon> ); CommunicationImportExport.displayName = 'CommunicationImportExport'; CommunicationI...
src/frontend/components/AdminEventUploadRsvps.js
Bernie-2016/ground-control
import React from 'react' import Dropzone from 'react-dropzone'; import {BernieText, BernieColors} from './styles/bernie-css' import {RaisedButton} from 'material-ui' import Papa from 'papaparse' import superagent from 'superagent' import downloadCSV from '../helpers/downloadCSV' export default class AdminEventUploadR...
client/router.js
jmptrader/AspNet-Server-Template
/** * ASP.NET Core Starter Kit (https://dotnetreact.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'; function decodeParam(val) { ...
js/jqwidgets/demos/react/app/scheduler/bindingtojson/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { render() { // prepare the data let source = { dataType: 'json', dataFields: [ { name: ...
src/Button.js
lzcmaro/react-ratchet
import React from 'react'; import classNames from 'classnames'; import Icon from './Icon'; import Badge from './Badge'; import {classesDecorator, stylesDecorator} from './utils/componentDecorators'; import ratchetUtils from './utils/ratchetUtils'; import {BUTTON_STYLES} from './utils/styleMaps'; let Button = React.cre...
src/index.js
Pochwar/ReduxSimpleStarter
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import GooderList from './components/gooder_list'; import GooderDetail from "./components/gooder_detail"; import OptionBar from './components/option_bar'; const MG_API_URL = 'https://api.mygooder.com/api/v1/gooders'; const LOCATIONS = { 'Pa...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
g3r4n/create-esri-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 from 'react'; export default () => ( <span id="feature-shell-env-variables"> {process.env.REACT_APP_SHELL_ENV_MESSAG...
app/components/Toggle/index.js
ninjaref/ninjaref
/** * * LocaleToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map(...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/default.input.js
storybooks/storybook
/* eslint-disable */ import React from 'react'; import Button from './Button'; import { storiesOf } from '@storybook/react'; storiesOf('Button', module).add('default', () => <Button label="Story 1" />);
app/components/CategoriesForm/index.js
vlastoun/picture-uploader-crud
import { Field, reduxForm } from 'redux-form/immutable'; // <--- immutable import import React from 'react'; import PropTypes from 'prop-types'; import InputField from 'components/InputField'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import { Card, CardActio...
admin/client/App/shared/FlashMessages.js
linhanyang/keystone
/** * Render a few flash messages, e.g. errors, success messages, warnings,... * * Use like this: * <FlashMessages * messages={{ * error: [{ * title: 'There is a network problem', * detail: 'Please try again later...', * }], * }} * /> * * Instead of error, it can also be hilight, info, ...
src/app/index.js
skratchdot/ble-midi
/* eslint-env browser */ import './styles/app.less'; import App from './containers/app'; import { AppContainer } from 'react-hot-loader'; import { Provider } from 'react-redux'; import React from 'react'; import ReactDOM from 'react-dom'; import configureStore from './store/configure-store'; import injectTapEventPlugin...
techCurriculum/ui/solutions/4.7/src/components/TextInput.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...
src/caret.js
georgest/react-native-select-list
import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; class Caret extends Component { render() { const { element, size, color } = this.props; if (!element) { return null; } if (typeof(element) !== "string") { return element; } else { return...
src/svg-icons/action/alarm-off.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
src/components/Layout/Footer/index.js
ndlib/usurper
import React from 'react' import FooterLinks from './FooterLinks' import FooterInfo from './FooterInfo' const Footer = () => { return ( <footer> <FooterLinks /> <FooterInfo /> </footer> ) } export default Footer
l4/index.ios.js
huang6349/rn
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import App from './src/app'; AppRegistry.registerComponent('l4', () => App);
examples/sidebar/app.js
buddhike/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{category.name}</h1> {this.props.children || ( ...