path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/javascript/mastodon/containers/mastodon.js | kazh98/social.arnip.org | import React from 'react';
import { Provider, connect } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { INTRODUCTION_VERSION } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'reac... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedComputerVertically.js | ben174/Semantic-UI-React | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedComputerVertically = () => (
<Grid reversed='computer vertically'>
<Grid.Row>
<Grid.Column>Computer Row 4</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column>Computer Row 3</Grid.Column>
</Grid.Row>
... |
src/svg-icons/maps/directions.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.... |
fiddles/react/fiddle-0009-Form/src/name-form/NameForm.js | bradyhouse/house | import React from 'react';
import './NameForm.css';
class NameForm extends React.Component {
constructor(props) {
super(props);
this.state = {value: ''};
this.handleChange = this.handleChange.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
}
handleChange(event) {
this.setState... |
client/src/components/settings/ResetModal.js | BhaveshSGupta/FreeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { ButtonSpacer } from '../helpers';
import { Button, Modal } from '@freecodecamp/react-bootstrap';
const propTypes = {
onHide: PropTypes.func.isRequired,
reset: PropTypes.func.isRequired,
show: PropTypes.bool
};
function ResetModal(props) {
... |
app/javascript/mastodon/features/compose/containers/warning_container.js | MastodonCloud/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... |
examples/master-detail/app.js | malte-wessel/react-router | import React from 'react'
import { render, findDOMNode } from 'react-dom'
import { browserHistory, Router, Route, IndexRoute, Link } from 'react-router'
import ContactStore from './ContactStore'
import './app.css'
const App = React.createClass({
getInitialState() {
return {
contacts: ContactStore.getContac... |
tests/Validation-spec.js | hanbar/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import TestInput, {InputFactory} from './utils/TestInput';
import immediate from './utils/immediate';
import sinon from 'sinon';
export default {
'should reset only changed form element when external error is pas... |
app/javascript/mastodon/components/autosuggest_emoji.js | Craftodon/Craftodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
const assetHost = process.env.CDN_HOST || '';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequired,
... |
src/server.js | runnables/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js | jperez10/RobinHoodAutoTrader | 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>
... |
client/app/components/Main.js | dring1/gopheringdj | import React from 'react';
import mui from 'material-ui';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Play from './Dj';
import Playbar from './Play/Playbar/Playbar.new';
import Actions from '../actions';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
require('..... |
src/index.js | carvallegro/font-comparator | import 'whatwg-fetch'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import { ThemeProvider, injectGlobal } from 'styled-components'
import App from './App'
import theme from './theme'
import store, { history } from... |
src/Parser/Warlock/Affliction/Modules/Talents/Haunt.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/forma... |
android/app/src/main/java/settingsScene.js | ShawnBertini/chainstay | import React, { Component } from 'react';
import { connect } from 'react-redux'
import {AlertIOS,AsyncStorage,Button,View,ScrollView,Text,TextInput,StyleSheet,Switch,TouchableOpacity} from 'react-native'
import * as actions from '../actions'
class SettingsScene extends Component {
state = {
email: '',
nick... |
information/blendle-frontend-react-source/app/components/SharingButton/index.js | BramscoChill/BlendleParser | import React from 'react';
import { withHandlers } from 'recompose';
import { oneOf, string } from 'prop-types';
import classNames from 'classnames';
import FacebookIcon from 'components/icons/Facebook';
import TwitterIcon from 'components/icons/Twitter';
import LinkedInIcon from 'components/icons/LinkedIn';
import Wha... |
src/js/components/icons/base/ForwardTen.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
frontend/src/components/common/Navbar.js | VladimirAnaniev/LoggIt | import React from 'react'
import { NavLink } from 'react-router-dom'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { Navbar } from 'react-materialize'
function NavBar ({isLoggedIn = false, isAdmin = false}) {
if (isLoggedIn) {
return (
<Navbar className='blue-grey darken-4... |
renderer/components/Form/OpenDialogButton.js | LN-Zap/zap-desktop | import React from 'react'
import { Box } from 'rebass/styled-components'
import Copy from 'components/Icon/FolderOpen'
import { Button } from 'components/UI'
const OpenDialogButton = props => (
<Button
height={44}
ml={-47}
p={0}
sx={{ overflow: 'hidden', zIndex: 1, borderRadius: '0 5px 5px 0' }}
... |
threeforce/node_modules/react-bootstrap/es/DropdownButton.js | wolfiex/VisACC | 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... |
pkg/ui/src/components/EventViewer.js | matt-deboer/kuill | import React from 'react'
import { connect } from 'react-redux'
import {
Table,
TableBody,
TableRow,
TableRowColumn,
TableHeader,
TableHeaderColumn
} from 'material-ui/Table'
import sizeMe from 'react-sizeme'
import { eventType as eventTypeIcons } from './icons'
import { toHumanizedAge } from '../converters... |
src/js/components/activities/memberLedger.js | jrnail23/sitterswap-ui | import React from 'react'
class LedgerRow extends React.Component {
static propTypes = {
item: React.PropTypes.shape({
href: React.PropTypes.string.isRequired,
date: React.PropTypes.string.isRequired,
description: React.PropTypes.string.isRequired,
points: React.PropTypes.number.isRequire... |
react-music-player/app/index.js | zyl274939543/myblog | import React from 'react'
import {render} from 'react-dom'
import {AppContainer} from 'react-hot-loader'
import Root from './root'
render(
<AppContainer>
<Root />
</AppContainer>,
document.getElementById('root')
);
if(module.hot){
module.hot.accept('./root',()=>{
const NewRoot=require('./root').default;
rende... |
source/pages/not-found.js | simonewebdesign/react-router-page-js | import React from 'react';
export default class NotFoundPage extends React.Component {
render() {
return <h1>404 Page Not Found</h1>;
}
}
|
src/Components/Card.js | himanshu8426/himanshu8426.github.io | import React from 'react'
import styled, {
// css
} from 'styled-components'
// import logo from '../images/wow.jpg'
import { MapPin } from 'react-feather'
const CardDiv = styled.div`
margin: 10px 10px;
width: 370px;
height: 370px;
border-radius: 22px;
// box-shadow: 5px 5px 30px 7px rgba(0,0... |
src/svg-icons/image/looks-4.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks4 = (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 14h-2v-4H9V7h2v4h2V7h2v10z"/>
</SvgIcon>
);
ImageLooks4 = pure(ImageLoo... |
src/components/common/table/Thead.js | abhijitrakas/react-redux-setup | import React from 'react';
import Row from './Row';
import { generate } from 'randomstring';
const Thead = (props) => {
return (
<thead><Row titles={props.titles} /></thead>
);
};
export default Thead; |
src/client/common/components/TextArea.js | jmicmoore/merit-badge-university | import React from 'react';
import PropTypes from 'prop-types';
import {getErrorMessageForField} from '../util/validation';
const showErrorFeedback = (message) => {
if(message){
return (
<div className="invalid-feedback">
{message}
</div>
);
} else {
... |
pages/index.js | MeganKeesee/personal-site | import React from 'react'
import { Link } from 'react-router'
import { prefixLink } from 'gatsby-helpers'
import Helmet from "react-helmet"
import { config } from 'config';
import ParallaxShapes from '../components/ParallaxShapes';
import LinkExternal from '../components/LinkExternal';
import Email from '../components/... |
lib/Button/stories/sizes.js | folio-org/stripes-components | import React from 'react';
import Button from '../Button';
export default () => (
<div style={{ maxWidth: '800px' }}>
<h3>Mega</h3>
<Button buttonStyle="default mega">Default</Button>
<Button buttonStyle="primary mega">Primary</Button>
<Button buttonStyle="danger mega">Danger</Button>
<Button but... |
src/sources/youtube/index.js | u-wave/web | import React from 'react';
import Player from './Player';
import ImportForm from './ImportForm';
import reducer from './reducer';
const ImportPanel = React.lazy(() => import('./ImportPanel'));
const logo = new URL('../../../assets/img/youtube.png', import.meta.url);
const icon = new URL('../../../assets/img/youtube-ic... |
app/js/components/SiteFooter.js | arcsecw/zhaiyao | import React from 'react';
import {
Container,
} from 'amazeui-react';
import { myConfig } from '../components/config.js';
const year = new Date().getFullYear();
const SiteFooter = function SiteFooter() {
return (
<footer className="ask-footer">
<Container>
<p>© {year}{myConfig.footer}</p>
... |
js/src/modals/FirstRun/Welcome/welcome.js | kushti/mpt | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.... |
templates/rubix/demo/src/routes/Dashboard.js | jeffthemaximum/jeffline | import React from 'react';
import {
Row,
Tab,
Col,
Nav,
Icon,
Grid,
Form,
Table,
Label,
Panel,
Button,
NavItem,
Checkbox,
Progress,
PanelBody,
FormGroup,
PanelLeft,
isBrowser,
InputGroup,
LoremIpsum,
PanelRight,
PanelHeader,
FormControl,
PanelContainer,
PanelTabContain... |
src/svg-icons/device/battery-30.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery30 = (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.33V15h10V5.33z"/><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
client/src/components/OctoPrint.js | jakkra/SmartMirror | import React from 'react';
import BaseComponent from './BaseComponent';
import { get3DPrinterState } from '../lib/fetch';
import FA from 'react-fontawesome';
const styles = {
container: {
textAlign: 'right'
},
listName: {
color: 'white',
fontSize: '2.1em',
},
listItem: {
color: 'white',
... |
src/svg-icons/hardware/mouse.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMouse = (props) => (
<SvgIcon {...props}>
<path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/>
</SvgIcon>
);
HardwareMouse =... |
lib/next/Link.js | lukemorton/republic | import React from 'react'
import NextLink from 'next/link'
import href from './href'
const Link = (props, context) => {
const { action, params, url, ...nextLinkProps } = props
return (
<NextLink
href={href(action, params)}
as={url}
{...nextLinkProps}
/>
)
}
export default Link
|
src/svg-icons/notification/mms.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/Accounts/Sections/ServiceSettingsSection/Container/ContainerServiceSettings.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import ServiceAppearanceSection from '../Common/ServiceAppearanceSection'
import ServiceBadgeSection from '../Common/ServiceBadgeSection'
import ServiceBehaviourSection from '../Common/ServiceBehaviour... |
packages/ringcentral-widgets/components/Button/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
export default function Button({
className,
disabled,
onClick,
children,
}) {
return (
<div
className={classnames(
className,
styles.root,
... |
app/javascript/mastodon/features/lists/index.js | rekif/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
client/src/components/Contact-Us/Confirmation.js | DillGromble/TNABT-org | import React from 'react'
import './confirmation.css'
const Confirmation = ({ confirmationTxt }) => (
<div className="contact-us-confirmation">
<h1>{confirmationTxt}</h1>
</div>
)
export default Confirmation
|
fixtures/dom/src/components/FixtureSet.js | edvinerikson/react | import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
title: PropTypes.node.isRequired,
description: PropTypes.node.isRequired,
};
class FixtureSet extends React.Component {
render() {
const { title, description, children } = this.props;
return (
<div>
<h1>{t... |
app/javascript/mastodon/features/standalone/public_timeline/index.js | cobodo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as Imm... |
examples/with-ioc/components/endpoint.js | BlancheXu/test | import React from 'react'
import { inject } from 'ioc'
import PropTypes from 'prop-types'
@inject({
// keep it `isRequired`-free to allow mock injection via props
Link: PropTypes.func,
})
export default class extends React.Component {
static propTypes = {
// you can add `isRequired` to the component's propTy... |
src/popup/App/App.js | mdboop/kaeru |
import React, { Component } from 'react';
import { tryCatch } from '../../utils/functional-helpers';
import Main from '../components/Main';
import './reset.scss';
import './App.scss';
export default class App extends Component {
constructor() {
super();
this.state = {
cards: [],
};
this.... |
src/containers/DevTools/DevTools.js | kahn1990/redux-project-example | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="H"
changePositionKey="Q">
<LogMonitor />
</Dock... |
react/features/polls/components/web/PollAnswer.js | gpolitis/jitsi-meet | // @flow
import { Checkbox } from '@atlaskit/checkbox';
import React from 'react';
import { isSubmitAnswerDisabled } from '../../functions';
import AbstractPollAnswer from '../AbstractPollAnswer';
import type { AbstractProps } from '../AbstractPollAnswer';
const PollAnswer = (props: AbstractProps) => {
const {
... |
src/client/components/FavoriteButton.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { injectIntl } from 'react-intl';
import BTooltip from './BTooltip';
import './FavoriteButton.less';
const FavoriteButton = ({ intl, isFavorited, onClick }) => (
<BTooltip
title={intl.formatMessage({
... |
docs/app/Examples/collections/Message/Types/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const MessageTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | tarunitar/vinanalytix | 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'));
|
fields/types/location/LocationColumn.js | jacargentina/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country'];
var LocationColumn = React.createClass({
displayName: 'LocationColumn',
propTypes: {
co... |
src/components/Container/index.js | IntellectionStudio/intellection.kz | import React from 'react';
import styles from './index.css';
const Container = ({children}) => (
<div className={styles.container}>{children}</div>
);
export default Container;
|
src/routes.js | caseyg1204/home |
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage';
import Signup from './components/TipsSignup';
import Roadmap from './components/Roadmap';
const goToBlog = (event) => {
window.location = `http://blog.par... |
src/components/BoardHeader/BoardActions/BoardActionDelete/index.js | patrickdoane/kantab | import React, { Component } from 'react';
import { Grid, Icon } from 'semantic-ui-react';
import './styles.css';
class BoardActionDelete extends Component {
render() {
return(
<Grid.Column className='board-header-column-trash' width={1} verticalAlign='middle'>
<Icon name='trash' />
</Grid.Col... |
src/svg-icons/av/fiber-smart-record.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberSmartRecord = (props) => (
<SvgIcon {...props}>
<g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g>
</S... |
assets/jqwidgets/jqwidgets-react/react_jqxlinkbutton.js | juannelisalde/holter | /*
jQWidgets v4.5.4 (2017-June)
Copyright (c) 2011-2017 jQWidgets.
License: http://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export default class JqxLinkButton extends React.Component {
componentDidMount() {
let options = this.manageAttributes();
this.cre... |
node_modules/react-bootstrap/es/Jumbotron.js | hsavit1/gosofi_webpage | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/communication/present-to-all.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
src/components/editor/LayoutButton.js | calesce/tab-editor | import React from 'react';
import { connect } from 'react-redux';
import { StyleSheet, css } from 'aphrodite';
import { changeLayout } from '../../actions/tracks';
const styles = StyleSheet.create({
hover: {
':hover': {
MozUserSelect: 'none',
WebkitUserSelect: 'none',
msUserSelect: 'none',
... |
src/challenges/react/React_05.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// -------------- define challenge title and chall... |
src/Parser/DeathKnight/Blood/CONFIG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Yajinni } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import Wrapper from 'common/Wrapper';
import Warning from 'common/Alert/Warning';
import CombatLogParser from './CombatLogParser';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contr... |
src/components/Header/Header.js | AndrewKishino/react-playground | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.scss';
import Link from '../Link';
import Navigation from '../Navigation';
class Header extends Component {
render() {
return (
<div className={s.root}>
<div className... |
react-flux-mui/js/material-ui/src/svg-icons/communication/location-on.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOn = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12... |
imports/ui/responses/components/ResponseStatus.js | ctagroup/home-app | import React from 'react';
import { ResponseStatus } from '/imports/api/responses/responses';
import { formatDateTime } from '/imports/both/helpers';
import { useStateReducerActions } from '/imports/ui/components/generic/StateProvider';
const EnrollmentInfo = ({ response }) => {
const isEnrollment = response.survey... |
src/components/FieldList.js | puneetbhakar/almabaseReact | import React from 'react'
import FieldItem from './FieldItem'
import {SortableContainer} from 'react-sortable-hoc';
const FieldList = SortableContainer((props)=>{
const fieldlist = props.sectionField.map((item,i)=>{
const fieldKey=props.sectionFieldKey[i]
return <FieldItem {...props} key={i} index={i} field... |
react/features/mobile/navigation/components/lobby/LobbyNavigationContainerRef.js | jitsi/jitsi-meet | import React from 'react';
export const lobbyNavigationContainerRef = React.createRef();
/**
* User defined navigation action included inside the reference to the container.
*
* @param {string} name - Destination name of the route that has been defined somewhere.
* @param {Object} params - Params to pass to the d... |
src/components/interactive/Lightbox.js | mrozilla/mrozilla.cz | // ─────────────────────────────────────────────────────────────────────────────
// import
// ─────────────────────────────────────────────────────────────────────────────
import React from 'react';
import ReactDOM from 'react-dom';
import FocusLock from 'react-focus-lock';
import { bool, arrayOf, string, func } from ... |
src/svg-icons/av/fiber-smart-record.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberSmartRecord = (props) => (
<SvgIcon {...props}>
<g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g>
</S... |
react-flux-mui/js/material-ui/src/svg-icons/editor/text-fields.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorTextFields = (props) => (
<SvgIcon {...props}>
<path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"/>
</SvgIcon>
);
EditorTextFields = pure(EditorTextFields);
EditorTextFields.displayName = 'Edi... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | moscow-freecodecamp/fluffy-spoon | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
react-flux-mui/js/material-ui/src/svg-icons/av/fast-forward.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFastForward = (props) => (
<SvgIcon {...props}>
<path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/>
</SvgIcon>
);
AvFastForward = pure(AvFastForward);
AvFastForward.displayName = 'AvFastForward';
AvFastForw... |
src/Icon_Flag_CN.js | codefoundries/material-ui-country-flags | 'use strict';
import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
// SVG source:
// https://github.com/lipis/flag-icon-css/tree/master/flags/4x3
export default function( props )
{
return(
<SvgIcon viewBox="0 0 640 480" {...props}>
<g transform="matrix(.48 0 0 .48 -2.6 2.39)">
<p... |
packages/material-ui-icons/src/CenterFocusWeak.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0... |
amartonline-ui/src/components/callback/callback.js | gruberchris/AmartOnline | import React, { Component } from 'react';
class Callback extends Component {
render() {
return (
<div>
<p>Loading...</p>
</div>
);
}
}
export default Callback;
|
src/components/cart/CartPage.js | budiantotan/book-store | import React from 'react';
import { connect } from 'react-redux';
import * as cartActions from '../../actions/cartActions';
class CartPage extends React.Component {
constructor(props, context) {
super(props, context);
}
componentDidMount() {
this.props.fetchCart();
}
render() {
... |
RN_Day14/index.ios.js | RainliFu/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class RN_Day14 extends Component {
render() {
return (
<View style={styles.container}>
<Text... |
src/pages/data/NBA/Transaction/Transaction.js | HeliumLau/Hoop-react | import React from 'react';
export default class Transaction extends React.Component {
render() {
return (
<h3>Transaction</h3>
)
}
} |
barebones_bbb/src/App.js | wasong/cmpt433 | import React from 'react'
import PropTypes from 'prop-types'
import Helmet from 'react-helmet'
import { ApolloProvider, ApolloClient, createNetworkInterface } from 'react-apollo'
import { Provider } from 'react-redux'
import { BrowserRouter as Router } from 'react-router-dom'
import MuiThemeProvider from 'material-ui/s... |
src/components/common/icons/LockIcon.js | mitmedialab/MediaCloud-Web-Tools | import React from 'react';
const LockIcon = () => (
<div className="app-icon app-icon-lock">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill="#aaaaaa" d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9... |
src/desktop/apps/auction/components/artwork_browser/main/artwork/GridArtwork.js | kanaabe/force | import _BidStatus from './BidStatus'
import PropTypes from 'prop-types'
import React from 'react'
import block from 'bem-cn-lite'
import titleAndYear from 'desktop/apps/auction/utils/titleAndYear'
import { connect } from 'react-redux'
import { get } from 'lodash'
// FIXME: Rewire
let BidStatus = _BidStatus
function G... |
src/mui/field/NumberField.js | matteolc/admin-on-rest | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import pure from 'recompose/pure';
const hasNumberFormat = !!(typeof Intl === 'object' && Intl && typeof Intl.NumberFormat === 'function');
/**
* Display a numeric value as a locale string.
*
* Uses Intl.NumberFormat() if ... |
extensions/cms/containers/CmsViewEditorContainer.js | axax/lunuc | import React from 'react'
import {
getSlugVersion,
getGqlVariables,
settingKeyPrefix,
CMS_PAGE_QUERY
} from '../util/cmsView'
import PropTypes from 'prop-types'
import compose from 'util/compose'
import Expandable from 'client/components/Expandable'
import ErrorHandler from 'client/components/layout/Err... |
src/scene/GroupPurchase/GroupPurchaseCell.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native';
import { Heading1, Heading2, Parag... |
node_modules/semantic-ui-react/src/collections/Message/MessageList.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import MessageItem from './MessageItem'
/**
* A message can contain a list of items.
... |
docs/app/Examples/views/Item/Content/ItemExampleLink.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Image as ImageComponent, Item } from 'semantic-ui-react'
const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
const ItemExampleLink = () => (
<Item.Group>
<Item>
<Item.Image size='tiny' src='http://semantic-ui.com/images/... |
src/index.js | mcrice123/simple-react-example | import React, { Component } from 'react';
import ReactDom from 'react-dom';
import App from './components/App';
ReactDom.render(<App />, document.getElementById('root'));
|
lib/Components/SubmitInput.js | kfarias/weathrly-2 | import React, { Component } from 'react';
class SubmitInput extends Component {
render() {
return (
<div>
<input type='submit'
className='submit-btn'
disabled={this.props.disableInput}
onClick={(e) => this.props.handleClick(e)}/>
</div>
);
}
}
export defa... |
flow-typed/npm/react-addons-test-utils_v15.x.x.js | captainsafia/nteract | // flow-typed signature: edc151d4ee06b1d20021425952030a4b
// flow-typed version: cdb403dbea/react-addons-test-utils_v15.x.x/flow_>=v0.15.x
import React from 'react';
declare module 'react-addons-test-utils' {
declare var Simulate: {
[eventName: string]: (element: Element, eventData?: Object) => void;
};
dec... |
src/components/app.js | icartusacrimea/portfolio_reactredux | import React, { Component } from 'react';
import Navbar from './navbar';
import Heading from './heading';
import Portfolio from '../containers/portfolio';
import About from './about';
class App extends Component {
constructor(props) {
super(props);
this.state = {clicked: false, projects: false, about: false}
... |
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/InductanceParams.js | SnowBeaver/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMNode} from 'react-dom';
import {hashHistory} from 'react-router';
import {Link} from 'react-router';
im... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/SplitButton.js | jmanday/Master | 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/app/components/task/TaskLog.js | meedan/check-web | import React, { Component } from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import styled from 'styled-components';
import ChatBubble from '@material-ui/icons/ChatBubble';
import Tooltip from '@material-ui/core/Tooltip';... |
assets/ReactBasics/FriendIfElseTernary.js | reactinflipflops/slides | import React from 'react';
const Friend = (props) => {
return (
<div>
<div>{props.name}</div>
<span>{props.lastActiveInSec < 60 ? 'Online' : 'Offline'}</span>
</div>
);
};
export default Friend;
|
src/svg-icons/notification/sync-disabled.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncDisabled = (props) => (
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20... |
react-flux-mui/js/material-ui/src/svg-icons/image/filter-5.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter5 = (props) => (
<SvgIcon {...props}>
<path d="M21 1H7c-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 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-... |
source/test/client/index.js | keystonejs/react-easy-universal | import browserColor from 'tap-browser-color';
browserColor();
import test from 'tape';
import React from 'react';
import universal from '../../client';
import routes from '../fixtures/routes';
import reducers from '../fixtures/reducers';
const app = universal({ React, routes, reducers });
const store = app();
test... |
view/zero-cola/src/pages/PostListPage.js | xuzhenyang/ZeroCola | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { request, time2DateStr } from '../common';
import './PostListPage.css';
function Post(post) {
return (
<div>
<div style={{ "display": "inline-block", width: "100%" }}>
<span style={{ "floa... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/badge/ScrollNumber.js | bhathiya/test | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.