path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/imports/ui/auction/AuctionNotStarted.js
raiden-network/raiden-token
import React, { Component } from 'react'; export default class AuctionNotStarted extends Component { constructor(props) { super(props); this.state = {}; } componentWillMount() { this.setValues(this.props); } componentWillReceiveProps(newProps) { this.setValues(newProps); } setValues(pr...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
scyankai/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...
ajax/libs/boardgame-io/0.39.10/cjs/react-native.js
cdnjs/cdnjs
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } var reducer = require('./reducer-ee2dd9d3.js'); require('redux'); require('immer'); require('./Debug-92dd9e40.js'); require('...
src/containers/Root.js
RayBenefield/halo-forge
import React from 'react'; import { Provider } from 'react-redux'; import configureStore from 'src/configureStore'; import Layout from 'src/containers/Layout'; import { setupFirebase } from 'src/epics/firebase'; const store = configureStore(); setupFirebase(store); export default () => ( <Provider store={store}> ...
vendor/jquery/jquery.js
dennisgon/test
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
lib/shared/screens/admin/shared/components/page-builder-menu/breadcrumbs/index.js
relax/relax
import Component from 'components/component'; import React from 'react'; import {selectElement} from 'actions/page-builder'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import Breadcrumbs from './breadcrumbs'; @connect( (state) => ({ context: state.pageBuilder.selected && stat...
src/svg-icons/device/gps-off.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5...
src/components/icons/CalendarAltRegular.js
lmammino/loige.co
import React from 'react' const CalendarAltRegular = props => ( <svg aria-hidden="true" data-prefix="far" data-icon="calendar-alt" className="svg-inline--fa fa-calendar-alt fa-w-14" viewBox="0 0 448 512" width="1em" height="1em" {...props} > <path fill="currentColor" ...
paraviewweb/src/React/Widgets/TextInputWidget/index.js
CordyChen/VisMechan
import React from 'react'; import style from 'PVWStyle/ReactWidgets/TextInputWidget.mcss'; export default React.createClass({ displayName: 'TextInputWidget', propTypes: { className: React.PropTypes.string, name: React.PropTypes.string, onChange: React.PropTypes.func, value: React.PropTypes.string...
packages/material-ui-icons/src/AccessibilitySharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z" /></g></React.Fragment> , 'AccessibilitySharp');
packages/cf-component-table/test/TableHeadCell.js
jroyal/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { TableHeadCell } from '../../cf-component-table/src/index'; test('should render', () => { const component = renderer.create( <TableHeadCell>TableHeadCell</TableHeadCell> ); expect(component.toJSON()).toMatchSnapshot(); }); test('...
client/src/components/settings/Email.js
otavioarc/freeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link } from 'gatsby'; import { HelpBlock, Alert, FormGroup, ControlLabel, FormControl, Button } from '@freecodecamp/react-bootstrap'; impo...
src/js/components/router.js
kukua/dashboard
import React from 'react' import { Router, useRouterHistory, Route, IndexRedirect } from 'react-router' import createBrowserHistory from 'history/lib/createBrowserHistory' import { current as user } from '../models/User' import notify from '../helpers/notify' import Layout from './layout/master' import NoMatch from '....
webpack/move_to_foreman/components/common/table/components/TableSelectionCell.js
jlsherrill/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; const TableSelectionCell = ({ id, before, after, label, checked, onChange, ...props }) => ( <Table.SelectionCell> {before} <Table.Checkbox id={i...
js/components/common/AuthModal.js
a-omsk/Vegreact
import React from 'react'; import Modal from 'react-modal'; import AuthForm from '../AuthForm'; import UserService from '../../services/UserService'; const modalStyle = { overlay: { zIndex: 10, }, content: { display: 'flex', flexDirection: 'column', alignItems: 'center', ...
src/Main/LowHealthHealing.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import ReactTooltip from 'react-tooltip'; import Slider from 'rc-slider'; import 'rc-slider/assets/index.css'; import SPECS from 'common/SPECS'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; import { formatNumber, formatPercent...
src/components/Login.js
coolshare/ReactReduxStarterKit
import React from 'react' import { Link } from 'react-router' /** * LoginForm **/ export default class Login extends React.Component{ /** * render * @return {ReactElement} markup */ render(){ return ( <div className="form_container" style={{margin:'20px'}}> <div className="header_logo"></div> <for...
examples/auth-with-shared-root/components/PageOne.js
aaron-goshine/react-router
import React from 'react' const PageOne = React.createClass({ render() { return <h2>Page One!</h2> } }) module.exports = PageOne
src/components/AboutPage.spec.js
mikejablonski/newo-brew-web
import React from 'react'; import {shallow} from 'enzyme'; import AboutPage from './AboutPage'; describe('<AboutPage />', () => { it('should have a header called \'About\'', () => { const wrapper = shallow(<AboutPage />); const actual = wrapper.find('h2').text(); const expected = 'About'; expect(act...
js/jquery/jquery-1.11.3.min.js
kurogetsusai/squirrel-tale
/*! jQuery v1.11.3 | (c) 2005, 2015 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/js/utils/decorators/mixin.js
working-minds/realizejs
import reactMixin from 'react-mixin'; export default function mixin (...mixins) { return function(cls) { return mixins.reduce((c, m) => reactMixin.onClass(c, m), cls); } }
app/javascript/flavours/glitch/components/icon_button.js
glitch-soc/mastodon
import React from 'react'; import Motion from 'flavours/glitch/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'flavours/glitch/components/icon'; import AnimatedNumber from 'flavours/glitch/components/animated...
drupal/sites/all/themes/warply/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
MasterJuan/warply
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
ajax/libs/inferno-mobx/1.0.0-beta30/inferno-mobx.min.js
joeyparrish/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("./inferno-component"),require("./inferno-create-class"),require("./inferno-create-element")):"function"==typeof define&&define.amd?define(["inferno-component","inferno-create-class","inferno-create-element"],t):(e.Inferno=e.In...
demos/flux/src/handlers/PasteForm.js
rockfordweb/more-react
'use strict'; var $ = require( 'jquery' ); var React = require( 'react' ); var Store = require( '../store.js' ); Store.subscribe( function subToStoreOfPastesHere() { return console.log( Store.getState()); }); var Paste = React.createClass({ componentDidMount: function() { var id = this.props.params.id; ...
node_modules/reactify/node_modules/react-tools/src/browser/eventPlugins/ChangeEventPlugin.js
skyride99/Cardinal
/** * Copyright 2013-2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
src/destinations/Piping.js
RoyalIcing/gateau
import R from 'ramda' import React from 'react' import seeds, { Seed } from 'react-seeds' import rgba from 'react-sow/rgba' import * as Piping from 'royal-piping/lib/kits/ios' import * as Vanilla from './Vanilla' import * as Message from './Message' import { renderTreeUsing } from './render' const tone1 = rgba.whiteV...
ajax/libs/react-native-web/0.0.0-b2a3e86d/modules/useLocale/index.min.js
cdnjs/cdnjs
import React,{createContext,useContext}from"react";import{isLocaleRTL}from"./isLocaleRTL";var defaultLocale={direction:"ltr",locale:"en-US"},LocaleContext=createContext(defaultLocale);function getLocaleDirection(e){return isLocaleRTL(e)?"rtl":"ltr"}function LocaleProvider(e){var t=e.direction,o=e.locale,e=e.children;re...
src/components/recording/sidebar/BrushThicknessPicker.js
zebras-filming-videos/streamr-web
import React from 'react' import cx from 'classnames' import Mousetrap from '../../Mousetrap' import Brush from './Brush' export default ({ thicknesses, thicknessId, currentColor, onSelectThickness, onIncreaseThickness, onDecreaseThickness }) => { const thickness = thicknesses[thicknessId] return ( ...
app/components/Input/index.js
thecodingwhale/conduit-clone
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { isUndefined, isEmpty } from 'lodash'; import { FormGroup, Input as ReactstrapInput, FormFeedback } from 'reactstrap'; import TaggedInput from 'components/TaggedInput'; export default class Input extends React.P...
src/components/LoginForm.js
mkurutin/snowflake
/** * # LoginForm.js * * This class utilizes the ```tcomb-form-native``` library and just * sets up the options required for the 3 states of Login, namely * Login, Register or Reset Password * */ 'use strict' import React from 'react' import PropTypes from 'prop-types' import Constants from '../lib/constants' i...
examples/todo/js/app.js
michaelchum/relay
/** * This file provided by Facebook is 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, * FITNES...
tests/jest/components/tooltip.js
eleme/element-react
import React from 'react'; import { shallow, mount } from 'enzyme'; import { Button, Tooltip } from '../../../src'; import renderer from 'react-test-renderer'; test('Basic Usage', () => { const tooltip = renderer.create( <div className="box"> <div className="top"> <Tooltip className="item" effect="...
client/admin/settings/inputs/SelectSettingInput.js
iiet/iiet-chat
import { Box, Field, Flex, Select, } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../../contexts/TranslationContext'; import { ResetSettingButton } from '../ResetSettingButton'; export function SelectSettingInput({ _id, label, value, placeholder, readonly, auto...
docs/demos/react-hello-world/src/index.js
reTHINK-project/dev-hyperty
// modules import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; // CSS import './index.css'; import './App.css'; // React components import ReactObserver from './ReactObserver' // render React component ReactDOM.render( <ReactObserver />, document.getElementById('root') );
ajax/libs/victory/0.1.3/victory.min.js
dlueth/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Victory=e(require("react")):t.Victory=e(t.React)}(this,function(__WEBPACK_EXTERNAL_MODULE_3__){return function(t){function e(r){i...
index.android.js
SumeetR/TapTempo
/** * Tap Tempo React Native App * https://github.com/SumeetR/TapTempo */ import React, { AppRegistry, Component, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; class TapTempo extends Component { constructor(props) { super(props) this.state = { samples: [] }; } ...
front_end/front_end_app/src/client/components/exposerouter.react.js
Horizon-Framework/horizon
import Component from './component.react'; import React from 'react'; export default function exposeRouter(BaseComponent) { return class ExposeRouter extends Component { static contextTypes = { router: React.PropTypes.func.isRequired }; static displayName = `${BaseComponent.name}ExposeRouter`; ...
maodou/posts/client/components/admin/postsConfigure.js
ShannChiang/meteor-react-redux-base
import React from 'react'; import {Link} from 'react-router'; import Loading from 'client/components/common/loading'; export default (props) => { return ( <div className="container"> <div className="row"> <div className="col-sm-12"> <h1>文章设置</h1> <h4>文章分类</h4> { ...
ajax/libs/babel-core/5.1.0/browser-polyfill.js
tonytomov/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...
js/components/TodoItem.js
rodson/react-es6-flux-todolist
import React from 'react'; import TodoActions from '../TodoActions'; import classNames from 'classnames'; const KEY_ENTER = 13; class TodoItem extends React.Component { static propTypes = { todo: React.PropTypes.object, editing: React.PropTypes.bool, onEdit: React.PropTypes.func, onToggle: React.Pr...
ajax/libs/rxjs/2.2.28/rx.js
hanssens/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 }; v...
ajax/libs/quickblox/1.0.0/quickblox.min.js
RoryStolzenberg/cdnjs
!function(e,t,n){function r(n,i){if(!t[n]){if(!e[n]){var s="function"==typeof require&&require;if(!i&&s)return s(n,!0);if(o)return o(n,!0);throw new Error("Cannot find module '"+n+"'")}var a=t[n]={exports:{}};e[n][0].call(a.exports,function(t){var o=e[n][1][t];return r(o?o:t)},a,a.exports)}return t[n].exports}for(var o...
site/pages/APIPage.js
nagaozen/react-dnd
import React from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import SideBar from '../components/SideBar'; import StaticHTMLBlock from '../components/StaticHTMLBlock'; import { APIPages } from '../Constants'; export default class APIPage { render() { return ...
packages/components/src/QualityBar/QualityRatioBar.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import { getTheme } from '../theme'; import qualityBarTheme from './QualityRatioBar.scss'; import RatioBar from '../RatioBar'; const theme = getTheme(qualityBarTheme); const qualityBarLinePropTypes = { dataFeature: PropTypes.string, onClick: PropTypes.f...
ajax/libs/can.js/3.10.0-pre.2/can.min.js
extend1994/cdnjs
!function(e,t,n){var a=t.define,i=function(e){var n,a=e.split("."),i=t;for(n=0;n<a.length&&i;n++)i=i[a[n]];return i},r=function(e,n){var a,i,r,s=e.split("."),o=t;for(a=0;a<s.length-1;a++)(r=o[i=s[a]])||(r=o[i]={}),o=r;o[i=s[s.length-1]]=n},s=function(e){if(!e||!e.__esModule)return!1;var t={__esModule:!0,default:!0};for...
ajax/libs/rxjs/2.4.9/rx.lite.extras.js
itvsai/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'und...
src/routes/progressbydate/index.js
bigwaterconsulting/to_dash_live
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/components/SvgIcon/CheckBox.js
sk-iv/iva-app
import React from 'react'; import SvgIcon from './SvgIcon'; import classNames from 'classnames'; /** * @ignore - internal component. */ let CheckBox = props => ( <SvgIcon {...props} className={classNames('icon--size24', props.className)}> <path d="M19,21H5c-1.1,0-2-0.9-2-2V5c0-1.1,0.9-2,2-2h14c1.1,0,2,0.9,2,2v...
dont-need/component2.js
connameng/router-survey-project
import React, { Component } from 'react'; import './App.css'; class Survey extends Component { render() { return ( <div> <p className="App-intro"> SurveyComponent - This is where the survey questions will go. </p> </div> ); } } export default Survey;
sources/js/locationForm.js
dhartunian/streetlivesnyc
'use strict'; import React from 'react'; import { Location } from './models.js'; import '../scss/location.scss'; import '../scss/input_field.scss'; import '../scss/button.scss'; module.exports.LocationForm = React.createClass({ getInitialState: function() { return { enableSubmit: false ...
src/containers/ModelSelection.js
Croissong/sntModelViewer
import React from 'react'; import {connect} from 'react-redux'; import ModelDefSelection from 'components/ModelDefSelection'; import {selectModelDef} from 'redux/modules/modelDef'; import IndexedModelViewer from 'components/IndexedModelViewer'; import {selectModel} from 'redux/modules/indexedFields'; import {fetchIndex...
sites/all/libraries/wvega-timepicker/external/jquery-1.7.1.min.js
baiqj/ybzx
/*! * jQuery JavaScript Library v1.7.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ajax/libs/forerunnerdb/1.3.831/fdb-all.js
cdnjs/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/app/components/Footer/index.js
mahimaag/react-web-boilerplate
/** * Created by intelligrape on 5/6/17. */ import React, { Component } from 'react'; import styles from './style.scss'; class Footer extends Component { render() { return ( <div> <footer className="footer"> <div className="footer-content row"> ...
docs/src/app/components/pages/components/LinearProgress/Page.js
verdan/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 linearProgressReadmeText from './README'; import LinearProgressExampleSim...
examples/using-sqip/src/pages/index.js
fk/gatsby
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'gatsby' import Layout from '../components/layout.js' const IndexPage = ({ data }) => ( <Layout data={data}> <h1>Gatsby SQIP Example</h1> <blockquote> <p> SQIP - pronounced \skwɪb\ like the non-magical folk of...
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
aleszu/chartbuilder
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
client/src/pages/app/Logout.js
wujichao/wencheng
import React from 'react' import auth from '../../util/auth' const Logout = React.createClass({ componentDidMount() { auth.logout() }, render() { return <p>登出成功</p> } }); export default Logout
src/internal/EnhancedButton.spec.js
verdan/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import EnhancedButton from './EnhancedButton'; import getMuiTheme from '../styles/getMuiTheme'; describe('<EnhancedButton />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => ...
wwwroot/app/src/components/PantryPage/PantryItem.js
AlinCiocan/FoodPlanApp
import React, { Component } from 'react'; import PikadayWrapper from '../../lib-components/PikadayWrapper'; import InputGroup from '../base/form/InputGroup'; export default class PantryItem extends Component { constructor(props) { super(props); let expiration = this.props.item.expiration ? this.pr...
ajax/libs/backbone-react-component/0.6.0/backbone-react-component.js
sh4hin/cdnjs
// Backbone React Component // ======================== // // Backbone.React.Component v0.6.0 // // (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com> // Backbone.React.Component can be freely distributed under the MIT license. // // // `Backbone.React.Component` is a React.Component wrapper that serve...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Endpoints/index.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/components/projects/project/related-links.js
ebabel-eu/ebabel-home
import React from 'react'; export default class RelatedLinks { constructor(input = []) { this.input = input; } links() { let relatedLinks = null; let relatedLinksContainer = null; if (this.input) { relatedLinks = this.input.map((relatedLink, i) => { return ( <li key={i} ...
src/components/side-bar/aboutus-page-side-bar.js
nickhsine/twreporter-react
import { buildFbShareLink } from '../about-us/utils/build-fb-share-link' import { replaceGCSUrlOrigin } from '@twreporter/core/lib/utils/storage-url-processor' import { storageUrlPrefix } from '../about-us/utils/config' import DonationLink from '@twreporter/react-components/lib/donation-link-with-utm' import PropTypes ...
src/js/Components/TypePane/TypePane.js
mattgordils/DropSplash
import 'sass/components/common/buttons'; import React, { Component } from 'react'; import InlineSVG from 'svg-inline-react/lib'; import Pane from 'Components/Common/Pane'; import TypePaneView from 'Components/TypePane/TypePaneView'; export default class App extends Component { constructor (props) { supe...
src/mobile/containers/Chat.js
u-wave/web
import React from 'react'; import { useSelector } from 'react-redux'; import { isLoggedInSelector } from '../../selectors/userSelectors'; import ChatMessages from '../../containers/ChatMessages'; import ChatInput from '../../containers/ChatInput'; import LoginButtons from './LoginButtons'; function ChatContainer() { ...
app/components/LAxis.js
experimentalDataAesthetics/play-splom
import React from 'react'; /** * Draw a very minimal L-shaped axis along the bottom left of a plot. * * Each plot has one of these. */ export default function LAxis({ sideLength, color }) { return ( <polyline points={`0,0 0,${sideLength} ${sideLength},${sideLength}`} strokeWidth={1} stroke=...
src/components/search/AccountFilter.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Ant Design */ import Select from 'antd/lib/select' @translate(['common']) @inject('send', 'wallet') @observer class AccountFilter extends React.Component { constructor(props) { super(props) ...
src/createElement.js
mrtnbroder/react-router-route-reducers
import React from 'react' import { NAMESPACE } from './constants' import { getNestedState } from './getNestedState' export const createElement = (store) => (Component, props) => { const { routes, route } = props // eslint-disable-line react/prop-types const depth = routes.indexOf(route) const state = store.getS...
ajax/libs/x-editable/1.4.6/bootstrap-editable/js/bootstrap-editable.js
tharakauka/cdnjs
/*! X-editable - v1.4.6 * 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 for...
examples/piechart/index.js
joshblack/react-d3
import React from 'react'; import App from './components/App'; window.React = React; React.render( <App />, document.getElementById('root') );
src/svg-icons/toggle/star.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStar = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ToggleStar = pure(ToggleStar); ToggleStar.disp...
src/assets/scripts/components/Map/MapContainer.js
Eastern-Research-Group/epa-digital-services-rfi-js
import React, { Component } from 'react'; import FacilityMap from './FacilityMap'; import EchoServerActionCreators from '../../actions/EchoServerActionCreators'; import FacilityActionCreators from '../../actions/FacilityActionCreators'; import FacilityStore from '../../stores/FacilityStore'; import MonitoringStationSto...
src/components/settingGuis/WeightedAverages.js
Ameobea/noise-asmjs
/** * Creates a set of input fields for setting the weights of the individual noise modules of a composed noise module * making use of the weighted average composition scheme. */ import React from 'react'; import { connect } from 'react-redux'; import R from 'ramda'; import { Input } from 'semantic-ui-react'; impo...
src/components/Markdown/Paragraph.js
jonahjoughin/blog.jough.in
import React from 'react'; const Paragraph = ({children,first,last,inQuote,inList}) => { const mb = last ? (inQuote ? ' mb0' : ' mb4') : (inQuote ? ' mb3' : ' mb4'); return (<div className = {"tracked lh-copy sans-serif dark-blue"+mb}> {children} </div>); }; export default Paragraph;
node_modules/react-router/es/Redirect.js
SpaceyRezum/react-trivia-game
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.st...
sites/all/modules/ctools/js/dependent.js
AEDesign/aliveness
/** * @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: ...
Switch/Switch.spec.js
mmellado/airtame-gooey-react
import React from 'react'; import { render, shallow, mount } from 'enzyme'; import { spy } from 'sinon'; import Switch from './Switch'; describe('<Switch />', () => { it('should render the switch', () => { const wrapper = shallow(<Switch id="test-siwtch" label="test-switch" value="foo" />); expect(wrapper).t...
examples/the-full-works/components/button-group/button-group.js
lystable/redocs
import React from 'react'; type Props = { /** Buttons */ children: Array<ReactElement> }; /** Component to display a set of Button's */ const ButtonGroup = ({children, ...props}: Props): ReactElement => ( <div {...props}>{children}</div> ); export default ButtonGroup;
frontend/test/app/components/Loading-test.js
dannycoates/testpilot
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import Loading from '../../../src/app/components/Loading'; describe('app/components/Loading', () => { it('should render <div class="loading">', () => expect(shallow(<Loading />).find('.loading')).to.have.length(1)); it...
packages/canvas-rce/src/rce/plugins/instructure_image/clickCallback.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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...
front-end/BreakpointsSidebarPane.js
gameclosure/NativeInspector
/* * Copyright (C) 2008 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions a...
docs/app/Examples/elements/Divider/Variations/DividerExampleClearing.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment, Button, Divider } from 'semantic-ui-react' const DividerExampleClearing = () => ( <Segment> <Button floated='right'>Floated Button</Button> <Divider clearing /> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore....
app/components/SearchGithub.js
rafaellucio/react-learning
import React from 'react'; import { Router } from 'react-router'; var SearchGithub = React.createClass({ contextTypes: { router: React.PropTypes.object.isRequired }, getRef: function(ref) { this.usernameRef = ref; }, handleSubmit: function () { var username = this.usernameRef.valu...
ajax/libs/babel-core/5.8.23/browser-polyfill.js
iwdmb/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...
packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/Promises.js
Timer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return Promise.resolve([ { id: 1,...
dist/1.10.2/jquery-css-deprecated-effects-event-alias-wrap.js
michaelBenin/jquery-builder
/*! * jQuery JavaScript Library v1.10.2 -wrap,-css,-event-alias,-effects,-offset,-dimensions,-deprecated * 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 * * ...
ajax/libs/rxjs/2.2.27/rx.lite.js
rteasdale/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 }; v...
client/components/NotAuthorizedPage.js
Sing-Li/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../contexts/TranslationContext'; import Page from './basic/Page'; function NotAuthorizedPage() { const t = useTranslation(); return <Page> <Page.Content pb='x24'> <Box is='p' fontScale='p1'>{t('You_are_not_...
docs/src/examples/addons/Radio/Types/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const RadioTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
node_modules/material-ui/node_modules/history/umd/History.js
dominikgar/flask-search-engine
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["History"] = factory(); else root["Histo...
ajax/libs/core-js/0.4.1/core.js
humbletim/cdnjs
/** * Core.js 0.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(returnThis, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base-debug.js
lucasls/cdnjs
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
node_modules/react/dist/react.min.js
FrancoCotter/ReactTimerAPP
/** * React v0.14.8 * * 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. *...
ajax/libs/react/0.12.1/react-with-addons.min.js
codevinsky/cdnjs
/** * React (with addons) v0.12.1 * * 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...
tests/components/Counter/Counter.spec.js
jhardin293/colorize
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'components/Counter/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter: 5, ...bindActionCre...
ajax/libs/yui/3.12.0/event-custom-base/event-custom-base.js
jrbasso/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
src/parser/druid/guardian/modules/features/IronFurGoEProcs.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import GuardianOfElune from './GuardianO...
examples/03 Nesting/Drag Sources/Container.js
colbyr/react-dnd
import React from 'react'; import SourceBox from './SourceBox'; import TargetBox from './TargetBox'; import Colors from './Colors'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; @DragDropContext(HTML5Backend) export default class Container { render() { ...