path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
node_modules/native-base/Components/Widgets/Container.js | crod93/googlePlacesEx-react-native | /* @flow */
'use strict';
import React from 'react';
import {View, Image} from 'react-native';
import ViewNB from './View';
import Header from './Header';
import Content from './Content';
import Footer from './Footer';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import _ from 'lodash';
import comput... |
js/components/addLesson/AlbumsScreen.android.js | leehyoumin/asuraCham | import React from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
PixelRatio,
TouchableOpacity,
Image,
Platform
} from 'react-native';
import ImagePicker from 'react-native-image-picker';
export default class App extends React.Component {
onChange = (value) =>{
this.props.onChange(... |
src/server.js | tpphu/react-pwa | import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import favicon from 'serve-favicon';
import compression from 'compression';
import cookieParser from 'cookie-parser';
import httpProxy from 'http-proxy';
import path from 'path';
import PrettyError from 'pretty-error';
im... |
src/svg-icons/action/highlight-off.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHighlightOff = (props) => (
<SvgIcon {...props}>
<path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1... |
app/components/NewsletterList/index.js | rjgreaves/finances | /**
*
* NewsletterList
*
*/
import React from 'react';
import styles from './styles.css';
function NewsletterList() {
return (
<div className={styles.newsletterList}>
</div>
);
}
export default NewsletterList;
|
app/components/icons/React/index.js | yasserhennawi/yasserhennawi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'utils/styled-components';
const StyledSVG = styled.svg`
fill: #fff;
stroke-width: 14;
`;
export default function ReactIcon({ onClick }) {
return (
<StyledSVG
onClick={onClick}
width="100%"
viewBox="0 0 500 50... |
Libraries/Components/WebView/WebView.ios.js | formatlos/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
squealy/squealy-web/src/Utils.js | dakshgautam/squealy | import React, { Component } from 'react';
import {
GOOGLE_CHART_TYPE_OPTIONS
} from './Constant'
/*!*************************************************************************
[Utils.js]
*****************************************************************************/
/* global define */
/**
* Defines all the types nec... |
__storybook__/stories/test-form.js | jcurtis/rcforms | import React from 'react'
import {storiesOf, action} from '@kadira/storybook'
import TestForm from '../test-form'
storiesOf('TestForm', module)
.add('empty', () => (
<TestForm onSubmit={action('onSubmit')} />
))
|
web/src/modules/icons/Cinema.js | HobartMakers/DigitalWalkingTours | import React from 'react'
const CinemaIcon = props => <svg
width="15px" height="15px"
viewBox="0 0 15 15"
style={{enableBackground: 'new 0 0 15 15',}}
{...props}
>
<path d="M14,7.5v2c0,0.2761-0.2239,0.5-0.5,0.5S13,9.7761,13,9.5c0,0,0.06-0.5-1-0.5h-1v2.5c0,0.2761-0.2239,0.5-0.5,0.5h-8
C2.2239,12,2,11.7761,... |
Paths/React/05.Building Scalable React Apps/7-react-boilerplate-building-scalable-apps-m7-exercise-files/After/app/containers/LoginContainer/index.js | phiratio/Pluralsight-materials | /*
*
* LoginContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectLoginContainer from './selectors';
import Login from '../../components/Login';
import { login, cancelLogin } from './actions';
export class LoginContainer extends React.Component { // eslint-disable-line reac... |
nailgun/static/views/layout.js | eayunstack/fuel-web | /*
* Copyright 2014 Mirantis, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License. You may obtain
* a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
src/parser/priest/discipline/modules/azeritetraits/EnduringLuminescence.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { calculateTraitHealing } from 'parser/shared/modules/helpers/CalculateTraitHealing';
import { calculateAzeriteEffects } from 'common/stats';
import { formatPercentage } from 'common/format';
import AzeritePowerStatistic from 'interface/statistics/A... |
codes/chapter05/react-router-v4/basic/demo02/app/components/Topics.js | atlantis1024/react-step-by-step | import React from 'react';
class Topics extends React.PureComponent {
render() {
return <h2>主题</h2>
}
}
export default Topics;
|
src/containers/LandingPage/LandingPage.js | Alastor4918/Heckmeck | import React, { Component } from 'react';
import { Link } from 'react-router';
import config from '../../config';
import Helmet from 'react-helmet';
export default class LandingPage extends Component {
render() {
const styles = require('./Landing.scss');
// require the logo image both from client and server
... |
docs/src/sections/CarouselSection.js | pombredanne/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function CarouselSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
web/src/js/components/General/Footer.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import Divider from '@material-ui/core/Divider'
import Logo from 'js/components/Logo/Logo'
import {
adblockerWhitelistingURL,
externalContactUsURL,
financialsURL,
jobsURL,
privacyPolicyURL,
ho... |
src/components/SchedulePage/CalendarPanel/CalendarPanel.js | deltaidea/planning-app | import React, { Component } from 'react';
import classNames from 'classnames';
import { parseDate, formatMoment, getTodayDate } from '../../../redux/calendar';
import { ContentPanel } from '../../ContentPanel';
import './CalendarPanel.css';
import iconArrowLeft from './icon-arrow-left.png'
import iconArrowRight from '... |
src/components/Todo.js | taion/relay-todomvc | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createFragmentContainer, graphql } from 'react-relay';
import ChangeTodoStatusMutation from '../mutations/ChangeTodoStatusMutation';
import RemoveTodoMutation from '../mutations/RemoveTodoMutation';
import Rena... |
src/components/ShareMenu/InviteControl.js | Charlie9830/pounder | import React, { Component } from 'react';
import { TextField, Button } from '@material-ui/core';
class InviteControl extends Component {
constructor(props) {
super(props);
// State.
this.state = {
isValid: false,
}
// Refs.
this.emailInputRef = ... |
src/js/components/modals/confirm.js | kukua/farmer-weather-analytics | import React from 'react'
import Modal from 'react-modal'
Modal.defaultStyles = {
overlay: {
position : 'fixed',
top : 0,
left : 0,
right : 0,
bottom : 0,
backgroundColor : 'rgba(0, 0, 0, 0.75)'
},
content: {
position : 'absolute',
top ... |
src/interface/icons/WoWAnalyzer.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
const Icon = ({ mainColor, arrowColor, ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path
d="M11.4842 102.243L1.02185 84.2455L49.9996 -7.62939e-06L98.9777 84.2461L88.5199 102.236L87... |
docs/app/Examples/views/Item/Content/ItemExampleImages.js | clemensw/stardust | import React from 'react'
import { Item } from 'semantic-ui-react'
const ItemExampleImages = () => (
<Item.Group divided>
<Item>
<Item.Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Item>
<Item>
<Item.Image src='http://semantic-ui.com/images/wireframe/image.png' />
</... |
src/ModalDialog.js | westonplatter/react-bootstrap | /* eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is ... |
src/elements/List/ListList.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
/**
* A list can contain a sub list.
*/
function ListList(props) {
const { children, className } = props
const res... |
src/__tests__/fileMocks/componentNamespace/Header/Hello.js | react-cosmos/fs-playground | // @flow
import React from 'react';
const Hello = () => <span />;
export default Hello;
|
src/svg-icons/image/brightness-5.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness5 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.6... |
src/server/middleware/main.js | nhardy/web-scaffold | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { last } from 'lodash-es';
import { createMemoryHistory, match } from 'react-router';
import { ReduxAsyncConnect, loadOnServer } from 'redux-connect';
import { Provider } from 'react-redux';
import assetManifest from 'server/lib/assetMani... |
docs/src/pages/customization/DarkTheme.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import createPalette from 'material-ui/styles/palette';
import WithTheme from './WithTheme';
const theme = createMuiTheme({
palette: createPalette({
type: 'dark', // Switching the dark mode on is a si... |
node_modules/rc-tabs/es/ScrollableTabBarMixin.js | ZSMingNB/react-news | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import classnames from 'classnames';
import { setTransform, isTransformSupported } from './utils';
import React from 'react';
export default {
getDefaultProps: function getDefaultProps() {
return {
scrollAnimated: true,
onPrevClick: ... |
app/App.js | o10if/guido-frontend | import React from 'react';
import AppNavigator from './AppNavigator';
export default React.createClass({
render() {
return <AppNavigator />
},
});
|
modules/dreamview/frontend/src/components/ModuleController/index.js | ycool/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import CheckboxItem from 'components/common/CheckboxItem';
import StatusDisplay from 'components/ModuleController/StatusDisplay';
@inject('store') @observer
export default class ModuleController extends React.Component {
render() {
const ... |
docs/app/Examples/views/Feed/Types/Props.js | jamiehill/stardust | import React from 'react'
import { Feed } from 'stardust'
const events = [
{
date: '1 Hour Ago',
image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg',
meta: '4 Likes',
summary: 'Elliot Fu added you as a friend',
},
{
date: '4 days ago',
image: 'http://semantic-ui.com/images/avat... |
admin/client/components/PopoutList.js | stunjiturner/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
var PopoutList = React.createClass({
displayName: 'PopoutList',
propTypes: {
children: React.PropTypes.node.isRequired,
},
render () {
let className = classnames('PopoutList', this.props.className);
let props =... |
src/components/CollectiveCardWithRedeem.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { pickLogo } from '../lib/collective.lib';
import { get } from 'lodash';
import { Link } from '../server/pages';
import { firstSentence, imagePreview } from '../lib/utils';
import { defaultBackgroundImag... |
src/parser/shared/modules/spells/bfa/azeritetraits/TreacherousCovenant.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage } from 'common/format';
import { calculateAzeriteEffects } from 'common/stats';
import SpellLink from 'common/SpellLink';
import UptimeIcon from 'interface/icons/Uptime';
import PrimaryStatIcon from 'interface/icons/... |
src-client/scripts/app.js | PaulRSwift/iLuggit | import Backbone from 'backbone'
import React from 'react'
import ReactDOM from 'react-dom'
import $ from 'jquery'
import PackAuthView from './pack-auth-view.js'
import LuggAuthView from './lugg-auth-view.js'
import HomeView from './home-page.js'
import AppController from './lugg-view-controller.js'
import CargoDispla... |
client/src/Game/Prototype01/FPScounter.js | hold-the-door-game/Prototypes | import React from 'react';
import bind from 'react-autobind';
class FPSCounter extends React.Component {
constructor(props) {
super(props);
this.fpsCounter = new window.PIXI.Text(props.fps);
this.fpsCounter.anchor.set(0);
this.fpsCounter.style = { fill: props.color };
bind(this);
}
component... |
src/components/googleMaps.js | joakimremler/horse-project | import React, { Component } from 'react';
class GoogleMap extends Component {
componentDidMount() {
var map;
map = new google.maps.Map(this.refs.map, {
zoom: 12,
center: new google.maps.LatLng(57.7087, 11.9751),
mapTypeId: 'roadmap'
});
var iconBase = 'https://maps.google.com... |
src/isomorphic/components/Topics/index.js | hzhu/react-universal | import React from 'react'
import Topic from '../Topic'
import { Route,
Link } from 'react-router-dom'
const Topics = ({ match }) => (
<div>
<h2>Topics</h2>
<ul>
<li>
<Link to={`${match.url}/rendering`}>
Rendering with React
</Link>
</li>
<li>
<Lin... |
src/layouts/CoreLayout/CoreLayout.js | okmttdhr/aupa | import React from 'react'
import Header from '../../components/Header'
import classes from './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className={classes.mainContainer}>
{children}
</div>
... |
step8-unittest/node_modules/react-router/es6/Redirect.js | jintoppy/react-training | 'use strict';
import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './PropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropT... |
react/features/device-selection/components/AudioOutputPreview.js | KalinduDN/kalindudn.github.io | import React, { Component } from 'react';
import { translate } from '../../base/i18n';
const TEST_SOUND_PATH = 'sounds/ring.wav';
/**
* React component for playing a test sound through a specified audio device.
*
* @extends Component
*/
class AudioOutputPreview extends Component {
/**
* AudioOutputPrevi... |
src/components/spinner/stories.js | LiskHQ/lisk-nano | import React from 'react';
import { storiesOf } from '@storybook/react';
import Spinner from './';
storiesOf('Spinner', module)
.add('default', () => (
<Spinner/>
));
|
thesishub-ui/src/views/NoMatch.js | StudentHubCZ/thesishub | import React from 'react';
const NoMatch = ({ location }) => (
<div>
<h2>Page not Found</h2>
</div>
)
export default NoMatch
|
web/src/index.js | nokia/LearningStore | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/page/CarouselPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import {CN, TitleBlock} from '../util/tools';
import {Carousel} from '../component';
import CodeView from './CodeView';
const src = ['ambition-morty', 'awkward-morty', 'despise', 'pride-morty', 'surprise-morty'];
const prefix = 'https://raw.githubusercontent.com/jerryshew/desi... |
admin/client/App/screens/Item/components/EditFormHeader.js | w01fgang/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { connect } from 'react-redux';
import Toolbar from './Toolbar';
import ToolbarSection from './Toolbar/ToolbarSection';
import EditFormHeaderSearch from './EditFormHeaderSearch';
import { Link } from 'react-router';
import Drilldown from './Dr... |
client/components/Header/index.js | dimitri-a/wp2_budget | import React from 'react';
export default ()=> {
return (
<header>
<h1>Budget</h1>
</header>
);
};
|
src/components/Page/index.js | unibras/unibras-website | import React, { Component } from 'react';
import './styles.css';
import ImageSlider from '../../components/ImageSlider';
import PageBody from '../../components/PageBody';
import PageGallery from '../../components/PageGallery';
import Contact from '../../components/Contact';
import classnames from 'classnames';
import P... |
src/main/app/scripts/core/App.js | ondrejhudek/hudy-app | import React from 'react'
import ReactDOM from 'react-dom'
import { browserHistory } from 'react-router'
import routes from '../routes'
import Root from '../containers/Root'
import store from '../store/configureStore'
ReactDOM.render(
<Root history={browserHistory} routes={routes} store={store}/>,
document.ge... |
app/components/Home.js | meryt/wordcount-react | import React from 'react';
import { connect } from 'react-redux'
import Messages from './Messages';
import DatePicker from 'react-bootstrap-date-picker';
import { FormGroup, ControlLabel, HelpBlock } from 'react-bootstrap'; // for DatePicker
import { SplitButton, MenuItem } from 'react-bootstrap';
class HelloMessage e... |
src/shared/components/header/NavBar.js | Grace951/ReactAU | import { NavLink , Link} from 'react-router-dom';
import React from 'react';
import { navData } from '../../Data/RouteData';
// const parentActive = (match, location) => {
// console.log(match, location);
// if (!match) {
// return false
// }
// return true;
// }
const AtomNavLink = (props) => (<li> <Nav... |
src/components/books/preview/BookPreviewBody.js | great-design-and-systems/cataloguing-app | import { FormGroup, Img, Loading, StarRating } from '../../common/';
import {
LABEL_AUTHOR,
LABEL_ISBN_10,
LABEL_ISBN_13,
LABEL_NA,
LABEL_NUMBER_OF_PAGES,
LABEL_PUBLISHED_DATE,
LABEL_PUBLISHER,
LABEL_SUB_TITLE,
LABEL_SUMMARY,
LABEL_TITLE
} from '../../../labels/';
import { Book ... |
src/svg-icons/image/crop-16-9.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop169 = (props) => (
<SvgIcon {...props}>
<path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/>
</SvgIcon>
);
ImageCrop169 = pure(ImageCrop169);
ImageCr... |
Js/Ui/Components/Icon/index.js | Webiny/Webiny | import React from 'react';
import _ from 'lodash';
import Webiny from 'webiny';
import styles from './styles.css';
class Icon extends Webiny.Ui.Component {
}
Icon.defaultProps = {
icon: null,
className: null,
element: 'span', // span || i
type: 'default',
size: 'default',
renderer() {
... |
src/svg-icons/editor/format-textdirection-r-to-l.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionRToL = (props) => (
<SvgIcon {...props}>
<path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/>
</SvgIcon>
);
EditorFormatTextdirectionRTo... |
app/src/components/index.js | open-austin/budgetparty | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { IntlProvider, addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import es from 'react-intl/locale-data/es';
import { Route, Router, Redirect, Switch } from 'react-router-dom';
import ReactGA from 'rea... |
src/routes/Error/error.js | Mesamo/dva-admin | import React from 'react'
import { Icon } from 'antd'
import styles from './error.less'
class Error extends React.Component {
render() {
return (
<div className="content-inner">
<div className={styles.error}>
<Icon type="frown-o" style={{ fontSize: 40 }} />
<h1>404 Not Found</h1... |
components/animals/varanKomodsky.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/varanKomodsky/01.j... |
src/front-end/js/components/helpers/Waiter.js | aleksey-gonchar/iamamaze.me | import React from 'react'
import { Icon } from './FontAwesome.js'
export default class Waiter extends React.Component {
render () {
return (
<div data-class='Waiter'>
<div className='waiter-content'>
<Icon name='circle-o-notch' spin />
</div>
</div>
)
}
}
|
frontend/src/Components/Table/VirtualTable.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Grid, WindowScroller } from 'react-virtualized';
import Measure from 'Components/Measure';
import Scroller from 'Components/Scroller/Scroller';
import { scrollDirections } from 'Helpers/Props';
import hasDifferentItemsOrOrder from 'U... |
src/Shared/utils.js | NativeForms/framework-src | import React from 'react';
import { injectIntl as inject } from 'react-intl';
import syntaxHighlighter from 'react-native-syntax-highlighter';
import { github } from 'react-syntax-highlighter/dist/styles';
import { Iterable } from 'immutable';
export const SchemaViewer = (props) => syntaxHighlighter(
Object.assign({... |
packages/bonde-admin/src/components/data-grid/hocs/row-hoc.js | ourcities/rebu-client | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
export default (WrappedComponent) => {
class PP extends React.Component {
render () {
const { data, onSelectRow, rowIndex, actived, className, children } = this.props
const rowProps = {
className:... |
fixtures/ssr/src/components/Chrome.js | AlmeroSteyn/react | import React, { Component } from 'react';
import './Chrome.css';
export default class Chrome extends Component {
render() {
const assets = this.props.assets;
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial... |
boilerplates/basic/src/components/droids/droid.js | goncalvesjoao/react-to-commonJS | import React from 'react';
const defaultProps = {
name: true,
};
class Droid extends React.Component {
renderName() {
if (!this.props.name) { return <noscript />; }
return (
<p className="text-center">
<span name="droid-name" className="label label-info">
{ this.props.droid.name ... |
example/src/pages/EnlargedImageContainerDimensions.js | ethanselzer/react-image-magnify | import React, { Component } from 'react';
import {
Col,
Grid,
Jumbotron,
Row
} from 'react-bootstrap';
import Helmet from 'react-helmet';
import Header from '../components/Header';
import EnlargedImageContainerDimensions from '../components/EnlargedImageContainerDimensions';
import 'bootstrap/dist/css/bootstr... |
app/containers/Root/Root.prod.js | ryanwashburne/react-skeleton | import PropTypes from 'prop-types';
import React from 'react';
import { Provider } from 'react-redux';
import { Route } from 'react-router-dom';
import { ConnectedRouter } from 'react-router-redux';
import App from '../App';
export default function Root({store, history}) {
return (
<Provider store={store}... |
example/js/app.js | ConciergeAuctions/relay-cache-manager | import 'babel-polyfill';
import App from './components/App';
import AppHomeRoute from './routes/AppHomeRoute';
import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
import CacheManager from 'relay-cache-manager';
const cacheManager = new CacheManager();
Relay.Store.getStoreDat... |
node_modules/react-router/es6/IndexRedirect.js | Shwrndasink/btholt-react-tutorial | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
EvergreenApp/components/Garden/GardenScreen.js | tr3v0r5/evergreen |
import React, { Component } from 'react';
import {Text, View, Alert, ScrollView, TouchableOpacity,
Animated,AsyncStorage } from 'react-native';
import {Button, Icon} from 'react-native-elements';
import Svg, { G, Path } from 'react-native-svg'
import * as firebase from 'firebase';
import GardenZoneComponent from './... |
.storybook/config.js | delmaroi/tododemo | import React from 'react';
import { configure, addDecorator } from '@kadira/storybook';
import { IntlProvider } from 'react-intl';
// import translation messages
import { translationMessages } from '../app/i18n';
// add a decorator to wrap stories rendering into IntlProvider
const DEFAULT_LOCALE = 'en';
addDecorator(... |
priv/static/widget.js | kittoframework/kitto | import ReactDOM from 'react-dom';
import React from 'react';
import Helpers from './helpers';
class Widget extends React.Component {
constructor(props) {
super(props);
this.state = {};
this.source = (this.props.source || this.constructor.name).toLowerCase();
Widget.listen(this, this.source);
}
... |
pages/about.js | creeperyang/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>About Us</h1>
<p>Coming s... |
node_modules/semantic-ui-react/src/views/Item/ItemContent.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useVerticalAlignProp,
} from '../../lib'
import ItemHeader from './ItemHeader'
import ItemDescription from './ItemDescripti... |
src/js/components/Cursor.js | jhsu/spears-vr | import {Animation, Entity} from 'aframe-react';
import React from 'react';
export default props => {
const geometry = {
primitive: 'ring',
radiusInner: 0.01,
radiusOuter: 0.016
};
const material = {
color: props.color,
shader: 'flat',
opacity: props.opacity || 0.9,
transparent: true
... |
src/components/video_list.js | johncpatterson/Learning-React | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video}
/>
);
});
return (
<ul className="co... |
src/app/components/media/MediaCreatedBy.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage, intlShape } from 'react-intl';
import Typography from '@material-ui/core/Typography';
import { makeStyles } from '@material-ui/core/styles';
import CheckChannels from '../../CheckChannels';
const useSt... |
src/components/ui/InputGroup.js | ntxcode/react-base | import React from 'react';
import { Field } from 'redux-form';
import './InputGroup.css';
const InputGroup = props =>
<div className="InputGroup">
{props.icon}
<Field
className="FormInput"
name={props.name}
component="input"
type={props.type}
placeholder={props.placeholder}
... |
src/svg-icons/notification/vibration.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVibration = (props) => (
<SvgIcon {...props}>
<path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0... |
client/components/Pages/DbTest/TasksMain.js | Extra-lightwill/gql-sequelize-ver01 | import React from 'react';
import Relay from 'react-relay';
import addTaskMutation from './addTaskMutation';
const ENTER_KEY_CODE = 13;
const ESC_KEY_CODE = 27;
class TasksMain extends React.Component {
constructor( props )
{
super( props );
this.state = {
viewer: this.props.viewer,
tasks... |
admin/client/App/shared/Portal.js | brianjd/keystone | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
rio/assets/components/app.js | soasme/rio | import React from 'react'
export default function App() {
return <div>I am App!</div>
}
|
client/lib/alert.js | pradel/octon | import React, { Component } from 'react';
import Button from 'material-ui/Button';
import Dialog, {
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
} from 'material-ui/Dialog';
class Alert extends Component {
constructor(props) {
super(props);
this.state = {
isOpen: false,
t... |
client/util/react-intl-test-helper.js | Investnaira/in | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
src/Row.js | zerkms/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
re... |
examples/with-rtlcss/src/App.js | suitejs/suite | import React from 'react';
import Button from 'rsuite/es/Button';
import ButtonToolbar from 'rsuite/es/ButtonToolbar';
import Progress from 'rsuite/es/Progress';
import Slider from 'rsuite/es/Slider';
import IntlProvider from 'rsuite/es/IntlProvider';
import { writeDirection } from './utils';
function App() {
const... |
fields/types/location/LocationColumn.js | brianjd/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... |
app-reflux/test/test-pm.js | Orientsoft/borgnix-cloud-ide | import React from 'react'
import projectActions from '../actions/project-actions'
class TestPM extends React.Component {
constructor(props) {
super(props)
this.state = {
projects: this.props.projects
, activeProjectName: this.props.activeProjectName
, activeFileName: this.props.activeFileName
... |
src/index.js | dhorelik/my-locations | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { Router, browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import configureStore from './store/configureStore'
import routes from './routes'
... |
src/pages/HomePage.js | belaczek/BeerCheese-client | import React, { Component } from 'react';
import {
Row,
Col,
Button,
Nav,
NavItem,
NavLink,
NavbarBrand
} from 'reactstrap';
import ProductList from '../components/product/ProductList';
import localizedTexts from '../text_localization/LocalizedStrings';
import FontAwesome from 'react-fontawesome';
import ... |
actor-apps/app-web/src/app/components/common/Banner.react.js | Dreezydraig/actor-platform | import React from 'react';
import BannerActionCreators from 'actions/BannerActionCreators';
class Banner extends React.Component {
constructor(props) {
super(props);
if (window.localStorage.getItem('banner_jump') === null) {
BannerActionCreators.show();
}
}
onClose = () => {
BannerActionC... |
packages/material-ui-icons/legacy/SignalCellular3BarSharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M2 22h20V2L2 22z" /><path d="M17 7L2 22h15V7z" /></React.Fragment>
, 'SignalCellular3BarSharp');
|
app/HomeTab/views/detailPage.js | hakale/bestCarRent | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ScrollView,
Image,
TouchableOpacity
} from 'react-native';
import {hostip} from '../../config'
import BannerLite from 'react-native-banner-lite';
import {
List ,
Button,
Divider
} from 'react-native-elements';
export def... |
admin/client/views/signin.js | suryagh/keystone | 'use strict';
import classnames from 'classnames';
import React from 'react';
import ReactDOM from 'react-dom';
import SessionStore from '../stores/SessionStore';
import { Alert, Button, Form, FormField, FormInput } from 'elemental';
import { createHistory } from 'history';
var history = createHistory();
var SigninV... |
src/Application.js | TheEvilCorp/OverReact | import React, { Component } from 'react';
import Gui from './Gui';
import Options from './Options';
export default class Application extends Component {
shouldComponentUpdate = (nextProps, nextState) => {
return this.props !== nextProps;
};
render() {
return (
<div className='appContainer' id='app... |
client/src/components/forms/Security.js | DjLeChuck/recalbox-manager | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import { Form } from 'react-form';
import BootstrapForm from 'react-bootstrap/lib/Form';
import Panel from 'react-bootstrap/lib/Panel';
import { getDefaultValues } from './utils';
import FormActions from './FormAct... |
app/javascript/mastodon/features/home_timeline/index.js | h3zjp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../comp... |
app/javascript/mastodon/features/getting_started/components/trends.js | yi0713/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag';
import { FormattedMessage } from 'react-intl';
expor... |
src/@ui/Icon/icons/LikeSolid.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M10.8 4.03l-.03.03h.1c.4.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.