path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/examples/react/hello.js | vinogradov/react-starter-kit | import React from 'react';
import PropTypes from 'prop-types';
import logo from './logo.svg';
export class Hello extends React.Component {
constructor(props) {
super(props);
this.state = {toggle: true};
// We generally recommend binding in the constructor or using the property initializer syntax,
//... |
src/client/statics/EmptyUserProfile.js | busyorg/busy | import React from 'react';
import { FormattedMessage } from 'react-intl';
const EmptyUserProfile = () => (
<div className="text-center">
<h3>
<FormattedMessage
id="empty_user_profile"
defaultMessage="This user doesn't have any story published yet."
/>
</h3>
</div>
);
export def... |
src/components/svg/Crane.js | JoeTheDave/onitama | import PropTypes from 'prop-types';
import React from 'react';
export const Crane = ({ fillColor }) => (
<svg width="130px" height="130px" viewBox="0 0 238 228" preserveAspectRatio="xMidYMid meet">
<g transform="translate(0, 228) scale(0.1, -0.1)" fill={fillColor} stroke="none">
<path d="M1553 2184 c-3 -9 ... |
scene/AnimatedTimingScene.js | withwind318/RNAppDemos | import React, { Component } from 'react';
import {
StyleSheet,
View,
Image,
Dimensions,
Text,
Animated,
Easing,
} from 'react-native';
export default class AnimatedTimingScene extends Component {
constructor(props) {
super(props);
this.animatedValue = new Animated.Value(0);
}
componentDid... |
src/index.js | luzeduardo/luzeduardo.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import injectTapEventPlugin from 'react-tap-event-plugin';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugin();
ReactDOM.render(
<App />,
document.getElementById('r... |
packages/web/src/components/Blog/PostCard.js | dvaJi/ReaderFront | import React from 'react';
import { useRouter } from 'next/router';
import useIntl from '@hooks/use-intl';
import {
Card,
CardOverlay,
CardHero,
CardBody,
CardBodyTitle,
CardBodyDescription,
CardFooter,
CardFooterWrapper,
CardFooterTag,
FlagWrapper
} from './styles';
import Flag from '@components/... |
classic/src/scenes/traypopout/src/Scenes/UnreadScene/UnreadMailbox/UnreadMailbox.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import { accountStore, accountActions } from 'stores/account'
import { List, Divider } from '@material-ui/core'
import UnreadMailboxControlListItem from './UnreadMailboxControlListItem'
import UnreadSe... |
src/svg-icons/image/compare.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCompare = (props) => (
<SvgIcon {...props}>
<path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ImageCo... |
src/svg-icons/device/network-cell.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell = pure(DeviceNetworkCell);
DeviceNetworkCell.displayNam... |
client/sidebar/header/actions/Login.js | VoiSmart/Rocket.Chat | import { Sidebar } from '@rocket.chat/fuselage';
import React from 'react';
import { useSessionDispatch } from '../../../contexts/SessionContext';
import { useTranslation } from '../../../contexts/TranslationContext';
const Login = (props) => {
const setForceLogin = useSessionDispatch('forceLogin');
const t = useTr... |
src/js/components/Grommet.js | odedre/grommet-final | // (C) Copyright 2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import classnames from 'classnames';
const CLASS_ROOT = "grommet";
export default props => {
const { children, className, ...restProps } = props;
let classes = classnames(CLASS_ROOT, className);
return (
<div {...re... |
imports/startup/client/routes.js | KyneSilverhide/expense-manager | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { Meteor } from 'meteor/meteor';
import App from '../../ui/layouts/App.js';
import Index from '../../ui/pages/Index.js';
import Login from '../../ui/pages/Login.js';
import Fri... |
src/svg-icons/image/image-aspect-ratio.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageImageAspectRatio = (props) => (
<SvgIcon {...props}>
<path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H... |
app/web/components/buttonMenu/index.js | GilbertLS/MovieCircle | import React from 'react';
import ReactDOM from 'react-dom';
import {
Menu,
Button,
} from 'react-toolbox';
import style from './style.scss';
export default class ButtonMenu extends React.Component {
constructor(props) {
super(props);
this.state = {
active: false,
};
this.handleOnClick ... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | Nedomas/react-router | import React from 'react'
class Assignments extends React.Component {
render() {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
)
}
}
export default Assignments
|
lib-es/components/modal/modal.js | bokuweb/re-bulma | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React, { Component } from 'react';
import PropTypes fr... |
src/components/Help.js | kpi-ua/ecampus.kpi.ua | import React, { Component } from 'react';
const link =
'https://a2c27d7243ea.blob.core.windows.net/kpi/files/InstructionTeacherCampusV1.pdf';
class Help extends Component {
render() {
return (
<div className="row">
<div className="col-md-12">
<h1>Інструкція користувача</h1>
<... |
src/elements/Label/LabelDetail.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
function LabelDetail(props) {
const { children, className, content } = props
const classes = cx('detail', cl... |
node_modules/@shoutem/animation/src/animations/FadeOut.js | odapplications/WebView-with-Lower-Tab-Menu | import React, { Component } from 'react';
import { Animated, View } from 'react-native';
import { DriverShape } from '../drivers/DriverShape';
/*
* FadeOut Component adds fade out effect to its children components.
* Connect it to driver and pass the input range to animate it.
* e.g.:
* ...
* const driver = new Sc... |
src/routes/Home/components/HomeView.js | rkram5424/BentoBeats | import React from 'react'
import SplitterLayout from 'react-splitter-layout';
import Instrument from '../../Instrument/components/Instrument';
import Mixer from '../../Mixer/components/Mixer';
import Pianoroll from '../../Pianoroll/components/Pianoroll';
import Pattern from '../../Pattern/components/Pattern';
export ... |
test/fixtures/webpack-message-formatting/src/AppOutOfScopeImport.js | GreenGremlin/create-react-app | import React, { Component } from 'react';
import myImport from '../OutOfScopeImport';
class App extends Component {
render() {
return <div className="App">{myImport}</div>;
}
}
export default App;
|
src/components/GoogleAdv2/GoogleAdv2.js | febobo/react-redux-start | import React, { Component } from 'react';
export default class GoogleAdv2 extends Component {
componentDidMount (){
// console.log(adsbygoogle);
// (adsbygoogle = window.adsbygoogle || []).push({});
const script2 = document.createElement("script");
script2.id="adv_home";
script2.async =... |
src/components/LoginScreen/LoginForm.js | RahulDesai92/PHR | import React, { Component } from 'react';
import { View,
Text,
StyleSheet,
ActivityIndicator,
Image,
KeyboardAvoidingView,
TouchableOpacity
} from 'react-native';
import { TextField } from 'react-native-material-textfield';
import MaterialIcon from 'react-... |
src/components/TextButton.story.js | creditornot/wolt-web-common | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean, number, select } from '@storybook/addon-knobs';
import CarIcon from '../icons/car.svg';
import TextButton from './TextButton';
storiesOf('TextButton', module)
.add... |
src/components/TextInput/TextInput.js | Manouli/styleguide | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold... |
src/client/js/admin/match/Turns.js | GoodBoy123/crendorianinvitational | import React from 'react';
import Actions from './Actions';
import _ from 'lodash';
class Turns extends React.Component {
constructor(props) {
super(props);
this.state = {
turns: [
{
length:0,
actions:[]
}
]
};
this.handleOnChange = this.handleOnChang... |
client/scripts/components/config/declarations/declarations/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
modules/Print/NavLink.js | corbmanj/tote | // modules/NavLink.js
import React from 'react'
import { Link } from 'react-router'
export default function NavLink (props) {
return <Link {...props} activeClassName="active"/>
}
|
routes/react.js | jmlane/asg-attendance | import { Router } from 'express';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import App from '../components/app.js';
import Page from '../components/page.js';
const router = Router();
router.all('*', (req, res) => {
res.send(ReactDOMServer.renderToStaticMarkup(
<Page>
<div i... |
src/app/components/HoverMenu/index.js | jackdon/snoopy | import React from 'react';
export default class HoverMenu extends React.PureComponent {
componentDidMount() {
document.addEventListener('click', this.handleDocumentClick);
}
handleDocumentClick = () => {
this.props.onClose();
};
handleViewClick = event => {
event.stopPropagation();
this.prop... |
docs/src/sections/FormSection.js | apkiernan/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function FormSection() {
return (
<div className="bs-docs-section">
<h1 className="page-header">
<Anch... |
addons/graphql/src/components/FullScreen/index.js | nfl/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import style from './style';
export default function FullScreen(props) {
return (
<div style={style.wrapper}>
{props.children}
</div>
);
}
FullScreen.defaultProps = { children: null };
FullScreen.propTypes = { children: PropTypes.node };... |
src/client/components/StoryFooter/Payout.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import classNames from 'classnames';
import { calculatePayout } from '../../vendor/steemitHelpers';
import BTooltip from '../BTooltip';
import USDDisplay from '../Utils/USDDisplay';
import PayoutDetail from '../Payou... |
src/parser/shaman/restoration/modules/spells/Resurgence.js | fyruna/WoWAnalyzer | import React from 'react';
import StatisticBox from 'interface/others/StatisticBox';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import HIT_TYPES from 'game/HIT_TYPES';
import Analyzer from 'parser/core/Analyzer';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
impo... |
apps/castles_web/web/static/js/components/Login/index.js | sjanota/castles | import React from 'react'
import { Field, Error, UserInput } from '../Common'
import { rgbHexToDec, rgbDecToHex, gradientColor, randomColor } from '../../util'
export class Login extends React.Component {
constructor(props) {
super();
this.setError = this.setError.bind(this);
this.onNameChange = this.onN... |
Realization/frontend/czechidm-core/src/content/request/RequestItemChangesTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import {RequestItemManager } from '../../redux';
import ConceptRoleRequestOperationEnum from '../../enums/ConceptRoleRequestOp... |
apps/mk-app-dashboard-analysis/action.js | ziaochina/mk-demo | import React from 'react'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import moment from 'moment'
class action {
constructor(option) {
this.metaAction = option.metaAction
this.config = config.current
this.webapi = this.config.webapi
}
... |
bench/fixtures/basic/pages/stateless.js | nikvm/next.js | import React from 'react'
export default () => <h1>My component!</h1>
|
stack2/src/server/html.js | petrsmid/modern-javascript-course | import React from 'react';
export default class Html extends React.Component {
render() {
const {isProduction, version} = this.props;
const appSrc = isProduction ? `/build/app.js?v=${version}`
: '//localhost:8888/build/app.js';
return (
<html>
<head>
... |
src/svg-icons/device/bluetooth-connected.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothConnected = (props) => (
<SvgIcon {...props}>
<path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.... |
src/svg-icons/device/battery-80.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery80 = (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.33V9h10V5.33z"/><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
src/svg-icons/av/playlist-play.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
src/renderer/components/channel-switcher.js | ka2n/retro-twitter-client | import { HOME_TIMELINE_CHANNEL, SEARCH_CHANNEL } from '../libraries/constants'
import List from './list';
import React from 'react';
export default class ContextSwitcher extends React.Component {
getHomeChannelClassName() {
return `account-channel ${this.getHomeChannelSelected() ? ' account-channel-selected' : '... |
examples/simple/components/App.js | gdi2290/library-boilerplate | import React, { Component } from 'react';
import { add } from 'library-boilerplate';
export default class App extends Component {
render() {
return (
<p>
2 + 2 = {add(2, 2)}
</p>
);
}
}
|
packages/react-cookie-demo/src/components/NameForm.js | eXon/react-cookie | import React from 'react';
import { func, string } from 'prop-types';
export default function NameForm({ name, onChange }) {
return (
<div>
<h1>What's your name?</h1>
<form
onSubmit={e => {
e.preventDefault();
}}
>
<input
type="text"
pl... |
views/invocation.js | rob3ns/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
lib/components/Unit.js | knopjesmuseum/resilient-network-simulator | import React from 'react';
import Draggable from './Draggable.js';
import createDebug from 'debug';
const debug = createDebug('rs:comp:unit');
const COLOR = '#ebc629';
const RADIUS = 30;
const CONN_RADIUS = 7;
const Unit = ({ type, numConn = 0, energy = 0 }) => {
const conns = [];
for (let i = 0; i < numConn; i++... |
src/components/Meta/Title.js | Swizec/h1b-software-salaries |
import React, { Component } from 'react';
import { scaleLinear } from 'd3-scale';
import { mean as d3mean, extent as d3extent } from 'd3-array';
import USStatesMap from './USStatesMap';
class Title extends Component {
get yearsFragment() {
const year = this.props.filteredBy.year;
return year ===... |
analysis/warlockdemonology/src/modules/talents/SoulStrike.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER_PET } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import STATISTIC_CATEGORY from 'parser/ui/STATISTIC_CATEGORY';
import Statistic from 'parser/ui... |
src/utils/domUtils.js | cgvarela/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
src/client/components/StarRatingWidget/StarRatingWidget.js | trippian/trippian | import log from '../../log'
import React from 'react'
let getStars = function (starNum) {
let starsHTML = []
for (let i = 0; i < starNum; i++) {
starsHTML.push(<i className="fa fa-star" key={i}></i>)
}
return starsHTML
}
const StarRatingWidget = ({
stars = 2
}) => {
return (
<span className="star... |
src/frontend/components/SlackInviteIndex.js | Bernie-2016/ground-control | import React from 'react'
import {BernieText, BernieColors} from './styles/bernie-css'
import {Styles} from 'material-ui'
import MuiThemeProvider from 'material-ui/lib/MuiThemeProvider'
import {BernieTheme} from './styles/bernie-theme'
import {slacks} from './data/slacks'
export default class SlackInviteIndex extends ... |
examples/src/components/ValuesAsNumbersField.js | katienreed/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
public/components/tokens.js | ranebo/project-ipsum | import React from 'react';
import actions from '../actions/ipsumActions.js';
import { connect } from 'react-redux';
import request from '../util/restHelpers.js';
import { Button, Col, ControlLabel, FormControl, FormGroup, Grid, Panel, Row } from 'react-bootstrap';
import { BootstrapTable, TableHeaderColumn } from 'reac... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js | digitalorigin/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(name) {
return [
{ id: 1, name: `${na... |
src/svg-icons/image/filter-4.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14... |
docs/src/app/pages/components/FileUpload/Page.js | GetAmbassador/react-ions | import React from 'react'
import PropsList from 'private/modules/PropsList'
import docs from '!!docgen!react-ions/lib/components/FileUpload/FileUpload'
import CodeExample from 'private/modules/CodeExample'
import styles from 'private/css/content'
import ExampleFileUploadDefault from './ExampleFileUploadDefault'
import ... |
src/svg-icons/communication/mail-outline.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMailOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/>
</SvgIcon>
)... |
views/blocks/SearchBar/SearchBar.js | urfu-2016/team5 | import React from 'react';
import './SearchBar.css';
import SearchBarInput from './SearchBarInput/SearchBarInput';
import SearchBarParams from './SearchBarParams/SearchBarParams';
const SBParams = require('./params');
export default class SearchBar extends React.Component {
constructor(props) {
super(prop... |
AirFront/client/homepage.js | sunshinezxf/Airburg | import React from 'react';
import {SearchBar, NavBar, Icon, Button, Carousel, Flex, List, WhiteSpace, Card, Stepper} from 'antd-mobile';
import LazyLoad from 'react-lazyload';
import Demo from './demo'
var homePic = "https://si.geilicdn.com/vshop1071620394-5412992997551478598385-815115.jpg";
var list = [];
const Sear... |
src/router.js | iwang/maodou | import React from 'react'
import {Router} from 'dva/router'
import App from './routes/app'
const cached = {}
const registerModel = (app, model) => {
if (!cached[model.namespace]) {
app.model(model)
cached[model.namespace] = 1
}
}
//https://github.com/ReactTraining/react-router/blob/master/docs/guides/Dynam... |
Web-Platform/1.0/react入门操作/index-fb.js | rexlin600/BasicPlatform | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
// Render the main component into the dom
ReactDOM.render(<Router />, document.getElementById('app'));
|
src/withElementPortal.js | zapier/react-element-portal | import React from 'react';
import ElementPortal from './ElementPortal';
function getDisplayName(Component) {
return Component.displayName || Component.name || 'Component';
}
const withElementPortal = (portalProps) => (Component) => {
const WithElementPortal = (props) => (
<ElementPortal
{...portalProps}... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/navigate-before.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageNavigateBefore = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
ImageNavigateBefore.displayName = 'ImageNavigateBefore';
ImageNavigateBefore.muiName = 'SvgIcon';
export default... |
node_modules/react-images/src/components/PaginatedThumbnails.js | ed1d1a8d/macweb | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import Thumbnail from './Thumbnail';
import Arrow from './Arrow';
import theme from '../theme';
const classes = StyleSheet.create({
paginatedThumbnails: {
bottom: theme.container.... |
test/regressions/tests/Input/InputSearch.js | cherniavskii/material-ui | // @flow
import React from 'react';
import Input from 'material-ui/Input';
export default function InputSearch() {
return <Input type="search" defaultValue="Hello world" />;
}
|
src/svg-icons/action/open-in-browser.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenInBrowser = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/>
</SvgIcon>
);
... |
examples/components/Basic/index.js | kjkta/react-native-swiper | import React from 'react'
import {
Text,
View
} from 'react-native'
import Swiper from 'react-native-swiper'
var styles = {
wrapper: {
},
slide1: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#9DD6EB'
},
slide2: {
flex: 1,
justifyContent: 'center',
... |
packages/neos-ui/src/Containers/App.js | mstruebing/PackageFactory.Guevara | import React from 'react';
import PropTypes from 'prop-types';
import FlashMessages from './FlashMessages/index';
const App = ({globalRegistry, menu}) => {
const containerRegistry = globalRegistry.get('containers');
const Modals = containerRegistry.get('Modals');
const PrimaryToolbar = containerRegistry.... |
src/icons/IosBriefcase.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosBriefcase extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<rect x="96" y="112" width="32" height="16"></rect>
<rect x="48" y="208" width="416" height="240"></rect>
<rect x="384... |
modules/Router.js | etiennetremel/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
geonode/monitoring/frontend/src/components/atoms/hover-paper/index.js | ppasq/geonode | import React from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
class HoverPaper extends React.Component {
static propTypes = {
children: PropTypes.node,
style: PropTypes.object,
onClick: PropTypes.func,
}
constructor(props) {
super(props);
this.state ... |
src/containers/DevToolsWindow.js | donnycrash/react-redux-electron-starter-kit | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
html/modules/App.js | fjacob21/nhlplayoffs | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, Link } from 'react-router'
import { Nav, Navbar, NavItem, NavDropdown, MenuItem } from 'react-bootstrap'
import { LinkContainer } from 'react-router-bootstrap'
const App = React.createClass({
componentDidMount: function(){
i... |
client/components/signup/SignupForm.js | bsubedi26/Project-Revised | import React from 'react';
import map from 'lodash/map';
import classnames from 'classnames';
// import validateInput from '../../../server/shared/validations/signup';
import TextFieldGroup from '../common/TextFieldGroup';
class SignupForm extends React.Component {
constructor(props) {
super(props);
this.sta... |
src/views/ServiceRequest.js | randyf99/resource-center | import React, { Component } from 'react';
class ServiceRequest extends Component {
render() {
return <h1>Service Request Form View</h1>;
}
}
export default ServiceRequest;
|
app/addons/permissions/routes.js | garrensmith/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/about/index.js | markfranco/spirax | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present 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';
... |
node_modules/enzyme/src/version.js | cloud9ide/react-enquiry | import React from 'react';
export const VERSION = React.version;
const [major, minor] = VERSION.split('.');
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
export const REACT15 = major === '15';
export const REACT155 = REACT15 && minor >= 5;
|
modules/shared/Text.js | edvinerikson/universal-react-kickstarter | import React from 'react';
export default class Text extends React.Component {
static propTypes = {
children: React.PropTypes.string.isRequired,
}
render() {
return <p>{this.props.children}</p>;
}
}
|
src/views/components/AutomationEditScreen.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import {Switch, Redirect, Link} from 'react-router-dom';
import {Route, withRoute} from './Route.js';
import NavigationScreen from './NavigationScreen.js';
import SettingsScreenContainer from './SettingsScreenContainer.js';
import Button from './Button.js';... |
client/src/AddResourceModal.js | roxroy/codeploy | import React, { Component } from 'react';
import Modal from 'react-modal';
//import {RadioGroup, Radio} from 'react-radio-group'
class AddResourceModal extends Component {
constructor(props) {
super(props);
this.save = this.save.bind(this);
this.state = {
errorVisible: "none",
errorText: nul... |
src/components/ToolBox/Button/index.js | andmilj/vip-transfers | import React from 'react';
import FontIcon from '../FontIcon';
import Tooltip from '../Tooltip';
import events from '../utils/events';
import withStyles from '../../../decorators/withStyles';
import styles from './style';
@withStyles(styles)
class Button extends React.Component {
static propTypes = {
accent: Rea... |
src/components/RegOpzDataGrid/RegOpzDataGridHeader.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
export default class RegOpzDataGridHeader extends Component {
constructor(props) {
super(props);
this.widthAtMouseEnter = 0;
this.numberofCols = this.props.numberofCols;
this.colAttr = this.props.colAttr;
... |
src/containers/ADC/SLB/ServiceGroups/ServiceGroups.js | armaniExchange/wizard | // React & Redux
import React, { Component } from 'react';
class ServiceGroup extends Component {
render() {
return (
<section>ServiceGroup</section>
);
}
}
export default ServiceGroup;
|
src/svg-icons/places/child-care.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesChildCare = (props) => (
<SvgIcon {...props}>
<circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2.... |
src/containers/Root.js | lawenliu/ReactDemo | import React from 'react'
import { Provider } from 'react-redux'
import { Router } from 'react-router'
export default class Root extends React.Component {
static propTypes = {
history: React.PropTypes.object.isRequired,
routes: React.PropTypes.element.isRequired,
store: React.PropTypes.object.isRequired
... |
pkg/interface/groups/src/js/api.js | ngzax/urbit | import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import { uuid } from '/lib/util';
import { store } from '/store';
class UrbitApi {
setAuthTokens(authTokens) {
this.authTokens = authTokens;
this.bindPaths = [];
this.contactHook = {
edit: this.contactEdit.bind(t... |
public/javascript/components/nickelCityForum.js | fireaxil/anglican-wny | import React from 'react'
import { withStyles } from 'material-ui/styles'
import PropTypes from 'prop-types'
import Pictures from './pictures'
import nickelCityForumPicture from '../../images/nickelCityForum.jpg'
import NickelCityForumText from './nickelCityForumText'
const styles = theme => ({
})
class NickelCityFo... |
src/components/sider.js | ShiChao1996/BlogAdmin | import React from 'react';
import {
Card,
Avatar,
Button,
Icon
} from 'antd';
import './sider.css';
const sider = (name, desc) => {
return(
<Card>
<div className="sideBox">
<img src={require('../image/avatar.png')} className='avatar'/>
<h1>{name}<... |
pages/api/dialog.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 './dialog.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
client/src/components/Home.js | ViDA-NYU/domain_discovery_tool | import React, { Component } from 'react';
var ReactRouter = require('react-router');
var Link = ReactRouter.Link;
import Checkbox from 'material-ui/Checkbox';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import { Row, Col} from 'react-bootstrap';
//import {Toolbar, To... |
src/pages/viviane-furrier.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Viviane Furrier' />
)
|
packages/reactor-conference-app/src/calendar/Calendar.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Calendar_Days, Container, Panel } from '@extjs/ext-react';
import Event from '../event/Event';
import { loadEvent } from '../event/actions';
class Calendar extends Component {
constructor({ children }) {
super();
... |
test/expected.js | sheerun/prettier-standard | import React from 'react'
class Example extends React.Component {
state = {
foo: 'bar'
}
async render () {
const foo = await import('sdaf')
const { whatever } = loooooooooooooooooooooooong[
something
].some.thiiiiiiiiiiiiing[0]
return <div foo='bar' />
}
}
|
assets/app/components/App/index.js | chernyshof/react-phoenix-users-boilerplate | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import DocumentTitle from 'react-document-title';
import { logout } from 'actions/session';
export class App extends Component {
render() {
const { username } = this.props;
retu... |
src/renderer/windows/lastFM.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import { remote } from 'electron';
import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import LastFmPage from '../ui/pages/LastFmPage';
injectTapEventPlugin();
ReactDOM.render(<LastFmPage />, document.querySelector('#last-fm-window'));
remote.getCur... |
app/components/chart/header.js | hichameyessou/blip |
/*
* == BSD2 LICENSE ==
* Copyright (c) 2014, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program... |
node_modules/react-router/es6/Redirect.js | jsg7440/jQuery-ToDo | 'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e... |
app/Components/Atoms/Text/TextInfo.js | martinvarelaaaa/tintina | import React from 'react';
import PropTypes from 'prop-types';
import { Text } from 'react-native';
import styles from './styles';
import theme from '../../../theme';
const { color } = theme;
const TextInfo = ({ value, col, alignCenter }) =>
(alignCenter
? <Text style={[styles.infoCenter, { color: col }]}>{val... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.