path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
client/src/app/ui/components/recording-status-panel.js | getfireside/fireside | import React from 'react';
import {observer, computed} from "mobx-react";
import _ from 'lodash';
import {RecordingInfo} from './files-drawer';
// TODO: these components need a major refactor!
@observer
export class RecordingStatus extends React.Component {
onStartClick() {
if (this.props.membership.isSel... |
src/templates/blog-post.js | hunterclarke/hunterclarke.me | import React from 'react'
import PropTypes from 'prop-types'
import { kebabCase } from 'lodash'
import Helmet from 'react-helmet'
import { graphql, Link } from 'gatsby'
import Layout from '../components/Layout'
import Content, { HTMLContent } from '../components/Content'
export const BlogPostTemplate = ({
content,
... |
app/components/AppBar/index.js | rahsheen/scalable-react-app | /**
*
* AppBar
*
*/
import React from 'react';
import FontAwesome from 'react-fontawesome';
import { Link } from 'react-router';
import styles from './styles.css';
function AppBar({ toggleDrawer, email }) {
const loginLink = email || (<Link to="/login"> login </Link>);
return (
<div className={styles.appBa... |
tests/site6/src/intros/intro_with_nav.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
// LOCAL
import Childnav from '../nav/childnav';
/**
* The intro_with_nav component
*/
const IntroNav = ( page ) => {
const theme = page._pages[ page._ID ].theme ? page._pages[ page._ID ].theme : 'dark';
return (
<div className={`uikit-body uikit... |
src/javascript/wizard/media_length.js | apertus-open-source-cinema/elmyra | import React from 'react';
import MediaResolution from './media_resolution.js';
export default class MediaLength extends React.Component {
static navigationTitle = 'Length';
constructor(props) {
super(props);
this.state = { length: 6 };
}
changeLength = event => {
this.setState({ length: parseIn... |
src/svg-icons/image/transform.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
src/svg-icons/navigation/arrow-drop-down.js | ruifortes/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... |
examples/redux/render/server.js | dlmr/react-router-redial | import { triggerHooks, useRedial } from '../../../lib/index';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { createMemoryHistory, match, applyRouterMiddleware } from 'react-router';
import { Provider } from 'react-redux';
// Render the app server-side for a given path:
export d... |
frontend/src/pages/search/index.js | miurahr/seahub | import React from 'react';
import ReactDOM from 'react-dom';
import CommonToolbar from '../../components/toolbar/common-toolbar';
import Logo from '../../components/logo';
import SearchViewPanel from './main-panel';
import { siteRoot } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import '..... |
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Lshreya/UniversalProject | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/CollapsibleMixin.js | AlexKVal/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState(){
let defaultExpanded = ... |
docs/src/app/components/pages/components/CircularProgress/Page.js | spiermar/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 circleProgressReadmeText from './README';
import circleProgressCode from ... |
src/templates/index-template.js | amoseui/blog | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
src/Row.js | herojobs/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... |
frontend/modules/main/routes.js | boo1ean/wtftm | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './roots/app';
export default (
<Route component={App} path="/">
</Route>
);
|
springboot/GReact/src/main/resources/static/app/routes/graphs/containers/FlotCharts.js | ezsimple/java | import React from 'react'
import FlotChart from '../../../components/graphs/flot/FlotChart'
import request from 'then-request'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
export default class FlotCharts extends React.Component {
state = {};
componentWillMount() {
... |
src/index.js | abuKhadijah/my-retail-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './js/components/App';
import './index.css';
import '../node_modules/react-responsive-carousel/lib/styles/carousel.min.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
6.1.0/examples/syncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(270),e.exports=n(269)},function(e,t,n){var r=n(5),o=n(36),i=n(20),a=n(21),u=n(37),s="prototype",... |
src/App.js | chakrihacker/react-weather | import React, { Component } from 'react';
import './App.css';
class CurrentTemp extends React.Component {
render() {
return (
<div className="currentTemp">
<span className="temp">
{this.props.temp}°
<a href='#' className='convertTemp' onClick={this.props.handleTempConversio... |
Client/src/modules/header/Header.js | Aldarov/StudentEmployment | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButton';
import Typography from '@material-ui/core/Typography';... |
src/docs/components/split/SplitExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Split from 'grommet/components/Split';
import Box from 'grommet/components/Box';
import InteractiveExample from '../../../components/InteractiveExample';
Split.displayName = 'Split';
const PROPS_SCHE... |
7.0.3/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
test/test_helper.js | richgurney/ReduxBlogBoilerPlate | 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... |
app/src/components/prelim/index.js | ajfisher/tourney-tools | import _ from 'lodash';
import React, { Component } from 'react';
import ReactGA from 'react-ga';
import {Container, Header, Menu } from 'semantic-ui-react'
import Fixture from '../fixture';
import Leaderboard from '../leaderboard';
const points = { win: 3, lose: 1, draw: 2 };
class Preliminary extends Component {
... |
example/base/index.js | yesvods/react-toggles | import React from 'react';
import ReactDOM from 'react-dom';
import Toggles from '../../lib';
class Example extends React.Component {
constructor(){
super();
this.state = {
toggle60: true,
toggle120: true,
toggle180: false,
};
}
render(){
return (
<span>
<div><span... |
src/components/Code.js | MicheleBertoli/snapguidist | import React from 'react'
import PropTypes from 'prop-types'
import { UnControlled as CodeMirror } from 'react-codemirror2'
require('codemirror/mode/diff/diff')
require('codemirror/mode/jsx/jsx')
const Code = (props, context) => {
const highlightTheme = context.config.highlightTheme
|| context.config.editorConf... |
frontend/src/components/eois/details/overview/results/agencyResults/recommendedPartners/recommendedPartners.js | unicef/un-partner-portal | import R from 'ramda';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import { withRouter } from 'react-router';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import Hea... |
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/donation/components/donation-finish-post-donation.js | nossas/bonde-client | import React from 'react';
import { bool, object } from 'prop-types';
import * as paths from '../../../../../paths';
import { FinishPostDonationComponent } from '../../../../../components/post-donation';
const DonationFinishPostDonation = ({ preview, mobilization, widget }) => {
return (
<FinishPostDonationComp... |
packages/wix-style-react/src/MessageModalLayout/docs/examples/IllustrationExample.js | wix/wix-style-react | /* eslint-disable */
import React from 'react';
class BasicExample extends React.Component {
render() {
return (
<MessageModalLayout
onCloseButtonClick={() => {}}
primaryButtonText="Report"
secondaryButtonText="Cancel"
title="Report as Spam?"
sideActions={<Checkbox>D... |
src/routes/index.js | plugged/react-starter | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import Counter from 'components/Counter';
import About from 'components/About';
import NotFound from 'components/NotFound';
const Routes = () => (
<Switch>
<Route path="/" exact component={Counter} />
<Route path="/about" exact com... |
src/modules/Dimmer/DimmerDimmable.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
/**
* A dimmable sub-component for Dimmer.
*/
function DimmerDimmable(props) {
const { blurring, cla... |
src/routes/order/Filter.js | miaoji/guojibackend | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import { FilterItem } from '../../components'
import { Form, Button, Row, Col, DatePicker, Input, Cascader, Switch } from 'antd'
import city from '../../utils/city'
const Search = Input.Search
const { RangePicker } = DatePicker
c... |
src/routes/notifications/index.js | nambawan/g-old | import React from 'react';
import Layout from '../../components/Layout';
import { getSessionUser } from '../../reducers';
import NotificationListContainer from './NotificationListContainer';
import { loadNotificationList } from '../../actions/notification';
const title = 'Notifications';
async function action({ store... |
src/svg-icons/image/looks-3.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks3 = (props) => (
<SvgIcon {...props}>
<path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v... |
demo/sections/Example/CloseTag.js | joshq00/react-mdl | import React from 'react';
import getTag from './getTag';
export default function CloseTag( props ) {
const child = props.el;
const tag = getTag( child );
const childCount = React.Children.count( child.props.children );
if ( childCount === 0 ) {
return <span />;
}
return (
<cod... |
src/interface/icons/Performance.js | FaideWW/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/performance/952795/
// performance by pictohaven from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}>
<path d="M 50 6 C 25.723154 6 6 25.72312 6 50 C 6 74.2768 25.723154 94 50... |
20161210/RN-test/src/containers/WebViewContainer.js | fengnovo/react-native | import React, { Component } from 'react';
import {connect} from 'react-redux';
import WebViewPage from '../pages/WebViewPage';
class WebViewContainer extends Component {
render () {
return (
<WebViewPage {...this.props} />
);
}
}
function mapStateToProps (state) {
const {reddit} = state;
return... |
hub-ui/src/components/layout/PublicPage.js | lchase/hub | import React, { Component } from 'react';
import $ from 'jquery';
export default class PublicPage extends React.Component {
componentDidMount() {
console.log('mounted');
console.log($(document.body));
$(document.body).addClass('hold-transition login-page');
// class="hold-transition skin-blue sidebar... |
admin/client/components/ItemsTable.js | Ftonso/keystone | import React from 'react';
import classnames from 'classnames';
import Columns from '../columns';
import CurrentListStore from '../stores/CurrentListStore';
import ListControl from './ListControl';
import TableRow from './ItemsTableRow';
import DrapDrop from './ItemsTableDragDrop';
const TABLE_CONTROL_COLUMN_WIDTH = ... |
src/js/components/icons/base/Attraction.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
albums/src/components/common/Button.js | victorditadi/IQApp | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const ButtonForm = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={onPress} style={buttonStyle}>
<Text style={textStyle}>
{children}
</Text>
</T... |
src/Badge.js | thealjey/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
getDefaultProps() {
return {
pullRight: false
};
},
hasContent() {
re... |
docs/src/app/components/pages/components/Dialog/ExampleScrollable.js | pomerantsev/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton';
const styles = {
radioButton: {
marginTop: 16,
},
};
/**
* Dialog co... |
React_Router_tutorial/modules/Repos.js | luongthomas/React-Portfolio | import React from 'react';
import NavLink from './NavLink';
export default React.createClass({
contextTypes: {
router: React.PropTypes.object,
},
handleSubmit(event) {
event.preventDefault();
const userName = event.target.elements[0].value;
const repo = event.target.elements[1].value;
const ... |
src/parser/hunter/shared/modules/talents/BindingShot.js | sMteX/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import React from 'react';
/**
* Fires a magical projectile, tethering the enemy and any other enemies within 5 yards for 10 sec, rooting them in place for 5 sec if th... |
examples/fiber/debugger/src/Editor.js | richiethomas/react | import React, { Component } from 'react';
class Editor extends Component {
constructor(props) {
super(props);
this.state = {
code: props.code
};
}
render() {
return (
<div style={{
height: '100%',
width: '100%'
}}>
<textarea
value={this.state.c... |
src/components/case-study/single/templates/base-study-template.js | adrienhobbs/redux-glow | import React from 'react';
import ResultsTemplates from 'components/case-study/content-modules/results/templates/templates.js';
export class BaseStudyComponent extends React.Component {
static propTypes = {
data: React.PropTypes.object
};
createMarkup (markup) {
return {__html: markup};
}
construc... |
packages/lore-hook-forms-bootstrap/src/blueprints/destroy/Wizard/Wizard.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import _ from 'lodash';
import { Overlay, Request } from 'lore-react-forms-bootstrap';
import formMap from './formMap';
export default createReactClass({
displayName: 'Wizard',
propTypes: {
steps:... |
modules/react-router-2.5.2/modules/Router.js | nanyou-environment/enBackEnd | import createHashHistory from 'history/lib/createHashHistory'
import useQueries from 'history/lib/useQueries'
import invariant from 'invariant'
import React from 'react'
import createTransitionManager from './createTransitionManager'
import { routes } from './InternalPropTypes'
import RouterContext from './RouterConte... |
src/app/components/Picker.js | sphinxominator/councils-feathers | import React from 'react'
import styled from 'styled-components'
import { withState, withHandlers, compose } from 'recompact'
import onClickOutside from 'react-onclickoutside'
import { lighten } from 'polished'
export const Picker = ({ columns, options, selectedOption, onOptionClick }) =>
<OptionsList>
{option... |
src/components/SEO.js | DBozhinovski/beerjs.mk | /* eslint-disable react/require-default-props */
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import config from '../../config/SiteConfig';
const SEO = props => {
const { postNode, postPath, postSEO } = props;
let title;
let description;
let image;
let pos... |
src/server.js | gipiman/excel-merge-tool | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
import path from 'path';
import e... |
client/src/components/Home/WithNewMessageNotification.js | seripap/darkwire.io | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { notify, beep } from 'utils/notifications';
import Tinycon from 'tinycon';
import { toggleNotificationAllowed, toggleNotificationEnabled } from 'actions';
const mapStateToProps = state => {
return {
activities: state.activit... |
Example/Example.js | rpopovici/react-native-camera | import React from 'react';
import {
Image,
StatusBar,
StyleSheet,
TouchableOpacity,
View,
} from 'react-native';
import Camera from 'react-native-camera';
const styles = StyleSheet.create({
container: {
flex: 1,
},
preview: {
flex: 1,
justifyContent: 'flex-end',
alignItems: 'center',
... |
client/src/components/base/LoadingButton.js | hmilyjeny/HAKA | /**
* LoadingButton.js
*
* Wraps the loading indicator in a tag with the .btn--loading class
*/
import React from 'react';
import LoadingIndicator from './LoadingIndicator';
function LoadingButton(props) {
return(
<a href="#" className={props.className + " btn btn--loading"} disabled="true">
<LoadingI... |
wrappers/md.js | etaiklein/gameghost | import React from 'react'
import PropTypes from 'prop-types'
import 'css/markdown-styles.css'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Markdown extends React.Component {
static propTypes = {
router: PropTypes.object,
}
render() {
const post = this.props.rout... |
frontend/src/Components/Link/Link.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Link as RouterLink } from 'react-router-dom';
import styles from './Link.css';
class Link extends Component {
//
// Listeners
onClick = (event) => {
const {
isDisabled,
on... |
src/components/BreadCrumbs/BreadCrumbs.js | goldylucks/adamgoldman.me | // @flow
import React from 'react'
import Link from '../Link'
type Props = {
crumbs: Array<Object>,
basePath?: string,
}
const BreadCrumbs = ({ crumbs, basePath, ...restProps }: Props) => (
<div {...restProps}>
<Link to={basePath}>Home</Link>
{crumbs.map((c, idx) =>
idx === crumbs.length - 1 ? (... |
docs/src/pages/demos/drawers/MiniDrawer.js | AndriusBil/material-ui | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import classNames from 'classnames';
import Drawer from 'material-ui/Drawer';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'materia... |
src/components/IconBase/IconBase.js | fbfeix/react-icons | import React from 'react';
export default class IconBase extends React.Component {
render() {
return <span className="icon-panel">
<svg className="icon" version="1.1" x="0px" y="0px"
viewBox="0 0 512 512" enable-background="new 0 0 512 512">
{this.props.children}
... |
public/js/components/trends/trendactivitySharedList.react.js | IsuruDilhan/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import CardMedia from 'material-ui/lib/card/card-media';
import CardText from 'material-ui/lib/card/card-text';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/... |
dev/example-studio/parts/blockEditor/AuthorAnnotation.js | sanity-io/sanity | import React from 'react'
import PropTypes from 'prop-types'
import ReactTooltip from 'react-tooltip'
import sanityClient from 'part:@sanity/base/client'
import styles from './AuthorAnnotation.css'
const client = sanityClient.withConfig({apiVersion: '1'})
export default class AuthorAnnotation extends React.Component ... |
stories/SingleDatePicker_calendar.js | airbnb/react-dates | import React from 'react';
import moment from 'moment';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import SingleDatePickerWrapper from '../examples/SingleDatePickerWrapper';
import { VERTICAL_ORIENTATION, ANCHOR_RIGHT, OPEN_UP } from '../src/constants';
const Test... |
client/src/LocaleIcons.js | ciex/mietlimbo | import React from 'react'
// For attributions see:
// https://support.flaticon.com/hc/en-us/articles/207248209-How-I-must-insert-the-attribution-
// https://www.flaticon.com/free-icon/united-kingdom_206592
export const enIcon = <img alt="Switch to English" width={40} height={25} src="data:image/svg+xml;utf8;base64,... |
src/components/image-object.js | sballesteros/gallery | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { arrayify } from '../utils/jsonld';
export default class ImageObject extends Component {
static propTypes = {
maxHeight: PropTypes.number,
maxWidth: PropTypes.number,
className: Prop... |
code/L6/React Page Routing using React-Router/components/movies/movies-page.js | santhoshthepro/reactjs | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class MoviesPage extends Component{
render(){
return ( <div>
<h2>This is a Movies Page</h2>
</div>
);
}
} |
examples/todomvc/containers/TodoApp.js | gogobook/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Comp... |
rojak-ui-web/src/app/utils/SearchEngine.js | CodeRiderz/rojak | import React from 'react'
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
import Candidate from '../candidate/Candidate'
import Media from '../media/Media'
import { fetchCandidates } from '../candidate/actions'
import { fetchMedias } from '../media/actions'
class SearchEngine extends ... |
packages/reactor-kitchensink/src/examples/FormFields/CheckBoxField/CheckBoxField.js | dbuhrman/extjs-reactor | import React from 'react';
import { FormPanel, CheckBoxField } from '@extjs/ext-react';
export default function CheckBoxFieldExample() {
return (
<FormPanel shadow layout={{type: 'vbox', align: 'left'}} bodyPadding="10">
<CheckBoxField boxLabel="Unchecked"/>
<CheckBoxField boxLabel=... |
src/app.js | cameronjroe/react-boilerplate | import React from 'react'
import { render } from 'react-dom'
import Item from './'
render(
<Item />,
document.querySelector('.root')
)
|
react/gameday2/components/GamedayFrame.js | jaredhasenklein/the-blue-alliance | import React from 'react'
import AppBarContainer from '../containers/AppBarContainer'
import MainContentContainer from '../containers/MainContentContainer'
import ChatSidebarContainer from '../containers/ChatSidebarContainer'
import HashtagSidebarContainer from '../containers/HashtagSidebarContainer'
const GamedayFram... |
milestones/04-radium/After/src/nav.js | jaketrent/react-drift | import PropTypes from 'prop-types'
import Radium from 'radium'
import React from 'react'
import styles from './nav-styles.js'
function getPrevStyles(props) {
return props.hasPrevious ? styles.prev : styles.prevHidden
}
function getNextStyles(props) {
return props.hasNext ? styles.next : styles.nextHidden
}
func... |
src/options.js | emadalam/mesmerized | import React from 'react';
import ReactDOM from 'react-dom';
import App from './app';
import SettingsContainer from './containers/Settings';
ReactDOM.render(<App><SettingsContainer /></App>, document.getElementById('root'));
|
browser/app/js/components/Dropzone.js | dvstate/minio | /*
* Minio Cloud Storage (C) 2016 Minio, 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... |
src/layouts/template.js | victormoya/lavergeweb | import React from 'react';
import Helmet from 'react-helmet';
import Menu from '../components/menu';
import MenuMobile from '../components/menuMobile';
import Footer from '../components/footer';
import '../../static/scss/all.scss';
const TemplateWrapper = props => (
<div>
<Helmet
title="Laverg... |
src/index.js | Codility/Clicker | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
docs/src/IntroductionPage.js | xiaoking/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
src/client/admin/orders/orders.js | r3dDoX/geekplanet | import Avatar from '@material-ui/core/Avatar';
import Button from '@material-ui/core/Button';
import grey from '@material-ui/core/colors/grey';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import ... |
admin/client/components/ItemsTableDragDropZoneTarget.js | Ftonso/keystone | import React from 'react';
import { DropTarget } from 'react-dnd';
import CurrentListStore from '../stores/CurrentListStore';
let timeoutID = false;
// drop target
var ItemsTableDragDropZoneTarget = React.createClass({
displayName: 'ItemsTableDragDropZoneTarget',
propTypes: {
className: React.PropTypes.string,
... |
src/Value.js | dmatteo/react-select | import React from 'react';
import classNames from 'classnames';
const Value = React.createClass({
displayName: 'Value',
propTypes: {
children: React.PropTypes.node,
disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect
id: React.PropTypes.string, // Unique id ... |
packages/styled/flow-tests/base.js | emotion-js/emotion | /* eslint-disable no-unused-vars */
// @flow
import React from 'react'
import createStyled from '../src/base'
import type { CreateStyledComponent, StyledComponent } from '../src/utils'
const valid: StyledComponent<empty> = createStyled('div')({
color: 'red'
})
// $FlowFixMe: expect error - we can't cast a StyledCom... |
test/integration/css-fixtures/bad-custom-configuration-arr-2/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/shared/components/form/formInput/formInput.js | tskuse/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Label from 'shared/components/label/label';
import styles from './formInput.css';
class FormInput extends Component {
constructor() {
super();
this.state = {
text: '',
isValid: true,
};
}
handleChange = ... |
src/routes/acceptors/edit-edu/index.js | nagucc/jkef-wxe | /*
eslint-disable react/prop-types
*/
import React from 'react';
import EditEdu from './EditEdu';
import { addEdu, deleteEdu,
initEduHistory } from '../../../actions/acceptors/edu';
export default {
path: '/edit-edu/:id',
async action({ params, context }) {
const { id } = params;
const { dispatch } = c... |
packages/bonde-admin/src/app/context/hoc.js | ourcities/rebu-client | import React from 'react'
import Wrapper from './wrapper'
export default (Component) => ({ children, ...ownProps }) => (
<Wrapper component={Component} {...ownProps}>
{children}
</Wrapper>
)
|
src/client/components/index.js | caseywebdev/bruteball | import _ from 'underscore';
import average from 'shared/utils/average';
import Cursors from 'cursors';
import * as Game from 'shared/objects/game';
import GameComponent from 'client/components/game';
import React from 'react';
import THREE from 'three';
var KEYS = {
38: {down: false, direction: new THREE.Vector2(0, ... |
src/components/App/App.js | sarvex/ReactStarter | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
'use strict';
import './App.less';
import React from 'react';
import invariant from 're... |
src/routes/long_range/log/index.js | china2008qyj/DVA-DEMO | import React from 'react'
import PropTypes from 'prop-types'
import { routerRedux } from 'dva/router'
import { connect } from 'dva'
import { Row, Col, Button, Popconfirm } from 'antd'
import List from './List'
import Filter from './Filter'
import Modal from './Modal'
const Log = ({ location, dispatch, log, loading }) ... |
app/app.js | Voltmod/productSaver | /**
* 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... |
app/javascript/mastodon/features/blocks/index.js | pointlessone/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
packages/reactor-kitchensink/src/examples/Layouts/vbox/vbox.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container, Panel, Spacer } from '@extjs/ext-react';
import colors from '../../colors';
export default class VBoxLayoutExample extends Component {
render() {
const panelProps = {
height: 175,
margin: '0 0 40 0',
default... |
docs/app/Examples/views/Statistic/Content/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Content = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Value'
description='A statistic ca... |
information/blendle-frontend-react-source/app/components/navigation/DefaultNavigationBar/index.js | BramscoChill/BlendleParser | import React from 'react';
import { bool, func } from 'prop-types';
import { getCountryCode, translate } from 'instances/i18n';
import { getExceptionForCountry } from 'helpers/countryExceptions';
import classNames from 'classnames';
import {
BookmarkIcon,
BrowseIcon,
SearchIcon,
NavigationBar,
NavigationLeft,... |
packages/generators/generators/lib/files/plugin/admin/src/pages/App/index.js | wistityhq/strapi | /**
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
*/
import React from 'react';
import { Switch, Route } from 'react-router-dom';
import { NotFound } from '@strapi/helper-plugin';
import pluginId from '../../plu... |
src/parser/monk/windwalker/modules/spells/ComboStrikes.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatNumber, formatDuration } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'par... |
client/modules/messaging/components/.stories/conversation.js | kaibagoh/PitchSpot | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import Conversation from '../conversation.jsx';
storiesOf('messaging.Conversation', module)
.add('default view', () => {
return (
<Conversation />
);
})
|
src/js/components/Modal.js | rawild/thedatamediagroup | import React from 'react'
import Radium from 'radium'
import { connect } from '../redux/utils'
import Button from './Button'
const STYLES = {
/* Begin Modal Info */
modal: {
display: 'block', /* Hidden by default */
position: 'fixed', /* Stay in place */
zIndex: 1, /* Sit on top */
left: 0,... |
packages/icons/src/md/notification/DoNotDisturbAlt.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdDoNotDisturbAlt(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 4c11 0 20 9 20 20s-9 20-20 20S4 35 4 24 13 4 24 4zM8 24c0 3.7 1.3 7.1 3.4 9.8l22.4-22.4C31.1 9.3 27.7 8 24 8 15.2 8 8 15.2 8 24zm16 16c8.... |
projects/twitch-ui/src/components/StreamPlayerFrame.stories.js | unindented/twitch-x | import React from 'react'
import {storiesOf} from '@storybook/react'
import StreamPlayerFrame from './StreamPlayerFrame'
const stream = {
id: 'playoverwatch'
}
storiesOf('StreamPlayerFrame', module)
.add('default', () => (
<StreamPlayerFrame
stream={stream}
/>
))
|
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsNoneButState.js | MichaelDeBoey/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<void, Props, State> {
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<void, Props, State> {
defaultProps: T;
static prop... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.