path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/OpenButton.js | naitsirch/ecgpb-zuwendungsbestaetigungen | import React from 'react';
class OpenButton extends React.Component {
constructor(props) {
super(props);
this.state = {
file: 22
};
this.fileInputRef = React.createRef();
this.open = this.open.bind(this);
this.onFileSelected = this.onFileSelected.bind(t... |
assets/javascripts/sso/pages/LogoutPage.js | wchaoyi/sso | import React from 'react';
import {History} from 'react-router';
import Cookie from '../models/Cookie';
import {kCookieToken} from '../models/Models';
let LogoutPage = React.createClass({
mixins: [History],
componentDidMount() {
Cookie.del(kCookieToken);
this.history.pushState(null, '/spa');
},
ren... |
pages/api/backdrop.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './backdrop.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/components/tab3/landingPage.js | dfw-chris-diaz/react-demo | import React from 'react';
import ADDOPTINFO from './addOptInfo';
import OPTINFO from './optInfo';
export default class Tab3LandingPage extends React.Component {
constructor(props){
super();
this.state = {
optInfo: []
}
}
addRecord = (record) => {
let optInfo = this.state.optInfo;... |
app/renderer/main/index.js | patsul12/WavForm | // @flow
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from '../../shared/store/configureStore';
im... |
scripts/benchmarks/src/implementations/emotion-css-func/Box.js | emotion-js/emotion | import React from 'react'
import { css } from '@emotion/css'
import { viewStyle } from './View'
const Box = ({
color,
fixed = false,
layout = 'column',
outer = false,
...other
}) => (
<div
{...other}
className={css(
viewStyle,
styles[`color${color}`],
fixed && styles.fixed,
... |
js/components/loaders/Spinner.android.js | leehyoumin/asuraCham | /* @flow */
'use strict';
import React from 'react';
import { ActivityIndicatorIOS, Platform } from 'react-native';
import ProgressBar from "ProgressBarAndroid";
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default... |
jenkins-design-language/src/js/components/material-ui/svg-icons/communication/mail-outline.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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>
);
CommunicationMailOutline.displa... |
src/components/pages/Print.js | saas-plat/saas-plat-appfx | import React from 'react';
import Template from '../base/Template';
// 打印页面,提供蓝牙无线打印
export default class extends Template {
}
|
imports/ui/components/Messages/MessageCommentView.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from 'react-bootstrap';
import * as timeago from 'timeago.js';
import { dateSettings } from '../../../modules/settings';
import './Message.scss';
const MessageCommentView = ({
comment, handleEditComment, isAdmin, loggedInUserId,
}) =... |
src/shared/SellerProfile/PrivateInfo.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react';
import PropTypes from 'prop-types'
import Row from "./Row";
import questions from '../../bundles/SellerRegistration/components/DisclosuresForm/questions';
import isEmpty from 'lodash/isEmpty';
import format from 'date-fns/format';
import startCase from 'lodash/startCase';
import { mapAustrali... |
src/svg-icons/editor/format-strikethrough.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatStrikethrough = (props) => (
<SvgIcon {...props}>
<path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/>
</SvgIcon>
);
EditorFormatStrikethrough = pure(EditorFormatStrikethrough);
Edit... |
src/svg-icons/content/inbox.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/>
<... |
client/src/components/App.js | IonutMorariu/feedback-system | import React, { Component } from 'react';
import { BrowserRouter, Route } from 'react-router-dom';
import { connect } from 'react-redux';
import * as actions from '../actions';
import Header from './Header';
import Landing from './Landing';
const Dashboard = () => <h2>Dashboard</h2>;
const SurveyNew = () => <h2>Surve... |
app/components/main.js | newtext/timer | import React, { Component } from 'react';
import Header from './navigation/navigation';
export default class Main extends Component {
render() {
return (
<div>
<Header />
<div className="container">
{ this.props.children }
</div>
</div>
);
}
}
|
src/components/navigator/index.js | JamesHageman/rangle-elm-starter | import React from 'react';
function Navigator({ children, ...props }) {
return (
<nav data-testid={ props.testid } className="flex items-center p1 bg-white border-bottom">
{ children }
</nav>
);
}
Navigator.propTypes = {
children: React.PropTypes.node,
testid: React.PropTypes.string,
};
export ... |
react-movie-network-aware-loading/src/hoc/ConnectionAwareBgDiv/ConnectionAwareBgDiv.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
client/src/containers/AddNoteModal.js | serban-petrescu/candidate-management | import React from 'react';
import {Button, Modal, Form, FormGroup, Col, FormControl, ControlLabel} from 'react-bootstrap';
import {bindActionCreators} from "redux";
import {connect} from "react-redux";
import {addCandidateNote} from '../actions/CandidateActions';
/**
* Component used when the used clicks on the edit ... |
stories/Input/ExampleUnit.js | nirhart/wix-style-react | import React from 'react';
import Input from 'wix-style-react/Input';
const style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px'
};
export default () =>
<div>
<div className="ltr" style={style}>Left to right<Input unit="#"/></div>
<div className="rtl" style={style}... |
nod_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | silvandco/angular2-tests | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/pages/SelectPage/Mobile/SelectEcommerceMobile.js | ESTEBANMURUZABAL/bananaStore | import React from 'react';
import {FormattedMessage} from 'react-intl';
import intlData from './SelectPage.intl';// Flux
import IntlStore from '../../../../stores/Application/IntlStore';
import {Link} from 'react-router';
export default class SelectEcommerceMobile extends React.Component { // eslint-disable-line react... |
src/components/Header/Header.js | drhamilton/runes3 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.scss';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Comp... |
docs/pages/api-docs/input-base.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/input-base';
const requireRaw = require.context('!raw-loader!./', false, /\/input-base\.md$/);
export default function Page(... |
src/app/component/dimensions/dimensions.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
import {formatDimensions} from '../../lib/formatter'
const Dimensions = ({classNames, x, y, z, scale, unit, editLink}) => (
<div
title={editLink && formatDimensions({x, y... |
src/svg-icons/image/filter-frames.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
frontend/src/System/Logs/Updates/UpdateLogFilesConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames';
import { executeCommand } from 'Store/Actions/commandActions';
import { fetchUpdateLogFiles } from 'Store... |
frontend/src/components/collection/CollectionHeaderUI/index.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import removeMd from 'remove-markdown';
import { Button, Dropdown, FormControl, MenuItem } from 'react-bootstrap';
import { Link } from 'react-router-dom';
import { appHost, onboardingLink, truncSentence... |
src/pages/blog.js | mike-plummer/mike-plummer.github.io | import React from 'react';
import get from 'lodash/get';
import Helmet from 'react-helmet';
import HeaderGeneric from '../components/HeaderGeneric';
import { Link, graphql } from 'gatsby';
import Layout from '../components/Layout';
class Blog extends React.Component {
render() {
const { data } = this.props;
... |
src/svg-icons/device/battery-charging-90.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12... |
src/components/common/svg-icons/editor/show-chart.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorShowChart = (props) => (
<SvgIcon {...props}>
<path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/>
</SvgIcon>
);
EditorShowChart = pure(EditorShowChart);
EditorShowChart.displayNa... |
webpack/components/ModalDialog.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {Modal, Button} from 'react-bootstrap';
class ModalDialog extends Component{
getButton(action, message, float='none', buttonStyle='default'){
if(action && message){
return (<Button style={{float: float}} bsStyle={buttonSty... |
imports/ui/components/InputHint/InputHint.js | jamiebones/Journal_Publication | import React from 'react';
import PropTypes from 'prop-types';
import './InputHint.scss';
const InputHint = ({ children }) => (
<div className="InputHint">
{children}
</div>
);
InputHint.propTypes = {
children: PropTypes.node.isRequired,
};
export default InputHint;
|
src/components/Table/Table.testUtils.js | helpscout/blue | /* istanbul ignore file */
import React from 'react'
import { createSpec, derived, faker } from '@helpscout/helix'
import Truncate from '../Truncate'
export const defaultColumns = [
{
title: 'Name',
columnKey: 'name',
width: '25%',
},
{
title: 'Company',
columnKey: 'companyName',
width: '... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | hyuki0000/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
export default class MediaItem extends ImmutablePureComponent {
static propTypes = {
media: Immutable... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | everisARQ/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize: '.8rem',
};
var Cloudin... |
examples/advanced/advanced/src/baseComponents/utils.js | lwansbrough/react-native-camera | import React from 'react';
import {InteractionManager} from 'react-native';
import {Spinner, connectStyle} from "native-base";
// helper that calls interaction manager run after interactions
// but with a tiny timeout to also give time to other code to run
// some RN change broke runAfterInteractions in a way that it... |
es/components/footerbar/footer-content-button.js | vovance/3d-demo | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
packages/veritone-react-common/src/helpers/react.js | veritone/veritone-sdk | import React from 'react';
export function injectInto(children, props) {
return React.Children.map(children, child => {
return React.cloneElement(child, props);
});
}
|
src/components/common/BlockItem.js | jinqiupeter/mtsr | import React from 'react';
import {StyleSheet, View, Text, Image, TouchableOpacity} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import {COLOR} from '../../config';
export default ({
leftIcon, leftText, rightImage, rightText, rightIcon, onPress,
containerStyle, imageStyle, le... |
test/helpers.js | sthawali/react-overlays | import React from 'react';
import { cloneElement } from 'react';
export function shouldWarn(about) {
console.warn.called.should.be.true;
console.warn.calledWithMatch(about).should.be.true;
console.warn.reset();
}
/**
* Helper for rendering and updating props for plain class Components
* since `setProps` is de... |
packages/web/src/components/basic/ComponentWrapper.js | appbaseio/reactivesearch | import React from 'react';
import types from '@appbaseio/reactivecore/lib/utils/types';
import { getInternalComponentID } from '@appbaseio/reactivecore/lib/utils/transform';
import {
pushToAndClause,
checkPropChange,
checkSomePropChange,
hasCustomRenderer,
getComponent,
} from '@appbaseio/reactivecore/lib/utils/h... |
[3]. Demo_native/rn_into_ios/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | knightsj/RN_Demo | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
packages/veritone-react-common/src/components/ProfileMenu/index.js | veritone/veritone-sdk | import React from 'react';
import { get } from 'lodash';
import Menu from '@material-ui/core/Menu';
import IconButton from '@material-ui/core/IconButton';
import Avatar from '@material-ui/core/Avatar';
import Tooltip from '@material-ui/core/Tooltip';
import {
string,
func,
shape,
arrayOf,
bool,
element,
a... |
src/app/components/header/NotLoggedIn.js | Boluwatifes/andela24 | import React from 'react';
import { Link } from 'react-router-dom';
const NotLoggedIn = () =>
(
<header id="notLoggedIn">
<nav className="h-auto p-10">
<div className="nav-wrapper">
<Link className="brand-logo" to="/">Andela24</Link>
<a href="!#" data-activates="mobile-demo" cla... |
src/svg-icons/image/colorize.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageColorize = (props) => (
<SvgIcon {...props}>
<path d="M20.71 5.63l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3... |
app/index.js | vietvd88/developer-crawler | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, hashHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import './app.global.c... |
app/javascript/mastodon/features/compose/containers/warning_container.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { me } from '../../../initial_state';
const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i;
const mapStateT... |
fields/types/date/DateField.js | developer-prosenjit/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'DateField',
focusTargetRef: 'dateInput',
// default input format
inpu... |
app/app.js | warrend/warrend.github.io | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import '@babel/polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { ThemeProvider } from 'styled-compon... |
packages/material-ui-icons/src/NoEncryption.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let NoEncryption = props =>
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1... |
platform/viewer/src/index-umd.js | OHIF/Viewers | /**
* Entry point index.js for UMD packaging
*/
import 'regenerator-runtime/runtime';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
function installViewer(config, containerId = 'root', callback) {
const container = document.getElementById(containerId);
if (!container)... |
src/svg-icons/action/assignment-turned-in.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
src/svg-icons/device/bluetooth.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M17.71 7.71L12 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.88 1.88L13 9.59V5.83zm1.88 10.46... |
src/containers/App/index.js | not-bad-react/not-bad-react-starter | import React from 'react';
import PropTypes from 'prop-types';
import { Route, Switch } from 'react-router-dom';
import Helmet from 'react-helmet';
import _ from 'lodash';
import 'normalize.css';
import routes from '../../routes';
// Import your global styles here
import styles from './styles.scss';
const App = ({ ap... |
src/svg-icons/av/explicit.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvExplicit = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/>
</SvgIcon>
);
AvExplicit = pure(AvExplic... |
admin/client/App/components/Navigation/Secondary/NavItem.js | jacargentina/keystone | /**
* A navigation item of the secondary navigation
*/
import React from 'react';
import { Link } from 'react-router';
const SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropType... |
src/components/CursorOverlay.js | dkozar/raycast-dom | import React, { Component } from 'react';
/**
* Changes the cursor when visible
*/
export default class CursorOverlay extends Component {
render() {
return (
<div className='cursor-overlay'></div>
);
}
} |
src/ui/dashboard/components/sales.js | steem/qwp-antd | import React from 'react'
import PropTypes from 'prop-types'
import styles from './sales.less'
import classnames from 'classnames'
import { color } from 'utils'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
function Sales ({ data }) {
return (
<div ... |
src/entry.js | yongjun21/route-plotter | import React from 'react'
import ReactDOM from 'react-dom'
import RoutePlotter from './components/route-plotter'
ReactDOM.render((
<RoutePlotter/>
), document.getElementById('route-plotter'))
|
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js | vietvd88/developer-crawler | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
next-express/node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js | thoughtbit/node-web-starter | import React, { Component } from 'react';
export default class AppRoot extends Component {
// we can't use `connect` in this component, so must do naiively:
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<div>
<h1>This is just an empty demo</h1>
... |
react-flux-mui/js/material-ui/src/svg-icons/maps/person-pin-circle.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPinCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm0 2c1.1 0 2 .9 2 2 0 1.11-.9 2-2 2s-2-.89-2-2c0-1.1.9-2 2-2zm0 10c-1.67 0... |
web/src/components/Layout/Layout.js | kriasoft/Web-App-Boilerplate | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-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';
import PropTypes from 'prop-... |
step7-flux/node_modules/react-router/es6/IndexRedirect.js | jintoppy/react-training | 'use strict';
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './PropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <Ind... |
src/date-time-picker/CalendarHeader.js | SodhanaLibrary/react-bootstrap-date-time-picker | import React from 'react';
import ReactDOM from 'react-dom';
import {
Button,
FormControl,
InputGroup,
Overlay,
Popover,
FormGroup
} from 'react-bootstrap';
class CalendarHeader extends React.Component {
constructor(props) {
super(props);
this.onChangeMonth = this.onChangeMonth.bind(this);
th... |
src/addons/Select/Select.js | Semantic-Org/Semantic-UI-React | import PropTypes from 'prop-types'
import React from 'react'
import Dropdown from '../../modules/Dropdown'
/**
* A Select is sugar for <Dropdown selection />.
* @see Dropdown
* @see Form
*/
function Select(props) {
return <Dropdown {...props} selection />
}
Select.propTypes = {
/** Array of Dropdown.Item pro... |
app/components/elements/Toast.js | tidepool-org/blip | import React from 'react';
import PropTypes from 'prop-types';
import Snackbar, { SnackbarProps } from '@material-ui/core/Snackbar';
import CloseRoundedIcon from '@material-ui/icons/CloseRounded';
import ErrorRoundedIcon from '@material-ui/icons/ErrorRounded';
import InfoRoundedIcon from '@material-ui/icons/InfoRounded... |
src/svg-icons/notification/phone-bluetooth-speaker.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneBluetoothSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M14.71 9.5L17 7.21V11h.5l2.85-2.85L18.21 6l2.15-2.15L17.5 1H17v3.79L14.71 2.5l-.71.71L16.79 6 14 8.79l.71.71zM18 2.91l.94.94-.94.94... |
stories/ConfirmDialog.js | Talend/react-talend-components | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { ConfirmDialog } from '../src/index';
const defaultProps = {
header: 'Hello world',
show: true,
validateAction: {
label: 'OK',
onClick: action('ok'),
bsStyle: 'primary',
},
cancelAction: {
label: 'CANCEL',
onClick... |
src/svg-icons/av/playlist-add.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
frontend/src/components/thread/paginator.js | 1905410/Misago | /* jshint ignore:start */
import React from 'react';
import { Link } from 'react-router'; // jshint ignore:line
export default function(props) {
return <nav className="misago-pagination pull-left">
<Pager {...props} />
<More more={props.posts.more} />
</nav>;
}
export function Pager(props) {
if (props.p... |
app/server.js | jonathannen/canary-react | // (C) Copyright Jon Williams 2015
//
// Everything that runs on the server side. As we're a principally
// isomorphic app, this bootstraps the client side to render components.
require('source-map-support').install(); // Enable source maps at the get-go
import morgan from 'morgan';
import path from 'path';
import Re... |
client/scripts/components/dynamic-icons/gripper/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... |
scripts/index.js | ePak/react-datepicker-csp | import React from 'react';
import App from './App';
import Calendar from './calendar';
React.render(<App/>, document.getElementById('root'));
|
assets/search-employee-view/job-view/components/MessageComponent.js | janta-devs/nyumbani | import React, { Component } from 'react';
import EmailComponent from './EmailComponent';
class MessageComponent extends Component{
render() {
return (
<div className="card" id="profile-followers">
<header className="followers-header">
<h2>Message Pane</h2>
... |
src/docs/components/annotated-meter/AnnotatedMeterExamplesDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import AnnotatedMeter from 'grommet-addons/components/AnnotatedMeter';
import InteractiveExample from '../../../components/InteractiveExample';
const PROPS_SCHEMA = {
legend: { value: true, initial: true }... |
src/components/chart.js | binayverma/weather-chart | import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
import _ from 'lodash';
function average(data) {
return _.round(_.sum(data)/data.length);
}
export default (props) => {
return (
<div>
<Sparklines height={120} width={180} data... |
react/features/participants-pane/components/web/FooterButton.js | gpolitis/jitsi-meet | // @flow
import { makeStyles } from '@material-ui/styles';
import React from 'react';
import ParticipantPaneBaseButton from './ParticipantPaneBaseButton';
type Props = {
/**
* Label used for accessibility.
*/
accessibilityLabel: String,
/**
* Children of the component.
*/
childr... |
src/app/component/offer-footer/offer-footer.story.js | all3dp/printing-engine-client | import React from 'react'
import {storiesOf} from '@storybook/react'
import {action} from '@storybook/addon-actions'
import OfferFooter from '.'
import Link from '../link'
storiesOf('OfferFooter', module)
.add('default', () => (
<OfferFooter
priceLabel="Best Price"
price="- €"
subline={
... |
ui/src/player/PlayerEdit.js | cloudsonic/sonic-server | import React from 'react'
import {
TextInput,
BooleanInput,
TextField,
Edit,
required,
SimpleForm,
SelectInput,
ReferenceInput,
useTranslate,
} from 'react-admin'
import { Title } from '../common'
const PlayerTitle = ({ record }) => {
const translate = useTranslate()
const resourceName = translat... |
packages/website/src/components/TypeDoc/ApiFunction.js | mucsi96/w3c-webdriver | import React from 'react';
import styled from 'styled-components';
import Heading from '../content/Heading';
import ApiFunctionParameter from './ApiFunctionParameter';
import ApiType from './ApiType';
import ApiExamples from './ApiExamples';
import ApiDescription from './ApiDescription';
import ApiSubSection from './Ap... |
examples/js/column-format/demo.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import HtmlColumnFormatTable from './html-column-format-table';
import ReactColumnFormatTable from './react-column-format-table';
import ExtraDataColumnFormatTable from './extra-data-column-format-table';
import GetRowIndexTable from './get-row-index-table';
class Dem... |
frontend/src/app/containers/RestartPage.js | 6a68/testpilot | import React from 'react';
import View from '../components/View';
export default class Restart extends React.Component {
componentWillMount() {
this.props.sendToGA('event', {
eventCategory: 'PostInstall Interactions',
eventAction: 'view modal',
eventLabel: 'restart required'
});
}
re... |
src/components/PgNameAndAdderess.js | apurvamaloo/ZoloAssignment | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
class PgNameAndAddressComp extends React.Component
{
render() {
console.log("props is", this.props)
return (
<div>
<h1 style={{fontWeight:'bold'}}>
{this.props.details.pgName}
... |
src/svg-icons/action/launch.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLaunch = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);
Ac... |
packages/core/__deprecated__/Highlight/Highlight.js | romelperez/arwes | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
// HTMLElement animation end event names.
const ON_ANIMATION_END = [
'webkitAnimationEnd',
'mozAnimationEnd',
'MSAnimationEnd',
'oanimationend',
'animationend'
];
export default class Highlight extends... |
docs/src/app/components/pages/components/Chip/Page.js | lawrence-yu/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import chipReadmeText from './README';
import ChipExampleSimple from './ExampleS... |
webpack/scenes/RedHatRepositories/components/RepositorySetRepository/RepositorySetRepository.js | Katello/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { ListView, Spinner, OverlayTrigger, Tooltip, Icon, FieldLevelHelp } from 'patternfly-react';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
import { yStream } from '../RepositorySetR... |
src/components/QuizResult.js | gabrielrotbart/memorx | import React from 'react'
class QuizResult extends React.Component {
constructor(props) {
super(props);
this.results = this.results.bind(this)
}
results() {
const letters = Object.keys(this.props.answers)
return letters.map((letter) => {
let result = {
letter: letter,
an... |
src/Popup/PopupWithControl.js | ctco/rosemary-ui | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import Popup from '../Popup';
import { withIdAndTypeContext } from '../util/hoc/WithIdAndTypeHOC';
export const PROPERTY_TYPES = {
disabled: PropTypes.bool,
handlePopupStateChange: PropTypes.func,
renderInput... |
app/javascript/mastodon/components/hashtag.js | tootcafe/mastodon | // @ts-check
import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import ShortNumber from 'mastodon/co... |
dispatch/static/manager/src/js/pages/Podcasts/NewPodcastEpisodePage.js | ubyssey/dispatch | import React from 'react'
import EpisodeEditor from '../../components/PodcastEditor/EpisodeEditor'
export default function NewPodcastEpisodePage(props) {
return (
<EpisodeEditor
isNew={true}
podcastId={props.params.podcastId}
route={props.route} />
)
}
|
bin/ISOServer.js | tianyingchun/docs | import path from 'path';
import express from 'express';
import cors from 'cors';
import favicon from 'serve-favicon';
import execTime from 'exec-time';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { Provider } from 'react-redux';
import { RoutingContext, match } from 'react-router';... |
srv_dash/react/src/components/shared/AppCard.js | bariyu/srv-dash | import React from 'react';
import { browserHistory } from 'react-router';
export default class AppCard extends React.Component {
render() {
return (
<div className="pt-card pt-elevation-2 pt-interactive" style={{margin: '10px'}} onClick={() => browserHistory.push(`/dash/${this.props.app}`)}>
... |
src/svg-icons/maps/satellite.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSatellite = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.... |
Web Developer Skills/Learn ReactJS Part II/Unit 07 propTypes/02 Apply PropTypes/BestSeller.js | ummahusla/codecademy-exercise-answers | import React from 'react';
export class BestSeller extends React.Component {
render() {
return (
<li>
Title: <span>
{this.props.title}
</span><br />
Author: <span>
{this.props.author}
</span><br />
Weeks: <span>
{this.props.weeksOnList... |
client/components/MainSection/index.js | bmacheski/redux-groceries | import React, { Component } from 'react';
import ListItem from '../ListItem';
import style from './style.css'; // eslint-disable-line no-unused-vars
class MainSection extends Component {
render() {
const { items, completeItem } = this.props;
const list = items.map(item => {
return (
<ListItem
... |
app/src/components/Map/Map.stories.js | WoundedPixels/us-population | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { topoToGeo } from '../../DataManipulation';
import Map from './Map';
import Tooltip from '../Tooltip/Tooltip';
const buildTooltip = d =... |
assets/jqwidgets/demos/react/app/gauge/lineargauge/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxExpander from '../../../jqwidgets-react/react_jqxexpander.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
import JqxButton from '../../../j... |
src/svg-icons/action/gif.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGif = (props) => (
<SvgIcon {...props}>
<path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/>
</Svg... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.