path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/containers/Home/Home.js
gregsabo/beanstalk-tractor-trailer
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { Link } from 'react-router'; export default class Home extends Component { render() { return ( <div className="container-fluid"> <Helmet title="Home"/> <h1>Tractor-Trailer</h1> <p>Start out with...<...
packages/icons/src/storage.js
yldio/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg xml...
docs/app/Examples/modules/Progress/States/ProgressExampleDisabled.js
shengnian/shengnian-ui-react
import React from 'react' import { Progress } from 'shengnian-ui-react' const ProgressExampleDisabled = () => ( <Progress percent={60} disabled> Disabled </Progress> ) export default ProgressExampleDisabled
packages/web/examples/ssr/pages/resultlist.js
appbaseio/reactivesearch
/* eslint-disable */ import React, { Component } from 'react'; import { ReactiveBase, ToggleButton, SelectedFilters, ReactiveList, } from '@appbaseio/reactivesearch'; import initReactivesearch from '@appbaseio/reactivesearch/lib/server'; import Layout from '../components/Layout'; import ListItemView from '../comp...
packages/@lyra/components/src/textareas/DefaultTextArea.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import styles from 'part:@lyra/components/textareas/default-style' import IoAndroidClose from 'part:@lyra/base/close-icon' const NOOP = () => {} export default class DefaultTextArea extends React.Component { static propTypes = { onChange: PropTypes.fun...
src/__tests__/input-test.js
nabbesh/formsy-react-components
/* globals require, jest, describe, it, xit, expect, beforeEach */ 'use strict'; jest.autoMockOff(); var React = require('react'); var ReactDOM = require('react-dom'); var Formsy = require('formsy-react'); var Input = require('../input.js'); var TestUtils = require('react-addons-test-utils'); describe('Input', func...
src/main/app/src/component/App/App.js
p632-sp-2017/microservice-catalog-frontend
import React from 'react'; import './App.css'; import '../Fonts.css'; import NavInstance from '../layout/Navigation'; import Header from '../layout/Header'; /** * This is the basic application page which comprises of Layout components and children components to be rendered. * @param {Object} children - Page to be r...
analysis/deathknight/src/RuneTracker.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatDuration, formatNumber, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events, { EventType } from 'parser/core/Events'; import ...
addons/info/src/index.js
storybooks/react-storybook
import React from 'react'; import nestedObjectAssign from 'nested-object-assign'; import deprecate from 'util-deprecate'; import { makeDecorator } from '@storybook/addons'; import { logger } from '@storybook/client-logger'; import Story from './components/Story'; import PropTable from './components/PropTable/index'; im...
ajax/libs/riot/3.0.0-alpha.10/riot+compiler.min.js
extend1994/cdnjs
/* Riot v3.0.0-alpha.10, @license MIT */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.riot=t()}(this,function(){"use strict";function e(e){return ut.test(e)}function t(e){return lt.test(e)}function n(e){return typeof e===tt||!1}...
src/containers/App.js
joshgeller/react-redux-jwt-auth-example
import React from 'react'; import {Navbar, NavBrand, Nav, NavItem} from 'react-bootstrap'; import {Link} from 'react-router'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {logoutAndRedirect} from '../actions'; import '../styles/core.scss'; @connect((state) => { return { ...
app/react-native/app/screens/StatsScreen.js
sping/abcd-epic-fussball
import React, { Component } from 'react'; import { StyleSheet, Text, Image, View, ScrollView } from 'react-native'; import { Card } from 'react-native-elements' import Constants from '../config/constants'; import Colors from '../config/colors'; import Player from '../models/player'; const GET_C...
components/google_map.js
runesam/react-redux-next
import React from 'react'; import { compose, withProps } from 'recompose'; import { withScriptjs, withGoogleMap, GoogleMap, Marker } from 'react-google-maps'; const MyMapComponent = compose( withProps({ googleMapURL: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyC4R6AN7SmujjPUIGKdyao2Kqitzr1kiRg', ...
ajax/libs/react-redux/4.2.0/react-redux.min.js
sashberd/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu...
src/components/App.js
malinowsky/dataroot_03
/** * 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 PropTypes from 'prop-...
CompletedSource/CycleSales/src/CycleSales/node_modules/grunt-bower-task/node_modules/rx/dist/rx.js
rowanmiller/Demo-MVADec14
// 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...
packages/twitch-extension-frontend/src/viewer/Viewer.js
Ell/twitch-extension-boilerplate
import React from 'react'; const Viewer = () => ( <div className="viewer-container"> <h1>Hello, Viewer</h1> </div> ); export default Viewer;
ajax/libs/firebase/8.6.0/firebase-auth.min.js
cdnjs/cdnjs
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).firebase)}(this,function(e){"use strict";try{!function(){var t,Hl=(t=e)&&"object"==typeof t&&"default"...
src/svg-icons/places/free-breakfast.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFreeBreakfast = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/> </SvgIcon> ); PlacesFre...
app/jsx/external_apps/components/ExternalToolsTableRow.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - 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...
app/containers/PlaylistListItem/index.js
fenderface66/spotify-smart-playlists
/** * PlaylistListItem * * Lists the name and the issue count of a playlistsitory */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'...
index.ios.js
neyko5/BalistosNative
import React from 'react'; import { AppRegistry } from 'react-native'; import App from './src/components/App/App'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import createSagaMiddleware from 'redux-saga'; import reducer from './src/reducers'; import ...
files/xe-core/1.7.5.3/common/js/jquery-1.x.min.js
spud2451/jsdelivr
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
App.js
gitpoint/git-point
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import styled from 'styled-components'; import { AppRegistry, LayoutAnimation, StatusBar, Platform, } from 'react-native'; import codePush from 'react-native-code-push'; import { PersistGate } from 'redux-persist/integration/react...
ajax/libs/mediaelement/2.2.0/jquery.js
coupang/cdnjs
/*! * jQuery JavaScript Library v1.6.1 * 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. ...
redux-saga/redux-saga-starter/src/index_old.js
wefine/reactjs-guide
import React from 'react'; import ReactDOM from 'react-dom'; import { applyMiddleware, createStore } from 'redux'; import createSagaMiddleware from 'redux-saga'; import Counter from './Counter'; import reducer from './reducers'; import rootSaga from './saga'; const sagaMiddleware = createSagaMiddleware(); const stor...
test/test_helper.js
azimitina/post-list-redux
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...
src/FormControls/Static.js
jamon/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
ajax/libs/react-dom/18.0.0-alpha-2bf2e76d3-20210826/umd/react-dom-server.browser.production.min.js
cdnjs/cdnjs
/** @license React vundefined * react-dom-server.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ (function(){'use strict';(function(H,I){"object"===typeo...
ajax/libs/yui/3.7.0/datatable-body/datatable-body.js
djavaui/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...
packages/editor/src/components/Controls/Inline/InlineLayout.js
strues/boldr
/* eslint-disable react/no-unused-prop-types */ /* @flow */ import React from 'react'; import cn from 'classnames'; import { Bold, Italic, Underline, Strikethrough, Code } from '../../Icons'; import Option from '../../Option'; type CurrentState = { bold?: boolean, italic?: boolean, underline?: boolean, strike...
ajax/libs/react/0.13.3/JSXTransformer.js
steadiest/cdnjs
/** * JSXTransformer v0.13.3 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g...
src/svg-icons/image/crop.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop = (props) => ( <SvgIcon {...props}> <path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/> </SvgIcon> ); ImageCrop = pure(ImageCrop); ImageCrop.displayNam...
packages/material-ui-icons/src/FunctionsOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7V4z" /> , 'FunctionsOutlined');
test/regressions/tests/IconButton/ContrastIconButton.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import IconButton from 'material-ui/IconButton'; import deepOrange from 'material-ui/colors/deepOrange'; export default function ContrastIconButton() { return ( <IconButton color="contrast" style={{ backgroundColor: deepOrange[500] }}> home </IconButton> ); }
src/js/components/icons/base/TopCorner.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
js/header.js
everolth/bootstrap-toggle-react
import React from 'react'; export default ( <header> <nav className="navbar navbar-default container" role="navigation"> <div className="container"> <div className="navbar-header"> <button type="button" className="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"> <span classN...
ajax/libs/asynquence-contrib/0.1.11-a/contrib.src.js
maruilian11/cdnjs
/*! asynquence-contrib v0.1.11-a (c) Kyle Simpson MIT License: http://getify.mit-license.org */ (function UMD(dependency,definition){ if (typeof module !== "undefined" && module.exports) { module.exports = definition(require(dependency)); } else if (typeof define === "function" && define.amd) { define([depen...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
ubik23/cmx
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/UI/NewEntry/NewEntry.js
wanchopen/vida
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './NewEntry.css'; import Dialog from 'material-ui/Dialog'; import {grey400, cyan500} from 'material-ui/styles/colors'; import IconButton from 'material-ui/IconButton'; import EditorBorderColor from '...
website/src/theme/DocPaginator/index.js
yangshun/tech-interview-handbook
// Swizzled to remove the prev button. import React from 'react'; import Translate, {translate} from '@docusaurus/Translate'; import PaginatorNavLink from '@theme/PaginatorNavLink'; function DocPaginator(props) { const { // previous, next, } = props; return ( <nav className="pagination-nav doc...
src/components/LocationDropDown/LocationDropDown.js
arslantariq115/ReactWeatherApp
import React from 'react' import GeoSuggest from 'react-geosuggest' class LocationDropDown extends React.Component { constructor() { super() } render() { return ( <span className="filter-container"> <GeoSuggest className="geosuggest" placeholder="Search Places" onSuggestSelect={this.props...
src/layouts/index.js
adenj/blog
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'gatsby-link'; import Helmet from 'react-helmet'; const Header = () => <div style={{ background: 'rebeccapurple', marginBottom: '1.45rem' }} > <div style={{ margin: '0 auto', maxWidth: 960,...
source/components/RoundList.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import { css } from 'emotion'; import { borderRadius, Color, mobileMaxWidth } from 'constants/css'; RoundList.propTypes = { children: PropTypes.node.isRequired, style: PropTypes.object }; export default function RoundList({ children, style }) { retu...
src/routes.js
kakapo2016-projects/tooth-and-pail
import React from 'react' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import App from './components/App' import Profile from './components/Profile' import Home from './components/Home' import Trends from './components/Trends' import RecipientSignup from './components/RecipientSignup' import...
src/SelectBox/Select.js
abouthiroppy/scuba
// @flow import type { CommonProps } from '../CommonTypes'; import React from 'react'; import classnames from 'classnames'; import excludeProps from '../utils/excludeProps'; import styles from './style'; type SelectProps = { default?: boolean; value?: string; }; const Select = (props: CommonProps & SelectProps)...
js/jquery.js
michaelbrazell/www.wm-feature.dev
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/svg-icons/image/photo-size-select-actual.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectActual = (props) => ( <SvgIcon {...props}> <path d="M21 3H3C2 3 1 4 1 5v14c0 1.1.9 2 2 2h18c1 0 2-1 2-2V5c0-1-1-2-2-2zM5 17l3.5-4.5 2.5 3.01L14.5 11l4.5 6H5z"/> </SvgIcon> ); ImagePhotoSiz...
src/js/warrantypromise.js
adrienthiery/cormorant
/* Thing > Intangible > StructuredValue > WarrantyPromise - A structured value representing the duration and scope of services that will be provided to a customer free of charge in case of a defect or malfunction of a product.. Generated automatically by the reactGenerator. */ var WarrantyPromise= React.createClass({d...
docs/src/pages/components/cards/RecipeReviewCard.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import CardMedia from '@material-ui/core/CardMedia'; import CardContent from '@material-ui/core/CardContent'; impor...
js/src/ui/LanguageSelector/langugeSelector.spec.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...
client/src/global/components/icon/64/BECollectionSmart.js
ManifoldScholar/manifold
import React, { Component } from "react"; import PropTypes from "prop-types"; import classnames from "classnames"; export default class BECollectionSmart extends Component { static propTypes = { className: PropTypes.string, size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), stroke: PropType...
src/packages/recompose/__tests__/mapProps-test.js
acdlite/recompose
import React from 'react' import { mount } from 'enzyme' import sinon from 'sinon' import { mapProps, withState, compose } from '../' test('mapProps maps owner props to child props', () => { const component = sinon.spy(() => null) component.displayName = 'component' const StringConcat = compose( withState('...
ajax/libs/history/2.1.2/History.js
maruilian11/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["History"] = factory(); else root["Histo...
public/client/routes/shell/components/header.js
Concorda/concorda-dashboard
'use strict' import React from 'react' import {Link} from 'react-router' import Menu from './menu' export default React.createClass({ render () { const {showProfile, handleEditUserProfile} = this.props return ( <header className="header" role="banner"> <div className="container-fluid"> ...
src/index.js
tmbtech/reindex-todo-relay
import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; import Reindex from './Reindex'; import App from './components/App'; Relay.injectNetworkLayer(Reindex.getRelayNetworkLayer()); ReactDOM.render( <App />, document.getElementById('root') );
ajax/libs/flocks.js/0.14.3/flocks.js
bsquochoaidownloadfolders/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /** * The Flocks library module. * * @module Flocks * @main Flocks */ // if it's in a <script> it's defined already // otherwise assume commonjs if (typeof React === 'undefined') { var React = require('react'); } // wrap ...
src/Parser/Druid/Balance/Modules/Features/SolarEmpowerment.js
enragednuke/WoWAnalyzer
import React from 'react'; import Icon from 'common/Icon'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import RESOURCE_TYPES from 'common/RESOURCE_TYPES'; import { formatPercentage }...
src/js/containers/Login.js
soundchain/soundchain-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { replace } from 'react-router-redux'; //import { loginContainerSelector } from 'selectors'; // for nextPathname /* import Loader from 'components/Loa...
tab.js
xiewang/react-native-emoticons
import React from 'react'; import PropTypes from 'prop-types'; import { Text, View, TouchableOpacity, Navigator, InteractionManager, Platform, ScrollView, Image, DeviceEventEmitter } from 'react-native'; import styles from './style'; class TabBar extends React.Component { constr...
app/javascript/mastodon/features/nicovideo/player/components/player.js
masarakki/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ToggleButton from './toggle_button'; import Controller from './controller'; export default class Player extends React.PureComponent { static propTypes = { visible: PropTypes.bool.isRequired, videoId: PropTypes.string, input: PropType...
app/components/Home.js
nesfe/electron-LAN-chat
import React, { Component } from 'react'; import Typing from './Typing'; import Chatlog from './Chatlog'; import utils from '../utils/utils'; import client from '../assets/js/client'; import { ipcRenderer } from 'electron'; export default class Home extends Component { constructor(props) { super(props); thi...
web/static/js/components/butter.js
toxu/txportal
import React from 'react'; import {connect} from 'react-redux'; import { fetchButterResults, fetchButterProjects, butterTabSelected } from '../actions/butter'; // UI import Tabs from 'react-bootstrap/lib/Tabs'; import Tab from 'react-bootstrap/lib/Tab'; import ButterResultList from './butter_result_list'; class Butte...
ui/src/js/backOffice/LoadableBackOfficeOverview.js
Dica-Developer/weplantaforest
import React, { Component } from 'react'; import Loadable from 'react-loadable'; const LoadableComponent = Loadable({ loader: () => import('./BackOfficeOverview.js'), loading() { return <div>Loading...</div>; } }); export default class LoadableBackOfficeOverview extends Component { render() { return <...
templates/javascript/Component.js
mjul/generator-react-webpack
'use strict'; var React = require('react/addons');<% if(rich && architecture === 'reflux'){%> var Reflux = require('Reflux');<%}%> <% if(rich && architecture === 'flux' || architecture === 'reflux'){%> //var Actions = require('actions/xxx')<%}%> <% if (stylesLanguage === 'css') { %>require('styles/<%= classedFileName...
tests/layouts/CoreLayout.spec.js
ExtraGains/XLBS
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
src/components/topic/header.js
nickhsine/twreporter-react
import { Link } from 'react-router-dom' import mq from '../../utils/media-query' import React from 'react' import SearchBox from './search-box' import styled from 'styled-components' import WhiteDonationIcon from '../../../static/asset/white-donation-icon.svg' import WhiteLogoIcon from '../../../static/asset/logo-white...
src/docs/examples/EyeIcon/Example.js
miker169/ps-react-miker169
import React from 'react'; import EyeIcon from 'ps-react/EyeIcon'; export default function EyeIconExample() { return <EyeIcon/> }
scratch-blocks/node_modules/google-closure-library/closure/goog/events/actionhandler.js
isabela-angelo/scratch-tangible-blocks
// Copyright 2007 The Closure Library Authors. All Rights Reserved. // // 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 requ...
packages/material-ui-icons/src/DesktopWindowsRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H9c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1h-1v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 14H4c-.55 0-1-.45-1-1V5c0-.55.45-1 1-...
static/src/components/Modals/EditTransaction.js
tferreira/piggydime
import React from 'react' import { FormattedMessage, injectIntl } from 'react-intl' import Dialog from 'material-ui/Dialog' import FlatButton from 'material-ui/FlatButton' import RaisedButton from 'material-ui/RaisedButton' import TextField from 'material-ui/TextField' import DatePicker from 'material-ui/DatePicker' im...
src/components/SideDisplays/SkillDisplay/index.js
aaron-edwards/Spirit-Guide
import React, { Component } from 'react'; import { View, Text, StyleSheet} from 'react-native'; import { Divider } from 'react-native-material-design'; import Label from '../label'; const styles = StyleSheet.create({ container: { padding: 8, }, title: { fontWeight: 'bold', fontSize: 20, textAlig...
components/date-picker/common/yearTable.js
TDFE/td-ui
/** * @Author: Zhengfeng.Yao <yzf> * @Date: 2017-06-22 11:44:29 * @Last modified by: yzf * @Last modified time: 2017-06-26 14:00:11 */ import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import chunk from 'lodash/chunk'; function isSameYear(one, two) { return one && ...
src/svg-icons/image/wb-cloudy.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbCloudy = (props) => ( <SvgIcon {...props}> <path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96...
cloud/dashboard/src/components/ResourceList.js
iotivity/iotivity
/* * //****************************************************************** * // * // Copyright 2017 Samsung Electronics All Rights Reserved. * // * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * // * // Licensed under the Apache License, Version 2.0 (the "License"); * // you may not use th...
src/components/signup.js
KoushikKumar/trade-a-book-client
import React, { Component } from 'react'; import Iphone from './iphone'; import Book from './book'; export default class SignUp extends Component { render() { return ( <div className="outer-container"> <Book /> <Iphone /> </div> ) } }
ajax/libs/react-bootstrap/0.22.5/react-bootstrap.js
melvinsembrano/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["ReactBootstrap"] = ...
ajax/libs/material-ui/5.0.0-alpha.17/utils/createSvgIcon.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import React from 'react'; import SvgIcon from '../SvgIcon'; /** * Private module reserved for @material-ui packages. */ export default function createSvgIcon(path, displayName) { const Component = (props, ref) => /*#__PURE__*/React.createElement(SvgIcon, ...
webpack/node_modules/react-dom/lib/findDOMNode.js
hfutlyz/react-exp-demos
/** * Copyright 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. * */ 'use strict...
inc/option_fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/color/index.js
wpexpertsio/WP-Secure-Maintainance
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, withState, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import Colorpicker from 'fields/components/color/picker'; ...
templates/rubix/rails/rails-seed/src/common/header.js
jeffthemaximum/jeffline
import React from 'react'; import classNames from 'classnames'; import { SidebarBtn, Navbar, Nav, NavItem, Icon, Grid, Row, Col } from '@sketchpixy/rubix'; class Brand extends React.Component { render() { return ( <Navbar.Header {...this.props}> <Navbar.Brand tabIndex='-1'> <a href='#'> ...
electron/app/components/PagesPopup.js
zindlerb/motif
import React from 'react'; import classnames from 'classnames'; import { focusRefCallback } from '../utils'; import UpArrow from '../components/UpArrow'; const PagesPopup = React.createClass({ getInitialState() { return { isEditing: false, tempText: '' } }, render() { const { pages, cur...
examples/async/containers/Root.js
tcoopman/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
src/index.js
OrganicCat/ld-email-service
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import ldEmailApp from './reducers' import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; let store = createStore(ldEmailApp) ...
ajax/libs/parsley.js/2.3.4/parsley.js
amoyeh/cdnjs
/*! * Parsley.js * Version 2.3.4 - built Tue, Feb 23rd 2016, 11:10 am * http://parsleyjs.org * Guillaume Potier - <guillaume@wisembly.com> * Marc-Andre Lafortune - <petroselinum@marc-andre.ca> * MIT Licensed */ // The source code below is generated by babel as // Parsley is written in ECMAScript 6 // var _slice = Arra...
ajax/libs/react/0.3.3/react.min.js
infosiftr/cdnjs
/** * React v0.3.3 * * Copyright 2013 Facebook, Inc. * * 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 applicabl...
src/components/Items/index.js
cerebral/cerebral-website-tutorial-advanced
import React from 'react'; import {connect} from 'cerebral-view-react'; import filteredAndSortedItemKeys from '../../computed/filteredAndSortedItemKeys' import Item from '../Item' export default connect({ itemKeys: filteredAndSortedItemKeys }, function Items(props) { return ( <ul> {props.itemKeys...
node_modules/react-bootstrap/es/DropdownToggle.js
Chen-Hailin/iTCM.github.io
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
packages/mineral-ui-icons/src/IconSignalCellularNoSim.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 IconSignalCellularNoSim(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {....
ajax/libs/react-redux/3.1.2/react-redux.min.js
sashberd/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu...
app/views/Code/Code.js
herereadthis/redwall
import React from 'react'; import {Link} from 'react-router'; export default class Code extends React.Component { render() { return ( <div> <h1>Coding Page</h1> <ul> <li><Link to="app">Home</Link></li> </ul> </div>...
spec/react/wizard/wizard.spec.js
pivotal-cf/pivotal-ui
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import {setProps} from '../../support/jest-helpers'; import {Wizard} from '../../../src/react/wizard'; describe('Wizard', () => { let finish, pages, subject, nextEnabled; beforeEach(() => { finish = jasmine.createSpy('finish'...
examples/js/src/client/index.js
yusinto/universal-hot-reload
import React from 'react'; import { hydrate } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import App from '../universal/app'; hydrate( <BrowserRouter> <App /> </BrowserRouter>, document.getElementById('reactDiv'), );
ajax/libs/6to5/3.3.5/browser-polyfill.js
BenjaminVanRyseghem/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...
webapp/app/components/SoftwaresByUser/Buttons/ModalAddAllSoftwares/index.js
EIP-SAM/SAM-Solution-Node-js
// // Modal to add several softwares in softwares by user page // import React from 'react'; import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap'; import LinkContainerButton from 'components/Button'; import styles from 'components/SoftwaresByUser/styles.css'; /* eslint-disable react/prefer-stateless-func...
common/app/provide-store.js
1111113j8Pussy420/https-github.com-raisedadead-freeCodeCamp
/* eslint-disable react/display-name */ import React from 'react'; import { Provider } from 'react-redux'; export default function provideStore(element, store) { return React.createElement( Provider, { store }, element ); }
packages/example-phone/src/scripts/components/call/call.js
glhewett/spark-js-sdk
import React from 'react'; import CallControls from './call-controls'; import {Col, Grid, Row} from 'react-bootstrap'; import SelfView from './call-self-view'; import RemoteView from './call-remote-view'; export default function Call({remoteName, ...props}) { return ( <div className="active-call"> <Grid> ...
src/components/entities/Grow.js
DelvarWorld/some-game
import React, { Component } from 'react'; import THREE, { Euler, Vector3, } from 'three'; import { easeInOutCubic } from 'easing-utils'; const rotationOffset = new Euler( Math.PI / 2, 0, 0 ); const billboardScale = new Vector3( 1, 1, 1 ).multiplyScalar( 0.6 ); const rotationSpeed = -0.08; const bounceSpeed = 0.0025; c...
node_modules/reflexbox/src/Flex.js
HasanSa/hackathon
import React from 'react' import withReflex from './withReflex' const Base = withReflex()('div') const Flex = ({ className, ...props }) => { const cx = 'Flex' + (className ? ' ' + className : '') return <Base {...props} flex className={cx} /> } const responsivePropCheck = (props, propName, componentName) => { ...
react/features/base/media/components/native/VideoTrack.js
gpolitis/jitsi-meet
/* @flow */ import React from 'react'; import { View } from 'react-native'; import { connect } from '../../../redux'; import AbstractVideoTrack from '../AbstractVideoTrack'; import type { Props } from '../AbstractVideoTrack'; import styles from './styles'; /** * Component that renders video element for a specified...