path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/src/components/articles/ArticleCard.js
kevinladkins/newsfeed
import React from 'react' import {Link} from 'react-router-dom' const ArticleCard = ({channel, article, setArticleUrl}) => { return ( <Link to={`/newsfeed/${channel.source_id}/${setArticleUrl(article.title)}`} className="article-link"> <div className="card"> <h3>{article.title}</h3> <img ...
front_end/front_end_app/src/client/main.js
carlodicelico/horizon
import React from 'react'; import Router from 'react-router'; import routes from './routes'; const app = document.getElementById('app'); const initialState = window._initialState; Router.run(routes, Router.HistoryLocation, (Handler) => { React.render(<Handler initialState={initialState} />, app); });
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
Right-Men/Ironman
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/app-client.js
NoobJS-nwhax/nwhacks-2017
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import AppRoutes from './components/AppRoutes'; window.onload = () => { ReactDOM.render(<AppRoutes/>, document.getElementById('main')); };
src/widgets/TimePicker.android.js
airloy/objective
/** * Created by Layman(http://github.com/anysome) on 16/5/19. */ import React from 'react' import {StyleSheet, View} from 'react-native' import WheelView from 'react-native-wheel' export default class TimePicker extends React.Component { render() { return ( <DateTimePicker date={this.props.date...
app/utils/devtools.component.js
ellheat/devtalk-testing-exercise
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; module.exports = createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" defaultIsVisible={f...
examples/tree-view/index.js
naoishii/ohk2016C
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import Node from './containers/Node' import configureStore from './store/configureStore' import generateTree from './generateTree' const tree = generateTree() const store = configureStore(tree) ...
src/Container.js
cpojer/react-router-relay
import React from 'react'; import StaticContainer from 'react-static-container'; import getParamsForRoute from './getParamsForRoute'; import RootComponent from './RootComponent'; import RouteAggregator from './RouteAggregator'; export default class Container extends React.Component { static displayName = 'ReactRout...
node_modules/@exponent/ex-navigation/src/ExNavigationBadge.js
15chrjef/mobileHackerNews
/** * @flow */ import React from 'react'; import { StyleSheet, Text, View, } from 'react-native'; type Props = { textStyle: Object, onLayout: () => void, }; type State = { computedSize: ?{ width: number, height: number, }, }; export default class Badge extends React.Component { static prop...
src/components/svg/icon/Checkbox-Dash.js
ryanabragg/VanguardLARP
import React from 'react'; import PropTypes from 'prop-types'; const DashboxDash = (props) => { const color = props.color == 'inherit' ? undefined : props.color; const aria = props.title ? 'svg-dashbox-dash-title' : '' + props.title && props.description ? ' ' : '' + props.description ? 'svg-dashbox-dash-de...
src/components/Footer/Footer.js
HildoBijl/DondersHackathonTR
/** * 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 from 'react'; import withStyles from 'isomorp...
actor-apps/app-web/src/app/components/Login.react.js
KitoHo/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import LoginActionCreators from 'actions/LoginActionCreators'; import LoginStore from 'stores/LoginStore'; i...
src/svg-icons/action/spellcheck.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpellcheck = (props) => ( <SvgIcon {...props}> <path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-...
client/app/containers/NotFoundPage/index.js
KamillaKhabibrakhmanova/postcardsforchange-api
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
src/components/tabCamera/PhotoDataInputForm.js
timLoewel/sites
/** * Created by tim on 16/03/17. */ /** * Created by tim on 13/03/17. */ import React from 'react'; import {connect} from 'react-redux'; import {ScrollView, TextInput, Text, View, KeyboardAvoidingView, Button} from 'react-native'; import I18n from '../../assets/translations'; import theme from '../../assets/them...
src/svg-icons/hardware/mouse.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareMouse = (props) => ( <SvgIcon {...props}> <path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/> </SvgIcon> ); HardwareMouse =...
src/components/common/svg-icons/action/view-quilt.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
src/widgets/StepperInputs/StepperInputWithLabel.js
sussol/mobile
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import { Text, View } from 'react-native'; import propTypes from 'prop-types'; import { BaseStepperInput } from './BaseStepperInput'; import { DARKER_GREY, APP_FONT_FAMILY } from '../../globalStyles'; export const StepperInputWithLabel = ({ co...
src/views/icons/ExpandIcon.js
physiii/open-automation
import React from 'react'; import PropTypes from 'prop-types'; import IconBase from './IconBase.js'; import './ExpandIcon.css'; export class ExpandIcon extends React.Component { constructor (props) { super(props); this.state = {isHovered: false}; this.handleMouseOver = this.handleMouseOver.bind(this); this....
src/components/dialog/Dialog.js
isogon/styled-mdl
import React from 'react' import ReactModal from 'react-modal' import { DialogStyle, fadeIn } from './Dialog.style' const style = { overlay: { position: 'fixed', top: 0, left: 0, right: 0, bottom: 0, backgroundColor: 'rgba(100, 100, 100, 0.3)', zIndex: 999, display: 'flex', align...
mlflow/server/js/src/common/utils/Utils.js
mlflow/mlflow
import dateFormat from 'dateformat'; import React from 'react'; import notebookSvg from '../static/notebook.svg'; import revisionSvg from '../static/revision.svg'; import emptySvg from '../static/empty.svg'; import laptopSvg from '../static/laptop.svg'; import projectSvg from '../static/project.svg'; import jobSvg from...
src/Fade.js
HPate-Riptide/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import Transition from 'react-overlays/lib/Transition'; const propTypes = { /** * Show the component; triggers the fade in or fade out animation */ in: React.PropTypes.bool, /** * Unmount the component (remove it from the DOM) when it is f...
app/components/myGrid.js
JustinBeckwith/trebuchet
import React from 'react'; import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import MyGridRow from './myGridRow'; import * as AppEvents from './../machines/appEvents'; export default class MyGrid extends React.Component { constructor(props) { super(pro...
src/svg-icons/device/gps-off.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5...
classic/src/scenes/mailboxes/src/Scenes/AppScene/Sidelist/SidelistMailboxes/SidelistItemMailbox/SidelistMultiService.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import { accountStore, accountActions } from 'stores/account' import shallowCompare from 'react-addons-shallow-compare' import SidelistMailboxContainer from './SidelistCommon/SidelistMailboxContainer' import SidelistMailboxTooltip from './SidelistCommon/Sidel...
src/components/options/OptionsText2x.js
m0sk1t/react_email_editor
import React from 'react'; const OptionsText2x = ({ block, language, onPropChange }) => { const fontSize = block.options.container.fontSize.match(/\d+/)?block.options.container.fontSize.match(/\d+/)[0]: '16'; return ( <div> <div> <label>{language["Custom style"]}: <input type="checkbox" checked={block.optio...
src/svg-icons/hardware/phonelink-off.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelinkOff = (props) => ( <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6...
app/src/components/Artists.js
Rhadammanthis/BreadScraps
import React, { Component } from 'react'; import { ScrollView, Text, Button, Linking, TextInput, View } from 'react-native'; import { connect } from 'react-redux'; import { artistChanged, artistSelected, searchArtist } from '../actions'; import { Actions } from 'react-native-router-flux'; import { Card, CardSection, In...
src/encoded/static/components/item-pages/components/HiGlass/HiGlassAjaxLoadContainer.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import memoize from 'memoize-one'; import { console, object, ajax } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; import { HiGlassPlainContainer, HiGlassLoadingIndicator } from './HiGlassPlainCo...
Js/Ui/Components/Filters/DateTime.js
Webiny/Webiny
import React from 'react'; import Webiny from 'webiny'; class DateTime extends Webiny.Ui.Component { } DateTime.defaultProps = { format: null, default: '-', value: null, renderer() { try { return <span>{Webiny.I18n.datetime(this.props.value, this.props.format)}</span>; } ca...
pkg/interface/chat/src/js/components/lib/chat-input.js
jfranklin9000/urbit
import React, { Component } from 'react'; import _ from 'lodash'; import moment from 'moment'; import { UnControlled as CodeEditor } from 'react-codemirror2'; import CodeMirror from 'codemirror'; import 'codemirror/mode/markdown/markdown'; import 'codemirror/addon/display/placeholder'; import { Sigil } from '/compone...
packages/logos/src/redis.js
geek/joyent-portal
import React from 'react'; export default props => ( <svg id="svg4300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...props} > <defs> <style dangerouslySetInnerHTML={{ __html: '.cls-1,.cls-2{fill:#fff}.cls-1{opacity:.25;isolation:isolate}.cls-3{fi...
src/components/SignupPage/SignupForm.js
arimaulana/rest-api-frontend-in-react
import React, { Component } from 'react'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import PropTypes from 'prop-types'; // import { Link } from 'react-router-dom'; const styleForm = { display: 'flex', flexDirection: 'column', alignItems: 'center' }; clas...
src/components/LoginPlease.js
MouseZero/voting-app
import React from 'react'; import SmallerContainer from './SmallerContainer'; function LoginPlease(){ return( <SmallerContainer> <h1>Please Login</h1> Please login to view this page. </SmallerContainer> ); } export default LoginPlease;
source/components/Tab.js
TroyAlford/axis-wiki
import React from 'react' import Icon from '@components/Icon' import noop from '@utils/noop' const Tab = ({ caption = '', children, icon = '', onClick = noop, onRemoveClick = noop, removable = false }) => ( <div className="tab" onClick={onClick}> {icon && <Icon name={icon} />} {caption && <div className="cap...
frontend/components/user/avatar.js
apostolidhs/wiregoose
import React from 'react'; import PropTypes from 'prop-types'; import FontAwesome from 'react-fontawesome'; import CSSModules from 'react-css-modules'; import classnames from 'classnames'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Tooltip'; import tr from...
src/components/editor/textEditor.js
eveafeline/D3-ID3-Naomi
import React, { Component } from 'react'; import { ipcRenderer } from 'electron'; const d3parser = require('../../d3-parser/d3parser'); const path = require('path'); const fs = require('fs'); var editor; class TextEditor extends Component { constructor(props) { super(); this.state = { url: path.resolv...
src/decorators/withViewport.js
thisarala/eye-elephant
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/AdminRoutes.js
azureReact/AzureReact
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Redirect, Route, Switch } from 'react-router-dom'; import { connect } from 'react-redux'; import compose from 'recompose/compose'; import getContext from 'recompose/getContext'; import CrudRoute from './CrudRoute'; import NotFound f...
es/components/viewer2d/group.js
cvdlab/react-planner
import React from 'react'; import PropTypes from 'prop-types'; import If from '../../utils/react-if'; import * as sharedStyles from '../../shared-style'; var cx = 0; var cy = 0; var radius = 5; var STYLE_CIRCLE = { fill: sharedStyles.MATERIAL_COLORS[500].orange, stroke: sharedStyles.MATERIAL_COLORS[500].orange, ...
src/components/icons/Link.js
typical000/paveldavydov
import React from 'react' import PropTypes from 'prop-types' import cn from 'classnames' import Icon from './Icon' const Link = ({className}) => ( <Icon> {({classes}) => ( <svg className={cn(classes.icon, className)} viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" > ...
src/javascript/components/Device/deviceDetailView.js
rahulharinkhede2013/xigro-dashboard
import React from 'react'; import classnames from 'classnames'; import GoogleMapDeviceDetailComponet from './../googleMap/deviceDetailsMap'; import index from '../../index.scss'; import { Button, IconButton } from 'att-iot-ui/lib/button'; import Icon from 'att-iot-ui/lib/icon'; let deviceData = { name: "Denny's dev...
src/routes/error/index.js
zhouchao0924/SLCOPY
import React from 'react' import { Icon } from 'antd' import styles from './index.less' const Error = () => <div className="content-inner"> <div className={styles.error}> <Icon type="frown-o" /> <h1>404 Not Found</h1> </div> </div> export default Error
editor/components/FileLoader.js
VishalRohra/chroma-tone
// import classNames from 'classnames'; import React from 'react' import PureComponent from 'react-pure-render/component'; import { Dialog, CircularProgress } from 'material-ui' import Dropzone from 'react-dropzone' import { hideFileLoader, loadFile } from '../actions' import '../styles/FileLoader.less' export defaul...
node_modules/re-base/examples/firebase/chatapp/src/components/Container.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import Message from './Message.js'; import base from '../rebase'; class Container extends React.Component { constructor(props) { super(props); this.state = { messages: [], show: null }; } componentWillMount() { /* * We bind the 'chats' firebase endopint...
app/components/formInputs/BasicInput.js
dawidgorczyca/Jeduthun-desktop
import React from 'react' import classnames from 'classnames' const BasicInputComponent = props => { return ( <div className={classnames('basic-input', props.wrapperClass)}> {(props.label ? <label htmlFor={props.name}>{props.label}</label> : '' )} {(props.type === 'text' && <input ...
src/templates/category-template.js
ivanminutillo/faircoopWebSite
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import Sidebar from '../components/Sidebar'; import CategoryTemplateDetails from '../components/CategoryTemplateDetails'; class CategoryTemplate extends React.Component { render() { const { title } = this.props.data...
src/templates/ruling_entity_promises.js
Betree/democracy-watcher
import React from 'react' import groupBy from 'lodash.groupby' import RulingEntityLayout from '../components/Layout/ruling_entity' import PromisesCategoriesTabs from '../components/Promises/promises_categories_tabs' import PromisesStatistics from '../components/Promises/promises_statistics' export default class Ruli...
src/parser/rogue/assassination/modules/features/Checklist/Component.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules...
modules/gui/src/widget/split/splitHandleCenter.js
openforis/sepal
import {SplitHandle} from './splitHandle' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' import styles from './splitView.module.css' export class SplitHandleCenter extends React.Component { render() { const {position, size, onDragging, onPosition} = this.props r...
blueocean-material-icons/src/js/components/svg-icons/action/done.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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.displayName = 'ActionDone'; ActionDone.muiName = 'SvgIcon'; export default ActionDone;
src/interface/statistics/components/RadarChart/index.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { scaleLinear, scaleOrdinal } from 'd3-scale'; import { schemeCategory10 } from 'd3-scale-chromatic'; import { lineRadial, curveCardinalClosed, curveLinearClosed } from 'd3-shape'; import SvgWrappingText from './SvgWrappingText'; // This is heavily...
src/media/js/addon/components/progressBar.js
mozilla/marketplace-submission
/* ProgressBar, primarily for file uploads. */ import React from 'react'; function toFixedDown(number, digits) { const re = new RegExp("(\\d+\\.\\d{" + digits + "})(\\d)"); const m = number.toString().match(re); return m ? parseFloat(m[1]) : number.valueOf(); } export default class ProgressBar extends React...
node_modules/react-router/es/Redirect.js
SpatialMap/SpatialMapDev
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.st...
src/components/app/Avatar.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getAvatar } from '../../api'; import defaultAvatar from '../../assets/images/default-avatar.png'; class Avatar extends Component { constructor(props) { super(props); } render() { const { size, className, id, title } =...
app/src/js/components/notifs/notif_bubble.js
tahnik/devRantron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getNotifText } from '../../consts/utils'; class Notification extends Component { shouldComponentUpdate(nextProps) { const { notif } = this.props; if (nextProps.unread === 0 && (notif.read === 1)) { return false; ...
components/LodingScreen.js
akashnautiyal013/ImpactRun01
'use strict'; import React, { Component } from 'react'; import{ StyleSheet, View, Image, ScrollView, Dimensions, TouchableOpacity, Text, ActivityIndicatorIOS, } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; var deviceWidth = Dimensions.get('window').widt...
frontend/src/Settings/CustomFormats/CustomFormats/CustomFormat.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Card from 'Components/Card'; import Label from 'Components/Label'; import IconButton from 'Components/Link/IconButton'; import ConfirmModal from 'Components/Modal/ConfirmModal'; import { icons, kinds } from 'Helpers/Props'; import tran...
livedoc-ui-webjar/src/App.js
joffrey-bion/livedoc
// @flow import React from 'react'; import { connect } from 'react-redux'; import { Redirect, Route, Switch, withRouter } from 'react-router-dom'; import { Doc } from './components/doc/DocPresenter'; import { DocFetcher } from './components/fetcher/DocFetcher'; import { LoadingSpinner } from './components/shared/Loadin...
src/components/Project/Project.js
ortonomy/flingapp-frontend
import React, { Component } from 'react'; class Project extends Component { render() { return( <div className="Project"> This is a project! </div> ) } } export default Project;
app/packages/client/src/components/tax/Tax.js
kslat3r/anpr-dashcam
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ListGroup, ListGroupItem } from 'react-bootstrap'; import Loading from '../loading/Loading'; import './Tax.css'; class Tax extends Component { static propTypes = { details: PropTypes.object.isRequired, } shouldComponentUp...
app/javascript/mastodon/features/standalone/compose/index.js
unarist/mastodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
solium/swift-react-native-hybrid
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
app/javascript/mastodon/features/ui/index.js
honpya/taketodon
import classNames from 'classnames'; import React from 'react'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './containers/loading_bar_container'; import TabsBar from './components/tabs_bar'; import ModalContainer from './...
src/components/options/RangeStackOption.js
rokka-io/rokka-dashboard
import React from 'react' import PropTypes from 'prop-types' import FormGroup from '../forms/FormGroup' import InputRange from '../forms/InputRange' const RangeStackOption = ({ label, name, value, definitions, required, onChange, error }) => { // default value may be null if (value === null || value === undefined)...
app/scripts/MoveableTrack.js
hms-dbmi/4DN_matrix-viewer
import PropTypes from 'prop-types'; import React from 'react'; import DraggableDiv from './DraggableDiv'; import TrackArea from './TrackArea'; // See commented out block in "render()". // // const checkMousePosVsEl = (x, y, el) => { // const bBox = el.getBoundingClientRect(); // return isWithin( // x, y, bBox...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
TrungSpy/React-Native-SampleProject
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
client/page/options/options-form/url-options.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import { TableRow } from 'component/form-table'; import { Select } from 'wp-plugin-components'; import UrlMonitoring from './url-monitor'; export const queryMatch = () => [ { ...
src/js/components/ui/ButtonFloating.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; export default class ButtonFloating extends Component { static propTypes = { onClickHandler: PropTypes.func.isRequired, icon : PropTypes.string.isRequired }; handleClick() { this.props.onClickHa...
app/javascript/controllers/graphiql_controller.js
psu-stewardship/scholarsphere
import { Controller } from 'stimulus' import React from 'react' import ReactDOM from 'react-dom' import GraphiQL from 'graphiql' export default class extends Controller { connect () { const graphQLFetcher = (graphQLParams) => { return fetch(this.data.get('endpoint'), { method: 'post', heade...
src/components/Account/CirculationHistory/CircHistorySidebar/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import PageLink from 'components/Contentful/PageLink' import Config from 'shared/Configuration' import styles from './style.module.css' const CircHistorySidebar = (props) => { const calloutLink = { fields: { title: 'Report a Problem', url...
docs/app/Examples/collections/Table/Types/TableExampleStructured.js
koenvg/Semantic-UI-React
import React from 'react' import { Icon, Table } from 'semantic-ui-react' const TableExampleStructured = () => { return ( <Table celled structured> <Table.Header> <Table.Row> <Table.HeaderCell rowSpan='2'>Name</Table.HeaderCell> <Table.HeaderCell rowSpan='2'>Type</Table.HeaderCe...
pages/discover-more/roadmap.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from '../../ROADMAP.md'; function Page() { return <MarkdownDocs markdown={markdown} sourceLocation="/ROADMAP.md" />; } export default...
src/Toolbar/macOs/Nav/index.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import { Style } from 'radium'; import Dimension, { dimensionPropTypes } from '../../../style/dimension'; import WindowFocus from '../../../windowFocus'; const styles = { nav: { display: 'flex', alignItems: 'center' } }; @Dimension({ height: '54px' }) @WindowFocus...
packages/mineral-ui-icons/src/IconFilter3.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 IconFilter3(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
examples/universal/server/server.js
bnwan/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import webpack from 'webpack'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from 'webpack-hot-middleware'; import webpackConfig from '../webpack....
js/jqwidgets/demos/react/app/navigationbar/defaultfunctionality/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxNavigationBar from '../../../jqwidgets-react/react_jqxnavigationbar.js'; class App extends React.Component { render () { let innerHtml = '<div>' + 'Early History of the Internet</div>' + '</div>' + '<div>' + ...
src/docs/components/animate/AnimateBoxesExample.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Tiles from 'grommet/components/Tiles'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import Animate from 'grommet/components/Animate'; import AddIcon from 'g...
examples/real-world/containers/Root.js
nickhudkins/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from '../store/configureStore'; import App from './App'; import UserPage from './UserPage'; import RepoPage from './RepoPage'; const store = configureStore(); export de...
packages/core/src/icons/components/FirstPage.js
iCHEF/gypcrete
import React from 'react'; export default function SvgFirstPage(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="-1612 -5393 32 32" width="1em" height="1em" {...props} > <path data-name="\u9577\u65B9\u5F62 9343" fill="transparent" ...
src/containers/Settings/index.js
ayastreb/money-tracker
import React from 'react'; import CurrencyInput from './Currency/Input'; import CurrenchExchangeRate from './Currency/ExchangeRate'; import DataExport from './DataExport'; import DataImport from './DataImport'; import User from './User'; import CollapsibleSection from '../../components/CollapsibleSection'; const Setti...
client/app/scripts/components/node-details/node-details-control-button.js
paulbellamy/scope
import React from 'react'; import { connect } from 'react-redux'; import { doControl } from '../../actions/app-actions'; class NodeDetailsControlButton extends React.Component { constructor(props, context) { super(props, context); this.handleClick = this.handleClick.bind(this); } render() { let cla...
universal/containers/root/root.prod.js
hex22a/roland
import React, { Component } from 'react'; import { Router } from 'react-router'; export default class Root extends Component { render() { const { routes, history, render, environment } = this.props; return ( <div> <Router history={history} render={render} routes={routes} enviro...
src/svg-icons/editor/border-outer.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderOuter = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v2h2V7zm0 4h-2v2h2v-2zm4 0h-2v2h2v-2zM3 3v18h18V3H3zm16 16H5V5h14v14zm-6-4h-2v2h2v-2zm-4-4H7v2h2v-2z"/> </SvgIcon> ); EditorBorderOuter =...
src/svg-icons/file/cloud-upload.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudUpload = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4....
test/react/app.js
jkoomjian/GlobalMobile
// import React from 'react'; // export default App;
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js
mccun934/katello
/* eslint-disable import/prefer-default-export */ import React from 'react'; import { Icon } from 'patternfly-react'; import { Link } from 'react-router-dom'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { translate as __ } from 'foremanReact/common/I18n'; import { entitlementsInlineEditFormatter...
src/components/button.js
zhangsichu/HybridAppReduxVsIonic
import React from 'react' import styles from './styles.scss' import arrowRight from '../images/arrowRight.png' function Button ({ label, href }) { return ( <a className={styles.button} href={href}> <span>{label}</span> <img src={arrowRight} /> </a> ) } Button.propTypes = { labe...
src/components/Tabs.js
georgeOsdDev/react-draggable-tab
import React from 'react'; import ReactDom from 'react-dom'; import PropTypes from 'prop-types'; import _ from 'lodash'; import invariant from 'invariant'; import classNames from 'classnames'; import Mousetrap from 'mousetrap'; import CustomDraggable from './CustomDraggable'; import TabStyles from './TabStyles'; impor...
src/components/Weui/dialog/confirm.js
ynu/ecard-wxe
/** * Created by jf on 15/10/27. */ import React from 'react'; import classNames from 'classnames'; import Mask from '../mask/index'; class Confirm extends React.Component { static propTypes = { buttons: React.PropTypes.array, show: React.PropTypes.bool, title: React.PropTypes.string ...
app/javascript/mastodon/features/report/components/status_check_box.js
WitchesTown/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
src/components/course/CoursesPage.js
ashutosh-singh-rawat/react-redux-starter
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import { Link, withRouter } from 'react-router-dom'; import * as courseActions from '../../actions/courseActions'; import CourseList from './CourseList'; class CoursesPage ex...
src/index.js
scottenriquez/scottie-dot-io
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import {Router, browserHistory} from 'react-router'; import routes from './routes'; import './styles/styles.css'; var $ = require('jquery'); window.jQuery = $; window.$ = $; import '../node_modules/materialize-css/dist/css/materialize...
frontend/js/components/status.js
mcallistersean/b2-issue-tracker
import React from 'react' import classNames from 'classnames' export default function({status}) { let cls = classNames('label', { 'label-danger': status === 'resolved', 'label-success': status === 'open' }) return <span className={cls}> {status} </span>; }
source-frontend/src/Following.js
Everstar/MusicRadio
/** * Created by tsengkasing on 12/16/2016. */ import React from 'react'; import Avatar from 'material-ui/Avatar'; import {Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import { hashHistory } from 'react-router' import FlatButton from 'material-...
frontend/src/Artist/Editor/Tags/TagsModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import TagsModalContentConnector from './TagsModalContentConnector'; function TagsModal(props) { const { isOpen, onModalClose, ...otherProps } = props; return ( <Modal isOpen={isOpen}...
src/components/Modal/ChangePwdModel.js
lethecoa/work-order-pc
import React from 'react'; import {Button, Modal, Form, Input} from 'antd'; import md5 from '../../common/md5.min'; const FormItem = Form.Item; const formItemLayout = { labelCol: {span: 10}, wrapperCol: {span: 9} }; class ChangePwdForm extends React.Component { state = { confirmDirty: false, }; checkOld...
js/jqwidgets/demos/react/app/ribbon/fluidsize/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRibbon from '../../../jqwidgets-react/react_jqxribbon.js'; class App extends React.Component { render() { return ( <JqxRibbon ref='myRibbon' width={'100%'} height={350} ...
src/components/RadioButton/RadioButton.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import warning from 'warning'; import { s...
src/components/Feedback/Feedback.js
jbsouvestre/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...