path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
plugins/Files/js/components/directoryinfobar.js
NebulousLabs/Sia-UI
import PropTypes from 'prop-types' import React from 'react' const colorBackDisabled = '#C5C5C5' const colorBackEnabled = '#00CBA0' const DirectoryInfoBar = ({ path, nfiles, onBackClick, setDragFolderTarget }) => { const backButtonStyle = { color: (() => { if (path === '') { return colorBa...
packages/create-razzle-app/templates/default/src/App.js
jaredpalmer/react-production-starter
import React from 'react'; import Route from 'react-router-dom/Route'; import Switch from 'react-router-dom/Switch'; import Home from './Home'; import './App.css'; const App = () => ( <Switch> <Route exact path="/" component={Home} /> </Switch> ); export default App;
src/OutputHolder.js
Imvoo/MiniZinc-webui
import React from 'react'; import { OutputStringToComponent } from './Outputs/Outputs'; import './Outputs/Output.css'; export var OutputHolder = React.createClass({ propTypes: { inputs: React.PropTypes.object.isRequired, outputs: React.PropTypes.object.isRequired, result: React.PropTypes.ar...
assets/javascripts/kitten/components/form/pill-number-input/stories.js
KissKissBankBank/kitten
import React from 'react' import { PillNumberInput } from './index' import { DocsPage } from 'storybook/docs-page' export default { component: PillNumberInput, title: 'Form/PillNumberInput', parameters: { docs: { page: () => ( <DocsPage filepath={__filename} importString="PillNumberInput" /> ...
client/components/FlassCommon/Video/VideoCustomProgressBar/VideoCustomQuizBarComponent.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import autobind from 'autobind-decorator'; import VideoTooltipComponent from './VideoTooltip/VideoTooltipComponent'; import './VideoCustomQuizBarStyle.scss'; const { number, string, oneOfType, arrayOf,...
src/svg-icons/action/language.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLanguage = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 ...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxformattedinput.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxFormattedInput = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttribute...
client/modules/App/components/Footer/Footer.js
tranphong001/BIGVN
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; // Import Style import styles from './Footer.css'; import { getSettings } from '../../AppReducer'; // Import Images import bg from '../../header-bk.png'; class Footer extends Component { constructor...
src/svg-icons/image/wb-incandescent.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbIncandescent = (props) => ( <SvgIcon {...props}> <path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2....
src/index.js
neilff/scrumboard
import React from 'react'; import { bindActionCreators } from 'redux'; import { Provider } from 'react-redux'; import { Route, IndexRoute } from 'react-router'; import { ReduxRouter } from 'redux-router'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import history from './config/histor...
src/index.js
ByKeks/react-colander
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import isEqual from 'lodash.isequal'; class Colander extends Component { static propTypes = { children: PropTypes.func.isRequired, colanders: PropTypes.array.isRequired, props: PropTypes.object, }; isValidForRender (compo...
apps/marketplace/components/SellerAssessment/SellerAssessmentView.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import AUheading from '@gov.au/headings/lib/js/react.js' import AUdirectionLink from '@gov.au/direction-links/lib/js/react.js' import { rootPath } from 'marketplace/routes' import styles from './SellerAssessmentReviewStage.scss' const SellerAssessmentView = ...
src/svg-icons/action/favorite-border.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavoriteBorder = (props) => ( <SvgIcon {...props}> <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2...
src/svg-icons/hardware/keyboard-voice.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardVoice = (props) => ( <SvgIcon {...props}> <path d="M12 15c1.66 0 2.99-1.34 2.99-3L15 6c0-1.66-1.34-3-3-3S9 4.34 9 6v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 15 6.7 12H5c0 3.42 2.72 6....
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/ServiceErrorBoundary.js
wavebox/waveboxapp
import React from 'react' import { Button } from '@material-ui/core' import ServiceInformationCover from './ServiceInformationCover' import RefreshIcon from '@material-ui/icons/Refresh' class ServiceErrorBoundary extends React.Component { state = { hasError: false } componentDidCatch (error, info) { console.e...
src/components/Post/Comment.js
thinq4yourself/simply-social-in
import DeleteButton from './DeleteButton'; import { Link } from 'react-router-dom'; import React from 'react'; import RelativeTime from 'react-relative-time' import { Comment as UIComment } from 'semantic-ui-react' const Comment = props => { const comment = props.comment; const show = props.currentUser && prop...
src/svg-icons/image/panorama.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanorama = (props) => ( <SvgIcon {...props}> <path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePanora...
src/components/TextInputStyledComponents/TextInputStyledComponents.js
bfletcherbiggs/DocreactJS
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styled from 'styled-components'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleDoubling.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleDoubling = () => ( <Grid doubling columns={5}> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='http://semantic-ui.com/images/wire...
src/components/RadarOverlay.js
TorinoMeteo/tm-realtime-map
import React from 'react' import PropTypes from 'prop-types' import { OverlayView } from 'react-google-maps' var Preload = require('react-preload').Preload const STYLES = { overlayView: { // background: `red`, height: '100%', width: '100%', opacity: '.6' } } class RadarOverlay extends React.Comp...
src/components/About/sysuhiker.js
DiroKate/SysuhikerCC
import React from 'react'; import { Card, Timeline, Row, Col } from 'antd'; import styles from './sysuhiker.less'; function SysuhikerDescription() { const timelineData = [ '2010年12月11日,便有了逸仙徒步的第一次拉练活动。我依然记得,是火凤线。有了第一次,就有第二次,第三次……逸仙徒步的常规拉练活动就风风火火的搞起来了,进群里的人数也越来越多。', '2011年3月5-6日,三月份的第一个周末,是一个值得纪念的时间。逸仙徒步组队参加了...
src/components/VmConsole/VmConsoleInstructionsModal.js
oVirt/ovirt-web-ui
import React from 'react' import { Icon, Modal, Button } from 'patternfly-react' import style from './style.css' import { withMsg } from '../../intl' import PropTypes from 'prop-types' class VmConsoleInstructionsModal extends React.Component { constructor (props) { super(props) this.state = { showModal: fals...
src/components/puzzle/Puzzle.js
Daniel-McK/sudoku-lint
import React, { Component } from 'react'; import Block from '../block/Block'; import './Puzzle.css'; class Puzzle extends Component { renderBlock (row, col) { var { actions, grid, suggestion } = this.props; return( <Block row={row} col={col} actions={actions} grid={grid} suggestion={sug...
app/javascript/mastodon/features/notifications/index.js
kibousoft/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
src/js/components/navigation/cart-nav-item.js
v3rt1go/jsse-client
'use strict'; import React from 'react'; class CartNavItem extends React.Component { componentDidMount() { $('.cartNav > .button').popup({ inline : false, hoverable: true, position : 'bottom right', transition: 'slide down' }); } render() { return ( <div className="it...
spec/javascripts/jsx/gradebook/default_gradebook/components/StatusColorListItemSpec.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/js/components/player/PlayerSidebarLeft.js
soundchain/soundchain-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from './PlayerSidebarLeft.scss'; export default class PlayerSidebarLeft extends Component { static propTypes = { }; static defaultProps = { }; render() { return ( <div> {[1,2,3,4,5,6,7,8,9,10].map((i)...
demo-react/src/weatherList/WeatherList.js
renhongl/Summary
import React, { Component } from 'react'; import axios from 'axios'; const styles = { container: { width: '80%', margin: '0 auto', textAlign: 'left' } } export default class WeatherListComp extends Component { constructor(props) { super(props); this.state = { ...
react-flux-mui/js/material-ui/src/svg-icons/action/view-headline.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewHeadline = (props) => ( <SvgIcon {...props}> <path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/> </SvgIcon> ); ActionViewHeadline = pure(ActionViewHeadline); ActionViewHeadline.d...
src/containers/link.js
framlin/frelpama
import React, { Component } from 'react'; var id = 0; class Link extends Component { renderLink(entry) { let label = ""; let href = ""; label = entry.value; href = entry.target; return ( <a className="link" href={href}> == {label} == </a> ) } r...
client/src/Chat.js
coletiv/fonixchat
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Message from './Message'; import './Chat.css'; class Chat extends Component { componentDidMount() { this.messageInput.focus(); this.props.setAnchor(this.fakeAnchor); } render() { const { inputMessage, ...
src/pages/picture.js
nelsongustavo/react-lab
import React from 'react'; import CommentBox from '../components/comments-box'; export default class PicturePage extends React.Component { render() { return ( <div> <div className="cell"> <article className="article article--picture"> <div className="article--picture-author"> ...
src/components/intro/index.js
mich8060/portfolio
import React from 'react' import './intro.scss' import Container from '../container/' import Display from '../display/' import Heading from '../heading/' import Subtitle from '../subtitle/' function Intro(){ return( <Container theme="dark"> <Subtitle>Intro</Subtitle> <Display>Sr. P...
modules/gui/src/app/home/body/apps/appInstance.js
openforis/sepal
import {ContentPadding} from 'widget/sectionLayout' import {compose} from 'compose' import {connect} from 'store' import {forkJoin, of, timer} from 'rxjs' import {getLogger} from 'log' import {msg} from 'translate' import {publishEvent} from 'eventPublisher' import {runApp$} from 'apps' import {withTabContext} from 'wi...
definitions/npm/redux-forms-react_v0.10.x/flow_v0.34.x-v0.52.x/test_redux-forms-react_v0.10.x.js
hansonw/flow-typed
/* @flow */ import React from 'react'; import { Form, Field, FieldArray } from 'redux-forms-react'; let el; /* ======== */ /* = Form = */ /* ======== */ el = ( <Form name="test" /> ); let f: HTMLFormElement; el = ( <Form name="test" persistent onSubmit={(values) => new Promise((resolve, reject) => {...
examples/real-world/src/components/User.js
roth1002/redux
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' const User = ({ user }) => { const { login, avatarUrl, name } = user return ( <div className="User"> <Link to={`/${login}`}> <img src={avatarUrl} alt={login} width="72" height="72" /> <h3...
react/features/settings/components/web/video/VideoSettingsContent.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../../../base/i18n'; import { equals } from '../../../../base/redux'; import Video from '../../../../base/media/components/Video'; import { createLocalVideoTracks } from '../../../functions'; const videoClassName = 'video-preview-video...
app/javascript/mastodon/components/timeline_hint.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const TimelineHint = ({ resource, url }) => ( <div className='timeline-hint'> <strong><FormattedMessage id='timeline_hint.remote_resource_not_displayed' defaultMessage='{resource} from other servers are ...
stories/index.js
jesperancinha/buy-odd-react
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import Button from './Button'; import Welcome from './Welcome'; storiesOf('Welcome', module) .add('to Storybook', () => ( <Welcome showApp={linkTo('Button')}/> )); storiesOf('Button', module) .add('with text', () => ( ...
node_modules/reflexbox/test/Box.js
HasanSa/hackathon
import React from 'react' import test from 'ava' import { mount } from 'enzyme' import jsdom from 'jsdom-global' import { Box } from '../src' let wrapper let inner jsdom() window.matchMedia = () => ({ matches: false, addListener: () => {}, removeListener: () => {} }) test('renders', t => { t.notThrows(() =...
packages/react-ui-components/src/Badge/badge.js
dimaip/neos-ui
import React from 'react'; import PropTypes from 'prop-types'; import mergeClassNames from 'classnames'; const Badge = props => { const { className, theme, label, ...rest } = props; const finalClassName = mergeClassNames({ [theme.badge]: true, [className]: cl...
src/app/app.js
santthosh/swagger-sleek
import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; import { Provider } from 'react-redux'; import {createStore,apply...
examples/todomvc/containers/App.js
gitoneman/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider redux={...
fields/types/select/SelectColumn.js
mikaoelitiana/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTy...
src/svg-icons/av/play-arrow.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayArrow = (props) => ( <SvgIcon {...props}> <path d="M8 5v14l11-7z"/> </SvgIcon> ); AvPlayArrow = pure(AvPlayArrow); AvPlayArrow.displayName = 'AvPlayArrow'; AvPlayArrow.muiName = 'SvgIcon'; export defau...
src/App.js
AihuishouFE/AiChat
import React, { Component } from 'react'; import Login from './pages/Login'; import ChattingRoom from './pages/ChattingRoom'; import './App.less' class App extends Component { constructor() { super(); this.state = { username: '', uid: '', socket: io() } } handleChange(e) { let use...
src/parser/deathknight/frost/CONFIG.js
FaideWW/WoWAnalyzer
import React from 'react'; import { Khazak } from 'CONTRIBUTORS'; import retryingPromise from 'common/retryingPromise'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maint...
src/components/Loader.component.js
callmeaatrey/cleopatra
/* * Loader presentation component * @props - active */ import React, { Component } from 'react'; class Loader extends Component { render() { return ( <div className="intro-loader" style={ (this.props.active) ? {display: "inline"} : {display: "none"}}> <div className="load-line"></div> <div cla...
examples/todomvc/containers/TodoApp.js
jmfurlott/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
src/views/AddrecipeView/AddrecipeView.js
DonHansDampf/whattoeat_website
import React from 'react' import AddRecipeInput from '../../containers/AddRecipeInput' type Props = { }; export class Addrecipe extends React.Component { props: Props; render () { return ( <div> <h3>Simply add new recipes to the database:</h3> <AddRecipeInput /> </div> ) } }...
src/App.js
mdkalish/json_selector
import React, { Component } from 'react'; import SocialProfiles from './components/social_profiles.js' var App = React.createClass({ render: function() { return ( <div> <h1>Diff Tables</h1> <div className="socialProfiles"> <SocialProfiles fullcontactData={this.props.fu...
springboot/GReact/src/main/resources/static/app/routes/outlook/containers/OutlookFolder.js
ezsimple/java
import React from 'react' import _ from 'lodash' import {Link} from 'react-router' import {OverlayTrigger, Tooltip} from 'react-bootstrap' import classnames from 'classnames' import Moment from '../../../components/utils/Moment' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import {outl...
app/jsx/shared/ExternalToolModalLauncher.js
venturehive/canvas-lms
/* * Copyright (C) 2016 - 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...
lib/transform.js
mfellner/react-down
import React from 'react' import MarkdownIt from 'markdown-it' import camelCase from 'camel-case' function parseStyle(string) { const style = {} const pairs = string.split(';') for (let pair of pairs) { const [key, value] = pair.split(':') style[camelCase(key)] = value } return style } function pars...
examples/forms-material-ui/src/decorators/UserIsAuthorized.js
lore/lore-forms
/** * This file provides a higher order component that you can use to hide parts * of the application you don't want the user to see, such as buttons for actions * they don't have permission to perform. * * When this component is "rendered", the 'isAuthorized' method will be invoked. * If the method returns true,...
src/ObjectInspector.js
xyc/react-object-inspector
import React, { Component } from 'react'; import ObjectDescription from './ObjectDescription'; import ObjectPreview from './ObjectPreview'; // Constants const DEFAULT_ROOT_PATH='root'; // Styles import objectStyles from './objectStyles'; const styles = { base: { fontFamily: 'Menlo, monospace', fontSize: '1...
app/app.js
faiz-shaikh/test-admin
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/Todo.js
Ligerlilly/redo
import React from 'react'; export const Todo = ({ onClick, completed, text }) => { return ( <li onClick={onClick} style={{ textDecoration: completed ? 'line-through' : 'none' }} > {text} </li> ); };
ajax/libs/react-instantsearch/5.0.0-beta.1/Dom.js
extend1994/cdnjs
/*! ReactInstantSearch 5.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
examples/async/index.js
mikeachen/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
src/AutoComplete/AutoComplete.js
pradel/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import keycode from 'keycode'; import TextField from '../TextField'; import Menu from '../Menu'; import MenuItem from '../MenuItem'; import Divider from '../Divider'; import Popover from '../Popover/Popover'; import propTypes from '../utils/propTypes'; import...
src/components/ProjectListItem/UnseenCommentsChit.js
Charlie9830/pounder
import React from 'react'; import CommentIcon from '@material-ui/icons/Comment'; const UnseenCommentsIndicator = (props) => { return <CommentIcon color="action" fontSize="small"/> } export default UnseenCommentsIndicator;
packages/cp-frontend/src/containers/manifest/edit-or-create.js
yldio/copilot
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import { compose, graphql } from 'react-apollo'; import { withRouter } from 'react-router'; import { Redirect } from 'react-router-dom'; import intercept from 'apr-intercept'; import paramCase from 'param-case'; import get from 'lodash.ge...
client/src/app/admin/panel/tickets/admin-panel-custom-tags-modal.js
ivandiazwm/opensupports
import React from 'react'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import Button from 'core-components/button'; import Header from 'core-components/header'; import Form from 'core-components/form'; import FormField from 'core-components/form-field'; import SubmitButton from 'core-componen...
src/components/NotFoundComponent.js
chimo/se-dir-frontend-react
'use strict'; import React from 'react'; import { translate } from 'react-i18next'; import Back from './BackComponent'; class NotFoundComponent extends React.Component { render() { const { t } = this.props; return ( <div className="page notfound-component"> <Back /> <p>{t('notFound...
src/svg-icons/action/done.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDone = (props) => ( <SvgIcon {...props}> <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/> </SvgIcon> ); ActionDone = pure(ActionDone); ActionDone.displayName = 'ActionDone'; ActionDone.mui...
packages/icons/src/md/action/ViewColumn.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdViewColumn(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M19 37h10V11H19v26zM7 37h10V11H7v26zm24-26v26h10V11H31z" /> </IconBase> ); } export default MdViewColumn;
src/svg-icons/communication/chat-bubble-outline.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChatBubbleOutline = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/> </SvgIcon> ); CommunicationChatBubbleOutl...
react/src/base/typography/SprkText/SprkText.js
sparkdesignsystem/spark-design-system
import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; const SprkText = ({ children, element, variant, idString, additionalClasses, ...other }) => { const classNames = classnames(additionalClasses, { 'sprk-b-TypeBodyOne': variant === 'bodyOne', 'sprk-b...
source/views/menus/olaf-menus.js
carls-app/carls
// @flow import React from 'react' import {TabBarIcon} from '../components/tabbar-icon' import {Platform, FlatList, StyleSheet} from 'react-native' import type {TopLevelViewPropsType} from '../types' import {Row} from '../components/layout' import {ListRow, ListSeparator, Title, ListEmpty} from '../components/list' imp...
editor/components/DrawingSurface.js
conundrumer/chroma-tone
'use strict'; import React from 'react'; import Rx from 'rx'; import mouse from 'mouse-event' import {Vec2} from 'core'; const Vector = Vec2; import { draw, deltaPanModZoom } from '../actions'; import DrawCancelledException from '../DrawCancelledException'; // TODO: refactor this stuff function copyEvent(e) { let ...
node_modules/react-router/es6/Route.js
andrit/VideoListReact
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
dashboard/js/components/PlayPauseButton.react.js
ethercrow/ai-challenger
import React from 'react'; import ControlPanelActions from '../actions/ControlPanelActions'; import ControlPanelStore from '../stores/ControlPanelStore'; class PlayPauseButton extends React.Component { constructor(props) { super(props); this.state = this._resolveState(); this._onCh...
test/test_helper.js
rblin081/drafting-client
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
client/BucketList/index.android.js
raynormw/bucket-list
import React from 'react' import { AppRegistry } from 'react-native' import App from './src/components/App' export default class BucketList extends React.Component { render() { return ( <App /> ) } } AppRegistry.registerComponent('BucketList', () => BucketList);
docs/client/components/pages/Sticker/SimpleStickerEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import createStickerPlugin from 'draft-js-sticker-plugin'; import editorStyles from './editorStyles.css'; import stickers from './stickers'; const stickerPlugin = createStickerPlugin({ sticke...
src/components/Results/Category/index.js
alantva/meli
import React from 'react'; import PropTypes from 'prop-types'; const Category = (props) => { const { name } = props; return ( <span className="category">{name}</span> ); }; Category.propTypes = { name: PropTypes.string.isRequired, }; module.exports = Category;
src/Channel.js
SkyJedi/SWRPG-Web-Dice-Roller
import React, { Component } from 'react'; import About from './About'; import './index.css'; class Channel extends Component { setChannel(stop) { stop.preventDefault(); var channel = this.refs.channel.value.replace(/\W/g, '').toLowerCase(); ; var user = this.refs.user.value.replace(/\W/g, ''); this....
node_modules/react-router-dom/es/BrowserRouter.js
amybingzhao/savings-planner-web
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/js/index.js
selcher/timetracker
import React from 'react'; import ReactDOM from 'react-dom'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import initOpbeat from 'opbeat-react'; initOpbeat({ appId: '92cc2b0285', organizationId: '622909d2afcb421383e9cec60bd045ae', secretToken: 'aa9d4874898f7790456ea4da9d641201c...
src/containers/About.js
pjkarlik/ReactUI
import React from 'react'; const About = () => { const content = ( <span> <h2>The Information</h2> <p> Sed quis mattis turpis. Ut vitae finibus sem. Donec scelerisque nec nisi non malesuada. Praesent mattis lacus quis diam imperdiet rhoncus. Ut porta efficitur magna, quis pretium magna....
mealbotui/src/js/components/AppNavTab.js
qjflores/mealbot
import React, { Component } from 'react'; import './../../css/AppNavTab.css' import {Row, Nav, NavItem, Grid, Col} from 'react-bootstrap'; import * as firebase from "firebase"; import {Account} from './Account'; import {Schedule} from './Schedule'; import {Home} from './Home'; import {SettingsMenu} from './SettingsM...
src/svg-icons/av/not-interested.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNotInterested = (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 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12...
examples/react-hot-loader-example/index.js
namuol/redbox-react
import React from 'react' import App from './components/App' const root = document.getElementById('root') React.render(<App />, root)
js/jqwidgets/demos/react/app/pivotgrid/values-on-columns/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPivotGrid from '../../../jqwidgets-react/react_jqxpivotgrid.js'; class App extends React.Component { componentDidMount() { this.refs.myReactPivotGrid.getPivotRows().items[1].expand(); this.refs.myReactPivotGrid.refresh(); } ...
src/tag/form-datepicker/index.js
artemdudkin/gtd
import React, { Component } from 'react'; import autobind from 'autobind-decorator'; import moment from 'moment'; import ReactDatePicker from 'react-datepicker'; import 'react-datepicker/dist/react-datepicker.css'; import './styles.css'; //эта фигня из-за того, что календарь показвывается...
src/browser/intl/IntlPage.react.js
vacuumlabs/este
import Component from 'react-pure-render/component'; import Helmet from 'react-helmet'; import Locales from './Locales.react'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { FormattedDate, FormattedMessage, FormattedNumber, FormattedRelative, defineMessages, ...
app/components/todolist/TodoList.js
flanamacca/react-learning-kit
import React from 'react'; import PropTypes from 'prop-types'; // ES6 import classNames from 'classnames/bind'; import Todo from '../../components/todolist/Todo'; import styles from '../../css/todolist.css'; const cx = classNames.bind(styles); const TodoList = ({ todos, onTodoClick, onRemoveTodoClick }) => ( <ul cl...
src/containers/GuessInput.js
LaunchAcademy/name-game
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import Select from 'react-select' class GuessInput extends React.Component { constructor () { super(); this.focus = this.focus.bind(this) this.onChange = this.onChange.bind(this) this.state = ...
node_modules/react-router/es6/Lifecycle.js
harrislabel/personal_website
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
app/packs/src/components/generic/GridEntry.js
ComPlat/chemotion_ELN
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import { FormControl, InputGroup } from 'react-bootstrap'; const setCell = (columnDef, rowValue) => { const { type, field, onCellChange, cellRenderer, cellParams } = columnDef; switch (type) { case 'text': return ( <For...
Example/components/Home.js
gijoehosaphat/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet} from "react-native"; import Button from "react-native-button"; import {Actions} from "react-native-router-flux"; var styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgrou...
src/client/components/modals/NotificationModal.component.js
DBCDK/content-first
import React from 'react'; import Notification from '../general/Notification/Notification.component'; import Modal from './Modal/Modal.component'; /** * This class shows a notification in a Modal box */ export default class NotificationModal extends React.Component { render() { return ( <Modal c...
examples/hot-reloading/src/routeConfig.js
4Catalyzer/found
import Link from 'found/Link'; import Redirect from 'found/Redirect'; import Route from 'found/Route'; import hotRouteConfig from 'found/hotRouteConfig'; import makeRouteConfig from 'found/makeRouteConfig'; import PropTypes from 'prop-types'; import React from 'react'; function LinkItem(props) { return ( <li> ...
components/ui/SwitchOptions.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; class SwitchOptions extends React.Component { constructor(props) { super(props); // BINDINGS this.onChange = this.onChange.bind(this); this.onToggle = this.onToggle.bind(this); } /** * UI EVENTS * - onChange * - onToggle ...
components/Deck/ContentModulesPanel/ContributorsPanel/util/ContributorsUtil.js
slidewiki/slidewiki-platform
import React from 'react'; class ContributorsUtil { //returns full path of an avatar static avatarPath(filename) { return '/assets/images/mock-avatars/' + filename; } static contains(slides, slide) { let found = false; for (let i = 0; i < slides.length; i++) { if (s...
examples/huge-apps/routes/Course/components/Dashboard.js
dalexand/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
src/@ui/Scripture/Scripture.stories.js
NewSpring/Apollos
import React from 'react'; import { StyleSheet, ScrollView } from 'react-native'; import PaddedView from '@ui/PaddedView'; import { storiesOf } from '@storybook/react-native'; import Scripture from './'; import { ItemWithoutData } from './Item'; const references = [ 'Psalm 1', 'Matthew 4:13-17', 'Matthew 11:15-...
Paths/React/06.Styling React Components/2-react-styling-components-m2-exercise-files/demo/After/src/app.js
phiratio/Pluralsight-materials
import autobind from 'autobind-decorator' import React from 'react' import Carousel from './carousel' import Frame from './frame' import Nav from './nav' import Slide from './slide' import configStyles from './config-styles' @autobind export default class DriftApp extends React.Component { state = { showIndex:...
src/components/withViewport.js
pvijeh/stock-tracking-app-reactjs
/** * 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...