path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/index.js | BDiuguid/fantasy-fifa | import React from 'react';
import { render } from 'react-dom';
import { ApolloProvider } from 'react-apollo';
import { MuiThemeProvider } from '@material-ui/core/styles';
import CssBaseline from '@material-ui/core/CssBaseline';
import { ThemeProvider, createGlobalStyle } from 'styled-components';
import getClient from ... |
src/components/Common/WhitelistItem.js | 15chrjef/ico-wizard | import React from 'react'
import '../../assets/stylesheets/application.css';
import { defaultState } from '../../utils/constants'
import { getOldState } from '../../utils/utils'
export class WhitelistItem extends React.Component {
constructor(props) {
super(props);
let oldState = getOldState(props, de... |
Skins/VetoccitanT3/ReactSrc/node_modules/mini-create-react-context/dist/esm/index.js | MAN-IN-WAN/Kob-Eye | import React, { Component } from 'react';
import _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';
import PropTypes from 'prop-types';
import warning from 'tiny-warning';
var MAX_SIGNED_31_BIT_INT = 1073741823;
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undef... |
docs/src/app/components/pages/components/DatePicker/ExampleControlled.js | pradel/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
export default class DatePickerExampleControlled extends React.Component {
constructor(props) {
super(props);
this.state = {
controlledDate: null,
};
}
handleChange = (event, date) => {
this.setState({
cont... |
src/js/components/icons/base/FormCalendar.js | odedre/grommet-final | /**
* @description FormCalendar SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
... |
packages/material-ui-icons/src/VolumeUp.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let VolumeUp = props =>
<SvgIcon {...props}>
<path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91... |
packages/react-server-examples/bike-share/components/station-card.js | doug-wade/react-server | import React from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
const timeSinceTimestamp = s => {
const parsed = Date.parse(s);
const timeSince = (new Date()) - parsed;
const minutesSince = Math.floor(timeSince / 60000);
const secondsSince = Math.floor((timeSince / 10... |
client/components/CategoriesBar/CategoriesBar.js | SwanCourses/example-app | /**
* Created by alex on 03.10.16.
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styles from './CategoriesBar.css';
function CategoriesBar(props) {
return (
<div>
<h3 className={styles.header}><FormattedMessage id="categoriesBarHeader"/></h3>
<ul className={st... |
src/js/components/Project/Project.js | jamieallen59/jamieallen59.github.io | import React from 'react'
import PropTypes from 'prop-types'
import CSSModules from 'react-css-modules'
import Gallery from '../Gallery'
import styles from './Project.less'
const Project = ({ index, selected, projectData }) => {
const { url, title, description, imageNames } = projectData
const showWorkClassName = in... |
src/pages/blend.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Blend' />
)
|
src/svg-icons/maps/person-pin.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPin = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2... |
client/components/connectionStatus/ConnectionStatusAlert.stories.js | iiet/iiet-chat | import { action } from '@storybook/addon-actions';
import React from 'react';
import { ConnectionStatusContext } from '../../contexts/ConnectionStatusContext';
import ConnectionStatusAlert from './ConnectionStatusAlert';
const stateDecorator = ({
status = 'connected',
} = {}) =>
(storyFn) =>
<ConnectionStatusCont... |
fields/types/url/UrlField.js | Freakland/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'URLField',
openValue () {
var href = this.props.value;
if (!href) return;
if (!/^(mailto\:)|(\w+\:\/\/)/.test(href)) {
href = 'http://' + href;
}
window... |
index.ios.js | jhubble/react-native-android-MyTodo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class MyTodo extends Component {
render() {
return (
<View style={styles.container}>
... |
src/components/Score.js | scottluptowski/newyorktimesorjennyholzer | import React from 'react';
export default class Score extends React.Component {
render() {
let scoreVerb = this.props.gameOver ? "was" : "is"
let score = `Your score ${scoreVerb} ${this.props.points} out of 10`
return (
<div>
<div className="rect">{score}</div>
</div>
)
}
}
|
src/Spin/ThreeBounce.js | lenxeon/react-ui | import React from 'react'
import classnames from 'classnames'
import propTypes from './proptypes'
import _styles from '../styles/spin/_three-bounce.scss'
export default function ThreeBounce (props) {
const { size, color, margin } = props
const className = classnames(
props.className,
_styles['three-bounc... |
packages/example-phone/src/scripts/components/call/media-status.js | udaysrinath/spark-js-sdk | import React from 'react';
export default function MediaStatus({audioDirection, videoDirection}) {
return (
<table>
<tbody>
<tr>
<td>audio:</td>
<td className="audio-direction">{audioDirection}</td>
</tr>
<tr>
<td>video:</td>
<td className="vi... |
app/containers/App/index.js | shiftunion/bot-a-tron | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';... |
src/components/Main.js | VovanR/react-color-palette | require('normalize.css');
require('styles/App.css');
import React from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
import HeaderComponent from './HeaderComponent';
import PalettePanelComponent from './PalettePanelComponent';
import AddColorPanelComponent from './AddColorPanelComponent';
import EditColor... |
example/src/components/0-Logo/Logo.js | knpwrs/css-modules-electron | import styles from './Logo.css';
import React, { Component } from 'react';
export default class Logo extends Component {
render() {
return <div className={styles.logo} />;
}
};
|
tests/lib/rules/indent.js | bryanrsmith/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @copyright 2014 Dmitriy Shekhovtsov. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//-------------------------------------... |
example/src/components/2-GlobalSelectors/GlobalSelectors.js | KenPowers/css-modules-electron | import styles from './GlobalSelectors.css';
import React, { Component } from 'react';
export default class GlobalSelectors extends Component {
render() {
return (
<div className={ styles.root }>
<p className="text">Global Selectors</p>
</div>
);
}
};
|
examples/official-storybook/stories/core/interleaved-exports.stories.js | storybooks/storybook | /* eslint-disable import/first,import/no-duplicates */
import React from 'react';
import { action } from '@storybook/addon-actions';
export default {
title: 'Core/Interleaved exports',
parameters: { chromatic: { disable: true } },
};
import { Welcome } from '@storybook/react/demo';
export const First = () => <We... |
client/components/Tabs/Tab.js | XuHaoJun/tiamat | import React from 'react';
import PropTypes from 'prop-types';
import Tab from '@material-ui/core/Tab';
class EnhancedTab extends React.Component {
static propTypes = {
enableMouseOverTrigger: PropTypes.bool,
};
static defaultProps = {
enableMouseOverTrigger: true,
};
componentWillUnmount() {
... |
src/components/backbonejs/plain/BackbonejsPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './BackbonejsPlain.svg'
/** BackbonejsPlain */
function BackbonejsPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'BackbonejsPlain' + ' '... |
app/containers/login/Test.js | weerakkodylr/react-native-login | import React from 'react'
import { Text, TextInput, View, StyleSheet, Image, ScrollView, Animated, Easing, KeyboardAvoidingView, ActivityIndicator } from 'react-native'
import { connect } from 'react-redux'
import firebase from 'firebase'
import LogoIcon from '../../components/icons/Logo'
import Button from '../../comp... |
src/lib/helper-functions.js | gabrielzzarate/portfolio-2017 | import React from 'react';
export default function spanifyTitle(title){
const loopChar = title.split('').map((char, i) => {
return (<span key={i}>{char}</span>);
});
return loopChar;
}
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
re... |
src/views/Item/ItemHeader.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
} from '../../lib'
/**
* An item can contain a header.
*/
function ItemHeader(props) {
const { children, className, conte... |
src/parser/shaman/restoration/modules/features/MasteryEffectiveness.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { TooltipElement } from 'common/Tooltip';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Panel from 'interface/statist... |
src/ButtonToolbar.js | xiaoking/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContentConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { reprocessInteractiveImportItems, updateInteractiveImportItems } from 'Store/Actions/interactiveImportActions';
import SelectReleaseGroupModalContent from './SelectReleaseGroupModalContent';
con... |
src/components/EmailVerification/VerificationFailure.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import Warning from 'common/icons/Warning';
import Heading from 'common/base/Heading';
import P from 'common/base/P';
import Button from 'common/button/Button';
import styles from './VerificationPage.module.css';
const VerificationFailure = ({ sendVerifi... |
app/javascript/mastodon/features/ui/components/tabs_bar.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage, injectIntl } from 'react-intl';
import { debounce } from 'lodash';
import { isUserTouching } from '../../../is_mobile';
export const links = [
<NavLink className='tabs-bar... |
src/components/channel-section/channel-form/index.js | volopav/realtime-app | import './channel-form.less';
import React from 'react';
export default class ChannelFrom extends React.Component {
constructor (props) {
super(props);
this.state = {}
}
onChange (e) {
this.setState({
channelName: e.target.value
});
}
onSubmit (e) {
e.preventDefault();
const... |
frontend/navigation/Navigation.js | datoszs/czech-lawyers | import React from 'react';
import {Navbar, Nav} from 'react-bootstrap';
import RouteNavItem from './RouteNavItem';
import {Msg, RouterLink} from '../containers';
import {HOME, ABOUT, CONTACT, ADVOCATE_SEARCH, CASE_SEARCH, EXPORT} from '../routes';
const Navigation = () => (
<Navbar>
<Navbar.Header>
... |
src/components/counter.js | raulmatei/frux-table-test | import React, { Component } from 'react';
import { actions } from '../../main';
const commonStyles = {
width: 32,
height: 32,
marginLeft: 2,
color: 'white',
border: '0 none',
fontSize: 18
};
const btnStyles = {
increment: {
...commonStyles,
marginLeft: 0,
backgroundColor: 'gr... |
src/containers/billing/index.js | Storj/metadisk-gui | import React, { Component } from 'react';
import { connect } from 'react-apollo';
import { hashHistory } from 'react-router';
import client from 'utils/api-client';
import gql from 'graphql-tag';
import moment from 'moment';
import BalancePanel from 'components/billing/balance-panel';
import PaymentInfoPanel from 'comp... |
src/components/chart.js | benjaminboruff/CityWeather | import _ from 'lodash';
import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
function average(data) {
return _.round(_.sum(data)/data.length, 1);
}
export default (props) => {
return (
<div>
<Sparklines height={120} width={180} data={props.da... |
web/app/admin/change-feed.js | seanhess/serials | // @flow
import React from 'react'
import {Link} from 'react-router'
import {Change, allChanges} from '../model/change'
import {toDateString} from '../helpers'
import {Routes} from '../router'
export class ChangeFeed extends React.Component {
props: {
changes: Array<Change>;
};
static load() {
return {... |
src/ui/Header.js | k3rmitt/beer-tender | import React from 'react';
import Pint from '../pint.svg';
export default () => (
<div className="container">
<div className="container">
<h1>
<img
alt="a pint of beer as logo"
src={Pint}
style={{width: '50px', height: '50px'}}
/>
<span>BeerTender</span... |
node_modules/react-bootstrap/es/Button.js | GregSantulli/react-drum-sequencer | import _Object$values from 'babel-runtime/core-js/object/values';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-... |
examples/withCss/client/index.js | Canner/coren | import React from 'react';
import ReactDOM from 'react-dom';
import Content from "./Content";
ReactDOM.render(
<div>
<Content/>
</div>
, document.getElementById('root'));
if (module.hot) {
module.hot.accept();
}
|
app/src/App.js | mbmybook/website | 'use strict'
import React from 'react'
class App extends React.Component {
render() {
return <div>
{this.props.children}
</div>
}
}
export default App
|
src/components/TweetParser.js | gsans/handsup-react | import React from 'react'
import PropTypes from 'prop-types'
class TweetParser extends React.Component {
generateLink(url, urlClass, target, text) {
return `<a href="${url}" class="${urlClass}" target="${target}">${text}</a>`
}
render() {
const {
urlClass,
userClass,
hashtagClass,
... |
node_modules/react-bootstrap/es/SplitToggle.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import DropdownToggle fr... |
blog-post-5+6/src/www/js/components/widget-table.js | training4developers/react-flux-blog | import React from 'react';
import ViewRowComponent from './view-row';
import EditRowComponent from './edit-row';
export default props => {
return <table className="table table-inverse">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Color</th>
<th>Size</th>
<th>Quantity</th>
<th>Owne... |
saga/seata-saga-statemachine-designer/src/components/EditorMinimap/index.js | seata/seata | import React from 'react';
import { Card } from 'antd';
import { Minimap } from 'gg-editor';
const EditorMinimap = () => {
return (
<Card type="inner" size="small" title="Minimap" bordered={false}>
<Minimap height={200} />
</Card>
);
};
export default EditorMinimap;
|
6.0.0-alpha.14/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(293),e.exports=n(292)},function(e,t,n){var r=n(5),o=n(33),i=n(18),a=n(20),u=n(38),s="prototype",... |
modules/frontend/src/js/components/widgets/CreateMapOverlay.js | fleximaps/fleximaps | import React from 'react';
import Overlay from './Overlay';
import NumberInput from './inputs/NumberInput';
import CheckboxInput from './inputs/CheckboxInput';
import Button from './inputs/Button';
class CreateMapOverlay extends React.Component {
constructor(){
super();
this.state= {
... |
src/components/App.js | hamzamac/Darasa | import React, { Component } from 'react';
//import '../styles/w3.css';
import '../styles/w3-theme-grey.css';
import InstPhoto from '../images/instructor.PNG';
import Header from './Header';
import Body from './Body';
import Footer from './Footer';
var io = require('socket.io-client');
class App extends Component {
... |
lib/ui/components/Mocks/Editor.js | 500tech/bdsm | import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import merge from 'lodash/merge';
import get from 'lodash/get';
import SegmentedSelect from 'ui/components/common/SegmentedSelect';
import Select from 'ui/components/common/Select';
import Tabs from 'ui/components/Moc... |
packages/native/src/components/range/RangeSlider.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import { View, Platform } from 'react-native';
import MultiSlider from '@ptomasroos/react-native-multi-slider';
import {
addComponent,
removeComponent,
watchComponent,
updateQuery,
setQueryOptions,
setQueryListener,
} from '@appbaseio/reactivecore/lib/actions';
import {
... |
test/ui/barcode.js | tradle/tim | import '../../utils/shim'
import debounce from 'lodash/debounce'
import React from 'react'
import {
Alert,
AppRegistry,
StyleSheet,
View,
} from 'react-native'
import { RNCamera } from 'react-native-camera'
import SplashScreen from 'react-native-splash-screen'
if (SplashScreen) {
SplashScreen.hide()
}
cons... |
packages/react-server-website/pages/source.js | szhou8813/react-server | import React from 'react';
import {ReactServerAgent, RootContainer} from 'react-server';
import SourceBody from '../components/source-body';
import PageTitle from '../components/page-title';
import SourceContents from '../components/source-contents';
import DataBundleCacheManager from '../middleware/DataBundleCache';
... |
app/components/Header/index.js | gtct/wallet.eine.com | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
src/templates/bootstrap.js | gcanti/simple-date-picker | import React from 'react'
import DayPicker, { DateUtils } from 'react-day-picker'
function defaultFormat(value) {
return value ? value.toISOString().substring(0, 10) : ''
}
function create(overrides = {}) {
function bootstrap(locals) {
return bootstrap.renderContainer(locals)
}
bootstrap.getFormat = over... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | PlanX-Org/elementa-hoerlogbuch | 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'));
|
dev/scripts/routes.js | DenGZR/pokemonApp-with-reflux | import React from 'react';
import { Router, Route, IndexRoute, useRouterHistory } from 'react-router';
import { createHashHistory } from 'history';
import App from './pages/app.jsx';
import Home from './pages/home.jsx';
import Details from './pages/details.jsx';
import NotFound from './pages/notFound.jsx';
// useRout... |
app/hybrid/app.js | Princess310/antd-demo |
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
// Import root app
import App from 'hybrid/containers/App';
import 'sanitize.css/sanitize.css';
// Import fast click
import FastClick from 'assets/lib/fastclick';
// Load the favic... |
app/components/routes/Home/index.js | robcalcroft/cybelle | import React from 'react';
import Container from 'common/Container';
export default class Home extends React.Component {
constructor() {
super();
this.state = {
countdown: ''
};
}
componentDidMount() {
$('.home-enter').countdown('2016/10/02', (e) => {
... |
src/chat/attachments/AttachAudio.js | elarasu/roverz-chat | import React from 'react';
import {
Text,
View,
StyleSheet,
// Switch,
// Slider,
TouchableOpacity,
// Dimensions,
Platform,
} from 'react-native';
// import Button from 'react-native-button';
import { isIphoneX } from 'react-native-iphone-x-helper';
import {
Player,
Recorder,
// MediaStates,
} fr... |
app/modules/components/tutorial/slides/slide1.js | alexmdodge/gridgrind | import React from 'react';
const Slide1 = () => (
<div>
<h1 className="tutorial__title">
Your Goal
</h1>
<p className="tutorial__body">
So I hear you like puzzles? How about one that never ends? In
Grid Grind you goal is to match color tiles with other colour
tiles. Pretty simple ... |
src/svg-icons/device/battery-20.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery20 = (props) => (
<SvgIcon {...props}>
<path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7... |
code-samples/js/ParticleEmitters/SnowEmitter.js | viromedia/viro | 'use strict';
import React, { Component } from 'react';
import {StyleSheet} from 'react-native';
import {ViroParticleEmitter} from 'react-viro';
import PropTypes from 'prop-types';
var createReactClass = require('create-react-class');
/*
Basic snow emitter that "rains snow" over a given area.
*/
var SnowEmitter = c... |
src/js/components/song/item/Footer.js | barumel/ultritium-radio-player | import React from 'react';
import { Row, Col, Button } from 'react-bootstrap';
import { PlaylistModal } from '../modal/Playlist';
export class SongItemFooter extends React.Component {
constructor() {
super();
this.state = {
show: false
}
}
add(song) {
const { modal } = this.props;
mod... |
packages/example-phone/src/scripts/components/incoming-call-alert-list/incoming-call-alert-list.js | good-joe/spark-js-sdk | import React from 'react';
import IncomingCallAlert from './incoming-call-alert';
export default function IncomingCallAlertList({calls, ...rest}) {
if (!calls) {
return null;
}
return (
<div>
<IncomingCallAlert call={calls[0]} {...rest} />
</div>
);
}
IncomingCallAlertList.propTypes = {
c... |
src/Components/Presentational/MessageItem/MessageItem.js | DeadManPoe/ReactChat | import React from 'react';
import MessageItemPropTypes from './MessageItemPropTypes';
const MessageItem = (props)=>{
return (
<div>
<p>{props.text}</p>
<p>{props.author}</p>
<p>{props.time}</p>
</div>
)
}
MessageItem.propTypes = MessageItemPropTypes;
export... |
src/pages/admin/repository/index.js | sqdron/sqdron.UI | import React from 'react'
class Repositories extends React.Component {
render() {
return (
<div >
<h1>Repositories</h1>
</div>
)
}
}
//
// export default connect(({auth}) => ({auth}))(OAuthSignInButton);
//
// }
//
//
// export const Repositories = () => (
// )
//
export default Reposi... |
docs/src/app/components/pages/components/Dialog/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 dialogReadmeText from './README';
import DialogExampleSimple from './Exam... |
test/regressions/tests/Dialog/AlertDialog.js | lgollut/material-ui | import React from 'react';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogTitle from '@material-ui/core/DialogTitle';
import Paper from '@material-ui/core/Paper';
... |
src/index.js | martezconner/react_vidhub | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import Routes from './routes';
const app = document.getElementById('app');
ReactDOM.render(
<BrowserRouter>
<Routes />
</BrowserRouter>, app);
|
client/src/components/header-loginStatus/loggedIn.js | TeamDreamStream/GigRTC | import React from 'react'
import { Link } from 'react-router';
import LeftNav from 'material-ui/lib/left-nav';
import MenuItem from 'material-ui/lib/menus/menu-item';
import RaisedButton from 'material-ui/lib/raised-button';
import AppBar from 'material-ui/lib/app-bar';
import IconButton from 'material-ui/lib/icon-but... |
static/src/index.js | genesis-labs/calculus | // import React from 'react';
// import ReactDOM from 'react-dom';
// import Root from './js/root/RootContainer';
import RootApp from './frameworkExamples/RootApp';
const rootApp = new RootApp();
rootApp.start(); |
Backup/AwesomeProject/components/Counter.js | victorditadi/IQApp | import React, { Component } from 'react';
import {
AppRegistry,
Text,
Button,
View,
AlertIOS,
StyleSheet
} from 'react-native';
import STYLES from '../components/Counter.styles.js';
export default class CounterComponent extends Component{
constructor(){
super();
this.state = {
counter: 0,... |
fixtures/kitchensink/template/src/features/webpack/SvgComponent.js | d3ce1t/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { ReactComponent as Logo } from './assets/logo.svg';
export default () => {
return <Logo id="featur... |
src/components/Image.js | jeimxx/react-indesign-viewer | import React from 'react'
import styles from './image.css'
const Image = (props) => {
const mockURL = 'https://s3-eu-west-1.amazonaws.com/dssnetwork/ByCube/demo/web/magmaview/'
return(
<div className={styles.image} style={{backgroundImage: `url(${mockURL + props.source})`}}>
</div>
)
}
export default I... |
pkg/interface/chat/src/js/components/lib/ship-search.js | ngzax/urbit | import React, { Component } from 'react';
import _ from 'lodash';
import urbitOb from 'urbit-ob';
import Mousetrap from 'mousetrap';
import cn from 'classnames';
import { Sigil } from '/components/lib/icons/sigil';
import { hexToRgba, uxToHex, deSig } from '/lib/util';
function ShipSearchItem({ ship, contacts, select... |
docs/src/app/pages/components/Typeahead/ExampleTypeaheadCustomValue.js | GetAmbassador/react-ions | import React from 'react'
import Typeahead from 'react-ions/lib/components/Typeahead/Typeahead'
import Button from 'react-ions/lib/components/Button/Button'
import options from './CountryList'
import style from './style.scss'
class ExampleTypeaheadCustomValue extends React.Component {
constructor(props) {
super(... |
client/components/home.js | guyonroche/quaero | import React from 'react';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
import Container from './utils/container';
import QuestionPanel from './question-panel';
import QuestionsPanel from './questions-panel';
import AskPanel from './ask-panel';
import SearchPanel from './search-panel';
class Home exten... |
website/src/containers/RemoteControl.js | chrisl8/ArloBot | import React, { Component } from 'react';
import { Collapse, Card, CardBody, CardHeader, CardTitle } from 'reactstrap';
import nipplejs from 'nipplejs';
import './RemoteControl.css';
// This is the only component that uses the ROS Service, so I'm importing it and setting it up here
import RosService from '../utils/RosS... |
docs/app/Examples/collections/Message/Variations/MessageExampleWarning.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleWarning = () => (
<Message warning>
<Message.Header>You must register before you can do that!</Message.Header>
<p>Visit our registration page, then try again.</p>
</Message>
)
export default MessageExampleWarning
|
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import {
refreshHashtagTimeline,
expandHashtagTimeline,
} from '../../../actions/timelines';
import Column from '../../../components/colu... |
src/components/TeamSection.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import withIntl from '../lib/withIntl';
import { FormattedMessage } from 'react-intl';
import SectionTitle from './SectionTitle';
import Member from './Member';
class TeamSection extends React.Component {
static propTypes = {
collective: PropTypes.ob... |
app/components/Nav.js | megseoh/react-app | import React from 'react';
import styles from './Nav.scss';
import { Link, IndexLink } from 'react-router';
var Nav = React.createClass({
render: function() {
return (
<nav>
<h1>React Notes App</h1>
<IndexLink to="/" activeClassName="active" activeStyle={{fontWeight: 'bold'}} className={ styles.navlink }... |
src/svg-icons/action/dashboard.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDashboard = (props) => (
<SvgIcon {...props}>
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</SvgIcon>
);
ActionDashboard = pure(ActionDashboard);
ActionDashboard.displayName... |
src/components/progress.js | MCeddy/nodefilestore | import React from 'react';
export default class Progress extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="progress">
<div className="determinate" style={{ width: this.props.value + '%' }}></div>
</div... |
app/containers/ListCharacters/index.js | clairealmozinos/marvel-univers | //
// ListCharacters page
//
import React from 'react';
import { connect } from 'react-redux';
import H1 from 'components/H1';
import Item from 'components/Item';
import { getListCharacters } from './actions';
/* eslint-disable react/prefer-stateless-function */
export class ListCharacters extends React.Component {
... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-router-dom/es/BrowserRouter.js | bhathiya/test | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/svg-icons/communication/speaker-phone.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSpeakerPhone = (props) => (
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ... |
docs/app/Examples/elements/Segment/Types/SegmentExampleStacked.js | ben174/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleStacked = () => (
<Segment stacked>
Pellentesque habitant morbi tristique senectus.
</Segment>
)
export default SegmentExampleStacked
|
src/components/AccountList/AccountList.js | baruinho/cashier | import React from 'react';
const AccountList = ({ accounts, onDelete, onEdit }) => (
<table className="table table-hover table-condensed">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{
accounts && accounts.lengt... |
src/interface/statistics/ItemStatistic.js | ronaldpereira/WoWAnalyzer | /**
* Use this for Items so they're put in the right category.
*/
import React from 'react';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Statistic from './Statistic';
const ItemStatistic = props => <Statistic {...props... |
site/src/components/DemoBox.js | pairyo/elemental | import React from 'react';
import classnames from 'classnames';
import E from '../../../src/constants';
const ALIGN_TRANSFORM = {
'center': 'center',
'left': 'flex-start',
'right': 'flex-end',
};
var DemoBox = React.createClass({
propTypes: {
align: React.PropTypes.oneOf(['center', 'left', 'right']),
children... |
src/components/topic/snapshots/SnapshotBuilder.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl } from 'react-intl';
import TopicPageTitle from '../TopicPageTitle';
const localMessages = {
title: { id: 'snapshot.builder.title', defaultMessage: 'Snapshot Builder' },
};
const SnapshotBuilder = props => (
<div className="snapsho... |
fixtures/dom/src/components/fixtures/input-change-events/InputPlaceholderFixture.js | edvinerikson/react | import React from 'react';
import Fixture from '../../Fixture';
class InputPlaceholderFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
placeholder: 'A placeholder',
changeCount: 0,
};
}
handleChange = () => {
this.setState(({ c... |
src/components/common/Saturation.js | JunisphereSystemsAG/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import throttle from 'lodash.throttle'
import shallowCompare from 'react-addons-shallow-compare'
export class Saturation extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])... |
src/components/topic/summary/export/DownloadMapFiles.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, FormattedHTMLMessage, injectIntl } from 'react-intl';
import withSummary from '../../../common/hocs/SummarizedVizualization';
const localMessages = {
title: { id: 'topic.summary.mapDownload.title', defaultMessage: 'Download Med... |
server/app.js | udacityalumni/udacity-alumni-fe | /* eslint-disable */
const isDeveloping = process.env.NODE_ENV !== 'production';
const port = isDeveloping ? 1338 : process.env.PORT;
const path = require('path');
const express = require('express');
const app = express();
import morgan from 'morgan';
import React from 'react';
import { renderToString, renderToStaticM... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/InputsErrorsDialog.js | mccun934/katello | import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { MessageDialog } from 'patternfly-react';
const InputsErrorsDialog = ({
show, showErrorDialog,
}) => (
<MessageDialog
show={show}
title={__('Editing Entitlements')}
seconda... |
public/assets/js/component/Detile.js | cqupt-yifanwu/blog | import React from 'react';
import $ from 'jquery';
import CommentBox from './CommentBox.js';
class Detile extends React.Component {
loadArticleFromServer () {
$.ajax({
url: '/blog/'+this.props.params.id,
type: 'GET',
dataType: 'json',
success: (data) => {
data = data[0]
document.getElementsByCla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.