path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/app/views/myRecipes.js | nazar/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { Link } from 'react-router';
import meStore from 'stores/me';
import meActions from 'actions/me';
import RecipeListItem from 'components/recipeListItem';
import Spinner from 'components/spinner';
export default React.createClas... |
.storybook/LoginStories.js | buaya91/just-us-blog | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import LoginForm from '../src/login/LoginForm'
import LoginPopUp from '../src/login/LoginPopUp'
import { actions } from './testProps'
storiesOf('Login', module)
.add('form only', () => (
<LoginForm />
))
.add('with Popup', () => ... |
packages/material-ui-icons/src/ExpandLess.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" /></g>
, 'ExpandLess');
|
imports/ui/containers/AdminContainer.js | scimusmn/map-stories | /**
* Container for the admin view where we control and manage image data
*/
// import React from 'react';
import { Meteor } from 'meteor/meteor';
import { composeWithTracker } from 'react-komposer';
import { Loading } from '../components/loading.js';
import { Images } from '../../api/images/images.js';
import { Imag... |
test/specs/button/button.spec.js | rafaelfbs/realizejs | import React from 'react';
import { Button } from 'components';
import { assert } from 'chai';
import { shallow, mount } from 'enzyme';
describe('<Button/>', () => {
it('exists', () => {
assert(Button);
});
it('renders with the default props', () => {
const content = shallow(
<Button />
);
... |
frontend/tests/components/options/forum-options.js | 1905410/Misago | import assert from 'assert';
import React from 'react'; // jshint ignore:line
import ForumOptions from 'misago/components/options/forum-options'; // jshint ignore:line
import snackbar from 'misago/services/snackbar';
import store from 'misago/services/store';
import * as testUtils from 'misago/utils/test-utils';
let s... |
src/js/modules/Home.js | fredyagomez/reactjs-D3-V4-grommet |
import React from 'react';
import Section from 'grommet/components/Section';
import Tiles from 'grommet/components/Tiles';
import Tile from 'grommet/components/Tile';
import Header from 'grommet/components/Header';
import Footer from 'grommet/components/Footer';
import Image from 'grommet/components/Image';
im... |
src/components/CompanyAndJobTitle/WorkExperiences/ExperienceEntry.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import cn from 'classnames';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faLock from '@fortawesome/fontawesome-free-solid/faLock';
import { Heading, P } from 'common/base';
import i from 'com... |
src/components/type-list.js | tylerchilds/pokedex | import React from 'react';
import TypeLink from '../components/type-link';
import ALL_TYPES from '../data/types';
export default class TypeList extends React.Component {
render() {
return (
<div>
{ALL_TYPES.map((type, key) => (
<TypeLink type={type} key={key} />
))}
</div>
... |
src/client/assets/js/features/driver/components/Data/Data.js | me-box/databox-sdk | import React from 'react';
import DataType from './DataType';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { actionCreators as driverActions, selector } from '../../';
@connect(selector, (dispatch) => {
return{
actions: bindActionCreators(driverActions, dispatch),
... |
src/Parser/DemonHunter/Shared/Modules/Items/SoulOfTheSlayer.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import SPECS from 'common/SPECS';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from ... |
bdocker/bnodejs/gatsby/web/pages/less.js | waterbolik/prestudy | import React from 'react'
import './example.less'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi lessy friends`}
/>
<h1
cla... |
pootle/static/js/auth/components/AuthContent.js | ta2-1/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 assign from 'object-assign';
import React from 'rea... |
examples/with-why-did-you-render/scripts/wdyr.js | flybayer/next.js | import React from 'react'
if (process.env.NODE_ENV === 'development') {
if (typeof window !== 'undefined') {
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackAllPureComponents: true,
})
}
}
|
app/containers/DevTools.js | Kahrstrom/skillocate-react | 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-w">
<LogMonitor />
</D... |
packages/material-ui-icons/src/BatteryCharging80Sharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v5h4.93L13 7v2h4V4z" /><path d="M13 12.5h2L11 20v-5.5H9L11.93 9H7v13h10V9h-4v3.5z" /></React.Fragment>
, 'BatteryCharging80Sharp');
|
packages/stdind/src/main.js | istarkov/pbl | import { AppContainer } from 'react-hot-loader';
import { Observable } from 'rxjs';
import React from 'react';
import { render } from 'react-dom';
import webfontloader from 'webfontloader';
import setObservableConfig from 'recompose/setObservableConfig';
import 'normalize.css/normalize.css';
import './main.sass';
impor... |
src/pages/Login.js | prodigalyijun/demo-by-antd | import React from 'react';
import { Icon, Form, Input, Button, message } from 'antd';
import { post } from '../utils/request';
import style from '../styles/login-page.less';
const FormItem = Form.Item;
class Login extends React.Component {
constructor() {
super();
this.handleSubmit = this.handleSu... |
src/containers/Forms/FormsWithValidation/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import Form from '../../../components/uielements/form';
import Input from '../../../components/uielements/input';
import PageHeader from '../../../components/utility/pageHeader';
import Box from '../../../components/utility/box';
import LayoutWrapper from '../../../components/u... |
examples/named-components/render/client.js | dlmr/react-router-redial | import { useRedial } from 'react-router-redial';
import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory, applyRouterMiddleware } from 'react-router';
// Render the app client-side to a given container element:
export default (container, routes) => {
const forcePageReloadOnErr... |
src/client.js | createspb/obsvtr | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/create';
import ApiClient from '.... |
packages/wix-style-react/src/ContactItemBuilder/ContactItemBuilder.js | wix/wix-style-react | import React from 'react';
import { classes } from './ContactItemBuilder.st.css';
import Avatar from '../Avatar/Avatar';
import Text from '../Text';
import { dataHooks } from './ContactItemBuilderDataHooks';
import PropTypes from 'prop-types';
import deprecationLog from '../utils/deprecationLog';
export const ContactI... |
src/containers/Contact/index.js | benceg/dani | import React from 'react';
import { asyncConnect } from 'redux-connect';
import get from 'lodash/get';
import Color from 'color';
import { componentWillMount } from 'react-lifecycle-decorators';
import {
fetchContent,
resetForm,
sendForm
} from './actions';
import ReactMarkdown from 'react-markdown';
import Hel... |
src/components/LayerStylesCarousel/LayerStyleItem.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
const LayerStyleItem = ({layer, style, index, onStyleClick}) => {
let itemClassName = 'layer-styles-carousel--list-item'
if (layer && layer.selectedLayerStyleId === index) {
itemClassName += ' selected'
}
function styleClick() {
return onStyleClick(layer, ind... |
pkg/interface/link/src/js/components/lib/channel-sidebar.js | jfranklin9000/urbit | import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import { GroupItem } from './group-item';
import { SidebarInvite } from '/components/lib/sidebar-invite';
import { Welcome } from '/components/lib/welcome';
import { alphabetiseAssociations } from '../../lib/util';
export class ... |
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js | boneyao/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import AvatarItem from 'components/common/AvatarItem.react';
var ContactItem = React.createClass({
displayName: 'ContactItem',
propTypes: {
contact: React.PropTypes.object,
onSelect: React.PropTypes.func
},
mixins: [PureRende... |
src/layouts/index.js | btthomas/blakeandanna | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import pages from '../pageList.js'
import Burger from './burger.js'
import './index.css'
const Header = () =>
<div
id="top-bar"
style={{
marginBottom: '1rem',
}}
>
<d... |
frontend/src/components/common/hoc/withCountryName.js | unicef/un-partner-portal |
// eslint-disable-next-line
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
const withCountryName = ComposedComponent => connect(
(state, ownProps) => ({
countryName: state.countries[ownProps.code],
}),
)(ComposedComponent);
withCountryName.propTypes = ... |
src/components/input-group/InputGroupPrepend.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import BaseView from '../../utils/rnw-compat/BaseView';
const propTypes = {
children: PropTypes.node.isRequired,
};
const InputGroupPrepend = React.forwardRef((props, ref) => (
<BaseView
{...props}
ref={ref}
essentials={{ className: 'input... |
src/components/article/slideshow/thumbnails.js | hanyulo/twreporter-react | /*eslint-disable no-console*/
'use strict'
import classNames from 'classnames'
import styles from './thumbnails.scss'
import React from 'react'
// lodash
import get from 'lodash/get'
import map from 'lodash/map'
const defaultThumbnailWidth = 56
const Thumbnail = (props) => {
const { alt, customClassName, greyOut, ... |
frontend/src/Album/Search/AlbumInteractiveSearchModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import AlbumInteractiveSearchModalContent from './AlbumInteractiveSearchModalContent';
function AlbumInteractiveSearchModal(props) {
const {
isOpen,
albumId,
albumTitle,
onModalClose
} = props... |
src/js/templates/index.js | julianburr/wp-react-theme | import React, { Component } from 'react';
import Header from '../components/header';
import Footer from '../components/footer';
import 'styles/index.scss';
export default class Index extends Component {
render () {
return (
<div className="wrap-all">
<Header />
<div className="content">
... |
src/svg-icons/device/screen-rotation.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenRotation = (props) => (
<SvgIcon {...props}>
<path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c... |
src/common/components/Button.js | sikhote/davidsinclair | // @flow
import type { ColorProps, Theme } from '../themes/types';
import type { TextProps } from './Text';
import Box from './Box';
import React from 'react';
import Text, { computeTextStyle } from './Text';
import isReactNative from '../../common/app/isReactNative';
export type ButtonProps = ColorProps & TextProps &... |
examples/animations/app.js | mattydoincode/react-router | import React from 'react'
import { render } from 'react-dom'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import StaticContainer from 'react-static-container'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
require('./app.css')
const h... |
src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshesSuggestionByCount.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import { SpellLink } from 'interface';
import React from 'react';
function suggest(when, suggestion) {
when(suggestion).addSuggestion((suggest, actual, recommended) =>
suggest(
<>
You refreshed <SpellLink id={sugge... |
src/components/Weather/Weather.js | andresol/sollieweb | import React from 'react'
import { Link } from 'react-router'
export class Weather extends React.Component {
getTitle () {
return this.title
}
getValue () {
return this.name
}
render () {
return (
<div>
<h2>{this.getTitle()}</h2>
<div className='live wind'>{this.getValue()... |
assets/js/app.js | ChrisBr/duell-um-die-geld | import React from 'react';
import ReactDOM from 'react-dom';
import GameContainer from './react/gameContainer'
window.jQuery = window.$ = require('../bower_components/jquery/dist/jquery.min.js');
//import bootstrapJs from '../bower_components/bootstrap/dist/js/bootstrap.min.js';
import bootstrapStyles from '../bower_c... |
imports/ui/components/header/header-notifications.js | irvinlim/free4all | import React from 'react';
import { browserHistory } from 'react-router';
import * as Colors from 'material-ui/styles/colors';
import Badge from 'material-ui/Badge';
import IconButton from 'material-ui/IconButton';
import Popover from 'material-ui/Popover';
import NotificationsList from './notifications-list';
import ... |
wisewit_front_end/public/js/userAuth/user_controller.js | emineKoc/WiseWit | 'use strict'
import React from 'react';
import SessionStore from './session_store.js';
import AuthActions from './auth_actions.js';
let UserControls = React.createClass({
handleLogout(e) {
e.preventDefault();
AuthActions.logout();
},
render() {
if (SessionStore.isLoggedIn()) {
return (
... |
src/svg-icons/image/camera-front.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraFront = (props) => (
<SvgIcon {...props}>
<path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.... |
imports/ui/components/Navigation/Navigation.js | jamiebones/Journal_Publication | import React from 'react';
import PropTypes from 'prop-types';
import { Navbar , Nav, NavItem } from 'react-bootstrap';
import { Link } from 'react-router-dom';
import { LinkContainer } from 'react-router-bootstrap';
import Icon from '../../components/Icon/Icon';
import PublicNavigation fro... |
styleguide.js | mazzcris/sortello | import {render} from 'react-dom'
import React from 'react'
import StyleguideApp from './StyleguideApp.jsx'
import Bootstrap from 'bootstrap/dist/css/bootstrap.min.css'
import "./css/style.css";
import "./css/animate-sortello.css";
import "./css/buttons.css";
import "./css/api-key.css";
import "./css/board-column__selec... |
docs/src/examples/elements/Reveal/States/RevealExampleDisabled.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleDisabled = () => (
<Reveal animated='move' disabled>
<Reveal.Content visible>
<Image src='/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
<Image src='/i... |
modules/useRouterRestoreScroll.js | jshin49/react-router-restore-scroll | import React from 'react'
import RestoreWindowScroll from './RestoreWindowScroll'
const useRouterRestoreScroll = () => ({
renderRouterContext: (child, props) => (
<RestoreWindowScroll
restoreWindow={props.router.restoreScroll.restoreWindow}
location={props.location}
children={child}
/>
)
... |
examples/real-world/index.js | nickhudkins/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
app/components/PointList/index.js | GuiaLa/guiala-web-app | /**
*
* PointList
*
*/
import React from 'react';
import PointListItem from 'PointListItem'
import styles from './styles.css';
class PointList extends React.Component {
render() {
const { items, params } = this.props;
return (
<div className={ styles.wrapper }>
{ items.map((item, key) => <Po... |
tests/react_native_tests/test_data/native_code/ToolbarAndroid/app/components/Mobile/index.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react/native'
import styles from './styles'
import Mobile from './component'
@observer
class MobileWrapper extends React.Component {
render() {
return (
<Mobile
{...this.props}
></Mob... |
src/rodal.js | chenjiahan/rodal | /* ===============================
* Rodal v1.8.2 https://chenjiahan.github.com/rodal
* =============================== */
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
// env
const IN_BROWSER = typeof window !== 'undefined';
const UA = IN_BROWSER && window.navigator.us... |
notebook/experience/web/webpack4-upgrade-log/simple-webpack-config/src/components/confirm.js | JMwill/wiki | import React from 'react'
import modal from './modal'
/**
* 弹出确认窗
* @param {[type]} options.message 消息
* @param {[type]} options.ok 确认的回调函数
* @param {String} okLabel 确认按钮标签
* @param {[type]} cancel 取消的回调函数
* @param {String} cancelLabel 取消按钮标签
* @return {[type]} 销毁... |
src/routes/register/index.js | rameshrr/dicomviewer | /**
* 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... |
tom-binary-tree/src/Button.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react'
// EVENTS
class Toggle {
update(model) {
return { model: !model }
}
}
// APP
export default {
init() {
return { model: true }
},
update(model, event) {
return event.update(model)
},
view(model, dispatch) {
const onClick = () => dispatch(new Toggle())
co... |
react/features/device-selection/components/DeviceSelector.js | parisjulien/arkadin-jitsimeet | import AKDropdownMenu from '@atlaskit/dropdown-menu';
import ExpandIcon from '@atlaskit/icon/glyph/expand';
import React, { Component } from 'react';
import { translate } from '../../base/i18n';
const EXPAND_ICON = <ExpandIcon label = 'expand' />;
/**
* React component for selecting a device from a select element. ... |
src/packages/recompose/__tests__/types/test_withStateHandlers.js | acdlite/recompose | /* eslint-disable no-unused-vars, no-unused-expressions */
/* @flow */
import React from 'react'
import { compose, withProps, withStateHandlers } from '../..'
import type { HOC } from '../..'
type EnhancedCompProps = {
initialCounter: number,
}
const enhancer: HOC<*, EnhancedCompProps> = compose(
withStateHandl... |
src/components/TopNav.js | one-stop-team/ripta-app | import React from 'react'
import * as bs from 'react-bootstrap'
import logo from '../images/ripta_logo.png'
const LinkContainer = ({children}) => (
<span>{children}</span>
)
export default class TopNav extends React.Component {
render() {
return (
<bs.Navbar fixedTop fluid>
<bs.Navbar.Header>
... |
src/modules/Hemmo.js | futurice/PelaryHemmo | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import {
StyleSheet,
Modal,
AppState,
Text,
View,
Platform,
TouchableOpacity,
} from 'react-native';
import { getSizeByWidth, getFontSize } from '../services/graphics';
import AudioPlayerVi... |
examples/with-clerk/pages/index.js | azukaru/next.js | import React from 'react'
import Head from 'next/head'
import Link from 'next/link'
import styles from '../styles/Home.module.css'
import { SignedIn, SignedOut } from '@clerk/nextjs'
const ClerkFeatures = () => (
<Link href="/user">
<a className={styles.cardContent}>
<img src="/icons/layout.svg" />
<... |
src/components/ProgressBar/ProgressBar.js | vonZ/rc-vvz | import React from 'react';
import PropTypes from 'prop-types';
class ProgressBar extends React.Component {
getColor = (percent) => {
if (this.props.percent === 100) return 'green';
return this.props.percent > 50 ? 'lightgreen' : 'red';
}
getWidthAsPercentOfTotalWidth = () => {
return parseInt(this.p... |
dokomoforms/static/src/survey/js/components/__tests__/Splash-tests.js | SEL-Columbia/dokomoforms | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
// jest.autoMockOff();
// a noop function useful for passing into components that require it.
var noop = () => {};
describe('Splash', () => {
var Splash;
beforeEach(function() {
jest.dontMoc... |
src/containers/HomeContainer.js | hoppispace/hoppi-space-web-app | import React from 'react';
import { URL_FACEBOOK, URL_INSTAGRAM, URL_TWITTER } from "../constants";
import SearchForm from '../components/Search/SearchForm';
const HomePage = () => {
return (
<main id="home-container">
<div className="container-fluid">
<div className="row">
... |
code/web/node_modules/react-bootstrap/es/Label.js | zyxcambridge/RecordExistence | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
packages/ringcentral-widgets/components/CallListV2/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import { List } from 'react-virtualized';
import CallItem from '../CallItem';
import NoCalls from '../NoCalls';
export default class CallListV2 extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
extendedIndex: n... |
src/svg-icons/av/fiber-new.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberNew = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v... |
examples/todomvc/containers/TodoApp.js | rt2zz/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... |
src/svg-icons/action/perm-device-information.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
... |
node_modules/react-router/es6/IndexRedirect.js | wojtczat/WeatherApp | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
frontend/src/Settings/ImportLists/ImportLists/ImportLists.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import PageSectionContent from 'Components/Page/PageSectionContent';
import { icons } from 'Helpers/Props';
import AddImportLi... |
screens/PersonDetail.js | FindEarth/app | import React from 'react'
import PropTypes from 'prop-types'
import Colors from '../constants/Colors'
import Styles from '../styles/PersonDetail'
import HeaderTitle from '../components/HeaderTitle'
import PersonDetailView from '../components/PersonDetailView'
import { Share } from 'react-native'
import { bindActionCre... |
src/mongostick/frontend/src/screens/Collections.js | RockingRolli/mongostick | import React from 'react'
import { Col, Row, Table } from 'antd'
import { connect } from 'react-redux'
import { formatBytes } from '../lib/mongodb'
class Collections extends React.Component {
getColumns = () => {
return [
{
title: 'Name',
dataIndex: 'ns',
key: 'ns',
},
... |
app/javascript/mastodon/features/status/components/action_bar.js | Arukas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
i... |
packages/reactor-kitchensink/src/examples/D3/Hierarchy/ConfigurablePivotTreeMap/ConfigurablePivotTreeMap.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Toolbar, Button, Spacer } from '@extjs/ext-react';
import { PivotD3Container } from '@extjs/ext-react-pivot-d3';
import createData from './createData';
import './styles.css';
const regions = {
"Belgium": 'Europe',
"Netherlands": 'Europe',
"United Kingdom":... |
src/svg-icons/hardware/keyboard-return.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
</SvgIcon>
);
HardwareKeyboardReturn = pure(HardwareKeyboardReturn);
Hardware... |
app/components/DrawerHeader/DrawerHeader.js | danielzy95/oaa-chat | import React from 'react'
import { observer } from 'mobx-react'
import IconButton from 'material-ui/IconButton'
import styles from './DrawerHeader.css'
const DrawerHeader = ({ title, backgroundColor, color, close }) => (
<div class={styles.root} style={{ backgroundColor: backgroundColor || '#493553' }}>
<IconButton... |
src/app.js | williambryan777/react-blog-with-es6 | import React, { Component } from 'react';
import { BlogBox } from './components';
import $ from 'jquery';
class App extends Component {
constructor(props) {
super(props);
this.state = {
blogList: [],
};
}
componentDidMount() {
const postUrl = '/Social/Home/GetHotMicroBlogs';
const queryP... |
app/javascript/mastodon/features/ui/components/bundle_modal_error.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | gutenye/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 logo from './assets/logo.svg';
export default () => <img id="feature-svg-inclusion" src={logo} alt="l... |
analysis/shamanelemental/src/modules/features/Overload.js | yajinni/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { SpellIcon } from 'interface';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import StatisticBox, { STATISTIC_ORDER } from 'parser/ui/StatisticBox';
import Events from 'parser/core... |
docs-ui/components/alertLink.stories.js | beeftornado/sentry | import React from 'react';
import {withInfo} from '@storybook/addon-info';
import AlertLink from 'app/components/alertLink';
import {IconDocs, IconGeneric, IconMail, IconStack, IconStar} from 'app/icons';
export default {
title: 'Core/Alerts/AlertLink',
};
export const Default = withInfo(
'A way to loudly link b... |
app/components/CollectionHeader.js | jackokerman/react-discogs-dj | import React from 'react';
import HeaderColumn from './HeaderColumn.js';
const columns = [
{ column: 'artist', display: 'Artist' },
{ column: 'title', display: 'Title' },
{ column: 'year', display: 'Year' },
{ column: 'added', display: 'Added' },
];
const CollectionHeader = props => (
<tr>
{columns.map(... |
src/components/Hello/index.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import './index.less';
/**
* 测试用
*/
class Hello extends React.PureComponent {
render() {
return <div><h1 className="testStyle">Hello, React!</h1></div>;
}
}
export default Hello;
|
app/components/welcome0.js | nyc-bobolinks-2016/TemoApp | import React, { Component } from 'react';
import {
Navigator,
StyleSheet,
Text,
TextInput,
TouchableOpacity,
View
} from 'react-native';
import SendBird from 'sendbird'
import NavMenu from './navMenu';
export default class Signup extends Component {
constructor() {
super();
console.disableYellow... |
examples/Box.js | casesandberg/workbench | import React from 'react'
import _ from 'lodash'
import ReactCSS from 'reactcss'
const build = (element, property, obj, toApply) => {
return toApply ? _.mapValues(obj, (value) => {
return { [element]: { [property]: value } }
}) : {}
}
const justifyContent = {
left: 'flex-start',
center: 'center',
right:... |
src/app.js | jeiker26/react | import React from 'react';
import ReactDom from 'react-dom';
import SearchGot from './components/search';
ReactDom.render(<SearchGot />, document.getElementById('app'));
|
app/components/mapMarker/mapMarkerView.js | UsabilitySoft/Proximater | import React, { Component } from 'react';
import { AppRegistry, Text, View, Image, Button } from 'react-native';
import { styles } from './styles';
const images = require('../images');
export class MapMarkerView extends Component {
render() {
return (
<View style={styles.container}>
<Image
... |
client/index.js | gigavinyl/pern-starter | 'use-strict';
import { configureStore } from '../shared/redux/store/configureStore';
import { Provider } from 'react-redux';
import postReducer from '../shared/redux/reducers/reducer';
import { render } from 'react-dom';
import React from 'react';
import App from '../shared/container/App';
import PostListView from '..... |
demo/components/navbar/NavBarOptions.js | f0zze/rosemary-ui | import React from 'react';
import {NavItem, NavHrefItem} from '../../../src';
import OptionsTable from '../../helper/OptionsTable';
export default () => {
let commonPropDesc = {
active: {
values: 'boolean',
description: 'Set link to be active'
},
right: {
... |
lib/components/App.js | sanack/atom-jq | /** @babel */
import React from 'react'
import InputBottomView from './InputBottomView'
import { Provider } from 'react-redux'
export const App = (store) => (
<Provider store={store}>
<InputBottomView />
</Provider>
)
|
test/components/Counter.spec.js | odincov/biguniverse-tools | /* eslint no-unused-expressions: 0 */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithTag,
Simulate
} from 'react-addons-test-utils';
import Counter from '../../src/components/Counte... |
definitions/npm/radium_v0.19.x/test_radium-v0.19.x.js | mkscrg/flow-typed | // @flow
import React from 'react';
import Radium from 'radium';
import type { FunctionComponent } from 'radium'
type Props1 = {
a: number,
b: string
};
const C1: FunctionComponent<Props1, void> = (props: Props1) => <div>{props.a} {props.b}</div>
type Props2 = {
a: number,
b: string,
};
class C2 ext... |
src/components/attributes/scatter-plot/local-attributes/GridLines.js | eveafeline/D3-ID3-Naomi | import React, { Component } from 'react';
class GridLines extends Component {
constructor(props) {
super(props)
this.state = {
checkbox: false
}
this.handleCheckbox = this.handleCheckbox.bind(this);
this.onSubmit = this.onSubmit.bind(this);
}
onSubmit(event) {
event.preventDefault... |
modules/dreamview/frontend/src/components/PNCMonitor/ControlMonitor.js | jinghaomiao/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import SETTING from 'store/config/ControlGraph.yml';
import ScatterGraph, { generateScatterGraph } from 'components/PNCMonitor/ScatterGraph';
@inject('store') @observer
export default class ControlMonitor extends React.Component {
render() {
... |
src/js/container/ScrollSpy.js | tpucci/jobads-webapp | import React from 'react';
let latestKnownScrollY;
let raf;
let ticking;
let waiting;
let endScrollHandle;
export default class ScrollSpy extends React.Component {
constructor(props) {
super(props);
this.state = {
top: 0,
inertia: 0,
isAtTop: true
};
... |
sub-packs/themes/zealder-default-theme/src/components/Html.js | Zealder/zealder-cms | // @flow
// this is the most generic content component that only export content as html
import React from 'react';
export default class Html extends React.Component {
componentDidMount() {
if ($(".as-html form").length) {
// since there is form on page, add recaptcha
grecaptcha.ready(function() {
... |
src/components/Contact/Contact.js | notaurologist/jasonlemoine.com | import React from 'react';
import styles from './contact.css';
const Contact = () => (
<main className={ styles.contact }>
<form action="https://formspree.io/site@lemoine.io" method="POST">
<input type="hidden" name="_next" value="http://www.jasonlemoine.com/contact/thanks" />
<input type="text" name="_gotcha... |
src/containers/community/InvitationList.js | Hylozoic/hylo-redux | import React from 'react'
import { humanDate } from '../../util/text'
import A from '../../components/A'
import Avatar from '../../components/Avatar'
import {
fetchInvitations, sendCommunityInvitation, notify,
resendAllCommunityInvitations
} from '../../actions'
import { FETCH_INVITATIONS } from '../../actions/cons... |
test/fixtures/webpack-message-formatting/src/AppAliasUnknownExport.js | timlogemann/create-react-app | import React, { Component } from 'react';
import { bar as bar2 } from './AppUnknownExport';
class App extends Component {
componentDidMount() {
bar2();
}
render() {
return <div />;
}
}
export default App;
|
app/javascript/mastodon/features/ui/components/columns_area.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... |
modules/IndexLink.js | upraised/react-router | import React from 'react'
import Link from './Link'
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
src/js/components/icons/base/Power.js | odedre/grommet-final | /**
* @description Power SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prop... |
src/Transition.js | cesarandreu/react-overlays | import React from 'react';
import transitionInfo from 'dom-helpers/transition/properties';
import addEventListener from 'dom-helpers/events/on';
import classnames from 'classnames';
let transitionEndEvent = transitionInfo.end;
export const UNMOUNTED = 0;
export const EXITED = 1;
export const ENTERING = 2;
export cons... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.