path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ajax/libs/forerunnerdb/1.3.757/fdb-core.min.js
honestree/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
examples/amp-script/todomvc.ssr.js
alanorozco/amphtml
/* eslint-disable */ !function(){"use strict";function e(e,t,n){this.nodeName=e,this.attributes=t,this.children=n,this.key=t&&t.key}function t(t,n){var o=[],r=void 0,i=void 0,l=void 0,a=void 0;for(a=arguments.length;a-- >2;)K.push(arguments[a]);for(n&&n.children&&(K.length||K.push(n.children),delete n.children);K.lengt...
app/components/dataSet/DataSetValueActions.js
sheldhur/Vector
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import { Col, Button, Select, Menu, Dropdown, Icon, Modal } from 'antd'; import * as dataSetActions fr...
ajax/libs/jssip/0.7.3/jssip.js
dada0423/cdnjs
/* * JsSIP v0.7.3 * the Javascript SIP library * Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan) * Homepage: http://jssip.net * License: MIT */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&def...
client/js/vendor/jquery-1.9.0.min.js
angelwong/giftedfromus
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc...
src/components/Login.js
tilgram/tilgram-frontend
import { Link } from 'react-router'; import ListErrors from './ListErrors'; import React from 'react'; import agent from '../agent'; import { connect } from 'react-redux'; import { UPDATE_FIELD_AUTH, LOGIN, LOGIN_PAGE_UNLOADED } from '../constants/actionTypes'; const mapStateToProps = state => ({ ...state.auth }...
client/src_old/index.js
Del7a/vehicle-finder
import React from 'react'; import {Component} from 'react'; import ReactDOM from 'react-dom'; import {Router, Route, Switch} from 'react-router'; import {BrowserRouter} from 'react-router-dom'; import { createHashHistory } from 'history'; import App from './App'; import {Provider} from 'react-redux'; import './index.cs...
app/javascript/mastodon/components/icon_with_badge.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; const formatNumber = num => num > 40 ? '40+' : num; const IconWithBadge = ({ id, count, issueBadge, className }) => ( <i className='icon-with-badge'> <Icon id={id} fixedWidth className={className} /> ...
src/containers/HomePage/BusinessSection.js
nickeblewis/walkapp
// Always import React at the beginning of every React Component // Everything is a component in React! import React from 'react' // https://github.com/apollographql/react-apollo import { graphql } from 'react-apollo' import gql from 'graphql-tag' import Business from '../../components/Business' // https://ponyfoo.co...
src/redux/utils/createDevToolsWindow.js
danieljwest/ExamGenerator
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/Pagination.js
egauci/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import bootstrapUtils, { bsClass } from './utils/bootstrapUtils'; import PaginationButton from './PaginationButton'; import elementType from 'react-prop-types/lib/elementType'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ ...
docs/app/Examples/elements/Image/Variations/ImageExampleCentered.js
clemensw/stardust
import React from 'react' import { Segment, Image } from 'semantic-ui-react' const src1 = '/assets/images/wireframe/image.png' const src2 = '/assets/images/wireframe/image-text.png' const ImageExampleCentered = () => ( <Segment> <Image src={src1} size='medium' centered /> <p> Te eum doming eirmod, nom...
src/browser/firebase/FirebasePage.react.js
nikolalosic/este-app--assignment
import Component from 'react-pure-render/component'; import Helmet from 'react-helmet'; import OnlineUsers from '../users/OnlineUsers.react'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { FormattedMessage } from 'react-intl'; export default class FirebasePage extends C...
src/routes/RetailersMap/components/MapHeader/MapHeader.js
TheModevShop/craft-app
import React from 'react'; import Fuse from 'fuse.js'; import GetDistributorString from 'utility/GetDistributorString'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import {addEvent} from 'utility/ga.js'; import _ from 'lodash'; import Tappable from 'react-tappable'; import './map-header.les...
src/components/Page/DragAndDrop/DragAndDrop.specs.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import DragAndDrop from './'; const { describe, it } = global; describe('Editor', () => { let wrapper; beforeEach((done) => { wrapper = shallow(<DragAndDrop />); done(); }); it('should render a drag and drop...
toys/counter/app.js
scienceai/ferrous
import React from 'react'; import ReactDOM from 'react-dom'; import { counter, state, increment, decrement } from './counter-model'; import { ferrous, Provider } from '../..'; const Counter = ({ count }) => { return ( <div> <span>{ count }</span> <button onClick={ increment }>+</button> <butt...
ajax/libs/jquery/1.11.1-rc1/jquery.js
pvnr0082t/cdnjs
/*! * jQuery JavaScript Library v1.11.1-rc1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-04-18T15:33Z */ (function( global, factory ) { ...
src/contentscript/dialogs/ContentModal.js
emfmesquita/beyondhelp
import React, { Component } from 'react'; import "./ddbmodal.css"; /** * Modal on content page. */ class ContentModal extends Component { constructor(props) { super(props); this.renderBody = this.renderBody.bind(this); } componentDidMount() { if (this.props.onUpdate) this.props.o...
src/views/Pages/Page500/Page500.js
haromy/appSO
import React, { Component } from 'react'; class Page500 extends Component { render() { return ( <div className="container"> <div className="row justify-content-center"> <div className="col-md-6"> <div className="clearfix"> <h1 className="float-left display-3 mr-2...
ajax/libs/react-bootstrap/0.20.3/react-bootstrap.min.js
calebmer/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return ...
packages/material-ui-icons/src/CallSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><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" /></g></React.Frag...
blueocean-material-icons/src/js/components/svg-icons/action/check-circle.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionCheckCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/> </SvgIcon> ); ActionCheckCircle.displayName = 'ActionChec...
app/jsx/theme_editor/ThemeEditor.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
src/vendor/recharts/demo/component/AreaChart.js
happyboy171/Feeding-Fish-View-
import React from 'react'; import { changeNumberOfData } from './utils'; import { AreaChart, Area, XAxis, YAxis, Tooltip, CartesianGrid, Brush, ReferenceArea, ReferenceLine, ReferenceDot, ResponsiveContainer } from 'recharts'; const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400 }, { name: 'Page B', uv...
node_modules/dgeni-packages/node_modules/winston/node_modules/request/node_modules/qs/test/browser/jquery.js
ad-uistyleguide/ad-uistyleguide.github.io
/*! * 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. ...
node_modules/react-router/es6/IndexRoute.js
Karthik9321/ReduxSimpleStarter
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
teletobit/src/index.js
edenpark/teletobit
import React from 'react'; import ReactDOM from 'react-dom'; import Root from 'containers/Root'; import firebaseHelper from 'helpers/firebase'; // redux import configureStore from 'redux/configureStore'; firebaseHelper.initialize(); const store = configureStore(); const rootElement = document.getElementById('root')...
examples/cra-kitchen-sink/src/index.js
storybooks/storybook
import React from 'react'; import ReactDOM from 'react-dom'; import global from 'global'; import App from './App'; import './index.css'; const { document } = global; ReactDOM.render(<App />, document.getElementById('root'));
src/components/ButtonFlatSuccess.js
mikebarkmin/gestyled
import React from 'react'; import { withTheme } from 'styled-components'; import ButtonFlat from './ButtonFlat'; /** * See ButtonFlat for possible props. */ const ButtonFlatSuccess = props => { const { theme } = props; const color = theme.colors.success; return <ButtonFlat color={color} {...props} />; }; expo...
src/components/ice-cream/IceCream.js
edgemesh/emui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Radium, { Style } from 'radium'; import { colors } from '../../utils/colors'; import Paper from '../paper/Paper'; import RaisedButton from '../button/RaisedButton' import TransitionGroup from 'react-addons-css-transition-group'; import...
ajax/libs/flocks.js/1.0.1/flocks.min.js
tjbp/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type...
client/src/app/messages/messageDialog.js
jchen86/kafka-topic-viewer
import React from 'react'; import PropTypes from 'prop-types'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import ReactJson from 'react-json-view'; const customContentStyle = { width: '90%', maxWidth: 'none', }; export class MessageDialog extends React.Component { ...
ajax/libs/oojs-ui/0.13.0/oojs-ui.js
extend1994/cdnjs
/*! * OOjs UI v0.13.0 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2015 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2015-10-27T17:52:51Z */ ( function ( OO ) { 'use strict'; /** * Namespace for all classes, static methods and s...
src/components/productivity/boards/New.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import translate from 'app/global/helper/translate'; import { graphql } from 'react-apollo'; import AddBoardMutation from 'app/graphql/mutations/boards/Add'; import GetAllGroupsQuery from...
app/javascript/mastodon/features/report/category.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from 'mastodon/components/button'; import Option from './components/option'; const messages = defineMessages({ dislike: { id: 'report.reasons.dislike', defaultMessag...
packages/ringcentral-widgets/components/ConversationPanel/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; import Spinner from '../Spinner'; import ConversationMessageList from '../ConversationMessageList'; import LogButton from '../LogButton'; import ContactDisplay from '../...
index.android.js
rakasiwi23/currency-converter
import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import App from './app/Index'; export default class Demo extends Component { constructor() { super(); this.state = { root: true, }; } render() { return ( <App /> ); } } AppRegistry.regist...
node_modules/@material-ui/core/es/RadioGroup/RadioGroupContext.js
pcclarke/civ-techs
import React from 'react'; /** * @ignore - internal component. */ const RadioGroupContext = React.createContext(); export default RadioGroupContext;
src/mobile/containers/About.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import UwaveContext from '../../context/UwaveContext'; import Overlay from '../../components/Overlay'; import OverlayHeader from '../../components/Overlay/Header'; import OverlayContent from '../../co...
__tests__/index.android.js
camilacnery/simple-calculator
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 /> ); });
src/example/App.js
in-flux/example-with-react-router
import React from 'react'; import {Route, DefaultRoute, RouteHandler, Link} from 'react-router'; import {ComponentRouter, LocationHtml5, Url, getDefault} from 'component-router'; import styles from './App.css'; import sideStyles from '../SideBar.css'; import * as data from '../data'; import {FooBar, Quickstart} from '...
src/js/components/DataTable/stories/CustomThemed/Custom.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, DataTable } from 'grommet'; import { Blank } from 'grommet-icons'; // Source code for the data can be found here // https://github.com/grommet/grommet/blob/master/src/js/components/DataTable/stories/data.js import { columns, DATA } from '../data'; const SortableIcon ...
src/views/GameTypeDetails.js
marcjohnstonuw/bingo-gen
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import axios from 'axios'; import Square from '../components/Square' class GameTypeDetails extends Component { constructor (props) { super(props); this.state = { newSquare: '', gameTypeData: { square...
ajax/libs/preact/4.8.0/preact.js
tholu/cdnjs
!function(global, factory) { 'object' == typeof exports && 'undefined' != typeof module ? module.exports = factory() : 'function' == typeof define && define.amd ? define(factory) : global.preact = factory(); }(this, function() { 'use strict'; function VNode(nodeName, attributes, children) { this.nod...
ajax/libs/rxjs/2.3.2/rx.all.compat.js
leecrossley/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...
node_modules/rx/dist/rx.all.compat.js
JuanLuisClaure/vistas
// 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 }; v...
stories/ButtonWithOptions/ExampleDropdownSize.js
skyiea/wix-style-react
import React from 'react'; import ButtonWithOptions from 'wix-style-react/ButtonWithOptions'; const style = { display: 'inline-block', padding: '0 5px 0', width: '200px', lineHeight: '22px' }; const options = [ {id: 0, value: 'First option'}, {id: 1, value: 'Unselectable option', unselectable: true}, {i...
src/components/Badge/Badge.js
softwareniagara/softwareniagara.com
import React from 'react' import StyledBadge from './Badge.css' export default ({ children, primary }) => ( <StyledBadge className={primary && 'is-primary'}>{children}</StyledBadge> )
ajax/libs/shariff/1.6.0/shariff.complete.js
ljharb/cdnjs
/*! * shariff - v1.5.0 - 29.01.2015 * https://github.com/heiseonline/shariff * Copyright (c) 2015 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli * Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license */ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o])...
src/containers/App.js
houkah26/reddit-clone
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Redirect, Switch } from 'react-router-dom'; import TitleBar from '../components/TitleBar'; import InvalidUrl from '../components/InvalidUrl'; import Navigation from '../containers/Navigation'; import Content from '../containers/Cont...
packages/web/src/components/ErrorList.js
hwaterke/inab
import PropTypes from 'prop-types' import React from 'react' import {connect} from 'react-redux' import {dismissErrors} from '../actions/error.js' import {Section} from './presentational/atoms/Section' class ErrorDialog extends React.Component { static propTypes = { errors: PropTypes.arrayOf(PropTypes.string).is...
admin/src/components/form/tests/inputtitle.spec.js
mparlak/mparlak.github.io
import React from 'react'; import expect from 'expect'; import { mount } from 'enzyme'; import InputTitle from '../InputTitle'; function setup(props = {title: 'GSoC'}) { let actions = { onChange: expect.createSpy() }; let component = mount( <InputTitle {...props} {...actions} /> ); return { co...
components/animals/surikata.adult.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/surikata/01.jpg'),...
packages/mineral-ui-icons/src/IconCompareArrows.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 IconCompareArrows(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...icon...
ajax/libs/analytics.js/2.3.2/analytics.js
CosmicWebServices/cdnjs
(function outer(modules, cache, entries){ /** * Global */ var global = (function(){ return this; })(); /** * Require `name`. * * @param {String} name * @param {Boolean} jumped * @api public */ function require(name, jumped){ if (cache[name]) return cache[name].exports; if (mo...
ebook-leaning-react/ch05_jsx/recipe-app/src/components/Menu.js
wefine/reactjs-guide
import React from 'react'; import Recipe from './Recipe'; import './Menu.css'; const Menu = ({recipes}) => <article> <header> <h1>Delicious Recipes</h1> </header> <div className="recipes"> { recipes.map((recipe, i) => <Recipe key={i} {...recipe} />) ...
ajax/libs/jquery.fancytree/2.6.0/jquery.fancytree-all.js
sarmadsangi/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.6.0 * @dat...
app/containers/main/main.container.js
rohankangale2011/react-native-fblogin
import React, { Component } from 'react'; import { Text, View, Dimensions, ActivityIndicator } from 'react-native'; import data from '../../common/data'; import ApiUtils from '../../common/api-utils'; import FabComponent from '../../common/fab.component'; import ModalComponent from '../../common/modal'; import MainComp...
client/components/operations/item.js
bnjbvr/kresus
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { formatDate, NONE_CATEGORY_ID, translate as $t } from '../../helpers'; import { get, actions } from '../../store'; import LabelComponent from './label'; import { MODAL_SLUG } from './details'; const OpenDeta...
app/components/Header/index.js
KraigWalker/frontendfriday
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
include/javascript/yui3/build/event/event-min.js
tekintian/suitecrm
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ var GLOBAL_ENV=YUI.Env;if(!GLOBAL_ENV._ready){GLOBAL_ENV._ready=function(){GLOBAL_ENV.DOMReady=true;GLOBAL_ENV.remove(YUI.config.doc,"DOMContentLoaded",G...
examples/huge-apps/components/App.js
chunwei/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
app/addons/documents/index-results/components/results/NoResultsScreen.js
popojargo/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
docs/src/pages/demos/drawers/PermanentDrawer.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Drawer from 'material-ui/Drawer'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import List from 'material-ui/List'; import Typography from 'materia...
examples/js/cell-edit/non-editable-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; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/pages/Components/Icons.js
JSLancerTeam/crystal-dashboard
import React from 'react'; const iconData = ["pe-7s-album", "pe-7s-arc", "pe-7s-back-2", "pe-7s-bandaid", "pe-7s-car", "pe-7s-diamond", "pe-7s-door-lock", "pe-7s-eyedropper", "pe-7s-female", "pe-7s-gym", "pe-7s-hammer", "pe-7s-headphones", "pe-7s-helm", "pe-7s-hourglass", "pe-7s-leaf", "pe-7s-magic-wand", "pe-7s-male"...
src/modules/__specs__/AppView.spec.js
Florenz23/sangoo_04
/*eslint-disable max-nested-callbacks*/ import React from 'react'; import {shallow} from 'enzyme'; import {ActivityIndicator} from 'react-native'; import AppView from '../AppView'; describe('<AppView />', () => { describe('isReady', () => { it('should render a <ActivityIndicator /> if not ready', () => { ...
code/workspaces/web-app/src/pages/SilentCallbackPage.js
NERC-CEH/datalab
import React from 'react'; import RenewalCallback from '../components/app/RenewalCallback'; const SilentCallbackPage = props => (<RenewalCallback {...props} />); export default SilentCallbackPage;
src/control/ItemController.js
TalesM/taskblob
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); this.state = {item: {}}; } componentDidMount() { if(this.props.item) { this.setState({item: this.props.item}); } else { this.setState({item: {name: this.props.children||''}});...
src/components/common/Loading.js
cherishstand/dva-quickstart
import React, { Component } from 'react'; import { ActivityIndicator } from 'antd-mobile'; const Loading = () => { return( <div style={{position: 'fixed', top: '50%', left: '50%', transform: 'translate(-50%, -50%)'}}> <ActivityIndicator text="加载中..."/> </div> ) } export default Loadi...
src/components/transition.js
Numel2020/NUMEL-Transitions
/** * Created by melvynphillips on 17/04/2017. */ import React from 'react' import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { BrowserRouter as Router, Route, Link, Redirect } from 'react-router-dom' /* you'll need this CSS somewhere .fade-enter { opacity: 0; ...
packages/idyll-docs/pages/docs/introduction.js
idyll-lang/idyll
import React from 'react'; import Link from 'next/link'; import markdown from 'markdown-in-js'; import Layout from '../../components/layout'; import Donate from '../../components/donate-link'; import compile from 'idyll-compiler'; import * as components from 'idyll-components'; import IdyllDocument from 'idyll-document...
04/EW/trding/trding/src/components/myassets/MyAssets.js
rgllm/uminho
import React from 'react'; import ReactDOM from 'react-dom'; import { handleResponse } from '../../helpers'; import './MyAssets.css'; import { API_URL } from '../../config'; import TransactionTable from './TransactionTable' import Loading from '../common/Loading'; import Pagination from '../list/Pagination' import {Use...
test/PanelGroupSpec.js
bbc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PanelGroup from '../src/PanelGroup'; import Panel from '../src/Panel'; describe('PanelGroup', () => { it('Should pass bsStyle to Panels', () => { let instance = ReactTestUtils.renderIntoDocument( <PanelGroup bsStyle="d...
src/components/Bids.js
yaswanthsvist/openCexTrade
import React from 'react'; import { StyleSheet, Text,Button, View,ScrollView,StatusBar,Image } from 'react-native'; import {connect} from 'react-redux'; import lodash from 'lodash'; class Bids extends React.Component{ constructor(props){ super(props) this.generateBooks=this.generateBooks.bind(this); this....
src/examples/AdvancedTodoList/Form.js
steos/elmar.js
import React from 'react' import {message, targetValue} from '../../elmar' export const ActionType = { Submit: 'submit-form', Change: 'change-form' } export const Action = { Submit: {type: ActionType.Submit}, Change: e => ({type: ActionType.Change, value: targetValue(e)}) } export const init = (...
src/nosense-reading/ChildQues2.js
mrinalkrishnanm/Sld
import React from 'react'; import Navbar from '../Navbar'; import Modal from 'react-modal'; import { browserHistory } from "react-router"; import _ from 'lodash'; class ChildQues2 extends React.Component{ constructor(){ super(); this.state={ counter: 10, visibility: "o-0", ...
ajax/libs/rxjs-dom/2.0.3/rx.dom.js
yukinying/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (root, factory) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports && modu...
src/svg-icons/action/reorder.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReorder = (props) => ( <SvgIcon {...props}> <path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/> </SvgIcon> ); ActionReorder = pure(ActionReorder); ActionReorder.displayName = 'Action...
ajax/libs/handsontable/0.10.0/jquery.handsontable.full.js
lobbin/cdnjs
/** * Handsontable 0.10.0 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012, Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Fri Dec 27 2013 17:46:22 GMT+0100 (Central European...
src/svg-icons/maps/directions-run.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRun = (props) => ( <SvgIcon {...props}> <path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l...
src/pages/index.js
danielwrobert/danielwrobert.github.io
import React from 'react'; import Layout from '../components/layout'; export default () => ( <Layout> <h2>Hello</h2> <p> Hello! I'm Dan and I'm a Front-End Engineer at{' '} <a href="https://automattic.com">Automattic</a>, living in Greenville, SC. </p> <p> I'm currently working on MarTech, the engine...
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js
rainyday/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ConversationContainer from '../containers/conversation_container'; import ScrollableList from '../../../components/scroll...
packages/lore-hook-dialogs-material-ui/src/blueprints/create/Optimistic/Optimistic.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { result as _result } from 'lore-utils'; import { SchemaForm } from 'lore-react-forms'; import { CardTitle } from 'material-ui'; export default createReactClass({ displayNa...
src/components/FormFields/DropDown.spec.js
Bartekus/r3
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import DropDown from './DropDown'; import { FormControl, ControlLabel, FormGroup } from 'react-bootstrap'; function shallowRender(component) { const renderer = TestUtils.createRenderer(); renderer.render(component); return renderer.get...
ajax/libs/forerunnerdb/1.3.663/fdb-all.min.js
x112358/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
app/components/Navbar/index.js
josueorozco/parlay
import React from 'react'; import classNames from 'classnames'; /* |-------------------------------------------------------------------------- | Navbar |-------------------------------------------------------------------------- | | Stateless component | */ const Navbar = props => ( <div className={classNames('nav...
node_modules/react-router/es/RouterContext.js
hong1012/FreePay
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; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
src/index.js
poojashastry/reactApp
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
test/FactoriesSpec.js
asiniy/react-bootstrap
import React from 'react'; import components from '../tools/public-components'; let props = { ButtonInput: {value: 'button'}, Glyphicon: {glyph: 'star'}, Modal: {onHide() {}}, ModalTrigger: {modal: React.DOM.div(null)}, OverlayTrigger: {overlay: React.DOM.div(null)} }; function createTest(component) { let...
ajax/libs/forerunnerdb/1.3.591/fdb-legacy.min.js
sashberd/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
gadget-system-teamwork/src/components/users/LogoutPage.js
TeodorDimitrov89/JS-Web-Teamwork-2017
import React from 'react' import Auth from './Auth' class LogoutPage extends React.Component { componentWillMount () { Auth.deauthenticateUser() Auth.removeUser() this.props.history.push('/') } render () { return null } } export default LogoutPage
ajax/libs/yui/3.18.0/event-focus/event-focus-min.js
sullivanmatt/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
ajax/libs/ionic/0.9.21-alpha/js/ionic.js
SaravananRajaraman/cdnjs
/*! * Copyright 2014 Drifty Co. * http://drifty.com/ * * Ionic, v0.9.21 * A powerful HTML5 mobile app framework. * http://ionicframework.com/ * * By @maxlynch, @helloimben, @adamdbradley <3 * * Licensed under the MIT license. Please see LICENSE for more information. * */; // Create namespaces window.ionic...
reactjs/src/pages/AboutPage/index.js
spleshka/spleshka.com
import React from 'react' class AboutPage extends React.Component { render = () => ( <div>about</div> ); } export default AboutPage;
packages/material-ui-icons/src/PowerRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M16.01 7L16 4c0-.55-.45-1-1-1s-1 .45-1 1v3h-4V4c0-.55-.45-1-1-1s-1 .45-1 1v3h-.01C6.9 7 6 7.9 6 8.99v4.66c0 .53.21 1.04.58 1.41L9.5 18v2c0 .5...
src/components/Tab/Tab/Tab.stories.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Tab from './'; import TabPane from '../TabPane'; import FakeContext from '../../utils/FakeContext'; storiesOf('Tab', module) .add('default view', () => ( <Tab> <li>Users</li> <li>Groups</li> </Tab> )) .add('with...
src/resources/TitleScreenResources.js
DelvarWorld/some-game
import React from 'react'; import THREE from 'three'; export default [];
ajax/libs/forerunnerdb/1.3.668/fdb-all.js
keicheng/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...
src/modules/App/App.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { Audio, actions as audioActions } from '../Audio'; import Columns from '../components/Columns'; import { Input, selectors as inputSelectors } from '../Input'; import { Pr...