path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/common/components/AppBarProfile.js | Haaarp/geo | import React from 'react';
import { Link } from 'react-router';
import {Nav} from 'react-bootstrap';
import { DropdownButton, MenuItem } from 'react-bootstrap';
import Image from './Image';
import Badge from './Badge';
import Button from './Button';
import FormWrap from './FormWrap';
class AppBarProfile extends React... |
packages/icons/src/md/image/NavigateBefore.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdNavigateBefore(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<polygon points="29.83 14.83 27 12 15 24 27 36 29.83 33.17 20.66 24" />
</IconBase>
);
}
export default MdNavigateBefore;
|
src/components/FilterLink.js | jhegedus42/egghead-redux-playaround |
// @flow
import React from 'react';
import {Link} from 'react-router';
import type {State_Filter} from '../reducers/idsByFilterMap_Reducer.js'
const FilterLink = ({filter,children}:{filter:State_Filter,children:React$Element<any>})=>(
<Link
to = {filter === 'all' ? '' :filter}
activeStyle = {{
textDecoratio... |
node_modules/react-bootstrap/es/Popover.js | ASIX-ALS/asix-final-project-frontend | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/views/components/projects/ProjectContributorIcon.js | Domiii/project-empire | import {
contributorStatusStyles,
constributorStatusIcons
} from './projectRenderSettings';
import React from 'react';
import PropTypes from 'prop-types';
// import {
// Panel, Button, Alert, Well
// } from 'react-bootstrap';
import { dataBind } from 'dbdi/react';
import FAIcon from 'src/views/components/util... |
src/widgets/material/input-number.js | surikaterna/formr | import React from 'react';
import BaseInput from './base-input';
export default function InputNumber(props) {
return <BaseInput {...props} type="number" onChange={(e) => props.onChange(Number(e))} />;
}
|
packages/wix-style-react/src/StackedBarChart/StackedBarChart.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import Tooltip from '../Tooltip';
import { st, classes } from './StackedBarChart.st.css';
import { stVars as colors } from '../Foundation/stylable/colors.st.css';
import { scalePoint, scaleLinear } from 'd3-scale';
import { select } from 'd3-selection';
imp... |
app/pages/RegisterPage/RegisterPage.js | danielzy95/oaa-chat | import React from 'react'
import { Link } from 'react-router'
import { RegisterForm } from '../../components'
import { LANDING } from '../../components/Routes'
import IconButton from 'material-ui/IconButton'
const RegisterPage = () => (
<div>
<Link to={LANDING}>
<IconButton iconClassName="material-icons" iconSty... |
app/javascript/mastodon/features/ui/components/modal_root.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { getScrollbarWidth } from 'mastodon/utils/scrollbar';
import Base from 'mastodon/components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './m... |
frontend/src/components/profile/follow-button.js | 1905410/Misago | import React from 'react';
import Button from 'misago/components/button'; // jshint ignore:line
import { patch } from 'misago/reducers/profile'; // jshint ignore:line
import ajax from 'misago/services/ajax'; // jshint ignore:line
import snackbar from 'misago/services/snackbar'; // jshint ignore:line
import store from '... |
app/assets/javascripts/src/components/reviews/NewReviewForm.js | talum/creamery | import React from 'react'
import { connect } from 'react-redux'
import Form from '../sharedComponents/Form'
import { addReview } from '../../actions/reviews'
import InputField from '../sharedComponents/InputField'
import SubmitButton from '../sharedComponents/SubmitButton'
import { debounce } from 'lodash'
class Revie... |
packages/react-scripts/fixtures/kitchensink/src/index.js | sigmacomputing/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import Rea... |
src/components/form/InputTitle.js | jekyll/jekyll-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TextareaAutosize from 'react-textarea-autosize';
export default class InputTitle extends Component {
shouldComponentUpdate(nextProps) {
return nextProps.title !== this.props.title;
}
handleChange = e => {
const { onChan... |
src/React/Widgets/EqualizerWidget/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import equals from 'mout/src/array/equals';
import style from 'PVWStyle/ReactWidgets/EqualizerWidget.mcss';
import MouseHandler from '../../../Interaction/Core/MouseHandler';
import SizeHelper from '../../../Common/Misc/SizeHelper';
export default class... |
src/Parser/MarksmanshipHunter/CombatLogParser.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SuggestionsTab from 'Main/SuggestionsTab';
import Tab from 'Main/Tab';
import Talents from 'Main/Talents';
import CoreCombatLogParser from 'Parser/Core/CombatLogParser';
import DamageDone from 'Parser/Core/Modules/DamageDone';
import CastEfficiency from './Modules/Features/CastEffic... |
src/NavDropdown.js | herojobs/react-bootstrap | import React from 'react';
import Dropdown from './Dropdown';
class NavDropdown extends React.Component {
render() {
let { children, title, noCaret, ...props } = this.props;
return (
<Dropdown {...props} componentClass='li'>
<Dropdown.Toggle
useAnchor
disabled={props.disab... |
src/docs/examples/ProgressBar/Example100Percent.js | MallikarjunaMG/react-components | import React from 'react';
import ProgressBar from 'comps-root/ProgressBar'
/**
* 100% progress
*/
export default function Example100Percent() {
return <ProgressBar percent={100} width={150} />
} |
src/svg-icons/action/toc.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToc = (props) => (
<SvgIcon {...props}>
<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>
</SvgIcon>
);
ActionToc = pure(ActionToc);
ActionToc.displa... |
src/svg-icons/device/battery-charging-80.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | negativetwelve/react-native | '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... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | wisc/spectacle-caching | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
src/TwilioVideoParticipantView.android.js | smiletime/react-native-twilio-video-webrtc | /**
* Component for Twilio Video participant views.
*
* Authors:
* Jonathan Chang <slycoder@gmail.com>
*/
import {
requireNativeComponent,
View
} from 'react-native'
import React from 'react'
const propTypes = {
...View.propTypes
}
class TwilioRemotePreview extends React.Component {
render () {
re... |
mlflow/server/js/src/common/components/SearchTree.js | mlflow/mlflow | /**
* This component consists of a checkbox tree select and a search input on top of which toggles and
* highlight tree nodes while user type in a search prefix.
*/
import React from 'react';
import { Input, Tree } from 'antd';
import _ from 'lodash';
import PropTypes from 'prop-types';
import { injectIntl } from 'r... |
examples/multiple-readonly.js | ddcat1115/select | /* eslint no-console: 0 */
import React from 'react';
import Select, { Option } from 'rc-select';
import 'rc-select/assets/index.less';
import ReactDOM from 'react-dom';
const children = [];
for (let i = 10; i < 36; i++) {
// 11 => readonly selected item
children.push(<Option disabled={i === 11} key={i.toString(36... |
src/js/sections/ClickingToBuy.js | BavoG/onesupportdocu | import React, { Component } from 'react';
import { Axis } from 'grommet/components/chart/Chart';
import LayeredAreaChart from '../components/LayeredAreaChart';
import { CLICKING_TO_BUY } from '../constants';
export default class ClickingToBuy extends Component {
render() {
const axisX = (this.props.layout === 's... |
src/frontend/containers/InvoiceFormContainer.js | Koleso/invoicer | import React from 'react';
import { connect } from 'react-redux';
import { getFormValues, change } from 'redux-form';
import dateFormat from 'dateformat';
import { getNextInvoiceId } from 'helpers/invoices';
import InvoiceForm from 'forms/Invoice/form';
import { addInvoice } from 'actions/invoices';
const mapStateToP... |
components/GoogleMaps/GoogleMaps.js | SergeyGuns/test-site | import React from 'react'
import { withGoogleMap, GoogleMap, Marker } from "react-google-maps";
// Wrap all `react-google-maps` components with `withGoogleMap` HOC
// and name it GettingStartedGoogleMap
const GettingStartedGoogleMap = withGoogleMap(props => (
<GoogleMap
ref={props.onMapLoad}
defaultZoom={3}... |
src/components/SingleLocationMap.js | njosieb/ecocentrixco | import React from 'react'
import {
GoogleMap,
Marker,
withGoogleMap,
withScriptjs
} from 'react-google-maps'
const ContactMap = withScriptjs(
withGoogleMap(({ lat, lng }) => (
<GoogleMap
defaultZoom={12}
defaultCenter={{ lat, lng }}
options={{
mapTypeControl: false,
full... |
redux-budget/src/components/EntryRow.js | kamilbielawski/flux-budget-app | import React from 'react'
import { connect } from 'react-redux'
import { destroyEntry } from '../ducks/entries'
export function EntryRow({ entry, onDestroyEntry }) {
return <tr>
<td>{ entry.title }</td>
<td className={ entry.amount > 0 ? 'success' : 'danger' }>
{ entry.amount.toFixed(2) }
<... |
app/main.js | matthewglover/react-redux-material-ui | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import injectTapEventPlugin from 'react-tap-event-plugin';
import './scss/main.scss';
import Root from './components/root';
import configureStore from './configure_store';
// Needed for onTouchTap
// http:/... |
addons/actions/src/manager.js | shilman/storybook | import React from 'react';
import addons from '@storybook/addons';
import ActionLogger from './containers/ActionLogger';
import { ADDON_ID, PANEL_ID } from './';
export function register() {
addons.register(ADDON_ID, api => {
const channel = addons.getChannel();
addons.addPanel(PANEL_ID, {
title: 'Acti... |
src/docs/ComponentPage.js | vonZ/rc-vvz | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples} = component;
return (
<div className="componentpage">
<h2>{name}</h2>
<p>{description}</p... |
app/main.js | tanysaur/crappy-birds | import 'whatwg-fetch';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { Router, browserHistory } from 'react-router';
import configureStore from './store/configureStore';
import getRoutes from './routes';
const store = configureStore(window.INITIAL_STATE);
R... |
examples/dynamic-segments/app.js | frankleng/react-router | import React from 'react';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</Link></li>
</ul>
{this.props.children}
... |
6.4.1/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(280),e.exports=n(279)},function(e,t,n){var r=n(4),o=n(37),i=n(20),a=n(21),u=n(38),s="prototype",... |
app/javascript/src/shared/jsonDebug.js | michelson/chaskiq | import React from 'react'
let styles = {
root: { backgroundColor: '#1f4662', color: '#fff', fontSize: '12px', },
header: { backgroundColor: '#193549', padding: '5px 10px', fontFamily: 'monospace', color: '#ffc600', },
pre: { display: 'block', padding: '10px 30px', margin: '0', overflow: 'scroll', }
}
export def... |
node_modules/react-router/es6/Route.js | gurusewak/react101 | 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... |
src/esm/components/graphics/icons-next/envelope-icon-next/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var EnvelopeIconNext = function EnvelopeIconNext(_ref) {
var... |
packages/wix-style-react/src/TestimonialList/test/TestimonialList.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import TestimonialList from '../TestimonialList';
import { RTLWrapper } from '../../../stories/utils/RTLWrapper';
import Avatar from '../../Avatar';
const commonProps = {
testimonials: [
{
avatar: <Avatar name="Guy in glasses" size="s... |
tests/Formsy-spec.js | etshi/optiopay-form | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-dom/test-utils';
import Formsy, { addValidationRule } from './..';
import TestInput from './utils/TestInput';
import TestInputHoc from './utils/TestInputHoc';
import immediate from './utils/immediate';
import sinon from 'sinon';
... |
src/router.js | gt-webdev/gt-webdev.github.io | import React from 'react';
import {render} from 'react-dom'
import { Router, Route, IndexRoute, Link, browserHistory } from 'react-router'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import Root from './components/root'
import Home from './pages/home'
import Events from './pages/events'
import A... |
app/javascript/flavours/glitch/features/compose/components/upload_progress.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from 'flavours/glitch/util/optional_motion';
import spring from 'react-motion/lib/spring';
import Icon from 'flavours/glitch/components/icon';
export default class UploadProgress extends React.PureComponent {
static propTypes = {
activ... |
docs/src/app/components/pages/components/DropDownMenu/ExampleSimple.js | spiermar/material-ui | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
const styles = {
customWidth: {
width: 200,
},
};
export default class DropDownMenuSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {va... |
app/containers/LydaDataVPage/DataSourcePage/Lookup.js | lizhaogai/lyda-dada-v | import React from 'react';
import {
Dialog, FlatButton, TableHeader,
TableRow,
TableHeaderColumn,
TableRowColumn,
TableBody, TextField,
Table
} from 'material-ui'
import {FormControl} from 'react-bootstrap';
export default class Lookup extends React.Component {
state = {};
componentWillMount() {
... |
src/js/components/Nav.js | alexbance/rp-centre | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle } from 'material-ui/Toolbar';
import RaisedButton from 'material-ui/RaisedButton';
import { Link } from 'react-router-dom';
import IconButton from 'material-ui/IconButton';
import... |
geonode/contrib/monitoring/frontend/src/components/organisms/geonode-status/index.js | kartoza/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import HoverPaper from '../../atoms/hover-paper';
import CPU from '../../cels/cpu';
import Memory from '../../cels/memory'... |
src/collections/Table/TableHeaderCell.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import { getUnhandledProps, useValueAndKey } from '../../lib'
import TableCell from './TableCell'
/**
* A table can have a header cell.
*/
function TableHeaderCell(props) {
const { as, className, sorted } = props
const classes = ... |
modules/Assign/AssignDay.js | corbmanj/tote | import React from 'react'
import PropTypes from 'prop-types'
import AssignOutfit from './AssignOutfit'
import { DayHeader } from '../Shared/DayHeader'
export default function AssignDay (props) {
const { day, index, updateNamedItems, updateNamedItemInAllOutfits } = props
const outfits = day.outfits.map((outfit, ou... |
webpack-test/src/app.js | ryanmcgrath/react-iconpack | import React from 'react';
import {render} from 'react-dom';
import Icon from 'react-iconpack';
//!!
class TestComponent extends React.Component {
render() {
return <Icon uri="polymer/notification/disc_full" width="48" height="48" />;
}
};
render(<TestComponent />, document.getElementById('test-node')... |
src/library/Icon/IconCheckBoxCheck.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 IconCheckBoxCheck(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
client/src/app/admin/panel/articles/admin-panel-view-article.js | opensupports/opensupports | import React from 'react';
import _ from 'lodash';
import {connect} from 'react-redux';
import history from 'lib-app/history';
import ArticlesActions from 'actions/articles-actions';
import SessionStore from 'lib-app/session-store';
import i18n from 'lib-app/i18n';
import API from 'lib-app/api-call';
import MentionsP... |
packages/bonde-admin/src/app/provider.js | ourcities/rebu-client | import React from 'react'
import { ApolloProvider } from 'react-apollo'
import { IntlProvider } from 'react-intl'
import { Provider } from 'react-redux'
import crossStorage from '@/cross-storage-client'
// save on store
import { createAction } from '@/utils/redux'
import * as authTypes from '@/account/redux/action-type... |
ui/app/js/components/App.js | joshuarubin/blamedns | import React from 'react';
import { Link } from 'react-router'
const App = () => (
<ul className="nav nav-pills nav-stacked">
<li role="presentation">
<Link to="/ui/logs">logs</Link>
</li>
</ul>
)
export default App
|
app/javascript/mastodon/features/ui/components/column_header.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
columnHeaderId... |
Realization/frontend/czechidm-core/src/content/rolecatalogue/RoleCatalogue.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import * as Basic from '../../components/basic';
import { RoleCatalogueManager } from '../../redux';
import * as Advanced from '../../components/advanced';
const manager = new RoleCatalogueManager();
/**
* Role's ca... |
app/scripts/components/nexlocagee-tool/position-control-tooltip/index.js | resource-watch/prep-app | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// Redux
import { toggleTooltip } from 'actions/tooltip';
import { setMapZoom, setMapCenter } from 'actions/nexlocageetool';
const COPY_MSG = {
default: 'Copy all',
success: 'Copied!',
error: 'Error!'
};
const... |
src/modules/community/components/CommunityMemberList/CommunityMemberList.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
// components
import CommunityMemberTeaser from '../CommunityMemberTeaser';
import './CommunityMemberList.css';
const CommunityMemberList = ({ users }) => (
<div className="communityMemberList">
{users.map((user, i) => (
<CommunityMemberTeaser
... |
src/App.js | Pooler22/test | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
demo/src/index.js | insin/react-auto-form | import './style.css'
import React from 'react'
import {render} from 'react-dom'
import AutoForm from '../../src'
if ('File' in window) {
window.File.prototype.toJSON = function() {
let {name, size, type} = this
return {name, size, type}
}
}
class App extends React.Component {
state = {
lastOnChang... |
js/components/loaders/Spinner.ios.js | CoulDracula/carrying | /* @flow */
import React from 'react';
import { ActivityIndicatorIOS } from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() ... |
src/svg-icons/image/flash-on.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOn = (props) => (
<SvgIcon {...props}>
<path d="M7 2v11h3v9l7-12h-4l4-8z"/>
</SvgIcon>
);
ImageFlashOn = pure(ImageFlashOn);
ImageFlashOn.displayName = 'ImageFlashOn';
ImageFlashOn.muiName = 'SvgIco... |
demos/dinosaur-boutique/index.js | jacobp100/state-transitions | import React from 'react';
import { render } from 'react-dom';
import ButtonModal from './src/ButtonModal';
class App extends React.Component {
constructor() {
super();
this.state = { activeModal: null };
this.setActiveModal = activeModal => this.setState({ activeModal });
this.clearActiveModal = ... |
packages/metadata-react/src/Diagrams/DiagramsPage.js | oknosoft/metadata.js | /**
* ### Комплект диаграмм
* Получает настройки из профиля пользователя и выводит пачку
*
* @module Diagrams
*
* Created by Evgeniy Malyarov on 16.08.2018.
*/
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import AutoSizer from 'react-virtualized/dist/es/AutoS... |
src/svg-icons/device/battery-std.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryStd = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/>
</SvgIcon>
);
D... |
app/components/Navigation/Navigation.js | stephencorwin/stephencorwin.me | import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'next/router';
import A from '../A';
import RouteShape from '../../prop-types/Route';
import { ActiveNavLink, NavLink, NavLinks } from './styles';
export const Navigation = ({ router, routes, className }) => (
<nav className={c... |
client/src/Settings.js | jghibiki/Doc | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Card from '@material-ui/core/Card';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import Divider from '@materia... |
node_modules/react-bootstrap/es/Collapse.js | C0deSamurai/muzjiks | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/content/content-cut.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCut = (props) => (
<SvgIcon {...props}>
<path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-... |
app/components/common/header/Login.js | dhilt/dharmadict | import React from 'react'
import Modal from 'react-modal'
import {FormattedMessage} from 'react-intl'
const customStyles = {
content : {
top : '50%',
left : '50%',
right : 'auto',
bottom : 'auto',
marginRight : ... |
src/browser/auth/SignInError.js | TheoMer/Gyms-Of-The-World | // @flow
import type { State } from '../../common/types';
import React from 'react';
import errorMessages from '../../common/auth/errorMessages';
import firebaseMessages from '../../common/auth/firebaseMessages';
import { FormattedMessage } from 'react-intl';
import { Message } from '../../common/components';
import { ... |
src/ui/auth/LoginScreen.js | exponentjs/xde | /**
* @flow
*/
import React from 'react';
import { actions } from 'xde/state';
import { connectToData } from 'xde/state/utils';
import LoginForm from './components/LoginForm';
import type { AppState, AppActions } from 'xde/state/types';
import type { LoginFormData } from './components/LoginForm';
type Props = {
... |
local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | chnfeeeeeef/react-native | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
UIManager,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the ... |
src/index.js | ccoode/timer | import 'core-js/modules/es6.set'
import 'core-js/modules/es6.map'
import 'core-js/modules/es7.string.pad-start'
import { render } from 'react-dom'
import React from 'react'
import App from './components/App'
import config from './config'
import './styles/main.css'
const settings = window.settings || config
if ('ba... |
public/javascript/render.js | ccunnin8/stockmarket_app | import { render } from 'react-dom';
import React from 'react';
import App from '../../react/app.jsx';
render(
<App/>, document.getElementById("app");
) |
react/features/speaker-stats/components/SpeakerStats.js | parisjulien/arkadin-jitsimeet | /* global APP, interfaceConfig */
import React, { Component } from 'react';
import { Dialog } from '../../base/dialog';
import { translate } from '../../base/i18n';
import SpeakerStatsItem from './SpeakerStatsItem';
import SpeakerStatsLabels from './SpeakerStatsLabels';
/**
* React component for displaying a list o... |
components/About.js | HiDAl/mysql-monitor | import React from 'react';
class About extends React.Component {
render() {
return (
<div>
<h2>About</h2>
<p>This is a description of the site.</p>
</div>
);
}
}
export default About;
|
docs/src/app/components/pages/components/Card/ExampleExpandable.js | w01fgang/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleExpandable = () => (
<Card>
<CardHeader
title="Without Avatar"
subtitle="Subtitle"
actAsExpander={true}
showExpandableButt... |
acceptance/src/fixtures/ColumnSearchInput.js | Autodesk/hig | import React from 'react';
const ColumnSearchInput = (props) => {
return (
<span>
Search: {' '}
<input
value={props.passedData.filterValue || ''}
onChange={e => props.passedData.setFilter(e.target.value)}
/>
</span>
)
}
export default ColumnSearchInput;
|
resources/assets/js/components/signup/RegisterSchoolComponent.js | jrm2k6/i-heart-reading | import React, { Component } from 'react';
import RegisterSchoolForm from './forms/RegisterSchoolForm';
import { browserHistory } from 'react-router';
import { connect } from 'react-redux';
import { createSchool, updateSchool,
ERROR_SCHOOL_CREATED, ERROR_SCHOOL_UPDATED
} from '../../actions/signup/signupSchoolActions'... |
frontend/src/components/partners/profile/overview/undata/partnerUnDataDetailsMenu.js | unicef/un-partner-portal |
import PropTypes from 'prop-types';
import React from 'react';
import { withRouter } from 'react-router';
import DropdownMenu from '../../../../common/dropdownMenu';
import AddVendorNumber from '../../buttons/addVendorNumber';
import withDialogHandling from '../../../../common/hoc/withDialogHandling';
import AddVendor... |
src/routes/home/index.js | remcorakers/strava-segment-rank | import React from 'react';
import Home from './Home';
import Layout from '../../components/Layout';
export default {
path: '/',
async action() {
return {
title: 'Strava Segment Rank',
component: <Layout><Home /></Layout>,
};
},
};
|
client/components/DevTools/index.js | noamokman/project-starter-sample | 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'
changeMonitorKey='ctrl-... |
src/main/resources/public/js/pages/organization-search.js | SICTIAM/ozwillo-portal | import React from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router-dom';
import { i18n } from "../config/i18n-config"
import { t } from "@lingui/macro"
// Components
import UpdateTitle from '../components/update-title';
import customFetch from '../util/custom-fetch';
//action
import {f... |
packages/react-art/src/ReactART.js | chenglou/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactVersion from 'shared/ReactVersion';
import {LegacyRoot} from 'shared/ReactRootTags';
import... |
src/modules/playlist/Playlist.js | paramsinghvc/harp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import RaisedButton from 'material-ui/RaisedButton';
import { Map } from 'immutable';
import bindThis from '../../shared/bindThis';
import { getPlaylistData } from './PlaylistActions';
import { ... |
packages/plutarch/tpls/dva-project/src/routes/demo/index.js | Alfred-sg/plutarch | /* demo */
import React from 'react'
import { connect } from 'dva'
import { withRouter } from 'dva/router'
const Demo = ({ demo, dispatch }) => {
return (
<div>
A application demo built upon Ant Design and Dva.js
</div>
)
}
export default withRouter(connect(({ demo }) => ({ demo }))(Demo)) |
src/components/Authenticate.js | dpca/whats-free | // @flow
import React from 'react';
import './Authenticate.css';
type Props = {
onClick: Function,
error: ?string,
};
function Auth({ onClick, error }: Props) {
return (
<div className="Authenticate">
<div className="wrapper">
<div className="form">
<h3 className="text-center">Pleas... |
src/client/components/PageContent.js | EdgeJay/web-starterkit | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import media from '../utils/media';
const ContentDiv = styled.div`
padding-top: 2rem !important;
background-color: #fff;
${media.tablet`
padding-left: 33rem !important;
`};
`;
const PageContent = props ... |
site/public/vendor/shufflejs/docs/js/demos/react.js | ronaldohoch/imperiumLARP | // Normally you would import these like `import React, { Component } from 'react';`
const React = window.React;
const ReactDOM = window.ReactDOM;
const Component = React.Component;
const Shuffle = window.Shuffle;
// A very simple app with one component.
class App extends Component {
render() {
return (
<di... |
src/components/video_list.js | hisastry/udemy-react | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videolistitems = props.videos.map((video) => {
return (
<VideoListItem key={video.etag} video={video} onVideoSelect={props.onVideoSelect} />
);
});
return (
<... |
admin/client/App/screens/List/components/UpdateForm.js | xyzteam2016/keystone | import React from 'react';
import Select from 'react-select';
import { findDOMNode } from 'react-dom';
import assign from 'object-assign';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '../../../shared/InvalidFieldType';
import { plural } from '../../../../utils/string';
import { BlankState, Button,... |
example/index.js | dowjones/react-cellblock |
import './style/reset.scss';
import './style/style.scss';
import React from 'react';
import {render} from 'react-dom';
import Layout from './Layout';
render(<Layout onChange={function (breakpoint) {
console.log('[Grid] breakpoint:', breakpoint);
}}/>, document.getElementById('container'));
|
lib/HotKeys/stories/HotKeys.stories.js | folio-org/stripes-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import withReadme from 'storybook-readme/with-readme';
import readme from '../readme.md';
import BasicUsage from './BasicUsage';
import CommandListUsage from './CommandList';
storiesOf('HotKeys', module)
.addDecorator(withReadme(readme))
.add... |
src/containers/NotFoundPage/index.js | skyuplam/mark-six-betting-game | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
// import messages from './messages';
// import { FormattedMessage } from 'react-intl';
export default function NotFound() {
return (
<article>
<h1>Pange Not Found!</h1>
... |
src/js/components/Grommet.js | samogami/grommet | // (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import React from 'react';
const CLASS_ROOT = "grommet";
export default props => {
return (
<div className={CLASS_ROOT}>
{props.children}
</div>
);
};
|
docs/app/Examples/modules/Dropdown/Content/DropdownExampleDescription.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleDescription = () => (
<Dropdown text='Filter' floating labeled button className='icon'>
{/* <i class="filter icon"></i> */}
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown... |
src/svg-icons/device/airplanemode-inactive.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAirplanemodeInactive = (props) => (
<SvgIcon {...props}>
<path d="M13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.68l7.83 7.83L21 16v-2l-8-5zM3 5.27l4.99 4.99L2 14v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L1... |
src/utils/ValidComponentChildren.js | dongtong/react-bootstrap | import React from 'react';
/**
* Maps children that are typically specified as `props.children`,
* but only iterates over children that are "valid components".
*
* The mapFunction provided index will be normalised to the components mapped,
* so an invalid component would not increase the index.
*
* @param {?*} ... |
src/ProgressArc.js | okjake/react-progress-arc | import React from 'react';
class ProgressArc extends React.Component {
render() {
const completed = Math.max(0, Math.min(1, this.props.completed));
let params = {}
params.cx = params.cy = this.props.diameter / 2;
params.r = (this.props.diameter - (2 * this.props.strokeWidth)) / 2;
params.cir = ... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | liruqi/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
className: React.PropTypes.string,
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.