path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
actor-apps/app-web/src/app/components/DialogSection.react.js | vanloswang/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
im... |
src/containers/code-split-chunk/index.js | btoo/btoo.github.io | import React from 'react'
import { push } from 'react-router-redux'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import {
increment,
incrementAsync,
decrement,
decrementAsync
} from '../../modules/counter'
const Home = props => (
<div>
<h1>dat code split doe</h1>
... |
src/js/components/MaskedInput/stories/Filtered.js | grommet/grommet | import React from 'react';
import { Box, MaskedInput } from 'grommet';
const data = {
Cummings: [
'a pretty day',
'i carry your heart with me',
'if you like my poems let them',
],
Chaucer: ["The Knight's Tale", 'The General Prologue', "The Friar's Tale"],
Neruda: ['If You Forget Me', 'Love Sonnet X... |
src/views/components/RegisterForm.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import TextField from './TextField.js';
import Actions from './Actions.js';
import Button from './Button.js';
import {default as FormValidator, minLength, mustMatch, email} from '../form-validation.js';
import {connect} from 'react-redux';
import * as sessi... |
pages/blog/test-article-one.js | alexpalombaro/react-static | /**
* 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 1</h1>
<p>Co... |
node_modules/react-bootstrap/es/Col.js | joekay/awebb | 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 ... |
App/ui/components/Footer.js | CaipiLabs/caipi | /*
* Copyright (c) 2018. Wise Wild Web
*
* This File is part of Caipi and under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License
* Full license at https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
*
* @author : Nathanael Braun
* @contact : caipilabs@gmail.com... |
client/src/components/Nav.js | BrianMehrman/rails_probe | import React, { Component } from 'react';
class Nav extends Component {
renderSideList(data) {
return (
<div className="sidebar-nav navbar-collapse">
<ul className="nav" id="side-menu">
<li className="sidebar-search">
<div className="input-group custom-search-form">
... |
src/svg-icons/editor/vertical-align-center.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/>
</SvgIcon>
);
EditorVerticalAlignCenter = pure(EditorVerticalAlig... |
packages/wix-style-react/src/FilePicker/test/FilePicker.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import FilePicker from '../FilePicker';
const defaultProps = {
mainLabel: 'Choose File',
};
const tests = [
{
describe: '',
its: [
{
it: 'default',
props: {},
},
{
it: 'header',
prop... |
src/svg-icons/action/work.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWork = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/>... |
src/components/Footer/Footer.js | Nexapp/react-starter-kit | /**
* 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 React from 'react';
import withStyles from 'isomorp... |
js/components/card/index.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Left, Body, Right, List, ListItem } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
dist/src/index.js | radiovisual/radiovisual.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import FontFaceObserver from 'fontfaceobserver';
import SideBar from './components/SideBar';
import ThumbContainer from './components/ThumbContainer';
// Observe loading of Lato
const openSansObserver = new FontFaceObserver('Lato', {});
// When Lato is load... |
combine-bak/index.js | lizichen0403/201704slider | import React from 'react';
import ReactDOM from 'react-dom';
import Counter from "./components/Counter";
import Todos from "./components/Todos";
ReactDOM.render(<div>
<Counter/>
<Todos/>
</div>,document.querySelector('#root')); |
demo/component/PolarAngleAxis.js | sdoomz/recharts | import React from 'react';
import {Surface, PolarAngleAxis} from 'recharts';
const ticks = [
{ value: '100', angle: 20 },
{ value: '200', angle: 80 },
{ value: '300', angle: 120 },
{ value: '400', angle: 180 },
{ value: '500', angle: 240 },
{ value: '600', angle: 290 },
];
export default React.createClass... |
app/views/AdditionalFilterView.js | hippothesis/Recipezy | /*
* Copyright 2017-present, Hippothesis, 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.
*/
'use strict';
import React, { Component } from 'react';
import { View, ScrollView, Image, StatusBar, TextIn... |
docs/app/Examples/elements/Segment/Groups/SegmentExamplePiledSegments.js | shengnian/shengnian-ui-react | import React from 'react'
import { Segment } from 'shengnian-ui-react'
const SegmentExamplePiledSegments = () => (
<Segment.Group piled>
<Segment>Top</Segment>
<Segment>Middle</Segment>
<Segment>Bottom</Segment>
</Segment.Group>
)
export default SegmentExamplePiledSegments
|
src/About.js | davertron/react-spa | import React from 'react';
export default props => {
return <div>
<h2>About</h2>
<p>A simple example of a React single page application.</p>
</div>;
}
|
src/components/ModalForm.js | bostonjukebox/boston-jukebox-reactjs | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
const Container = styled.section`
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
overflow: hidden;
background: rgba(0, 0, 0, 0.6);
`
const Content = styled.section`
... |
src/component/dashboard-container/index.js | arn1313/kritter-frontend | import React from 'react';
import { connect } from 'react-redux';
import { userFetchRequest } from '../../action/auth-actions';
import { postCreateRequest, postFetchAllRequest } from '../../action/post-actions';
import { Button } from 'react-bootstrap';
import PostForm from '../post-form';
import PostList from '../post... |
src/components/SocketTerminal.js | williamcabrera4/chrome-app-websocket-tester | import React from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import SocketTerminalList from '../containers/SocketTerminalList';
import { ConnectionStatus } from '../constant/Constants';
import { SocketContainerAction }... |
techCurriculum/ui/solutions/5.2/src/components/TextInput.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* 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... |
node_modules/@material-ui/core/es/NativeSelect/NativeSelect.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import NativeSelectInput from './NativeSelectInput';
import withStyles from '../styles/withStyles';
impor... |
src/components/Header/Header.js | utkdigitalinitiatives/ibu |
import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.scss';
import Link from '../Link';
import Navigation from '../Navigation';
class Header extends Component {
render() {
return (
<div className={s.root}>
<div classNam... |
pootle/static/js/admin/components/Language/LanguageAdd.js | pavels/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import LanguageForm from './La... |
fixtures/dom/src/components/fixtures/input-change-events/RadioClickFixture.js | AlmeroSteyn/react | import React from 'react';
import Fixture from '../../Fixture';
class RadioClickFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
changeCount: 0,
};
}
handleChange = () => {
this.setState(({ changeCount }) => {
return {
ch... |
Hackathon-111/SecurityController/react_test/frontend/src/App.js | kimjinyong/i2nsf-framework | import React, { Component } from 'react';
import { BrowserRouter, Route,Switch } from 'react-router-dom';
import { Table1,Table2 } from './';
class App extends Component {
render() {
return (
<BrowserRouter>
<Switch>
<Route exact path="/" component={Table1}/>
... |
app/jsx/files/UsageRightsSelectBox.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/EventRow.js | jquense/react-big-calendar | import PropTypes from 'prop-types'
import clsx from 'clsx'
import React from 'react'
import EventRowMixin from './EventRowMixin'
class EventRow extends React.Component {
render() {
let {
segments,
slotMetrics: { slots },
className,
} = this.props
let lastEnd = 1
return (
<di... |
examples/with-apollo/lib/withData.js | dizlexik/next.js | import 'isomorphic-fetch'
import React from 'react'
import { ApolloProvider, getDataFromTree } from 'react-apollo'
import { initClient } from './initClient'
export default (Component) => (
class extends React.Component {
static async getInitialProps (ctx) {
const headers = ctx.req ? ctx.req.headers : {}
... |
public/js/components/profile/activityfeed/activityComp1.react.js | IsuruDilhan/Coupley | // import React from 'react';
// import Card from 'material-ui/lib/card/card';
// import CardActions from 'material-ui/lib/card/card-actions';
// import CardHeader from 'material-ui/lib/card/card-header';
// import CardMedia from 'material-ui/lib/card/card-media';
// import CardTitle from 'material-ui/lib/card/card-tit... |
src/demos/building-a-geospatial-app/5-interaction/src/controls.js | uber-common/vis-academy | import React, { Component } from 'react';
import { mapStylePicker, layerControl } from './style';
export const HEXAGON_CONTROLS = {
showHexagon: {
displayName: 'Show Hexagon',
type: 'boolean',
value: true
},
radius: {
displayName: 'Hexagon Radius',
type: 'range',
value: 100,
step: 50,... |
src/scripts/components/header.js | brandly/ss15-queso | /** @jsx REACT.DOM */
import React from 'react';
import {classSet} from 'react-addons';
import keymaster from 'keymaster';
export default React.createClass({
componentWillMount: function () {
this.state.queso.on('STATE_CHANGED', this._onChange);
keymaster('space', this.onSpace);
},
getInitialState: func... |
codes/chapter05/react-router-v4/basic/demo01/app/index.js | atlantis1024/react-step-by-step | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
ReactDOM.render(<App/>, document.getElementById("root"));
|
ui/js/pages/event/EventSectionEdit.js | ericsoderberg/pbc-web | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment-timezone';
import FormField from '../../components/FormField';
import SelectSearch from '../../components/SelectSearch';
import FormState from '../../utils/FormState';
import SectionEdit from '../../components/Secti... |
front/app/js/components/controls/TiltCover.js | nudoru/React-Starter-3 | import React from 'react';
import PropTypes from 'prop-types';
import { TweenMax, Back, Expo } from 'gsap';
import { css } from 'emotion';
import { MouseWatch } from './common/MouseWatch';
import { joinClasses } from '../../utils/componentUtils';
import {ThreeDEl, ThreeDWrapper} from './common/Atoms';
/*
This was ulti... |
client/common/components/link.js | jaketrent/gratigoose | import { connect } from 'react-redux'
import React from 'react'
import styleable from 'react-styleable'
import css from './link.css'
import * as urlUtil from '../url'
const { bool, string } = React.PropTypes
class Link extends React.Component {
render() {
const { href, basePath, ...props } = this.props
ret... |
node_modules/react-router/es6/IndexRoute.js | rblin081/drafting-client | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
app/javascript/mastodon/components/column_header.js | pointlessone/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
const messages = defineMessages({
show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' },
hide: { id: 'column_header.h... |
src/components/UserList.js | cuebrick/TypeWriter | import React from 'react';
class UserList extends React.Component{
handleItemClick(userId){
this.props.selectUser(userId);
}
handleDeleteUser(userId){
this.props.deleteUser(userId);
}
render(){
let userList = Object.keys(this.props.users).map((key) => {
return this.props.users[key];
});
return(
... |
staticfiles/js/components/SocialMediaLink/SocialMediaLink.js | alemneh/negativity-purger | import React from 'react';
import styles from './SocialMediaLink.css';
const SocialMediaLink = ({ name, url }) => {
return (
<li className={styles.twitterBtn}>
<a href={url}>{name}</a>
</li>
)
};
export default SocialMediaLink;
|
src/common/Notification/NotificationCloseButton.js | Syncano/syncano-dashboard | import React from 'react';
const NotificationCloseButton = ({ isVisible, onClick }) => {
const styles = {
root: {
position: 'absolute',
top: 4,
right: 8,
cursor: 'pointer',
fontWeight: 700
}
};
if (isVisible) {
return (
<div
style={styles.root}
onC... |
src/product/AmountSelectionContainer.js | eldavojohn/myRetail-practice-app | import React from 'react'
import { connect } from 'react-redux'
import { incrementAmount, decrementAmount } from '../actions/ProductActions'
import AmountSelection from './AmountSelection'
let AmountSelectionContainer = ({ amountSelected, dispatch }) => {
return (
<AmountSelection amount={amountSelected} inc... |
ui/src/pages/DataSourcePage/ExportManager/ExportForm/ExportOutputPreview.js | LearningLocker/learninglocker | /* eslint-disable react/jsx-indent */
import { isString } from 'lodash';
import React from 'react';
import styled from 'styled-components';
import PropTypes from 'prop-types';
import { Map } from 'immutable';
import { withProps, compose, setPropTypes, shouldUpdate, defaultProps } from 'recompose';
import { MultiGrid, A... |
src/containers/TimetableDay.js | Dennitz/Timetable | // @flow
import React from 'react';
import { connect } from 'react-redux';
import CourseAppointment from '../components/CourseAppointment';
import DayBorder from '../components/DayBorder';
/* eslint-disable react/no-unused-prop-types, because of false positive */
type Props = {
courses: CoursesState,
day: string,... |
examples/hot-reloading/src/main.js | adisuryadi/nuclear-js | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'nuclear-js-react-addons'
import App from './containers/App'
import reactor from './reactor'
render(
<Provider reactor={reactor}>
<App />
</Provider>,
document.getElementById('root')
)
|
src/containers/Signin.js | Seeingu/medium-demo | import React, { Component } from 'react';
import styled from 'styled-components';
import { Link, Redirect } from 'react-router-dom';
import { PrimaryButton } from '../styles';
import { InputValidation, Header } from '../components';
import { notifyFailed } from 'see-common-components';
import { connect } from 're... |
src/js/components/icons/base/Eject.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... |
src/components/AccountInfo.js | jperez10/RobinHoodAutoTrader | import React from 'react';
const AccountInfo = (props) => {
return(
<div className="accountInfo">
<div> Account Number: {props.state.accountNumber} </div>
</div>
);
}
export default AccountInfo;
|
src/client/components/component.react.js | sljuka/portfolio-este | import React from 'react';
import shallowEqual from 'react-pure-render/shallowEqual';
/**
* Purified React.Component. Goodness.
* http://facebook.github.io/react/docs/advanced-performance.html
*/
export default class Component extends React.Component {
static contextTypes = {
router: React.PropTypes.func
}... |
client/index.js | DonPage/TelePlay | // Import NPM dependencies like this:
import React from 'react';
import ReactDOM from 'react-dom';
// Import styles like this:
import './styles/main.scss';
// Import dependencies like this:
import Goat from './components/goat-component';
import Player from './components/player-component';
class App extends React.Com... |
packages/react-server-examples/bike-share/components/footer.js | szhou8813/react-server | import React from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
export default () => {
logger.info('rendering the footer');
return (<div className="footer">
<span>Brought to you by </span>
<a href="http://github.com/redfin/react-server">React Server</a>
<span> an... |
src/components/menu/Navigation.js | mBeierl/Better-Twitch-Chat | import React from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import SVGNavMenu from 'material-ui/svg-icons/navigation/menu';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import Avatar from 'material-ui/Avatar';
impo... |
src/components/IngestionWizard/WizardDataSchema.js | giux78/daf-dataportal | import React from 'react';
import {render} from 'react-dom';
import {getJsonCatalog} from './inputform_reader.js'
import {processInputFile, getFlatSchema} from './avroschema.js'
import DataInputForm from './data_form.js'
import $ from 'jquery';
import FormSectionDataSchema from './WizardFormCommon.js'
const data_dcata... |
app/javascript/mastodon/features/reblogs/index.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
browser/react/BugReportForm.js | Bombanauts/Bombanauts | import React, { Component } from 'react';
import { connect } from 'redux';
import TextField from 'material-ui/TextField'
export default class BugReportForm extends Component {
constructor(props) {
super(props)
this.state = {
show: false,
title: '',
name: '',
email: '',
descript... |
example/index.js | travi/hapi-react-router | // #### Dependencies:
import React from 'react';
import {IndexRoute, Route} from 'react-router';
import {createStore} from 'redux';
import {Provider} from 'react-redux';
// #### Register with the Hapi server
// remark-usage-ignore-next 5
function Wrap() {
return null;
}
function Index() {
return null;
}
function ... |
src/components/CardButton.js | nunoblue/ts-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Tooltip } from 'antd';
class CardButton extends Component {
static propTypes = {
content: PropTypes.string,
iconClassName: PropTypes.string,
}
static defaultProps = {
content: '',
iconCl... |
installer/frontend/trail.js | joshix/tectonic-installer | import _ from 'lodash';
import React from 'react';
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable';
import { commitPhases } from './actions';
import { PLATFORM_TYPE, DRY_RUN } from './cluster-config';
import { CertificateAuthority } from './components/certificate-authority';
import { ClusterInfo ... |
src/routes/authority/endpoint/List.js | muidea/magicSite | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal, Tag } from 'antd'
import { DropOption, Status } from '../../../components'
const { confirm } = Modal
const List = ({ onUpdateItem, onDeleteItem, ...tableProps }) => {
const handleMenuClick = (record, e) => {
if (e.key === '1') {... |
docs/examples/Form/Example6.js | romagny13/react-form-validation | import React from 'react';
import { Label } from 'romagny13-react-form-validation';
/** Customization with a CSS Framework */
const Example6 = () => {
return <iframe width="100%" height="800" frameBorder={false} src="./custom/demo.html" />;
};
export default Example6;
|
src/esm/components/form/date-picker/components/navbar.js | KissKissBankBank/kitten | import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
import React, { Component } from 'react';
import styled, { css } from 'styled-components';
import { ArrowIcon } from '../../../graphics/icons/arrow-icon';
import { pxToRem } from '../../../../helpers/utils/typography';
var StyledArrowIcon = styled.div.w... |
docs/src/components/nav.js | usirin/nuclear-js | import React from 'react'
import { BASE_URL } from '../globals'
function urlize(uri) {
return BASE_URL + uri
}
export default React.createClass({
render() {
const logo = this.props.includeLogo
? <a href={BASE_URL} className="brand-logo">NuclearJS</a>
: null
const homeLink = this.props.includeL... |
ReactNativeApp/react-native-starter-app/src/components/ui/TabIcon.js | jjhyu/hackthe6ix2017 | /**
* Tabbar Icon
*
<TabIcon icon={'search'} selected={false} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'react-native-elements';
import { AppColors } from '@theme/';
/* Componen... |
src/components/Communicator/CommunicatorDialog/CommunicatorDialogButtons.component.js | shayc/cboard | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import TextField from '@material-ui/core/TextField';
import SearchIcon from '@material-ui/icons/Search';
import IconButton from '../../UI/IconButton';
import MenuIcon from '@material-ui/icons/MoreVert';
import Menu from ... |
src/js/components/nav/NavMoreLinks.js | getblank/blank-web-app | /**
* Created by kib357 on 28/02/16.
*/
import React from 'react';
import BsLink from './BsLink';
class NavMoreLinks extends React.Component {
constructor(props) {
super(props);
this.state = {};
this.toggle = this.toggle.bind(this);
this.handleLinkClick = this.handleLinkClick.bin... |
examples/todomvc/index.js | Jyrno42/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
packages/react-scripts/fixtures/kitchensink/src/index.js | in2core/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById(... |
app/templates/server.js | v2018z/generator-fluxible | /**
* This leverages Express to create and run the http server.
* A Fluxible context is created and executes the navigateAction
* based on the URL. Once completed, the store state is dehydrated
* and the application is rendered via React.
*/
import express from 'express';
import compression from 'compression';
im... |
src/app.js | tykarol/redux-isomorphic-starter-kit | import React from 'react';
import ReactDOM from 'react-dom';
import { reduxReactRouter } from 'redux-router';
import createHistory from 'history/lib/createBrowserHistory';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Root } from 'containers';
import configureStore from 'stores/configureStore';
im... |
client/src/components/Public/EntitySearchAutocomplete/EntitySearchAutocomplete.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import {compose, withHandlers} from 'recompose'
import {Form, InputGroup, InputGroupAddon, Button} from 'reactstrap'
import {connect} from 'react-redux'
import {
setEntitySearchValue,
setEntitySearchFor,
toggleModalOpen,
setDrawer,
setEntitySearchOpen,
closeAddressDetail,... |
commands/init/templates/src/home/index.js | garbas/neo | import React from 'react';
export default function Home() {
return (
<div>
<h1>Home</h1>
</div>
);
}
Home.displayName = 'Home';
|
rest-ui-scripts/template/src/resources/Comment/crud/list/Filter.js | RestUI/create-rest-ui-app | import React from 'react';
import { Filter as CrudFilter, ReferenceInput, SelectInput } from 'rest-ui/lib/mui';
const Filter = ({ ...props }) => (
<CrudFilter {...props}>
<ReferenceInput source="post_id" reference="posts">
<SelectInput optionText="title" />
</ReferenceInput>
</CrudF... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | JackSSS/plo | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
newclient/scripts/components/editor/block-style-controls/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
License, or (at your ... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionsTableSchema.js | jlsherrill/katello | /* eslint-disable import/prefer-default-export */
import React from 'react';
import { Icon } from 'patternfly-react';
import { Link } from 'react-router-dom';
import helpers from '../../../../move_to_foreman/common/helpers';
import { entitlementsInlineEditFormatter } from './EntitlementsInlineEditFormatter';
import {
... |
src/components/Snake/Head.js | nataly87s/rx-snake | import React from 'react';
import glamorous from 'glamorous';
import { SOLUTO_BLUE } from '../../resources/colors';
const Line = glamorous.line({
fill: '#FFFFFF',
strokeWidth: 8,
strokeLinecap: 'round',
strokeMiterlimit: 10,
});
const TransparentPath = glamorous.path({
opacity: 0.4,
});
const HeadSvg = ({ s... |
component/projectOverview.js | jstogether/jstogether | import React from 'react'
import Component from './component';
import _ from 'lodash';
import marked from 'react-marked';
import moment from 'moment-timezone';
import Team from './team';
import AppActions from '../action/app';
import SessionStore from '../store/session';
import TeamStore from '../store/team';
cons... |
src/svg-icons/notification/vibration.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVibration = (props) => (
<SvgIcon {...props}>
<path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0... |
web-admin/src/components/Motion.js | llqgit/pi | import React from 'react';
import ReactAccelerometer from 'react-accelerometer';
import { Motion, spring } from 'react-motion';
/* Combining React-Accelerometer with React-Motion */
const ReactAccelerometerMotion = () => (
<ReactAccelerometer>
{(position) => {
if (position) {
const { x, y } = posit... |
packages/bootstrap-shell/src/providers/Theme/Context.js | TarikHuber/react-most-wanted | import React from 'react'
export const Context = React.createContext(null)
export default Context
|
docs/src/examples/modules/Progress/Content/ProgressExampleBar.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleBar = () => <Progress percent={33} />
export default ProgressExampleBar
|
examples/query-params/app.js | maksad/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
blueocean-material-icons/src/js/components/svg-icons/action/pan-tool.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionPanTool = (props) => (
<SvgIcon {...props}>
<path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 ... |
src/views/components/Square.js | john-d-pelingo/tic-tac-toe | /* eslint-disable jsx-a11y/no-static-element-interactions */
import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
columnIndex: PropTypes.number.isRequired,
rowIndex: PropTypes.number.isRequired,
handleSquareClick: PropTypes.func.isRequired
};
class Square extends React.Component ... |
app/main.js | ElijahDolskij/random_app | import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import App from './components/App/App.jsx'
import configureStore from './store/configureStore'
const store = configureStore() // Вынес stor в отдельный файл
ReactDOM.render((
<Provider store={st... |
app/react-icons/fa/beer.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBeer extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m14.8 20v-8.6h-5.7v5.7q0 1.2 0.8 2.1t2 0.8h2.9z m22.8 10v4.3h-25.7v-4.3l2.9-4.3... |
client/src/components/Draftail/decorators/Document.js | wagtail/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import { gettext } from '../../../utils/gettext';
import Icon from '../../Icon/Icon';
import TooltipEntity from '../decorators/TooltipEntity';
const documentIcon = <Icon name="doc-full" />;
const missingDocumentIcon = <Icon name="warning" />;
const Docu... |
app/react-icons/fa/expeditedssl.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaExpeditedssl extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m20 1.4q-3.8 0-7.2 1.5t-5.9 4-4 5.9-1.5 7.2 1.5 7.2 4 5.9 5.9 4 7.2 1.5... |
src/svg-icons/social/person.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPerson = (props) => (
<SvgIcon {...props}>
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</SvgIcon>
);
SocialPerson = pure(Soc... |
src/app/components/AppBar.js | lili668668/lili668668.github.io | import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { withStyles } from '@material-ui/core/styles'
import MuiAppBar from '@material-ui/core/AppBar'
import Toolbar from '@material-ui/core/Toolbar'
const styles = theme => ({
root: {
background: theme.palette.prim... |
src/js/components/Anchor/stories/Weight.js | HewlettPackard/grommet | import React from 'react';
import { Anchor, Box } from 'grommet';
const WeightAnchor = () => (
<Box align="center" pad="large" gap="xsmall">
<Anchor href="#" label="Anchor default weight" />
<Anchor href="#" label="Anchor weight Normal" weight="normal" />
<Anchor href="#" label="Anchor weight Bold" weig... |
src/index.js | jma921/movie-collector | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
javascript/book-list/src/containers/book_list.js | sandislonjsak/react-learning-projects | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectBook } from '../actions/index';
import { bindActionCreators } from 'redux';
class BookList extends Component {
render() {
return(
<ul className="list-group col-sm-4">
{this.renderList()}
</ul>
... |
client/src/views/VCalls/VCalls.js | dmod/fdcallstats.com | import React, { Component } from 'react';
import { Card, CardBody, Col, Row, Table } from 'reactstrap';
class VCalls extends Component {
constructor(props) {
super(props);
this.state = {
message: null,
fetching: true
};
}
componentDidMount() {
fetch('/api/v1/all_calls')
.then... |
packages/material-ui-icons/legacy/BatteryCharging50TwoTone.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z" /><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v8.17h2.53L1... |
src/routes/notFound/index.js | KantanGroup/zuzu-sites | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 React from 'react';
import Layout from '../../co... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | thanhiro/techmatrix | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
client/page/home/debug.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
import { ExternalLink } from 'wp-plugin-components';
function DebugReport( debug ) {
const email =
'mailto:john@redirection.me?subject=Redirection%20Error&body=' + encodeURIComponent( debug );
const github ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.