path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/client.js | zsu13579/pinterest-apollo | /**
* 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 ReactDOM from 'react-... |
app/utils/childUtils.js | Princess310/antd-demo | import React from 'react';
import createFragment from 'react-addons-create-fragment';
export function createChildFragment(fragments) {
const newFragments = {};
let validChildrenCount = 0;
let firstKey;
// Only create non-empty key fragments
for (const key in fragments) {
if (Object.prototype.hasOwnPrope... |
src/views/components/DimmerCard.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {doServiceAction} from '../../state/ducks/services-list/operations.js';
import ServiceCardBase from './ServiceCardBase.js';
import Switch from './Switch.js';
import SliderControl from './SliderControl.js';
import ... |
app_modules/ExternalLink/index.js | radubrehar/evanghelic.ro | import React from 'react';
import PropTypes from 'prop-types';
const ExternalLink = props => {
const size = props.iconSize || 18;
const color = props.color;
const style = { ...props.style };
if (color) {
style.color = color;
}
return (
<a target="_blank" {...props} style={style}>
<svg
... |
src/svg-icons/action/line-style.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLineStyle = (props) => (
<SvgIcon {...props}>
<path d="M3 16h5v-2H3v2zm6.5 0h5v-2h-5v2zm6.5 0h5v-2h-5v2zM3 20h2v-2H3v2zm4 0h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM3 12h8v-2H3v2zm10 0h8v-2h... |
src/components/Navigation/Navigation.js | jessiepullaro414/kiwi | /**
* 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 cx from 'classnames';... |
src/FormControl.js | HPate-Riptide/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import elementType from 'react-prop-types/lib/elementType';
import warning from 'warning';
import FormControlFeedback from './FormControlFeedback';
import FormControlStatic from './FormControlStatic';
import { bsClass, getClassSet, splitBsProps, bsSizes }... |
examples/js/column-filter/text-filter-with-default-value.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
react/features/dial-out/components/DialOutNumbersForm.web.js | KalinduDN/kalindudn.github.io | import { StatelessDropdownMenu } from '@atlaskit/dropdown-menu';
import ExpandIcon from '@atlaskit/icon/glyph/expand';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { translate } from '../../base/i18n';
import { updateDialOutCodes } from '../actions';
import CountryIcon from ... |
src/containers/NotFound/NotFound.js | chihungyu1116/perk-saga | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
src/svg-icons/toggle/check-box.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleCheckBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);... |
server/client/src/components/surveys/SurveyNew.js | gsarpy/campaigner | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import SurveyForm from './SurveyForm';
import SurveyFormReview from './SurveyFormReview';
const surveyStyle = {
marginTop: '3rem',
};
class SurveyNew extends Component {
state = { showFormReview: false };
renderContent() {
if... |
frontend/src/Settings/Tags/Details/TagDetailsDelayProfile.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import titleCase from 'Utilities/String/titleCase';
import translate from '../../../Utilities/String/translate';
function TagDetailsDelayProfile(props) {
const {
preferredProtocol,
enableUsenet,
enableTorrent,
usenetDelay,
torrentDela... |
src/Scenes/InventoryScene.js | severnsc/brewing-app | import React from 'react'
import InventoryContainer from '../containers/InventoryContainer'
import ShadowBox from '../Components/ShadowBox'
import FlexDiv from '../Components/FlexDiv'
const InventoryBox = ShadowBox.extend`
width:100%;
margin:10px;
`
const InventoryDiv = FlexDiv.extend`
width:50%;
margin-top: ... |
src/components/MarkerCard.js | IgorSzyporyn/wwiionline-webmap | import React from 'react';
import PropTypes from 'prop-types';
import { OverlayView } from "react-google-maps";
import getPixelPositionOffset from '../utils/getPixelPositionOffset';
const MarkerCard = props => {
const handleMouseLeave = () => {
props.onMouseLeave();
};
return (
<OverlayView
getPi... |
src/components/Sidebar/Author/Author.js | renegens/blog | // @flow strict
import React from 'react';
import { withPrefix, Link } from 'gatsby';
import styles from './Author.module.scss';
type Props = {
author: {
name: string,
bio: string,
photo: string
},
isIndex: ?boolean
};
const Author = ({ author, isIndex }: Props) => (
<div className={styles['author... |
public/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | rmadziyauswa/ChordProgressions | 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/utils/domUtils.js | simonliubo/react-ui | import React from 'react';
let canUseDom = !!(
typeof window !== 'undefined' &&
window.document &&
window.document.createElement
);
/**
* Get elements owner document
*
* @param {ReactComponent|HTMLElement} componentOrElement
* @returns {HTMLElement}
*/
function ownerDocument(componentOrElement) {
let e... |
src/Main/News/RegularArticle.js | enragednuke/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
class RegularArticle extends React.PureComponent {
static propTypes = {
title: PropTypes.node.isRequired,
children: PropTypes.node.isRequired,
bodyStyle: PropTypes.object,
};
render() {
const { title, children, bodyStyle } = this.pro... |
packages/app/app/components/LibraryView/LibraryHeader/index.js | nukeop/nuclear | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { Button } from 'semantic-ui-react';
import { withTranslation } from 'react-i18next';
import { withHandlers, withState, compose } from 'recompose';
import Header from '../../Header';
import LibraryFolders from '../Librar... |
src/App.js | OSWeekends/EventPoints | import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import Header from './components/Header';
import Search from './components/Search';
import Events from './components/Events';
import Details from './components/Details';
import Map from './components/Map'... |
src/components/cucumber/plain/CucumberPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './CucumberPlain.svg'
/** CucumberPlain */
function CucumberPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'CucumberPlain' + ' ' + class... |
src/main.js | gianjohansen/currency-conversion | import React from 'react';
import ReactDOM from 'react-dom';
import CurrencyConversion from './CurrencyConversion';
document.addEventListener('DOMContentLoaded', function() {
ReactDOM.render(
React.createElement(CurrencyConversion),
document.getElementById('mount')
);
}); |
node_modules/native-base/src/basic/IconNB.js | tausifmuzaffar/bisApp | import React, { Component } from 'react';
import { connectStyle } from '@shoutem/theme';
import Ionicons from 'react-native-vector-icons/Ionicons';
import Entypo from 'react-native-vector-icons/Entypo';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import Foundation from 'react-native-vector-icons/... |
src/svg-icons/av/music-video.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMusicVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0... |
src/Dropdown.js | glenjamin/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import mapContextToProps from 'react-context-toolbox/mapContextToProps';
import { elementType } from 'prop-types-extra';
import BaseDropdown from 'react-overlays/Dropdown';
import chain from './utils/createChainedFuncti... |
src/hooks/testUtils.js | paypal/downshift | import React from 'react'
import {act} from '@testing-library/react'
const items = [
'Neptunium',
'Plutonium',
'Americium',
'Curium',
'Berkelium',
'Californium',
'Einsteinium',
'Fermium',
'Mendelevium',
'Nobelium',
'Lawrencium',
'Rutherfordium',
'Dubnium',
'Seaborgium',
'Bohrium',
'Hass... |
Dockerfiles/node/nodeapp/src/Components/Machine.js | 4lexBaum/projekt-5s-dhbw | import React from 'react';
import { LightBarrier } from '../Components/LightBarrier.js';
export class Machine extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div id="machineBox">
<div id="areasBox">
<div id="area1" className="area">
... |
src/components/Layout/Footer.js | muidea/magicSite | import React from 'react'
import { config } from 'utils'
import styles from './Footer.less'
const Footer = () => (
<div className={styles.footer}>
{config.footerText}
</div>)
export default Footer
|
app/javascript/mastodon/features/ui/index.js | masto-donte-com-br/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
assets/jqwidgets/demos/react/app/grid/toolbar/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'jsonp',
... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | zomeelee/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import AvatarItem from... |
src/js/components/ProofLine.js | jackdeadman/Natural-Deduction-React | import React from 'react';
class ProofLine extends React.Component {
constructor(props) {
super(props);
var { lineNumber, equation, rule } = props;
this.state = {
lineNumber,
equation,
rule
};
}
handleClick() {
console.log(this.props);
this.props.onSelect(this);
}
... |
test/index.js | mapbox/mdast-react | /**
* @typedef {import('mdast').Image} Image
* @typedef {import('react').ReactNode} ReactNode
* @typedef {import('react').ReactElement<unknown>} ReactElement
*/
import fs from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import test from 'tape'
import {remark} from 'remark'
import {VFi... |
app/components/ViewListing.js | mestern/farmers_market | import React from 'react'
import { connect } from 'react-redux'
import { browserHistory, Link } from 'react-router'
import {putOrder} from '../reducers/order'
import store from '../store'
//import {putProduce} from '../reducers/produce'
// import { putPayment } from '../reducers/payment' /// correct this
const mapSta... |
src/pages/number/Eratosthenes/Eratosthenes.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Eratosthenes extends React.Component {
render() {
return (
<div>Eratosthenes</div>
)
}
}
export default Eratosthenes |
src/routes/Signup/components/SignupForm/SignupForm.js | Ryana513/ccproject | import React from 'react'
import PropTypes from 'prop-types'
import { Field, reduxForm } from 'redux-form'
import {
TextField,
RadioButtonGroup,
RadioButton
} from 'redux-form-material-ui'
import RaisedButton from 'material-ui/RaisedButton'
import { SIGNUP_FORM_NAME } from '../../../../constants'
import { require... |
src/Parser/Mage/Frost/Modules/Items/IceTime.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemDamageDone from 'Main/ItemDamageDone';
/**
* Ice Time:
* You... |
docs/pages/components/transitions.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 = 'components/transitions';
const requireDemo = require.context('docs/src/pages/components/transitions', false, /\.(js|tsx)$/);
cons... |
ajax/libs/react-instantsearch/5.2.1/Connectors.js | jonobr1/cdnjs | /*! React InstantSearch 5.2.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports',... |
src/native/components/Baseline.js | skallet/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { compose, range } from 'ramda';
import { connect } from 'react-redux';
// Test vertical rhythm visually. Inspired by basehold.it
type BaselineProps = {|
baselineShown: boolea... |
Sources/Screens/URExampleMainView.js | jegumhon/React-Native-MovingTransition | "use strict";
import React from 'react';
import {
StyleSheet,
View,
Text,
Button,
ListView,
Image,
Animated,
Dimensions,
Easing
} from 'react-native';
import { BlurView } from 'react-native-blur';
import URExampleSampleCell from '../URExampleCell';
import ImageAssets from './../../ImageAssets'... |
src/server/express.js | tosFa/react-cross-platform-boardgame-example | var express = require('express');
var expressServer = express();
import webpack from 'webpack';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware from 'webpack-hot-middleware';
import webpackConfig from '../../webpack.config';
import React from 'react';
import { renderToString } fr... |
app/imports/ui/pages/NotFound.js | ericvrp/GameCollie | import React from 'react';
import { Alert } from 'react-bootstrap';
const NotFound = () => (
<div className="NotFound">
<Alert bsStyle="danger">
<p><strong>Error [404]</strong>: { window.location.pathname } does not exist.</p>
</Alert>
</div>
);
export default NotFound;
|
mxcube3/ui/components/SampleView/UserLog.js | bolmsten/mxcube3 | import React from 'react';
import './userlog.css';
export default class UserLog extends React.Component {
render() {
return (
<div className="logger-window">
{this.props.messages.reverse().map((data, i) => (<p key={i}>{data.message}</p>))}
</div>
);
}
}
|
src/components/App.js | luketlancaster/react-temps | import React from 'react'
import axios from 'axios'
import Day from './Day'
class App extends React.Component {
constructor() {
super();
this.getPosition = this.getPosition.bind(this);
this.getForecast = this.getForecast.bind(this);
// getInitialState
this.state = {
coords: {},
for... |
packages/node_modules/@webex/widget-meet/src/enhancers/withWebRtcSupport.js | ciscospark/react-ciscospark | import React from 'react';
import classNames from 'classnames';
import {shape, func} from 'prop-types';
import {
branch,
renderComponent
} from 'recompose';
import messages from '../messages';
import styles from '../styles.css';
function NoWebRTCSupport({intl}) {
return (
<div className={classNames(styles.m... |
src/pages/linth.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Linth' />
)
|
src/svg-icons/image/style.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStyle = (props) => (
<SvgIcon {...props}>
<path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.... |
src/components/molecules/Post/index.stories.js | DimensionLab/narc | import React from 'react'
import { storiesOf } from '@storybook/react'
import { Post } from 'components'
storiesOf('Post', module)
.add('default', () => (
<Post title="Hello" body="Ullamco et reprehenderit magna cillum ullamco consectetur et enim aliqua." />
))
|
src/svg-icons/device/signal-cellular-3-bar.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar);
DeviceS... |
js/components/blankPage/index.js | leehyoumin/asuraCham |
'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { openDrawer, closeDrawer } from '../../actions/drawer';
import { popRoute } from '../../actions/route';
import { setIndex } from '../../actions/list';
import { replaceRoute, replaceOrPushRoute } from '../../actio... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Modal.js | JamieMason/npm-cache-benchmark | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/components/bar/index.js | jollopre/beverage_planning | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import BarHeader from './barHeader';
import NewRound from './newRound';
import ListProducts from './listProducts';
import { BarShape } from '../../shapes/barShape';
export default class Bar extends Component {
render() {
const { bar, prod... |
src/index.js | zhbhun/react-antd-window | /**
* Created by zhbhun on 2015/9/22.
*/
/**
* Created by zhbhun on 2015/9/22.
*/
import React from 'react';
import assign from 'object-assign';
import Antd from 'antd';
import {Window, Modal, Confirm, Tip} from 'react-window-kit';
class AntdWindow extends Window {
static defaultProps = assign({}, Window.defa... |
src/App.js | ibujs/decaffeinater | // @flow
// eslint-disable-next-line import/no-extraneous-dependencies
import { ipcRenderer } from 'electron' // ipc communication to main process.
import React from 'react'
// Following imports for material-ui, React components based on material-ui
import Paper from 'material-ui/Paper'
import TextField fro... |
src/index.js | shierby/shierby.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter as Router, Route} from 'react-router-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import './index.css';
import routes from './routes'
import App from './App';
import registerServiceWorker from './registerServiceWorker... |
src/Parser/Paladin/Retribution/Modules/Talents/DivinePurpose.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import Combatants from ... |
src/components/form/field/get.js | kairatz/resource-frontend-server | import React from 'react'
import DatePickerComponent from '../datepicker'
import DatePickerComponent2 from '../datepicker/index2'
import DatePickerComponent3 from '../datepicker/index3'
import StatusField, { FieldComponent } from './'
import { required, requiredInt } from '../validation'
import moment from 'moment'
co... |
client/src/demo/Options.js | ziel5122/autograde | import Slider from 'material-ui/Slider';
import Subheader from 'material-ui/Subheader';
import Toggle from 'material-ui/Toggle';
import React from 'react';
const optionsStyle = {
alignItems: 'center',
display: 'flex',
width: '100%',
};
const sliderStyle = {
height: '24px',
margin: 0,
marginLeft: '12px',
... |
src/components/atoms/MediaLayout/index.js | ygoto3/artwork-manager | // @flow
import React from 'react';
import styles from './styles.css';
export const MediaLayout = ({ children }) => (
<div className={styles.container}>
{children[0]}
<div>
{children[1]}
</div>
</div>
);
Object.assign(MediaLayout, {
displayName: 'MediaLayout',
});
|
webpack/scenes/Subscriptions/Manifest/SimpleContentAccess.js | snagoor/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Level, LevelItem } from '@patternfly/react-core';
import { OverlayTrigger, Tooltip, Icon } from 'patternfly-react';
import { translate as __ } from 'foremanReact/common/I18n';
import { Col, ControlLabel } from 'react-bootstrap';
const Simp... |
example/src/app.js | rsamec/react-pathjs-chart | import React from 'react';
import ReactDOM from 'react-dom';
import Binder from 'react-binding';
import _ from 'lodash';
import PropertyEditor from 'react-property-editor';
import genie from 'genie'
import {Tabs as TabbedArea,Tab as TabPane,Button} from 'react-bootstrap';
import SmoothLineChartDemo from './SmoothLine... |
examples/async/index.js | darrrk/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementByI... |
server/soman/frontend/app/components/sensors/Smoke.js | bilgorajskim/soman | import React from 'react';
import SensorIcon from 'react-icons/lib/fa/fire';
import { sensorConfig } from '../../sensorConfig'
export default function smokeSensor({data, color}) {
const active = data ? data.value > sensorConfig.smoke.triggerThreshold : false
return <div className={active?'sensor--active':''}>
... |
plugins/Terminal/js/index.js | NebulousLabs/Sia-UI | // index.js: main entrypoint for the Sia-UI wallet plugin.
import React from 'react'
import ReactDOM from 'react-dom'
import CommandLine from './components/app.js'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import rootReducer from './reducers/index.js'
import { initPlugin } from './utils... |
src/components/articles.js | rikmms/rikmms.github.io | import React from 'react'
import { Header, List } from 'semantic-ui-react'
const Articles = ({ articles }) => {
return (
<div>
<Header as='h3'>Publications</Header>
<List>
{ articles.map(article =>
<List.Item key={ article.title }>
<List.Icon name='calendar' />
... |
src/Parser/DeathKnight/Blood/Modules/Traits/Veinrender.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import calculateEff... |
e2e-tests/gatsby-image/src/components/header.js | 0x80/gatsby | import React from 'react'
import { Link } from 'gatsby'
import PropTypes from 'prop-types'
const Header = ({ siteTitle }) => (
<div
style={{
background: `rebeccapurple`,
marginBottom: `1.45rem`,
}}
>
<div
style={{
margin: `0 auto`,
maxWidth: 960,
padding: `1.45... |
client/main.js | alexfriesen/assetbase | import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import '../imports/startup/client/index.js';
import { renderRoutes } from '../imports/startup/client/routes';
Meteor.startup(() => {
render(renderRoutes(), document.getElementById('app'));
}); |
src/pages/client/Template.js | gramulos/EpsilonGroups | 'use strict';
import { fetchClientMenu } from '../../actions/index';
import { bindActionCreators } from 'redux';
import React, { Component } from 'react';
import {connect} from 'react-redux';
import NavigationBar from '../../components/NavigationBar';
import Header from '../../components/Header';
import Footer from '... |
src/containers/search_bar.js | D7Torres/react-forecastsparks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
this.onInputChang... |
src/svg-icons/hardware/headset-mic.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadsetMic = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/>
... |
src/components/Photo/Photo.js | MarynaHapon/Data-root-react | import React from 'react';
import PropTypes from 'prop-types';
class Photo extends React.Component {
static propTypes = {
source: PropTypes.string.isRequired,
altText: PropTypes.string.isRequired,
};
render() {
const { source, altText } = this.props;
return <img src={source} alt={altText} />;
}... |
app/javascript/mastodon/components/loading_indicator.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export const CircularProgress = ({ size, strokeWidth }) => {
const viewBox = `0 0 ${size} ${size}`;
const radius = (size - strokeWidth) / 2;
return (
<svg width={size} height={size} viewBox={viewBox} className='circular-progress' role='progress... |
src/iframe.js | breath103/watchmen | import React, { Component } from 'react';
class IFrame extends Component {
componentDidMount() {
this.refs.iframe.addEventListener('load', this.props.onLoad);
}
componentWillReceiveProps(nextProps) {
if (this.props.src !== nextProps.src) {
this.props.onChange();
}
}
render() {
return ... |
src/svg-icons/av/repeat-one.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRepeatOne = (props) => (
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/>
</SvgIcon>
);
AvRepeatOne = pure(AvRepeatOne);
AvRepeatOn... |
docs/src/app/components/pages/components/Dialog/ExampleScrollable.js | pradel/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton';
const styles = {
radioButton: {
marginTop: 16,
},
};
/**
* Dialog co... |
src/AppBundle/Resources/static/jsx/util/form/InputLabel.js | viszerale-therapie/simple-courses | import React from 'react';
import app from '../../app/app';
import tl from '../translator';
export default class InputLabel extends React.Component {
constructor(props) {
super(props);
}
render() {
let requiredAdd = this.props.fieldDef.required ? <span className="required">*</span> : ''... |
doc/src/js/components/Code.js | mapillary/mapillary-js | /**
* 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.
*
* @format
*/
import React from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './code.module.css';... |
ui/js/dfv/src/components/help-tooltip.js | pods-framework/pods | import React from 'react';
import sanitizeHtml from 'sanitize-html';
import Tippy from '@tippyjs/react';
import PropTypes from 'prop-types';
import { Dashicon } from '@wordpress/components';
import { richTextInlineOnly } from '../../../blocks/src/config/html';
import 'tippy.js/dist/tippy.css';
import './help-tooltip.... |
src/interface/RootErrorBoundary.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Trans, t } from '@lingui/macro';
import FullscreenError from 'interface/FullscreenError';
import ErrorBoundary from 'interface/ErrorBoundary';
import ApiDownBackground from 'interface/images/api-down-background.gif';
import { EventsParseError } fr... |
src/pages/contact.js | nvasquez97/CataVasken | import React from 'react';
class Contact extends React.Component{
render(){
return(
<div>
<div className="panelH container">
<img src="/imgs/ArabianHorses.jpg" style={{width:'100%'}} className="img-responsive" title="Arabian Horses" alt="Arabian Horses"/>
<p cl... |
src/components/Help/HelpContainer.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
import Help from './Help'
import { connect } from 'react-redux'
import { hideHelp } from '../../actions/actions.js'
const mapStateToProps = (state, ownProps) => {
return {
showHelp: state.showHelp,
}
}
const mapDispatchToProps = (dispatch) => {
return {
onIntrojsE... |
src/svg-icons/alert/error.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
packages/react-static/templates/stress-test/src/pages/blog.js | nozzle/react-static | import React from 'react'
import { useRouteData, Head } from 'react-static'
import { Link } from '@reach/router'
//
let styled
if (process.env.STYLE_SYSTEM === 'emotion') {
styled = require('react-emotion').default
} else if (process.env.STYLE_SYSTEM === 'styled') {
styled = require('styled-components').default
... |
app/javascript/mastodon/features/follow_recommendations/components/account.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import { makeGetAccount } from 'mastodon/selectors';
import Avatar from 'mastodon/compone... |
jekyll-strapi-tutorial/api/admin/admin/src/containers/ListPluginsPage/index.js | strapi/strapi-examples | /**
*
* ListPluginsPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { bindActionCreators, compose } from 'redux';
import { FormattedMessage } from 'react... |
app/components/Repositories.js | yneves/atom-orbital-command | 'use babel';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import autoBind from 'class-autobind';
import Button from './Button';
export default class Repository extends Component {
static propTypes = {
collapsedSections: PropTypes.array.isRequired,
pinnedRepositories: PropTyp... |
2017/Cati/React/apresentacao2/projeto1/react-notes/src/components/Button.js | LorhanSohaky/UFSCar | import React from 'react';
const Button=({type,text,onClick})=>(
<button className={`btn ${type}`} onClick={onClick}>
{text}
</button>
)
export default Button;
|
src/svg-icons/action/label-outline.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabelOutline = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l... |
src/server.js | antklim/tanya_klimenko | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
import assets from './a... |
src/client/components/App.js | playnogames/stacks | import React from 'react';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import utils from '../utils';
import Login from './Login';
import Dashboard from './Dashboard';
import Profile from './Profile';
class App extends React.Component {
constructor() {
super();
utils.setToken();
this.sta... |
app/javascript/mastodon/features/explore/statuses.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusList from 'mastodon/components/status_list';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { fetchTrendingStatuses } from 'mastodon/actio... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-7/App.js | Brandon-J-Campbell/codemash | import React, { Component } from 'react';
import './App.css';
import Exercise from './Exercise';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<h1 className="App-title">Exercise 7</h1>
<h2 className="sub-title">Convert a ... |
antd-mobile-custom/antd-mobile/lib/checkbox/PropsType.js | forwk1990/wechart-checkin | // import React from 'react';
"use strict"; |
admin/client/views/home.js | andreufirefly/keystone | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import { Container } from 'elemental';
import xhr from 'xhr';
import { plural } from '../utils';
import Footer from '../components/Footer';
import MobileNavigation from '../components/Navigation/MobileNavigation';
import PrimaryNavigation from ... |
fields/types/location/LocationField.js | dvdcastro/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import { Checkbox, FormField, FormInput, FormNote, FormRow } from 'elemental';
import CollapsedFieldLabel from '../../components/CollapsedFieldLabel';
import NestedFormField from '../../components/NestedFormField';
/**
* TODO:
* - Remov... |
src/svg-icons/image/timer-10.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer10 = (props) => (
<SvgIcon {...props}>
<path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-... |
src/components/bio.js | rikmms/rikmms.github.io | import React from 'react'
import { Image, Header, Icon } from 'semantic-ui-react'
const Bio = ({ info }) => {
return (
<div>
<Image src={ info.photoSrc } size='small' verticalAlign='middle' shape='circular'/>
<Header as='h2'>{ info.name }</Header>
<div>
{info.social.map(s =>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.