path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/collections/Menu/States/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const States = () => {
return (
<ExampleSection title='States'>
<ComponentExample
title='Hover'
descriptio... |
definitions/npm/redux-form_v5.x.x/test_redux-form_v5.js | gaborsar/flow-typed | /** @flow */
import { reduxForm, reducer } from 'redux-form';
import type { InputProps } from 'redux-form';
import React from 'react';
const Input = (props: InputProps) => {
(props.onChange: (v: string) => mixed);
(props.onChange: (v: SyntheticEvent) => mixed);
(props.onUpdate: (v: string) => mixed);
(p... |
src/components/video_list.js | immunity20/Youtube-Search-App | 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 (
... |
src/components/common/CardSection.js | dougsleite/talk2go | import React from 'react';
import { View } from 'react-native';
const CardSection = (props) => {
return (
<View style={[styles.containerStyle, props.style]}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderBottomWidth: 1,
padding: 5,
... |
src/components/Test/index.js | scimusmn/app-template | import React from 'react';
function Test() {
return <h1>TESTING</h1>;
}
export default Test;
|
client/app/components/Settings.js | jfanderson/KIM | import React from 'react';
import s from '../services/settingsService.js';
import sign from '../services/sign.js';
import ContractorSettings from './Settings.Contractors.js';
import VendorSettings from './Settings.Vendors.js';
import TypeSettings from './Settings.Types.js';
class Settings extends React.Component {
... |
src/routes/dashboard/components/completed.js | zhangjingge/sse-antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import styles from './completed.less'
import classnames from 'classnames'
import { color } from '../../../utils'
import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'
function Completed ({ data }) {
r... |
website/src/app.js | CrisDan1905/text-mask | import './styles.scss'
import React from 'react'
import ReactDOM from 'react-dom'
import MaskedInput from '../../react/src/reactTextMask'
import classnames from 'classnames'
import appStyles from './app.scss'
import choices from './choices'
import {Row, DemoTop, DemoBottom, OnOffSwitch} from './partials'
import {connec... |
packages/vx-glyph/src/glyphs/Diamond.js | Flaque/vx | import React from 'react';
import cx from 'classnames';
import { symbol, symbolDiamond } from 'd3-shape';
import Glyph from './Glyph';
import additionalProps from '../util/additionalProps';
export default function GlyphDiamond({
children,
className,
top,
left,
size,
...restProps
}) {
const path = symbol(... |
examples/react-redux/src/components/navigator/NavigatorItem.js | rangle/redux-segment | import React from 'react';
const NavigatorItem = ({ children, isVisible = true, className = '' }) => {
const visibleClass = isVisible ? 'block' : 'hide';
return (
<div
className={ `${ visibleClass } ${ className }` }
style={ styles.base }>
{ children }
</div>
);
};
const styles = {
... |
src/containers/Asians/_components/ViewLockedRound/Ballots/LargeBallots/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Instance from './Instance'
export default connect(mapStateToProps)(({
round,
rooms
}) => {
const filterRooms = roomToMatch => roomToMatch.round === round._id
const roomsThisRound = rooms.filter(filterRooms)
return (
<div>
{roo... |
ui/js/pages/library/LibrarySectionEdit.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { loadCategory, unloadCategory } from '../../actions';
import FormField from '../../components/FormField';
import FormState from '../../utils/FormState';
import SectionEdit from '../../components... |
src/components/AddButton.js | fwonkas/minecraft-enchanted-item-generator | import React, { Component } from 'react';
class AddButton extends Component {
render() {
const { onClick } = this.props;
return <button onClick={ onClick }>+</button>;
}
}
export default AddButton;
|
src/components/App/AppComponent.js | bibleexchange/be-front-new | import React from 'react'
import { Route, Link } from 'react-router'
import MainNavigation from '../Navbar/NavbarComponent'
import Footer from './FooterComponent'
import UserMessage from './UserMessage'
import {
createFragmentContainer,
graphql,
} from 'react-relay/compat'
import auth from './auth'
import LoginUse... |
src/message/MessageList.js | p0o/react-redux-firebase-chat | import React, { Component } from 'react';
import { retrieveMessage } from './messageActions';
export default class MessageList extends Component {
componentDidMount() {
this._firebaseRef = firebase.database().ref('messages');
this._firebaseRef.on('child_added', (snapshot) => {
const { uid, displayName,... |
src/link_button.js | offenesdresden/annotieren | import React from 'react'
import Route from 'react-route'
import { RaisedButton, FlatButton, IconButton } from 'react-md/lib/Buttons'
/// Applies props.href but prevents loading of another document,
/// instead uses Route.go()
export class RaisedLinkButton extends React.Component {
render() {
return (
<R... |
admin/client/views/list.js | qwales1/keystone | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import ConfirmationDialog from '../components/Forms/ConfirmationDialog';
import CreateForm from '../components/Forms/CreateForm';
import FlashMessag... |
src/svg-icons/editor/format-indent-increase.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentIncrease = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentIncrease... |
src/components/tooltip/Tooltip.js | ipfs/webui | import React from 'react'
import PropTypes from 'prop-types'
export default class Tool extends React.Component {
static propTypes = {
children: PropTypes.element.isRequired,
text: PropTypes.string.isRequired
}
state = {
show: false,
overflow: true
}
onResize = () => {
if (this.state.ove... |
src/index.js | leonardoelias/social-media-profile | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store';
import Application from 'components/Application';
ReactDOM.render(
<Provider store={store}>
<Application />
</Provider>,
document.getElementById('root')
);
|
src/server/frontend/render.js | AlesJiranek/este | import DocumentTitle from 'react-document-title';
import Html from './Html.react';
import Promise from 'bluebird';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import config from '../config';
import configureStore from '../../common/configureStore';
import createRoutes from '../../client/cr... |
wrappers/html.js | subvisual/blog | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
import Meta from '../components/meta';
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/UserEdit/ResetPassword.js | KlusterKite/KlusterKite | import React from 'react';
import { Input } from 'formsy-react-components';
import Form from '../Form/Form';
import './styles.css';
export default class ResetPassword extends React.Component {
constructor(props) {
super(props);
this.submit = this.submit.bind(this);
}
static propTypes = {
onSubmit:... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | RahulDesai92/PHR | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
src/demo/index.js | adamwade2384/react-parallax-mousemove | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
node_modules/semantic-ui-react/src/collections/Table/TableHeaderCell.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getUnhandledProps,
META,
useValueAndKey,
} from '../../lib'
import TableCell from './TableCell'
/**
* A table can have a header cell.
*/
function TableHeaderCell(props) {
const { as, classNam... |
src/js/containers/MadLibber/MadLibberApp.js | mathjoy/simpleReact | import React, { Component } from 'react';
import MadLibbedText from './MadLibbedText';
import UploadButton from './UploadButton';
import PlaceholderInput from './placeholder_input';
export default class MadLibberApp extends Component {
constructor(props){
super(props);
this.state = { original_tex... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js | HelpfulHuman/helpful-react-scripts | /**
* 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, { Component } from 'react';
import PropTypes from 'prop-types';
async function load() {
return {
users: [
{ i... |
src/containers/organizations/components/StyledListGroupComponents.js | dataloom/gallery | import React from 'react';
import FontAwesome from 'react-fontawesome';
import styled from 'styled-components';
import StyledFlexContainer from '../../../components/flex/StyledFlexContainer';
export const StyledListItem = styled(StyledFlexContainer)`
background-color: #ffffff;
border: 1px solid #cfd8dc;
flex: ... |
src/svg-icons/device/battery-20.js | jacklam718/react-svg-iconx | 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... |
src/app/minibar/packlist/PackList.js | hiubers/pick | import React from 'react'
import Pack from './pack/Pack'
class PackList extends React.Component {
render() {
return (
<ul>
<Pack />
</ul>
)
}
}
export default PackList |
dashboard/components/FeatureDetail.js | dbrabera/laika | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import Toggle from './Toggle';
import Section from './Section';
import './FeatureDetail.css';
function capitalize(s) {
return s[0].toUpperCase() + s.slice(1);
}
export default function FeatureDetail({ feature, onToggle }) {... |
src/Utils/LoadingAnimation.js | tommartensen/arion-frontend | import React, { Component } from 'react';
import { css } from 'aphrodite';
import CircularProgress from 'material-ui/CircularProgress';
import AppStyles from "../AppStyles";
class LoadingAnimation extends Component {
render() {
return (
<div className={css(AppStyles.dFlex, AppStyles.jus... |
app/javascript/mastodon/features/status/components/action_bar.js | koba-lab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMess... |
client/src/components/Profile/ProfileDashboard.js | wolnewitz/raptor-ads | import React from 'react';
import { Grid, Image, Header, Card, Divider } from 'semantic-ui-react';
import { Link } from 'react-router';
import StarRatingComponent from 'react-star-rating-component';
import getAverageRating from '../helpers/getAverageRating';
import makeNamePossessive from '../helpers/makeNamePossessive... |
src/index.js | Amous-th/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
packages/react-dom/src/test-utils/ReactTestUtils.js | prometheansacrifice/react | /**
* Copyright (c) 2013-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 ReactDOM from 'react-dom';
import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflection';
... |
src/server.js | deslee/deslee-react-flux | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel/polyfill';
import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import express from 'express';
import React from 'react';
import './core/Dispatcher';
import './stores/AppStore';
import db from './core/Database';
imp... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/location-city.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialLocationCity = (props) => (
<SvgIcon {...props}>
<path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z"/>
</SvgIco... |
src/Context.js | ProAI/react-essentials | import React from 'react';
const Context = React.createContext();
export default Context;
|
pages/blog/test-article-two.js | Code4Newark/newark-viz | /**
* 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>Test Article 2</h1>
<p>Co... |
src/Grid.js | bbc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import elementType from 'react-prop-types/lib/elementType';
const Grid = React.createClass({
propTypes: {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds `container-fluid` class.
*/
... |
springboot/GReact/src/main/resources/static/app/routes/ui/containers/icons/Glyphicons.js | ezsimple/java | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../../components'
export default class Glyphicons extends React.Component {
state = {
search: ''
};
shouldComponentUpdate(nextProps, nextState) {
if (this.state.search != nextState.search) {
let $conta... |
docs/app/Examples/elements/Header/Variations/HeaderExampleInverted.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Header, Segment } from 'semantic-ui-react'
const HeaderExampleInverted = () => (
<Segment inverted>
<Header as='h4' inverted color='red'>Red</Header>
<Header as='h4' inverted color='orange'>Orange</Header>
<Header as='h4' inverted color='yellow'>Yellow</Header>
<Hea... |
node_modules/react-router/es/IndexRedirect.js | ivanhristov92/bookingCalendar | 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,
string = _React$PropTypes.string,
object = _React$PropTypes.object;
/**
* An <IndexRedir... |
components/animals/kajmanekTrpaslici.child.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/kajmanekTrpaslici/... |
src/components/VideoList.js | godfredcs/youtube-project | import React from 'react';
import VideoListItem from './VideoListItem';
const VideoList = (props) => {
const videoItems = props.videos.map(
video => <VideoListItem
key={video.etag}
video={video}
onVideoSelect={props.onVideoSelect}
/>
);
return (
<ul className="col-md-4 list-group">
{ videoIte... |
src/components/Footer/index.js | cowback/charcode-client | import React from 'react'
import Panel from 'components/Panel'
import './footer.css'
const Footer = () => (
<Panel
tag="footer"
className="footer"
>
<Panel
tag="section"
className="footer__content"
inset="l"
between="m"
row
justify="space-around"
>
<a targ... |
app/javascript/mastodon/components/short_number.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @para... |
app/components/POReqTransButton.js | robogroves/Ashley | import ProgressButton from 'react-progress-button'
import React, { Component } from 'react';
const POReqTransButton = React.createClass({
getInitialState () {
return {
buttonState: ''
}
},
render () {
if ('development'==process.env.NODE_ENV) {
console.log('button render =' + this.props.P... |
plugins/react/frontend/components/controls/advanced/IntegerControl/index.js | carteb/carte-blanche | /**
* IntegerControl
*
* Renders an input which allows you to modify a certain property of type integer
*/
import React from 'react';
import ConstraintsForm from './ConstraintsForm';
import randomValue from './randomValue';
import Row from '../../../form/Grid/Row';
import LeftColumn from '../../../form/Grid/LeftCo... |
docs/src/app/components/pages/components/RadioButton/Page.js | xmityaz/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 radioButtonReadmeText from './README';
import RadioButtonExampleSimple fr... |
docs/app/Examples/collections/Message/States/MessageHiddenExample.js | jamiehill/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageHiddenExample = () => (
<Message hidden>
You can always see me
</Message>
)
export default MessageHiddenExample
|
src/components/bitbucket/original-wordmark/BitbucketOriginalWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './BitbucketOriginalWordmark.svg'
/** BitbucketOriginalWordmark */
function BitbucketOriginalWordmark({ width, height, className }) {
return (
<SVGDeviconInline
clas... |
admin/client/App/screens/List/components/ListControl.js | everisARQ/keystone | import React from 'react';
import classnames from 'classnames';
var ListControl = React.createClass({
propTypes: {
dragSource: React.PropTypes.func,
onClick: React.PropTypes.func,
type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired,
},
renderControl () {
var icon = 'octicon octicon-';
... |
src/styles/icons.js | tallessa/tallessa-frontend | import React from 'react';
import DevicesOtherIcon from 'material-ui-icons/DevicesOther';
import PlaceIcon from 'material-ui-icons/Place';
import MoveToInboxIcon from 'material-ui-icons/MoveToInbox';
const icons = {
stuff: <DevicesOtherIcon />,
places: <PlaceIcon />,
loans: <MoveToInboxIcon />,
};
export defaul... |
code/workspaces/web-app/src/containers/adminListUsers/Sites.js | NERC-CEH/datalab | import React from 'react';
import ResourceStackCards from './ResourceStackCards';
import { SITE_TYPE_NAME, SITE_TYPE_NAME_PLURAL } from '../sites/siteTypeName';
function Sites({ sites }) {
return (
<ResourceStackCards resources={sites} typeName={SITE_TYPE_NAME} typeNamePlural={SITE_TYPE_NAME_PLURAL} />
);
}
e... |
src/parser/paladin/holy/modules/Overhealing.js | fyruna/WoWAnalyzer | import React from 'react';
import { Trans, t } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import { i18n } from 'interface/RootLocalizationProvider';
import Analyzer from 'parser/core/Analyzer';
import AbilityTrac... |
webpack/fills_index.js | mccun934/katello | import React from 'react';
import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill';
import { registerReducer } from 'foremanReact/common/MountingService';
import SystemStatuses from './components/extensions/about';
import extendReducer from './components/extensions/reducers';
registerReducer('k... |
src/pages/documentation/template/index.js | Vision100IT/v100it-template | import React from 'react';
import PropTypes from 'prop-types';
import fm from 'front-matter';
import classNames from 'classnames';
import {StickyContainer, Sticky} from 'react-sticky';
import reformed from 'react-reformed';
import compose from 'react-reformed/lib/compose';
import validateSchema from 'react-reformed/lib... |
src/Components/AvailableCharacters.js | jefferydutra/TestableModularReactTalk | import React from 'react';
import AvailableCharacter from './HeroCard';
import isFavoriteCharacter from '../isFavoriteCharacter';
function addToFavoriteWithCharacter(addToFavorite, character) {
return () => addToFavorite(character);
}
function renderCharacter(character, addToFavoriteCharacters, myFavoriteCharacte... |
source/components/GeographySelector.js | PitchInteractiveInc/hexagon-cartograms | import React from 'react'
import GeographyResource from '../resources/GeographyResource'
export default function GeographySelector(props) {
const selectGeography = (event) => {
props.selectGeography(event.target.value)
}
const options = GeographyResource.getGeographies().map((geography, geographyIndex) => {... |
app/containers/SelectMinorAbilitiesTableStep.js | mzanini/DeeMemory | import React from 'react'
import MinorAbilitiesTableSelector from './MinorAbilitiesTableSelector'
import TableSelectStep from '../components/TableSelectStep'
import CurrentMinorAbilitiesTable from './CurrentMinorAbilitiesTable'
const SelectMinorAbilitiesTableStep = () => (
<TableSelectStep helpText = 'Please select ... |
devtools/src/lib.js | clarus/redux-ship-devtools | // @flow
import React from 'react';
import ReactDOM from 'react-dom';
import * as Ship from 'redux-ship';
import * as Controller from './controller';
import Index from './view';
import store from './store';
type Control<Action, Effect, Commit, State> =
(action: Action) => Ship.Ship<Effect, Commit, State, void>;
exp... |
src/svg-icons/content/add-circle-outline.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.5... |
src/admin/components/Motd/index.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import withState from 'recompose/withState';
import withProps from 'recompose/withProps';
import withHandlers from 'recompose/withHandlers';
import Card from '@material-ui/core/Card';
import CardHeader from '@materia... |
src/RootContainer/index.js | DarthVictor/bank-chat | import { Provider } from 'react-redux'
import React from 'react'
import App from '../App'
import store from '../store'
export default class RootContainer extends React.Component {
render() {
return <Provider store={store}>
<App></App>
</Provider>
}
} |
step9-redux/node_modules/react-router/es6/Link.js | jintoppy/react-training | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) {... |
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js | boyley/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class UserProfileContactInfo extends React.Component {
static propTypes = {
phones: React.PropTypes.arr... |
cdap-ui/app/cdap/services/WizardConfigs/UploadDataWizardConfig.js | caskdata/cdap | /*
* Copyright © 2016 Cask Data, 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 t... |
src/components/Header.js | bobrown101/phi-tau | import React from 'react';
const Header = React.createClass({
render () {
return (
<div id="header-container" className="animated fadeIn">
{/*<div id="background-image"></div>*/}
<div id="header" className="text-center">
<h1 className="header-... |
src/outputs/bike-index.js | bikeindex/stolen_bikes_widget_html | import React from 'react';
import ReactDOM from 'react-dom';
import StolenWidget from '../components/StolenWidget';
import { defaultElementId } from '../utility';
export default class BikeIndexWidget {
static el;
static init(options) {
const { elementId = defaultElementId, ...rest } = options;
const widge... |
node_modules/react-native/local-cli/generator/templates/index.android.js | leechuanjun/TLReactNativeProject | /**
* 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 <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
assets/jqwidgets/demos/react/app/navigationbar/disabled/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxNavigationBar from '../../../jqwidgets-react/react_jqxnavigationbar.js';
class App extends React.Component {
render () {
let innerHtml =
'<div>' +
'Early History of the Internet</div>' +
'</div>' +
'<div>' +
... |
examples/Cube/Picture.js | Traviskn/react-router-native-stack | import React, { Component } from 'react';
import { Dimensions, Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import one from './assets/1.jpg';
import two from './assets/2.jpg';
import three from './assets/3.jpg';
import four from './assets/4.jpg';
import five from './assets/5.jpg';
import six f... |
src/components/App.js | aengl/sector4-website | import React from 'react';
import { Subscribe } from './Subscribe';
import { Header } from './Header';
import { Footer } from './Footer';
import './App.css';
export class App extends React.Component {
render() {
return (
<div className='App'>
<Header />
<h1 className='App-title'>
... |
src/js/components/ui/forms/HorizontalNumberInput.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat 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 to... |
src/controls/FormGroup.js | amvmdev/amvm-ui | import React from 'react';
const FormGroup = (props) => {
const {
success,
error,
warning,
children,
...sourceProps
} = props;
let className = "";
if (success)
className = "has-success";
else if (warning)
className = "has-warning";... |
app/app.js | MaleSharker/Qingyan | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/components/ProposalActions/ProposalActions.js | nambawan/g-old | // @flow
import React from 'react';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/withStyles';
import { defineMessages, FormattedMessage, FormattedDate } from 'react-intl';
import s from './ProposalActions.css';
import KeyValueRow from './KeyValueRow';
import {
getProposal,
... |
src/App.js | HaileHuang/todolist | import React, { Component } from 'react';
import './App.css';
import { connect } from 'dva';
import { Spin } from 'antd';
import Add from './components/Add';
import Lists from './components/Lists';
import { Button } from 'antd';
class App extends Component {
constructor(props) {
super(props);
}
add = (valu... |
src/components/compact/CompactColor.js | JedWatson/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
export class CompactColor extends ReactCSS.Component {
constructor() {
super()
this.handleClick = this.handleClick.bind(this)
}
classes(): any {
return {
'default': {
color: {
background: th... |
src/ReactBoilerplate/Scripts/components/ForgotPasswordForm/ForgotPasswordForm.js | pauldotknopf/react-aspnet-boilerplate | import React from 'react';
import Form from 'components/Form';
import { reduxForm } from 'redux-form';
import { Input } from 'components';
import { forgotPassword } from 'redux/modules/account';
class ForgotPasswordForm extends Form {
constructor(props) {
super(props);
this.success = this.success.bind(this);... |
src/client/index.js | jaimerosales/visual-reports-bim360dc | import AppContainer from './containers/AppContainer'
import createStore from './store/createStore'
import ReactDOM from 'react-dom'
import 'font-awesome-webpack'
import config from 'c0nfig'
import 'bootstrap-webpack'
import React from 'react'
//Services
import ServiceManager from 'SvcManager'
import StorageSvc from 'S... |
src/navigation/tabs.js | Jenny-L/lumohacks2017 | /**
* Tabs Scenes
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Scene } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
import { AppStyles, AppSizes } from '@theme/';
// Components
import { Ta... |
src/pages/hermes/HermesPage.js | Synchro-TEC/site-apollo-11 | import React from 'react';
import { Hermes } from 'syntec-apollo-11';
import { PrismCode } from 'react-prism';
import ShowCode from '../../components/ShowCode';
var addMessage = () => {
Hermes.addMessage(`Mensagem ${Date.now()}`, true);
};
var changeTitle = () => {
Hermes.setTitle(`Novo titulo ${Date.now()}`);
};... |
src/svg-icons/maps/local-car-wash.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCarWash = (props) => (
<SvgIcon {...props}>
<path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2... |
src/svg-icons/device/signal-wifi-4-bar-lock.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
src/svg-icons/action/bookmark-border.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBookmarkBorder = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/>
</SvgIcon>
);
ActionBookmarkBorder = pure(ActionBook... |
src/parser/ui/StatisticListBoxItem.js | anom0ly/WoWAnalyzer | import { TooltipElement } from 'interface';
import PropTypes from 'prop-types';
import React from 'react';
/**
* @deprecated Use `parser/ui/Statistic` instead.
*/
const StatisticListBoxItem = ({ title, value, titleTooltip, valueTooltip }) => (
<div className="flex">
<div className="flex-main">
{titleTool... |
assets/jqwidgets/demos/react/app/chart/spiderchart/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js';
import JqxCheckBox from '../../../jqwidge... |
fixtures/packaging/systemjs-builder/dev/input.js | TheBlasfem/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
client/containers/Users/Users.js | joshjg/explore | import React from 'react';
import { connect } from 'react-redux';
import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table';
import TextField from 'material-ui/TextField';
import Checkbox from 'material-ui/Checkbox';
import RaisedButton from 'material-ui/RaisedButto... |
geonode/monitoring/frontend/monitoring/src/components/organisms/geoserver-status/index.js | tomkralidis/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... |
src/static/containers/Home/index.js | KarimJedda/django-react-setup | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import './style.scss';
import reactLogo from './images/react-logo.png';
import reduxLogo from './images/redux-logo.png';
class HomeView extends React.Component {
static propTypes = {
statusText: React.P... |
examples/dynamic-segments/app.js | Sirlon/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</... |
src/Accordion.js | HPate-Riptide/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
class Accordion extends React.Component {
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
}
export default Accordion;
|
js/components/blankPage - Copy/index.js | phamngoclinh/PetOnline_vs2 |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
cons... |
frontend/src/components/dashboard/partnerDashboard/listOfPendingOffers.js | unicef/un-partner-portal | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import { TableCell } from 'material-ui/Table';
import HeaderList from '../../common/list/headerList';
import { loadPendingOffers } from '../../../reducers/pendingOffers'... |
src/svg-icons/action/swap-vert.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVert = (props) => (
<SvgIcon {...props}>
<path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/>
</SvgIcon>
);
ActionSwapVert = pure(ActionSwapVert);
ActionSwapVert.displa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.