path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/templates/contact-page.js
wind-swell/windswellpottery
// Form submission handled by netlify // https://www.netlify.com/docs/form-handling/ // TODO make it work better // https://www.netlify.com/blog/2017/07/20/how-to-integrate-netlifys-form-handling-in-a-react-app/ // https://github.com/imorente/gatsby-netlify-form-example/blob/master/src/pages/contact.js import React f...
client/node_modules/uu5g03/dist-node/bricks/date-time.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, Tools} from '../common/common.js'; import Environment from '../environment/environment.js'; import $ from 'jquery'; import './date-time.less'; export const DateTime = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin ...
docs/src/components/MarkdownDocs.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Button from 'material-ui/Button'; import MarkdownElement from 'docs/src/components/MarkdownElement'; import Demo from 'docs/src/components/Demo'; const styles = { root: { marginBottom:...
desktop-application/node_modules/babel-preset-react-hmre/test/Test.js
santosh-surya/pcb-cnc-machine
import React from 'react' export default class Test extends React.Component { render() { return ( <div>Winning?</div> ) } }
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
gabelevi/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps = {}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaultProps = {}; ...
docs/src/components/nav.js
mcanthony/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' function urlize(uri) { return BASE_URL + uri } export default React.createClass({ render() { const logo = this.props.includeLogo ? <a href={BASE_URL} className="brand-logo">NuclearJS</a> : null const homeLink = this.props.includeL...
src/utils/LinkContainer.js
quran/audio.quran.com
import React from 'react'; function isLeftClickEvent(event) { return event.button === 0; } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey); } function createLocationDescriptor(to, query, hash, state) { if (query || hash || state) { return { path...
ajax/libs/flocks.js/0.15.0/flocks.min.js
RizkyAdiSaputra/cdnjs
if("undefined"===typeof h)var h=require("react"); (function(){function p(){return!0}function q(){return!0}function b(a,b){if("string"===typeof a)if(~"warn debug error log info exception assert".split(" ").indexOf(a,0))console[a]("Flocks2 ["+a+"] "+b.toString());else console.log("Flocks2 [Unknown level] "+b.toString());...
packages/wix-style-react/src/Swatches/test/Swatches.visual.js
wix/wix-style-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import Swatches from '../Swatches'; import Box from '../../Box'; const commonProps = { colors: [ '#000', '#fff', 'red', 'cyan', 'rgb(200, 100, 0)', 'turquoise', 'beige', ], }; const tests = [ { describe: 'sa...
web/src/js/app.js
sethp-jive/mitmproxy
var React = require("react"); var ReactRouter = require("react-router"); var $ = require("jquery"); var Connection = require("./connection"); var proxyapp = require("./components/proxyapp.js"); var EventLogActions = require("./actions.js").EventLogActions; $(function () { window.ws = new Connection("/updates"); ...
react/features/feedback/components/FeedbackDialog.web.js
gpolitis/jitsi-meet
// @flow import { FieldTextAreaStateless } from '@atlaskit/field-text-area'; import StarIcon from '@atlaskit/icon/glyph/star'; import StarFilledIcon from '@atlaskit/icon/glyph/star-filled'; import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { createFeedbackOpenEvent, sendA...
ajax/libs/react-redux-form/1.0.0-beta.6/ReactReduxForm.min.js
Piicksarn/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","redux","react-dom"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),require("redux"),require("react-dom")...
packages/mui-codemod/src/v5.0.0/jss-to-styled.test/eighth.expected.js
oliviertassinari/material-ui
import React from 'react'; import { styled } from '@mui/material/styles'; import Typography from '@material-ui/core/Typography'; import MuiLink from '@material-ui/core/Link'; import Container from 'modules/components/Container'; import AppAppBar from 'modules/components/AppAppBar'; import OrderBody from 'modules/compon...
docs-ui/components/issueResolution.stories.js
beeftornado/sentry
import React from 'react'; import {withInfo} from '@storybook/addon-info'; import ResolutionBox from 'app/components/resolutionBox'; import MutedBox from 'app/components/mutedBox'; const actor = { email: 'uhoh@example.com', name: 'Uhoh', }; const RESOLVED_IN_COMMIT = { actor, inCommit: { id: 'deadbeefdead...
app/javascript/mastodon/components/hashtag.js
maa123/mastodon
// @ts-check import React from 'react'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from './permalink'; import ShortNumber from 'mastodon/co...
packages/react-instantsearch-dom/src/components/__tests__/CurrentRefinements.js
algolia/react-instantsearch
import React from 'react'; import Enzyme, { shallow } from 'enzyme'; import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; import Connected, { CurrentRefinements } from '../CurrentRefinements'; Enzyme.configure({ adapter: new Adapter() }); describe('CurrentRefinements', () => { const defaultProps = { items:...
node_modules/react-bootstrap/es/NavDropdown.js
nikhil-ahuja/Express-React
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/TabPane.js
asiniy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const TabPane = React.createClass({ propTypes: { active: React.PropTypes.bool, animation: React.PropTypes.bool, onAnimateOutEnd: React.PropTypes.func, disabled: ...
internals/templates/app.js
stephme/react-specly
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
test/NavBrandSpec.js
Sipree/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import NavbarBrand from '../src/NavbarBrand'; describe('NavbarBrand', () => { it('Should create NavbarBrand SPAN element', () => { let instance = ReactTestUtils.renderIntoDocument( <NavbarB...
Examples/UIExplorer/NetInfoExample.js
YotrolZ/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/svg-icons/notification/airline-seat-flat.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatFlat = (props) => ( <SvgIcon {...props}> <path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1...
website/modules/components/MarkdownViewer.js
asaf/react-router
/*eslint react/no-danger:0 */ import React from 'react' import PropTypes from 'prop-types' import 'prismjs/themes/prism-tomorrow.css' const MarkdownViewer = ({ html, id }) => ( <markdown dangerouslySetInnerHTML={{ __html: html }} /> ) MarkdownViewer.propTypes = { html: PropTypes.string.isRequired ...
ajax/libs/forerunnerdb/1.3.891/fdb-core+persist.js
kiwi89/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...
previewer/src/components/help.js
vstirbu/vscode-mermaid-preview
import React from 'react'; const Help = ({ content }) => ( <div style={{ position: 'fixed', top: 0, left: 0, bottom: 0, right: 0, display: 'block' }} > <div style={{ width: '50%', height: '50%', paddingTop: '25%', margin: 'auto' ...
definitions/npm/react-jss_v6.1.x/test_react-jss_v6.1.x.js
davidohayon669/flow-typed
// @flow import React from 'react'; import injectSheet, { create } from 'react-jss'; import type { Classes, Sheet } from 'react-jss'; const styles = { root: { backgroundColor: 'red', }, [`@media (min-width: ${10}px)`]: { root: { width: 200 } } }; type Styles = typeof styles; type Props = {...
packages/material-ui-icons/src/Brightness3.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z" /></g> , 'Brightness3');
app/src/scripts/widgets/Header/Header.js
vyorkin/assignment
import React from 'react'; import { Link } from 'react-router'; import './Header.css'; export default class Header { render() { return ( <header className='header'> <div className='container header__content'> <Link to='index' className='header__title'> PROTECT<span className=...
src/modules/dashboard/components/LineBarAreaComposedChart/index.js
burakince/d3js-react-examples
import React, { Component } from 'react'; import { ResponsiveContainer, ComposedChart, Line, Area, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import datas from './datas'; class LineBarAreaComposedChartComponent extends Component { render() { return ( <ResponsiveContainer minWidth...
src/DynamicField.react.js
cpojer/hextrapolate
/** * Copyright 2003-present Greg Hurrell. All rights reserved. * Licensed under the terms of the MIT license. * * @flow */ 'use strict'; import React from 'react'; import { default as Field, ValuePropType, } from './Field.react'; export default class DynamicField extends React.Component { static propType...
app/javascript/mastodon/features/compose/components/navigation_bar.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
src/Home.js
ZacharyCalvert/ZachCalvert
import React, { Component } from 'react'; import AboutMe from './AboutMe'; class Home extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-sm-8 col-xs-12"> <p> I'm a full-time software engineer living in Fort Worth, TX...
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
TrungSpy/React-Native-SampleProject
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Button, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; import Backend from '../../lib/Backend'; export default class ChatScreen extends C...
src/pages/404.js
singuerinc/blog
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
examples/with-unstated/pages/about.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import { Subscribe } from 'unstated' import { ClockContainer, CounterContainer } from '../containers' import { Clock, Counter } from '../components' class About extends React.Component { componentWillUnmount () { clearInterval(this.timer) } render () { ...
src/svg-icons/social/location-city.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
browser/modules/layerTree/controls/SelectControl.js
mapcentia/vidi
/* * @author Alexander Shumilov * @copyright 2013-2019 MapCentia ApS * @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3 */ import React from 'react'; import PropTypes from 'prop-types'; /** * Select control component */ class SelectControl extends React.Compone...
src/svg-icons/action/extension.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionExtension = (props) => ( <SvgIcon {...props}> <path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V...
client/www/lib/auth0-lock/src/i18n.js
pymelibre/age-of-companies
import React from 'react'; import Immutable, { Map } from 'immutable'; import { format } from 'util'; import sync from './sync'; import * as l from './core/index'; import { dataFns } from './utils/data_utils'; const { get, set } = dataFns(["i18n"]); import enDictionary from './i18n/en'; import { load, preload } from '....
day23_lifecycle/src/components/TodoAddForm.js
eyesofkids/ironman2017
//@flow import React from 'react' //匯入Props靜態類型的定義 import type { TodoAddFormProps } from '../definitions/TodoTypeDefinition.js' const TodoAddForm = ({ placeholderText, onItemAdd }: TodoAddFormProps) => { //給Flow檢查用的,這個參照值一開始都是null,渲染前是不確定值,所以用any let titleField: any = null return ( <div> <input ...
src/helpers/connectData.js
nase-skoly/web-app
import React, { Component } from 'react'; import hoistStatics from 'hoist-non-react-statics'; /* Note: When this decorator is used, it MUST be the first (outermost) decorator. Otherwise, we cannot find and call the fetchData and fetchDataDeffered methods. */ export default function connectData(fetchData, fe...
src/index.js
dpastoor/web-historian-ui
import React from 'react'; import { render } from 'react-dom' import App from './App.jsx' render(<App name="web-historian" />, document.getElementById('root'));
assets/js/vendor/jquery-1.9.1.min.js
delouraoui/delouraoui.github.io
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
new-lamassu-admin/src/components/Uptime.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core' import Chip from '@material-ui/core/Chip' import * as R from 'ramda' import React from 'react' import { secondaryColorLighter, secondaryColorDarker, offErrorColor, errorColor, offColor, inputFontWeight, smallestFontSize, inputFontFamily, spacer } from 's...
node_modules/react-native-admob/RNPublisherBanner.js
odapplications/WebView-with-Lower-Tab-Menu
import React from 'react'; import { NativeModules, requireNativeComponent, View, NativeEventEmitter, } from 'react-native'; const RNBanner = requireNativeComponent('RNAdMobDFP', PublisherBanner); export default class PublisherBanner extends React.Component { constructor() { super(); this.onSizeChan...
react-client/src/StreetViewComponent.js
nico1510/travel-streetview
import React from 'react'; import {default as ScriptjsLoader} from "react-google-maps/lib/async/ScriptjsLoader"; import {GoogleMap} from "react-google-maps"; import {default as config} from './ClientConfig'; function StreetViewComponent(props) { let streetViewContent; if (!props.selectedPosition) { s...
lib/components/report/__tests__/reroute.js
conveyal/analysis-ui
import enzyme from 'enzyme' import React from 'react' import Reroute from '../reroute' import {mockFeed, mockModification, mockSegment} from '../../../utils/mock-data' mockModification.segments.push(mockSegment) describe('Report > Reroute', () => { it('renders correctly', () => { const props = { feedsByI...
src/react/JSONTree/JSONArrow.js
rrrene/redux-devtools
import React from 'react'; const styles = { base: { display: 'inline-block', marginLeft: 0, marginTop: 8, marginRight: 5, 'float': 'left', transition: '150ms', WebkitTransition: '150ms', MozTransition: '150ms', borderLeft: '5px solid transparent', borderRight: '5px solid trans...
src/svg-icons/image/brightness-6.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness6 = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>...
sites/all/modules/contrib/ctools/js/dependent.js
bazzic/offspringy
/** * @file * Provides dependent visibility for form items in CTools' ajax forms. * * To your $form item definition add: * - '#process' => array('ctools_process_dependency'), * - '#dependency' => array('id-of-form-item' => array(list, of, values, that, * make, this, item, show), * * Special considerations: ...
src/Calendar.js
parkjoon/trivia-aficionados
import React from 'react'; import Banner from './Banner'; import Footer from './Footer'; import Header from './Header'; export default class Calendar extends React.Component { render() { return ( <div> <Header view='calendar' /> <div role="main" className="main...
lib/notebook-editor.js
jupyter/atom-notebook
'use babel'; import path from 'path'; import portfinder from 'portfinder'; import fs from 'fs-plus'; import React from 'react'; import uuid from 'uuid'; import Immutable from 'immutable'; import {CompositeDisposable} from 'atom'; import {File} from 'pathwatcher'; import {Emitter} from 'event-kit'; import { listRunni...
packages/lore-hook-dialogs-bootstrap/src/blueprints/destroy/Overlay/Overlay.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { result as _result } from 'lore-utils'; import { SchemaForm } from 'lore-react-forms'; import { Overlay, Request, RequestError, SuccessMessage } from 'lore-react-forms-bootst...
packages/material-ui-icons/lib/SimCardAlertOutlined.js
mbrookes/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
ajax/libs/forerunnerdb/1.3.749/fdb-core+views.min.js
kennynaoh/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...
ajax/libs/yui/3.7.0/event-focus/event-focus-coverage.js
AlexisArce/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/specs/collections/Breadcrumb/Breadcrumb-test.js
ben174/Semantic-UI-React
import React from 'react' import Breadcrumb from 'src/collections/Breadcrumb/Breadcrumb' import * as common from 'test/specs/commonTests' import { sandbox } from 'test/utils' describe('Breadcrumb', () => { common.isConformant(Breadcrumb) common.hasUIClassName(Breadcrumb) common.rendersChildren(Breadcrumb) it(...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
alessandrostone/actor-platform
import _ from 'lodash'; import React from 'react'; import ActorClient from 'utils/ActorClient'; import { KeyCodes } from 'constants/ActorAppConstants'; import InviteUserActions from 'actions/InviteUserActions'; import ContactStore from 'stores/ContactStore'; import InviteUserStore from 'stores/InviteUserStore'; im...
client/src/index.js
noinc/SimpleStorefront
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, combineReducers, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import { reducer as form } from 'redux-form'; import { Route, Switch } from 'react-router-dom'; import createBrowse...
modules/mixins/StateContext.js
winkler1/react-router
var React = require('react'); var assign = require('react/lib/Object.assign'); var Path = require('../utils/Path'); function routeIsActive(activeRoutes, routeName) { return activeRoutes.some(function (route) { return route.name === routeName; }); } function paramsAreActive(activeParams, params) { for (var p...
node_modules/_debug@2.6.7@debug/src/browser.js
tammyDing/nodejs-express-mongodb-movie
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chrom...
packages/material-ui-icons/src/NavigateNext.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment> , 'NavigateNext');
functions/node_modules/firebase-admin/lib/database/database.js
shreyanshthanvi/testrepo
/*! firebase-admin v5.2.1 */ /*! typedarray.js Copyright (c) 2010, Linden Research, 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 limi...
src/renderers/dom/stack/client/__tests__/ReactMountDestruction-test.js
eoin/react
/** * 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. * * @emails react...
src/components/Link/Link.js
ben-miller/adddr.io
/** * adddr (https://www.adddr.io/) * * 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-types'; import history ...
ajax/libs/x-editable/1.5.1/bootstrap3-editable/js/bootstrap-editable.js
andrepiske/cdnjs
/*! X-editable - v1.5.1 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to form tag!...
Libraries/Components/TextInput/TextInput.js
tadeuzagallo/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
dcc-submission-ui/src/Calendar/Calendar.js
icgc-dcc/dcc-submission
import React from 'react'; function Calendar() { return ( <div className="container"> <iframe src="https://www.google.com/calendar/embed?src=icgcportal%40gmail.com&ctz=America/Toronto" style={{border: 0}} width="100%" height={300} frameBorder={0} scrolling="no" /> </div> ); } export default Calendar...
webpack-production.config.js
agnivade/quictionary
const webpack = require('webpack'); const path = require('path'); const buildPath = path.resolve(__dirname, 'build'); const nodeModulesPath = path.resolve(__dirname, 'node_modules'); const TransferWebpackPlugin = require('transfer-webpack-plugin'); const config = { entry: [path.join(__dirname, '/src/app/app.js')], ...
ajax/libs/jquery.fancytree/2.7.0/jquery.fancytree-all.js
Timbioz/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.7.0 * @dat...
ajax/libs/6to5/2.9.1/browser.js
schoren/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...
ajax/libs/ag-grid/4.1.4/ag-grid.js
sreym/cdnjs
// ag-grid v4.1.4 (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["agGrid"] = factory(); e...
src/components/App.js
daitobedai/NoCode
import React, {PropTypes} from "react"; import { browserHistory } from 'react-router'; import {Menu, Icon, Layout} from 'antd'; import "whatwg-fetch"; const {Content} = Layout; class App extends React.Component { handleClick(e) { switch (e.key){ case 'home': browserHistory.push('/'); break;...
node_modules/react-bootstrap/lib/BootstrapMixin.js
thealjey/evolution-test
var React = require('react'); var constants = require('./constants'); var BootstrapMixin = { propTypes: { bsClass: React.PropTypes.oneOf(Object.keys(constants.CLASSES)), bsStyle: React.PropTypes.oneOf(Object.keys(constants.STYLES)), bsSize: React.PropTypes.oneOf(Object.keys(constants.SIZES)) }, getB...
src/components/MediaList/Row.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import MediaRowBase from './MediaRowBase'; import MediaDuration from './MediaDuration'; import MediaLoadingIndicator from './MediaLoadingIndicator'; import MediaSourceIcon from './MediaSourceIcon'; import MediaThumbnail from './MediaT...
6.0.5/examples/wizard/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(272),e.exports=n(271)},function(e,t,n){var r=n(5),o=n(36),i=n(20),a=n(21),u=n(37),s="prototype",...
src/components/Footer/Footer.js
maximhoffman/beginnertuts
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 withStyles from 'isomorp...
docs/app/Examples/elements/Rail/Types/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RailTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Rail' description='A rail ...
web/src/js/__tests__/components/common/DropdownSpec.js
zlorb/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import Dropdown, { Divider } from '../../../components/common/Dropdown' describe('Dropdown Component', () => { let dropup = renderer.create(<Dropdown dropup btnClass="foo"> <a href="#">1</a> <Divider/> <a href=...
ajax/libs/highmaps/1.1.2/highcharts.src.js
coupang/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.1.3 (2015-02-27) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear...
components/default/aside.js
JobLeonard/idyll-p5
const React = require('react'); const IdyllComponent = require('idyll-component'); class Aside extends IdyllComponent { render() { return ( <div className={'aside-container'}> <div className={'aside'}> {this.props.children} </div> </div> ); } } module.exports = Aside;...
src/pages/index.js
wdavidw/node-csv-docs
import React from 'react' import { Link } from 'gatsby' import { MIN_TABLET_MEDIA_QUERY, TABLET_MEDIA_QUERY, } from 'typography-breakpoint-constants' // Local import Layout from '../layout' import convert_icon from '../images/convert.svg' // Syntax import { PrismLight as SyntaxHighlighter } from 'react-syntax-high...
client/pages/examples/threejs/hello-threejs/index.js
fdesjardins/webgl
import React from 'react' import * as THREE from 'three' import Example from '-/components/example' import notes from './readme.md' const init = ({ canvas, container }) => { let renderer = new THREE.WebGLRenderer({ canvas }) let scene = new THREE.Scene() const camera = new THREE.PerspectiveCamera( 75, c...
packages/icons/src/md/social/NotificationsOff.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdNotificationsOff(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M39 37.39L14.68 12.3 9.55 7.01 7 9.55l5.6 5.6.01.01C11.56 17.14 11 19.48 11 22v10l-4 4v2h27.46l4 4L41 39.45l-2-2.06zM23 44c2.21 0 4-1.79 4-4...
ajax/libs/intl-tel-input/7.0.2/js/intlTelInput.js
pombredanne/cdnjs
/* International Telephone Input v7.0.2 https://github.com/Bluefieldscom/intl-tel-input.git */ // wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery" ], function($) { factory($...
modules/__tests__/Redirect-test.js
ksivam/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Redirect from '../Redirect' import Router from '../Router' import Route from '../Route' describe('A <Redirect>', function () { let node beforeEach(function () { node =...
packages/material-ui-icons/legacy/PersonPinCircleTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><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 9zm9 2.5v.12c-.73.84-1.8 1.38-3 1.38s-2.27-.54-3-1.38v-.12c0-1 2-1.5 3-1.5s3 .5 3 1.5zm-1.5-4c0 .83-.6...
examples/node_modules/react-native/node_modules/react-tools/src/core/__tests__/ReactCompositeComponentNestedState-test.js
allomov/react-native-swiper
/** * Copyright 2013-2014, 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. * * @emails react-co...
complete-example/client/src/components/presentation/layout-templates/teaser.js
jpaulptr/ecom-react
import React from 'react' import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const Teaser = ({ description, imageUrl, id, caption }) => ( <div> <div> <img alt={description} src={imageUrl} /> </div> <div> <p>{description}</p> <Lin...
common/static/js/vendor/pdfjs/viewer.js
inares/edx-platform
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */ /* Copyright 2012 Mozilla Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
src/frontend/src/components/GMLeftMenu.js
blengerich/GenAMap
import React from 'react' import LeftNav from 'material-ui/Drawer' import GMUser from './GMUser' import GMProjectMenuContainer from './GMProjectMenuContainer' const GMLeftMenu = React.createClass({ render: function () { return ( <LeftNav open={this.props.open} width={this.props.width}> <GMUser use...
fields/components/NestedFormField.js
alobodig/keystone
import React from 'react'; import { StyleSheet } from 'aphrodite/no-important'; import { FormField, FormLabel } from '../../admin/client/App/elemental'; import theme from '../../admin/client/theme'; function NestedFormField ({ children, className, label, ...props }) { return ( <FormField {...props}> <FormLabel a...
src/index.js
robinpokorny/transform-props-with
/** @module transform-props-with */ import React from 'react' import castArray from 'lodash/castArray' import isPlainObject from 'lodash/isPlainObject' import transformRef from './transform-ref' /** * A plain object. Should not be mutated. * @typedef {object} Props * @global */ /** * Middleware function for ch...
client/components/RestaurantHistory.js
carlbernardo/gut
import React from 'react'; import { Button } from 'react-bootstrap'; class RestaurantHistory extends React.Component { render(){ const { restaurantName, link, date, city } = this.props; return ( <div> <li className='list-group-item'> <a href={link} target='_blank'><h3>{restaurantName}...
test/ClearfixSpec.js
apkiernan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import Clearfix from '../src/Clearfix'; describe('<Clearfix>', () => { it('uses "div" by default', () => { let instance = ReactTestUtils.renderIntoDocument( <Clearfix /> ); assert.eq...
components/Filter.js
iostalk/redux-todo
import React, { Component, PropTypes } from 'react'; export default class TodoItem extends Component{ renderFilter (filter, name) { if (this.props.filter === filter) { return <span>{name}</span>; } return ( <a href="#" onClick={(ev)=>{ ev.preventDefault(); this.props.onFilterC...
src/components/Strength/Strength.js
febobo/react-redux-start
import React from 'react' import {i18n} from '../../util/i18n' import classes from './Strength.scss' import ourIco from '../../static/images/ourIco.png' import ourImg from '../../static/images/ourImg.png' type Props = { }; export class Strength extends React.Component { props: Props; render () { return ( ...
src/svg-icons/action/alarm-on.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
src/components/FuelSavings/FuelSavingsTextInput.spec.js
rbdeyoung/react-slingshot-test
import React from 'react'; import { shallow } from 'enzyme'; import FuelSavingsTextInput from './FuelSavingsTextInput'; describe('<FuelSavingsTextInput />', () => { it('should be an input element', () => { const props = { name: 'testName', onChange: jest.fn(), placeholder: 'Type Here', va...
src/pages/NotFound.js
cuebrick/TypeWriter
import React from 'react'; import { Link } from 'react-router-dom'; class NotFound extends React.Component{ render(){ return( <div className="container"> <div className="error-msg-box"> <h3>요청하신 페이지를 찾을 수 없습니다.</h3> <p className="error-text"> 이 주소는 없어졌거나 잘못된 주소인것 같습니다.<br /> 주소를 다시 확인해 ...