path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/routes/MetaCoin/components/HeaderComponent.js | trixyrabbit/Exile | import React from 'react'
export const Header = () => {
return (
<div>
<h2>MetaCoin Example Webpack react-redux Example!</h2>
</div>
)
}
Header.propTypes = {
}
export default Header
|
app/app.js | SergejKasper/churchfathers | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/components/svg/Logo.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
const Logo = (props) => {
return (
<svg width={props.width} height={props.height} viewBox="0 0 648 360" xmlns="http://www.w3.org/2000/svg">
<path id="compass" fill={props.colorCompass} d="m 201.279,15.5 c 21.06,-0.791 41.549,2.187 61.91,9.451 -... |
src/higherOrders/Transition.js | lenxeon/react-ui | import React from 'react'
import PropTypes from '../utils/proptypes'
function childrenToItems (children) {
if (!children) {
return {}
}
let items = {}
if (!Array.isArray(children)) {
children = [children]
}
children.forEach((child) => {
items[child.key] = child
})
return items
}
functio... |
node_modules/react-bootstrap/es/PagerItem.js | caughtclean/but-thats-wrong-blog | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/helpers/Html.js | hasibsahibzada/quran.com-frontend | /* eslint-disable global-require, quotes, max-len */
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Helmet from 'react-helmet';
import serialize from 'serialize-javascript';
const Html = ({ store, component, assets }) => {
const content = component ? Re... |
src/Component/React/ReactAdapter/index.js | Kitware/paraviewweb | import React from 'react';
import ReactDOM from 'react-dom';
export default class ReactContainer {
constructor(reactClass, reactProps) {
this.props = reactProps;
this.reactClass = reactClass;
this.container = null;
this.component = null;
}
setContainer(el) {
if (this.container && this.contai... |
test/specs/ReactPlayer.js | SkinyMonkey/react-player | /* eslint-disable no-unused-expressions */
import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import ReactPlayer from '../../src/ReactPlayer'
const { describe, it, expect, beforeEach, afterEach } = window
const TEST_URLS = [
{
name: 'YouTube',
url: 'https://www.youtube.co... |
core/src/app.js | syon/gaiyas | /* @type */
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { fetchPosts, makeRanking } from './actions'
import Main from './components/Main.jsx'
import configureStore from './store/configureStore'
import './css/app.css'
const defaultUrl = new URL(location.href)... |
app/src/common/hoc/withBackButton.js | BlackBoxVision/react-native-redux-todo | import React from 'react';
import PropTypes from 'prop-types';
import { BackAndroid, Platform } from 'react-native';
import connect from 'react-redux/lib/connect/connect';
export default function withBackButton() {
return ReactComponent => {
const mapStateToProps = state => ({
index: state.navi... |
src/components/organisms/Hero/index.js | DimensionLab/narc | import React from 'react'
import styled from 'styled-components'
import { palette, size } from 'styled-theme'
import {
Block,
Paragraph,
IconLink,
IconButton,
LogoImage,
PreformattedText,
Heading,
Tooltip,
} from 'components'
const Wrapper = styled(Block)`
display: flex;
justify-content: center;
... |
src/index.js | Gab-Metzger/react-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/components/shared/GoBack.js | juandjara/open-crono | import React from 'react'
import { browserHistory } from 'react-router'
import Button from 'react-toolbox/lib/button/Button';
const NotFound = () => {
return (
<Button
primary
onClick={() => browserHistory.goBack()}
label="Volver atrás" />
)
}
export default NotFound
|
src/components/CatalogList/CatalogList.js | pustovitDmytro/maysternya | /**
* 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 cx from 'classnames';... |
src/components/NavsFigure.js | yuhaogo/study-mk-photos | import React from 'react';
class NavsFigure extends React.Component{
handleClick=(e)=>{
const {isCenter}=this.props.arrange;
if(isCenter){
this.props.inverse();
}else{
this.props.center();
}
e.stopPropagation();
e.preventDefault();
}
... |
src/js/ui/chunk-row.js | SpaceHexagon/pylon | import React from 'react';
import ChunkMenu from './chunk-menu.js';
export default class ChunkRow extends React.Component {
constructor() {
super();
this.state = {filterText: ''}
}
render () {
return (
<div className={"chunk-row "+this.props.offset}>
{this.props.chunks.map(function (chunk, ... |
src/interface/Portal.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import PortalTarget from './PortalTarget';
class Portal extends React.PureComponent {
static propTypes = {
children: PropTypes.node.isRequired,
};
state = {
elem: null,
};
componentDidMount() {
this.... |
src/svg-icons/maps/flight.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>... |
src/screen/ScreenPreviewer.js | RoyalIcing/gateau | import R from 'ramda'
import React from 'react'
import seeds, { Seed } from 'react-seeds'
import Frame from 'react-frame-component'
import Button from '../ui/Button'
import Choice from '../ui/Choice'
import * as stylers from '../stylers'
import destinations from '../destinations'
const catchRenderErrors = false
cons... |
src/routes/contact/index.js | mcfa77y/isla_de_pescua | /**
* 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 Contact from './Contact'... |
webclient/home/index.js | souravDutta123/Cognitive-Assistant | import Introduction from './introduction.js';
import Navbar from './navBar.js';
import React from 'react';
import Paper from 'material-ui/Paper';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
const styles = {
};
export {Introduction,Navbar} ;
|
cms/cms.js | GeniusWigga/irmua | import React from 'react'
import CMS from 'netlify-cms'
// CMS.registerPreviewStyle('/styles.css')
// CMS.registerPreviewTemplate('blog', BlogPostPreview)
|
src/renderer/components/Frame/FrameControls.js | MovieCast/moviecast-desktop | import { remote } from 'electron';
import React, { Component } from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Minimize from './Controls/Minimize';
import Maximiz... |
ui/js/layout.js | beni55/spigo | 'use strict';
import React from 'react';
import Header from 'header';
export default React.createClass({
render () {
return (
<section id="app">
<Header />
{this.props.children}
</section>
);
}
});
|
app/components/Github/Repos.js | joshuar500/repository-notes | import React from 'react';
class Repos extends React.Component {
render(){
var repos = this.props.repos.map(function(repo, index){
// funny way to do if then statement with &&
return (
<li className="list-group-item" key={index}>
{repo.html_url && <h... |
templates/rubix/demo/src/routes/Messengerjs.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Row,
Col,
Grid,
Panel,
Table,
Button,
PanelBody,
PanelHeader,
PanelContainer,
} from '@sketchpixy/rubix';
export default class Messengerjs extends React.Component {
componentDidMount() {
// configuring default options for Messenger
Messenger.options = {
... |
public/js/cat_source/es6/components/segments/Segment.js | Ostico/MateCat | /**
/**
* React Component for the editarea.
*/
import SegmentCommentsContainer from './SegmentCommentsContainer'
import SegmentsCommentsIcon from './SegmentsCommentsIcon'
import React from 'react'
import SegmentStore from '../../stores/SegmentStore'
import SegmentActions from '../../actions/SegmentActions'
import S... |
src/js/pages/AnswerQuestionPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import selectn from 'selectn';
import TopNavBar from "../components/TopNavBar/TopNavBar";
import AnswerQuestion from '../components/questions/AnswerQuestion';
import AuthenticatedComponent from '../components/AuthenticatedComponent';
import t... |
src/components/Tile/test.js | codella/snake | import React from 'react';
import ReactDOM from 'react-dom';
import Tile, {TILE_TYPES} from './';
it('renders an empty tile without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<Tile type={TILE_TYPES.empty} />, div);
});
it('renders a snake tile without crashing', () => {
const... |
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js | akingyin1987/actor-platform | import React from 'react';
import Modal from 'react-modal';
//import pureRender from 'pure-render-decorator';
import { Styles, FlatButton } from 'material-ui';
import AppCacheStore from 'stores/AppCacheStore';
import AppCacheActionCreators from 'actions/AppCacheActionCreators';
import { KeyCodes } from 'constants/Act... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | mangomint/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';
export default class extends Component {
static propTyp... |
admin/client/App/shared/AlertMessages.js | w01fgang/keystone | import React from 'react';
import { Alert } from '../elemental';
import { upcase } from '../../utils/string';
/**
* This renders alerts for API success and error responses.
* Error format: {
* error: 'validation errors' // The unique error type identifier
* detail: { ... } // Optional details specific t... |
fixtures/dom/src/components/FixtureSet.js | yangshun/react | import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
title: PropTypes.node.isRequired,
description: PropTypes.node.isRequired,
};
class FixtureSet extends React.Component {
render() {
const {title, description, children} = this.props;
return (
<div>
<h1>{titl... |
src/library/validations/components/Select.js | zdizzle6717/universal-react-movie-app | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import defaultValidations from '../constants/defaultValidations'
import classNames from 'classnames';
import FormActions from '../actions/FormActions';
import FormStore from '../stores/FormStore';
export default class Select extends React.Comp... |
client/analytics/components/pages/overview/assetReport/AssetSummary.js | Haaarp/geo | import React from 'react';
import {connect} from 'react-redux';
import FormWrap from 'konux/common/components/FormWrap';
import Block from './../../../partials/Block';
import SingleInfoIndicatorContainer from './../../../partials/indicators/SingleInfoIndicatorContainer';
import { translate } from 'react-i18next';
cl... |
src/utils/typography.js | mattdell/coinmarketwatch | /* eslint-disable */
import ReactDOM from 'react-dom/server';
import React from 'react';
import Typography from 'typography';
import CodePlugin from 'typography-plugin-code';
import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants';
const options = {
baseFontSize: '18px',
baseLineHeight: 1.45,
scaleR... |
src/pages/resume/components/preface.js | dan9186/danielhess.me | import React from 'react'
import styled from 'styled-components'
import { Section } from '../../../components/grid'
export const Preface = ({ preface }) => (
<Section>
<Content>{preface}</Content>
</Section>
)
const Content = styled.div`
display: flex;
flex-flow: row wrap;
margin-top: ${({ theme }) => ... |
src/components/Publish/components/type_tabs/index.js | dloa/alexandria-librarian | import React from 'react';
import ExtraDrop from '../drop_zones/extra';
import MusicTab from './music';
export
default React.createClass({
getTab(){
switch (this.props.selectedType) {
case 'music':
return <MusicTab/>;
break;
}
},
render... |
src/svg-icons/editor/border-right.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderRight = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h... |
node_modules/react-bootstrap/es/MediaList.js | Technaesthetic/ua-tools | 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 ... |
components/spinner/spinner.js | Travix-International/travix-ui-kit | import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { getClassNamesWithMods, warnAboutDeprecatedProp } from '../_helpers';
/**
* General Spinner component.
*/
function Spinner(props) {
warnAboutDeprecatedProp(props.mods, 'mods', 'className');
const { classN... |
src/components/Title.js | roycejewell/flux-ui-example | import React, { Component } from 'react';
class Title extends Component {
render() {
return (
<h1 className={`title title--${this.props.type}`}>{this.props.children}</h1>
);
}
}
export default Title;
|
packages/example-phone/src/scripts/components/call/media-status.js | glhewett/spark-js-sdk | import React from 'react';
export default function MediaStatus({audioDirection, videoDirection}) {
return (
<table>
<tbody>
<tr>
<td>audio:</td>
<td className="audio-direction">{audioDirection}</td>
</tr>
<tr>
<td>video:</td>
<td className="vi... |
src/components/Feedback/Feedback.js | ademuk/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
test/componentsMock.js | michaltakac/mathworldvr | import React from 'react'
import PropTypes from 'prop-types'
module.exports = new Proxy({}, {
get: (target, property) => {
const Mock = (props) => <a-entity>{props.children}</a-entity>
Mock.displayName = property
Mock.propTypes = {
children: PropTypes.any,
}
return Mock
},
})
|
src/icons/Folder.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Folder extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M430.1,192H81.9c-17.7,0-18.6,9.2-17.6,20.5l13,183c0.9,11.2,3.5,20.5,21.1,20.5h316.2c18,0,20.1-9.2,21.1-20.5l12.1-185.... |
node_modules/react-router/es6/RouteUtils.js | gurusewak/react101 | 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; };
import React from 'react';
function isValidChild(object) {
... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | hzy87email/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
src/svg-icons/av/skip-previous.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipPrevious = (props) => (
<SvgIcon {...props}>
<path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/>
</SvgIcon>
);
AvSkipPrevious = pure(AvSkipPrevious);
AvSkipPrevious.displayName = 'AvSkipPrevious';
AvSkipPrevious.mu... |
imports/ui/pages/Admin/Suppliers/NewSupplier/NewSupplier.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import SupplierEditor from '../../../../components/SupplierEditor/SupplierEditor';
const NewSupplier = ({ history }) => (
<div className="NewSupplier">
<h2 className="page-header">New Supplier</h2>
<SupplierEditor history={history} />
</div>
);... |
app/packs/src/components/qc/components/substance/BlockIr.js | ComPlat/chemotion_ELN | import React from 'react';
import PropTypes from 'prop-types';
import { Panel, Alert } from 'react-bootstrap';
import QcMolView from '../helper/qc_mol_view';
import { iconByMargin } from '../helper/icon';
import { tableIr } from '../helper/ir';
const emptyBlock = () => (
<div className="card-qc">
<h5>
<sp... |
chapter-11/react_router_chunked/src/pages/NotFound.js | mocheng/react-and-redux | import React from 'react';
const NotFound = () => {
return (
<div>404: Not Found</div>
);
};
export default NotFound;
|
client/main.js | hr-memories/TagMe | import Exponent from 'exponent';
import React from 'react';
import Login from './login';
import Homescreen from './homescreen';
import Memory from './memory';
import Memories from './memories';
import {
Navigator
} from 'react-native';
class App extends React.Component {
renderScene(route, navigator) {
if (rou... |
ui/src/pages/SettingsStoresPage/index.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withProps, compose } from 'recompose';
import { withModels } from 'ui/utils/hocs';
import { fromJS } from 'immutable';
import { queryStringToQuery, modelQueryStringSelector } from 'ui/redux/modu... |
docs/components/App/index.js | WEACOMRU/react-giphy-select | import React, { Component } from 'react';
import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light';
import bash from 'react-syntax-highlighter/dist/languages/bash';
import javascript from 'react-syntax-highlighter/dist/languages/javascript';
import tomorrowNightEighties from 'react-synt... |
js/pages/HomePage.js | KissLuckystar/HotelMarketingApp | /**
* 主页
* @flow
* Created by smk on 2017/2/23
*/
import React, { Component } from 'react';
import {
StyleSheet,
Image,
View,
BackAndroid,
ToastAndroid
} from 'react-native';
//react-native导航条组件
import TabNavigator from 'react-native-tab-navigator';
import MainPage from './MainPage'; //第一页主导航
... |
test/views/object.spec.js | transmute-industries/monarch-portal | import {expect} from 'chai'
import {shallow} from 'enzyme'
import React from 'react'
import {parse} from '../../app/scripts/utils/path'
import ObjectView from '../../app/scripts/views/object'
describe('Object', () => {
it('renders', () => {
const path = parse('/ipfs/hello/world')
const permalink = parse('/p... |
examples/src/components/Contributors.js | mcls/react-select | import React from 'react';
import Select from 'react-select';
const CONTRIBUTORS = require('../data/contributors');
const MAX_CONTRIBUTORS = 6;
const ASYNC_DELAY = 500;
const Contributors = React.createClass({
displayName: 'Contributors',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
ret... |
src/app/components/DatePickerExampleSimple.js | leoliew/react-webpack-example | /**
* Created by leoliew on 2016/11/28.
*/
import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import ShowCaseCard from './ShowCaseCard';
/**
* The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`.
* You can also disable the Dialog passing `true` to ... |
src/components/FunctionBox.js | piecewisecss/piecewisecss.github.io | import React from 'react';
import { WindowResizeListener } from 'react-window-resize-listener'
WindowResizeListener.DEBOUNCE_TIME = 20;
export default class FunctionBox extends React.Component{
constructor(props){
super(props);
this.state = { width: window.innerWidth };
}
render(){
// console.log('st... |
packages/material-ui-icons/src/Compare.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Compare = props =>
<SvgIcon {...props}>
<path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" />
</SvgIcon>;
Compare = ... |
examples/websdk-samples/LayerReactNativeSample/src/LoginDialog.js | layerhq/layer-js-sampleapps | import React, { Component } from 'react';
import {
StyleSheet,
View,
Modal,
Text,
TouchableOpacity,
Image,
TextInput
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
export default class LoginDialog extends Component {
constructor(props) {
super(props);
this.... |
packages/mineral-ui-icons/src/IconDomain.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconDomain(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>... |
core/src/plugins/gui.ajax/res/js/ui/HOCs/animations/make-staggered.js | ChuckDaniels87/pydio-core | /**
* Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCL... |
src/parser/druid/balance/CONFIG.js | sMteX/WoWAnalyzer | import React from 'react';
import { Gebuz } from 'CONTRIBUTORS';
import retryingPromise from 'common/retryingPromise';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time mainta... |
src/js/visuals/App.js | CT-Data-Collaborative/edi-v2 | import React, { Component } from 'react';
import StackedBarChart from './components/StackedBar';
import EdiMap from './components/Maps';
import Select from 'react-select';
class App extends Component {
constructor(props) {
super(props);
const mainElement = document.getElementById('main');
this.state = {
... |
src/js/components/icons/base/SocialGithub.js | odedre/grommet-final | /**
* @description SocialGithub 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.
... |
stories/Tooltip/Core/index.js | skyiea/wix-style-react | import React from 'react';
import {storiesOf} from '@storybook/react';
import Markdown from '../../utils/Components/Markdown';
import CodeExample from '../../utils/Components/CodeExample';
import Readme from '../../../src/Tooltip/README.md';
import ExamplePlacement from './ExamplePlacement';
import ExamplePlacementRa... |
client/modules/App/__tests__/Components/Footer.spec.js | aksm/refactored-palm-tree | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import { Footer } from '../../components/Footer/Footer';
test('renders the footer properly', t => {
const wrapper = shallow(
<Footer />
);
t.is(wrapper.find('p').length, 2);
t.is(wrapper.find('p').first().text(), '© 2016 ... |
src/components/Layout.js | douglascorrea/react-hot-redux-firebase-starter | import React from 'react';
import Header from './common/Header';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {signOut} from '../actions/authActions';
class Layout extends React.Component {
constructor(props, context) {
super(props, context);
}
render() {
const ... |
src/routes/employee/index.js | uptive/react-starter-kit | import React from 'react';
import Employee from './Employee';
export default {
path: '/employee/:id',
async action(context) {
return {
title: 'Employee',
component: <Employee id={ context.params.id } />,
};
},
};
|
crowdpact/static/js/apps/landing/components/LandingHeader.js | joshmarlow/crowdpact | import debounce from 'lodash/function/debounce';
import React from 'react';
import LandingActions from '../actions/LandingActions';
class LandingHeader extends React.Component {
constructor(...args) {
super(...args);
this.onClickLogin = this.onClickLogin.bind(this);
this.onSearch = debou... |
rojak-ui-web/src/app/kit/SocialMedia.js | CodeRiderz/rojak | import React from 'react'
import { Link } from 'react-router'
import styles from './SocialMedia.css'
class SocialMedia extends React.Component {
static propTypes = {
instagram: React.PropTypes.string,
twitter: React.PropTypes.string,
facebook: React.PropTypes.string,
style: React.PropTypes.object
}... |
examples/counter/index.js | jquense/redux | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
app/app/index.js | natecavanaugh/github-pulls | import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import routes from './routes';
import configureStore from './store/configureStore';
import {loginSuccess, loginComplete} from './actions/login';
import {loadConfig} from './actions/config';
import {updateCheck} from './ac... |
frontend/src/index.js | rayyildiz/twitter-streaming | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
website/Home.js | sahat/boilerplate | import haikunate from 'haikunator';
import React from 'react';
import Header from './Header';
import Footer from './Footer';
import Platform from './sections/Platform';
import StaticSiteGenerator from './sections/StaticSiteGenerator';
import JsLibrary from './sections/JsLibrary';
import Framework from './sections/Frame... |
src/Parser/Druid/Guardian/Modules/Sets/Tier21_2P.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SpellUsable from 'Parser/Core/Modules/SpellUsable';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
// Formats ... |
src/@ui/Icon/icons/LeafSolid.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M12 22C5.2 22 2 17.52 2 1... |
index.ios.js | lukewalt/buzzpoint | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
Text,
View,
NavigatorIOS,
} from 'react-native';
import styles from './styles/styles'
import LoginRegister from './components/signInRegister'
import Rating from './components/rating'
export default class buzzpoint extends Component... |
components/Icon/Icon.js | iest/loggins | import React, { Component } from 'react';
import invariant from 'invariant';
import styles from './Icon.css';
import icons from './icons';
export default class Icon extends Component {
constructor(props) {
super(props);
invariant(
icons[props.name],
`Icon(): No icon exists for "${props.name}"`
... |
jqwidgets/jqwidgets-react/react_jqxwindow.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxWindow extends React.Component {
componentDidMount() {
let options = this.manageA... |
src/components/d3components/Node.js | nbuechler/studious-display | import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
import _ from 'underscore';
export default class Node extends React.Component {
constructor (props) {
super(props);
this.state = { };
}
_handleOver(d) {
var shifter = 30; // This gets the whole tooltip away from the n... |
demo/component/TextDemo.js | sdoomz/recharts | import React, { Component } from 'react';
import { Text } from 'recharts';
class TextDemo extends Component {
state = {
exampleText: 'This is really long text',
x: 0,
y: 0,
width: 300,
height: 200,
angle: 0,
scaleToFit: false,
textAnchor: 'start',
verticalAnchor: 'start',
font... |
src/components/Feedback/Feedback.js | Batname/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.less';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedb... |
test/NavBrandSpec.js | pombredanne/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import NavbarBrand from '../src/NavbarBrand';
describe('NavbarBrand', () => {
it('Should create NavbarBrand SPAN element', () => {
let instance = ReactTestUtils.renderIntoDocument(
<NavbarB... |
examples/huge-apps/routes/Course/components/Course.js | kurayama/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import Nav from './Nav'
const styles = {}
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
}
class Course extends React.Component {
render() {
let { childre... |
src/svg-icons/notification/airline-seat-recline-normal.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineNormal = (props) => (
<SvgIcon {...props}>
<path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5... |
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js | ketoo/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import classNames from 'classnames';
import DialogStore from 'stores/DialogStore';
export default React.createClass({
mixins: [PureRenderMixin],
getInitialState() {
return {
typing: null,
show: false
};
},
compon... |
src/components/Developer/DeveloperList.js | iamraphson/mernmap | /**
* Created by Raphson on 10/14/16.
*/
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';
export default class DeveloperList extends Component {
constructor() {
super();
}
render(){
return (
<div className="col-l... |
tests/layouts/CoreLayout.spec.js | Havoc-Todo/havoc-web | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
src/parser/warrior/fury/modules/spells/RampageCancelled.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
const RAMPAGE_HITS_PER_CAST = 4;
class RampageCancelled extends Analyzer {
// Rampage is in fact 5 separate spells... |
todo-iflux-es6/assets/js/components/footer.react.js | hufeng/todomvc | import React from 'react';
import PureComponent from './pure-component';
/**
* footer
*/
export default class Footer extends PureComponent {
render() {
console.log('footer rendering....');
return (
<footer id="info">
<p>Double-click to edit a todo</p>
<p>Created by <a href="http://... |
src/svg-icons/maps/local-airport.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAirport = (props) => (
<SvgIcon {...props}>
<path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>
);
MapsLocalA... |
docs/app/Examples/collections/Table/Variations/TableExampleColumnWidth.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleColumnWidth = () => {
return (
<Table>
<Table.Header>
<Table.Row>
<Table.HeaderCell width={10}>Name</Table.HeaderCell>
<Table.HeaderCell width='six'>Status</Table.HeaderCell>
</Table.Ro... |
example/__tests__/index.ios.js | hyb175/react-native-calendar | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/image/switch-video.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSwitchVideo = (props) => (
<SvgIcon {...props}>
<path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | nicolas-amabile/counter | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
stories/Popover.stories.js | reactstrap/reactstrap | import React from 'react';
export default {
title: 'Components/Popover',
parameters: {
docs: {
description: {
component: '[Bootstrap Popovers](https://getbootstrap.com/docs/5.1/components/popovers/)'
}
}
}
};
export { default as Popover } from './examples/Popover';
export { default a... |
src/routes/Async/components/Async.js | janoist1/universal-react-redux-starter-kit | import React from 'react'
import Helmet from 'react-helmet'
import { resolve } from 'react-resolver'
@resolve('fetchedData', function(props) {
const { fetchData } = props
return fetchData().then(action => action.payload)
})
export class Async extends React.Component {
render() {
const { fetchedData } = this... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.