path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
public/docs/api/latest/@stdlib/math/base/special/erfinv/benchmark_bundle.js
stdlib-js/www
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
internals/templates/containers/NotFoundPage/index.js
BartoszBazanski/react-100-pushup-challenge
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
tests/layouts/CoreLayout.spec.js
peksi/ilmomasiina
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { CoreLayout } from '../../src/layouts/CoreLayout/CoreLayout'; function shallowRender(component) { const renderer = TestUtils.createRenderer(); renderer.render(component); return renderer.getRenderOutput(); } function shallowRen...
stories/config.js
bogdanbiv/TokenFilter
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import {configure, storiesOf} from '@storybook/react' import React from 'react' import Basic from './examples/basic' import ExampleTokenFilter from './examples/token-filter.js' function loadStories() { // clear the cons...
js/jquery-1.11.1.min.js
joshosbrn/fear-culture-zine
/*! 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...
information/blendle-frontend-react-source/app/components/dialogues/PaymentSubscriptionResult.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { translate, translateElement } from 'instances/i18n'; import { STATUS_PENDING, STATUS_ERROR, STATUS_OK, STATUS_INITIAL } from 'app-constants'; import { providerById, prefillSelector } from 'selectors/providers'; import classNames from 'classnames'; ...
webpack/scenes/ModuleStreams/Details/ModuleStreamDetails.js
johnpmitsch/katello
import React, { Component } from 'react'; import BreadcrumbsBar from 'foremanReact/components/BreadcrumbBar'; import { translate as __ } from 'foremanReact/common/I18n'; import { PropTypes } from 'prop-types'; import api from '../../../services/api'; import ContentDetails from '../../../components/Content/Details/Conte...
src/components/form/controls/ToggleGroup.js
TechyFatih/Nuzlog
import React from 'react'; import ReactDOM from 'react-dom'; import { ButtonToolbar, ToggleButtonGroup, ToggleButton } from 'react-bootstrap'; class ToggleGroupButton extends React.Component { constructor() { super(); this.state = {focus: false}; this.handleFocus = this.handleFocus.bind(this); this.h...
src/components/Link/Link.js
tonimoeckel/lap-counter-react
/** * 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 PropTypes from 'prop-...
app/routes.js
gmassman/gmassman.com
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App.jsx'; import Home from './components/Home.jsx'; import About from './components/About.jsx'; module.exports = ( <Route path="/" component={App}> <Route path="/home" component={Home}/> <Route path="/about" compo...
docs/src/pages/components/lists/CheckboxList.js
kybarg/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'; impo...
examples/js/custom/toolbar/left-search-panel.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { con...
src/js/components/LoadingScreen.js
ilken/ChosenPokemons
import React from 'react'; export default class LoadingScreen extends React.Component { render () { return ( <div className="row loadingScreen"> <img src={this.props.loadingScreen.image} className="img-responsive loadingImage" alt="Pokemon"/> <h2 className="text-center"> {'Who\'s That Pokemon?'} </h2> ...
react/features/prejoin/components/PrejoinThirdParty.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { translate } from '../../base/i18n'; import { isVideoMutedByUser } from '../../base/media'; import { PreMeetingScreen } from '../../base/premeeting'; import { connect } from '../../base/redux'; import { getLocalJitsiVideoTrack } from '../../base/tracks'; impo...
packages/test-studio/src/components/BrandLogo.js
VegaPublish/vega-studio
/* eslint-disable max-len */ import React from 'react' const BrandLogo = props => '🔭 Lyra' export default BrandLogo
ajax/libs/angular-google-maps/2.0.15/angular-google-maps_dev_mapped.js
vetruvet/cdnjs
/*! angular-google-maps 2.0.15 2015-03-10 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, ...
src/Col.js
westonplatter/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
src/svg-icons/editor/format-list-numbered.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListNumbered = (props) => ( <SvgIcon {...props}> <path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/...
app/app.js
carney520/lg-react-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/svg-icons/image/camera-roll.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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-2V7h...
node_modules/react-router/es6/Route.js
aleksandrsmolin/react-redux-weather
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
packages/wix-style-react/src/Avatar/docs/index.story.js
wix/wix-style-react
import React from 'react'; import * as icons from 'wix-ui-icons-common'; import Avatar from '..'; import { storySettings } from './storySettings'; import { avatarColorList } from '../constants'; import { api, example, description, divider, header, importExample, playground, tab, tabs, testkit, ...
components/com_sppagebuilder/assets/reactjs/src/helpers/modal.js
hoangyen201201/TrienLamOnline
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import LinkWithTooltip from './tooltip'; import { Modal, ModalManager } from './index' import deepEqual from 'deep-equal' import { connect } from 'react-redux' import deepcopy from 'deepcopy' class SpPageBuilderModal extends Component { con...
src/svg-icons/hardware/headset.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadset = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/> </SvgIcon> ...
src/components/Note/Output/ExternalLinkNote.js
bibleexchange/be-front-new
import React from 'react'; import { Link } from 'react-router'; class ExternalLinkNote extends React.Component { render() { return (<div url={this.props.data.relatedObject.url} />); } } module.exports = ExternalLinkNote;
ajax/libs/angular.js/1.0.4/angular-scenario.js
prosenjit-itobuz/cdnjs
/*! * jQuery JavaScript Library v1.7.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. ...
ajax/libs/reactive-coffee/1.2.1/reactive-coffee.js
lxsli/cdnjs
(function() { var rxFactory, __slice = [].slice, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne...
lib/structures/ThreadChannel.js
abalabahaha/eris
"use strict"; const Collection = require("../util/Collection"); const GuildChannel = require("./GuildChannel"); const Message = require("./Message"); const ThreadMember = require("./ThreadMember"); /** * Represents a thread channel. You also probably want to look at NewsThreadChannel, PublicThreadChannel, and Private...
imports/client/ui/pages/Signup.js
mgscreativa/base
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom'; import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import handleSignup from '../../../modules/signup'; class Signup extends Component { componentDidMount() { handleSignup({ compon...
app/containers/Root.dev.js
ClearwaterClinical/cwc-react-redux-starter
import React, { Component, PropTypes } from 'react' import { Provider } from 'react-redux' import { ReduxRouter } from 'redux-router' import DevTools from './DevTools' export default class Root extends Component { render () { const { store } = this.props return ( <Provider store={store}> <div> ...
src/Tab.js
xuorig/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const Tab = React.createClass({ propTypes: { /** * @private */ active: React.PropTypes.bool, animation: React.PropTypes.bool, /** * It is used by 'Tab...
public/js/components/profile/visitor/activityfeed/activityListComp.react.js
TRomesh/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import CardMedia from 'material-ui/lib/card/card-media'; import CardText from 'material-ui/lib/card/card-text'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/...
__test__/views/Home/search-test.js
history007/karma-one
import React from 'react'; import {shallow, mount} from 'enzyme'; import {expect} from 'chai'; import {Search} from 'views/Home'; import Sinon, {spy} from 'sinon' let wrapper; let instance; let props = { onChange: spy(), onSearch: spy(), search: 'Some value' }; const VK_ENTER = 13; describe("Component [Home] [S...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Tabs.js
OpenKGB/webcode
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
assets/jqwidgets/demos/react/app/menu/verticalmenu/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxMenu from '../../../jqwidgets-react/react_jqxmenu.js'; class App extends React.Component { render() { let menuInnerHtml = ` <ul> <li><a href="#">Home</a></li> <li>Abou...
src/views/HeadNav.js
fightingm/blog
import React from "react"; export default class HeadNav extends React.Component{ constructor(props) { super(props); this.state = { sel: this.props.sel }; this.navs=["About","Portfolio","Blog","Photos"]; } setNav(ev) { var name=ev.currentTarget.getAttribute('data-nam...
ajax/libs/babel-core/5.1.13/browser-polyfill.js
sashberd/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/cyclejs-dom/10.0.0-rc20/cycle-dom.js
dc-js/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.CycleDOM = f()...
ajax/libs/yui/3.10.0/event-focus/event-focus-debug.js
BenjaminVanRyseghem/cdnjs
YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = (function() { ...
versions/1.25.7/node_modules/core-js/modules/es6.promise.js
EdwardStudy/myghostblog
'use strict'; var LIBRARY = require('./_library'); var global = require('./_global'); var ctx = require('./_ctx'); var classof = require('./_classof'); var $export = require('./_export'); var isObject = require('./_is-object'); var aFunction = require('./_a-function'); var anInstance = require('./_an-instance'); var fo...
src/app/components/blocks/_home_chart.js
mazahell/eve-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Highcharts from 'highcharts'; import { map } from 'lodash'; import { updNeed } from '../../actions/homeActions'; class HomeChart extends Component { constructor() { super(); this.init = null; this.chartID = 'homeChart...
web/src/routes/index.js
caicloud/cyclone
import { Switch, Route, Redirect } from 'react-router-dom'; import Project from '../components/project'; import StageTemplate from '../components/stageTemplate'; import Overview from '../components/overview'; import Resource from '../components/resourceTypes'; import Integration from '../components/integration'; import...
ajax/libs/react-dom/16.0.0-alpha.9/cjs/react-dom.development.js
jdh8/cdnjs
'use strict'; var _assign = require('object-assign'); var invariant = require('fbjs/lib/invariant'); var warning = require('fbjs/lib/warning'); var ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment'); var camelizeStyleName = require('fbjs/lib/camelizeStyleName'); var hyphenateStyleName = require('fbjs/lib/...
src/svg-icons/action/settings-phone.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPhone = (props) => ( <SvgIcon {...props}> <path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-...
app/javascript/mastodon/components/autosuggest_emoji.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; import { assetHost } from 'mastodon/utils/config'; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequire...
frontend/app/blog/components/SeriesNotice.js
briancappello/flask-react-spa
import React from 'react' import SeriesLink from './SeriesLink' export default ({ series, series: { part, title } }) => ( <p> <em>This article is part #{part} in the series</em> "{title}." <em> <SeriesLink series={series}>Click here to view the table of contents.</SeriesLink></em> </p> )
src/Glyphicon.js
PeterDaveHello/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import styleMaps from './styleMaps'; const Glyphicon = React.createClass({ mixins: [BootstrapMixin], propTypes: { glyph: React.PropTypes.oneOf(styleMaps.GLYPHS).isRequired }, getDefaultProps() {...
internals/templates/containers/App/index.js
Demonslyr/Donut.WFE.Customer
/** * * App.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 hot ...
ajax/libs/react-modal/0.0.3/react-modal.js
luhad/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactModal=e()}}(function(){var define,module,exports...
ajax/libs/flocks.js/0.16.3/flocks.js
emijrp/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */ /* eslint-env node,browser */ /** * The Flocks library module. * * @module Flocks * @main Flocks * @class Flocks */ // if it's in a <script> it'...
node_modules/grunt-jscs/node_modules/jscs/node_modules/babel-core/lib/transformation/pipeline.js
squarewave24/rafalbuch.com
"use strict"; exports.__esModule = true; // istanbul ignore next function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } // istanbul ignore next function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a cl...
floodwatch/src/js/components/ChartContainer.js
O-C-R/floodwatch
// @flow import React from 'react'; import { Col } from 'react-bootstrap'; import Chart from './Chart'; import type { FilterResponse } from '../api/types'; import type { VisibilityMap } from '../common/types'; type Props = { leftData: ?FilterResponse, rightData: ?FilterResponse, leftPersonal?: boolean, righ...
src/routes/Home.js
cowlik/cowlik
import React, { Component } from 'react'; import './Home.scss'; import Head from '../components/Head'; import Features from '../components/Features'; import app from '../data/app.json'; class Home extends Component { shouldComponentUpdate() { return false; }; render() { return ( ...
client/modules/Post/__tests__/components/PostCreateWidget.spec.js
jessicarobins/det
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { FormattedMessage } from 'react-intl'; import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const props = { ...
src/container/account/emailconfirm.js
hackform/nuke
import {Fragment} from 'react'; import {useLocation} from 'react-router-dom'; import {getSearchParams} from '../../utility'; import {useAuthCall, useRefreshUser} from '@xorkevin/turbine'; import { Grid, Column, Field, Form, useForm, Anchor, ButtonGroup, } from '@xorkevin/nuke'; import ButtonPrimary from '...
packages/react-reconciler/src/ReactFiberContext.new.js
terminatorheart/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {Fiber} from './ReactInternalTypes'; import type {StackCursor} from './ReactFiberStack.new'; import {isFi...
app/assets/javascripts/old/multiselect.js
Snitzle/hummingbird
/* jshint forin:true, noarg:true, noempty:true, eqeqeq:true, boss:true, undef:true, curly:true, browser:true, jquery:true */ /* * jQuery MultiSelect UI Widget 1.14pre * Copyright (c) 2012 Eric Hynds * * http://www.erichynds.com/jquery/jquery-ui-multiselect-widget/ * * Depends: * - jQuery 1.4.2+ * - jQuery U...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefinedButUsed.js
samwgoldman/flow
// @flow import React from 'react'; class MyComponent1 extends React.Component { state: State = { initialValue: this.props.value, }; } class MyComponent2 extends React.Component { render() { return this.props.children; } } class MyComponent3 extends React.Component { render() { const props = {...
definitions/npm/styled-components_v2.x.x/flow_v0.53.x-v0.74.x/test_styled-components_native_v2.x.x.js
flowtype/flow-typed
// @flow import nativeStyled, { ThemeProvider as NativeThemeProvider, withTheme as nativeWithTheme, keyframes as nativeKeyframes, } from 'styled-components/native' import React from 'react' import type { Theme as NativeTheme, Interpolation as NativeInterpolation, ReactComponentFunctional as NativeReactCompo...
src/svg-icons/av/stop.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvStop = (props) => ( <SvgIcon {...props}> <path d="M6 6h12v12H6z"/> </SvgIcon> ); AvStop = pure(AvStop); AvStop.displayName = 'AvStop'; export default AvStop;
js/components/pages/NotFound.react.js
coryrwest/cookieme
import React, { Component } from 'react'; import { Link } from 'react-router'; class NotFound extends Component { render() { return ( <article> <h1>Page not found.</h1> <Link to="/" className="btn">Home</Link> </article> ); } } export default NotFound;
tests/layouts/CoreLayout.spec.js
drbelfast/logme
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
Libraries/Image/ImageBackground.js
arthuralee/react-native
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ 'use strict'; const Image = require('./Image'); const React = require('react'); const StyleSheet = require...
src/components/Chess.js
Korkemoms/amodahl.no
// @flow import React from 'react' import '../MyContent.scss' import '../App.scss' import ChessGame from 'chess-client' import DocumentTitle from 'react-document-title' import MyHeader from '../components/MyHeader' import { Grid, PageHeader } from 'react-bootstrap' /* Purely presentational component */ const Ch...
src/components/UploadAvatar.js
Franco84/pubstomp
import React, { Component } from 'react'; import { connect } from 'react-redux' import { uploadAvatar } from '../actions' class UploadAvatar extends Component { handleChangeImage () { const _this = this; let file = _this.refs.image.files[0] let reader = new FileReader() let url = reader.readAsDataU...
src/svg-icons/navigation/chevron-left.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...
packages/material-ui-icons/src/BluetoothSearchingRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M15.98 10.28l-1.38 1.38c-.2.2-.2.51 0 .71l1.38 1.38c.28.28.75.15.85-.23.11-.5.17-1 .17-1.52 0-.51-.06-1.01-.18-1.48-.09-.38-.56-.52-.84-.24zm4.12-2.5c-.25-.55-.98-.67-1.4-.24-.26.26-.31.64-.17.98.46 1...
app/javascript/mastodon/components/logo.js
Ryanaka/mastodon
import React from 'react'; const Logo = () => ( <svg viewBox='0 0 216.4144 232.00976' className='logo'> <use xlinkHref='#mastodon-svg-logo' /> </svg> ); export default Logo;
src/Message.js
jsummer/react-ui
"use strict" import React from 'react' import classnames from 'classnames' import Overlay from './Overlay' //import { forEach } from './utils/objects' import PubSub from 'pubsub-js' import { requireCss } from './themes' requireCss('message') const ADD_MESSAGE = "EB3A79637B40" const REMOVE_MESSAGE = "73D4EF15DF50" co...
src/svg-icons/device/access-alarm.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-...
src/svg-icons/image/iso.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
tests/routes/Counter/components/Counter.spec.js
billdevcode/spaceship-emporium
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
package.js
hockeyj85/meteor-html5-dropzone
Package.describe({ name: 'hockeyj85:html5-dropzone', version: '0.0.3', // Brief, one-line summary of the package. summary: 'A lightweight self-styling html5 dropzone.', // URL to the Git repository containing the source code for this package. git: 'https://github.com/hockeyj85/meteor-html5-dropzone', // B...
docs/app/Examples/elements/Button/Usage/index.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ButtonUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExampl...
cra-network-aware-data-fetching/src/App.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
ajax/libs/extjs/4.2.1/src/layout/container/Box.js
zhangbg/cdnjs
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
webpack.unmix.js
omkelderman/osu-web
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. 'use strict'; //#region plugin imports const Autoprefixer = require('autoprefixer'); const CopyPlugin = require('copy-webpack-plugin'); const ...
app/containers/FeaturePage/messages.js
rajeshbhatt/shopping-cart-redux
/* * FeaturePage Messages * * This contains all the text for the FeaturePage component. */ import { defineMessages } from 'react-intl'; export default defineMessages({ header: { id: 'boilerplate.containers.FeaturePage.header', defaultMessage: 'Features', }, scaffoldingHeader: { id: 'boilerplate.c...
client/src/app/views/registrationComplete.js
FrontSmith/FSFramework
import React from 'react'; import Reflux from 'reflux'; import { History } from 'react-router'; import DocTitle from 'components/docTitle'; import Debug from 'debug'; let debug = new Debug("views:registrationComplete"); import authStore from 'stores/auth'; import authActions from 'actions/auth'; export default React...
admin/assets/js/uncompressed/x-editable/bootstrap-editable.js
micwallace/wallacepos
/*! 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 form tag...
src/svg-icons/device/battery-charging-90.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12...
examples/react/src/index.js
brandondoran/rollbar-sourcemap-webpack-plugin
import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; import rollbar from './rollbar'; window.Rollbar = rollbar; render(<App />, document.getElementById('root'));
front/components/landingpage/landinglogin.js
bigkangtheory/wanderly
import React, { Component } from 'react'; class LandingLogin extends Component { constructor(props) { super(props); this.state = { email: '', password: '' } } handleChange = (e) => { this.setState({[e.target.name]: e.target.value}) console.log(e.target.name, e.target.value) } ...
ajax/libs/mediaelement/1.1.4/jquery.js
mzdani/cdnjs
/*! * jQuery JavaScript Library v1.4.4 * 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. ...
ajax/libs/yui/3.6.0pr1/event-custom-base/event-custom-base.js
perdona/cdnjs
YUI.add('event-custom-base', function(Y) { /** * 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. * @module ev...
js/app.js
bokuweb/relay-sandbox
import 'babel-polyfill'; import App from './components/App'; import AppHomeRoute from './routes/AppHomeRoute'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; ReactDOM.render( <Relay.RootContainer Component={App} route={new AppHomeRoute()} />, document.getEl...
packages/wix-style-react/src/EditableTitle/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { storySettings } from './storySettings'; import EditableTitle from '..'; import { api, description, divider, example, header, importExample, playground, tab, tabs, testkit, title, } from 'wix-storybook-utils/dist/src/Sections'; import * as examples from './exam...
__tests__/js/scenes/Profile.js
arcturus/journey
import 'react-native'; import React from 'react'; import { Profile } from '../../../js/scenes/Profile'; import renderer from 'react-test-renderer'; jest.mock('../../../js/components/Header', () => 'Header'); it('renders correctly', () => { const tree = renderer.create( <Profile/> ); });
src/scripts/app.js
scyclow/fastcashmoneyplusdotbiz
import 'babel-core/polyfill'; import { createStore } from 'redux'; import rootReducer from './reducers/rootReducer'; import { Provider } from 'react-redux'; import React from 'react'; import ReactDOM from 'react'; import App from './components/App'; const store = createStore(rootReducer); ReactDOM.render( <Provid...
src/app/AppContainer.js
dsp-uber/sfmovies
import { connect } from 'react-redux'; import { fetchGenres, fetchAllMovies } from '../ducks/movies'; import App from './App'; const mapStateToProps = (state) => ({ isLoading: state.ui.isLoading }); const mapDispatchToProps = (dispatch) => ({ onLoad: () => { dispatch(fetchGenres()); return dispatch(fetchAllMovi...
scripts/jquery-1.7.1.js
msinkula/WebLabUX
/*! * 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. ...
js/components/sideBar/index.js
amandamfielding/Coffee-Shop-Mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Image, View } from 'react-native'; import { Content, Text, List, ListItem, ProgressBar } from 'native-base'; import { firebaseApp } from "../auth/authentication"; import { Font } from 'exponent'; import FontAwesome from 'react-nat...
news/routes/Latest/Latest.js
otavioarc/freeCodeCamp
import React from 'react'; const propTypes = {}; function Latest() { return ( <h2>Latest</h2> ); } Latest.displayName = 'Latest'; Latest.propTypes = propTypes; export default Latest;
classes/artifacts/zhebuy_war_exploded/static/jquery/jquery-1.9.1.js
sunye520/zhebuy
/*! * 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...
src/components/App.js
lf2941270/react-zhihu-daily
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, routes: PropTypes.object.isRequired, } shouldComponentUpd...
packages/ringcentral-widgets/components/ActionMenuList/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Modal from '../Modal'; import EntityButton from '../EntityButton'; import EntityModal from '../EntityModal'; import Button from '../Button'; import LogButton from '../LogButton'; import DeleteMessag...
tests/lib/rules/indent.js
datachand/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
src/svg-icons/action/account-box.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
docs/src/CodeExample.js
xuorig/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
src/svg-icons/action/speaker-notes-off.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpeakerNotesOff = (props) => ( <SvgIcon {...props}> <path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14...