path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
test/FadeSpec.js
brentertz/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Fade from '../src/Fade'; describe('Fade', function () { let Component, instance; beforeEach(function(){ Component = React.createClass({ render(){ let { children, ...props } = this.props; return ( ...
templates/rubix/rubix-bootstrap/src/SafeAnchor.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; const propTypes = { href: React.PropTypes.string, onClick: React.PropTypes.func, disabled: React.PropTypes.bool, role: React.PropTypes.string, tabIndex: React.PropTypes.oneOfType([ React.PropTypes.number, React.PropTyp...
src/components/Team/Team.react.js
madhavrathi/chat.susi.ai
import React, { Component } from 'react'; import './Team.css'; import PropTypes from 'prop-types'; import susi from '../../images/susi-logo.svg'; import team from './TeamList'; import { Card, CardMedia, CardTitle } from 'material-ui/Card'; import StaticAppBar from '../StaticAppBar/StaticAppBar.react'; import 'font-awe...
ui-examples/StatusBarExample.js
demones/reactNativeGuide
'use strict'; import React, { Component, StyleSheet, View, Text, TouchableHighlight, StatusBar, } from 'react-native'; const colors = [ '#ff0000', '#00ff00', '#0000ff', ]; const barStyles = [ 'default', 'light-content', ]; const showHideTransitions = [ 'fade', 'slide', ]; class StatusBarE...
src/components/form/datepicker/index2.js
kairatz/resource-frontend-server
import React from 'react' import DatePicker from 'react-datepicker' import moment from 'moment' if(process.env.WEBPACK){ require('react-datepicker/dist/react-datepicker.css'); require('./datepicker.css'); } const DatePickerComponent = ({ input, label, meta: {touched, error} }) => { return ( <div...
tests/react_custom_funs/create_factory.js
JonathanUsername/flow
// @flow import React from 'react'; declare var any: any; React.createFactory(any)(); // OK React.createFactory(any)({}); // OK React.createFactory(any)(undefined); // OK React.createFactory(any)(null); // OK class A extends React.Component<{foo: number, bar: number}, void> {} function B(props: {foo: number, bar: n...
priv/src/header.js
Blackrush/dofus.next
import React from 'react'; export default class extends React.Component { render() { return ( <div className="jumbotron"> <h1>DofusNext</h1> <p> Not the emulator we need, but the emulator we deserve. </p> </div> ...
app/jsx/external_apps/components/ConfigurationTypeSelector.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
ajax/libs/react-native-web/0.13.18/cjs/exports/Picker/index.js
cdnjs/cdnjs
"use strict"; exports.__esModule = true; exports.default = void 0; var _createElement = _interopRequireDefault(require("../createElement")); var _useMergeRefs = _interopRequireDefault(require("../../modules/useMergeRefs")); var _usePlatformMethods = _interopRequireDefault(require("../../hooks/usePlatformMethods"));...
packages/wix-style-react/src/StackedBarChart/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, code, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import * as examples from './examples'; import StackedBarChart from '.....
imports/client/pages/NotFoundPage.js
evancorl/portfolio
import React from 'react'; import { Link } from 'react-router'; class NotFoundPage extends React.Component { shouldComponentUpdate() { return false; } render() { return ( <div className="not-found-page"> <h1 className="not-found-title">Error 404</h1> <img className="not-found-img" ...
src/components/common/svg-icons/hardware/power-input.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePowerInput = (props) => ( <SvgIcon {...props}> <path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/> </SvgIcon> ); HardwarePowerInput = pure(HardwarePowerInput); HardwarePowerInput.dis...
ajax/libs/analytics.js/1.5.6/analytics.min.js
viskin/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol...
web/client/configdev/src/components/NumberTextField.js
project-owner/Peppy
/* Copyright 2019 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any la...
client/ui/organisms/login-form.story.js
LestaD/InstaClone
/* eslint-disable react/prop-types */ import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { LoginForm } from './login-form' storiesOf('ui/organisms', module) .add('LoginForm', () => ( <LoginForm onSubmit={action('login clicked')} /> ...
src/components/common/Spinner.js
alvloureiro/Manager
import React from 'react'; import { View, ActivityIndicator } from 'react-native'; const Spinner = ({ size }) => { const { spinnerStyle } = styles; return ( <View style={spinnerStyle}> <ActivityIndicator size={size || 'large'} /> </View> ); }; const styles = { spinnerStyle...
js/test.js
sandeepguggu/little-light
import React from 'react'; import { render } from 'react-dom'; import { TextInput, AppBarIconLeft } from 'fybrweb'; class Test extends React.Component { constructor() { super(); this.state = { t1: null }; } render() { return ( <div> ...
src/Bars.react.js
ericgio/r-d3
// @flow import cx from 'classnames'; import React from 'react'; type Props = { className: ?string, }; const Bars = (props: Props) => ( <g {...props} className={cx('bars', props.className)} /> ); export default Bars;
src/svg-icons/editor/functions.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFunctions = (props) => ( <SvgIcon {...props}> <path d="M18 4H6v2l6.5 6L6 18v2h12v-3h-7l5-5-5-5h7z"/> </SvgIcon> ); EditorFunctions = pure(EditorFunctions); EditorFunctions.displayName = 'EditorFunctions...
js/App/Lib/DeviceUtils.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/RadioGroup/RadioGroup.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import toArray from 'lodash/toArray'; import {isClassExists} from '../../test/utils'; const radioGroupDriverFactory = ({element, wrapper, component}) => { const radios = toArray(element.children) || []; ...
test/specs/chart/PieChartSpec.js
recharts/recharts
import React from 'react'; import { expect } from 'chai'; import { PieChart, Pie, Sector, Legend, Tooltip, Cell } from 'recharts'; import { mount, render } from 'enzyme'; import sinon from 'sinon'; describe('<PieChart />', () => { const data = [ { name: 'Group A', value: 400 }, { name: 'Group B', value: 300 ...
src/auth/screens/login.screen.js
gitpoint/git-point
/* eslint-disable no-shadow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ActivityIndicator, Linking, Platform } from 'react-native'; import { WebView } from 'react-native-webview'; import { Button, Icon } from 'react-native-elem...
examples/todo/js/components/Todo.js
gabelevi/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...
ajax/libs/handsontable/0.10.1/jquery.handsontable.full.js
ErikSchierboom/cdnjs
/** * Handsontable 0.10.1 * Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright 2012, Marcin Warpechowski * Licensed under the MIT license. * http://handsontable.com/ * * Date: Sun Jan 12 2014 13:55:41 GMT+0100 (Central European...
react-ui/src/components/StackOverflowUser/StackOverflowUser.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'react'; class StackOverflowUser extends Component { render() { return ( <div> yolo </div> ); } } const mapStateToProps = state => ( { user: state.stackOverflowReducer.user, } ); ex...
app/containers/MyCommunitiesContainer.js
AlienStream/experimental-frontend
import React from 'react'; import SquareGrid from '../components/square_grid'; class MyCommunitiesContainer extends React.Component { state = { items: [] } componentDidMount() { fetch("http://api.alienstream.com/communities", { method: 'get' }) .then((result) => { return res...
packages/fyndiq-ui-test/stories/illustrations.js
fyndiq/fyndiq-ui
import React from 'react' import { storiesOf } from '@storybook/react' import { FileUploadIllustration, LoginIllustration, SearchIllustration, SearchNoResultIllustration, } from 'fyndiq-illustrations' const h2 = { color: '#666', fontSize: '15px', padding: '8px 10px', background: '#EEE', fontFamily: '...
ui/src/containers/quotationsContainer.js
jollopre/mps
import React, { Component } from 'react'; import { connect } from 'react-redux'; import queryString from 'query-string'; import { getQuotations, searchQuotations } from '../actions/quotations'; import Quotations from '../components/quotations'; import { setPage, QUOTATIONS } from '../actions/pagination'; class Quotati...
src/components/relativeLink/index.js
slaweet/lisk-nano
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import buttonStyle from 'react-toolbox/lib/button/theme.css'; import offlineStyle from '../offlineWrapper/offlineWrapper.css'; import dialogs from '../dialog/dialogs'; c...
frontend/src/TextBox.js
Jspsun/HackTheNorth2017
import React, { Component } from 'react'; import styled from 'styled-components'; const SpaceWrapper = styled.div` display: inline-block; vertical-align: top; box-sizing: border-box; padding-left: 10px; width: 25%; max-height: 550px; overflow: hidden; position: relative; ` const TextWrapper = styled.d...
src/svg-icons/file/folder-open.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
src/Projects/Repository.js
yrezgui/github-projects
import './Repository.css'; import React from 'react'; import classNames from 'classnames'; import RepositoryHeader from './RepositoryHeader'; export default class RepositoryDetails extends React.Component { constructor(props) { super(props); } render() { const classes = classNames('repository', { ...
src/modules/widget/FilterItem.js
lenxeon/react
'use strict' import React from 'react' import Datetime from './Datetime' import Input from './Input' import Select from './Select' const DEFAULT_OPS = ['=', 'like', '>', '>=', '<', '<=', 'in', 'not in'] export default class FilterItem extends React.Component { static displayName = 'FilterItem' static propTypes ...
node_modules/react-icons/ti/chevron-right.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiChevronRight = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m14.3 9.3c-1.3 1.3-1.3 3.4 0 4.7l6 6-6 6c-1.3 1.3-1.3 3.4 0 4.7 0.7 0.6 1.5 1 2.4 1s1.7-0.4 2.3-1l10.7-10.7-10.7-10.7c-1.3-1.3-3.4-1.3-4.7 0z"/></g> </Icon> ...
src/js/components/classification-details.js
UNECE/Classification-Explorer
import React from 'react'; import Correspondences from './correspondences'; import Levels from './levels'; import ClassificationDetailsPane from './classification-details-pane'; import { sparqlConnect } from '../sparql/configure-sparql'; import { LOADED } from 'sparql-connect'; import { connectFromRoute } from '../rout...
src/public/js/components/screens/FocusPresence.js
datalocale/dataviz-finances-gironde
import React from 'react'; import { connect } from 'react-redux'; import page from 'page'; import StackChart from '../../../../shared/js/components/StackChart'; import PageTitle from '../../../../shared/js/components/gironde.fr/PageTitle'; import SecundaryTitle from '../../../../shared/js/components/gironde.fr/Secun...
index.ios.js
Stoneski93/GymDiary
'use strict'; import React from 'react' import { AppRegistry } from 'react-native' import AppContainer from './ReactApp/containers/' AppRegistry.registerComponent('StarterKit', () => AppContainer)
ajax/libs/yasr/2.5.3/yasr.bundled.min.js
hpneo/cdnjs
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
static/node_modules/material-ui/svg-icons/device/network-cell.js
unmeshpro/easyPost
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
test/components/Pagination.js
nullgr4vity/react-redux-table
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Pagination from './../../src/components/Pagination'; describe('<Pagination>', () => { it('should show the correct active button (without prev & next)', () => { const instance = ReactTestUti...
js/libs/jquery-1.9.1.js
noelstieglitz/Ember-Star-Rating-Component
/*! * 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...
webpack/move_to_pf/Select/Select.js
tstrachota/katello
import React from 'react'; import PropTypes from 'prop-types'; const Select = ({ placeholder, onChange, options, disabled, value, }) => { const renderOptions = arr => arr.map(({ name, id }) => ( <option key={id} value={id}> {name} </option> )); return ( <select disabled={di...
assets/js/jquery-ui-1.11.2.custom/external/jquery/jquery.js
jlfilho/grecarc
/*! * 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/preact/2.4.0/preact.min.js
seogi1004/cdnjs
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.preact={})}(this,function(e){"use strict";function n(e,n){var t=arguments.length<=2||void 0===arguments[2]?null:arguments[2],o=t&&t._component&&t._componentConstructor===e.nodeN...
gga-selenium-framework-reportng/src/main/resources/org/uncommons/reportng/mod/templates/html/jquery-1.4.3.min.js
ggasoftware/gga-selenium-framework
/*! * jQuery JavaScript Library v1.4.3 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/svg-icons/av/movie.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMovie = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/> </SvgIcon> ); AvMovie = pure(AvMovie); Av...
app/javascript/mastodon/features/ui/components/column_link.js
h-izumi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'react-router-dom/Link'; const ColumnLink = ({ icon, text, to, href, method, hideOnMobile }) => { if (href) { return ( <a href={href} className={`column-link ${hideOnMobile ? 'hidden-on-mobile' : ''}`} data-method={method}> ...
node_modules/react/lib/ReactElementSymbol.js
lhuria94/srijan-staff-react
/** * Copyright 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * */ 'use st...
ajax/libs/react-native-web/0.12.0-rc.1/exports/YellowBox/index.js
cdnjs/cdnjs
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } /** * Copyright (c) Nicolas Gallagher. * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under th...
ajax/libs/forerunnerdb/1.3.370/fdb-legacy.js
sreym/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/component/counter/index.js
sheridp2/triviapp
'use strict'; import React, { Component } from 'react'; import {Table, Button} from 'react-bootstrap'; import ReactDOM from 'react-dom'; class Counter extends Component { constructor(props) { super(props); this.state = { number: this.props.number || 0, name: '', display: 'nameToggler', ...
scripts/components/PeopleCreate.js
ZucchiniZe/flux-people
import React from 'react'; import Actions from '../actions/Actions'; import Remarkable from 'remarkable'; // Create new markdown renderer const md = new Remarkable(); // A simple react if component class If extends React.Component { render() { if (this.props.test) { return this.props.children; } ...
spec/sections/ChoiceFieldSection.js
kmees/react-fabric
import React from 'react' import ChoiceField from '../../src/ChoiceField' const ButtonSection = () => ( <section className="choice-field-section"> <h2>ChoiceField</h2> <div> <ChoiceField label="Checkbox" /> <ChoiceField type="radio" label="Radio" /> </div> </section> ) export default Button...
docs/app/Examples/modules/Accordion/Types/AccordionExampleStandardShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Accordion } from 'shengnian-ui-react' const panels = [ { title: 'What is a dog?', content: [ 'A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome', 'guest in many households across the world.', ].join(...
src/main.js
vijayasankar/ML2.0
import React from 'react' import ReactDOM from 'react-dom' import 'babel-core/register' import 'babel-polyfill' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' import createRoutes from './routes/index' // import { Provider } from 'react-redux' import './styles/styles....
app/scripts/containers/IndexPage.js
yas-okadatech/sample_elasticsearch_ui
import React from 'react'; export default class IndexPage extends React.Component { render() { return ( <div>Index Page</div> ) } }
react-app/src/components/CareNeedForm.js
floodfx/gma-village
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Neighborhood } from 'gma-village-data-model'; import { required, requiredArray } from './forms/Validate'; import FontAwesome from 'react-fontawesome'; import MultiCheckbox from './forms/MultiCheckbox'; import KidsChe...
packages/material-ui-icons/src/VideocamSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17 10.5V6H3v12h14v-4.5l4 4v-11l-4 4z" /></React.Fragment> , 'VideocamSharp');
examples/src/components/Multiselect.js
millerized/react-select
import React from 'react'; import Select from 'react-select'; const FLAVOURS = [ { label: 'Chocolate', value: 'chocolate' }, { label: 'Vanilla', value: 'vanilla' }, { label: 'Strawberry', value: 'strawberry' }, { label: 'Caramel', value: 'caramel' }, { label: 'Cookies and Cream', value: 'cookiescream' }, { label...
app/components/OtherComponents/RepoItem.js
MPDL/LabCam
import React, { Component } from 'react'; import { StyleSheet, View, TouchableHighlight, Text } from 'react-native'; import PropTypes from 'prop-types'; export default class RepoItem extends Component { onItemPress = () => { const { id } = this.props.repo; return this.props.selectRepo ? this.props.selectRepo...
client/components/App.js
collectiveidea/rails_relay_authentication
import React from 'react' import PropTypes from 'prop-types' import { routerShape } from 'found/lib/PropTypes' import { createFragmentContainer, graphql } from 'react-relay' import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme' import getMuiTheme from 'material-ui/styles/getMuiTheme' import Header from...
ajax/libs/react/0.13.0-beta.2/react.js
LeaYeh/cdnjs
/** * React v0.13.0-beta.2 */ !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.React=e()}}(function(...
ajax/libs/3Dmol/1.01/3Dmol.js
kennynaoh/cdnjs
/*! * 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...
ajax/libs/rxjs/2.3.25/rx.lite.extras.js
svenanders/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...
JotunheimenPlaces/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
designrad/Jotunheimen-tracking
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
ajax/libs/react-instantsearch/5.3.0/Connectors.js
joeyparrish/cdnjs
/*! React InstantSearch 5.3.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports',...
app/js/containers/Auth.js
jakereps/qiime-studio-frontend
// ---------------------------------------------------------------------------- // Copyright (c) 2016-2018, QIIME 2 development team. // // Distributed under the terms of the Modified BSD License. // // The full license is in the file LICENSE, distributed with this software. // -----------------------------------------...
js/BaseComponents/ThemedTextInput.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
packages/material-ui-icons/src/PhotoAlbumRounded.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="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm.63 14.19l1.99-2.56c.2-.25.58-.26.78-.0...
src/Parser/Core/Modules/Items/Legion/DarkmoonDeckPromises.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { calculatePrimaryStat } from 'common/stats'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SpellManaCost from 'Parser/Core/Modules/SpellManaCost'; impo...
src/boilerplate-layout/components/layout/parcels/content.js
jonnyohjonnyo/TDD_LunchAndLearn_HDQC_April_2017
import React from 'react'; const Content = (props) => { const { children } = props; return ( <div> {children} </div> ); }; Content.propTypes = { children: React.PropTypes.object.isRequired, }; export default Content;
core/modules/ckeditor/js/views/ControllerView.js
jno84/drupal8
/** * @file * A Backbone View acting as a controller for CKEditor toolbar configuration. */ (function (Drupal, Backbone, $) { 'use strict'; Drupal.ckeditor.ControllerView = Backbone.View.extend(/** @lends Drupal.ckeditor.ControllerView# */{ /** * @type {object} */ events: {}, /** ...
ajax/libs/yui/3.1.1/loader/loader.js
bspaulding/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ (function() { var VERSION = Y.version, CONFIG = Y.config, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSION = ...
app/javascript/mastodon/features/hashtag_timeline/index.js
cobodo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import ColumnSettingsContainer from './...
chrome/extension/inject.js
halumz/githubSearch
import React, { Component } from 'react'; import { render } from 'react-dom'; import Dock from 'react-dock'; class InjectApp extends Component { constructor(props) { super(props); this.state = { isVisible: false }; } buttonOnClick = () => { this.setState({ isVisible: !this.state.isVisible }); }; ...
client/src/components/FuelSavingsTextInput.spec.js
dragonq29/mini-bat
import React from 'react'; import {shallow} from 'enzyme'; import chai, {expect} from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import FuelSavingsTextInput from './FuelSavingsTextInput'; chai.use(sinonChai); describe('<FuelSavingsTextInput />', () => { it('should be an input element', (...
ajax/libs/forerunnerdb/1.3.840/fdb-legacy.js
jonobr1/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/utils/CustomPropTypesSpec.js
rapilabs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import CustomPropTypes from '../../src/utils/CustomPropTypes'; function isChainableAndUndefinedOK(validatorUnderTest) { it('Should validate OK with undefined or null values', function() { assert.isUndefined(validatorUnderTest({}, '...
test/TableSpec.js
adampickeral/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Table from '../src/Table'; describe('Table', function () { it('Should be a table', function () { let instance = ReactTestUtils.renderIntoDocument( <Table /> ); assert.equal(React.findDOMNode(instance).nodeName,...
src/client/story_list.js
mkobar/hacker-menu
import React from 'react' import Story from './story.js' import _ from 'lodash' export default class StoryList extends React.Component { render () { var onUrlClick = this.props.onUrlClick var onMarkAsRead = this.props.onMarkAsRead var storyNodes = _.map(this.props.stories, function (story, index) { ...
ajax/libs/material-ui/5.0.0-alpha.18/CssBaseline/CssBaseline.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import{exactProp}from"@material-ui/utils";import withStyles from"../styles/withStyles";export const html={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",Webkit...
docs/app/Examples/collections/Message/Types/MessageListExample.js
ben174/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageListExample = () => ( <Message> <Message.Header>New Site Features</Message.Header> <Message.List> <Message.Item>You can now have cover images on blog pages</Message.Item> <Message.Item>Drafts will now auto-save whi...
src/BreadcrumbItem.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, active: PropTypes.bool, className: PropTypes.string, cssModule: PropTypes.object, }; const defaultProps = { tag: '...
src/index.js
SMhero/injustice2-singlepage
const css = require('./app.scss'); import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import App from './js/App.jsx'; ReactDOM.render(( <BrowserRouter> <div className='injustice-inner'> <App /> </div> </BrowserRouter> ), document.getElem...
lib/components/SvgParallelogram/index.js
EloB/code-test
import React from 'react'; const SvgParallelogram = () => ( <div /> ); export default SvgParallelogram;
test/NavSpec.js
adampickeral/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; import Button from '../src/Button'; describe('Nav', function () { it('Should set the correct item active', function () { let instance = ReactTestUtils.renderIntoDo...
src/containers/Chat/Chat.js
AndriyShepitsen/svredux
import React, {Component, PropTypes} from 'react'; import {connect} from 'react-redux'; @connect( state => ({user: state.auth.user}) ) export default class Chat extends Component { static propTypes = { user: PropTypes.object }; state = { message: '', messages: [] }; componentDidMount() { ...
ajax/libs/analytics.js/2.3.5/analytics.min.js
callumacrae/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
client/components/Lane.js
nb256/kanbanello
import React from 'react'; import Card from './Card'; import EditLaneModal from '../components/EditLaneModal'; import { editButtonStyle, deleteButtonStyle, laneStyle } from '../styles/styles'; export default class Lane extends React.Component { onDrop(e) { this.props.onMoveCard(e.dataTransfer.getData('laneid'),...
ajax/libs/handsontable/0.15.0-beta6/handsontable.full.js
BobbieBel/cdnjs
/*! * Handsontable 0.15.0-beta6 * Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs * * Copyright (c) 2012-2014 Marcin Warpechowski * Copyright 2015 Handsoncode sp. z o.o. <hello@handsontable.com> * Licensed under the MIT license. * http://han...
packages/@lyra/vision/src/lyra/Select.js
VegaPublish/vega-studio
import React from 'react' import FaAngleDown from 'part:@lyra/base/angle-down-icon' import Dropdown from '../components/Dropdown' import styles from '../css/select.css' function Select(props) { return ( <div className={styles.selectContainer}> <Dropdown className={styles.select} {...props} /> <div cl...
components/result/__tests__/index.test.web.js
can-yin-quan/antd-mobile-cyq
import React from 'react'; import { render } from 'enzyme'; import { renderToJson } from 'enzyme-to-json'; import Result from '../index.web'; describe('Result', () => { it('renders correctly', () => { const wrapper = render( <Result imgUrl="https://zos.alipayobjects.com/rmsportal/qlMpMyJTcSjMpKAgtc...
src/components/PullRequest.js
nchaulet/bitbucket-team-pullrequests
import React from 'react'; import moment from 'moment'; import PullRequestDate from './PullRequestDate'; class PullRequest extends React.Component { render() { const {pr} = this.props; const avatarStyle = { marginRight: 10 }; const approved = pr.participants.reduce((...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/camera-roll.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCameraRoll = (props) => ( <SvgIcon {...props}> <path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h2v2zm4 9h-2v-2h2v2zm0-9h-2V7h2v2z...
smsgw/static/js/templates/form.react.js
VojtechBartos/smsgw
'use strict'; import React from 'react'; import LaddaButton from 'react-ladda'; import {Grid, Row, Col, Well} from 'react-bootstrap'; import Component from '../components/component.react'; class Form extends Component { constructor(props) { super(props); this.state = { length: 0 }; } isValid...
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleShorthandElement.js
koenvg/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleShorthandElement = () => ( <Checkbox label={<label>Make my profile visible</label>} /> ) export default CheckboxExampleShorthandElement
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/jquery-1.6.2.js
sedge/nimble
/*! * jQuery JavaScript Library v1.6.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/decorators/withViewport.js
victoryancn/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
app/components/List/index.js
seanng/jobmaster-web
import React from 'react'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={...