path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/CreateGame/web/CreateGame.js | floschnell/towers | import React from 'react';
import PropTypes from 'prop-types';
/**
* Web version of the create game component.
*/
export default class CreateGame extends React.Component {
/**
* @override
*/
render() {
const renderPlayers = () => {
return Object.keys(this.props.players).map((opponentID) => {
... |
docs/app/Examples/modules/Dimmer/Variations/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DimmerVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Blurring'
desc... |
src/routes/Counter/components/Counter.js | dkanas/timelog | import React from 'react'
import PropTypes from 'prop-types'
export const Counter = ({ counter, increment, doubleAsync }) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {counter}</h2>
<button className='btn btn-primary' onClick={increment}>
Increment
</button>
{' '}
<button className... |
packages/generator-react-server/generators/app/templates/pages/hello-world.js | redfin/react-server | import React from 'react';
import HelloWorld from '../components/hello-world';
export default class SimplePage {
getElements() {
return <HelloWorld/>;
}
getMetaTags() {
return [
{charset: 'utf8'},
{'http-equiv': 'x-ua-compatible', 'content': 'ie=edge'},
{name: 'viewport', content: 'width=device-width,... |
react/features/invite/components/dial-in-summary/native/DialInSummaryErrorDialog.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { AlertDialog } from '../../../../base/dialog';
import { translate } from '../../../../base/i18n';
import { connect } from '../../../../base/redux';
/**
* Dialog to inform the user that we could't fetch the dial-in info page.
*/
class DialInSummaryErrorDial... |
node_modules/react-navigation/src/navigators/DrawerNavigator.js | jiangqizheng/ReactNative-BookProject | /* @flow */
import React from 'react';
import { Dimensions, Platform } from 'react-native';
import createNavigator from './createNavigator';
import createNavigationContainer from '../createNavigationContainer';
import TabRouter from '../routers/TabRouter';
import DrawerScreen from '../views/Drawer/DrawerScreen';
impo... |
src/forms/LoginForm/LoginForm.js | softage0/solid-online-services | import React from 'react'
import {connect} from 'react-redux'
import {reduxForm, Field} from 'redux-form';
import { login } from '../../redux/account'
import AccountDetailField from '../../components/AccountDetailField/AccountDetailField'
const validate = (values) => {
const errors = {}
if (!values.id) {
error... |
src/parser/priest/shadow/modules/checklist/Component.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Requirement from 'parser/shared/modules/features/Checklist/Requirement';
import Rule from 'parser/shared/... |
examples/app.js | rtorr/redux-portal | import React from 'react';
import ReactDOM from 'react-dom';
import Portal from './../lib';
var activeStyle = {
position: 'fixed',
top: '0',
left: '0',
right: '0',
bottom: '0',
zIndex: '2000'
};
var backgroundStyle = {
background: 'rgba(0, 0, 0, 0.6)',
position: 'fixed',
top: '0',
left: '0',
rig... |
storybooks/native/App.js | opensource-cards/react-mobile-navigation | import { Font } from 'expo';
import React from 'react';
import Storybook from './storybook';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = { isFontsLoaded: false };
}
componentDidMount() {
Font.loadAsync({
"FiraSans-Black": require("./node_... |
packages/arwes/src/Blockquote/Blockquote.js | romelperez/prhone-ui | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
export default function Blockquote(props) {
const { theme, classes, layer, className, children, ...etc } = props;
const cls = cx(classes.root, className);
return (
<blockquote className={cls} data-layer={layer} {...et... |
src/components/OutsideEvents/OutsideEventsCard.js | kesean/Dashboard-Frontend | import React from 'react'
import OutsideEvent from './OutsideEvent'
import Paper from 'material-ui/Paper'
import Divider from 'material-ui/Divider'
import CircularProgress from 'material-ui/CircularProgress'
import {GridList} from 'material-ui/GridList';
export default function OutsideEventsCard(props){
if (props.... |
src/svg-icons/navigation/arrow-drop-down.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
test/regressions/site/src/tests/Avatar/IconAvatar.js | und3fined/material-ui | // @flow weak
import React from 'react';
import Avatar from 'material-ui/Avatar';
import { deepOrange } from 'material-ui/styles/colors';
export default function IconAvatar() {
return (
<Avatar
style={{
color: '#fff',
backgroundColor: deepOrange[500],
}}
>
<span className="... |
src/PageItem.js | andrew-d/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
src/app/components/resourses/moon/OneTable.js | mazahell/eve-react-app | import React from 'react'
const OneTable = ({_class, link, data, hr, lh, title}) => {
let _handleOnMouse = (itemId, e) => hr(itemId, e)
let _handleClick
if(link) {
_handleClick = (itemId, url, e) => lh(itemId, url, e)
} else {
_handleClick = () => {}
}
let materials = data.map(val => {
retur... |
client/src/components/Draftail/Tooltip/Tooltip.js | rsalmaso/wagtail | import PropTypes from 'prop-types';
import React from 'react';
const TOP = 'top';
const LEFT = 'left';
const TOP_LEFT = 'top-left';
const getTooltipStyles = (target, direction) => {
const top = window.pageYOffset + target.top;
const left = window.pageXOffset + target.left;
switch (direction) {
case TOP:
... |
web/react/src/client/csr.js | JamesMillercus/Portfolio-Website | /*eslint no-undef: "error"*/
/*eslint-env browser*/
// Start up point for client side application
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
// create redux store for state, hook up middleware inside of application
import { createStore, applyMiddleware } from 'redux';
// Re... |
src/FloatingActionButton/FloatingActionButton.js | pradel/material-ui | import React from 'react';
import transitions from '../styles/transitions';
import {fade} from '../utils/colorManipulator';
import EnhancedButton from '../internal/EnhancedButton';
import FontIcon from '../FontIcon';
import Paper from '../Paper';
import {extendChildren} from '../utils/childUtils';
import warning from '... |
OleksiiOnSoftware.Apps.Blog/client/components/PostsList/index.js | boades/PpmSystem | /* @flow */
// React
import React from 'react'
// Custom UI
import {
TopBar,
Header,
ShortPost,
Pagination,
LeftNavigation,
DisqusResetCommentsCount
} from 'components'
// Semantic UI
import {
Grid,
Segment,
Item,
Sidebar,
Menu
} from 'semantic-ui-react'
// Types
import type { Post, Filter, Ca... |
src/components/work/PromotionEntry.js | justinkahrs/portfolio | import React from 'react';
import { Col } from 'react-bootstrap';
const styles = {
date: {
display: 'inline',
},
item: {
paddingBottom: '.5em',
},
location: {
marginTop: '0',
fontSize: '16px',
marginBottom: '.5em',
},
};
const PromotionEntry = props => (
<Col lg={12}>
<h2>{props.... |
step7-flux/node_modules/react-router/modules/RoutingContext.js | jintoppy/react-training | import React from 'react'
import RouterContext from './RouterContext'
import warning from './routerWarning'
const RoutingContext = React.createClass({
componentWillMount() {
warning(false, '`RoutingContext` has been renamed to `RouterContext`. Please use `import { RouterContext } from \'react-router\'`. http://t... |
react-components/src/library/components/signup/signup_functions.js | concord-consortium/rigse | import React from 'react'
import ReactDOM from 'react-dom'
import SignupModal from './signup_modal'
import Signup from './signup'
import LoginModal from './login_modal'
import ForgotPasswordModal from './forgot_password_modal'
import Modal from '../../helpers/modal'
//
// Map modal to CSS classes
//
const modalClasses... |
src/decorators/withViewport.js | scele/coverigate | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
src/index.js | one-love/web-client | 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()
|
admin/client/App/shared/Popout/PopoutListHeading.js | vokal/keystone | /**
* Render a popout list heading
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
... |
components/Form/AutoComplete/Heading.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import css from './Heading.css';
const Heading = ({ className, children, ...rest }) => (
<span { ...rest } className={ cx(css.root, className) }>{ children }</span>
);
Heading.propTypes = {
className: PropTypes.string,
... |
src/js/components/ui/CardContent/CardContent.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './CardContent.scss';
import CardIcons from '../CardIcons';
import Image from '../Image';
import LinkImageService from '../../../services/LinkImageService';
import NetworkLine from "../NetworkLine/NetworkLine";
import Conte... |
apps/mk-app-dashboard-analysis/apps/mk-app-sale-widget/action.js | ziaochina/mk-demo | import React from 'react'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import moment from 'moment'
import utils from 'mk-utils'
class action {
constructor(option) {
this.metaAction = option.metaAction
this.config = config.current
}
onInit =... |
modules/Redirect.js | dmitrigrabov/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | arusakov/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
src/components/SearchFormComponent.js | chimo/se-dir-frontend-react | 'use strict';
import React from 'react';
import { Link } from 'react-router';
import LocationDisambiguation from './LocationDisambiguationComponent';
import Loading from './LoadingComponent';
import { translate } from 'react-i18next';
const POSTAL_CODE_REGEX = /^[A-Za-z]\d[A-Za-z]/;
class SearchFormComponent exten... |
app/invest2.js | Right-Men/Ironman | /**
* Created by fandongyang on 2016/12/9.
*/
/**
* Created by fandongyang on 2016/12/4.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Dimensions,
ListView,
Alert,
TouchableHighlight,
ActivityIndicator,
InteractionManager,
Ref... |
src/components/message_item.js | chrisVillanueva/react-redux-firebase-message-example | import React, { Component } from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import * as actions from '../redux/actions';
const initialState = {
editable: false,
content: ''
};
class MessageItem extends Component {
state = initialState;
handleEdit = (e) => {
cons... |
src/Accordion.js | yuche/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
src/Score.js | arve0/multiplication-game | import React from 'react'
import { connect } from 'react-redux'
import AnimateOnChange from 'react-animate-on-change'
import './Score.less'
const Score = ({diff, points}) => {
let diffText = `+ ${diff}`
let diffClass = 'Score-diff'
if (diff === 0) {
diffClass += ' Score-diff--wrong'
}
return <div class... |
examples/huge-apps/components/Dashboard.js | barretts/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
let { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
... |
src/client/components/admin/course/list.js | thamht4190/elearning | import React, { Component } from 'react';
import Header from '../common/component.header';
import CourseList from './component.course_list';
import AddNewCourse from './component.add_new_course';
class CourseListPage extends Component {
render() {
return (
<div className="course-list-page">
... |
fixtures/attribute-behavior/src/App.js | chenglou/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
packages/docs/components/Examples/undo/gettingStarted.js | nikgraf/draft-js-plugin-editor | // It is important to import the Editor which accepts plugins.
import Editor from '@draft-js-plugins/editor';
import createUndoPlugin from '@draft-js-plugins/undo';
import React from 'react';
// Creates an Instance. At this step, a configuration object can be passed in
// as an argument.
const undoPlugin = createUndoP... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | danhunsaker/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
src/components/list/DateBox.js | hui-w/events-vanilla | import React from 'react';
import PropTypes from 'prop-types';
import EventRow from '../../components/common/EventRow';
import { getWeekday } from '../../util';
const DateBox = ({ year, month, item, onItemClick }) => {
const eventList = item.events;
// the list of daily events
const eventListDOM = eventList.map... |
app/containers/todolist/PublicTodoList.js | flanamacca/react-learning-kit | import React from 'react'
import { connect } from 'react-redux'
import { addPublicTodo, updatePublicTodo, removePublicTodo, getPublicTodos } from '../../actions'
import TodoList from '../../components/todolist/TodoList';
import AddTodo from '../../components/todolist/AddTodo';
import FilterList from '../../components/t... |
src/index.js | smichael1/SingleAxisReactUI | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
import { reduxWebsocketMiddleware } from './webso... |
client/components/LogoAndNavigation.js | HelpAssistHer/help-assist-her | import React from 'react'
import injectSheet from 'react-jss'
import { Link } from 'react-router-dom'
import { Phone, BigPhone, Tablet, Desktop } from './Breakpoints'
import Spacer from './Spacer'
import LogoBetaBlack from './icons/icon-components/logo-beta-black'
import HamburgerMenu from './icons/icon-components/ham... |
src/client/auth/logout.react.js | dfogas/my-mindmap | import * as actions from './actions';
import Component from '../components/component.react';
import React from 'react';
import {msg} from '../intl/store';
export default class Logout extends Component {
render() {
return (
<div className="logout">
<button
children={msg('auth.logout.butto... |
packages/ringcentral-widgets/components/TabNavigationView/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
import NavigationBar from '../NavigationBar';
import TabNavigationButton from '../TabNavigationButton';
import DropdownNavigationView from '../DropdownNavigationView';
function TabNav... |
src/container/beers/detail.js | mxczpiscioneri/ipaday-react-native | import React, { Component } from 'react';
import { StyleSheet, Image, Modal, View } from 'react-native';
import { Container, Header, Left, Right, Body, Button, Icon, Title, Content, Text, Badge, Spinner, Form, Item, Label, Input } from 'native-base';
import { connect } from 'react-redux';
import Config from 'react-nati... |
src/app/components/pages/spreadsheet/RoomTable.js | PinkFLoyd92/softwareII | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import ListItem from 'material-ui/List/ListItem';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import FlatButton from 'ma... |
src/entypo/OpenBook.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--OpenBook';
let EntypoOpenBook = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10.595,5.196l0.446,1.371c0.369-0.316,0.835-0.599,1.441-0.795c0.59-0.192,1.111-0.3,1.582-0.362l-0... |
P/lixil/src/pages/Home.js | imuntil/React | import React from 'react'
import './Home.css'
import Slick from '../components/Home/Carousel'
import ProductSection from '../components/Home/ProductSection'
import NewsSection from '../components/Home/NewsSection'
import AboutSection from '../components/Home/AboutSection'
import OurBrands from '../components/Home/OurBr... |
react-native/NewYorkTimesBestSellers/BookList.js | tiagofumo/react-sample-projects | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
RecyclerViewBackedScrollView,
ListView
} from 'react-native';
var BookItem = require('./BookItem');
import { loadBookList } from './app-data';
class BookList extends Component {
constructor(props) {
supe... |
src/routes/route.js | dingzhang/OpenDay | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import HomePage from '../containers/homepage/homepage';
import Brokerage from '../containers/brokerage/brokerage';
import Brokerage1 from '../containers/brokerage/brokerage-1';
import Brokerage2 from '../containers/brokerage/brokerage-2';
impo... |
components/Material/CubeMapPropType.js | viromedia/viro | /**
* Copyright (c) 2016-present, Viro Media, 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.
*
* @provid... |
hosted-demo/src/components/PokemonCard.js | learnapollo/pokedex-react | import React from 'react'
import { propType } from 'graphql-anywhere'
import gql from 'graphql-tag'
import { graphql } from 'react-apollo'
import styled from 'styled-components'
const Button = styled.div`
background-color: ${props => props.save ? '#2BC3A1' : ''};
color: ${props => props.save ? 'white' : props.dele... |
src/svg-icons/maps/directions-railway.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsRailway = (props) => (
<SvgIcon {...props}>
<path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2... |
app/ContactInfo.js | ByunJaeSeok/selfStudy | import React from 'react';
class ContactInfo extends React.Component {
render() {
return (
<li>{this.props.name} {this.props.phone}</li>
);
}
}
ContactInfo.propTypes = {
name: React.PropTypes.string,
phone: React.PropTypes.string.isRequired,
};
export default ContactInfo;
|
src/routes/Users/components/UsersView.js | JSChecker/JSChecker-WebClient | import React from 'react'
import ApiView from '../../../components/ApiView'
import { Link } from 'react-router'
import './UsersView.scss'
import _ from 'lodash'
export class UserListView extends ApiView {
componentWillMount () {
this.polling()
}
componentWillUnmount () {
this.cancelRequest()
}
get... |
fields/types/text/TextColumn.js | creynders/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var TextColumn = React.createClass({
displayName: 'TextColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
linkTo: React.PropType... |
src/ReactBoilerplate/Scripts/server.js | pauldotknopf/react-aspnet-boilerplate | import React from 'react';
import ReactDOM from 'react-dom/server';
import Html from './helpers/Html';
import { match } from 'react-router';
import getRoutes from './routes';
import createHistory from 'react-router/lib/createMemoryHistory';
import RouterContext from 'react-router/lib/RouterContext';
import configureSto... |
newclient/scripts/components/user/manual/manual-event-relations/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/scenes/home/about/valueCard/valueCard.js | sethbergman/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './valueCard.css';
const ValueCard = ({ name, description }) => (
<div className={styles.valueCard}>
<h4>{name}</h4>
<p>{description}</p>
</div>
);
ValueCard.propTypes = {
name: PropTypes.string.isRequired,
description: ... |
src/server.js | aboutevan/react-universal-boilerplate | import path from 'path';
import compression from 'compression';
import express from 'express';
import middleware from './middleware';
import { createSitemap } from 'sitemap';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
const env = ... |
actor-apps/app-web/src/app/components/modals/Preferences.react.js | Dreezydraig/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui';
import { KeyCodes } from 'constants/ActorAp... |
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js | gunaangs/Feedonymous | import React from 'react';
const First = React.createNotClass({
displayName: 'First'
});
class Second extends React.NotComponent {}
|
app/javascript/mastodon/features/ui/components/focal_point_modal.js | riku6460/chikuwagoddon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import ImageLoader from './image_loader';
import classNames from 'classnames';
import { changeUploadCompose } from '../../../... |
node_modules/react-router/es6/IndexRedirect.js | geng890518/editor-ui | 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... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | farazs/react-native | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
admin/client/App/shared/Popout/PopoutFooter.js | giovanniRodighiero/cms | /**
* Render a footer for a popout
*/
import React from 'react';
const BUTTON_BASE_CLASSNAME = 'Popout__footer__button Popout__footer__button--';
const PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
pri... |
node_modules/react-bootstrap/es/ModalHeader.js | CallumRocks/ReduxSimpleStarter | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
docs/build.js | jhernandezme/react-materialize | import fsp from 'fs-promise';
import path from 'path';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import {match, RoutingContext} from 'react-router';
import Root from './src/Root';
import routes from './src/Routes';
import metadata from './generate-metadata';
const docsBuilt = path.joi... |
examples/real-world/index.js | CuthbertJungle/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
client/src/App.js | BukhariH/finimizeChallenge | import React, { Component } from 'react';
import 'whatwg-fetch';
import 'bootstrap/dist/css/bootstrap.css';
import './App.css';
import AmountInput from './components/amountInput';
import InterestRateInput from './components/interestRateInput';
import CurrencyInput from './components/currencyInput';
import AnnualEarned... |
app/javascript/mastodon/features/blocks/index.js | corzntin/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
docs/app/Examples/elements/Header/Variations/HeaderExampleDividing.js | shengnian/shengnian-ui-react | import React from 'react'
import { Header } from 'shengnian-ui-react'
const HeaderExampleDividing = () => (
<Header as='h3' dividing>
Dividing Header
</Header>
)
export default HeaderExampleDividing
|
examples/Example.js | instea/react-native-popup-menu | import React, { Component } from 'react';
import { StyleSheet, Text, View, ScrollView } from 'react-native';
import Menu, {
MenuProvider,
MenuTrigger,
MenuOptions,
MenuOption,
renderers,
} from 'react-native-popup-menu';
let unique = 0;
const { SlideInMenu } = renderers;
export default class Example extends... |
src/components/common/svg-icons/action/explore.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExplore = (props) => (
<SvgIcon {...props}>
<path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2... |
resources/assets/js/components/NotFound.js | vestd/ProcessMonitor | import React from 'react'
export default React.createClass({
render() {
return (<div className="container-fluid"><h1>404</h1></div>)
}
}) |
test/test_helper.js | cmdrtorefresh/weatherforecast-reactredux | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
packages/material-ui-icons/src/PanoramaWideAngle.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PanoramaWideAngle = props =>
<SvgIcon {...props}>
<path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12c0-... |
storybook/config.js | ms2sato/mastodon | import { configure, setAddon } from '@kadira/storybook';
import IntlAddon from 'react-storybook-addon-intl';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/assets/stylesheets/compone... |
App.js | bakin-bacon/app | import React from 'react';
import { Provider, connect } from 'react-redux';
import { Platform, StatusBar } from 'react-native';
import { StackNavigator, TabNavigator, addNavigationHelpers } from 'react-navigation';
import * as Colors from './Colors';
import { combineReducers } from 'redux';
import getStore from './stor... |
src/home.js | subaira2004/my_sample_node_app | import React from 'react';
import ReactDOM from 'react-dom';
class Hello extends React.Component {
render() {
return (
<div>
<h1> Hello {this.props.name},from React app </h1>
</div>
);
}
}
ReactDOM.render( <Hello name="zubair" /> , document.getElementB... |
chrome/extension/inject.js | nimatra/nimGit | import React, { Component } from 'react';
import { render } from 'react-dom';
import Dock from 'react-dock';
class InjectApp extends Component {
constructor(props) {
super(props);
this.state = { isVisible: false };
}
buttonOnClick = () => {
this.setState({ isVisible: !this.state.isVisible });
};
... |
docs/app/Examples/views/Comment/Content/CommentExampleReplyFormOuter.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button, Comment, Form } from 'semantic-ui-react'
const CommentExampleReplyFormOuter = () => (
<Comment.Group>
<Comment>
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/joe.jpg' />
<Comment.Content>
<Comment.Author>Joe Henderson</Commen... |
src/components/Aside/Aside.js | haromy/appSO | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink, Progress } from 'reactstrap';
import classnames from 'classnames';
class Aside extends Component {
constructor(props) {
super(props);
this.toggle = this.toggle.bind(this);
this.state = {
activeTab: '0'
... |
server/sonar-web/src/main/js/apps/overview/qualityGate/QualityGate.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
html.js | nodeuz/homepage | import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body,... |
docs/src/draftComponents/Header/BlockHeader.js | gocreating/redux-draft | import React from 'react';
import Header from './Header';
import DraftEditorBlock from 'draft-js/lib/DraftEditorBlock.react';
let BlockHeader = ({
blockProps: { level = 1 }, ...rest
}) => (
<Header level={level}>
<DraftEditorBlock {...rest} />
</Header>
);
export default BlockHeader;
|
cra-network-aware-only-if-cached-loading/src/App.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
node_modules/react-bootstrap/es/PagerItem.js | skinsshark/skinsshark.github.io | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/js/containers/ResumeContainer.js | shane-arthur/personal-website | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { getData } from '../data/dataFetcher';
class Resume extends Component {
static fetchData() {
return getData('resumeApi');
}
returnStyle() {
return {
width: '500px',
height: '5... |
src/components/widgets/timelogs/TableComponent.js | pdx-code/teampro | 'use strict';
require('styles/widgets/timelogs/Table.less');
import React from 'react';
import UI from 'material-ui'
class TableComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
fixedHeader: true,
fixedFooter: true,
stripedRows: false,
showRowHover... |
cypress/app/src/App.js | darrikonn/react-chloroform | import React from 'react';
import {/*DataStructureTest, */ValidationTest} from './components';
import styles from './app.module.css';
function App() {
return (
<div>
<div className={styles.section}>
<ValidationTest />
</div>
</div>
);
}
export default App;
|
src/svg-icons/action/system-update-alt.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
src/client/index.js | prashaantt/hapi-react-transform-boilerplate | import 'babel-polyfill';
import React from 'react';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { createStore, combineReducers } from 'redux';
import { render } from 'react-dom';
import counterReducer from '... |
src/components/InterstitialMessage/InterstitialMessage.js | TestKitt/TestKittUI | import React from 'react'
import style from './InterstitialMessage.scss'
export const InterstitialMessage = (props) => (
<div className={`${style.interstitial} text-center`} >
<img src={props.image} />
<h5>{props.message}</h5>
</div>
)
InterstitialMessage.propTypes = {
image: React.PropTypes.string.isRe... |
src/svg-icons/places/kitchen.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesKitchen = (props) => (
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/>
... |
client/src/app/components/forms/editors/MarkdownEditor.js | zraees/sms-project | import React from 'react'
import 'script-loader!to-markdown/dist/to-markdown.js'
import 'script-loader!markdown/lib/markdown.js'
import 'script-loader!he/he.js'
import 'script-loader!bootstrap-markdown/js/bootstrap-markdown.js'
export default class MarkdownEditor extends React.Component {
componentDidMount() {
... |
src/js/drinks/drinkList.js | globin/drinkup | import React from 'react';
import connectToStores from 'alt/utils/connectToStores';
import { List, ListItem } from 'material-ui';
import DrinkStore from './drinkStore';
@connectToStores
class DrinkList extends React.Component {
static propTypes = {
drinks: React.PropTypes.array.isRequired,
};
sta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.