path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/index.js | code-for-nashville/inclucivics | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import './index.css'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
src/components/scroller.js | UnforbiddenYet/react-sleek-photo-gallery | import React, { Component } from 'react';
import throttle from 'throttle-debounce/throttle';
import getSupportedTransformProperty from '../utils/get-supported-translate-property';
import { getTouchXPosition, calculateTranslateX, calculateEdgeTranslateXDistances, thumbnailWidthReducer } from '../utils/helpers';
const ... |
ajax/libs/rxjs/2.3.6/rx.js | baig/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... |
test/helpers/shallowRenderHelper.js | linban/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
ajax/libs/yui/3.8.1/event-custom-base/event-custom-base-coverage.js | dhenson02/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
test/index.js | romainberger/react-portal-tooltip | import React from 'react'
import assert from 'assert'
import ReactShallowRenderer from 'react-test-renderer/shallow'
import Tooltip from '../src'
const renderer = (Component) => {
const shallowRenderer = new ReactShallowRenderer()
shallowRenderer.render(Component)
return shallowRenderer.getRenderOutput()
}
desc... |
website-prototyping-tools/RelayPlayground.js | dmfrancisco/relay | /**
* Copyright 2013-2015, 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.
*/
import './RelayPl... |
src/screens/App/screens/Listing/components/PostsContainer/index.js | yanglinz/reddio | import React from 'react';
import { connect } from 'react-redux';
import * as reducer from 'state/reddit/reducer';
import Posts from '../Posts';
function stateToProps(state) {
return {
posts: reducer.selectPosts(state),
hotLink: reducer.selectHotLink(state),
newLink: reducer.selectNewLink(state),
ri... |
ajax/libs/material-ui/4.11.3/Table/Table.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _objectWithoutProperties2=_interopRequireDefau... |
src/rsg-components/Markdown/Table/TableRowRenderer.js | bluetidepro/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
export function TableRowRenderer({ children }) {
return <tr>{children}</tr>;
}
TableRowRenderer.propTypes = {
children: PropTypes.node.isRequired,
};
export default TableRowRenderer;
|
components/Button.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../components/Icon';
import classNames from 'classnames';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
disabled: PropTypes.bool,
small: PropTypes.bool,
kind: PropTypes.oneOf(['primary', 'secondary',... |
app/components/NotFoundSection/NotFoundSection.js | ericwooley/StreamTor | import React from 'react'
export default class NotFoundSection extends React.Component {
constructor() {
super()
}
render() {
return (
<div>
<h1>PAGE NOT FOUND</h1>
</div>
)
}
}
NotFoundSection.prototype.displayName = 'NotFoundSection'
|
web/js/06837fc_part_1.js | radoshordos/shopsymfony | /*! jQuery v1.11.0 | (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/stories/AphroditeInterface.story.js | jtberglund/react-themable-hoc | import './style.css';
import { InnerComponent, OuterComponent, ThemeSwitcher } from './components';
import AphroditeInterface from 'react-themable-hoc-aphrodite-interface';
import React from 'react';
import ThemeManager from '../ThemeManager';
import aphrodite from 'aphrodite';
import { storiesOf } from '@storybook/r... |
fields/types/markdown/MarkdownColumn.js | mikaoelitiana/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.Pr... |
scripts/jest/config.source-www.js | chicoxyzzy/react | 'use strict';
const baseConfig = require('./config.base');
const RELEASE_CHANNEL = process.env.RELEASE_CHANNEL;
// Default to building in experimental mode. If the release channel is set via
// an environment variable, then check if it's "experimental".
const __EXPERIMENTAL__ =
typeof RELEASE_CHANNEL === 'string'
... |
packages/showcase/plot/scatterplot-canvas.js | uber/react-vis | // Copyright (c) 2016 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... |
node_modules/yeoman-generator/node_modules/inquirer/node_modules/rx/dist/rx.all.compat.js | pulluru/generator-ppcreddy | // 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/react-icons/md/settings-backup-restore.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdSettingsBackupRestore = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 5q6.3 0 10.6 4.4t4.4 10.6-4.4 10.6-10.6 4.4q-5.2 0-9.1-3.1l2.3-2.4q3.1 2.1 6.8 2.1 4.8 0 8.2-3.4t3.4-8.2-3.4-8.2-8.2-3.4-8.2 3.4-3.4 8.2h5l-6.8 6.6-... |
modules/dreamview/frontend/src/components/StatusBar/Notification.js | ycool/apollo | import React from 'react';
import { observer } from 'mobx-react';
import classNames from 'classnames';
import warnIcon from 'assets/images/icons/warning.png';
import errorIcon from 'assets/images/icons/error.png';
@observer
export default class Notification extends React.Component {
render() {
const { monitor, ... |
app/components/LoadingIndicator/index.js | Third9/mark-one | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
ajax/libs/material-ui/5.0.0-alpha.21/node/internal/svg-icons/MoreHoriz.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createSvgIco... |
tests/Rules-isFloat-spec.js | optiopay/optiopay-form | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
AK.Listor.WebClient/src/ListMenu.js | aashishkoirala/mylists | /*******************************************************************************************************************************
* AK.Listor.WebClient.ListMenu.js
* Copyright © 2017 Aashish Koirala <http://aashishkoirala.github.io>
*
* This file is part of Aashish Koirala's Listor.
*
* Listor is free software: yo... |
jssource/src_files/include/javascript/yui3/build/loader/loader.js | youyou2008/hdxktest | /*
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
*/
YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(functi... |
amp-stories/src/component/view/GreatStoryView/pages/StoryPage2.js | ampproject/samples | import * as React from 'react';
import styled, {keyframes} from 'styled-components';
import {rem} from 'polished';
import AmpImage from '/component/amp/AmpImage';
import AmpStoryPage from '/component/amp/AmpStoryPage';
import {Text as SharedText} from './shared';
const clockwise = keyframes`
0% {
transform: ro... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.min.js | kenwheeler/cdnjs | /*! F2 - v1.3.3 - 04-07-2014 - See below for copyright and license */
!function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
lib/components/ReactableUI.js | Centiq/meteor-reactable | import React from 'react';
import createReactClass from 'create-react-class';
ReactableUI = createReactClass({
mixins: [ ReactableClasses ],
shouldComponentUpdate (nextProps) {
// If ready state or stopped state has changed, then update
if (nextProps.ready !== this.props.ready) return true;
... |
game/webpack.config.js | gimhol/gimhol.github.com | var webpack = require("webpack")
var path = require("path")
var config = {
entry: path.resolve(__dirname, 'src/index.ts'),
devtool: 'inline-source-map',
output: {
path: path.resolve(__dirname, 'bundle'),
},
devServer: {
inline: true,
compress: false,
contentBase: path.join(__dirname, "./"),
... |
ajax/libs/preact/5.1.0-beta.17/preact.min.js | dc-js/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.preact=e.preact||{})}(this,function(e){function t(e,t,n){this.nodeName=e,this.attributes=t,this.children=n,this.key=t&&t.key}function n(e,t){if(t)for(var n in t)e[n]=t[n];return... |
src/Sidenav/test/SidenavStylesSpec.js | suitejs/suite | import React from 'react';
import ReactDOM from 'react-dom';
import Sidenav from '../index';
import { createTestContainer, getDOMNode, getStyle, toRGB } from '@test/testUtils';
import '../styles/index';
describe('Sidenav styles', () => {
it('Should render the correct styles', () => {
const instanceRef = React.c... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/JsonInclusion.js | cr101/create-react-app | /**
* 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.
*/
import Rea... |
grails-app/assets/javascripts/dependencies/node_modules/material-ui/svg-icons/av/pause-circle-filled.js | puaykai/noodles | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/containers/Home/HomePage.js | KlusterKite/KlusterKite | import React from 'react'
import Relay from 'react-relay'
import delay from 'lodash/delay'
import NodesList from '../../components/NodesList/NodesList';
import NodesWithTemplates from '../../components/NodesWithTemplates/index';
import RecheckState from '../../components/RecheckState/RecheckState';
import Warnings fr... |
P/lixil/src/components/Products/Eco/EcoQA.js | imuntil/React | import React from 'react'
function EcoQA() {
return (
<div className="Eco-QA common-section">
<div className="auto-img">
<img src={require('../../../assets/product/eco/eco-qa-1.jpg')} alt=""/>
<img src={require('../../../assets/product/eco/eco-qa-2.jpg')} alt=""/>
<img src={require(... |
app/components/Leasing/index.js | medevelopment/UMA | import React, { Component } from 'react';
import axios from 'axios';
import firebase from 'firebase';
import * as toastify from '../../functions/Toastify';
import { propertySections } from '../../functions/propertiesFuncs';
import NotifyUpdate from '../NotifyUpdate';
import styled from 'styled-components';
import { S... |
docs/app/Examples/elements/Input/States/InputExampleLeftLoading.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLeftLoading = () => (
<Input loading icon='user' iconPosition='left' placeholder='Search...' />
)
export default InputExampleLeftLoading
|
src/svg-icons/hardware/watch.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareWatch = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.... |
src/components/ToastNotifications.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { TimedToastNotification, ToastNotificationList } from 'patternfly-react'
import { setNotificationNotified } from '_/actions'
import style from './sharedStyle.css'
function normalizeType (theType) {
theType = ... |
admin/client/App/components/Navigation/Mobile/ListItem.js | cermati/keystone | /**
* A list item of the mobile navigation
*/
import React from 'react';
import { Link } from 'react-router';
const MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRe... |
src/docs/ComponentPage.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Example from './Example';
import Props from './Props';
const ComponentPageContainer = styled.div`
background: #FFF;
margin-left: 260px;
position: relative;
top: 0;
right: 0;
bottom: 0;
left: 0;
... |
ajax/libs/forerunnerdb/1.3.640/fdb-legacy.js | sreym/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/routes/catalog/fiveGallery/FiveGallery.js | LeraSavchenko/Maysternia | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './FiveGallery.css';
import decor1Url from '../images/decor1.png';
import decor2Url from '../images/decor2.png';
import decor3Url from '../images/decor3.png';
import decor4Url from '../images/decor4.png';
import d... |
examples/js/column-filter/select-filter-with-eq-condition.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const quality = [ 'good', 'Bad', 'unknown' ];
const qualityType = {
'good': 'good',
'Bad': 'Bad',
'unknown': 'unknown'
};
function addProducts(quantity) {
const ... |
src/icons/Merge.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Merge extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M384,224c-23.637,0-44.307,12.89-55.391,32H319c-42.464,0-79.99-17.904-111.535-53.214
c-20.356-22.787-33.493-48.869-37.856-5... |
ajax/libs/strophe.js/1.2.0/strophe.js | LeaYeh/cdnjs | /** File: strophe.js
* A JavaScript library for XMPP BOSH/XMPP over Websocket.
*
* This is the JavaScript version of the Strophe library. Since JavaScript
* had no facilities for persistent TCP connections, this library uses
* Bidirectional-streams Over Synchronous HTTP (BOSH) to emulate
* a persistent, sta... |
packages/bonde-styleguide/src/navigation/Tab/Tab.js | ourcities/rebu-client | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import TabItem from '../TabItem/TabItem'
const Tab = styled(({ children, className, inverted }) => (
<div className={className}>
{React.Children.map(children, child => (
React.cloneElement(child, { inverted,... |
app/javascript/mastodon/features/account/components/action_bar.js | ambition-vietnam/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { Link } from 'react-router-dom';
import { defineMessages, injectIntl, FormattedMessage, FormattedNumber } fr... |
examples/multiple-apps/core/components/Root.js | Travix-International/frint | import React from 'react';
import { Region } from 'frint-react';
export default class Root extends React.Component {
render() {
return (
<div className="container">
<div className="row">
<div className="eight columns">
<h3>Main</h3>
<hr />
<Region nam... |
features/common/components/modal_dialog/triggerBtn.js | zymokey/mission-park | import React from 'react';
export default class TriggerBtn extends React.Component {
render(){
return(
<button type="button" className="btn btn-primary"
data-toggle="modal"
data-target={this.props.dataTarget}
style={ this.props.display ? {display: this.props.display} : {}}
>{this.props.btnName}... |
src/hoc/withLikeCounter.js | rlesniak/tind3r.com | // @flow
import React, { Component } from 'react';
import { observable, action } from 'mobx';
import { observer } from 'mobx-react';
import { CurrentUser } from 'models/CurrentUser';
import counterService from 'services/counterService';
type PropsType = {
currentUser: CurrentUser,
};
export type WithLikeCounterP... |
src/components/Header/index.js | calpa/blog | import React from 'react';
import PropTypes from 'prop-types';
import './index.scss';
import JueJin from '../JueJin';
import { parseImgur } from '../../api/images';
const Header = ({
img,
title,
subTitle,
authorImage,
authorName,
jueJinPostLink,
jueJinLikeIconLink,
}) => (
<div className="col-12 head... |
src/SideBar/SideBar.js | salars/react-sui | import React,{ Component } from 'react';
import PropTypes from 'prop-types';
export default class SideBar extends Component {
static props = {
right:PropTypes.bool,
left:PropTypes.bool
};
render(){
return (
<div className="col-12 col-md-3 col-xl-2 bd-sidebar">
... |
packages/material-ui-icons/src/Battery20.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6... |
src/index.js | philholden/omysoul | import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import { Provider } from 'react-redux'
import rootReducer from './app/root-reducer'
import { generateKeys } from './api'
import * as _actions from './song-store/song-store-actions'
import sagaMiddleware from './app/saga-middleware'
imp... |
packages/ddp-client/livedata_connection_tests.js | meonkeys/meteor | var newConnection = function (stream) {
// Some of these tests leave outstanding methods with no result yet
// returned. This should not block us from re-running tests when sources
// change.
return new LivedataTest.Connection(stream, {reloadWithOutstanding: true});
};
var makeConnectMessage = function (sessio... |
src/auth.js | LucasYuNju/leanote-desktop-lite | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Login from './containers/Login';
import configureStore from './store/configureStore';
const { store, persistor } = configureStore();
ReactDOM.render(
<Provider store={store}>
<Login persistor={persistor}... |
Full Stack Web Developer Nanodegree v2/P2 - Trivia API/frontend/src/components/FormView.js | manishbisht/Udacity | import React, { Component } from 'react';
import $ from 'jquery';
import '../stylesheets/FormView.css';
class FormView extends Component {
constructor(props){
super();
this.state = {
question: "",
answer: "",
difficulty: 1,
category: 1,
categories: [],
}
}
componentDid... |
node_modules/enzyme/src/version.js | paul-brabet/tinkerlist | import React from 'react';
export const VERSION = React.version;
const [major, minor] = VERSION.split('.');
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
export const REACT15 = major === '15';
export const REACT155 = REACT15 && minor >= 5;
|
packages/tracker/package.js | codedogfish/meteor | Package.describe({
summary: "Dependency tracker to allow reactive callbacks",
version: '1.0.8'
});
Package.onUse(function (api) {
api.export('Tracker');
api.export('Deps');
api.addFiles('tracker.js');
api.addFiles('deprecated.js');
});
Package.onTest(function (api) {
api.use('tinytest');
api.use('test... |
ajax/libs/react-slick/0.12.4/react-slick.min.js | menuka94/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,... |
src/components/IncompleteDeploy.js | oraclesorg/ico-wizard | import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import cancelDeploy from '../utils/cancelDeploy'
class CheckIncompleteDeploy extends Component {
cancel() {
cancelDeploy()
}
render() {
return (
<div>
<section className="home">
<div className="crow... |
ajax/libs/forerunnerdb/1.3.587/fdb-core+persist.min.js | jonobr1/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... |
src/chat/Chat.js | easyCZ/enlighten | import React, { Component } from 'react';
import { connect, Provider } from 'react-redux';
import store from '../store';
import ChatToolbar from './toolbar/ChatToolbar';
import ChatMessages from './messages/ChatMessages';
import ChatInput from './input/ChatInput';
import { Row, Col } from 'react-flexbox-grid';
import... |
src/react/index.js | oliverturner/redux-devtools | import React from 'react';
import createDevTools from '../createDevTools';
export const DevTools = createDevTools(React);
export { default as LogMonitor } from './LogMonitor';
export { default as DebugPanel } from './DebugPanel';
|
examples/react-router/src/components/Home.js | ericf/react-intl | import React from 'react';
import { FormattedDate } from 'react-intl';
const Home = () => (
<div>
<h2>Home</h2>
<p>
Today is {' '}
<FormattedDate value={Date.now()} />
</p>
</div>
);
export default Home;
|
sites/all/libraries/zencoder/Documentation/js/jquery-1.4.2.min.js | JohnRafols/tapWebsite | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
relay-demo/relay-treasurehunt/node_modules/react/lib/ReactTestRenderer.js | zhangjunhd/react-examples | /**
* 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.
*
* @providesModu... |
ajax/libs/angular.js/0.10.2/angular-scenario.js | xubowenjx/cdnjs | /*!
* jQuery JavaScript Library v1.6.4
* 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.
... |
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.... |
app/assets/scripts/components/dropdown.js | WorldBank-Transport/rra-frontend | 'use strict';
import React from 'react';
import TetherComponent from 'react-tether';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
const Dropdown = React.createClass({
displayName: 'Dropdown',
propTypes: {
id: React.PropTypes.string,
onChange: React.PropTypes.func,
triggerE... |
src/__tests__/render-imported-non-shape-types-generate-warnings.js | brigand/babel-plugin-flow-react-proptypes | const content = `
import type {StringType, NumberType, EnumStringType} from './test-types.js.transpiled';
import React from 'react';
import renderer from 'react-test-renderer';
type FooProps = {
stringValue: StringType,
numberValue: NumberType,
enumStringValue: EnumStringType,
};
class C extends React.Componen... |
src/svg-icons/communication/stay-current-portrait.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);... |
ajax/libs/react-data-grid/2.0.5/react-data-grid.js | joeyparrish/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
web/bundles/epikaclub/js/contact_form/jquery-1.6.min.js | JhovaniC/clubepikasf | /*!
* jQuery JavaScript Library v1.6
* 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.
*... |
src/svg-icons/action/settings-voice.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsVoice = (props) => (
<SvgIcon {...props}>
<path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.js | bdukes/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
src/components/canvas/other_components/GradingOptions.js | nchathu2014/canvas-new | import React from 'react';
export default class GradingOptions extends React.Component{
constructor(props){
super(props);
}
render(){
return(
<div>
<h4>Grading Options Component</h4>
</div>
);
}
}
|
packages/icons/src/md/editor/BubbleChart.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdBubbleChart(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M14.4 35.2a6.4 6.4 0 1 1 0-12.8 6.4 6.4 0 0 1 0 12.8zM29.6 40a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm.8-12.8a9.6 9.6 0 1 1 0-19.2 9.6 9.6 0 0 1 0 19.2z" />... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/SubscriptionTypeFormatter.js | ares/katello | import React from 'react';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
export const subscriptionTypeFormatter = (value, { rowData }) => {
let cellContent;
if (rowData.virt_only === false) {
cellContent = __('Physical');
} else if (rowData.hypervisor)... |
src/components/auth/requireAuth.js | mdunnegan/ReactFrontEndAuthentication | import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
}
componentWillMount() {
// Just checking global redux state
if ... |
src/components/ApplyToHostBtnLoggedIn.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { graphql, compose } from 'react-apollo';
import { FormattedMessage } from 'react-intl';
import gql from 'graphql-tag';
import withIntl from '../lib/withIntl';
import Button from './Button';
import Link from './Link';
import { get } from 'lodash';
... |
app/js/toolkit/XLarge.js | JeffRisberg/RE03 | import React from 'react';
import PropTypes from 'prop-types';
import MatchMedia from './MatchMedia';
import { XLARGE } from '../constants/breakpoints';
const XLarge = ({ children, mediaFeatures }) => (
<MatchMedia mediaQuery={`(min-width: ${XLARGE}px)`} mediaFeatures={mediaFeatures}>
{ children }
</MatchMedia... |
vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js | hrraydov/RayBlog | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
ajax/libs/yui/3.8.1/simpleyui/simpleyui.js | stefanneculai/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespace obj... |
node_modules/react-router/es6/IndexLink.js | silky098/Youtube-React-Search | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
vendor/htmlburger/carbon-fields/assets/js/fields/components/color/index.js | FolsomCreative/storynav | /**
* 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';
... |
src/svg-icons/social/whatshot.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialWhatshot = (props) => (
<SvgIcon {...props}>
<path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.... |
src/typeahead/option.js | yurynix/react-typeahead | /**
* @jsx React.DOM
*/
var React = require('react');
var classNames = require('classnames');
/**
* A single option within the TypeaheadSelector
*/
var TypeaheadOption = React.createClass({
propTypes: {
customClasses: React.PropTypes.object,
customValue: React.PropTypes.string,
onClick: React.PropTy... |
webdash/src/index.js | ohsu-comp-bio/funnel | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to register()... |
ajax/libs/react-virtualized/8.5.1/react-virtualized.min.js | pvnr0082t/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("React.addons.shallowCompare"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","React.addons.shallowCompare","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("R... |
demo/build/server/common/components/Layout/Navbar/MainMenu/MainMenu.js | misterfresh/react-easy-transition | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _noImportant = require('aphrodite/no-important');
var _MainLink = require('./MainLink');
var _MainLink2 = _interopRequireDefault(_MainLink);
function _in... |
src/components/LanguageSwitcher/LanguageSwitcher.js | utage2002/mm | /* eslint-disable no-shadow */
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { setLocale } from '../../actions/intl';
function LanguageSwitcher({ currentLocale, availableLocales, setLocale }) {
const isSelected = locale => locale === currentLocale;
co... |
src/index.js | hrasoa/rsk | import createHistory from 'history/createBrowserHistory';
import React from 'react';
import { hydrate } from 'react-dom';
import { Provider } from 'react-redux';
import * as firebase from 'firebase/app';
import 'firebase/auth';
import {
ConnectedRouter,
routerReducer,
routerMiddleware
} from 'react-router-redux';... |
src/components/Home/Banner.js | tilgram/tilgram-frontend | import React from 'react';
const Banner = ({ appName, token }) => {
if (token) {
return null;
}
return (
<div className="banner">
<div className="container">
<h1 className="logo-font">
{appName.toLowerCase()}
</h1>
<p>A place to share your knowledge.</p>
</di... |
modules/RoutingContext.js | carlosmontes/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
var { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
var RoutingConte... |
src/svg-icons/action/euro-symbol.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEuroSymbol = (props) => (
<SvgIcon {...props}>
<path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 ... |
react/features/calendar-sync/components/JoinButton.web.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import Tooltip from '@atlaskit/tooltip';
import { translate } from '../../base/i18n';
/**
* The type of the React {@code Component} props of {@link JoinButton}.
*/
type Props = {
/**
* The function called when the button is pressed.
*/
onPress: ... |
src/svg-icons/social/people.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
test/FormControlsSpec.js | gianpaj/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import * as FormControls from '../src/FormControls';
describe('Form Controls', function () {
describe('Static', function () {
it('renders a p element wrapped around the given value', function () {
const instance = ReactTestUt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.