path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
js/index.js | alrighty/recoub | import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
ReactDOM.render(<App />, document.getElementById('main'));
|
FirebaseTest/App.js | michelmarcondes/ReactNativeStudies | import React, { Component } from 'react';
import { View, Text, StyleSheet, Button } from 'react-native';
import firebase from 'firebase';
export default class App extends Component {
constructor(props) {
super(props);
this.state = { log: null };
this.getData = this.getData.bind(this);
... |
docs/0.61b5b6aaf2662b893229.js | heifade/quark-ui | webpackJsonp([0],{"0P4F":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return r});var a=n("Jmof"),l=(n.n(a),n("lkey")),s=n("UJDU"),i=n("Pp2j"),o=n("WB2H"),r=class extends a.Component{constructor(e){super(e),this.state={}}render(){var e=()=>{s.a.config({placemen... |
test/test_helper.js | tomdzi5/redux4 | 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... |
docs/src/app/components/pages/components/Checkbox/ExampleSimple.js | ngbrown/material-ui | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
import ActionFavorite from 'material-ui/svg-icons/action/favorite';
import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border';
const styles = {
block: {
maxWidth: 250,
},
checkbox: {
marginBottom: 16,
},
};
c... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | Johnnywang1221/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import InviteUserActions from 'actions/InviteUserActions';
import AvatarItem from 'components... |
stories/Welcome.js | JSBros/react-tinyletter | import React from 'react';
const styles = {
main: {
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
},
logo: {
width: 200,
},
link: {
color: '#1474f3',
textDecoration: 'none',
borderBottom: '1px ... |
src/data-fields/toggle-data-field.js | apconic/aos-forms | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Toggle from 'material-ui/Toggle';
export default class ToggleDataField extends Component {
static propTypes = {
value: PropTypes.bool,
labelText: PropTypes.string,
name: PropTypes.string,
onChange: PropTypes.func,
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | 0xaio/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id, ...rest } = { id: 0, user: { id: 42, ... |
client/components/Menu.js | rodrigok/GradeFaccat | import { Accounts } from 'meteor/accounts-base';
import { Meteor } from 'meteor/meteor';
import { withRouter } from 'react-router-dom';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FacebookLogin from 'react-facebook-login';
import { loginWithFacebook } from 'meteor-apollo-account... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | liuzwei/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
im... |
frontend/src/Components/Tooltip/Tooltip.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Manager, Popper, Reference } from 'react-popper';
import Portal from 'Components/Portal';
import { kinds, tooltipPositions } from 'Helpers/Props';
import dimensions from 'Styles/Variables/dimensio... |
nCoda-win32-x64/resources/app/js/react/ncoda.js | nCoda/Windows | // -*- coding: utf-8 -*-
// ------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/react/ncoda.js
// Purpose: React c... |
customView/node_modules/react-native/Libraries/Utilities/throwOnWrongReactAPI.js | TheKingOfNorway/React-Native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/svg-icons/action/speaker-notes.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotes = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-... |
src/components/logo.js | roman01la/ihub-events | import React from 'react';
import { LOGO } from '../config/config';
const Logo = () => <img className='ihub-logo' src={LOGO} width={180} />;
export default Logo;
|
5.2.3/src/routes.js | erikras/redux-form-docs | import React from 'react'
import { Router, Route, hashHistory } from 'react-router'
import markdownPage from 'components/markdownPage'
import App from 'pages/App'
import Home from 'pages/Home'
import Simple from 'pages/examples/Simple'
import ComplexValues from 'pages/examples/ComplexValues'
import File from 'pages/exa... |
components/Application.js | Crazy50/FluxBug | /*globals document*/
import React from 'react';
import Nav from './Nav';
import SessionNav from './SessionNav';
import Home from './Home';
import About from './About';
import NotificationList from './NotificationList';
import ApplicationStore from '../stores/ApplicationStore';
import provideContext from 'fluxible/a... |
packages/material-ui-icons/src/Looks4.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Looks4 = props =>
<SvgIcon {...props}>
<path d="M19 3H5c-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 14h-2v-4H9V7h2v4h2V7h2v10z" />
</SvgIcon>;
Looks4 = pure(Looks4);
Looks4.... |
server.js | roby-rodriguez/react-tweets | /* eslint no-console: 0 */
import path from 'path'
import express from 'express'
import expressSession from 'express-session'
import ejs from 'ejs'
import morgan from 'morgan'
import redis from 'redis'
import passport from 'passport'
import passportSocketIo from 'passport.socketio'
import mongoose from 'mongoose'
impo... |
src/components/common/modals/Modal.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
// Required components
import Heading from '../typography/Heading';
/**
* Component
*/
class Modal extends React.Component {
//*** Component Lifecycle ***//
componentDidMount() {
// Component styles
require('./Modal.scss');
}
//*** Te... |
src/components/app_heading.js | Daviepark/m | import React from 'react';
import styles from '../../style/components/app_heading.css';
const Header = () => {
return (
<div>
<h1 className={styles.heading}>MYOB Coding Test</h1>
</div>
);
};
export default Header; |
examples/04 Sortable/Simple/index.js | numso/react-dnd | import React from 'react';
import Container from './Container';
export default class SortableSimple {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b>
</p>
<p>
It i... |
ui/src/transcoding/TranscodingNote.js | cloudsonic/sonic-server | import React from 'react'
import { Card, CardContent, Typography, Box } from '@material-ui/core'
import { useTranslate } from 'react-admin'
export const Interpolate = ({ message, field, children }) => {
const split = message.split(`%{${field}}`)
return (
<span>
{split[0]}
{children}
{split[1]... |
packages/@vega/layout/src/components/AcceptInvite/AcceptUserInvite.js | VegaPublish/vega-studio | import React from 'react'
import Button from 'part:@lyra/components/buttons/default'
import client from 'part:@lyra/base/client'
import LoginWrapper from 'part:@lyra/base/login-wrapper'
import styles from './styles/AcceptUserInvite.css'
type Props = {
invite: any,
identity: any,
user: any,
venue: any
}
export... |
react/features/base/react/components/native/Image.js | gpolitis/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Image } from 'react-native';
/**
* The type of the React {@code Component} props of {@link Image}.
*/
type Props = {
/**
* The ImageSource to be rendered as image.
*/
src: Object,
/**
* The component's external style.
*/
... |
examples/huge-apps/components/Dashboard.js | nickaugust/react-router | import React from 'react'
import { Link } from 'react-router'
class Dashboard extends React.Component {
render() {
const { courses } = this.props
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
you... |
places/index.android.js | DaveWJ/LearningReact | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import WelcomeScreen from './WelcomeScreen';
AppRegistry.registerComponent('places', () => WelcomeScreen... |
src/js/components/icons/base/DocumentWindows.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/containers/HistoryTable.js | KENJU/LeanCanvasOnline | import React from 'react';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
class HistoryTable extends React.Component {
static dateFromTimestamp(unix_timestamp) {
const date = new Date(unix_timestamp);
const year = date.getFullYear();
... |
app/routes.js | SiDevesh/Bootleg | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
export default (
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
</Route>
);
|
client/src/components/GalleryToolbar/GalleryToolbar.js | open-sausages/silverstripe-assets-gallery | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import BackButtonDefault from './Buttons/BackButton';
import UploadButtonDefault from './Buttons/UploadButton';
import AddFolderButtonDefault from './Buttons/AddFolderButton';
class GalleryToolbar exten... |
src/routes/Routes.js | alexpalombaro/react-starter-kit | import React from 'react';
import { Route } from 'react-router';
import { App, HomePage, NotFoundPage } from '../components';
const routes = (
<Route handler={App}>
<Route path="home" handler={HomePage}/>
<Route path="/*" handler={NotFoundPage}/>
</Route>
);
export default routes;
|
src/app/Index.js | cgrossde/Pullover | 'use strict'
// Setup logging for fatal exits
import './services/Logging'
// Get window and setup tray
import Window, { quitApp, showWindow } from './nw/Window'
import './nw/Tray'
// Include package.json for NW.js, also add global styles
import '!!file-loader?name=package.json!../package.json'
import './styles/styles.s... |
admin/client/components/Checkbox.js | stunjiturner/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
import Color from 'color';
import E from '../constants';
var Checkbox = React.createClass({
displayName: 'Checkbox',
propTypes: {
checked: React.PropTypes.bool,
onChange: React.PropTypes.func,
readonly: React.Pro... |
docs/src/app/components/pages/components/Popover/ExampleSimple.js | spiermar/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Popover from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleSimple extends React.Component {
constructor(props) {
super(props);
... |
dashboard/client/src/js/components/modules/VariationsList.js | agaralabs/sieve | import React from 'react';
function getVariationViewMode(experimentId, variation, index, onVariationAddEdit, onDelete) {
let deleteOption = (
<div className="control">
<button
type="button"
data-variationid={variation.id}
className="button is-sma... |
src/containers/home/HomePage.js | josephlaotzu/repo-profile | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import SearchForm from '../../components/SearchForm';
import Profile from '../../components/Profile';
import * as searchActions from '../../actions/searchActions';
export cla... |
app/components/APIError.js | mapbox/osm-comments-frontend | import React from 'react';
var APIError = React.createClass({
render: function() {
return (
<div className="pad2y">
<h5 className="center fancy">An unexpected error occurred.</h5>
</div>
);
}
});
export default APIError; |
admin/client/App/screens/Item/components/FooterBar.js | concoursbyappointment/keystoneRedux | import React from 'react';
import blacklist from 'blacklist';
import assign from 'object-assign';
var FooterBar = React.createClass({
propTypes: {
style: React.PropTypes.object,
},
getDefaultProps () {
return {
style: {},
};
},
getInitialState () {
return {
position: 'relative',
width: 'auto',
... |
src/packages/@ncigdc/components/Layouts/FullWidthLayout.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { Row, Column } from '@ncigdc/uikit/Flex';
import { withTheme } from '@ncigdc/theme';
const styles = {
title: theme => ({
background: 'rgba(255, 255, 255, 0.9)',
color: theme.primary,
padding: '14px 0 8px 100px',
width: '100%',
height: 53,
position... |
src/svg-icons/content/content-cut.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCut = (props) => (
<SvgIcon {...props}>
<path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-... |
packages/react/src/components/UIShell/SideNavItem.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { usePrefix } from '../../internal/usePref... |
wordpuzzle/src/layout/letters-panel.js | prabakaranrvp/CodeGame | /* eslint-disable no-loop-func */
import React from 'react';
import Modal from './modal.js'
import '../style/app.scss';
import { LETTERS } from '../constants.js'
// TODO: Styles for Panel Switch button and responsive layout
export default class LettersPanel extends React.Component {
constructor(props) {
super(... |
src/svg-icons/action/turned-in.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTurnedIn = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionTurnedIn = pure(ActionTurnedIn);
ActionTurnedIn.displayName = 'Ac... |
packages/reactor-kitchensink/src/examples/D3/Hierarchy/D3TreeHierarchy/D3TreeHierarchy.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import { D3_Tree } from '@extjs/ext-react-d3';
import treeDataReader from './Salary';
Ext.require([
'Ext.d3.interaction.PanZoom',
'Ext.tip.ToolTip'
]);
export default class D3TreeHierarchy extends Component {
store = Ext.... |
src/index.js | mrGGoodbye/react-redux-API-unsplash | // Подключаем библиотеку unsplash-js
// (при настроенной webpack-сборке)
import Unsplash from 'unsplash-js';
// подключаем react и redux
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {Router, Route, hashHistory, Link} from 'react-router';
import {route... |
server/web/helpers/appRender.js | interactivelabs/laundry-admin | import React from 'react';
import { Provider } from 'react-redux';
import { renderToString } from 'react-dom/server';
import { RouterContext, match } from 'react-router';
import createLocation from 'history/lib/createLocation';
import makeRoutes from '../../../src/app/routes/Routes';
import configureStore from '../../... |
src/components/ui/Radio.js | GustavoKatel/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { Field } from 'mobx-react-form';
import classnames from 'classnames';
export default @observer class Radio extends Component {
static propTypes = {
field: PropTypes.instanceOf(Field).isReq... |
src/components/Footer.js | finom/github-embed | import React from 'react';
export default () => (<footer className="github-embed-footer">
Embedded via <a
href="https://github.com/finom/github-embed"
target="_blank"
rel="noopener noreferrer"
>
github-embed
</a>
</footer>);
|
actor-apps/app-web/src/app/components/common/MessageItem.react.js | zomeelee/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
src/Components/Key/Key.js | apiaryio/attributes-kit | import isUndefined from 'lodash/isUndefined';
import merge from 'lodash/merge';
import Radium from 'radium';
import React from 'react';
import PropTypes from 'prop-types';
import { MONO_FONT_FAMILY } from '../../Constants/fonts';
import {
containsStructuredElement,
} from '../../Modules/ElementUtils/ElementUtils';
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Makrau/provaAEB | 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/Label/Label.js | skyiea/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import typography, {convertFromUxLangToCss} from '../Typography';
import WixComponent from '../BaseComponents/WixComponent';
/**
* a regular html `<label>` element but in wix style
*/
class Label extends WixComponent {
render() {
const {appearanc... |
src/svg-icons/av/equalizer.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvEqualizer = (props) => (
<SvgIcon {...props}>
<path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/>
</SvgIcon>
);
AvEqualizer = pure(AvEqualizer);
AvEqualizer.displayName = 'AvEqualizer';
AvEqualizer... |
writeExampleThunk/src/app.js | fengnovo/webpack-react | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import store from './js/store'
import App from './js/App'
import './css/index.scss'
ReactDOM.render(<Provider store={store}><App /></Provider>,document.getElementById('app'));
|
src/client/index.js | HarelDavid/AdFriendCoupon | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'mobx-react'
import { Router, RouterContext, browserHistory } from 'react-router'
import firebase from 'firebase';
import { createClientState } from './state'
import createRoutes from './routes'
import autorun from './autorun.js'
/... |
example/example/index.ios.js | JimmyDaddy/doctorstrange-updater | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Alert
} from 'react-native';
import DoctorstrangeUpdater from 'doctorstrange-updater';
console.log(DoctorstrangeUpdater);
export d... |
fields/types/file/FileColumn.js | ratecity/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var LocalFileColumn = React.createClass({
renderValue: function () {
var value = this.props.data.fields[this.props.col.path];
if (!value || !value.filename) ret... |
node_modules/_react-router@3.2.0@react-router/es/Router.js | ligangwolai/blog | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/packages/@ncigdc/components/Modals/FirstTimeModal.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { ExternalLink } from '@ncigdc/uikit/Links';
import BaseModal from '@ncigdc/components/Modals/BaseModal';
const FirstTimeModal = ({ onClose }) => (
<BaseModal title="Warning" closeText="Accept" onClose={onClose}>
<p>
You are accessing a U.S. Government web site wh... |
docker-react-web-app/src/components/mapImage.js | garrettgraber/galaxy-map | import React from 'react';
import galaxy from '../images/galaxy-image.jpg';
import { connect } from 'react-redux';
console.log("galaxy: ", galaxy);
class MapImage extends React.Component {
constructor() {
super();
}
render() {
// console.log("props.map: ", this.props);
return (
<svg classN... |
src/SnackbarPanelTwoPointsCO2/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Icon from "../Icon";
import LabelStandard from "../LabelStandard";
import SnackBarWrapperMobile from "../SnackBarWrapperMobile";
import Typography from "../Typography";
import Wrapper from "../Wrapper";
import styles from './styles.css';
function... |
frontend/src/Components/Filter/Builder/QualityFilterBuilderRowValueConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import tagShape from 'Helpers/Props/Shapes/tagShape';
import { fetchQualityProfileSchema } from 'Store/Actions/settingsActions';
import getQualities from 'Utili... |
app/javascript/mastodon/components/picture_in_picture_placeholder.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
import { removePictureInPicture } from 'mastodon/actions/picture_in_picture';
import { connect } from 'react-redux';
import { debounce } from 'lodash';
import { FormattedMessage } from 'react-intl';
export defau... |
src/App/views/UsersLogin/index.js | ryanswapp/react-starter-template | import React from 'react';
import { connect } from 'react-redux';
import axios from 'axios';
import Actions from 'App/state/actions.js';
import LoginForm from './components/LoginForm';
class UserLogin extends React.Component {
constructor(props) {
super(props);
this.handleSubmit = this.handleSubmit.bind(this... |
templates/frontOffice/modern/components/React/Title/index.js | Lucanis/thelia | import React from 'react';
export default function Title({ title, className }) {
return <div className={`Title ${className}`}>{title}</div>;
}
|
modules/Link.js | mjw56/react-router | import React from 'react'
import warning from 'warning'
var { bool, object, string, func } = React.PropTypes
function isLeftClickEvent(event) {
return event.button === 0
}
function isModifiedEvent(event) {
return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey)
}
function isEmptyObject(objec... |
src/components/VoiceRecorder/VoiceRecorder.container.js | shayc/cboard | import React from 'react';
import { connect } from 'react-redux';
import VoiceRecorder from './VoiceRecorder.component';
const VoiceRecorderContainer = props => <VoiceRecorder {...props} />;
const mapStateToProps = ({ app: { userData } }, ownProps) => ({
...ownProps,
user: userData.email ? userData : null
});
ex... |
donate/src/components/confirm.js | Interaktivtechnology/sfdemo-node | import React from 'react';
import {
Col, Button,
} from 'react-bootstrap';
import sweetalert from 'sweetalert2';
import { Link } from 'react-router-dom';
import background from '../static/img/aerial-singapore.jpg';
import { API_URL, CMS_URL } from '../static/variable';
class Confirm extends React.Component {
c... |
src/containers/DevTools/DevTools.js | Anshul-HL/blitz-windermere | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
fields/types/Field.js | w01fgang/keystone | import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormNote } from '../../admin/client/App/elemental';
import blacklist from 'blacklist';
import CollapsedFieldLabel from '../compon... |
src/PhotoLayoutEditor/Container/Side/ToggleSideButton/index.js | RedgooseDev/react-photo-layout-editor | import React, { Component } from 'react';
import classNames from 'classnames';
class ToggleSideButton extends Component {
render() {
const { props } = this;
return (
<button type="button" onClick={props.onClick} className="ple-side__toggle">
<span>
<i className={classNames(
'ple-sp-ico',
... |
src/components/Nav/Nav.js | vincentleandr/vincentleandr.github.io | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import './styles/css/Nav-dist.css';
class Nav extends Component {
render() {
return (
<div className="nav-container">
<nav>
<ul>
<li className="nav-home"><Link to='/'><spa... |
src/components/User.js | afonsobarros/reactnd-project-readable | import React, { Component } from 'react';
import { Route, Switch } from 'react-router';
import { Link } from 'react-router-dom'
import { Button, Divider, Checkbox, FormControlLabel, TextField } from 'material-ui';
import themeDefault from '../theme-default';
import { connect } from 'react-redux'
import { updateUser... |
src/main.js | prescottprue/devshare-site | import React from 'react'
import ReactDOM from 'react-dom'
import { initScripts } from 'utils'
import createStore from './store/createStore'
import AppContainer from './containers/App/App'
import { version } from '../package.json'
import config, { env } from './config'
// ==============================================... |
app/react-icons/fa/barcode.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBarcode extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m1.4 34.3h-1.4v-31.4h1.4v31.4z m1.4 0h-0.7v-31.4h0.7v31.4z m2.1 0h-0.7v-31.4... |
node_modules/react-bootstrap/es/InputGroup.js | rblin081/drafting-client | 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 ... |
definitions/npm/styled-components_v2.x.x/flow_v0.53.x-v0.74.x/test_styled-components_v2.x.x.js | flowtype/flow-typed | // @flow
import {renderToString} from 'react-dom/server'
import styled, {
ThemeProvider,
withTheme,
keyframes,
ServerStyleSheet,
StyleSheetManager
} from 'styled-components'
import React from 'react'
import type {
Theme,
Interpolation,
ReactComponentFunctional,
ReactComponentFunctionalUndefinedDefault... |
src/components/recording/StreamRenderer.js | streamr-app/streamr-web | import React from 'react'
const WIDTH = 1920
const HEIGHT = 1080
export default class StreamRenderer extends React.Component {
constructor (props) {
super(props)
this.lineFunction = d3.svg.line().x(d => d.x * WIDTH).y(d => d.y * HEIGHT).interpolate('cardinal')
this.state = {
currentPath: null
... |
actor-apps/app-web/src/app/components/common/Fold.React.js | webwlsong/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
docs/src/app/components/pages/components/FlatButton/ExampleSimple.js | skarnecki/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
const FlatButtonExampleSimple = () => (
<div>
<FlatButton label="Default" />
<FlatButton label="Primary" primary={true} />
<FlatButton label="Secondary" secondary={true} />
<FlatButton label="Disabled" disabled={true} />
</... |
client/components/Tasks/formHelpers.js | Waiyaki/provisioning-scheduler | import React from 'react';
// eslint-disable-next-line import/no-unresolved
import { TextField } from 'redux-form-material-ui';
import { Field } from 'redux-form';
import TimePicker from 'material-ui/TimePicker';
import inlineStyles from './inlineStyles';
export const validate = requiredFields => values => {
const ... |
src/components/Footer/index.js | MelindaHasselbring/XtremeValue | import React from 'react'
import { Grid, Header, Image } from 'semantic-ui-react'
import { observer } from 'mobx-react'
import './Footer.scss'
const Footer = () => (
<footer>
<div className="footer-inner">
<Grid>
<Grid.Row>
<Grid.Column width={4}>
<Image size="tiny" src="/imag... |
imports/ui/components/Orders/ProductsSlideView/ProductsSlideView.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import Product from '../Product';
import Slider from './Slider';
import './ProductSlideView.scss';
// All items component
// Important! add unique key
/*
<div className="main-carousel" data-flickity='{ "cellAlign": "left", "contain": true }'>
{... |
source/js/components/expander.js | mehan/nsf-challenge | import React from 'react';
import classnames from "classnames";
var Expander = React.createClass({
render: function() {
return (
<div className="expander">
{this.props.children}
</div>
);
}
});
var Panel = React.createClass({
propTypes: {
children: React.PropTypes.any.isRequired,... |
fields/types/password/PasswordFilter.js | cermati/keystone | import React from 'react';
import { SegmentedControl } from '../../../admin/client/App/elemental';
const EXISTS_OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var PasswordFilter = React.createClass({
propTypes:... |
IQApp/src/components/screens/NoteScreen.js | victorditadi/IQApp | import React, { Component } from 'react';
import { Text, View, AsyncStorage } from 'react-native';
import { Actions } from 'react-native-router-flux';
import { NotificacoesLista, NotificacoesDetalhes} from '../notificacoes';
import { ButtonHome } from '../common';
class NoteScreen extends Component {
deslogarClient... |
src/components/AppBarIcon.js | addi90/redux-todo | import AppBar from 'material-ui/lib/app-bar';
import React from 'react'
const AppBarIcon = (props) => {
return (
<AppBar
title="Redux Todo app"
iconClassNameRight="muidocs-icon-navigation-expand-more"
/>
)
}
export default AppBarIcon;
|
docs/app/Examples/elements/Input/Variations/InputExampleRightLabeled.js | clemensw/stardust | import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'
const options = [
{ text: '.com', value: '.com' },
{ text: '.net', value: '.net' },
{ text: '.org', value: '.org' },
]
const InputExampleRightLabeled = () => (
<Input
label={<Dropdown defaultValue='.com' options={options} />}
... |
resources/react/components/parts/schedule/Schedule.js | fetus-hina/stat.ink | import Heading from './Heading';
import React from 'react';
import ScheduleDisplay from './ScheduleDisplay';
export default function Schedule () {
return (
<aside className='mb-3'>
<Heading />
<ScheduleDisplay />
</aside>
);
}
Schedule.propTypes = {
};
|
app/containers/App/index.js | sarea-alkebaly/way-finding | /**
*
* App.react.js
*
* 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)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/routes/Async/index.js | TriPSs/react-esc-example | import React from 'react'
import AsyncContainer from './AsyncContainer'
export AsyncReducer from './AsyncReducer'
export * as AsyncActions from './AsyncActions'
export * as AsyncConstants from './AsyncConstants'
export default {
path : '/async',
exact : true,
component: AsyncContainer,
}
|
app/components/PostWrapper/components/Bio/index.js | jakubrohleder/aurelius | import React from 'react'
import styles from './styles.scss'
export default function Bio(props) {
const { author } = props
return (
<div>
<div className={styles.wrapper}>
<div className={styles.image}>
<img src={`/${author.photo}`} alt={author.name} />
</div>
<div class... |
src/native/auth/SignInPage.js | xiankai/triple-triad-solver | /* @flow */
import type { State } from '../../common/types';
import Email from './Email';
import React from 'react';
import Social from './Social';
import theme from '../app/themes/initial';
import { Container } from '../app/components';
import { Redirect } from 'react-router';
import { ScrollView, StyleSheet } from 'r... |
src/pages/404.js | Darkensses/darkensses.github.io | import React from 'react'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | Antontsyk/react_vk | import React from 'react'
function load(id = 0) {
return [
{ id: id + 1, name: '1' },
{ id: id + 2, name: '2' },
{ id: id + 3, name: '3' },
{ id: id + 4, name: '4' }
];
}
export default class extends React.Component {
constructor(props) {
super(props);
this.done = () => {};
this.pro... |
src/svg-icons/maps/local-hospital.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHospital = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/>
</SvgIcon>
);
MapsLocal... |
web/app/source/submit-link.js | bitemyapp/serials | // @flow
import React from 'react'
import {Link} from 'react-router'
import {Routes, transitionTo} from '../router'
import {Users} from '../model/user'
export class SubmitLink extends React.Component {
onClick(e:Event) {
if (!Users.isLoggedIn()) {
transitionTo(Routes.login, {}, {to: Routes.source, id: 'ne... |
client/views/room/contextualBar/Info/EditRoomInfo/EditChannelWithData.js | VoiSmart/Rocket.Chat | import React from 'react';
import { useUserRoom } from '../../../hooks/useUserRoom';
import { useTabBarClose } from '../../../providers/ToolboxProvider';
import EditChannel from './EditChannel';
function EditChannelWithData({ rid, onClickBack }) {
const room = useUserRoom(rid);
const onClickClose = useTabBarClose()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.