path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
examples/01 Dustbin/Multiple Targets/index.js
longlho/react-dnd
import React, { Component } from 'react'; import Container from './Container'; export default class DustbinMultipleTargets extends Component { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/01%20Dustbin/Multiple%20Targets'>Browse the So...
sites/default/files/js/js_kRx6uIH-e_WtOee879Bhv8A3PP2mNTlvdMP9CNAAJLE.js
saitanay/doitwithd8
/*! * jQuery JavaScript Library v2.1.0 * 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-01-23T21:10Z */ (function( global, factory ) { if (...
node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js
uistyleguide/uistyleguide.github.io
/* Modernizr 2.0.6 (Custom Build) | MIT & BSD * Build: http://www.modernizr.com/download/#-iepp */ ;window.Modernizr=function(a,b,c){function w(a,b){return!!~(""+a).indexOf(b)}function v(a,b){return typeof a===b}function u(a,b){return t(prefixes.join(a+";")+(b||""))}function t(a){j.cssText=a}var d="2.0.6",e={},f=b.do...
src/containers/Home.js
iestruch/react_demo
import React from 'react'; export default class Home extends React.Component { constructor(props) { super(props); } render() { return ( <div>{ 'Esto es la Home' }</div> ); } }
src/components/Header/index.js
shinja/react-redux-c3
import React from 'react' import TenantHeader from './Header' const Header = (props) => ( <div> <TenantHeader {...props} /> </div> ) export default Header
test/InputSpec.js
azmenak/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Input from '../src/Input'; import Button from '../src/Button'; import DropdownButton from '../src/DropdownButton'; import MenuItem from '../src/MenuItem'; import Glyphicon from '../src/Glyphicon'; import {shouldWarn} from './helper...
ajax/libs/foundation/4.2.3/js/vendor/jquery.js
iamso/cdnjs
/*! * jQuery JavaScript Library v1.10.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-05-30T21:49Z */ (function( window, undefined ) { // ...
docs/app/Examples/elements/Header/Content/HeaderExampleImage.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Header, Image } from 'semantic-ui-react' const HeaderExampleImage = () => ( <Header as='h2'> <Image shape='circular' src='http://semantic-ui.com/images/avatar2/large/patrick.png' /> {' '}Patrick </Header> ) export default HeaderExampleImage
frontend/index.js
mgi166/usi-front
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './components/root'; ReactDOM.render(<Root />, document.getElementById('root'));
src/shared/utils/traverseAllChildren.js
zyt01/react
/** * 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. * * @providesModule ...
Examples/UIExplorer/ListViewPagingExample.js
ktoh/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
src/Column.js
BobNisco/react-yarg
'use strict'; import React from 'react'; import Radium from 'radium'; import Utilities from './Utilities'; let styles = { columnMixin: (columnCount, props) => { return Object.assign({ position: 'relative', boxSizing: 'border-box', minHeight: '1px', float: 'left', marginLeft: ((prop...
ajax/libs/ember-data.js/1.0.0-beta.3/ember-data.js
sreym/cdnjs
// ========================================================================== // Project: Ember Data // Copyright: ©2011-2012 Tilde Inc. and contributors. // Portions ©2011 Living Social Inc. and contributors. // License: Licensed under MIT license (see license.js) // ====================================...
examples/Sketch.js
JedWatson/react-color
'use strict' import React from 'react' import ReactCSS from 'reactcss' import ColorPicker from 'react-color' class SketchExample extends ReactCSS.Component { constructor() { super() this.state = { displayColorPicker: false, color: '#F17013', } this.handleClick = this.handleClick.bind(th...
src/client/todos/newtodo.react.js
jaegerpicker/GLDice
import './newtodo.styl'; import * as actions from './actions'; import Component from '../components/component.react'; import React from 'react'; import immutable from 'immutable'; import {msg} from '../intl/store'; class NewTodo extends Component { static propTypes = { todo: React.PropTypes.instanceOf(immutable...
lib/ui/components/common/SegmentedSelect.js
500tech/mimic
import React from 'react'; import styled from 'styled-components'; import Icon from 'ui/components/common/Icon'; import HttpStatusCodes from 'http-status-codes'; import { Div } from 'ui/components/common/base'; import InputControl from 'ui/components/common/InputControl'; const Container = styled(Div)` display: inli...
src/Tooltip/Tooltip.spec.js
skyiea/wix-style-react
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import tooltipDriverFactory from './Tooltip.driver'; import Tooltip from './Tooltip'; import TooltipContent from './TooltipContent'; import {createDriverFactory} from '../test-common'; import {buttonTestkitFactory, tooltipTestkitFactory} from...
src/components/Slider.js
prontodev/simple-react
import React from 'react' import RcSlider from 'rc-slider' import 'rc-slider/assets/index.css' function createMarks() { let object = {} for(let i = 0 ; i<=10; i++) { object[i] = i } return object } const sliderOptions = { step: 1, min: 0, max: 10, dots: true, marks: createMarks() } const Slide...
gulpfile.js
legendary-code/chaos-studio-web
var gulp = require('gulp'), dest = require('gulp-dest'), fs = require("fs"), webserver = require('gulp-webserver'), browserify = require('browserify'), reactify = require('reactify'), babelify = require('babelify'), source = require('vinyl-source-stream'), es = require('eve...
src/js/index.js
leshek-pawlak/interactive_cv
// core import { createStore, applyMiddleware, compose } from 'redux' import { Provider } from 'react-redux' import ReactDOM from 'react-dom' import React from 'react' // plugins import thunk from 'redux-thunk' import { createLogger } from 'redux-logger' // reducers import reducer from './reducers/index' // containers ...
src/framework/components/WatchApp/WatchApp.spec.js
twlevelup/watch_edition_react
import React from 'react'; import { mount, shallow } from 'enzyme'; import configureMockStore from 'redux-mock-store'; import { Provider } from 'react-redux'; import WatchApp from './WatchApp'; const DummyComponent = () => <div>Hello World</div>; const OtherDummy = () => <div>Hello World</div>; const state = { Butto...
src/components/MessageInput/LocaleSelector.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './LocaleSelector.css'; import LocaleButton from './LocaleButton'; const labels = { de: 'Deutsch', it: 'Italiano', lld: 'Ladin' }; const LocaleSelector = ({ activeLocale, onActivate...
compo/static/js/jquery.js
hur1can3/robocompo
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
wrappers/md.js
amazingBastard/gatsby-utool.io
import React, { Component, PropTypes } from 'react'; import DocumentTitle from 'react-document-title'; import moment from 'moment'; import Hero from '../containers/hero'; import { fixLinks } from 'utils'; import { rhythm } from 'utils/typography'; import { config } from 'config'; const style = { page: { display:...
packages/material-ui-icons/src/NotListedLocationTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6 9c0 3.54 3.82 8.86 6 11.47 1.75-2.11 6-7.63 6-11.47 0-3.31-2.69-6-6-6S6 5.69 6 9zm6.88 6.75h-1.75V14h1.75v1.75zM15.5 8.5c0 2.19-2.62 2.41-2.6...
src/DetailsSection/Table/Status.js
conferenceradar/list
import React from 'react'; import { statusColors } from '../../utils/colors'; const status = { cancelled: 'Cancelled', postponed: 'Postponed', happening: 'Happening', online: 'Moved to Online', noInfo: 'No Information Available' } const Status = ({ rowData }) => { return <div style={{ display: 'flex'}}> ...
react/features/prejoin/components/PrejoinApp.js
gpolitis/jitsi-meet
// @flow import { AtlasKitThemeProvider } from '@atlaskit/theme'; import React from 'react'; import { batch } from 'react-redux'; import { BaseApp } from '../../../features/base/app'; import { getConferenceOptions } from '../../base/conference/functions'; import { setConfig } from '../../base/config'; import { Dialog...
components/Navigation/Navigation.js
Code4Newark/newark-viz
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; import './Navigation.scss'; import Link from '../Link'; function Navigation() { return ( <ul className="Navigation" role="menu"> ...
netbox/project-static/jquery-ui-1.11.4/external/jquery/jquery.js
rfdrake/netbox
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
ajax/libs/yui/3.3.0/loader/loader.js
reustle/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (function() { var VERSION = Y.version, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSI...
client/src/activity-indicator.js
triforkse/base-project-js
import React from 'react'; require('./activity-indicator.scss'); export const ActivityIndicator = () => <div className="sk-folding-cube"> <div className="sk-cube1 sk-cube"></div> <div className="sk-cube2 sk-cube"></div> <div className="sk-cube4 sk-cube"></div> <div className="sk-cube3 sk-cube"></div> </div>;
src/components/Tags.js
innocentiv/vinnocenti
import React from 'react'; import Link from 'gatsby-link'; export default function Tags({ list = [] }) { return ( <ul className="tag-list"> {list.map(tag => ( <li key={tag}> <Link to={`/tags/${tag}`}>{tag}</Link> </li> ))} </ul> ); }
src/svg-icons/image/looks.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
docs/src/app/components/pages/components/TimePicker/Page.js
w01fgang/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import timePickerReadmeText from './README'; import TimePickerExampleSimple from...
app/components/H3/index.js
ParAnton/ngps-gui-core
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
__tests__/metroTests.js
emilpalsson/react-metro
import React from 'react' import Metro from '../src/index' describe('sequence api', () => { const testArr = [{ name: 'dog' }, { name: 'cat' }] const defaultAnimation = { out: { time: 0.4, delay: 0 }, in: { time: 0.4, delay: 0 }, willEnter: { from: { opacity: 0 }, ...
csb.js
Endouble/eslint
module.exports = { extends: [ '@endouble.com/eslint-config-endouble/react', 'plugin:cypress/recommended', ], overrides: [ { files: ['**/*test.js'], env: { jest: true }, }, ], };
src/components/Button.js
joshforisha/fred-talks
import Color from 'lib/Color'; import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; const Button_ = styled.button` background-color: ${p => (p.disabled ? Color.Gray : Color.Fuchsia)}; border-width: 0; color: ${Color.White}; cursor: ${p => (p.disabled ? 'not-all...
src/components/App/App.js
lolilukia/Personal-gallery
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { PropTypes, Component } from 'react'; import styles from './App.css'; import withContext from '../../decorators/withContext'; import withStyles from '../../decorators/withStyles'; import Header from '../Header'; import Feedback fro...
test/component.js
esbb48/react-demo
import reducer from '../src/reducers/todos' import * as types from '../src/constants/ActionTypes' import { spy } from 'sinon'; import React from 'react' import TestUtils from 'react-addons-test-utils' import { mount, render, shallow } from 'enzyme'; import Header from '../src/components/Header' function setup () { ...
app/scripts/page.js
agevio/agevio-react-demo
import React from 'react'; import t from 'agevio.js'; import Lang from './lang'; export default React.createClass({ componentDidMount() { t.on('localeChanged', this.forceComponentRerender); }, componentWillUnmount() { t.remove('localeChanged', this.forceComponentRerender); }, for...
node_modules/react/lib/ReactElementValidator.js
ajkhatibi/wheevy
/** * Copyright 2014-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. * * @providesModule ...
app/javascript/card_board/components/column_body.js
codaset/codaset
import React from 'react' import { Grid } from 'semantic-ui-react' export default ({cards, windowHeight}) => ( <Grid.Column style={{ height: windowHeight - 140 }}> {cards.map(card => ( <a className="ui card" href="#" key={card.number}> <div className="content"> <div>{card.title}</div> ...
components/animals/medvedKamcatsky.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/medvedKamcatsky/01...
examples/forms-material-ui/src/components/dialogs-destroy-wizard-generic/Layout.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import CodeExample from '../_common/CodeExample'; import Hook from './Hook'; import hookCode from '!raw-loader!./Hook'; export default lore.connect(function(getState, props) { const { tweetId } = props.p...
app/javascript/mastodon/features/direct_timeline/components/conversation.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'mastodon/components/status_content'; import AttachmentList from 'mastodon/components/attachment_list'...
assets/javascripts/kitten/components/graphics/icons/instrument-tag-icon/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' export const InstrumentTagIcon = ({ color, title, ...props }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 9 11" fill={color} {...props} > {title && <title>{title}</title>} <polygon points="9,11 0,11 0,0 5,0 5,4 9,4" ...
packages/react-server-dom-relay/src/ReactFlightDOMRelayClientHostConfig.js
mosoft521/react
/** * 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. * * @flow */ import type {JSONValue, ResponseBase} from 'react-client/src/ReactFlightClient'; import type JSResourceReference from...
examples/browser/create-splunk-react-app/src/SplunkJsExample.js
splunk/splunk-sdk-javascript
import React from 'react'; import './SplunkJsExample.css'; import Inputs from './Inputs'; import * as splunkjs from 'splunk-sdk'; // jquery.ajax is used for the underlying http client in ProxyHttp window.$ = require('jquery'); //const splunkjs = require('splunk-sdk'); const Async = splunkjs.Async; const clientHttp =...
pages/teams/index.js
turntwogg/esports-aggregator
import React from 'react'; import { withRouter } from 'next/router'; import Page from '../../components/Page'; import PageHeader from '../../components/PageHeader'; import PageContent from '../../components/PageContent'; import Pager from '../../components/Pager'; import TeamListing from '../../components/TeamListing'...
src/icons/VolumeDownIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class VolumeDownIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"/></svg>;} }...
src/pages/page-2.js
garrowat/garrowat.github.io
import React from 'react' import Link from 'gatsby-link' const SecondPage = () => ( <div> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </div> ) export default SecondPage
js/jquery.js
xiliuhk/xiliuhk.github.io
/*! 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...
mobile/App/Components/CustomNavBar.js
JasonQSong/SoulDistance
import React from 'react' import { View, Image, Animated, TouchableOpacity } from 'react-native' import { Images, Colors } from '../Themes' import Styles from './Styles/CustomNavBarStyle' import Icon from 'react-native-vector-icons/Ionicons' import { Actions as NavigationActions } from 'react-native-router-flux' expor...
ajax/libs/boardgame-io/0.44.4/esm/react.js
cdnjs/cdnjs
import 'nanoid'; import './Debug-dda4b5bc.js'; import 'redux'; import './turn-order-62966a9c.js'; import 'immer'; import 'lodash.isplainobject'; import './reducer-763b001e.js'; import 'rfc6902'; import './initialize-ca65fd4a.js'; import './transport-0079de87.js'; import { C as Client$1 } from './client-5202a476.js'; im...
src/esm/components/structure/cards/vertical-card-with-action/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["imageProps", "title", "titleTag", "description", "descriptionTag", "button", "buttonModifier", "buttonProps"]; import React from 'react'; import style...
tests/layouts/CoreLayout.spec.js
johnthedesigner/review-ui
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...
pages/getting-started/example-projects.js
Kagami/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; const req = require.context('docs/src/pages/getting-started/example-projects', false, /\.md|\.js$/); const reqSource = require.context( '!raw-loa...
src/svg-icons/image/wb-iridescent.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbIridescent = (props) => ( <SvgIcon {...props}> <path d="M5 14.5h14v-6H5v6zM11 .55V3.5h2V.55h-2zm8.04 2.5l-1.79 1.79 1.41 1.41 1.8-1.79-1.42-1.41zM13 22.45V19.5h-2v2.95h2zm7.45-3.91l-1.8-1.79-1.41 1.41 1....
ajax/libs/vkui/4.22.1/cjs/components/Avatar/Avatar.min.js
cdnjs/cdnjs
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default,_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.AVATAR_DEFAULT_SHADOW=exports.AVATAR_DEFAULT_SIZ...
src/universalRouter.js
zenlambda/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component={}) => { return component.DecoratedComponent ? getFetchData(component.DecoratedComponent) : component.fetchData; }; export fu...
app/containers/NotFoundPage/index.js
elainewlin/Executive
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
ajax/libs/forerunnerdb/1.3.657/fdb-legacy.js
Piicksarn/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...
test/GlobalHotKeys/UsingCustomKeyCodes.spec.js
Chrisui/react-hotkeys
import React from 'react'; import {mount} from 'enzyme'; import {expect} from 'chai'; import sinon from 'sinon'; import simulant from 'simulant'; import { configure, GlobalHotKeys } from '../../src/'; describe('GlobalHotKeys: Using custom key codes:', function () { beforeEach(function () { this.reactDiv = docum...
src/components/Projects.js
jenca-cloud/jenca-gui
import React from 'react' import ProjectItem from "./ProjectItem" export default function Projects(props) { return ( <div> <div className="demo-grid-ruler mdl-grid"> { props.data.map(function(item){ return ( <div key={item.id} style={{textAlign:'center'}}> ...
src/js/components/containerImages/ContainerImagesWizard.js
knowncitizen/tripleo-ui
/** * Copyright 2018 Red Hat 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 applicable law or agreed to...
tests/react_children/component.js
MichaelDeBoey/flow
// @flow import React from 'react'; import type {Node} from 'react'; class MyComponent extends React.Component<{children: Node}, void> { render(): Node { // OK: Can pass a node down like so. return <MyComponent>{this.props.children}</MyComponent>; } } class MyComponentOptional extends React.Component<{ch...
examples/redirect-using-index/app.js
ArmendGashi/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var App = React.createClass({ render() { return ( <div> {this.props.children} </div> ); } }); var Index = React.createClass({ render () { return ( <div> <h1>You should not se...
ajax/libs/react/16.0.0-alpha.5/react.js
BenjaminVanRyseghem/cdnjs
/** * React v16.0.0-alpha.5 */ (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")...
app/shared/form-fields/ReduxFormField.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; import Checkbox from './Checkbox'; import FormControl from './FormControl'; function ReduxFormField({ controlProps = {}, help, info, input, label, meta, type, }) { const showError = meta.error && meta.touched; const props = { controlProps: Objec...
ajax/libs/6to5/1.11.2/browser.js
KOLANICH/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
app/components/PropertyMap/GoogleApiComponent.js
koofka/singleproperty_redux
import React from 'react'; import cache from 'utils/ScriptCache'; import GoogleApi from 'utils/GoogleApi'; const GoogleApiComponent = (options) => (WrappedComponent) => { const apiKey = options.apiKey; const libraries = options.libraries || ['places']; class Wrapper extends React.Component { constructor(pro...
lib/widgets/EnumEditor/views/EnumMetaArrayField.js
ExtPoint/yii2-gii
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {Field, formValueSelector, change} from 'redux-form'; import _get from 'lodash/get'; import {html} from 'components'; import './EnumMetaArrayField.less'; const bem = html.bem('EnumMetaArrayField'); class EnumMe...
ext/lib/site/topic-layout/topic-article-propuesta/comments/list/comment/component.js
DemocraciaEnRed/vicentelopez
import React, { Component } from 'react' import { Link } from 'react-router' import t from 't-component' import config from 'lib/config' import userConnector from 'lib/site/connectors/user' import CommentReplies from './replies/component' import CommentHeader from './header/component' import CommentFooter from './foote...
src/components/Routes/Routes.js
petorious/dmprov-app
import React from 'react'; import Loadable from 'react-loadable'; import LoadingComponent from '../../components/LoadingComponent/LoadingComponent'; import { RestrictedRoute } from '../../containers/RestrictedRoute'; import { Route, Switch } from 'react-router-dom'; function MyLoadable(opts, preloadComponent...
src/scenes/home/challenge/challenge.js
tskuse/operationcode_frontend
import React, { Component } from 'react'; import axios from 'axios'; import Section from 'shared/components/section/section'; import namesFile from 'operationcode_challenge/names.txt'; import ForkButton from '../../../images/GitHubForkButton.png'; import ProposeButton from '../../../images/GitHubProposeButton.png'; imp...
assets/jqwidgets/demos/react/app/menu/contextmenu/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxMenu from '../../../jqwidgets-react/react_jqxmenu.js'; class App extends React.Component { componentDidMount() { document.getElementById('container').addEventListener('mousedown', (event) => { let rightClick = this.isRightC...
lib/index.js
Workable/backbone.react-bridge
'use strict'; exports.__esModule = true; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writabl...
ajax/libs/video.js/5.0.0/video.js
dannyxx001/cdnjs
/** * @license * Video.js 5.0.0 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Versi...
examples/confirming-navigation/app.js
meraki/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'react-router' const App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard" activeClassName="active">Dashboard</Link></li> <li><Link to="/...
node_modules/rebass/test/Close.spec.js
HasanSa/hackathon
import React from 'react' import TestUtils from 'react-addons-test-utils' import expect from 'expect' import { Close, Base } from '../src' const renderer = TestUtils.createRenderer() describe('Close', () => { let tree beforeEach(() => { renderer.render(<Close />) tree = renderer.getRenderOutput() }) ...
client2/src/components/react-burger-menu/src/CrossIcon.js
ibulmer/Board
'use strict'; import React from 'react'; import Radium from 'radium'; let CrossIcon = Radium(React.createClass({ propTypes: { styles: React.PropTypes.object }, getCrossStyle(type) { return { position: 'absolute', width: 3, height: 14, top: 14, right: 18, cursor: 'po...
src/svg-icons/av/music-video.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
packages/material-ui-icons/src/HotTubTwoTone.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><circle cx="7" cy="6" r="2" /><path d="M17.42 7.21c.57.62.82 1.41.67 2.2l-.11.59h1.91l.06-.43c.21-1.36-.27-2.71-1.3-3.71l-.07-.07c-.57-.62-.82-1.41-.67-2.2L18 3h-1.89l-.06.43c-.2 1.36.27 2...
src/routes.js
laurazenc/react-marvel-comics
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import {App, Home, CharacterDetail, Favorites} from './containers/'; import {NotFound} from './components/'; export default ( <Route path="/" component={App}> <IndexRoute component={Home}/> <Route path="/details/:id" component={Cha...
src/templates/Project.js
lottebijlsma/lottebijlsma.github.io
// @flow import React from 'react'; import './project.css'; type TProps = { data: { contentfulProject: { title: string, headerImage: { file: { url: string, } }, team?: string[], client: string, liveLink: string, description: { childMark...
webpack.config.js
jinwolf/cern
var path = require('path'); module.exports = { entry: './public/javascripts/app.jsx', output: { path: path.join(__dirname, '/public/dist'), filename: 'main.js', publicPath: '/dist' }, module: { loaders: [{ test: /\.jsx?$/, exclude: /(node_modules)...
packages/material-ui-icons/src/AccountBox.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1H6v-1z" /> , 'AccountBox');
Nodejs/Product/Nodejs/ProjectTemplates/AddWebSiteAzureStarterExpressApp/jquery-1.10.2.js
hoanhtien/nodejstools
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
webapp-src/src/lib/Notification.js
babelouest/glewlwyd
import React, { Component } from 'react'; import messageDispatcher from './MessageDispatcher'; class Notification extends Component { constructor(props) { super(props); this.state = { message: [], counter: 0 } messageDispatcher.subscribe('Notification', (message) => { if (message....
ui/src/components/Menu.js
LastCallMedia/Mannequin
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import AnimateHeight from 'react-animate-height'; import PropTypes from 'prop-types'; import './Menu.css'; function Menu({ tree, settings }) { return ( <ul className={`MenuList ${settings.className}`}> {tree.map((child, i) =...
src/svg-icons/device/signal-cellular-1-bar.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/> </SvgIcon> ); DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar); Device...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
alihalabyah/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
example/src/app.js
cereigido/react-native-ez-layouts
import React, { Component } from 'react'; import { StackNavigator, TabNavigator } from 'react-navigation'; import { ButtonScreen, FlatListScreen, InputScreen, TextScreen } from './screens'; import { Splash } from '../../src'; const Navigator = StackNavigator({ Splash: { screen: Splash }, Home: { screen: ...
ajax/libs/yasgui/0.0.9/yasgui.bundled.min.js
athanclark/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
spec/javascripts/jsx/account_course_user_search/CoursesListSpec.js
venturehive/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...
ajax/libs/rxjs/2.3.16/rx.lite.js
gasolin/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...
public/js/react.js
vvzone/komar
/** * React v0.10.0 */ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){var define,module,exports;return (fu...
public/app/components/ui-project-tab/data-image.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; const DataImage = ({ image, ...props }) => ( <img {...props} src={(image && image.content) ? `data:;base64,${image.content}` : null} /> ); DataImage.propTypes = { image: React.PropTypes.object, }; export default DataImage;
src/UserList.js
MarcoPires/unit-testing-react-enzyme
import React from 'react'; import User from './User'; const UserList = React.createClass({ getInitialState() { return { filter: '' }; }, shouldComponentUpdate(nextProps, nextState) { return nextState.filter !== this.state.filter; }, render() { var users = this.props.users; var filte...