path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/slideshow/slide/slide.js
Jwhiles/react-slide-show
import React from 'react'; import styled from 'styled-components'; export default ({ title, titleStyle, content, contentStyle, slideStyle }) => { const Slide = styled.div`${slideStyle}` const Title = styled.h1`${titleStyle}` const Content = styled.p`${contentStyle}` return ( <Slide className="slide"> ...
imports/api/languages/languages.js
howlround/worldtheatremap
// Utilities import React from 'react'; import ReactSelect from 'react-select'; import t from 'tcomb-form'; import { FormattedMessage } from 'react-intl'; import { TAPi18n } from 'meteor/tap:i18n'; class LanguagesCollection extends TAPi18n.Collection { // insert(profile, callback) { // } // remove(selector, call...
src/components/ShareExperience/InterviewForm/index.js
goodjoblife/GoodJobShare
import React from 'react'; import R from 'ramda'; import { scroller } from 'react-scroll'; import ReactGA from 'react-ga'; import ReactPixel from 'react-facebook-pixel'; import { Heading } from 'common/base'; import SubmitArea from '../../../containers/ShareExperience/SubmitAreaContainer'; import styles from './Inter...
src/svg-icons/image/camera-front.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
app/javascript/mastodon/features/following/index.js
nonoz/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowing, expandFollowing, } from '../../actions/account...
src/component/common_cell.js
liuboshuo/react-native-food
import React from 'react' import { TouchableOpacity, View, Image, Text, StyleSheet } from 'react-native' import NetWorkImage from "./../common/component/netWorkImage"; import Food_Detail_Tags from "./food_detail_tag"; import {common_theme,commonStyle} from "./../common/commonStyle" export default c...
client/index.prod.js
johnny88/irisCookingBlog
import 'babel-polyfill'; import React from 'react'; import routes from '../shared/routes'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { configureStore } from '../shared/redux/store/configureStore'; const store = configureSto...
app/components/error-boundary.js
7kfpun/TWAQIReactNative
import React, { Component } from 'react'; import { Text, View } from 'react-native'; export default class ErrorBoundary extends Component { state = { hasError: false }; componentDidCatch(error, info) { this.setState({ hasError: true }); console.log(error, info); } render() { if (this.state.hasErr...
src/index.js
fpyang/Macaroon
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
src/components/entity-info.component.js
Antoine38660/git-point
import React from 'react'; import styled from 'styled-components/native'; import { ListItem } from 'react-native-elements'; import Communications from 'react-native-communications'; import { SectionList } from 'components'; import { colors, fonts } from 'config'; import { translate } from 'utils'; type Props = { en...
docs/src/app/components/pages/components/Stepper/HorizontalTransition.js
w01fgang/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import ExpandTransition from 'material-ui/internal/ExpandTransition'; import TextField from 'material-ui/TextField'; /*...
src/decorators/ClickOutsideComponentDecorator.js
voidxnull/libertysoil-site
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; /** * Decorator * Call React component "onClickOutside" method on click outside DOM element event * @param ComposedComponent * @returns {*} */ export default (ComposedComponent) => { return class ClickOutsideComponentDecorator extends Compon...
form/views/MoneyFieldView.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import {html} from 'components'; import FieldWrapper from './FieldWrapper'; const bem = html.bem('MoneyFieldView'); export default class MoneyFieldView extends React.Component { static propTypes = { className: PropTypes.string, curre...
examples/sub-components/src/App.js
react-tools/react-table
import React from 'react' import styled from 'styled-components' import { useTable, useExpanded } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { border-...
src/svg-icons/action/eject.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEject = (props) => ( <SvgIcon {...props}> <path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/> </SvgIcon> ); ActionEject = pure(ActionEject); ActionEject.displayName = 'ActionEject'; export default ActionEjec...
website/src/components/common/YouTubeIcon/index.js
jwngr/notreda.me
import React from 'react'; import PropTypes from 'prop-types'; import {YouTubeIconSvg} from './index.styles'; const YouTubeIcon = ({title, style, highlightsYouTubeVideoId}) => { return ( <a href={`https://www.youtube.com/watch?v=${highlightsYouTubeVideoId}`} target="_blank" title={title} ...
src/Button.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, bsSizes, bsStyles, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; import { Size, State, Style } from './utils/StyleConfig'; import SafeAnchor from './Safe...
app/javascript/mastodon/components/load_more.js
Ryanaka/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, disabled: PropTypes.bool, visible: PropTypes.bool, } static defaultProps = { vi...
client/common/lib/PrettyTextureCanvas/PrettyTextureCanvas.js
henryyp/lab
import React from 'react' import ReactDOM from 'react-dom' import CanvasCacher from 'lib/CanvasCacher' import * as THREE from 'three' import { generateRandomColor, generateRandomSetColor } from 'lib/GenericHelper' export default class PrettyTextureCanvas extends React.Component { constructor() { super(...
__tests__/index.android.js
swashcap/LookieHere
import 'react-native'; import React from 'react'; import Index from '../index.android'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; // eslint-disable-line jest.mock('../src/services/products'); jest.mock('../src/components/Biggo'); jest.mock('../src/componen...
packages/cf-component-button/src/ButtonGroup.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = props => { const theme = props.theme; return { display: theme.display, position: theme.position, verticalAlign: theme.verticalAlign, whiteSpace: props.direction === 'c...
src/svg-icons/notification/personal-video.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPersonalVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); Notifi...
consoles/my-joy-navigation/src/index.js
yldio/joyent-portal
import React from 'react'; import ReactDOM from 'react-dom'; import stickybits from 'stickybits'; import App from './app'; ReactDOM.render(<App />, document.getElementById('header')); stickybits('#header');
app/javascript/mastodon/features/pinned_statuses/index.js
rekif/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
node_modules/react-bootstrap/es/ModalBody.js
skinsshark/skinsshark.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
element-react-test/src/components/AlertTip.js
fengnovo/fengnovo-react-test
import React from 'react' import { Button, Notification } from 'element-react' class AlertTip extends React.Component { constructor(...args){ super(...args) } onClick() { MessageBox.msgbox({ title: '消息', message: '这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容, 这是一段内容, 这是...
src/components/Navigation/index.js
StudentRND/www
import React from 'react' import { graphql } from 'gatsby' import SmartLink from '../Ui/SmartLink' import { Featured } from '../Ui/Announcements' import DropdownMenu from 'react-dd-menu'; import "./header.sass"; import "./footer.sass"; const linksToList = (links, active) => { return links.map((item, i) => ( ...
js/components/Components.js
gilesbradshaw/uaQL
// @flow 'use strict'; import React from 'react'; import Relay from 'react-relay'; import {createContainer} from 'recompose-relay'; import {compose, doOnReceiveProps} from 'recompose'; //import Component from './Component'; const Components = (MyComponent) => compose( createContainer( { fragments: { ...
src/svg-icons/action/done-all.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
app/components/IssueIcon/index.js
Dattaya/react-boilerplate-object
import React from 'react'; import PropTypes from 'prop-types'; 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...
src/js/containers/blog.js
axuebin/react-blog
import React from 'react'; import PropTypes from 'prop-types'; import { Route } from 'react-router-dom'; import BlogIndex from '../components/blog/blogindex'; import Article from '../components/article/article'; import Archive from '../components/archive/archive'; import Tag from '../components/tag/tag'; import Categor...
frontend/src/app/components/RetireConfirmationDialog.js
clouserw/testpilot
import React from 'react'; export default class RetireConfirmationDialog extends React.Component { render() { return ( <div className="modal-container"> <div id="retire-dialog-modal" className="modal feedback-modal modal-bounce-in"> <header> <h3 className="title warning" data-...
examples/src/components/DisabledUpsellOptions.js
katienreed/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropType...
src/js/components/icons/Edit.js
samogami/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; export default class Edit extends Component { componentDidMount () { console.warn('This icon has been deprecated. Please check http://www.grommet.io/docs/develop/icon for the new set of icons.'); } ...
app/javascript/mastodon/features/ui/components/link_footer.js
Nyoho/mastodon
import { connect } from 'react-redux'; import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import { Link } from 'react-router-dom'; import { invitesEnabled, version, repository, source_url } from 'mastodon/initial_state'; import { log...
src/client.js
basselAlshK/react-redux-universal-hot-example
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
src/containers/Profile/Profile.js
Nuriddinkhuja/photoshare
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Menu, Grid, Label } from 'semantic-ui-react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { Link } from 'react-router'; // import { asyncConnect } from 'redux-connect'; // import { ...
lib/helpers/childrenPropType.js
chentsulin/react-tabs
import React from 'react'; import Tab from '../components/Tab'; import TabList from '../components/TabList'; module.exports = function childrenPropTypes(props, propName) { let error; let tabsCount = 0; let panelsCount = 0; const children = props[propName]; React.Children.forEach(children, (child) => { /...
app/common/post/PostItem.js
sagnikm95/internship-portal
import React from 'react'; import { Card, Table } from 'semantic-ui-react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import './styles.scss'; function formatDate(date) { const d = new Date(date); const monthStr = (d.getMonth() + 1).toString(); const dayStr = d.getDate().toStri...
src/server/index.js
ThinkingInReact/ThinkingInReact.xyz
/*eslint no-console: 0*/ /** * This is compiled to the root of the project (server.js) so all import paths should be relative to that location */ import path from 'path'; import React from 'react'; import ECT from 'ect'; import { Provider } from 'react-redux'; import { renderToString } from 'react-dom/server'; impor...
src/svg-icons/image/gradient.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z...
src/components/Footer/Footer.js
darotar/react-portal
import React from 'react'; import './Footer.scss'; export default class Footer extends React.Component { render() { return( <div/> ); } }
app/containers/LanguageProvider/index.js
Dudelmoser/Mazenger
/* * * 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/Portal.js
IveWong/react-bootstrap
import React from 'react'; import CustomPropTypes from './utils/CustomPropTypes'; import domUtils from './utils/domUtils'; let Portal = React.createClass({ displayName: 'Portal', propTypes: { /** * The DOM Node that the Component will render it's children into */ container: CustomPropTypes.moun...
lib/codemod/src/transforms/mdx-to-csf.js
storybooks/react-storybook
// import recast from 'recast'; import mdx from '@mdx-js/mdx'; import prettier from 'prettier'; import { sanitizeName } from '../lib/utils'; /** * Convert a component's MDX file into module story format */ export default function transformer(file, api) { const j = api.jscodeshift; const code = mdx.sync(file.sour...
lib/MultiSelection/ValueChip.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../IconButton'; import css from './MultiSelect.css'; const ValueChip = ({ children, id, removeButtonProps, controlLabelId, descriptionId }) => { const labelId = `${id}_multiselect_selected_label`; // const buttonId = `${i...
src/main/common/container/UserView.js
FrederikS/react-isomorphic-example
import React from 'react'; import User from '../components/User'; import { IndexLink } from 'react-router'; const UserView = props => { const { userId } = props.params; return ( <div> <User avatar={`/images/avatar-${userId}.gif`} /> <IndexLink to="/">back</IndexLink> </d...
src/js/app.js
marcio/react-webpack-seed
import React from 'react'; import {Route, DefaultRoute } from 'react-router'; import Router from 'react-router'; import Template from './pages/template.jsx'; import DashboardPage from './pages/dashboard/index.jsx'; var routes = ( <Route name="app" path="/" handler={Template}> <Route name="home" path="/dasboard"...
src/containers/graph_list.js
juazugas/MonoThor
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import GraphItem from '../components/graph_item'; import TimerControl from '../components/timer_control'; import { startTimer, stopTimer } from '../actions/index'; class GraphList extends Compon...
src/components/layout/LanguageSelector.js
chatch/stellarexplorer
import React from 'react' import Dropdown from 'react-bootstrap/lib/Dropdown' import MenuItem from 'react-bootstrap/lib/MenuItem' import {FormattedMessage, injectIntl} from 'react-intl' import langSelectImg from '../../img/lang-select.png' const onClickTranslateHelp = () => { window.location.href = 'https://gith...
app/components/AppBar/index.js
ducthong1991/React-Sagas
/** * * AppBar * */ import React from 'react'; import FontAwesome from 'react-fontawesome'; import { Link } from 'react-router'; import styles from './styles.css'; function AppBar({ toggleDrawer, email }) { const loginLink = email || (<Link to="/Login">Login</Link>); return ( <div className={styles.appBar}...
main.js
15chrjef/mobileHackerNews
import Exponent from 'exponent'; import React from 'react'; import { AppRegistry, Platform, StatusBar, Text, StyleSheet, View } from 'react-native'; import { NavigationProvider, StackNavigation } from '@exponent/ex-navigation'; import Router from './navigation/Router'; class App extends React.Component...
client/components/auth/index.js
wordupapp/wordup
/* eslint-disable arrow-parens */ /* eslint-disable react/jsx-indent */ /* eslint-disable indent */ import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Card, Form, Message, Button, Icon } from 'semantic-ui-react'; import { auth } from '../../store'; import sty...
imports/components/SongList.js
tampham47/nau-jukebox
/* © 2017 * @author Tu Nguyen */ /* eslint-disable no-alert, react/no-danger */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Container } from 'flux/utils'; import { distanceInWordsStrict } from 'date-fns'; import { withTracker } from 'meteor/react-meteor-data'; import { Met...
examples/todomvc/containers/Root.js
clintonhalpin/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
src/svg-icons/maps/local-gas-station.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGasStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4...
src/Stepper/StepConnector.js
IsenrichO/mui-with-arrows
import React from 'react'; import PropTypes from 'prop-types'; import pure from 'recompose/pure'; const propTypes = { /** * Override the inline-style of the root element. */ style: PropTypes.object, }; const contextTypes = { muiTheme: PropTypes.object.isRequired, stepper: PropTypes.object, }; const Ste...
examples/index.js
tarang9211/react-tabs
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render( <App />, document.querySelector('.example'), );
src/components/icons/VoicemailIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; export const VoicemailIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24" fill="currentColor"> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 ...
examples/auth-with-shared-root/components/PageOne.js
rubengrill/react-router
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page One!</h2> } }) export default PageOne
frontend/src/components/Admin/PrivateRoute.js
littlebigbot/comical
import React from 'react'; import { isAuthenticated } from '~/auth'; import { Route, Redirect } from 'react-router'; const PrivateRoute = ({ component: Component, ...rest }) => ( <Route {...rest} render={(props) => ( isAuthenticated() ? <Component {...props} /> : <Redirect to={{ pathname: '...
react-ui/src/modules/app/AppView.js
philiWeitz/wifiSniffer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import styles from './styles.scss'; import AppContainer from './AppContainer'; import intervalUtil from '../../util/intervalUtil'; import SearchBox from '.....
src/mui/button/SaveButton.js
marmelab/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import ContentSave from 'material-ui/svg-icons/content/save'; import CircularProgress from 'material-...
src/platform/apps/team/admin/views/settings/index.js
ccetc/platform
import React from 'react' import Page from 'admin/components/page' import Collection from 'admin/components/collection' import Edit from './edit' import AppToken from '../../components/app_token' class Index extends React.Component { render() { return ( <div className="chrome-body"> <Collection {....
src/components/login/LoginPage.js
TulevaEE/onboarding-client
import React from 'react'; import { PropTypes as Types } from 'prop-types'; import { Redirect, withRouter } from 'react-router-dom'; import { FacebookProvider, Like } from 'react-facebook'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import './LoginPage.scss'; import { logo, Aut...
app/javascript/mastodon/features/ui/components/media_modal.js
robotstart/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import ImageLoader from 'react-imageloader'; impor...
src/components/Icons/DiceIcon.js
vNakamura/pocket-campaign
import React from 'react'; import IconBase from 'react-icon-base'; /* eslint-disable max-len */ /* istanbul ignore next */ const DiceIcon = props => ( <IconBase viewBox="0 0 40 40" {...props}> <path d="M26.106 32.744l-3.502 3.932c-.99 1.11-1.325 1.52-2.348 1.993-1.023.474-2.363.498-3.884.356L4.691 37.929C2.488 3...
app/jsx/external_apps/components/Lti2Permissions.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - 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/UserEditor.js
prodigalyijun/demo-by-antd
import React from 'react'; import { Form, Input, InputNumber, Select, Button, message } from 'antd'; import request from '../utils/request'; const FormItem = Form.Item; const formLayout = { labelCol: { span: 4 }, wrapperCol: { span: 16 } }; class UserEditor extends React.Component { ...
pages/index.js
RossAD/MyWebsite
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import DocumentTitle from 'react-document-title' import { config } from 'config' // Styles for highlighted code blocks. import 'css/zenburn.css' export default class Index extends React.Component { render () { ...
docs/client.js
mmarcant/react-bootstrap
import CodeMirror from 'codemirror'; import 'codemirror/addon/runmode/runmode'; import 'codemirror/mode/jsx/jsx'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router, browserHistory} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import 'bootstrap/less/...
packages/mineral-ui-icons/src/IconWallpaper.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconWallpaper(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
mobile/mock ups/auth/src/components/common/Spinner.js
parammehta/TravLendar
import React from 'react'; import { View, ActivityIndicator } from 'react-native'; const Spinner = ({ size }) => { return ( <View style = { styles.spinnerStyle }> <ActivityIndicator size = { size || 'large'} /> </View> ); }; const styles = { spinnerStyle: { flex: 1, ...
modules/ScrollManagementMixin.js
RobertKielty/react-router
import React from 'react'; import { Actions } from 'history'; import { canUseDOM, setWindowScrollPosition } from './DOMUtils'; var { func } = React.PropTypes; function getCommonAncestors(routes, otherRoutes) { return routes.filter(route => otherRoutes.indexOf(route) !== -1); } function shouldUpdateScrollPosition(s...
src/index.js
shawware/react-playpen
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 Root from './components/root'; import reducers from './reducers'; // Build a store to hold the state. var store = createSto...
src/simple-party-dev-tools/index.js
e-schultz/ng-summit-redux
/*eslint-disable */ /* beautify preserve:start */ import angular from 'angular'; import ngRedux from 'ng-redux'; import createLogger from 'redux-logger'; import reducers from '../reducers'; import lineup from '../components/lineup'; import lineupSummary from '../components/lineup-summary'; import { devTools, persistSta...
app/pages/changepwdPage.js
shiyunjie/scs
/** * Created by shiyunjie on 16/12/27. */ /** * Created by shiyunjie on 16/12/6. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, TouchableOpacity, ActivityIndicator, ActivityIndicatorIOS, ProgressBarAndroid, Platform, NativeAppEventEm...
src/js/components/Chart/chart-utils.js
karatechops/grommet-charts
import React from 'react'; import Intl from 'grommet/utils/Intl'; const CLASS_ROOT = 'infographic-chart'; const POINT_RADIUS = 3; export default { // Combine multiple data sets. combineSeries(arrays) { let combinedArray = []; arrays.forEach((array) => { combinedArray = combinedArray.concat(array.val...
app/gui/components/TextField.js
jfilipczyk/lesson-report
import React from 'react'; import { TextField as MaterialTextField } from 'material-ui'; const TextField = ({ input, meta: { touched, error }, ...custom }) => ( <MaterialTextField {...input} {...custom} errorText={touched && error} /> ); export default TextField;
src/components/button/index.js
nai888/langua
import React from 'react' import PropTypes from 'prop-types' import styles from './button.module.sass' import { Link } from 'gatsby' const Button = ({ ver, onClick, id, small, type, role, route, link, external, children }) => { const assignClasses = () => { let classes = styles.btn if (...
docs/src/examples/collections/Menu/States/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' const States = () => ( <ExampleSection title='States'> <ComponentExample title='Hover' description='A menu item can ...
examples/BadgeNavbar.js
chris-gooley/react-materialize
import React from 'react'; import Badge from '../src/Badge'; import Navbar from '../src/Navbar'; import NavItem from '../src/NavItem'; export default <Navbar brand='logo' right> <NavItem href='#!'>sass</NavItem> <NavItem href='#!'> sass <Badge newIcon>4</Badge> </NavItem> <NavItem href='#!'>sass</NavItem> ...
app/components/Users/ManageUsers.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Users, Actions, AddUser, EditUser, Pagination, ResetUserPassword, } from '../../containers/Users'; import { Header } from './index'; import { Loading, Message } from '../common'; const ManageUsersView = (props) => { const { loading,...
components/Navigation/Navigation.js
devinfountain/portfolio
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import './Navigation.scss'; import Link from '../Link'; export default class extends Component { render() { return ( ...
demo/components/TodosFooter.js
Guria/cerebral
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-react'; import counts from '../computed/counts.js'; @Cerebral({ filter: ['filter'], counts: counts }) class TodosFooter extends React.Component { renderRemainingCount() { let count = this.props.counts.remainingCount; if (count === 0...
views/blocks/SearchBar/SearchBarParams/SearchBarParams.js
dimastark/team5
import React from 'react'; import ImagesCountControl from './../../ImagesCountControl/ImagesCountControl'; import DropDownButton from './../../DropDownButton/DropDownButton'; import './SearchBarParams.css'; import Item from './Item'; import b from 'b_'; function itemWithDropDownButton(className, param, params) { r...
examples/huge-apps/app.js
SpainTrain/react-router
import React from 'react'; import { Router } from 'react-router'; import stubbedCourses from './stubs/COURSES'; var rootRoute = { component: 'div', childRoutes: [{ path: '/', component: require('./components/App'), childRoutes: [ require('./routes/Calendar'), require('./routes/Course'), ...
src/demos/building-a-geospatial-app/3-hexagon-overlay/src/index.js
uber-common/vis-academy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render(<App />, document.getElementById('app')); module.hot.accept();
src/svg-icons/communication/stop-screen-share.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
resources/assets/pages/ShowClub.js
DoSomething/rogue
import React from 'react'; import gql from 'graphql-tag'; import { useQuery } from '@apollo/react-hooks'; import { Link, useParams } from 'react-router-dom'; import NotFound from '../pages/NotFound'; import Shell from '../components/utilities/Shell'; import MetaInformation from '../components/utilities/MetaInformation...
src/app/component/expandable-text/expandable-text.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import ExpandableText from '.' storiesOf('ExpandableText', module).add('default', () => ( <ExpandableText moreLabel="…more" length={200}> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore ...
fields/types/textarray/TextArrayFilter.js
concoursbyappointment/keystoneRedux
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormSelect, } from '../../../admin/client/App/elemental'; const MODE_OPTIONS = [ { label: 'Contains', value: 'contains' }, { label: 'Exactly', value: 'exactly' }, { label: 'Begins with', value: 'beginsWith' }, { ...
src/svg-icons/editor/insert-photo.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertPhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); EditorI...
src/svg-icons/action/toc.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToc = (props) => ( <SvgIcon {...props}> <path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/> </SvgIcon> ); ActionToc = pure(ActionToc); ActionToc.displa...
src/pages/NotFound/index.js
bharani91/react-redux-express
import React from 'react' const NotFound = () => { return ( <div> Not Found </div> ) } export default NotFound
js/components/listSwipe/basic-list-swipe.js
auto-flourish/ios
import React, { Component } from 'react'; import { Container, Header, Title, Content, Button, Icon, SwipeRow, ListItem, Text, Left, Right, Body, Item, Input, View, } from 'native-base'; import styles from './styles'; class BasicListSwipe extends Component { render() { return ( <Container style={...
src/svg-icons/image/filter-4.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14...
examples/counter/containers/App.js
ellbee/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
examples/real-world/index.js
yz89/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
src/parser/demonhunter/havoc/modules/talents/Nemesis.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPer...