target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
docs/api/index.js
vinctustech/energize
Index.PACKAGES = {"xyz" : [], "xyz.hyperreal" : [], "xyz.hyperreal.energize" : [{"name" : "xyz.hyperreal.energize.AggregateFunctions", "shortDescription" : "", "object" : "xyz\/hyperreal\/energize\/AggregateFunctions$.html", "members_object" : [{"label" : "max", "tail" : "(env: Environment, resource: Table, filter: Opt...
app/livechat/client/views/app/livechatCustomFieldForm.js
subesokun/Rocket.Chat
import { Meteor } from 'meteor/meteor'; import { ReactiveVar } from 'meteor/reactive-var'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { Template } from 'meteor/templating'; import toastr from 'toastr'; import { t, handleError } from '../../../../utils'; import { getCustomFormTemplate } from './cust...
es6/Upload/UploadList.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
modules/components/topic.js
yuanziyuer/yuanzi-share
/** * Created by natefang on 1/14/16. */ import React, { Component } from 'react'; import { Link } from 'react-router'; import fetch from 'isomorphic-fetch'; import moment from 'moment'; import './style/topic.css'; import $ from 'jquery' class Topic extends Component { constructor(props) { super(props); this.sta...
vendor/bower-asset/jquery/src/sizzle/test/jquery.js
xingfuunit/pzfresh
/*! * 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...
docs/app/Examples/modules/Dimmer/States/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DimmerStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Active' description='A...
node_modules/react-native-form-generator/src/fields/TimePickerField.android.js
paulunits/tiptap
'use strict'; import React from 'react'; import ReactNative from 'react-native'; let { View, StyleSheet, TextInput, Text} = ReactNative; import {TimePickerComponent} from '../lib/TimePickerComponent'; export class TimePickerField extends React.Component{ setTime(date){ this.refs.datePickerComponent.setTime(da...
src/routes/LoansListingContainer.js
folio-org/ui-users
import React from 'react'; import PropTypes from 'prop-types'; import { get, concat, } from 'lodash'; import { stripesConnect } from '@folio/stripes/core'; import { LoadingView } from '@folio/stripes/components'; import { LoansListing } from '../views'; class LoansListingContainer extends React.Component { sta...
core/Component.js
jeffersonmourak/nicobar
import React from 'react'; import CSS from 'Core/CSS.helper'; /** * Nicobar Component */ class Component extends React.Component { /** * @constructor * @param {Object} props Component Properties */ constructor(props) { super(props); this.className = CSS.getClassHash(); } /** * @method C...
src/svg-icons/device/signal-wifi-2-bar-lock.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi2BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
src/SignUp.js
MaxLinCode/tardy-HackIllinois-2017
import React from 'react' import firebase from 'firebase' import { auth } from './Auth' class SignUpForm extends React.Component { constructor(props) { super(props); this.state = { full_name: '', email: '', password: '', phone: '', }; this.h...
src/routes/Admin/components/AdminView.js
eunvanz/flowerhada
import React from 'react' class AdminView extends React.Component { constructor (props) { super(props) this.displayName = 'AdminView' this.state = { state: null } } render () { <div> content </div> } } AdminView.propTypes = { prop : React.PropTypes.number.isRequired }...
src/components/Feedback/Feedback.js
yvanwangl/UniversalBlog
/** * 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 withStyles from 'isom...
docs/client/components/pages/Alignment/SimpleAlignmentEditor/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { convertFromRaw, EditorState, } from 'draft-js'; // eslint-disable-next-line import/no-unresolved import Editor, { composeDecorators } from 'draft-js-plugins-editor'; // eslint-disable-next-line import/no-unresolved import createAlignmentPlugin from 'draft-js-alignm...
src/component/picture-list/index.js
abdih17/celebrityMatch
import React from 'react' import { pictureCreate, pictureReset, } from '../../action/picture-action.js' import PictureItem from '../picture-item' class PictureList extends React.Component{ render(){ return ( <div> <h3>Pictures</h3> <PictureItem /> </div> ) } } export def...
tests/routes/Home/components/HomeView.spec.js
dmitriys-lits/gradient-descent
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
src/svg-icons/action/settings-ethernet.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsEthernet = (props) => ( <SvgIcon {...props}> <path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12...
src/js/sections/Title2.js
BavoG/onesupportdocu
import React from 'react'; import classnames from 'classnames'; import Headline from 'grommet/components/Headline'; import Box from 'grommet/components/Box'; import InfographicSection from '../components/InfographicSection'; import PlatformApple from 'grommet/components/icons/base/PlatformApple'; import Value from 'g...
ajax/libs/forerunnerdb/1.3.522/fdb-core+views.js
x112358/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...
ajax/libs/react-datepicker/0.13.0/react-datepicker.min.js
jdh8/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("tether"),require("moment"),require("react-onclickoutside")):"function"==typeof define&&define.amd?define(["react","tether","moment","react-onclickoutside"],e):"object"==typeof exports?exports.DatePicker=e(require...
client/components/Main.js
yuanyusi/redux
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import NavLink from './modules/navLink' connect(state => ({example: state.example.data })) class Main extends React.Component { render(){ return ( <div> <h1> <Link to="/"> Reduxstagram ...
ajax/libs/extjs/4.2.1/src/AbstractComponent.min.js
suy/cdnjs
Ext.define("Ext.AbstractComponent",{requires:["Ext.ComponentQuery","Ext.ComponentManager","Ext.util.ProtoElement","Ext.dom.CompositeElement","Ext.PluginManager"],mixins:{positionable:"Ext.util.Positionable",observable:"Ext.util.Observable",animate:"Ext.util.Animate",elementCt:"Ext.util.ElementContainer",renderable:"Ext...
node_modules/react-keydown/example/src/app/class_decorator/code.js
SpatialMap/SpatialMapDev
import React from 'react'; import ReactDOM from 'react-dom'; const code = `<code> import React from &#x27;react&#x27;; import keydown from &#x27;react-keydown&#x27;; @keydown class MyComponent extends React.Component { constructor( props ) { super( props ); this.state = { key: &#x27;n/a&#x27; };...
src/components/Mascot/Mascot.js
honeypotio/techmap
import React from 'react'; import PropTypes from 'prop-types'; const Mascot = ({ width, height }) => { return ( <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 194 296" > <defs> <ellipse id="b" cx="91" cy="271.775" rx="91" ry="15.892" /...
src/svg-icons/action/highlight-off.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHighlightOff = (props) => ( <SvgIcon {...props}> <path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1...
src/Parser/Priest/Holy/Modules/Items/Tier21_4set.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Analyzer from 'Parser/Core/Analyzer'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import Combatants from 'Parser/Core/Modules/Comb...
test/SocketOn.spec.js
socket-react-client/socket-react-client
import React from 'react'; import chai from 'chai'; import { shallow } from 'enzyme'; import { Server, SocketIO } from 'mock-socket'; import sinon from 'sinon'; import SocketProvider from '../lib/SocketProvider.jsx'; import SocketOn from '../lib/SocketOn.jsx'; const expect = chai.expect; /** * Having trouble gettin...
third_party/font-awesome/License_files/jquery.min.js
google/dana
/*! 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/index.js
yipjiajie/TopBloc
import React from 'react'; import ReactDOM from 'react-dom'; import update from 'react-addons-update'; import Stage from './stage'; import Previews from './previews'; import Selected from './selected'; import SaveFormation from './saveFormation'; import Holding from './holding'; import initialState from './constants';...
media_client/src/components/Upload.js
ntamvl/react-upload-progress-bar-with-rails-5-api
import React, { Component } from 'react'; import Dropzone from 'react-dropzone'; import { Field, reduxForm } from 'redux-form'; import { post } from 'axios'; import { Line, Circle } from 'rc-progress'; import { v4 } from 'node-uuid'; class Upload extends Component { constructor(props) { super(props); this.on...
app/containers/App/index.js
vkurzweg/aloha
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
uis/mp-next/src/containers/App.js
andrew-hai/bdgt
import React, { Component } from 'react'; import PropTypes from 'prop-types' import '../css/App.css'; import { withStyles } from 'material-ui/styles'; import Player from '../components/Player' import TopPanel from '../components/TopPanel' import AudiosList from '../components/AudiosList' import AudiosGridList from '../...
docs/src/app/components/pages/components/IconButton/ExampleSize.js
IsenrichO/mui-with-arrows
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const styles = { smallIcon: { width: 36, height: 36, }, mediumIcon: { width: 48, height: 48, }, largeIcon: { width: 60, height: 60, }, small: { ...
ajax/libs/history/1.13.0/History.js
x112358/cdnjs
(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...
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleMultipleCustomLabel.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const options = [ { key: 1, text: 'One', value: 1 }, { key: 2, text: 'Two', value: 2 }, { key: 3, text: 'Three', value: 3 }, ] const renderLabel = (label, index, props) => ({ color: 'blue', content: `Customized label - ${label.text}`, ...
docs/server.js
roderickwang/react-bootstrap
/* eslint no-console: 0 */ import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development =...
stories/default-size/min-height.js
pionl/react-resizable-box
/* eslint-disable */ import React from 'react'; import Resizable from '../../src'; const style = { display: 'flex', alignItems: 'center', justifyContent: 'center', border: 'solid 1px #ddd', background: '#f0f0f0', }; export default () => ( <Resizable style={style} defaultSize={{ width: 200, ...
demo/Drawer.js
szchenghuang/react-mdui
'use strict'; //############################################################################# // Stylesheets. //############################################################################# //############################################################################# // Library includes. //#########################...
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js
DzenDyn/bdo-db
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
src/svg-icons/action/https.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
node_modules/babel-core/node_modules/babel-types/lib/index.js
9min/kanban_app
"use strict"; exports.__esModule = true; exports.createTypeAnnotationBasedOnTypeof = exports.removeTypeDuplicates = exports.createUnionTypeAnnotation = exports.valueToNode = exports.toBlock = exports.toExpression = exports.toStatement = exports.toBindingIdentifierName = exports.toIdentifier = exports.toKeyAlias = expo...
src/primitives/container/absolute-container/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './style.scss'; function AbsoluteContainer({ forwardedRef, children, className, ...props }) { return ( <div ref={forwardedRef} className={classNames('AbsoluteContainer', className)} {...p...
ajax/libs/flat-ui/2.2.0/js/vendor/jquery.min.js
steadiest/cdnjs
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
packages/material-ui-icons/src/AirplanemodeInactiveRounded.js
Kagami/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="M19.64 15.58c.67.21 1.36-.29 1.36-1 0-.36-.19-.69-.49-.89L13 9V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5v3.11l8.65 8.65.99.32zM18.73 21l1.41-1...
frontend/src/Settings/Profiles/Metadata/PrimaryTypeItem.js
lidarr/Lidarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CheckInput from 'Components/Form/CheckInput'; import styles from './TypeItem.css'; class PrimaryTypeItem extends Component { // // Listeners onAllowedChange = ({ value }) => { const { ...
ajax/libs/simple-icons/4.0.0/reactos.min.js
cdnjs/cdnjs
module.exports={title:"ReactOS",slug:"reactos",svg:'<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>ReactOS icon</title><path d="M20.21 24c-1.148-.007-2.477-.334-3.89-.915-2.823-1.163-6.04-3.372-9.036-6.367C4.289 13.723 2.075 10.505.913 7.68-.25 4.857-.383 2.36.988.989 2.358-.38 4.855-.248...
app/javascript/mastodon/components/setting_text.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
tests/lib/rules/indent-legacy.js
onurtemizkan/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------...
src/propTypes/TextStylePropTypes.js
dingbat/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/Text/TextStylePropTypes.js */ import React from 'react'; import ColorPropType from './ColorPropType'; import ViewStylePropTypes from './ViewStylePropTypes'; const { PropTypes } = React; // TODO: use spread instead of Object.assign/create after #65...
public/components/AddLoadBalancer.js
rolandfung/project-ipsum
import React from 'react'; import actions from '../actions/ipsumActions.js'; import ReactDom from 'react-dom'; import { connect } from 'react-redux'; import request from '../util/restHelpers.js'; import { Button, Col, ControlLabel, FormControl, FormGroup, Grid, Panel, Row, Form } from 'react-bootstrap'; import Select f...
examples/NavigationPlayground/js/SampleText.js
half-shell/react-navigation
/* @flow */ import React from 'react'; import { StyleSheet, Text, } from 'react-native'; /** * Used across examples as a screen placeholder. */ import type { Children } from 'react'; const SampleText = ({ children }: { children?: Children }) => ( <Text style={styles.sampleText}>{children}</Text> ); ex...
src/services/toastWrapper.js
juandjara/open-crono
import React from 'react' import { toast } from 'react-toastify'; const ToastBody = ({text}) => ( <p style={{ background: '#333', color: 'white' }}>{text}</p> ) export default function(type, text) { toast[type](<ToastBody text={text} />) }
src/components/pages/HeroInventory.js
DragonLegend/game
import React from 'react'; import Body from '../hero/Body'; import Inventory from '../hero/Inventory'; export default () => ( <div className="uk-grid"> <div className="uk-width-4-10"> <Body actions /> </div> <div className="uk-width-6-10"> <Inventory /> </div> </div> );
node_modules/react/lib/ReactNativeTextComponent.js
sam-yi/react-testing
/** * 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...
src/containers/TriggersContainer.spec.js
maartenlterpstra/GeoWeb-FrontEnd
import React from 'react'; import { default as TriggersContainer } from './TriggersContainer'; import { mount } from 'enzyme'; const emptyDispatch = () => null; const emptyActions = { setGeoJSON: () => null }; describe('(Container) TriggersContainer', () => { it('Renders a TriggersContainer', () => { const _com...
src/components/common/svg-icons/av/add-to-queue.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> ...
ajax/libs/forerunnerdb/1.3.677/fdb-core+views.js
BitsyCode/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...
example/src/views/modal/components/deposit/deposit.js
UgnisSoftware/react-subrouter
import React from 'react'; import {SubLink, SubRouteHandler} from 'react-subrouter'; export default class extends React.Component{ render() { return ( <div> <div className="tabs"> <SubLink to="bank" className="tab two">Bank</SubLink> <Sub...
src/components/header/index.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import { AppBar, Toolbar, Button, withStyles, IconButton } from '@material-ui/core'; import MenuIcon from '@material-ui/icons/Menu' import { auth as authUI} from '@openchemistry/girder-ui'; import AdminMenu from '../../containers/administrator/menu-item'; import ImageManagerM...
src/MultiCascader/test/DropdownMenuSpec.js
suitejs/suite
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { getDOMNode, getInstance } from '@test/testUtils'; import DropdownMenu from '../DropdownMenu'; import Dropdown from '../MultiCascader'; const classPrefix = 'rs-picker-cascader-menu'; const items = [ { value: 'abc', label: ...
src/components/player.js
Zeukkari/aframe-react-experiment
import 'aframe'; import {Entity} from 'aframe-react'; import React from 'react'; const Player = (props) => { return <Entity primitive="a-camera"> <Entity primitive="a-cursor" animation__click={{ property: 'scale', sta...
app/components/Home.js
natac13/vegan-recipe-app
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Home extends Component{ render(){ return ( <div className=""> <p> <Link to={`/recipes`}> Go See the List of Recipes</Link> </p> <p> ...
packages/material-ui-icons/src/BatteryChargingFullRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.34 22h7.32c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-1.06 9.24l-2.67 5c-.24.45-.94.28-.94-....
node_modules/react/lib/checkReactTypeSpec.js
lhuria94/srijan-staff-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. * */ 'use strict...
src/wics/node_modules/material-ui/Drawer/Drawer.js
civiclee/Hack4Cause2017
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of'); var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf); var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck'); var _classCallCheck3...
ajax/libs/react-slick/0.14.0/react-slick.js
dc-js/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
archimate-frontend/src/main/javascript/components/view/diagram/DefaultWidgets.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { intersect, shape } from 'svg-intersections' export class DefaultNodeWidget extends React.Component { constructor(props, context) { super(props, context); this.updateLinkPoints(props.node); } borderShape(node) { const width = node.width || 0;...
client/src/components/TranscriptEditor/index.js
stanographer/aloft
import React from 'react'; import { compose } from 'recompose'; import { withRouter } from 'react-router-dom'; import { withFirebase } from '../Firebase'; import withAuthorization from '../Session/withAuthorization'; import Navigation from '../Navigation'; import queryString from 'query-string'; import connection from ...
src/containers/app.js
pedroeusebio/draftReactNative
import React, { Component } from 'react'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import * as reducers from '../reducers'; import MenuView from './menuView'; import CounterApp from './counterApp'; const createStore...
files/rxjs/2.3.8/rx.lite.compat.js
firulais/jsdelivr
// 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...
examples/with-cxs/pages/index.js
kevmannn/next.js
import React from 'react' import cxs from 'cxs' export default () => ( <div className={cx.root}> <h1 className={cx.title}>My page</h1> </div> ) const cx = { root: cxs({ width: 80, height: 60, background: 'white', ':hover': { background: 'black' } }), title: cxs({ marginLef...
src/svg-icons/av/featured-play-list.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedPlayList = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/> </SvgIcon> ); AvFeaturedPlayList = pu...
app-course-sync/views/RepositoryConfigurationView.js
globant-ui-rosario/progress-tracker
import React, { Component } from 'react'; class BootcampRepositoryConfigurationView extends Component { render () { return <div>Repository configuration</div>; } }; export default BootcampRepositoryConfigurationView;
app/scripts/components/Footer.js
DanBuda11/portfolio2
import React from 'react'; export default React.createClass({ render: function() { return ( <div className="footer"> <div> <a aria-label="Twitter" href="https://twitter.com/danielbuda" target="_blank" > <i className="fa fa-3x fa-tw...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
wisc/spectacle-caching
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
renderer/components/Pay/PayHeader.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { FormattedMessage } from 'react-intl' import { Header } from 'components/UI' import Lightning from 'components/Icon/Lightning' import Onchain from 'components/Icon/Onchain' import Send from 'components/Icon/Send' import messages from './messages' impo...
packages/react-widgets/test/DropdownList-test.js
jquense/react-widgets
import { mount } from 'enzyme' import React from 'react' import { act } from 'react-dom/test-utils' import DropdownList from '../src/DropdownList' import Popup from '../src/Popup' describe('DropdownList', function () { let data = [ { label: 'jimmy', id: 0 }, { label: 'sally', id: 1 }, { label: 'pat', id:...
frontend/src/Movie/MovieCollectionConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { saveImportList, selectImportListSchema, setImportListFieldValue, setImportListValue } from 'Store/Actions/settingsActions'; import createMovieCollectio...
Examples/Movies/SearchBar.ios.js
jacobbubu/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, ...
examples/huge-apps/routes/Calendar/components/Calendar.js
dyzhu12/react-router
import React from 'react'; class Calendar extends React.Component { static loadProps(params, cb) { setTimeout(() => { cb(null, { events: [{ id: 0, title: 'essay due' }] }) }, 1000); } render () { var { events } = this.props; return ( <div> <h2...
src/components/ContentList/ContentWrapper.js
adorris1/dorris-united
import React from 'react'; import DropDownMenu from 'material-ui/lib/DropDownMenu'; import MenuItem from 'material-ui/lib/menus/menu-item'; var MenuWrapper = React.createClass({ getInitialState: function(){ return {data:[],value:2}; }, handleChange: function (event) { this.setState({value: event.target.v...
ajax/libs/react-data-grid/0.14.28/react-data-grid-with-addons.min.js
extend1994/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th...
src/svg-icons/image/gradient.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGradient = (props) => ( <SvgIcon {...props}> <path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z...
docs/src/app/components/pages/components/IconButton/ExampleTooltip.js
ArcanisCz/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleTooltip = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" tooltip="bottom-right" tooltipPosition="bottom-right" /> <IconButton iconClassName="muidocs-icon-custom-githu...
src/containers/pages/reddit/post/content/post-text.js
vFujin/HearthLounge
import React from 'react'; import { connect } from "react-redux"; import {createMarkup, iframe} from "../../utils/post"; import Loader from "../../../../../components/loaders/diamond/loader"; import Icon from "../../../../../components/icon"; const PostText = ({activePost}) => { const {author_flair_css_class, domain...
local-cli/bundle.js
Suninus/react-native
var http = require('http'); var fs = require('fs'); var path = require('path'); var chalk = require('chalk'); var blacklist = require('../packager/blacklist.js'); var ReactPackager = require('../packager/react-packager'); var OUT_PATH = 'iOS/main.jsbundle'; var URL_PATH = '/index.ios.bundle?dev='; function getBundle(...
ajax/libs/react-slick/0.6.0/react-slick.min.js
dakshshah96/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Slider=t(require("react")):e.Slider=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var...
assets/js/vue.min.js
mithublue/WP-Sitebuilder
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(e,n,r){if(i(e,n))return void(e[n]=r);if(e._isVue)return void t(e._data,n,r);var s=e.__ob__;if(!s)return void(e[n]=r);if(s.convert(n,r)...
e2e-tests/production-runtime/src/pages/404.js
0x80/gatsby
import React from 'react' import Layout from '../components/layout' const NotFoundPage = () => ( <Layout> <h1 data-testid="404">NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
app/javascript/mastodon/components/radio_button.js
tri-star/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class RadioButton extends React.PureComponent { static propTypes = { value: PropTypes.string.isRequired, checked: PropTypes.bool, name: PropTypes.string.isRequired, onChange: PropTypes....
IntegrationTests/SizeFlexibilityUpdateTest.js
clozr/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. * @providesMod...
portal/src/main/webapp/js/lib/EnhancedFixedDatatable.js
shrumit/cbioportal-gsoc-final
'use strict'; var EnhancedFixedDataTable = (function() { // Data button component var FileGrabber = React.createClass({displayName: "FileGrabber", // Saves table content to a text file saveFile: function() { var formatData = this.state.formatData || this.props.content(); thi...
ajax/libs/strophe.js/1.1.3/strophe.js
yasyf/cdnjs
// This code was written by Tyler Akins and has been placed in the // public domain. It would be nice if you left this header intact. // Base64 code from Tyler Akins -- http://rumkin.com var Base64 = (function () { var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; var obj = { ...
app/javascript/mastodon/features/compose/components/navigation_bar.js
MitarashiDango/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...
app/js/components/Header/Header.js
jagatjeevan/dakiya
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Dropdown, DropdownMenu, DropdownItem } from 'reactstrap'; import Parse from '../../actions/parseConfig'; import { logout } from '../../actions/auth'; function mapStateToProps(state) { ...
my-redux-notes/my-react-redux/src/index.js
wumouren/react-demo
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import { Provider } from './redux' const state = { head: '我是全局 head', body: '我是全局 body', headBtn: '修改 head', bodyBtn: '修改 body' } ReactDOM.render( <Provider store={state}> <App /> </Provider>, ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsUninitialized.js
JonathanUsername/flow
// @flow import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props> { static defaultProps: DefaultProps; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<DefaultProps, Props...
ajax/libs/yui/3.7.0/simpleyui/simpleyui-debug.js
rndme/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @main yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI gl...
app/jsx/shared/components/ErrorBoundary.js
djbender/canvas-lms
/* * Copyright (C) 2019 - 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...
src/svg-icons/content/remove-circle-outline.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8...