path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
examples/js/manipulation/multi-search-table.js
dana2208/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; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries', 'cherries' ]; for (let i =...
src/components/Button.js
shabib87/Albums
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, children }) => { const { buttonStyle, textStyle } = styles; return ( <TouchableOpacity onPress={onPress} style={buttonStyle}> <Text style={textStyle}> {children} ...
src/svg-icons/image/photo-album.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </Sv...
src/app/hero/list/heroes.js
nicolaspayot/react-tour-of-heroes
import React, { Component } from 'react'; import { hashHistory } from 'react-router'; import './heroes.scss'; export class Heroes extends Component { constructor(props) { super(props); this.state = {}; } onSelect(selectedHero) { this.setState({ selectedHero }); } gotoDetail() { const hero...
docs/src/app/AppRoutes.js
pancho111203/material-ui
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; // Here we define all our material-ui ReactComponents. import Master from './components/Master'; import Home from './components/pages/Home'; import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge'; i...
public/js/vendor/jquery-1.6.2.min.js
drip/drip
/*! * jQuery JavaScript Library v1.6.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ajax/libs/react-router/0.12.3/ReactRouter.js
nolsherry/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReactRouter"] = fac...
src/components/Shell.js
react-in-action/letters-social
import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import initialReduxState from '../constants/initialState'; const store = configureStore(initialReduxState); /** * App shell, wraps everything in the provider * @method Shell * @param {[type]} pr...
CompositeUi/src/views/component/SelectorOption.js
kreta-io/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import './../../scss/components/_selector...
ajax/libs/6to5/2.1.0/browser-polyfill.js
fbender/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
react/src/components/BlogButtons.js
sdcaulley/sdcaulley-portfolio
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; export function BlogButton(props) { return ( <div> <button name={props.name}> <Link to='/blog/edit'>{props.value}</Link> </button> </div> ); } BlogBut...
admin/client/App/shared/Portal.js
w01fgang/keystone
/** * Used by the Popout component and the Lightbox component of the fields for * popouts. Renders a non-react DOM node. */ import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, // eslint-disable-line react/sort-comp compone...
Resume/src/Resume.Web/wwwroot/lib/jquery-validation/lib/jquery-1.7.2.js
ProjectThemes/BUUResume
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
packages/material-ui-icons/src/ImageSearch.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5l-2-2zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4...
examples/04 Sortable/Stress Test/Container.js
randrianov/react-dnd
import React, { Component } from 'react'; import update from 'react/lib/update'; import { name } from 'faker'; import Card from './Card'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; const style = { width: 400 }; @DragDropContext(HTML5Backend) export defa...
test/containers/CounterPage.spec.js
kimurakenshi/caravanas
import React from 'react'; import { mount } from 'enzyme'; import { Provider } from 'react-redux'; import { createBrowserHistory } from 'history'; import { ConnectedRouter } from 'react-router-redux'; import CounterPage from '../../app/containers/CounterPage'; import { configureStore } from '../../app/store/configureSt...
src/routes.js
prgits/react-product
import React from 'react'; import {IndexRoute, Route} from 'react-router'; // import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, // Chat, Home, // Widgets, // About, // Login, // LoginSuccess, // Survey, NotFound, // Pagination, } fro...
test/TableSpec.js
Terminux/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Table from '../src/Table'; describe('Table', () => { it('Should be a table', () => { let instance = ReactTestUtils.renderIntoDocument( <Table /> ); assert.equal(ReactDOM.findD...
src/containers/pages/miscellaneous/container.js
vFujin/HearthLounge
import React from 'react'; import {Route} from 'react-router'; import {NavLink} from 'react-router-dom'; import _ from 'lodash'; import PrivacyPolicy from "./privacy-policy/privacy-policy"; import NotFound from "../../../components/not-found/not-found"; import TermsOfService from "./terms-of-service/terms-of-service"; ...
src/routes/home/index.js
jhlav/mpn-web-app
/** * 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 Home from './Home'; i...
modules/experimental/AsyncProps.js
sleexyz/react-router
import React from 'react'; function shallowEqual(a, b) { var ka = 0; var kb = 0; for (let key in a) { if (a.hasOwnProperty(key) && a[key] !== b[key]) return false; ka++; } for (let key in b) if (b.hasOwnProperty(key)) kb++; return ka === kb; } var AsyncProps = React.createClass({ ...
src/app/containers/LayoutBootstrap/LayoutBootstrap.js
harsh376/Hector
import React from 'react' import ConnectedCustomNavBar from '../../components/ConnectedCustomNavBar/ConnectedCustomNavBar' import Home from '../Home/Home' import Breadcrumbs from '../../components/Breadcrumbs/Breadcrumbs' import './stylesheets/Layout.scss' // TODO: Add tests for `LayoutBootstrap` component function ...
docs-ui/components/tooltip.stories.js
gencer/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import Tooltip from 'sentry-ui/tooltip'; import Button from 'sentry-ui/buttons/button'; storiesOf('Tooltip', module).add( 'default', withInfo('Description')(() => ( <div> <h1>Test</h1> ...
ajax/libs/rxjs/2.3.6/rx.all.js
pcarrier/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
tests/react_children/component.js
claudiopro/flow
// @flow import React from 'react'; import type {Node} from 'react'; class MyComponent extends React.Component<{children: Node}, void> { render(): Node { // OK: Can pass a node down like so. return <MyComponent>{this.props.children}</MyComponent>; } } class MyComponentOptional extends React.Component<{ch...
ajax/libs/yasqe/1.0.0/yasqe.min.js
hanbyul-here/cdnjs
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,r,i){function n(s,a){if(!r[s]){if(!...
src/svg-icons/av/radio.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRadio = (props) => ( <SvgIcon {...props}> <path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3...
js/src/3rdparty/sms-verification/terms-of-service.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...
app/containers/users/list.js
DeividasK/my-future-ai
import React from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import { firebaseConnect, helpers } from 'react-redux-firebase' import { Container, Button, Card, CardBlock, CardImg, CardTitle, CardSubtitle, CardText, InputGroup, Input, InputGroupButton } from 'reactstrap' import Pag...
plugins/Wallet/js/components/transactionlist.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import { List } from 'immutable' const TransactionList = ({ transactions, ntransactions, actions, filter }) => { if (transactions.size === 0) { return ( <div className='transaction-list'> <h3> No recent transactions </h3> </div> ...
node_modules/react-navigation/lib-rn/views/Card.js
joan17cast/Enigma
import React from 'react'; import { Animated, StyleSheet } from 'react-native'; import createPointerEventsContainer from './PointerEventsContainer'; var babelPluginFlowReactPropTypes_proptype_NavigationSceneRendererProps = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_NavigationSceneRendererPro...
ajax/libs/yui/3.11.0/datatable-body/datatable-body.js
gauravarora/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
client/src/assets/icons/freeCodeCampLogo.js
BhaveshSGupta/FreeCodeCamp
/* eslint-disable max-len */ import React from 'react'; function freeCodeCampLogo() { return ( <svg aria-label='[freeCodeCamp Logo]' height={24} role='math' version='1.1' viewBox='0 0 210 24' width={210} xmlns='http://www.w3.org/2000/svg' xmlnsXlink='http://www.w3....
public/vendors/font-awesome/src/assets/js/jquery-1.7.1.min.js
gre/zound-live
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
Truncate.js
jariz/react-truncate-html
/** * React port of ellipsis.js * Original ellipsis.js author: Gregory Linford * react-truncate-html author: Jari Zwarts (https://jari.io/) */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import xss from 'xss'; const isServer = () => typeof window === 'undefined'; class Truncate ...
src/svg-icons/action/accessibility.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
src/svg-icons/image/wb-iridescent.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbIridescent = (props) => ( <SvgIcon {...props}> <path d="M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1....
ajax/libs/react/0.13.0-beta.1/JSXTransformer.js
ruiaraujo/cdnjs
/** * JSXTransformer v0.13.0-beta.1 */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.JSXTransform...
packages/ringcentral-widgets-docs/src/app/pages/Components/DropdownNavigationItem/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
app/containers/OnTheJob/index.js
HRR20-Lotus/affirmation
/* * * OnTheJob * */ import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import selectOnTheJob from './selectors'; import PostPreview from '../../components/PostPreview/index'; export class OnTheJob extends React.PureComponent { // eslint-disable-line react/prefer-...
src/ui/atom/SelectObjectDialog/index.js
jkubos/tickator-ide
import React from 'react' import {observer} from 'mobx-react' import styles from './style.less' import {UiState} from '~/src/business/UiState' import {BusinessSpace} from '~/src/business/BusinessSpace' import {Modals} from '~/src/business/Modals' import {ImageButton} from '~/src/ui/quark/ImageButton' import {Interfa...
tests/routes/Counter/components/Counter.spec.js
k2data/svg-react-playground
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
src/components/header/normal/lang-switcher.js
datea/datea-webapp-react
import React from 'react'; import classnames from 'classnames'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import MenuList from '@material-ui/core/MenuList'; import Button from '@material-ui/core/Button'; import {observer, inject} from 'mobx-react'; import {translatabl...
packages/react-router-native/__tests__/index.android.js
OpenGov/react-router
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 /> ); });
app/containers/PastStays/index.js
projectcashmere/admin
/* * * PastStays * */ import React from 'react'; import { connect } from 'react-redux'; import format from 'date-fns/format'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import { getFormattedDate, getFormattedDuration } from 'utils/helpers'; import { selectHo...
index/components/App.js
JDRomano2/VenomKB
import React from 'react'; import { Switch, Route } from 'react-router'; import Home from './Home'; import About from './About'; import Contact from './Contact'; import Publications from './Publications'; import Download from './Download'; import NotFound from './NotFound'; import SemanticQuery from './SemanticQuery';...
ajax/libs/vue-material/1.0.0-beta-5/components/MdApp/index.js
cdnjs/cdnjs
!(function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var n=t("object"==typeof exports?require("vue"):e.Vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}})(this,(function(e){return (funct...
Libraries/Components/Keyboard/Keyboard.js
Livyli/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/component/horizontalPostList/postPreview/index.js
Platane/january
import React from 'react' import style from './style.css' import { Image } from '../../image' import type { Post as Post_type } from '../../../../type' export type Props = Post_type export const PostPreview = ({ id, title, medias }: Props) => ( <div className={style.container}> <Image image={...
test/components/VotingComponent.spec.js
nilshartmann/react-vote-example
import expect from 'expect'; import jsdom from 'mocha-jsdom'; import React from 'react'; import { renderToStaticMarkup } from 'react-dom/server'; import ReactTestUtils from 'react-addons-test-utils'; import VotingComponent from '../../src/common/components/VotingComponent'; import ChoiceBar from '../../src/common/compo...
app/components/details.component.js
azothForgotten/Newznab-Frontend
// Import React import React from 'react'; import {Card, CardActions, CardMedia, CardTitle, CardText} from 'material-ui/Card'; class Details extends React.Component { // Render render(){ return( <Card> <CardMedia overlay={<CardTitle title={this.props.title} subtitle={this.props.date} />}> <img src...
ajax/libs/babel-standalone/6.19.0/babel.min.js
emmy41124/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Babel=t():e.Babel=t()}(this,function(){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].c...
test/containers/CounterPage.spec.js
tempestaddepvc/proyecto-electron
import { expect } from 'chai'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import { Provider } from 'react-redux'; import CounterPage from '../../app/containers/CounterPage'; import config...
modules/IndexLink.js
CivBase/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
app/components/Profile.js
vandosant/react-notetaker
import React from 'react'; import UserProfile from './GitHub/UserProfile'; import Repos from './GitHub/Repos'; import Notes from './Notes/Notes'; import Firebase from 'firebase'; import helpers from '../utils/helpers' import Rebase from 're-base'; var base = Rebase.createClass('https://react-notetaker12786.firebaseio....
ajax/libs/foundation/4.0.9/js/vendor/jquery.js
wackyapples/cdnjs
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
src/dropdown.js
backstage-ui/backstage-dropdown
/* * Copyright (c) 2016, Globo.com (https://github.com/globocom) * * License: MIT */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Option from './option'; export default class Dropdown extends Component ...
src/templates/blog-post.js
innocentiv/vinnocenti
import React from 'react'; import Helmet from 'react-helmet'; import Link from '../components/Link'; import Tags from '../components/Tags'; import '../css/blog-post.css'; export default function Template({ data, pathContext }) { const { markdownRemark: post } = data; const { next, prev } = pathContext; return ...
packages/material-ui-icons/src/AdbOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14 5.64 5 7.68 5 10v1h14v-1c0-2.32-1.14-4.36-2.88-5.6...
src/components/tag/raw/name.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
src/components/memberCard/index.js
marg51/uto
import React from 'react' import {connect} from 'react-redux' import { Link } from 'react-router' import Label from '../label' import If from '../../utils/if' import Icon from '../../utils/icon' function MemberCard({member, dispatch}) { return ( <span> <If test={member.avatarHash}> ...
components/InventoryItem/InventoryItem.js
southern-ground/stack-shellybrown.com
/** * Created by fst on 8/16/16. */ import React from 'react'; import styles from './styles.css'; import store from '../../core/store'; import {TOGGLE_ITEM} from '../../core/action-types'; class InventoryItem extends React.Component { constructor(props) { super(props); this.toggleSelected = thi...
screens/initialScreen.js
yeso126/Mapapp
import React, { Component } from 'react'; import { StyleSheet, View, Button, } from 'react-native'; import Logo from '../components/logo'; import { NavigationActions } from 'react-navigation'; const goToHighScores = new NavigationActions.navigate({ routeName: 'HighScores', params: {}, action: Navigation...
examples/huge-apps/routes/Course/components/Course.js
iest/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
src/__tests__/Navbar.js
YutHelloWorld/vortex-react
import React from 'react'; import ReactDOM from 'react-dom'; import renderer from 'react-test-renderer'; import { HashRouter } from 'react-router-dom'; import Navbar from '../components/Navbar'; it('(Layout) Navbar', () => { const component = renderer.create( <HashRouter> <Navbar signOut={() => {}} /> ...
src/routes.js
riccardone/MySelfLog.Ui
import React from 'react'; import { Route, Router } from 'react-router-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import Home from './Home/Home'; import Diary from './Diary/Diary'; import MyDiary from './Diary/MyDiary'; import Repository from './Diary/Repository'; import History ...
src/DropdownMenu.js
JimiHFord/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
src/svg-icons/image/camera-roll.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRoll = (props) => ( <SvgIcon {...props}> <path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h...
src/components/Types/Boolean.js
jcgertig/react-struct-editor
import React from 'react' import BasicType from './BasicType' import { isBoolean, isUndefined } from 'lodash' class BooleanType extends BasicType { constructor() { super() this.type = 'Boolean' this.updateValue = () => { this.props.onChange(!this.state.value) } } render() { return (...
ajax/libs/bla/1.7.0/bla.js
iwdmb/cdnjs
/** * @module vow * @author Filatov Dmitry <dfilatov@yandex-team.ru> * @version 0.4.9 * @license * Dual licensed under the MIT and GPL licenses: * * http://www.opensource.org/licenses/mit-license.php * * http://www.gnu.org/licenses/gpl.html */ (function(global) { var undef, nextTick = (function() { ...
ajax/libs/yui/3.1.0pr1/event-custom/event-custom.js
emijrp/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module e...
src/components/Story/Body.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import classNames from 'classnames'; import sanitizeHtml from 'sanitize-html'; import Remarkable from 'remarkable'; import embedjs from 'embedjs'; import { jsonParse } from '../../helpers/formatter'; import sanitizeConfig from '../.....
src/svg-icons/image/flip.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlip = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v...
src/pages/components/Books/components/Loading.js
H3yfinn/finbarmaunsell.com
import React from 'react' const Loading = () => ( <div className="fullscreen"> <div className="loader" /> </div> ) export default Loading
packages/material-ui-icons/src/LocalPhoneSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 15.46l-5.27-.61-2.52 2.52c-2.83-1.44-5.15-3.75-6.59-6.59l2.53-2.53L8.54 3H3.03C2.45 13.18 10.82 21.55 21 20.97v-5.51z" /></React.Fragment> ,...
redux-demo/todos/src/containers/AddTodo.js
zhangjunhd/react-examples
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
ajax/libs/material-ui/5.0.0-alpha.26/modern/RadioGroup/RadioGroupContext.min.js
cdnjs/cdnjs
import*as React from"react";const RadioGroupContext=React.createContext();"production"!==process.env.NODE_ENV&&(RadioGroupContext.displayName="RadioGroupContext");export default RadioGroupContext;
src/components/Editor/Editor.js
hhj679/mybition-web
import React from 'react' import { Editor } from 'react-draft-wysiwyg' import styles from './Editor.less' import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css' const DraftEditor = (props) => { return (<Editor toolbarClassName={styles.toolbar} wrapperClassName={styles.wrapper} editorClassName={styles.editor} {.....
src/containers/shared-assets/class-selection-wrapper/class-selection-snippet/mobile/create-from-scratch/create-from-scratch.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import ProceedBtn from "./proceed-btn"; import SelectModeWrapper from '../../../selection/select-mode/select-mode-wrapper'; import SelectClassWrapper from '../../../selection/select-class/select-class-wrapper'; const CreateDeckFromScratchMobile = ({stage, ...
Skin/index.android.js
beckasaurus/Skin
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Skin extends Component { render() { return ( <View style={styles.container}> ...
client/components/app/index.js
wheelcomplex/go-starter-kit
import React, { Component } from 'react'; import Helmet from 'react-helmet'; export default class App extends Component { render() { return <div> <Helmet title='Go + React + Redux = rocks!' /> {this.props.children} </div>; } }
client/src/core-components/toggle-list.js
ivandiazwm/opensupports
import React from 'react'; import _ from 'lodash'; import classNames from 'classnames'; class ToggleList extends React.Component { static propTypes = { items: React.PropTypes.arrayOf(React.PropTypes.shape({ content: React.PropTypes.node })), onChange: React.PropTypes.func, ...
test/connect.spec.js
jordangarcia/nuclear-js-react-addons
import { Reactor, Store } from 'nuclear-js' import expect from 'expect' import React from 'react' import ReactDOM from 'react-dom' import { Provider, connect } from '../src/index' import setup from './setup' function mountTestComponent(reactor, children) { class TestComponent extends React.Component { constructo...
src/09-custom-hook/App.js
benmvp/react-workshop
import React from 'react' import useGiphy from './useGiphy' import Results from './Results' import SearchForm from './SearchForm' const App = () => { const [results, setSearchParams] = useGiphy() return ( <main> <h1>Giphy Search!</h1> <SearchForm onChange={setSearchParams} initial...
examples/real-world/store/configureStore.dev.js
winstonewert/redux-reactions
import { createStore, applyMiddleware, compose } from 'redux' import { reduxReactRouter } from 'redux-router' import DevTools from '../containers/DevTools' import createHistory from 'history/lib/createBrowserHistory' import routes from '../routes' import createLogger from 'redux-logger' import rootReducer from '../redu...
src/svg-icons/av/music-video.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
ajax/libs/remoteStorage/0.11.0/remotestorage.js
kennynaoh/cdnjs
/** remotestorage.js 0.11.0, http://remotestorage.io, MIT-licensed **/ /** FILE: lib/bluebird.js **/ /** * bluebird build version 2.3.4 * Features enabled: core, nodeify * Features disabled: race, call_get, generators, map, promisify, props, reduce, settle, some, progress, cancel, using, filter, any, each, timers *...
ajax/libs/instantsearch.js/0.14.6/instantsearch.min.js
pvnr0082t/cdnjs
/*! instantsearch.js 0.14.6 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantse...
ajax/libs/can.js/4.0.0-pre.3/can.all.min.js
seogi1004/cdnjs
!function(e,t,n){var i=t.define,a=function(e){var n,i=e.split("."),a=t;for(n=0;n<i.length&&a;n++)a=a[i[n]];return a},r=function(e,n){var i,a,r,o=e.split("."),s=t;for(i=0;i<o.length-1;i++)(r=s[a=o[i]])||(r=s[a]={}),s=r;s[a=o[o.length-1]]=n},o=function(e){if(!e||!e.__esModule)return!1;var t={__esModule:!0,default:!0};for...
ajax/libs/openlayers/2.11/lib/OpenLayers/Control/Panel.js
Rich-Harris/cdnjs
/* Copyright (c) 2006-2011 by OpenLayers Contributors (see authors.txt for * full list of contributors). Published under the Clear BSD license. * See http://svn.openlayers.org/trunk/openlayers/license.txt for the * full text of the license. */ /** * @requires OpenLayers/Control.js */ /** * Class: OpenLayers....
test/test_helper.js
Sashkan/ft_youtube
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
components/list-view/__tests__/index.test.native.js
77ircloud/yymobile2
import React from 'react'; import renderer from 'react-test-renderer'; // import { shallow } from 'enzyme'; import { Text } from 'react-native'; import ListView from '../index'; describe('ListView', () => { it('renders correctly', () => { class Minimal extends React.Component { constructor() { sup...
test/integration/fixtures/inject-theme.js
IsenrichO/mui-with-arrows
import stubContext from './react-stub-context'; import getMuiTheme from 'src/styles/getMuiTheme'; function injectTheme(Component, theme) { const injectedTheme = theme || getMuiTheme(); return stubContext(Component, {muiTheme: injectedTheme}); } module.exports = injectTheme;
src/parser/warlock/destruction/modules/features/RainOfFire.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { encodeTargetString } from 'parser/shared/modules/EnemyInstances'; import Haste from 'parser/shared/modules/Haste'; import SPELLS from 'common/SPELLS'; import Statistic from '...
ajax/libs/react-highcharts/8.4.2/ReactHighcharts.js
seogi1004/cdnjs
!function(r,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("highcharts")):"function"==typeof define&&define.amd?define(["react","highcharts"],t):"object"==typeof exports?exports.ReactHighcharts=t(require("react"),require("highcharts")):r.ReactHighcharts=t(r.React,r.Highch...
Examples/UIExplorer/js/UIExplorerButton.js
Purii/react-native
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
ajax/libs/primereact/8.1.0/radiobutton/radiobutton.min.js
cdnjs/cdnjs
this.primereact=this.primereact||{},this.primereact.radiobutton=function(e,t,n,r){"use strict";function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,g...
src/imports/ReactDocumentation/Basics/Testing/Testing.js
ManuelDeLeon/viewmodel-react-docs
Testing({ render(){ <div class="ui segment"> <h2 class="ui header">Testing</h2> <a class="anchor active" id="BasicsTesting"></a> <p>With ViewModel you test 2 things:</p> <ol> <li>The component's properties and methods work correctly.</li> <li>The bindings map to the right ...
Realization/frontend/czechidm-acc/src/content/system/SystemProvisioningBreakConfigRecipientTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; // import { Basic, Advanced, Utils, Managers, Domain } from 'czechidm-core'; const ROLE_TYPE = 'roleType'; const IDENTITY_TYPE = 'identityType'; /** * Table of provisioning break recipient * *...
src/shared/Avatar/Avatar.js
velesin/retroinator
import React from 'react'; import './Avatar.css'; import { Icon, ICONS } from '../../shared'; export function Avatar({photoUrl, icon}) { return photoUrl ? <img className="Avatar" src={photoUrl} alt=""/> : <Icon className="Avatar">{icon || ICONS.AVATAR_PLACEHOLDER}</Icon>; }