path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
node_modules/react-navigation/src/views/Transitioner.js
jiangqizheng/ReactNative-BookProject
/* @flow */ import React from 'react'; import { Animated, Easing, StyleSheet, View } from 'react-native'; import invariant from '../utils/invariant'; import NavigationScenesReducer from './ScenesReducer'; import type { NavigationLayout, NavigationScene, NavigationState, NavigationAction, NavigationScreen...
src/svg-icons/image/nature.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNature = (props) => ( <SvgIcon {...props}> <path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/> </SvgIcon> ); ImageNature = p...
src/routes/login/Login.js
hmeinertrita/MyPlanetGirlGuides
/** * 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. */ /*eslint-disable */ import React from 'react'; import ...
docs/src/Root.js
Sipree/react-bootstrap
import React from 'react'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html', 'components.html', ...
scripts/Balance/Balance.js
krulmacius/sdasdasdasfgasdawsdwadawd
import React from 'react'; import axios from 'axios'; import {ModalContainer, ModalDialog} from 'react-modal-dialog'; import SearchInput, {createFilter} from 'react-search-input'; class Balance extends React.Component { constructor(props) { super(props); this.state = { is_...
Paths/React/05.Building Scalable React Apps/1-react-boilerplate-building-scalable-apps-m1-exercise-files/Before/internals/templates/languageProvider/languageProvider.js
phiratio/Pluralsight-materials
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/components/TopUpNostro.js
coeniebeyers/QuorumNostroDemo
import React from 'react' import SelectNostroAgreement from '../containers/SelectNostroAgreement' import TopUpNostroForm from '../containers/TopUpNostroForm' import NavBar from '../components/NavBar' const TopUpNostro = () => { var fw = { width: "200" }; return ( <div> <NavBar /> <table> <tbody> ...
src/svg-icons/communication/location-on.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLocationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12...
src/ctl/ui/src/index.js
m3db/m3db
// Copyright (c) 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
Dreezydraig/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
src/containers/CounterUndoRedo.js
jshack3r/ws-redux-counters-router
import React from 'react' import { connect } from 'react-redux' import { ActionCreators } from 'redux-undo'; let CounterUndoRedo = ({isFetching, canUndo, canRedo, onUndoClick, onRedoClick}) => <div hidden={isFetching}> <button onClick={onUndoClick} disabled={!canUndo} style={{color: canUndo ? '#000' : '#ccc'}}>U...
docs/src/examples/elements/Step/Variations/StepExampleSizeLarge.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleSizeLarge = () => ( <Step.Group size='large'> <Step> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> </Step.Content> </Step> <Step active> <Icon name='payment'...
app/containers/App/index.js
ethanve/bakesale
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
internals/templates/containers/App/index.js
KyleAWang/react-boilerplate
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
examples/src/Footer/Footer.js
vezetvsem/react-autosuggest
require('./Footer.less'); import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <div className="footer"> <img src="https://gravatar.com/avatar/e56de06f4b56f6f06e4a9a271ed57e26?s=32" alt="Misha Moroshko" /> <span> ...
extensions/cms/components/JsonDom.js
axax/lunuc
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import Hook from 'util/hook' import {_t} from 'util/i18n' import Util from 'client/util' import {propertyByPath, matchExpr} from '../../../client/util/json' import {scrollByHash} from '../util/urlUtil' import {getComponentByKe...
src/components/TextBoxQuestion.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * 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 in...
src/components/Icon.js
samzhao/HR-Recruitment-Management-System
import React from 'react' require('ionicons/dist/scss/ionicons.scss') export default ({ name, component }) => ( React.createElement((component || 'span'), { className: 'icon ' + (name.indexOf('ion-') === 0 ? name : `ion-${name}`) }) )
src/App.js
jishiniao/radio
import React from 'react' import ReactDOM from 'react-dom' import Demo from './components/Demo' ReactDOM.render( <Demo />, document.getElementById('app') )
src/svg-icons/maps/local-mall.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
src/components/charts/RewardSpreadChart.js
openvcash/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { CartesianGrid, ResponsiveContainer, Scatter, ScatterChart, Tooltip, XAxis, YAxis } from 'recharts' import moment from 'moment' /** Components */ import { CustomTick, CustomTooltip } ...
examples/demos/customView.js
bluespore/react-big-calendar
import React from 'react'; import BigCalendar from '../../src/index'; import events from '../events'; import { navigate } from 'react-big-calendar/utils/constants'; import Week from 'react-big-calendar/Week'; import dates from 'react-big-calendar/utils/dates'; import localizer from 'react-big-calendar/localizer'; impor...
frontend/src/InputForm.js
googleinterns/step78-2020
import React from 'react'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Course from './Course'; import Criterion from './Criterion'; import BasicInfo from './BasicInfo'; import './classes.css'; class InputForm ex...
pages/demos/selection-controls.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/demos/selection-controls/selection-controls.md'; function Page() { return ( <MarkdownDocs markdown={mar...
src/components/StaticCounterDigit.js
umbrellio/rollex
import React from 'react' import { digitPropTypes, decorateDigit } from '../helpers/counterDigitHelper' /** * @property {string} digit - digit to display * @property {number} radix * @property {Object} digitMap - a map for transforming particular digits * @property {function(digit: number)} digitWrapper - a functi...
src/svg-icons/av/forward-10.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
modules/__tests__/IndexRoute-test.js
chrisirhc/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import IndexRoute from '../IndexRoute' import Router from '../Router' import Route from '../Route' describe('an <IndexRoute/>', function () { var nod...
test/integration/stepper/verticalStepper.spec.js
mtsandeep/material-ui
/* eslint-env mocha */ import React from 'react'; import {mount} from 'enzyme'; import {assert} from 'chai'; import getMuiTheme from 'src/styles/getMuiTheme'; import VerticalLinearStepper from '../fixtures/VerticalLinearStepper'; describe('Vertical Stepper', () => { const muiTheme = getMuiTheme(); const mountWithC...
src/svg-icons/action/line-weight.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineWeight = (props) => ( <SvgIcon {...props}> <path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"/> </SvgIcon> ); ActionLineWeight = pure(ActionLineWeight); ActionLineWeight.displayN...
internals/templates/app.js
absortium/frontend
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; // TODO constrain eslint import/no-unresolved rule to this block // Load the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin...
src/components/Stats/Stats.js
Zoomdata/nhtsa-dashboard
import React, { Component } from 'react'; import Reset from '../Reset/Reset'; import LED from '../LED/LED'; import Filler from '../Filler/Filler'; export default class Stats extends Component { render() { return ( <div className="stats"> <Reset /> <LED position="5" /> <Filler text="...
imports/ui/components/molecules/Loading/Loading.js
latotty/meteor-sweeper
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const rotate360 = keyframes` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `; const BaseLoading = ({ className }) => ( <svg className={className} versi...
public/js/lib/react/jsx/pages/Alert.js
inquisive/simpledocs
import React from 'react'; export default class Alert2 extends React.Component { constructor(props) { super(props); this.displayName = 'Alert Component'; this.state = { isVisible: true }; } render() { if(!this.state.isVisible) return null; var message = this.props.children; return ( ...
app/main.js
herereadthis/redwall
import React from 'react'; import Router from 'react-router'; import FluxComponent from 'flummox/component'; import AppFlux from './AppFlux'; import AppStore from './AppStore'; import AppRoutes from './AppRoutes.js'; //import App from './app'; // //import NinetiesImage from 'views/Homepage/views/NinetiesImage.js'; //i...
pages/404.js
trungtin/mymy
import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Not Found</h1> <p>The page you're looking for was not found.</p> </div> ); } }
src/__tests__/index.js
sesilio/react-script-loader-hoc
import 'babel-polyfill'; import 'jest-dom/extend-expect'; import 'react-testing-library/cleanup-after-each'; import {render, fireEvent} from 'react-testing-library'; import React from 'react'; const flushPromises = async () => new Promise(resolve => setImmediate(resolve)); const loadingText = 'scripts loading'; const...
src/routes.js
htaox/node-fhir
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Home, About, Login, LoginSuccess, NotFound, Conformance } from 'containers'; export default (store) => { ...
src/client/admin/productcategories/productCategoryForm.js
r3dDoX/geekplanet
import Button from '@material-ui/core/Button'; import Divider from '@material-ui/core/Divider'; import MenuItem from '@material-ui/core/MenuItem'; import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import actions from 'red...
docs/src/ComponentsPage.js
pombredanne/react-bootstrap
import React from 'react'; import AutoAffix from 'react-overlays/lib/AutoAffix'; import Nav from '../../src/Nav'; import NavItem from '../../src/NavItem'; import Anchor from './Anchor'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import SubNav from '....
actor-apps/app-web/src/app/components/SidebarSection.react.js
vanloswang/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Ttommeke/ITalentIAmTom
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'));
code/workspaces/web-app/src/components/settings/UserPermissionsTableActionCells.spec.js
NERC-CEH/datalab
import React from 'react'; import { render, fireEvent } from '@testing-library/react'; import { PERMISSION_VALUES, PERMISSIONS } from '../../constants/permissions'; import { CheckboxCell, PermissionsCheckbox, RemoveUserButtonCell } from './UserPermissionsTableActionCells'; jest.mock('@material-ui/core/Checkbox', () =>...
src/Components/Footer.js
andiblas/react-starter
import React from 'react'; import { Grid } from 'react-bootstrap'; class Footer extends React.Component { render(){ return( <Grid> <hr /> <footer> <p>Blas Inc.</p> </footer> </Grid> ); } } export default Footer;
docs/app/Examples/elements/Header/Types/HeaderExampleSubheaders.js
koenvg/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleSubheaders = () => ( <div> <Header sub>Price</Header> <span>$10.99</span> </div> ) export default HeaderExampleSubheaders
template.js
jostw/jos.tw
import fs from 'fs'; import path from 'path'; import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import { minify } from 'html-minifier'; import metaReducer from './src/reducers/metaReducer'; import Index from './src/containers/Index'; const indexPath = path.join(__dirn...
examples/examples/LineChartExample.react.js
ericgio/r-d3
import * as d3 from 'd3'; import React from 'react'; import {Axis, Chart, Line} from '../../src'; import {getInnerHeight, getInnerWidth, translate} from '../../src/utils'; import stockData from '../data/aaplPrice.tsv'; /* example-start */ /** * Adapted from https://bl.ocks.org/mbostock/3883245 */ class LineChartEx...
src/Popup.js
TerranetMD/react-leaflet
import React from 'react'; import { popup } from 'leaflet'; import latlngType from './types/latlng'; import MapComponent from './MapComponent'; export default class Popup extends MapComponent { static propTypes = { position: latlngType }; componentWillMount() { super.componentWillMount(); const { c...
src/components/dialog/dialog.stories.spec.js
teamleadercrm/teamleader-ui
import React from 'react'; import { IconWarningBadgedMediumOutline } from '@teamleader/ui-icons'; import { Dialog, Box, TextBody } from '../..'; export default { component: Dialog, title: 'Dialog', }; export const Main = () => ( <Dialog headerIcon={<IconWarningBadgedMediumOutline />} active onClose...
src/client/admin/AdminRoutes.js
sysart/dashboard
import React from 'react'; import {Route} from 'react-router'; import Admin from './Admin'; import StatsEditor from './components/StatsEditor/StatsEditor'; import MessageEditor from './components/MessageEditor/MessageEditor'; export default ( <Route path="/admin" component={Admin}> <Route path="/admin/st...
src/layouts/CoreLayout/CoreLayout.js
qq83387856/React
import React from 'react' import Header from '../../components/Header' import classes from './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className={classes.mainContainer}> {children} </div> ...
src/components/setName.js
docunext/minimalist-react-component
import React from 'react'; import { connect } from 'react-redux'; import { setName } from '../store/actions'; import Link from '../containers/Link'; let SetName = ({ myName, dispatch }) => { let input; return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { ...
web-ui/src/login/error/auth_error.js
pixelated-project/pixelated-user-agent
/* * Copyright (c) 2017 ThoughtWorks, Inc. * * Pixelated is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Pixelated i...
js/scripting-api.js
concord-consortium/react-lab-examples
import React from 'react'; import ReactDOM from 'react-dom'; import Lab from 'react-lab'; import model from '../json/simple-model.json'; class Interactive extends React.Component { constructor(props) { super(props); this.addAtom = this.addAtom.bind(this); this.removeAtom = this.removeAtom.bind(this); }...
entry_types/scrolled/package/spec/frontend/EditableInlineText-spec.js
tf/pageflow
import React from 'react'; import {EditableInlineText} from 'frontend'; import {render} from '@testing-library/react'; import '@testing-library/jest-dom/extend-expect' describe('EditableInlineText', () => { it('renders empty string by default', () => { const {container} = render(<EditableInlineText />); e...
jekyll-admin/src/containers/views/tests/datafileedit.spec.js
mparlak/mparlak.github.io
import React from 'react'; import { shallow } from 'enzyme'; import { DataFileEdit } from '../DataFileEdit'; import Errors from '../../../components/Errors'; import Button from '../../../components/Button'; import { datafile } from './fixtures'; const defaultProps = { datafile: datafile, updated: false, datafil...
static/src/components/Analytics.js
pyalwin/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actionCreators from '../actions/auth'; import update from 'react-addons-update'; import ReactDataGrid from 'react-data-grid'; import ReactDataGridPlugins from 'react-data-grid-addons'; var LineChart...
react-redux-i18n-starter-kit/src/main.js
josedab/react-examples
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 configure...
demo/views/content/menu5/menu53.js
133922249/demo
import React, { Component } from 'react'; export default class Menu53 extends Component { render() { return ( <div> <span>Menu53</span> </div> ) }; }
client/scripts/components/admin/search-filter-group/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/components/Accordion/Accordion.storiesHelpers.js
helpscout/blue
import React from 'react' import { Accordion, Button, Input, Text } from '../index' import { boolean, number } from '@storybook/addon-knobs' import { faker } from '@helpscout/helix' const body = faker.lorem.paragraph()() const form = ( <form> <Input label="Enter some text" style={{ marginBottom: '7px' }} /> ...
docs/src/app/components/pages/components/AutoComplete/ExampleFilters.js
w01fgang/material-ui
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; const colors = [ 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Purple', 'Black', 'White', ]; const fruit = [ 'Apple', 'Apricot', 'Avocado', 'Banana', 'Bilberry', 'Blackberry', 'Blackcurrant', 'Blueberry', 'Boysenberry...
packages/node_modules/@webex/widget-space-demo/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import ReactDOM from 'react-dom'; import {IntlProvider} from 'react-intl'; import {CookiesProvider} from 'react-cookie'; import '@webex/react-component-spark-fonts'; import DemoWidgetSpace from './components/demo-widget-space'; if (process.env.NODE_ENV !== 'production') { // eslint-dis...
src/svg-icons/action/lock-outline.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOutline = (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 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c...
example/examples/StaticMap.js
mvakulich/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, ScrollView, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_...
src/shared/route/index.js
Grace951/grace951.github.io
import HomePage from '../components/HomePage'; import AboutPage from '../components/AboutPage'; import PortfolioPage from '../components/PortfolioPage'; import DetailsPage from '../components/Portfolio/DetailsPage'; import F2EPage from '../components/Portfolio/F2EPage'; import GraphicPage from '../components/Por...
src/components/Torrent/StatusDetails/index.js
fcsonline/react-transmission
import React from 'react'; import Seeding from './Seeding'; import Checking from './Checking'; import Downloading from './Downloading'; import Error from './Error'; import Status from './Status'; function StatusDetails({ torrent }) { if (torrent.hasErrors) { return <Error torrent={torrent} />; } if (torren...
client/main.js
ibujs/Area51
// @flow /* eslint-env browser */ // Importing React and ReactDOM import React from 'react' import ReactDOM from 'react-dom' // Importing Material UI components below. import Paper from 'material-ui/Paper' import AppBar from 'material-ui/AppBar' import Toolbar from 'material-ui/Toolbar' import Typography f...
packages/material-ui-icons/src/ChromeReaderMode.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ChromeReaderMode = props => <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z" /> </S...
L/my-app/src/components/bangumi/AnimeList.js
imuntil/React
import React from 'react' import PropTypes from 'prop-types' import cssModules from 'react-css-modules' import styles from './AnimeList.module.scss' import classNames from 'classnames/bind' import { Tag, Icon, Tooltip } from 'antd' import { SORTS } from '@/utils/constant' const cx = classNames.bind(styles) let Item = ...
src/routes/AuthorizedRoute/authorized-route.js
Mesamo/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { Route, Redirect } from 'dva/router' import { connect } from 'dva' import { currentUser } from '../../services/login.service' class AuthorizedRoute extends React.Component { render() { const { path, exact, asyncComponent, location, dispa...
src/svg-icons/action/zoom-in.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
modules/__tests__/History-test.js
nottombrown/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' describe('History Mixin', function () { let node beforeEach(function () { node = ...
docs/src/components/Docs/Props/BlockRenderingProp/index.js
jpuri/react-draft-wysiwyg
import React from 'react'; export default () => ( <div> <h3>customBlockRenderFunc</h3> <div className="docs-desc"> Rendering of a blocks can be changed using customBlockRenderFunc. It should be a function that returns a react component. <br /> (Currently if customBlockRenderFunc is pr...
src/view/entry/browserSideFactory.js
VisitingLandmarks/visitingLandmarks
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; // import RouteDefinition from './routeDefinition'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import reducer from '../../redux/reducer/index'; im...
js/setup.js
kwoumn3/khemet
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import App from './App'; import configureStore from './configureStore'; function setup():React.Component { class Root extends Component { constructor() { super(); this.state = { isLoading: false, store...
src/Parser/Monk/Mistweaver/Modules/Items/Eithas.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHea...
src/views/Components/Tables/Tables.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; class Tables extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-lg-6"> <div className="card"> <div className="card-header"> <i className="fa...
web/src/Sign.js
Novemser/InMemoryTelecomService
/** * Created by kevin on 12/10/2016. */ import React from 'react'; import SimpleDialog from './Dialog'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import {hashHistory } from 'react-router' import $ from 'jquery'; import Auth from './Auth' import API from './AP...
src/components/Container.js
hydro-c/methane
import React from 'react'; // react-hot-loader/docs/Troubleshooting.md // https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md import '!style!css!sass!../styles/app.scss'; const Container = React.createClass({ render () { return ( <div className="container"> </div> ); ...
localprovider-redux-saga-ganaraj/src/randomGif/Container.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import * as actions from './actions' import localState from '../LocalProvider'; import reducer from './reducer'; import saga from './saga'; import createSagaMiddleware from 'redux-saga'; const sagaMiddleware = cr...
app/components/toast/index.js
waha3/react-cnode
import React, { Component } from 'react'; import './index.less'; export default class Toast extends Component { state = { show: false, status: false, title: '', content: '' } componentWillUnmount() { clearTimeout(this.time); } toastSuccess(content, title = 'Success', time = 1000) { ...
react-flux-mui/js/material-ui/src/svg-icons/action/pan-tool.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPanTool = (props) => ( <SvgIcon {...props}> <path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
app/jsx/new_user_tutorial/trays/PagesTray.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/components/Help/Help.js
amimof/base64-web
import React, { Component } from 'react'; import './Help.css'; class Help extends Component { render() { return ( <div className="Help"> <div className="ui secondary menu"> <div className="header item"> Usage </div> </div> <div className="ui segment"> <h2 className="ui header">Usage</h2> <div...
src/junior_profiles/JuniorProfileList.js
tadahmen/jrdev-job-hunt-FRONT
import React from 'react'; import jQuery from 'jquery'; import { Link } from 'react-router'; class JuniorProfileList extends React.Component { constructor(){ super(); this.state = { junior_profiles: [] }; } reloadList(event) { let component = this; jQuery.getJSON("https://powerful-wa...
plugins/Hosting/js/components/hoststatus.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' const HostStatus = ({ connectabilitystatus, workingstatus }) => { if (connectabilitystatus === 'checking' && workingstatus === 'checking') { return ( <div className='host-status'> <i className='fa fa-refresh fa-spin inactive-icon' /> ...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
igorbt/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; /** * This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`. */ export default class DatePi...
reactNavigation/__tests__/App.js
pepincho/playground
import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <App /> ); });
frontWeb/main/react/react-router/basic/dev/noMatchExample.js
skycolor/study
import React from 'react' import { BrowserRouter as Router, Route, Link, Switch, Redirect } from 'react-router-dom' const NoMatchExample = () => ( <Router> <div> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/old-match">Old Match, to be redirected</Link></li> <li><L...
src/DropArea.js
diginatu/nagome-webui
import React, { Component } from 'react'; import {Icon} from 'react-onsenui'; import ons from 'onsenui'; // Only display and not catch actual dropping. export default class DropArea extends Component { constructor() { super(); this.state = {dropping: false}; // Stop to move in hole page. ...
packages/examples-todomvc-metareducer/containers/DevTools.js
kastigar/borex
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 /...
client/src/js/components/Controls/Play.js
Siddharth11/iTunes-Remote
import React from 'react' import MdPlayArrow from 'react-icons/lib/md/play-arrow' const Play = () => ( <MdPlayArrow /> ) export default Play
scripts/administration/Administration.js
peletiah/goatFS-Client
/* Administration */ import React from 'react'; import autobind from 'autobind-decorator'; import Multiselect from 'react-widgets/lib/Multiselect'; @autobind class Administration extends React.Component { constructor() { super() this.state = { colors : ['orange', 'red', 'blue', 'purple'], startCol...
src/redux/utils/createDevToolsWindow.js
todvora/extrade
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/index.js
laduke/vigilant-doodle
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunkMiddleware from 'redux-thunk'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import injectTapEventPlugin from 'react-tap-eve...
client/app/scripts/charts/node-shape-rounded-square.js
dilgerma/scope
import React from 'react'; import NodeShapeSquare from './node-shape-square'; // TODO how to express a cmp in terms of another cmp? (Rather than a sub-cmp as here). // HOC! export default function NodeShapeRoundedSquare(props) { return ( <NodeShapeSquare {...props} rx="0.4" ry="0.4" /> ); }
src/js/components/icons/base/Rewind.js
odedre/grommet-final
/** * @description Rewind SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pro...
tests/lib/TextStep.spec.js
EdenBD/react-simple-chatbot
import React from 'react'; import { describe, it } from 'mocha'; import { expect } from 'chai'; import { mount } from 'enzyme'; import { TextStep } from '../../lib/steps'; import Bubble from '../../lib/steps/text/Bubble'; import Image from '../../lib/steps/text/Image'; const CustomComponent = () => ( <div /> ); des...
src/RenderCounter/Counter.js
Stupidism/stupid-rc-starter
import React from 'react'; import T from 'prop-types'; const styles = { counter: { display: 'inline-block', float: 'right', borderRadius: '8px', backgroundColor: '#f95', fontSize: '8pt', fontWeight: 'bold', textAlign: 'center', padding: '1px 5px', color: 'white', top: '2px', ...