path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
docs/src/app/components/pages/components/SvgIcon/Page.js | igorbt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconReadmeText from './README';
import IconExampleSimple from './ExampleS... |
src/components/RadioButton/RadioButton-story.js | wfp/ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean, text } from '@storybook/addon-knobs';
import RadioButton from '../RadioButton';
import RadioButtonSkeleton from '../RadioButton/RadioButton.Skeleton';
const radioPro... |
packages/wix-style-react/src/ListItemSection/docs/index.story.js | wix/wix-style-react | import React from 'react';
import Star from 'wix-ui-icons-common/Star';
import Download from 'wix-ui-icons-common/Download';
import Hint from 'wix-ui-icons-common/Hint';
import {
header,
tabs,
tab,
description,
importExample,
title,
columns,
divider,
example as baseExample,
playground,
api,
test... |
src/svg-icons/notification/airline-seat-recline-normal.js | lawrence-yu/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... |
src/icons/IosGameControllerB.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosGameControllerB extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M135.123,204.568c-10.688,0-19.343,8.717-19.343,19.441c0,10.727,8.655,19.447,19.343,19.447
c10.641,0,19.... |
src/components/TopBar.js | dkadrios/zendrum-stompblock-client | import React from 'react'
import PropTypes from 'prop-types'
import { withStyles, AppBar, Toolbar, SvgIcon, Typography } from '@material-ui/core'
import UserInfo from './UserInfo'
import ZendrumLogo from '../images/ZendrumLogo.svg.js'
import RestompAd from './RestompAd'
const styles = {
title: {
flex: 1,
fon... |
src/components/custom-drawer-content.js | Doko-Demo-Doa/CSClient-RN | /**
* @flow
*/
'use strict';
import React from 'react';
import { View, Image, Alert } from 'react-native';
import { NavigationActions } from 'react-navigation';
import { Body, Icon, Left, ListItem, Text } from 'native-base';
import { connect } from 'react-redux';
import md5 from 'blueimp-md5';
import { requestLogout ... |
docs/src/components/Typography/Typography.js | seekinternational/seek-asia-style-guide | import React from 'react';
import { Helmet } from 'react-helmet';
import PropTypes from 'prop-types';
import {
PageBlock,
Card,
Section,
Paragraph,
Text,
TextLink,
Strong,
Positive,
Critical,
Secondary
} from 'seek-asia-style-guide/react';
import { ScreenReaderOnly } from 'seek-asia-style-guide/reac... |
src/components/SummaryDetail/SummaryDetail.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { ButtonIcon, IconButton } from '../Button';
const SummaryDetail = ({
children,
containerClassName,
iconButtonClassName,
isOpen,
onOpen,
renderTitle,
title,
}) => (
<div className={cx('slds-summary-detail... |
src/components/texts/subtitle-text.js | tuantle/hypertoxin | /**
* Copyright 2016-present Tuan Le.
*
* Licensed under the MIT License.
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://opensource.org/licenses/mit-license.html
*
* Unless required by applicable law or agreed to in writing, software
* d... |
pages/error/index.js | koistya/react-static-boilerplate | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/helpers/__tests__/connectData-test.js | Justkant/WhatAShop | import { expect } from 'chai';
import React from 'react';
import { div } from 'react-dom';
import connectData from '../connectData';
describe('connectData', () => {
let fetchData;
let fetchDataDeferred;
let WrappedComponent;
let DataComponent;
beforeEach(() => {
fetchData = 'fetchDataFunction';
fetc... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateUninitialized.js | facebook/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
props: Props;
state: State;
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
props: Props;
state: State;
de... |
jiuzhou/RootScene.js | Cowboy1995/JZWXZ | /**
* Created by Tong on 2017/5/10.
*/
/**
* Copyright (c) 2017-present, Liu Jinyong
* All rights reserved.
*
* https://github.com/huanxsd/MeiTuan
* @flow
*/
//import liraries
import React, { Component } from 'react';
import {
Text,
StyleSheet,
View,
TextInput,
TouchableOpacity,
ToastAn... |
modules/RouteUtils.js | littlefoot32/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
react-ui/src/Navbar.js | Swoodend/pollster-heroku | import React, { Component } from 'react';
import NavbarNotLoggedIn from './NavbarNotLoggedIn';
import NavbarLoggedIn from './NavbarLoggedIn';
class Navbar extends Component {
constructor(props){
super(props);
this.state = {
loggedIn : false
}
}
componentWillMount(){
let user = localStorage... |
src/components/common/icons/Open.js | WendellLiu/GoodJobShare | import React from 'react';
/* eslint-disable */
const Open = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<g transform="translate(41.625 46.25)">
<polygon points="27.75 0 27.75 60.125 37 60.125 37 0"/>
<polygon points="62.438 25.438 2.313 25.438 2.313 34.688 62.438 34.... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch02/02_07/start/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import { hello, goodbye } from './lib'
render(
<div>
{hello}
{goodbye}
</div>,
document.getElementById('react-container')
) |
pages/nintama.js | ybiquitous/next-todo | import React from 'react'
const QUESTIONS = [
{
image: 'http://www.line-tatsujin.com/stamp/outline/a00227-0.png',
choices: [
'猪名寺乱太郎',
'猪奈寺乱太郎',
'猪名寺乱太朗',
],
correct: 0,
},
{
image: 'http://neoapo.com/images/character/13006/a4de7d3b0dcadf1d1e9a5fd51f8fe9b5.png',
choices:... |
react-flux-mui/js/material-ui/src/svg-icons/editor/format-quote.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatQuote = (props) => (
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>
</SvgIcon>
);
EditorFormatQuote = pure(EditorFormatQuote);
EditorFormatQuote.displayName = 'EditorFor... |
src/svg-icons/notification/confirmation-number.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationConfirmationNumber = (props) => (
<SvgIcon {...props}>
<path d="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2... |
main.js | manojadd/bob-demo | import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Bob from './components/Bob.jsx';
import ProjectDetails from './components/ProjectDetails.jsx';
import {Router,Route,IndexRoute,hashHistory} from 'react-router';
import Feedback from '.... |
example/index.android.js | line64/react-native-checkout-mercadopago | import React from 'react';
import { AppRegistry, StyleSheet, Text, View, TouchableHighlight } from 'react-native';
import * as MercadoPago from 'react-native-checkout-mercadopago';
import env from './app.json';
export default class Example extends React.Component {
state = {
status: null
};
handl... |
src/containers/app/AppBase.js | mikebarkmin/react-to-everything | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import injectTapEventPlugin from 'react-tap-event-plugin';
import theme from '../../theme/theme';
import Header from '../../components/header/Header';
import Navigati... |
client/src/containers/LandingPage/index.js | pqmcgill/stamp-wedding-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import detectWebpSupport from '../../util/detectWebpSupport';
import CompatibleImg from '../../components/CompatibleImg';
import { css } from 'aphrodite';
import { Grid, Row, Col } from 'react-flexbox-grid-aphrodite';
import styles from '.... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js | liamhu/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(users) {
return [
{ id: 1, name: '1' ... |
examples/with-loading/pages/index.js | sedubois/next.js | import React from 'react'
import Header from '../components/Header'
export default () => (
<div>
<Header />
<p>Hello Next!</p>
</div>
)
|
pages/index.js | jubearsun/innovative-design | import anime from 'animejs';
import React from 'react';
import classNames from 'classnames';
import DocumentTitle from 'react-document-title';
import FontAwesome from 'react-fontawesome';
import KeyHandler, { KEYDOWN } from 'react-key-handler';
import { prefixLink } from 'gatsby-helpers';
import _ from 'lodash';
impo... |
dva/antdmobile/test/index/index-test.js | gubaojian/trylearn | /**
* @file index-test
* @author anima
*/
import {expect, assert} from 'chai';
import React from 'react';
import dva from 'dva/mobile';
import {call, put} from 'dva/effects';
import CountModel, {delay} from '../../src/pages/index/models/model';
describe('index', () => {
const app = dva();
app.model(CountModel... |
webapp/app/components/RestoreHistory/index.js | EIP-SAM/SAM-Solution-Server | //
// Page history save
//
import React from 'react';
import { PageHeader } from 'react-bootstrap';
import RestoreHistoryButtons from 'containers/RestoreHistory/Buttons';
import RestoreHistoryTable from 'containers/RestoreHistory/Table';
import styles from 'components/RestoreHistory/styles.css';
/* eslint-disable rea... |
src/react/JSONTree/JSONArrow.js | josebalius/redux-devtools | import React from 'react';
const styles = {
base: {
display: 'inline-block',
marginLeft: 0,
marginTop: 8,
marginRight: 5,
'float': 'left',
transition: '150ms',
WebkitTransition: '150ms',
MozTransition: '150ms',
borderLeft: '5px solid transparent',
borderRight: '5px solid trans... |
source/containers/App/Header/ChatButton.js | mikey1384/twin-kle | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'components/Button';
import Icon from 'components/Icon';
ChatButton.propTypes = {
chatMode: PropTypes.bool,
loading: PropTypes.bool,
numUnreads: PropTypes.number,
onClick: PropTypes.func.isRequired
};
export default function Cha... |
src/Parser/Hunter/Marksmanship/Modules/Items/MKIIGyroscopicStabilizer.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
/**
* Equip: Your Aimed Shot grants yo... |
src/svg-icons/action/assignment-returned.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturned = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-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-7 0c.55 0 1 .... |
src/parser/rogue/subtlety/modules/core/NightbladeDuringSymbols.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import DamageTracker from 'parser/shared/modules/AbilityTracker';
import SymbolsDamageTracker from './SymbolsDamageTracker';
class NightbladeDuringSymbols extends Ana... |
src/universal/modules/auth/signup/components/Signup/Signup.js | ruffers9/django-react-boilerplate | import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Paper from 'material-ui/Paper';
import { Link } from 're... |
packages/react-router-website/modules/components/Logo.js | justjavac/react-router-CN | import React from 'react'
import { Block, Row } from 'jsxstyle'
import { DARK_GRAY } from '../Theme'
import LogoImage from '../logo.png'
const Logo = ({ size = 230, shadow = true }) => (
<Row
background={DARK_GRAY}
width={size+'px'}
height={size+'px'}
alignItems="center"
justifyContent="center"
... |
examples/todomvc/config/react.js | lore/lore | /**
* Configuration file for React
*
* This file is where you define overrides for the default mounting behavior.
*/
// import React from 'react';
// import ReactDOM from 'react-dom';
// import { Provider } from 'react-redux';
// import { Router } from 'react-router';
export default {
/**
* ID of DOM Elemen... |
src/routes/home/index.js | quasicrial/quasicrial | /**
* 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 Home from './Home';
impo... |
www/app/components/main_panel/email_section.js | kalikaneko/bitmask-dev | import React from 'react'
//import { Button, Glyphicon, Alert } from 'react-bootstrap'
import SectionLayout from './section_layout'
import Account from 'models/account'
import Spinner from 'components/spinner'
import bitmask from 'lib/bitmask'
export default class EmailSection extends React.Component {
static get d... |
src/components/common/AsyncElement.js | ajkhatibi/wheevy | import React from 'react';
import Router from 'react-router';
import { Route, RouteHandler, Link } from 'react-router';
var AsyncElement = {
loadedComponent: null,
load: function () {
if (this.constructor.loadedComponent) {return;}
this.bundle((component) => {
this.constructor.loadedComponent = component;... |
src/containers/GameOfLifePage.js | svitekpavel/Conway-s-Game-of-Life | import React from 'react';
import { connect } from 'react-redux';
import GameOfLife from '../components/GameOfLife';
import {
setEpoch,
setSpeed,
setEvolutionRunning,
} from '../actions/gameOfLifeActions';
import getNextEpoch from '../utils/getNextEpoch';
import createGrid from '../utils/createGrid';
import grid... |
src/component/event-form/index.js | vagabond0079/casehawk-frontend | import React from 'react';
import * as util from '../../lib/util.js';
import './event-form.scss';
class EventForm extends React.Component {
constructor(props){
super(props);
this.state = props.event
? {...props.event}
: {title: '',
allDay: false,
start: '',
end: '',
... |
actor-apps/app-web/src/app/components/Main.react.js | hejunbinlan/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import VisibilityActionCreators from '../actions/VisibilityActionCreators';
import FaviconActionCreators from 'actions/FaviconActionCreators';
import FaviconStore from 'stores/FaviconStore';
import ActivitySection from 'components/ActivitySecti... |
fields/types/datearray/DateArrayFilter.js | joerter/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import DayPicker from 'react-day-picker';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const PRESENCE_OPTIONS = [
{ label: 'At least one element', value: 'some' },
{ label: 'No element', value: 'none'... |
src/components/Contentful/Event/presenter.js | ndlib/usurper | // Presenter component for a Event content type from Contentful
import React from 'react'
import PropTypes from 'prop-types'
import typy from 'typy'
import 'static/css/global.css'
import LibMarkdown from 'components/LibMarkdown'
import Link from 'components/Interactive/Link'
import Related from '../Related'
import Imag... |
src/components/usershow/UseritemComponent.js | WishTreeGroup/wishtree_web | 'use strict';
import React from 'react';
require('styles/usershow/Useritem.sass');
class UseritemComponent extends React.Component {
render() {
return (
<div className="useritem-component">
<span>{this.props.itemname}</span>{this.props.itemvalue}
</div>
);
}
}
UseritemComponent.displ... |
web/src/client/createRoutes.js | vampolo/react-experiments | import App from './app/app.react';
import Home from './pages/home.react';
import Login from './pages/auth.react';
import Me from './pages/me.react';
import NotFound from './pages/notFound.react';
import React from 'react';
import Todos from './pages/todos.react';
import Sysdig from './pages/sysdig.react';
import {Index... |
src/index.js | ldstudio-ca/react-pdfjs-mobile | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
export default App;
// let root = document.getElementById('root');
// ReactDOM.render(<App url="../how-to-setup.pdf"
// onClose={ () => {
// ReactDOM.unmountComponentAtNode(root);
// } } />, root);
|
src/Parser/Hunter/Survival/Modules/Talents/SteelTrap.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import SpellIcon from 'common/SpellIcon';
import Combatants from 'Parser/Core/Modules/Combatants';
import SpellUsable from 'Parser/Core/Modules/SpellUsable';
import SpellLink from 'common/SpellLink';
import Item... |
Realization/frontend/czechidm-core/src/components/advanced/Filter/FilterToogleButton.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import AbstractContextComponent from '../../basic/AbstractContextComponent/AbstractContextComponent';
import * as Basic from '../../basic';
import * as Domain from '../../../domain';
import { DataManager, IdentityMa... |
src/decorators/withViewport.js | cheshire137/cheevo-plotter | /**
* 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, { Component } from 'react'; // eslint-disabl... |
test/fixtures/builds-with-multiple-runtimes/src/index.js | mangomint/create-react-app | import React from 'react';
import dva from 'dva';
import createHistory from 'history/createHashHistory';
import ky from 'ky';
const app = dva({ history: createHistory() });
app.router(() => {
ky.get('https://canihazip.com/s')
.then(r => r.text())
.then(console.log, console.error)
.then(() => console.log(... |
site/demos/earthquake-reporter/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import {
ReactiveBase,
SelectedFilters,
RangeSlider,
DynamicRangeSlider,
SingleList,
} from '@appbaseio/reactivesearch';
import { ReactiveGoogleMap, ReactiveOpenStreetMap } from '@appbaseio/reactivemaps';
import Dropdown from '@appbaseio/reactivesearch/l... |
src/components/extensions/overview/blocks/cost.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
const Cost = ({extensionCost}) => {
const PriceTableRows = ({price}) => {
return (
<tr>
<th>{price.desc}</th>
<td>{price.gold}</td>
<td>{price.usd}</td>
<td>{price.eur}</td>
<td>{price.gbp}</td>
</t... |
src/RegionSelect.js | casavi/react-region-select | import React, { Component } from 'react';
import { PropTypes } from 'prop-types';
import objectAssign from 'object-assign';
import Region from './Region';
import style from './style';
class RegionSelect extends Component {
constructor (props) {
super(props);
this.onComponentMouseTouchDown = this.onComponentMouse... |
client/modules/DangTin/DangTinPages.js | tranphong001/BIGVN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Modal, Button } from 'react-bootstrap';
import { getCategories, getCities, getDistricts, getWards, getId } from '../App/AppReducer';
import { fetchDistricts, fetchWards, addDistricts, addWards, ... |
src/svg-icons/image/navigate-before.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageNavigateBefore = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
ImageNavigateBefore = pure(ImageNavigateBefore);
ImageNavigateBefore.displayName... |
src/client.js | derek-duncan/challenge | 'use strict';
import Iso from 'iso';
import Router from 'react-router';
import React from 'react';
import createBrowserHistory from 'history/lib/createBrowserHistory'
import reactRoutes from './routes/client';
import alt from './alt';
Iso.bootstrap((state, _, container) => {
alt.bootstrap(state);
let history = ... |
example/src/screens/types/tabs/TabOne.js | luggit/react-native-navigation | import React from 'react';
import { StyleSheet, View, Text, Dimensions, Button } from 'react-native';
class TabOne extends React.Component {
render() {
return (
<View>
<Text>Tab One</Text>
</View>
);
}
}
export default TabOne;
|
docs/src/NotFoundPage.js | Firfi/meteor-react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const NotFoundPage = React.createClass({
render() {
return (
<div>
<NavMain activePage='' />
<PageHeader
title='404'
subT... |
node_modules/react-router/es6/Link.js | sharonjean/React-Netflix | 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/back-office/components/Logo.js | mihailgaberov/es6-bingo-game | import React from 'react';
class Logo extends React.Component {
render() {
return <div id="logo" />;
}
}
export default Logo;
|
__tests__/index.android.js | king-smith/collector-alpha | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
client/src/transforms/FormAction/ownerAwareUnpublish.js | open-sausages/silverstripe-asset-admin | /* global confirm */
import React from 'react';
import i18n from 'i18n';
const ownerAwareUnpublish = (FormAction) => (props) => {
const originalOnclick = props.onClick;
const newProps = {
...props,
onClick(e, nameOrID) {
const { owners } = props.data;
let message = null;
if (owners && par... |
app/components/UGFooterSitemap/index.js | perry-ugroop/ugroop-react-dup2 | import React from 'react';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import { Grid, Row, Col, FormGroup } from 'react-bootstrap';
import UGFooterSitemap from './UGFooterSitemap';
import UGFooterBtn from './UGFooterBtn';
import UGFooterH3 from './UGFooterH3';
import UGFooterULWith... |
src/lib/reactors/Showcase/ItemThumbnail.js | EsriJapan/photospot-finder | // Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to us... |
src/containers/entitysetforms/CreateEntitySet.js | kryptnostic/gallery | import React from 'react';
import Immutable, { List } from 'immutable';
import PropTypes from 'prop-types';
import Select from 'react-select';
import styled from 'styled-components';
import { FormControl, FormGroup, ControlLabel, Button, Alert } from 'react-bootstrap';
import { connect } from 'react-redux';
import { ... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | MastodonCloud/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import { expandHashtagTimeline } from '../../../actions/timelines';
import Column from '../../../components/column';
import ColumnHeader from... |
client/containers/overview.js | nearform/vidi-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router'
import {Panel, PageHeader, HealthList} from '../components/index'
import ChartistGraph from 'react-chartist'
import {subscribe, unsubscribe} from '../actions/vidi'
import _ from 'lodash'
export const Overview ... |
Faw.Web.Client/src/routes/Achivment/Details/components/AchivmentDetails.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import { Grid, Cell, Button } from 'react-mdl'
import { Stepper, Step, SelectField, Option } from 'react-mdl-extra'
import AchivmentDetailsForm from './AchivmentDetailsForm'
import PropertyEditor from './PropertyEditor'
import AchivmentStepperButtons from './AchivmentStepperButtons'
import Ach... |
client/routes.js | izolate/skeleton | import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import DefaultLayout from './layouts/Default'
import HomePage from './pages/Home'
import Error404Page from './pages/404'
const routes = <Router history={browserHistory}>
<Route path='/' component={DefaultLayout}>
<... |
js/src/modals/CreateWallet/createWalletStore.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
examples/js/selection/unselectable-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
local-cli/templates/HelloNavigation/views/MainNavigator.js | cpunion/react-native | 'use strict';
/**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './HomeS... |
webpack/components/accounts/ProfileEditor.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Modal } from 'react-bootstrap';
import values from 'lodash/values';
import filter from 'lodash/filter';
import clone from 'lodash/clone';
import Errors from '../Errors.js';
import NestedSearchBar from '../NestedSearchBar';
import {... |
examples/react-refetch/src/index.js | gaearon/react-hot-loader | import React from 'react';
import { render } from 'react-dom';
import App from './App';
const root = document.createElement('div');
document.body.appendChild(root);
render(<App />, root);
|
app/m_components/Hotdot.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
import HotdotActions from '../actions/HotdotActions';
import HotdotObjStore from '../stores/HotdotObjStore';
import MyInfoNavbar from './MyInfoNavbar';
import Weixin from './Weixin';
class Hotdot extends React.Component {
constructor(props) {
... |
examples/passing-props-to-children/app.js | taion/rrtr | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'rrtr'
import './app.css'
const App = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired
},
getInitialState() {
return {
tacos: [
{ name: 'duck confit... |
src/components/docs/breadcrumbs.js | nordsoftware/react-foundation-docs | import React from 'react';
import Playground from 'component-playground';
import {
Inline,
Grid,
Cell,
Breadcrumbs,
BreadcrumbItem,
} from 'react-foundation';
export const BreadcrumbsDocs = () => (
<section className="breadcrumbs-docs">
<Grid>
<Cell large={12}>
<h2>Breadcrumbs</h2>
... |
src/svg-icons/image/timer-10.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer10 = (props) => (
<SvgIcon {...props}>
<path d="M0 7.72V9.4l3-1V18h2V6h-.25L0 7.72zm23.78 6.65c-.14-.28-.35-.53-.63-.74-.28-.21-.61-.39-1.01-.53s-.85-.27-1.35-.38c-.35-.07-.64-.15-.87-.23-.23-.08-.41-... |
scripts/index.js | doron2402/flux-react-router-example | import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import HashHistory from 'react-router/lib/HashHistory';
import Root from './Root';
const rootEl = document.getElementById('root');
// Use hash location for Github Pages
// but switch to HTML5 history locally.
const history = proce... |
src/parser/deathknight/blood/modules/features/BoneShield.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatDuration, formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import StatisticBox from 'interface/oth... |
src/components/navigation.js | inkdropapp/docs | import { StaticQuery, graphql, Link } from 'gatsby'
import { Container } from 'semantic-ui-react'
import React from 'react'
import { GatsbyImage } from 'gatsby-plugin-image'
import './navigation.less'
const Navigation = () => (
<Container className="app--navigation">
<nav className="ui grid">
<div classNam... |
src/components/SitePage/index.js | narendrasoni1989/react-site | import React from 'react'
class SitePage extends React.Component {
render() {
const post = this.props.data.post
return <div dangerouslySetInnerHTML={{ __html: post.html }} />
}
}
export default SitePage
|
es/AppBar/AppBar.js | uplevel-technology/material-ui-next | 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/routes/privacy/index.js | chaudhryjunaid/chaudhryjunaid.com | /**
* 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... |
src/components/components/mobile_list.js | highcoder1/ReactNews | import React from 'react';
import {Row,Col} from 'antd';
import {Link} from 'react-router-dom';
export default class MobileList extends React.Component {
constructor() {
super();
this.state = {
news: ''
};
}
componentWillMount() {
var myFetchOptions = {
method: 'GET'
};
fetch('http://newsapi.gugu... |
src/components/hand-signal/hand-signal.js | greaveselliott/rock-paper-scissors | import React from 'react'
import './hand-signal.scss';
import Icon from '../icon';
import PropTypes from 'prop-types';
const HandSignal = ({name, className, modifier, click_handler}) => {
return (
<figure onClick={click_handler} className={`${className} m-hand-signal${modifier}`}>
<div classNam... |
server/sonar-web/src/main/js/components/controls/DateInput.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/view/header.js | alexreardon/fullon-markdown | import React, { Component } from 'react';
import injectStyles from 'react-jss';
import ReactPlayer from 'react-player';
import Modal from 'react-modal';
import headerImage from '../img/header-image_860x391.jpg';
import logo from '../img/full-on-2020-logo.svg'
import config from '../../config';
import { button, gutters,... |
clientwebapp/src/index.js | jcocchi/IoTPlantWatering | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
import registerServiceWorker from './registerServiceWorker'
import './css/index.css'
ReactDOM.render(<App />, document.getElementById('root'))
registerServiceWorker()
|
docs/src/app/components/pages/components/Dialog/Page.js | frnk94/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dialogReadmeText from './README';
import DialogExampleSimple from './Exam... |
examples/Overlay.js | BespokeInsights/react-overlays | import React from 'react';
import Overlay from 'react-overlays/Overlay';
import Button from 'react-bootstrap/lib/Button';
// Styles Mostly from Bootstrap
const TooltipStyle = {
position: 'absolute',
padding: '0 5px'
};
const TooltipInnerStyle = {
padding: '3px 8px',
color: '#fff',
textAlign: 'center',
bor... |
js/components/nutrientList.js | codeocelot/soylent-industries | import React from 'react'
import NutrientStore from '../stores/nutrientStore'
import {Cell} from 'react-pure'
import {Table} from 'elemental'
import Nutrient from './nutrient'
import constants from '../constants/constants'
export default class NutrientList extends React.Component{
constructor(props){
super(props... |
example/app.js | georgeOsdDev/react-ellipsis-text | 'use strict';
import React from 'react';
import ReactDom from 'react-dom';
import EllipsisText from '../lib/components/EllipsisText';
//allow react dev tools work
window.React = React;
const styles = {
title: {
marginTop: '40px'
},
content: {
padding: '10px'
},
removed:{
marginTop: '40px',
... |
src/routes.js | raulmatei/frux-table-test | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Root from './root';
import NotFound from './not-found';
import TableView from './components/table-view';
export default (
<Route path='/' component={Root}>
<IndexRoute component={TableView}/>
<Route path='show' com... |
server/sonar-web/src/main/js/apps/permission-templates/components/Defaults.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
client/app.js | Eschocolat/Pinbook | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import { AppContainer as HotReloader } from 'react-hot-loader';
import routes from './routes';
const appElement = document.getElementById('app');
const root = (
<Router history={browserHistory}>
... |
app/pages/index.js | booee/nextfire | import React from 'react'
export default class extends React.Component {
render() {
return (
<div>Hello, World!</div>
)
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.