path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/normalized-select/example/index.js
nkbt/react-works
import React from 'react'; import ReactDOM from 'react-dom'; import {App} from './App'; import './app.css'; const appRoot = document.createElement('div'); appRoot.id = 'app'; document.body.appendChild(appRoot); ReactDOM.render(<React.StrictMode><App /></React.StrictMode>, appRoot);
src/icons/font/ContactsIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Contacts button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const ContactsIcon = (props, context) => { let theme...
src/components/EditorWidgets/Image/ImagePreview.js
Aloomaio/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; export default function ImagePreview({ value, getAsset }) { return (<div className='nc-widgetPreview'> { value ? <img src={getAsset(value)} className='nc-imageWidget-image' role="presentation" /> : null} </...
node_modules/react-router/es6/RouteUtils.js
wangi4myself/myFirstReactJs
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...
src/index.js
aaroncraigongithub/jsla-talk
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
modules/Home.js
proto2017/react-router
/** * Created by Administrator on 2017/3/5. */ import React from 'react'; export default React.createClass({ render() { return <div>Home</div>; } })
src/svg-icons/av/call-to-action.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvCallToAction = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3v-3h18v3z"/> </SvgIcon> ); AvCallToAction = pure(AvCallToAction);...
src/pages/header/Menu.js
Perspicere/PerspicereMagazine
import React from 'react' const Menu = props => ( <svg viewBox="0 0 100 125" width="1em" height="1em" {...props}> <path d="M15.1 24h70v1h-70zM15.1 49h70v1h-70zM15.1 74h70v1h-70z" /> </svg> ) export default Menu
src/application/components/ResourceCard.js
movio/apidoc-ui
// @flow import React from 'react'; import classnames from 'classnames'; import Markdown from 'components/Markdown'; import styles from 'application/components/resource-card.css'; const ResourceCard = ( { method, path, click, description, }: { method: string, path: string, click?: Fun...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
ArcanisCz/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...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-well.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin} from './../common/common.js'; import './well.less'; export const Well = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin ], //@@viewOff:mixi...
src/client/Admin/MailBox.js
KleeGroup/interactive-box
import React from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; const pStyle = { textAlign:'center', marginTop:'2%', marginBottom: '2%' }; const liStyle = { textAlign:'center' }; var MailBox = React.createClass({ getInitialState: function(){ return {mails:[]}; ...
docs/src/app/components/pages/discover-more/RelatedProjects.js
kasra-co/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import relatedProjectsText from './related-projects.md'; const RelatedProjects = () => ( <div> <Title render={(previousTitle) => `Related Projects - ${previousTitle}`} /> <MarkdownEleme...
src/svg-icons/av/album.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAlbum = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-...
src/containers/Widgets/progress/progress-widget.js
EncontrAR/backoffice
import React, { Component } from 'react'; import Progress from '../../../components/uielements/progress'; export default class ProgressWidget extends Component { render() { const { label, icon, iconcolor, details, percent, barHeight, status, } = this.props; const...
app/routes.js
tgirgin23/osm-electron-editor
/* eslint flowtype-errors/show-errors: 0 */ import React from 'react'; import { Switch, Route } from 'react-router'; import App from './containers/App'; import Map from './components/Map'; import Main from './components/Main'; import dataDownload from './components/dataDownload'; export default () => ( <App> <Sw...
components/steps/step.js
TDFE/td-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import s from './style'; import { String } from '../util/is' export default class Steps extends Component { static defaultProps = { prefixCls: s.stepsPrefix, title: '', desc: '' } stati...
docs/src/app/components/pages/components/Tabs/ExampleIconText.js
kittyjumbalaya/material-components-web
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import FontIcon from 'material-ui/FontIcon'; import MapsPersonPin from 'material-ui/svg-icons/maps/person-pin'; const TabsExampleIconText = () => ( <Tabs> <Tab icon={<FontIcon className="material-icons">phone</FontIcon>} label="RE...
src/page/InputNumberPage.js
jerryshew/react-uikits
import React, { Component } from 'react'; import {InputNumber} from '../component' import CodeView from './CodeView' import {CN, TitleBlock} from '../util/tools'; export class InputNumberPage extends Component { constructor(props) { super(props); this.state = { value: 2.3, } ...
src/index.js
sailajachebrolu/shivneri.net
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
openex-front/src/private/components/exercises/audiences/CreateAudience.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as R from 'ramda'; import withStyles from '@mui/styles/withStyles'; import Fab from '@mui/material/Fab'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui/material/Di...
app/client/src/components/Layout/components/HeaderContainer/components/OrganizeHeader/OrganizeHeader.js
uprisecampaigns/uprise-app
import React from 'react'; import Link from 'components/Link'; import s from 'styles/Header.scss'; function OrganizeHeader(props) { return ( <div className={s.subHeader}> <div className={s.logoContainer}> <Link to="/" useAhref>UpRise</Link> </div> <div className={s.linksContainer}> ...
src/node/app.js
zhuang13/blog
import React from 'react'; import ReactDOMServer from 'react-dom/server' import { StaticRouter } from 'react-router' import { Route, matchPath } from 'react-router-dom' import { Provider } from 'react-redux' import app from 'http' import config from 'config' import routes from 'app/configs/routes.js' import proxy from...
components/date-picker/range-picker.js
TDFE/td-ui
/** * @Author: Zhengfeng.Yao <yzf> * @Date: 2017-06-27 20:16:13 * @Last modified by: yzf * @Last modified time: 2017-06-28 09:49:57 */ import React from 'react'; import classNames from 'classnames'; import moment from 'moment'; import Picker from './picker'; import RangeCalendar from './range-calendar'; impor...
src/emoji/RealmEmoji.js
nashvail/zulip-mobile
/* @flow */ import React from 'react'; import { StyleSheet, Image } from 'react-native'; import { connect } from 'react-redux'; import type { Auth } from '../types'; import { getAuth } from '../selectors'; const styles = StyleSheet.create({ image: { width: 20, height: 20, }, }); type Props = { auth: Au...
server/middlewares/clientRoute.js
qiuye1027/insurancePro
import React from 'react' import {renderToString} from 'react-dom/server' import {match, RouterContext} from 'react-router' import {Provider} from 'react-redux' import routes from '../../client/routes' import configureStore from '../../client/common/store/configureStore' let store = configureStore() async function cl...
ui/src/js/blog/BlogOverviewPage.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import moment from 'dayjs'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { getTextForSelectedLanguage } from '../common/language/LanguageHelper'; require('./blogOverviewPage.less'); class Article exten...
web/app/model/module_detail.js
ozmi/bylt
import React from 'react'; import ReactDOM from 'react-dom'; import TypeDeclDetail from 'app/model/type_decl_detail'; export default class ModuleDetail extends React.Component { constructor(props) { super(props); } render() { return ( <div> { Object.keys...
client/scripts/components/dynamic-icons/fe-place-holder/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/main.js
yangbin1994/react-redux-starter-kit
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import App from './app' // ======================================================== // Store Instantiation // ======================================================== const initialState = window.___INITIAL_STATE__ ...
js/jqwidgets/demos/react/app/datatable/rowtemplate/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { } render() { let data = [ ...
test/integration/scss-fixtures/multi-global-reversed/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global2.scss' import '../styles/global1.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/admin/views/account/edit.js
ccetc/platform
import React from 'react' import Form from 'admin/components/form' class Edit extends React.Component { static contextTypes = { admin: React.PropTypes.object, modal: React.PropTypes.object } render() { return <Form {...this._getForm()} /> } _getForm() { return { title: 'Edit Account'...
src/svg-icons/action/perm-camera-mic.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermCameraMic = (props) => ( <SvgIcon {...props}> <path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 ...
src/client/index.js
vanpaz/vbi
import React from 'react' import { render } from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import { Provider } from 'react-redux' import { createStore } from 'redux' import Immutable from 'seamless-immutable' import * as constants from './constants' import { hash } from './utils/hash' impor...
app/javascript/mastodon/components/dropdown_menu.js
h-izumi/mastodon
import React from 'react'; import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown'; import PropTypes from 'prop-types'; class DropdownMenu extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { icon: PropTypes.string.isRequired...
docs/tutorial/DO_NOT_TOUCH/07/src/components/Toast/index.js
idream3/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state} from 'cerebral/tags' export default connect({ toast: state`toast` }, function Toast (props) { if (!props.toast) { return null } return ( <div className='c-alerts c-alerts--bottomright'> <div className={...
examples/huge-apps/routes/Profile/components/Profile.js
limarc/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
src/Parser/Core/Modules/Items/Legion/DrapeOfShame.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import Analyzer from 'Parser/Core/Analyzer'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import Combatants from 'Parser/Core/Modules/Combatants'; import CritEffectBonus from 'Parser/Core/Modules/Helpers/CritEffectBonus'; import ItemHealingDone from 'Main/...
app/scripts/components/IsDataNotAvailable/IsDataNotAvailable.js
cameronbwhite/TimeCardView
/* * TimeCard View * Copyright ©2015 Thomas Nelson, Jacob Nichols, David Opp, Todd Brochu, Andrew McGown, Sasha Fahrenkopf, Cameron B. White. * * This source code is licensed under the MIT license found in the * LICENSE text file in the root directory of this source tree. */ import React from 'react'; import Flux...
js/components/form/stacked.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Item, Label, Input, Body, Left, Right, Icon, Form, Text } from 'native-base'; import { Actions } from 'react-native-route...
client/modules/comments/components/create_comment.js
mantrajs/mantra-sample-blog-app
import React from 'react'; class CreateComment extends React.Component { render() { const {error} = this.props; return ( <div> {error ? this._renderError(error) : null} <textarea ref='text' placeholder='Enter your comment here.'> </textarea> <br /> <button onCli...
src/components/history/History.js
WillMayger/CV
import React from 'react'; import PropTypes from 'prop-types'; import ReactMarkdown from 'react-markdown'; import Skill from '../skills/Skill'; const History = (props) => { const skills = props.skills.map(item => ( <Skill onHover={() => {}} key={`history skill ${item.name}`} {...item} /> ...
Example/index.ios.js
egpast/react-native-camera
import React from 'react'; import { AppRegistry } from 'react-native'; import Example from './Example'; AppRegistry.registerComponent('Example', () => Example);
src/components/TimeAndSalary/SearchScreen/WorkingHourBlock.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import { Heading } from 'common/base'; import { Link } from 'react-router-dom'; import styles from './WorkingHourBlock.module.css'; import { pageTypeTranslation } from '../../../constants/companyJobTitle'; const WorkingHourBlock = ({ pageType, name, to, d...
src/AppContainer.js
mkermani144/wanna
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import changeTab from './Sidebar/actionCreators'; import App from './App'; import store from './store'; const mapStateToProps = state => ({ currentTab: state.appUI.currentTab, }); const mapDispatchToProps ...
client/src/pages/guide.js
pahosler/freecodecamp
import React from 'react'; import Helmet from 'react-helmet'; import Layout from '../components/layouts/GuideLayout'; function Index() { return ( <Layout> <Helmet> <title>Guide | freeCodeCamp.org</title> <meta content='Short, concise guides and how-tos for the busy developer.' ...
src/index.js
mcneillj/react-ghpage-test
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/widgets/components/seasons.js
vipoo/iracing-widgets
import React from 'react'; import Season from 'widgets/components/season'; import iRacingService from 'lib/iRacingService'; import WidgetNames from 'lib/widgetNames'; WidgetNames.add('seasons') const Seasons = React.createClass({ getInitialState() { return { }; }, render() { var seasons = this.props.s...
packages/interfaces/web-app/src/components/atoms/Form.js
assistant-os/assistant-os
import React from 'react' import PropTypes from 'prop-types' const Form = ({ onSubmit, ...props }) => { const handleSubmit = event => { event.preventDefault() event.stopPropagation() onSubmit(event) } return <form {...props} onSubmit={handleSubmit} /> } Form.defaultProps = { onSubmit: () => {}, }...
modules/experimental/AsyncProps.js
keathley/react-router
import React from 'react'; import invariant from 'invariant'; var { func, array, shape, object } = React.PropTypes; var contextTypes = { asyncProps: shape({ reloadComponent: func, propsArray: array, componentsArray: array }) }; var _serverPropsArray = null; function setServerPropsArray(array) { inv...
src/client/pages/notfound.react.js
Zycon42/este-chat
import DocumentTitle from 'react-document-title'; import React from 'react'; import {Link} from 'react-router'; import {msg} from '../intl/store'; export default class NotFound extends React.Component { render() { return ( <DocumentTitle title={msg('notFound.title')}> <div> <h1>{msg('not...
gatsby-strapi-tutorial/cms/admin/admin/src/components/LeftMenuFooter/index.js
strapi/strapi-examples
/** * * LeftMenuFooter * */ import React from 'react'; import { defineMessages, FormattedMessage } from 'react-intl'; import { PropTypes } from 'prop-types'; import LeftMenuLink from '../LeftMenuLink'; import styles from './styles.scss'; import messages from './messages.json'; defineMessages(messages); function Lef...
src/svg-icons/file/folder-shared.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderShared = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v...
src/svg-icons/places/all-inclusive.js
nathanmarks/material-ui
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...
app/components/Home.js
Fresh-maker/razor-client
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; import Window1Page from '../containers/Window1Page'; import Window2Page from '../containers/Window2Page'; import Modal from 'react-modal'; class Images extends Component { render() { } } class H...
docs/app/Examples/elements/Header/index.js
koenvg/Semantic-UI-React
import React from 'react' import Types from './Types' import Content from './Content' import States from './States' import Variations from './Variations' const HeaderExamples = () => ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) export default HeaderExamples
src/components/Feedback/Feedback.js
miketamis/CaughtHere
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
fields/explorer/components/FieldType.js
ratecity/keystone
import React from 'react'; import Markdown from 'react-markdown'; import Col from './Col'; import Row from './Row'; import FieldSpec from './FieldSpec'; const ExplorerFieldType = React.createClass({ getInitialState () { return { readmeIsVisible: !!this.props.readme, filter: this.props.FilterComponent.getDefa...
examples/flux-utils-todomvc/js/app.js
Lhuihui/flux
/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */ 'use s...
nodes/stampzilla-server/web/src/routes/alerts/index.js
stampzilla/stampzilla-go
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Card from '../../components/Card'; const toStatusBadge = (n, state) => { if (n.get('enabled')) { if (!state) { return <div className="badge badge-info">Unknown</div>; } if (state.get('error')) { return <...
src/components/withViewport.js
cbellino/react-sandbox
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; // eslint-disabl...
source/client/components/App.js
NAlexandrov/yaw
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'react-emotion'; import { injectGlobal } from 'emotion'; import CardInfo from 'card-info'; import axios from 'axios'; import errorHandler from './helpers/errorHandler'; import { CardsBar, Header, History, Prepaid, ...
www/src/components/Sonnet.js
glenjamin/react-bootstrap
import React from 'react'; class Sonnet extends React.Component { constructor(...args) { super(...args); import('shakespeare-data').then(s => this.setState({ sonnet: s.sonnets.random() }), ); } state = {}; render() { const { sonnet } = this.state; if (!sonnet) return <p />; re...
docs/src/components/DocumentationPage/DocumentationPageFooter.js
Semantic-Org/Semantic-UI-React
import PropTypes from 'prop-types' import React from 'react' import { Link } from 'react-static' import { Divider, Grid, Header } from 'semantic-ui-react' const DocumentationPageFooter = ({ nextPage, prevPage }) => nextPage || prevPage ? ( <> <Divider /> <Grid columns={2}> <Grid.Column> ...
packages/native/src/components/screens/settings/SettingsResources.js
hwaterke/inab
import React from 'react' import PropTypes from 'prop-types' import {Button, StyleSheet, Text, View} from 'react-native' import { AccountResource, BudgetItemResource, CategoryGroupResource, CategoryResource, PayeeResource, TransactionResource, } from '@inab/shared' import {connect} from 'react-redux' import...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
template01/editthispost
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
docs/app/Examples/elements/Segment/Variations/SegmentExampleFloated.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleFloated = () => ( <div> <Segment floated='left'> This segment will appear to the left </Segment> <Segment floated='right'> This segment will appear to the right </Segment> </div> ) export default ...
modules/gui/src/app/home/body/process/recipe/timeSeries/panels/timeSeriesToolbar.js
openforis/sepal
import {RecipeActions} from '../timeSeriesRecipe' import {Retrieve} from 'app/home/body/process/recipe/timeSeries/panels/retrieve/retrieve' import {Toolbar} from 'widget/toolbar/toolbar' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom} from 'stateUtils' import {setInitialized} from 'app...
src/components/GuitarApp/parts/Frets/index.js
jesusGalan/fretboardApp
import React, { Component } from 'react'; import Fretguide from 'components/GuitarApp/parts/Fretguide' import String from 'components/GuitarApp/parts/String' class Frets extends Component { render() { let strings = [] let x = 1 for (x = 1; x <= 6; x++) { strings.push(x) } ...
app/javascript/mastodon/features/introduction/index.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { closeOnboarding } from '../../actions/onboarding'; import screenHell...
src/components/auth/signout.js
Peterrkang/Locals
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; class SignOut extends Component { componentWillMount() { this.props.signOutUser(); } render() { return ( <div className="alert alert-success"> Successfully Logged Out! </di...
app/javascript/mastodon/components/status_action_bar.js
res-ac/mstdn.res.ac
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
src/Tile.js
Codility/swarm
import React from 'react'; import { DragSource } from 'react-dnd'; import { ITEM_TYPES } from './Constants'; import { connect } from 'react-redux'; import { canDragTile } from './selectors'; import { actions } from './actions'; const tileSource = { canDrag(props) { return props.canDragTile }, beginDrag(props...
app/components/form/next-button/index.js
Vizzuality/forest-watcher
import React from 'react'; import PropTypes from 'prop-types'; import { View, Image, TouchableHighlight } from 'react-native'; import Theme from 'config/theme'; import styles from './styles'; const nextIconWhite = require('assets/next_white.png'); function NextButton(props) { function onButtonPress() { if (!pr...
src/components/SvgCanon.js
mikalmorello/mikalmorello.github.io
import React from 'react' const SvgCanon = props => ( <svg width={125} height={63}> <title>{'Cannon'}</title> <g fillRule="nonzero" fill="#FFF"> <path d="M64.486.933C53.154.933 43.341 7 38.084 16.1H26.87v9.333H124.182V16.1H91.005C85.63 7 75.818.933 64.486.933zM75.467 8.4l-7.593 7.583h-.117V6.067c2.687....
web/src/main/webapp_source/src/components/Layout.js
mschvarc/PB138-Inventory-Management
import React, { Component } from 'react'; import {Link} from 'react-router'; class Layout extends Component { render() { return <div className="app-dashboard shrink-medium"> <div className="row expanded app-dashboard-top-nav-bar"> <div className="columns medium-2"> <button data-toggle="app-d...
plugins/Hosting/js/components/announce.js
NebulousLabs/New-Sia-UI
import React from 'react' const AnnounceDialogModal = ({ announceAddress, actions }) => { const handleSettingInput = e => actions.updateModal('announceAddress', e.target.value) const hideAnnounceDialog = address => actions.hideAnnounceDialog(address) const closeAnnounceDialog = () => hideAnnounceDialog('') ...
docs/src/examples/views/Advertisement/Types/AdvertisementExamplePanorama.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Advertisement } from 'semantic-ui-react' const AdvertisementExamplePanorama = () => ( <Advertisement unit='panorama' test='Panorama' /> ) export default AdvertisementExamplePanorama
src/JobTemplates.js
bhgames/data_check
import React, { Component } from 'react'; import './App.css'; import { Button, Checkbox } from 'react-bootstrap'; import { RulesList } from './Rules'; import { DataSourcesList } from './DataSources'; import { WithData, List, ResourceForm, HasManyAssociationFormElement, SingleFieldElement } from './General'; import Conf...
packages/material-ui-codemod/src/v1.0.0/import-path.test/actual.js
lgollut/material-ui
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import { MenuItem } from '@material-ui/core/Menu'; import MuiTabs, { Tab } from '@material-ui/core/Tabs'; import BottomNavigation, { BottomNavigationAction } from '@material-ui/core/BottomNavigation'; import Card, { CardActions, CardConte...
src/components/sass/original/SassOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './SassOriginal.svg' /** SassOriginal */ function SassOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'SassOriginal' + ' ' + className...
src/components/BigButton.js
Minishlink/DailyScrum
import React, { Component } from 'react'; import { StyleSheet, View, Text, ActivityIndicator } from 'react-native'; import { Button, Icon } from '../components'; import appStyle from '../appStyle'; export default class BigButton extends Component { props: PropsType; shouldComponentUpdate(nextProps: PropsType) { ...
public/search_react.js
viktorkh/elastickit_express
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { extend } from 'lodash'; import './index.css'; import { SearchkitManager, SearchkitProvider, Searchkit, SearchBox, RefinementListFilter, Pagination, Hits, HierarchicalMenuFilter, HitsStats, SortingSelector, NoHits, ResetFilte...
docs/src/app/components/pages/components/AutoComplete/ExampleDataSources.js
skarnecki/material-ui
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; import MenuItem from 'material-ui/MenuItem'; const dataSource1 = [ { text: 'text-value1', value: ( <MenuItem primaryText="text-value1" secondaryText="&#9786;" /> ), }, { text: 'text-value2'...
src/components/Footer/Footer.js
jsivakumaran/map-app
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import s from '....
common/routes/Main/components/Playlist.js
kuguarpwnz/musix
import React from 'react'; import Track from './Track'; import { List } from 'material-ui/List'; const style = { float: 'left', width: '50%' }; const Playlist = ({ tracks, onClick, backgroundColor }) => ( <List style={style}> {tracks.map(track => <Track key={track._id || track.aid} track={track...
client/react/src/edit.js
js-data/js-data-examples
import React from 'react' import {store} from './store' export default class Edit extends React.Component { constructor (props) { super(props) const id = this.props.params.id if (id && id !== 'new') { store.find('post', id).then((post) => { this.setState({ title: post.title, ...
packages/veritone-react-common/src/components/ProgressDialog/index.js
veritone/veritone-sdk
import React from 'react'; import { number, string, oneOf, shape, any } from 'prop-types'; import Paper from '@material-ui/core/Paper'; import CircularProgress from '@material-ui/core/CircularProgress'; import CheckCircle from '@material-ui/icons/CheckCircle'; import RemoveCircle from '@material-ui/icons/RemoveCircle';...
src/Form/ReduxFormFields.js
boldr/boldr-ui
// @flow import React from 'react'; import Checkbox from './Checkbox'; import Control from './Control'; import Help from './Help'; import FormField from './Field/FormField'; import Label from './Label'; import Radio from './Radio'; import Input from './Input'; import TextArea from './TextArea'; import SelectInput from ...
src/App.js
chiefwhitecloud/running-man-frontend
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter, Route, Link, Switch } from 'react-router-dom' import RacePageLayout from './components/Races/PageLayout'; import RaceListContainer from './components/Races/ListContainer'; import FilterableRaceResults from '....
features/project/views/project.js
zymokey/mission-park
import React from 'react'; import ProjectNav from '../components/projectNav'; export default class Project extends React.Component { render(){ const projectId = this.props.params.projectId; return ( <div className="project-container"> <ProjectNav projectId={projectId}/> {this.props.children} ...
fixtures/unstable-async/suspense/src/components/Spinner.js
jameszhan/react
import React from 'react'; import './Spinner.css'; const SPINNER_SIZES = { small: 30, medium: 50, large: 70, }; const STROKE_WIDTHS = { small: 4, medium: 5, large: 6, }; const PATH_CLASS_NAMES = { small: 'SmallSpinnerPath', medium: 'MediumSpinnerPath', large: 'LargeSpinnerPath', }; // Heavily insp...
Realization/frontend/czechidm-core/src/components/advanced/Tree/Tree.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Immutable from 'immutable'; import classNames from 'classnames'; import _ from 'lodash'; // import { withStyles } from '@material-ui/core/styles'; // import * as Basic from '../../basic'; import * as Domain from...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
happypancake/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
react/src/App.js
gftruj/aframe-experients
import React, { Component } from 'react'; import { Entity, Scene } from 'aframe-react'; import Animal from './Animal' import Sky from './Sky' class App extends Component { render() { return ( <Scene> <Entity position={{x: 0.75, y: 1.6, z: -1}} scale={{x:3,y:3,z:3}} text={{value: 'Using a-frame with r...
src/views/EnvList/index.js
chad-ding/koala
/** *@Author: chad.ding *@Copyright: 2008-2018 CHAD *@Date: 2017-04-06 16:48:24 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Menu, Badge, Breadcrumb, Icon, Tag } from 'antd'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { ...
src/App.js
GJMcGowan/personal_site
import React from 'react'; import Header from './components/Header/Header'; const App = (props) => ( <div> <Header /> {props.children} </div> ); export default App;
src/components/friendItem.js
Andrey11/golfmanager
'use strict'; import React, { Component } from 'react'; import { AppRegistry, StyleSheet, TouchableHighlight, Image, Text, View } from 'react-native'; import { FriendStatusTypes, FriendActionTypes } from '../utilities/const'; import IconTextButton from './iconTextButton'; import styles from '../styles/bas...
src/browser/me/ProfilePage.react.js
abelaska/este
import Helmet from 'react-helmet'; import React, { Component } from 'react'; import { FormattedMessage, defineMessages } from 'react-intl'; const messages = defineMessages({ title: { defaultMessage: 'Profile', id: 'me.profilePage.title', }, }); export default class ProfilePage extends Component { rende...