path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
smart/files/__root__/components/__topic__/__name__/__name__.spec.js
CurtisHumphrey/redux_blueprints_firebase
import React from 'react' import { shallow, } from 'enzyme' import _ from 'lodash' import { <%= pascalEntityName %>, actions, selectors, } from './<%= pascalEntityName %>' // import stylesClass from './<%= pascalEntityName %>.scss' // const styles = _.mapValues(stylesClass, (raw) => '.' + raw) export const <...
examples/huge-apps/routes/Messages/components/Messages.js
jamiehill/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
scripts/components/pages/home/login.js
evilfaust/lyceum9sass
import React from 'react'; const request = require('superagent'); class Login extends React.Component { constructor(props) { super(props); this.render = this.render.bind(this); this.loginChange = this.loginChange.bind(this); this.sendLogin = this.sendLogin.bind(this); this.values = {}; } loginChange(e) ...
examples/dynamic-load/routes/App.js
cycgit/dva
import React from 'react'; import { connect } from '../../../index'; import { Link } from '../../../router'; const App = ({ app }) => { const { name } = app; return ( <div> <h1>{ name }</h1> <hr/> <Link to="/profile">go to /profile</Link> </div> ); }; export default connect(({ app }) =...
app/javascript/mastodon/features/ui/components/__tests__/column-test.js
MitarashiDango/mastodon
import { render, fireEvent, screen } from '@testing-library/react'; import React from 'react'; import Column from '../column'; describe('<Column />', () => { describe('<ColumnHeader /> click handler', () => { it('runs the scroll animation if the column contains scrollable content', () => { const scrollToMo...
src/icons/FolderSharedIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FolderSharedIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 12H24l-4-4H8c-2.21 0-3.98 1.79-3.98 4L4 36c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V16c0-2.21-1.79-...
client/src/client/index.js
Pitzcarraldo/spring-react-redux-universal-example
import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router'; import { Provider } from 'react-redux'; import { ReduxRouter } from 'redux-router'; import createBrowserHistory from 'history/lib/createBrowserHistory' import configureStore from '../comm...
examples/expo/navigation/AppNavigator.js
aksonov/react-native-router-flux
import React from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; import { StackViewStyleInterpolator } from 'react-navigation-stack'; import { Scene, Router, Actions, Reducer, ActionConst, Overlay, Tabs, Modal, Drawer, Stack, Lightbox, } from 'react-native-router-flux'; ...
app/javascript/mastodon/components/account.js
robotstart/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import DisplayName from './display_name'; import Permalink from './permalink'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'rea...
client/src/app-components/topic-edit-modal.js
ivandiazwm/opensupports
import React from 'react'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import Header from 'core-components/header'; import Button from 'core-components/button'; import Form from 'core-components/form'; import FormField from 'core-components/form-field'; import SubmitButton from 'core-componen...
components/feed/CabinquestFeed.js
headwinds/porthole
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getCabinquestTrees } from '../../actions/feed_cabinquest_actions'; import { getPortholeForest } from '../../actions/feed_porthole_actions'; import { getCabinQuestPark } from '../../actio...
app/javascript/mastodon/components/animated_number.js
im-in-space/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/routes/SignUpPage/components/SignUpForm/index.js
linxlad/tracksy-client
import React, { Component } from 'react'; import { Form } from 'antd'; import { Input, Button, Label, Divider, Icon } from 'semantic-ui-react'; import FacebookProvider, { Login } from 'react-facebook'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { signUpAction } from '../....
js/components/poets/alothmani/index.js
Rebaiahmed/Alchaaer
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import { Image } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, Left, Right,Card, CardItem, Text, Body, List, ListItem,Thumbnail,InputGroup, Input ,Picker...
src/svg-icons/action/settings-applications.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsApplications = (props) => ( <SvgIcon {...props}> <path d="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c...
websrc/cacti-user/src/components/ModeSelector.js
howardjones/network-weathermap
import React from 'react'; import {connect} from 'react-redux'; import {viewAllFull, viewFirstFull, viewThumbs} from '../actions'; class ModeSelector extends React.Component { constructor(props) { super(props); this.clickedFirstFull = this.clickedFirstFull.bind(this); this.clickedFull = th...
src/containers/DevTools.js
itjope/tipskampen
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 /> </Dock...
src/svg-icons/av/video-library.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoLibrary = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z"/> </SvgIcon>...
src/svg-icons/hardware/devices-other.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDevicesOther = (props) => ( <SvgIcon {...props}> <path d="M3 6h18V4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V6zm10 6H9v1.78c-.61.55-1 1.33-1 2.22s.39 1.67 1 2.22V20h4v-1.78c.61-.55 1-1.34 1-2.22s-.39-1...
src/svg-icons/av/fiber-smart-record.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberSmartRecord = (props) => ( <SvgIcon {...props}> <g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g> </S...
admin/client/App/screens/Item/components/FormHeading.js
brianjd/keystone
import React from 'react'; import evalDependsOn from '../../../../../../fields/utils/evalDependsOn'; module.exports = React.createClass({ displayName: 'FormHeading', propTypes: { options: React.PropTypes.object, }, render () { if (!evalDependsOn(this.props.options.dependsOn, this.props.options.values)) { re...
src/components/Main.js
ZhenxingXiao/zls-front-end
require('styles/App.css'); import React from 'react'; let yeomanImage = require('../images/yeoman.png'); class AppComponent extends React.Component { render() { return ( <div> <img src={yeomanImage} alt="Yeoman Generator" /> <div>Please edit <code>src/components/Main.js</code> to get star...
va_dashboard/tabs/integrations.js
VapourApps/va_master
import React, { Component } from 'react'; var Bootstrap = require('react-bootstrap'); var classNames = require('classnames'); import { connect } from 'react-redux'; var Network = require('../network'); import { getSpinner } from './util'; import ReactJson from 'react-json-view'; import vis from '../static/vis'; class ...
components/GameArticles.js
turntwogg/final-round
import React from 'react'; import Typography from './Typography'; import Scroller from './Scroller'; import DashboardArticle from './DashboardArticle'; import GameSection, { GameSectionHeader } from './GameSection'; import Button from './Button'; import Skeleton, { Item } from './SkeletonNew'; const GameArticles = ({...
15-react-router-v4/src/components/repos.js
iproduct/course-node-express-react
import React from 'react'; import { PropTypes } from 'prop-types'; import Repo from './repo'; import { Route } from 'react-router-dom'; const Repos = (props) => { return ( <div> <h2>Repos</h2> <Route path="/repos/:userName/:repoName" component={Repo} /> </div> ); }; Repos.propType...
app/classifier/restart-button.spec.js
jelliotartz/Panoptes-Front-End
// "Passing arrow functions (“lambdas”) to Mocha is discouraged" - https://mochajs.org/#arrow-functions /* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-boolean-value': ['error', 'always'] */ /* global describe, it, beforeEach */ import React from 'react'; import assert from 'assert'; import RestartButton...
app/javascript/mastodon/features/ui/components/__tests__/column-test.js
pointlessone/mastodon
import React from 'react'; import { mount } from 'enzyme'; import Column from '../column'; import ColumnHeader from '../column_header'; describe('<Column />', () => { describe('<ColumnHeader /> click handler', () => { const originalRaf = global.requestAnimationFrame; beforeEach(() => { global.requestA...
dashboard/src/components/dashboard/history/HistoryList.js
leapfrogtechnology/chill
import React from 'react'; import PropTypes from 'prop-types'; import Incident from './Incident'; import IncidentRow from './IncidentRow'; /** * List of past incidents. * * @param {Array} incidents */ const HistoryList = ({ incidents }) => { return ( <> {incidents.map(group => ( <div className...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
Ajunboys/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import classnames from '...
src/scenes/Dashboard/AddTask/AddTask.js
jmlweb/paskman
import React from 'react'; import PT from 'prop-types'; import Modal from '../../../components/Modal/ModalContainer'; import { FieldSet, Form, FormGroup, Label, OptionsSwitcher, RangeSlider, TextField, } from '../../../components/Form'; import ButtonBar from '../../../components/ButtonBar/ButtonBar'; impo...
Sources/ewsnodejs-server/node_modules/@material-ui/core/RootRef/RootRef.js
nihospr01/OpenSpeechPlatform-UCSD
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _classCallCheck2 = _interopRequir...
app/pages/catalogpage/CatalogPage.js
Laastine/lukkarimaatti
import React from 'react' import PropTypes from 'prop-types' import Catalog from './Catalog' import Header from '../../partials/header' import Footer from '../../partials/footer' import {loadCourses, loadCoursesByDepartment} from '../frontApi/lukkariApi' class CatalogPage extends React.Component { render() { ret...
DayangH/__tests__/index.android.js
dianziguan1234/ReactNative
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/app/core/atoms/icon/icons/list.js
blowsys/reservo
import React from 'react'; const List = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><g transform="translate(5.000000, 7.000000)"><polygon points="0 2 2 2 2 0 0 0"/><polygon points="4 2 14 2 14 0 4 0"/><polygon points="0 6 2 6 2 4 0 4"/><polygon points="4 6 14 6 14 4 4 4"/><polygon points="0 10 2 10 2 8 0 8"/><...
app/src/containers/ResumePDF/ResumePDF.js
RyanCCollins/ryancollins.io
import React from 'react'; import { PDFViewer } from '../../components'; const ResumePDF = () => ( <PDFViewer url="https://s3.amazonaws.com/accredible-profile-uploads/udacity/resumes/1469994565898" /> ); export default ResumePDF;
packages/wix-style-react/src/Carousel/SliderArrow/SliderArrow.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../IconButton/IconButton'; import { classes } from '../Carousel.st.css'; const skinPriorityMap = { standard: 'secondary', inverted: 'primary', light: 'primary', transparent: 'primary', premium: 'primary', }; const Slid...
src/js/prop_types.js
rafaelfbs/realizejs
import React from 'react'; import i18n from './i18n/i18n'; export default { ...React.PropTypes, localizedString(props, propName, componentName) { const value = props[propName]; if (value === null || value === undefined || (typeof value === 'string' && value.length === 0)) { return nu...
packages/app/app/components/LibraryView/LibraryFolders/index.js
nukeop/nuclear
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { Button, Divider, Icon, List, Segment, Progress } from 'semantic-ui-react'; import { withTranslation } from 'react-i18next'; import { compose, withHandlers } from 'recompose'; import styles from './styles.scss'; ...
src/svg-icons/image/healing.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHealing = (props) => ( <SvgIcon {...props}> <path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34c-.39-.39-1.02-.39-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-...
javascript/ql/test/query-tests/Expressions/UnboundEventHandlerReceiver/tst.js
github/codeql
import React from 'react'; import autoBind from 'auto-bind'; import reactAutobind from 'react-autobind'; class Component0 extends React.Component { render() { return <div> <div onClick={this.bound_throughAutoBind}/> // OK </div> } constructor(props) { super(props); ...
Paths/React/05.Building Scalable React Apps/2-react-boilerplate-building-scalable-apps-m2-exercise-files/After/app/containers/NotFoundPage/index.js
phiratio/Pluralsight-materials
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
react/react-demo/src/App.js
Arguiwu/code-snippet
import React, { Component } from 'react'; import { ApolloClient, gql, graphql, ApolloProvider, } from 'react-apollo' import logo from './logo.svg'; import './App.css'; const client = new ApolloClient() const channelsListQuery = gql` query ChannelsListQuery { channels { id name } } ` const ChannelsLis...
lesson-5/src/components/editNotesPage/EditNoteModal.js
msd-code-academy/lessons
import React from 'react' import Modal from 'react-modal' import '../../styles/EditNoteModal.css' class EditNoteModal extends React.Component { constructor(props) { super(props) this.state = { modalIsOpen: false, note: { uuid: props.noteUuid, text: props.text, title: props...
loc8-react-redux-front-end/src/components/Article/CommentInput.js
uberslackin/django-redux-loc8-ARweb
import React from 'react'; import agent from '../../agent'; import { connect } from 'react-redux'; const mapDispatchToProps = dispatch => ({ onSubmit: payload => dispatch({ type: 'ADD_COMMENT', payload }) }); class CommentInput extends React.Component { constructor() { super(); this.state = { bo...
docs/app/Examples/elements/Input/Variations/InputExampleActionIconButton.js
vageeshb/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleActionIconButton = () => ( <Input action={{ icon: 'search' }} placeholder='Search...' /> ) export default InputExampleActionIconButton
js/app.js
matthewbdaly/react-app-skeleton
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, Link } from 'react-router'; import Page from './components/page'; import NoMatch from './components/nomatch'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import styles from '../scss/style.scss'; const history ...
app/components/ReposList/index.js
vinhtran19950804/procure_react
import React from 'react'; import PropTypes from 'prop-types'; import List from 'components/List'; import ListItem from 'components/ListItem'; import LoadingIndicator from 'components/LoadingIndicator'; import RepoListItem from 'containers/RepoListItem'; function ReposList({ loading, error, repos }) { if (loading) ...
docs/app/Examples/elements/Label/Variations/LabelExampleCircular.js
mohammed88/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const LabelExampleCircular = () => ( <div> {colors.map(color => <Label circular color={color} key={color}>...
Examples/Example.ChromiumFx.Mobx.UI/View/mainview/src/App.js
David-Desmaisons/MVVM.CEF.Glue
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import CommandButton from './component/CommandButton'; import Skill from './component/Skill'; import logo from './logo.svg'; import './App.css'; @observer export default class App extends Component { constructor(props) { super(props...
app/javascript/mastodon/components/radio_button.js
abcang/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....
test/components/app.spec.js
nosoycesaros/react-quickstart
import { expect } from 'chai'; import { renderShallowComponent } from '../helpers'; import React from 'react'; // import react test utils import { renderIntoDocument, findRenderedDOMComponentWithTag, findRenderedDOMComponentWithClass } from 'react-addons-test-utils'; // import react component import App from '....
fields/types/color/ColorField.js
Pop-Code/keystone
import { SketchPicker } from 'react-color'; import { css } from 'glamor'; import Field from '../Field'; import React from 'react'; import { Button, FormInput, InlineGroup as Group, InlineGroupSection as Section, } from '../../../admin/client/App/elemental'; import transparentSwatch from './transparent-swatch'; impo...
src/helpers/__tests__/connectData-test.js
Druddigon/react-redux-learn
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import connectData from '../connectData'; describe('connectData', () => { let fetchData; let fetchDataDeferred; let WrappedComponent; let DataComponent; beforeEach(() => { fetchData = 'fetchDataFunction'; fetc...
admin/client/Signin/Signin.js
creynders/keystone
/** * The actual Sign In view, with the login form */ import assign from 'object-assign'; import classnames from 'classnames'; import React from 'react'; import xhr from 'xhr'; import Alert from './components/Alert'; import Brand from './components/Brand'; import UserInfo from './components/UserInfo'; import LoginF...
src/js/components/icons/base/Brush.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...
test/components/checkbox-group.js
pandadragoon/panda-forms
import React from 'react'; import chai from 'chai'; import {expect} from 'chai'; import chaiEnzyme from 'chai-enzyme'; import { shallow, mount, render } from 'enzyme'; import CheckboxGroup from '../../src/components/CheckboxGroup/CheckboxGroup.jsx'; import sinon from 'sinon'; chai.use(chaiEnzyme()); describe('Checkbo...
app/components/Loader.js
cdiezmoran/AlphaStage-2.0
import React from 'react'; import styles from './Loader.scss'; const Loader = () => ( <div className={styles.BouncingLoader}> <div /> <div /> <div /> </div> ); export default Loader;
demo/src/App.js
alsiola/react-doc-props
import React, { Component } from 'react'; import CodeMirror from 'react-codemirror'; import 'codemirror/mode/javascript/javascript'; import 'codemirror/lib/codemirror.css'; import { generateDocs } from 'react-doc-props'; import { documentation } from './PropDemo'; const documentationString = ` import { string, numbe...
docs/src/app/components/pages/components/Card/ExampleExpandable.js
verdan/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleExpandable = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableButt...
tests/flow/react/createElementRequiredProp_string.js
arijs/prettier-miscellaneous
// @flow import React from 'react'; class Bar extends React.Component { props: { test: number, }; render() { return ( <div> {this.props.test} </div> ) } } class Foo extends React.Component { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); ...
src/svg-icons/device/battery-charging-30.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging30 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M11 20v-5.5H7...
frontend/src/index.js
GaxZE/garyhawes.co.uk
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want your app to work offline and load f...
src/js/components/_threads/ThreadNoResults.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import translate from '../../i18n/Translate'; import Button from '../ui/Button'; import * as ThreadActionCreators from '../../actions/ThreadActionCreators'; @translate('ThreadNoResults') export default class ThreadNoResults extends Component...
admin/client/Signin/Signin.js
jacargentina/keystone
/** * The actual Sign In view, with the login form */ import assign from 'object-assign'; import classnames from 'classnames'; import React from 'react'; import ReactDOM from 'react-dom'; import xhr from 'xhr'; import Alert from './components/Alert'; import Brand from './components/Brand'; import UserInfo from './c...
src/index.js
zenoamaro/webpage-transcriber
import FastClick from 'fastclick'; import React from 'react'; import ReactDOM from 'react-dom'; import Root from 'views/Root'; import isMobile from 'utils/isMobile'; import scrape from 'scraper'; import spec from 'spec'; /** * Bootstrap the scraper and the template renderer * after doing some prep work. */ functio...
src/components/billing/transactions-list.js
Storj/metadisk-gui
import React from 'react'; import Currency from 'components/billing/currency'; const TransactionsList = ({ transactions }) => { return ( <section id="TransactionsListSection"> <div className="container"> <div className="row"> <div className="col-xs-12"> <h2 className="title">B...
packages/examples-todomvc-metareducer/containers/Root.dev.js
kastigar/borex
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import TodoApp from './TodoApp'; import DevTools from './DevTools'; export default class Root extends Component { render() { const { store } = this.props; return ( <Provider store={store}> <div> <TodoApp...
src/InputSomething.js
frostney/react-lib-starterkit
import React from 'react'; const InputSomething = () => <input />; export default InputSomething;
node_modules/react-slick/src/track.js
prodigalyijun/demo-by-antd
'use strict'; import React from 'react'; import assign from 'object-assign'; import classnames from 'classnames'; var getSlideClasses = (spec) => { var slickActive, slickCenter, slickCloned; var centerOffset, index; if (spec.rtl) { index = spec.slideCount - 1 - spec.index; } else { index = spec.index...
codes/reactstrap-demo/src/components/Sidebar/Sidebar.js
atlantis1024/react-step-by-step
import React, { Component } from 'react'; import { Link } from 'react-router' class Sidebar extends Component { handleClick(e) { e.preventDefault(); e.target.parentElement.classList.toggle('open'); } activeRoute(routeName) { return this.props.location.pathname.indexOf(routeName) > -1 ? 'nav-item na...
src/routes/teahouse/index.js
DiroKate/SysuhikerCC
import React from 'react'; import { connect } from 'dva'; import { browserHistory } from 'dva/router'; import { Tabs, Row, Col, Table, Modal } from 'antd'; import { CreateButton } from '../../components'; const { TabPane } = Tabs; function Teahouse({ isLogin, list, total, dispatch }) { const createHandler = () => {...
docs/app/Examples/elements/Button/Variations/ButtonExampleVerticallyAttached.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button, Segment } from 'semantic-ui-react' const ButtonExampleVerticallyAttached = () => ( <div> <Button attached='top'>Top</Button> <Segment attached> <img src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Segment> <Button attached='bottom'>Bot...
DEPRECATED/node_modules/react-router/es6/IndexRedirect.js
vanHeemstraDesigns/CreationsEcosystemStatic
'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e...
src/components/Card.js
nebgnahz/marry-guess
import React from 'react'; function Card(props) { return ( <div className="card"> <div className="image"> <img className="actual-image" src={props.image} role="presentation"/> <span className="title">{props.title}</span> </div> <div className="content"> <p>{props.content...
fields/types/location/LocationColumn.js
Ftonso/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'Loc...
packages/@lyra/default-layout/src/components/SchemaErrors.js
VegaPublish/vega-studio
import React from 'react' import styles from './styles/SchemaErrors.css' import ErrorIcon from 'part:@lyra/base/error-icon' import WarningIcon from 'part:@lyra/base/warning-icon' import generateHelpUrl from '@lyra/generate-help-url' function renderPath(path) { return path .map(segment => { if (segment.kind...
src/pages/linear.js
CentralCatholic/centralcatholic.github.io
import React from 'react' import Link from 'gatsby-link' import { Chart } from 'react-google-charts'; import BubbleData from '../data/bubble'; import FibData from '../data/fib'; import ExchangeData from '../data/exchange'; import LinearData from '../data/linear'; import BinaryData from '../data/binary'; class LinearCh...
internals/templates/containers/NotFoundPage/index.js
jdelatorreitrs/react-boilerplate
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/svg-icons/content/add-circle-outline.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.5...
app/components/IssueIcon/index.js
perry-ugroop/ugroop-react-dup2
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/svg-icons/device/location-disabled.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationDisabled = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5...
react/CalendarIcon/CalendarIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './CalendarIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function CalendarIcon(props) { return <Icon markup={svgMarkup} {...props} />; } CalendarIcon.displayName = 'CalendarIcon';
lib/client/js/components/templates/templates-view.js
Bornholm/yasp
/* jshint esnext: true, node: true */ 'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import { Actions } from '../../store'; import FlexLayout from '../flex-layout'; import moment from 'moment'; import { translate } from 'react-i18next'; class Template...
docs/src/sections/ProgressBarSection.js
HPate-Riptide/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ProgressBarSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
client/components/Dashbord/favorite.js
kenware/more-recipes
import React, { Component } from 'react'; import { BrowserRouter, Route, Switch, Redirect, Link } from 'react-router-dom'; import { PropTypes } from 'react'; import * as actions from '../../redux/Action/action.js'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import './dashbord.sc...
src/index.js
dopry/netlify-cms
import React from 'react'; import createReactClass from 'create-react-class'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import 'file-loader?name=index.html!../example/index.html'; import 'react-toolbox/lib/commons.scss'; import Root from './root'; import registry from './lib/r...
src/GridList/GridList.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = { root: { display: 'flex', flexWrap: 'wrap', overflowY: 'auto', listStyle: 'none', padding: 0, }, }; function ...
src/CodeExample.js
joemcbride/react-playground
import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import {CodeMirror, IS_BROWSER} from './CodeMirrorSettings'; if (IS_BROWSER) { require('codemirror/addon/runmode/runmode'); } const propTypes = { codeText: React.PropTypes.string.isRequired, className: React.PropTy...
src/components/yii/plain-wordmark/YiiPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './YiiPlainWordmark.svg' /** YiiPlainWordmark */ function YiiPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'YiiPlainWordmark' +...
frontend/src/components/partners/profile/overview/verification/partnerOverviewVerificationMenu.js
unicef/un-partner-portal
import PropTypes from 'prop-types'; import React from 'react'; import { withRouter } from 'react-router'; import DropdownMenu from '../../../../common/dropdownMenu'; import AddNewVerificationButton from '../../buttons/addNewVerificationButton'; import withDialogHandling from '../../../../common/hoc/withDialogHandling'...
Js/Ui/Components/DateTime/index.js
Webiny/Webiny
import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'lodash'; import $ from 'jquery'; import Webiny from 'webiny'; class DateTime extends Webiny.Ui.FormComponent { constructor(props) { super(props); this.valueChanged = false; this.bindMethods('setup,onChange'); ...
public/src/index.js
vidyakhadsare/easyUp
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import createLogger from 'redux-logger'; import { Router, browserHistory} from 'react-router'; import routes from './routes'; import...
src/routes.js
jogacommuri/ReactShoppingCart
"use strict" //React import React from 'react'; import {render} from 'react-dom'; //React Router import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import BooksList from './components/pages/booksList'; import Cart from './components/pages/cart'; import BooksForm from './components/pages/bookFor...
src/components/IndexPage.js
baker-natalie/lets-react
'use strict'; import React from 'react'; import PagePreview from './PagePreview'; import pages from '../data/pages'; export default class IndexPage extends React.Component { render() { return ( <div className="home"> <div className="page-selector"> {pages.map(pageData => <PagePreview key...
src/components/topic/wizard/TopicSeedDetailsForm.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { reduxForm, Field, propTypes } from 'redux-form'; import { Row, Col } from 'react-flexbox-grid/lib'; import withIntlForm from '../../common/hocs/IntlForm'; import TopicAdvancedForm from './TopicAdvancedForm'; const localMessages = { name: { id: '...
src/svg-icons/action/cached.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
saleor/static/js/components/categoryPage/NoResults.js
tfroehlich82/saleor
import React from 'react'; import InlineSVG from 'react-inlinesvg'; import noResultsImg from '../../../images/pirate.svg'; const NoResults = () => { return ( <div className="no-results"> <div className="col-12"> <InlineSVG src={noResultsImg} /> <p>{pgettext('Epty search results', 'Sorry, n...
client/index.js
alexdvance/the-watcher
import 'babel-polyfill' import { trigger } from 'redial' import React from 'react' import ReactDOM from 'react-dom' import Router from 'react-router/lib/Router' import match from 'react-router/lib/match' import browserHistory from 'react-router/lib/browserHistory' import { Provider } from 'react-redux' import { StyleS...
app/components/landing/HeroMobile/index.js
vkurzweg/aloha
/** * * HeroText * */ import React from 'react'; // import styled from 'styled-components'; import Slider from 'react-slick'; import 'slick-carousel'; import { Image } from 'cloudinary-react'; import { Link } from 'react-router'; import Button from './Button'; import styled from 'styled-components'; const StyledImage...
src/frontend/containers/door/admin/list.js
PiTeam/garage-pi
import React from 'react'; import { connect } from 'react-redux'; import ListItem from 'material-ui/lib/lists/list-item'; import { Link } from 'react-router'; import Avatar from 'material-ui/lib/avatar'; import ActionSettings from 'material-ui/lib/svg-icons/action/settings'; import Divider from 'material-ui/lib/divider...