path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/Settings/General/BackupSettings.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import FieldSet from 'Components/FieldSet'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import { inputTypes } from 'Helpers/Props'; import...
app/containers/DevTools.js
will-hart/vor
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" > <LogMonitor /> ...
docs/app/Examples/collections/Form/FieldVariations/FormExampleRequiredField.js
shengnian/shengnian-ui-react
import React from 'react' import { Form, Input } from 'shengnian-ui-react' const FormExampleRequiredField = () => ( <Form> <Form.Field required> <label>Last name</label> <Input placeholder='Full name' /> </Form.Field> </Form> ) export default FormExampleRequiredField
client/src/index.js
Overseer-RTK/Overseer
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import Root from './components/Root.jsx'; import App from './components/App.jsx'; import Signup from './components/Signup.jsx'; import Login from './components/Login.jsx'; import Dashbo...
docs/src/Root.js
xsistens/react-bootstrap
import React from 'react'; import Router from 'react-router'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html',...
app/components/Collaps/index.js
andyzeli/Bil
import Collapsible from 'react-collapsible'; import React from 'react'; import PropTypes from 'prop-types'; import { createStructuredSelector } from 'reselect'; import {makeSelectEncounters} from 'containers/App/selectors'; import { connect } from 'react-redux'; import Chev from '../Chev'; import SCol from './SCol'; i...
src/Notification.js
dana2208/react-bootstrap-table
import React, { Component } from 'react'; import { ToastContainer, ToastMessage } from 'react-toastr'; const ToastrMessageFactory = React.createFactory(ToastMessage.animation); class Notification extends Component { // allow type is success,info,warning,error notice(type, msg, title) { this.refs.toastr[type...
src/mui/field/TextField.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import pure from 'recompose/pure'; const TextField = ({ source, record = {}, elStyle }) => { return <span style={elStyle}>{get(record, source)}</span>; } TextField.propTypes = { addLabel: PropTypes.bool, elStyle: ...
actor-apps/app-web/src/app/components/Main.react.js
wangkang0627/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
src/components/StructuredList/StructuredList.js
jzhang300/carbon-components-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import uid from '../../tools/uniqueId'; export class StructuredListWrapper extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, border: PropTypes.b...
src/stories/index.js
Mapker/react-range-input
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Range from '../index'; import '../../style.css'; storiesOf('Button', module) .add('default view', () => ( <Range /> )) .add('with min, max and value props', () => ( <Range min={0} max={10} value={2} /> )) .add('material ...
ui/src/app/components/dataList.js
ridakk/node-log-server
import React from 'react'; import { List, ListItem } from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; const DataList = ({ subheader, content, idKey, leftAvatar, rightIconMenu, rightIconMenuClick, primaryTextKey, secondaryTextKey, onClick }) => <List> ...
frontend/src/components/partners/profile/modals/addVerificationModal/addVerificationModal.js
unicef/un-partner-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { submit, formValueSelector } from 'redux-form'; import { withRouter } from 'react-router'; import { loadVerificationsList } from '../../../../../reducers/partnerVerificationsList'; import Control...
docs/src/app/components/pages/components/AppBar/ExampleIcon.js
rscnt/material-ui
import React from 'react'; import AppBar from 'material-ui/AppBar'; const AppBarExampleIcon = () => ( <AppBar title="Title" iconClassNameRight="muidocs-icon-navigation-expand-more" /> ); export default AppBarExampleIcon;
src/SettingsItemLocation/index.js
christianalfoni/ducky-components
import SettingsItem from '../SettingsItem'; import Typography from '../Typography'; import PopoverMenuAnchor4 from '../PopoverMenuAnchor4'; import PopoverMenu from '../PopoverMenu'; import Popup from '../Popup'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import s...
src/ButtonToolbar.js
herojobs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
app/components/Login/Login.js
leesander1/hearmenow-electron
// @flow import React, { Component } from 'react'; // import { Link } from 'react-router'; import styles from './Login.css'; export default class Login extends Component { render() { return ( <div> <h4>Login</h4> </div> ); } }
docs/src/app/components/pages/components/TextField/ExampleDisabled.js
xmityaz/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleDisabled = () => ( <div> <TextField disabled={true} hintText="Disabled Hint Text" /><br /> <TextField disabled={true} id="text-field-disabled" defaultValue="Disabled Value" />...
src/application/App/PlayerControls/Shuffle.js
AoDev/kaiku-music-player
import PropTypes from 'prop-types' import React from 'react' const shuffleIcon = <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path className="icon-path" d="M21 10.5h3v3.7c0 .3.4.6.7.4.7-.5 5.6-5.1 7.1-6.7.3-.3.3-.7 0-1-1.4-1.4-5.6-5.6-7.2-6.9-.2-.2-.6 0-.6.3V4h-6L8 21.4H0v6.7h10....
src/svg-icons/device/battery-50.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery50 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
fields/types/relationship/RelationshipFilter.js
pswoodworth/keystone
import async from 'async'; import React from 'react'; import xhr from 'xhr'; import { FormField, FormInput, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/components/Popout/PopoutList'; const INVERTED_OPTIONS = [ { label: 'Linked To', value: false }, { label: 'NOT Linked To', va...
examples/with-algolia-react-instantsearch/components/head.js
giacomorebonato/next.js
import NextHead from 'next/head' import { string } from 'prop-types' import React from 'react' const defaultDescription = '' const defaultOGURL = '' const defaultOGImage = '' export const Head = props => <NextHead> <meta charSet='UTF-8' /> <title>{props.title || ''}</title> <meta name='description...
app/Task.js
singun/kanban-app
import React, { Component } from 'react'; import { render } from 'react-dom'; class Task extends Component { render() { console.log('this.props=', this.props); return ( <li key={this.props.id} className="checklist__task" onChange={ this.props.taskCallbacks.toggle.bind(n...
lib/templates/LESSCOMP.js
rle-mino/react-generatr
'use babel'; export default (name = 'MyComp', semi = true) => `\ import React from 'react'__S__ import PropTypes from 'prop-types'__S__ const ${name} = () => ( )__S__ ${name}.propTypes = { }__S__ export default ${name}__S__ `.replace(/__S__/ig, semi ? ';' : '');
src/Glyphicon.js
laran/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
fields/types/color/ColorColumn.js
geminiyellow/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var ColorColumn = React.createClass({ displayName: 'ColorColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
mxw0417/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
src/modules/_global/ProgressBar.js
ntphuc/react-native-woocommerce-food
import React from 'react'; import { View, ActivityIndicator, StyleSheet, Platform } from 'react-native'; const ProgressBar = () => ( <View style={styles.progressBar}> <ActivityIndicator size="large" color={Platform.OS === "ios" ? "white" : "#EA0000"} /> </View> ); const styles = StyleSheet.create({ progressB...
stories/SuppliedSimpleUserFormDemo.js
de44/kb-ui
import React from 'react'; import PropTypes from 'prop-types'; import kb from '../src/kb-ui'; import { withState, compose } from 'recompose'; import FormDemo from './FormDemo'; function getUser(id, name, email, suspended) { return { id, name, email, suspended, profile: { bio: '<h4 style="b...
src/components/pagination/PaginationButton/PaginationFirst.js
CtrHellenicStudies/Commentary
import React from 'react'; import { connect } from 'react-redux'; import { updatePage } from '../../../actions/pagination'; const PaginationFirst = props => ( <button type="button" onClick={props.updatePage.bind(this, props.page)} > <i className="mdi mdi-chevron-left" /> <span> First </span> </button>...
app/components/calendar/CalendarEvent.js
phoenixmusical/web-client
import React, { Component } from 'react'; import { FormattedTime } from 'react-intl'; import Paper from 'material-ui/Paper'; import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card'; export default class CommitteeCalendarEvent extends Component { render () { const { event } = this.props; ...
Card.js
jmayer13/jmayer13.github.io
import React from 'react'; export default ({ image, children }) => ( <div style={{ width: "100%", maxWidth: "300px", height: "100%", margin: "0px auto", backgroundColor: "#ffffff", color: "black", fontSize: "14px", }}> <div style={{ ma...
src/scripts/Playlist.js
williamthing/yoda
'use strict'; import React from 'react'; import PlaylistHeader from './PlaylistHeader'; import PlaylistVideos from './PlaylistVideos'; const PureRenderMixin = React.addons.PureRenderMixin; export default React.createClass({ propTypes: { playlist: React.PropTypes.array.isRequired, }, mixins: [PureRenderMix...
src/components/DataTable/DataTable.js
terryli1643/thinkmore
import React from 'react' import PropTypes from 'prop-types' import { Table } from 'antd' import { request } from '../../utils' import lodash from 'lodash' import './DataTable.less' class DataTable extends React.Component { constructor (props) { super(props) const { dataSource, pagination = { showSizeC...
source/MakeImageButtons.js
angelavu/isit-web-crafts-vu
import React from 'react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import RaisedButton from 'material-ui/RaisedButton'; import 'whatwg-fetch'; class MakeImageButtons extends React.Component { constructor() { super(); this.state = { createImage: 'Create Imag...
packages/material-ui-icons/src/Payment.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z" /></g> , 'Payment');
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/input/TextArea.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/svg-icons/social/plus-one.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPlusOne = (props) => ( <SvgIcon {...props}> <path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/> </SvgIcon> ); SocialPlusOne = pure(SocialPlusOne); SocialPlusOne.displayName = 'Social...
test/z-News/03-ScrollView.js
ivanl001/ReactNative-Learning
/** * Created by feng on 16/12/1. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ScrollView, } from 'react-native'; var dimensions = require('Dimensions'); var windowW = dimensions.get('window').width; export default class IMScrollView extends Compo...
app/components/ajax/response.js
yeomann/twilio-sms
import React from 'react'; export default class Response extends React.Component { render() { return ( <header id="response"><h1>{this.props.responseText}</h1></header> ); } }
src/components/Sidebar/index.js
RichardTianke/react-ant-design-demo-blog
import React from 'react'; import {Layout, Menu, Icon} from 'antd'; import {Link} from 'react-router-dom'; import './Sidebar.css'; const {Sider} = Layout; const {SubMenu} = Menu; class Sidebar extends React.Component { render() { return ( <Sider className="sidebar"> <div id="l...
frontend/js/components/admin/AcceptButton.js
roman901/Overheard
import React from 'react'; import axios from 'axios'; import UIButton from '../../ui/button/component'; export default class AcceptButton extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(e) { e.preventDefau...
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js
tan-jerene/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; function disableWeekends(date) { return date.getDay() === 0 || date.getDay() === 6; } function disableRandomDates() { return Math.random() > 0.7; } /** * `DatePicker` can disable specific dates based on the return value of a callback. *...
src/svg-icons/action/flip-to-front.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlipToFront = (props) => ( <SvgIcon {...props}> <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c...
actor-apps/app-web/src/app/index.js
fengshao0907/actor-platform
import polyfills from 'utils/polyfills'; // eslint-disable-line import crosstab from 'crosstab'; import React from 'react'; import Router from 'react-router'; import Raven from 'utils/Raven'; // eslint-disable-line import isMobile from 'utils/isMobile'; import ReactMixin from 'react-mixin'; import Intl from 'intl'; /...
eventkit_cloud/ui/static/ui/app/components/Notification/NotificationsTableItem.js
venicegeo/eventkit-cloud
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { withTheme } from '@material-ui/core/styles'; import withWidth, { isWidthUp } from '@material-ui/core/withWidth'; import Checkbox from '@material-ui/core/Checkbox'; import ButtonBase from '@material-ui/core/But...
docs/src/render.js
Cadasta/django-skivvy
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import App from './components/app'; import remark from 'remark'; import slug from 'remark-slug'; import content from './custom/content'; import fs from 'fs'; var ast = remark() .use(slug) .run(remark().parse(content)); var template = fs.rea...
frontend/src/components/passwordReset/passwordResetForm.js
unicef/un-partner-portal
import React from 'react'; import { connect } from 'react-redux'; import { reduxForm, clearSubmitErrors } from 'redux-form'; import { compose } from 'redux'; import Snackbar from 'material-ui/Snackbar'; import { withStyles } from 'material-ui/styles'; import PasswordFieldForm from '../forms/passwordFieldForm'; import ...
src/common/Components/Location/Main/index.js
NERC-CEH/irecord-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { IonLifeCycleContext } from '@ionic/react'; import AppMain from 'Components/Main'; import { observer } from 'mobx-react'; import map from './map'; import './styles.scss'; @observer class AreaAttr extends Component { static contextT...
components/Dashboard/DashboardContainer.js
cruzj6/ucgames-native-ios
import React from 'react'; import PropTypes from 'prop-types'; import { View, } from 'react-native'; import TrackedList from './TrackedList'; // Smart component that contains the dashboard components class DashboardContainer extends React.Component { _onForward() { this.props.navigator.push({}); } render(...
examples/kitchensink/app-reversed/components/Root.js
Travix-International/frint
import React from 'react'; import { observe } from 'frint-react'; import { map } from 'rxjs/operator/map'; import { scan } from 'rxjs/operator/scan'; class Root extends React.Component { render() { return ( <div> <strong>App: Reversed</strong> - {this.props.text.split('').reverse().join('')} ...
src/components/Footer/Footer.js
terios/playMe
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import s from '....
src/svg-icons/maps/local-florist.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalFlorist = (props) => ( <SvgIcon {...props}> <path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2....
app/src/components/Messages.js
quiaro/chunches
import React from 'react'; import { graphql, compose } from 'react-apollo'; import styled from 'styled-components'; import MessageItemRequestPending from './MessageItemRequestPending'; import MessageItemRequestAccepted from './MessageItemRequestAccepted'; import MessageItemRequestDenied from './MessageItemRequestDenied...
src/app/views/savedRecipes.js
webcoding/reactui-starter
import _ from 'lodash'; import React from 'react'; import Reflux from 'reflux'; import { Link } from 'react-router'; import meStore from 'stores/me'; import meActions from 'actions/me'; import RecipeListItem from 'components/recipeListItem'; import Spinner from 'components/spinner'; export default React.createClas...
app/mobileLandscape/ToolbarButton/index.js
christianalfoni/webpack-bin
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; import classnames from 'classnames'; @Cerebral() class ToolbarButton extends React.Component { constructor() { super(); } onClick(e) { if (this.props.stopPropagation || this.props.stop...
js/src/Connection/connection.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
app/routes.js
Git-Together/GitTogether
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App-container'; import HomePage from './containers/HomePage-container'; import authCheck from './utils/checkLogin.js' import Auth from './components/Auth/Auth-component.js' export default ( <Route path="/" comp...
src/components/Section/index.js
d-amit/in-di-go
import React from 'react'; class Section extends React.Component { render() { return ( <section id={this.props.id} className={this.props.className}> {this.props.children} </section> ); } } export default Section;
lib/node.js
pqx/react-ui-tree
import cx from 'classnames'; import React, { Component } from 'react'; export default class UITreeNode extends Component { constructor(props) { super(props); this.innerRef = React.createRef(); } renderCollapse = () => { const { index } = this.props; if (index.children && index.children.length) ...
practice/a03.30/react/app/NewsList.js
GBKstc/test
/** * Created by Administrator on 2017/3/31. */ import React from 'react'; import NewsHeader from './NewsHeader.js'; import NewsItem from './NewItem.js'; export default class NewsList extends React.Component { render() { return ( <div className="newsList"> <NewsHeader /> <NewsItem /> </div> ); } ...
src/server/motif.js
pzhine/derribase
import 'babel-polyfill'; import fs from 'fs'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter } from 'react-router'; import EntriesByMotif from '../components/EntriesByMotif'; import ColumnHead from '../components/ColumnHead'; const motif = (mid) => { const doc = J...
app/components/ComponentsGraph/index.js
filso/react-components-graph
import React from 'react'; import PropTypes from 'prop-types'; import Graph from '../../models/Graph'; import SearchNode from '../SearchNode'; import * as _ from 'lodash'; export default class ComponentsGraph extends React.Component { // eslint-disable-line react/prefer-stateless-function componentDidMount() { ...
src/components/map-container/map-marker/MapMarker.js
beccahbartlett/madapt-frontend
import React, { Component } from 'react'; import './MapMarker.css' class MapMarker extends Component { constructor(props) { super(props) this.state = { style: { border: 'none' } } } open() { console.log('MapMarker.open()') this.setState({ style: { border: '5px dashed red' } }) } c...
src/app/ui/forms/SelectField/SelectField.native.js
arikanmstf/mylibrary
/** * Native Component Template By => create-module script * @version 1.2.1 * */ // @flow import React from 'react'; import type { Node } from 'react'; import type { SelectFieldProps } from './types'; const SelectField = (props: SelectFieldProps): ?Node => { return null; }; export default SelectField;
client/api/compose.js
pstuart/Open-Dash
import React from 'react'; import { compose } from 'react-komposer'; import Loading from '/client/modules/core/components/loading'; /** * getTrackerLoader creates a Meteor Tracker to watch dep updates from * passed in reactiveMapper funtion * @param {Function} reactiveMapper data fetching function to bind to a tra...
src/svg-icons/action/trending-down.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingDown = (props) => ( <SvgIcon {...props}> <path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/> </SvgIcon> ); ActionTrendingDown = pure(ActionTrendingDown); ActionTre...
fields/types/select/SelectColumn.js
asifiqbal84/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var SelectColumn = React.createClass({ displayName: 'SelectColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.ob...
src/components/profile/ProfileContainer.js
simnau/event-scraper-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import * as actions from './profile-actions'; import Profile from './Profile'; class ProfileContainer extends Component { static propTypes = { }; ...
es/svg-icons/Cancel.js
uplevel-technology/material-ui-next
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; /** * @ignore - internal component. */ let Cancel = props => React.createElement( SvgIcon, props, React.createElement('path', { d: 'M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17...
packages/@lyra/form-builder/examples/schema-testbed/components/custom/MyCustomValidationList.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import styles from '../styles/ValidationList.css' class ValidationList extends React.Component { static propTypes = { messages: PropTypes.array } render() { const {messages} = this.props if (!messages) { return null } return ...
client/src/index.js
vitalyorlov/spreadsheet-core
import React from 'react'; import ReactDOM from 'react-dom'; import {browserHistory, Router, Route, IndexRoute} from 'react-router' import App from './modules/app'; import LogIn from './modules/log-in/log-in.view'; import Dashboard from './modules/dashboard/dashboard.view'; import Registration from './modules/registra...
src/components/Footer/Footer.js
luigiplr/udormio-react
import React, { Component } from 'react'; import s from './Footer.scss'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; @withStyles(s) class Footer extends Component { render() { return ( <div className={s.root}> <div className={s.container}> <span clas...
src/scripts/components/Ssknr.js
filose/skinr
import React from 'react'; import SsknrOption from './SsknrOption'; import style from '../../styles/components/_ssknr.scss'; class Ssknr extends React.Component { componentDidMount() { const $elem = document.querySelector(`.js-ssknr[data-id="${this.props.id}"]`); this.props.getElemWidth(this.props.id, $elem....
src/components/Common/InputField.js
15chrjef/ico-wizard
import React from 'react' import '../../assets/stylesheets/application.css'; import { VALIDATION_TYPES } from '../../utils/constants' import { observer } from 'mobx-react' const { INVALID } = VALIDATION_TYPES @observer export class InputField extends React.Component { constructor(props) { super(props); this.stat...
app/javascript/mastodon/features/compose/components/search_results.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/sta...
example/src/components/CursorPositionLabel.js
ethanselzer/react-touch-position
import React from 'react'; export default (props) => { const { touchPosition: { x = 0, y = 0, isOutside = true } = {} } = props; return ( <div> {`x: ${x}`}<br /> {`y: ${y}`}<br /> {`isOutside: ${isOutside ? 'tr...
src/packages/@ncigdc/components/Modals/BAMModal.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { compose, withState, pure } from 'recompose'; import urlJoin from 'url-join'; import { Row, Column } from '@ncigdc/uikit/Flex'; import Button from '@ncigdc/uikit/Button'; import download from '@ncigdc/utils/download'; import { AUTH_API } from '@ncigdc/utils/constants'; typ...
app/javascript/mastodon/components/avatar.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
src/modules/community/components/CommunityMemberTeaser/CommunityMemberTeaser.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import _s from 'underscore.string'; import AvatarIcon from '../../../users/components/AvatarIcon'; import './CommunityMemberTeaser.css'; class CommunityMemberTeaser extends React.Component { render() { const ...
modules/gui/src/widget/form/combo.js
openforis/sepal
import {Combo} from 'widget/combo' import PropTypes from 'prop-types' import React from 'react' export const FormCombo = ( { input, options, additionalButtons, alignment, allowClear, autoFocus, busyMessage, className, disabled, errorMessage, inputClassName, keyboard, label, optionsClassName, option...
docs/src/pages/components/popper/ScrollPlayground.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import HighlightedCode from 'docs/src/modules/components/HighlightedCode'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'...
src/containers/AuthorsList.js
nickhsine/twreporter-react
import { connect } from 'react-redux' import { Waypoint } from 'react-waypoint' import Authors from '../components/authors/authors' import AuthorSearchBox from '../components/authors/author-search-box' import Helmet from 'react-helmet' import LoadingSpinner from '../components/Spinner' import loggerFactory from '../log...
example/components/Block/Index.js
dxcweb/react-speed
/** * Created by dxc on 2016/9/7. */ import React from 'react' import {Block} from 'react-speed' import {Link} from 'react-router' export default class Index extends React.Component { render() { return ( <Block> <Block el="pre" fs={16}> {" static ...
src/client/home/components/MenuButton/MenuButton.js
noahamar/smlscrn
import React from 'react'; import classNames from 'classnames/bind'; import styles from './MenuButton.styl'; const cx = classNames.bind(styles); export default class MenuButton extends React.Component { constructor() { super(); } render() { return ( <div className={cx('MenuButton')} onClick={th...
src/collections/Breadcrumb/Breadcrumb.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getUnhandledProps, getElementType, SUI } from '../../lib' import BreadcrumbDivider from './BreadcrumbDivider' import BreadcrumbSection from './BreadcrumbSection' /** * A ...
src/ButtonToolbar.js
yuche/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonToolbar = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'button-toolbar' }; }, render() { let classes = this.getBsClassSet(); ...
springboot/GReact/src/main/resources/static/app/routes/forms/components/bootstrap-validation/ContactForm.js
ezsimple/java
import React from 'react' import BootstrapValidator from '../../../../components/forms/validation/BootstrapValidator' const validatorOptions = { container: '#messages', feedbackIcons: { valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon glyphicon-remove', validating: 'glyphicon glyphicon-refresh' ...
src/svg-icons/maps/restaurant.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRestaurant = (props) => ( <SvgIcon {...props}> <path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/> </SvgIcon> )...
html.js
johann-sonntagbauer/webtest
import React from 'react' import Helmet from 'react-helmet' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = React.createClass({ propTypes() { return { body: ...
app/components/stations/StationValuesChart.js
sheldhur/Vector
// @flow import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { ProgressAlert, NoDataAlert } from '../widgets/ChartAlert'; import LineChart from '../chart/LineChart'; import TitleCurrentTime from '../main/...
src/Menu/DocumentClickHandler.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; const DocumentClickHandler = WrappedComponent => class extends React.PureComponent { static propTypes = { open: PropTypes.bool, onClose: PropTypes.func, }; constructor(props) { super(props); this.notifyClose = this.notifyClose.bind(...
node_modules/rc-time-picker/es/Header.js
yhx0634/foodshopfront
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React, { Component } from 'react'; im...
definitions/npm/react-navigation-stack_v1.x.x/test_react-navigation-stack.js
flowtype/flow-typed
// @flow import type { NavigationRoute, NavigationStackProp, } from 'react-navigation-stack'; import { createStackNavigator } from 'react-navigation-stack'; import React from 'react'; /** * Screens */ const FunctionalScreenComponent = ( { navigation }: {| navigation: NavigationStackProp<NavigationRoute> |},...
src/images/SsIdPartsSelected.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react' import screenShot from './graphics/ScreenShotIdPartSelected.png' export default React.createClass({ render() { return <img role="presentation" src={screenShot} height="100%" width="100%"/> } })
example/App/ForceInitialAnimation.js
nkbt/react-collapse
import React from 'react'; import {Collapse} from '../../src'; export class ForceInitialAnimation extends React.PureComponent { constructor(props) { super(props); this.state = {isOpened: true}; } render() { const {isOpened} = this.state; const height = 100; return ( <div> <di...
src/GreenNav.js
tom3012/GreenNav
import React, { Component } from 'react'; import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle } from 'material-ui/Toolbar'; import FlatButton from 'material-ui/FlatButton'; import { green50 } from 'material-ui/styles/colors'; import FontIcon from 'material-ui/FontIcon'; import Dialog from 'material-ui/Dialog...
client/src/components/PatientSearchInput.js
wilimitis/DoctorIQ
import React from 'react'; import { Card } from 'material-ui/Card'; import TextField from 'material-ui/TextField'; export default props => { const { handleChange } = props; return ( <Card className="Patient-search"> <TextField className="Patient-search-input" hintText="Search for a...
src/svg-icons/action/card-giftcard.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardGiftcard = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H...
src/React/Widgets/SelectionEditorWidget/example/index.js
Kitware/paraviewweb
import 'normalize.css'; import React from 'react'; import ReactDOM from 'react-dom'; import SelectionEditorWidget from 'paraviewweb/src/React/Widgets/SelectionEditorWidget'; import SelectionBuilder from 'paraviewweb/src/Common/Misc/SelectionBuilder'; import LegendProvider from 'paraviewweb/src/InfoViz/Core/LegendProv...