path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
packages/material-ui-icons/src/FormatIndentIncreaseRounded.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="M4 21h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 9.21v5.59c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.8c-.31-.3...
ajax/libs/flocks.js/0.16.16/flocks.js
lobbin/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'...
source/scripts/app.js
sloyless/cr0
import React from 'react'; import ReactDOM from 'react-dom'; import {List, Map} from 'immutable'; export const INITIAL_STATE = Map(); function getModifier(state = INITIAL_STATE, abilityValue) { if (!abilityValue) return false; switch (abilityValue) { case '8': case '9': return modifer = -1; break; ca...
src/services/Services.js
kazazor/coinsmarket
import React from 'react'; import CoinsApiService from './CoinsApiService'; const Services = () => ( <div className="InvisibleServices" style={{ display: 'none' }}> <CoinsApiService /> </div> ); export default Services;
fields/types/select/SelectField.js
xyzteam2016/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValue) { // TODO: This shoul...
src/Paper/Paper.spec.js
ngbrown/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import Paper from './Paper'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Paper />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {context: {mu...
ajax/libs/flocks.js/0.14.6/flocks.min.js
CosmicWebServices/cdnjs
if("undefined"==typeof React)var React=require("react");!function(){"use strict";function j(a,b){"string"==typeof a?s(a,["warn","debug","error","log","info","exception","assert"])?console[a]("Flocks2 ["+a+"] "+b.toString()):console.log("Flocks2 [Unknown level] "+b.toString()):void 0===h.flocks_config?console.log("Flock...
src/index.js
MLoureiro/react-slingshot-test
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS files too! Webpack will run the associated loader and ...
client/app/screens/SelectTheater.js
damienomurchu/snapscreen
import React from 'react'; import { ActivityIndicator, FlatList } from 'react-native'; import { Body, Button, Card, CardItem, Container, Content, Icon, ListItem, Right, Text, } from 'native-base'; import haversine from 'haversine'; import { getTheaters } from '../api'; const styles = { content: {...
src/Composite/InputAreaWithLabelComposite/InputAreaWithLabelComposite.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import fieldLabelAttributesDriverFactory from '../../FieldLabelAttributes/FieldLabelAttributes.driver'; const inputAreaWithLabelCompositeDriverFactory = ({element, wrapper, component}) => { const label = element.childNodes[0].childN...
client/app/SocialMediaButtons/components/ButtonsCombined_test.js
initiatived21/d21
import React from 'react' import FontAwesome from 'react-fontawesome' import { shallow, mount } from 'enzyme' import sinon from 'sinon' import FacebookButton from './FacebookButton' import TwitterButton from './TwitterButton' import GoogleplusButton from './GoogleplusButton' import LinkedinButton from './LinkedinButto...
ajax/libs/primereact/6.5.0-rc.1/column/column.esm.min.js
cdnjs/cdnjs
import{Component as e}from"react";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either ...
website/src/pages/components/Highlight.js
webdriverio/webdriverio
import React from 'react' import clsx from 'clsx' import styles from './highlight.module.css' export default function Highlight({ reversed, title, img, text, isDark }) { const left = <div className={clsx('col col--6', styles.featureImage, reversed ? styles.featureImageReversed : '')}>{img}</div> const right =...
src/components/About/AboutPage.js
deepak-kapoor/react-elections-dashboard
import React from 'react'; class AboutPage extends React.Component { render() { return ( <div> <h1>About</h1> <p>This application is created using React.js.</p> <p>It is a learning exercise and there is no guarantee of data accuracy.</p> <p>Credits:</p> <ol> ...
components/Terminal.js
GitSchooled/git-started
/* eslint-disable no-undef */ // We don't need to define ipcRenderer because it will be loaded by the time this file runs. import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Term from 'term.js'; export default class Terminal extends Component { // Once the Terminal component mounts, ...
examples/universal-node/app/main.js
rollbar/rollbar.js
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
src/parser/mage/frost/modules/features/AlwaysBeCasting.js
fyruna/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Statistic from 'interface/statistics/Statistic'; import Gauge from 'interface/statistics/components/Gauge'; import STATISTIC_...
ajax/libs/yui/3.14.0/event-focus/event-focus-min.js
staabm/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
src/web/components/NewSection/index.js
lukemarsh/hq
import React from 'react'; import { createSection, toggleModal } from 'core/App/actions'; const NewSection = ({ dispatch, props }) => { const { category } = props; let title = ''; const handleChange = (evt) => { title = evt.target.value; }; const handleSubmit = (evt) => { evt.preventDefault(); ...
js/App/Components/TabViews/SubViews/ToggleButton.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/components/StatusList/index.js
pprimm/ds-contest-material
import React from 'react' import {connect} from 'cerebral/react' import {state} from 'cerebral/tags' import { Divider } from 'material-ui' import List, { ListItem, ListItemIcon, ListItemText, ListSubheader } from 'material-ui/List' import styled from 'styled-components' import HighlightOffIcon from 'material...
node_modules/babel-plugin-transform-react-remove-prop-types/src/remove.js
captify-iolenchenko/leaderboard
// @flow weak function isInside(scope, regex) { if (!scope.hub.file.opts) { return true; } const filename = scope.hub.file.opts.filename; if (!filename) { return true; } return filename.match(regex) !== null; } // Remove a specific path. export default function remove(path, globalOptions, optio...
src/App.js
AlanMorel/aria
import React from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Axios from 'axios'; import Config from './Config'; import About from './components/about/About'; import AdminPanel from './components/adminpanel/AdminPanel'; import Disclaimer from './components/disclaimer/Disclaimer';...
src/index.js
abdulhannanali/github-organization-repos
import React from 'react'; import ReactDOM from 'react-dom'; import Router from './components/Router'; ReactDOM.render( <Router />, document.getElementById('root') );
src/TabPane.js
tannewt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const TabPane = React.createClass({ propTypes: { active: React.PropTypes.bool, animation: React.PropTypes.bool, onAnimateOutEnd: React.PropTypes.func, disabled: ...
src/js/react/presentational/icons/IconTable.js
koluch/db-scheme
// @flow import React from 'react' import cn from 'bem-cn' const bem = cn('icon') class Button extends React.Component { render() { return ( <svg className={bem({'table': true})} xmlns="http://www.w3.org/2000/svg" enableBackground="new 0 0 40 40" version="1.1" viewBox="0 0 1792 1792"> ...
ajax/libs/yui/3.9.0/datatable-core/datatable-core.js
athanclark/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
ajax/libs/js-data/2.0.0-beta.9/js-data-debug.js
vfonic/cdnjs
/*! * js-data * @version 2.0.0-beta.9 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUnivers...
ajax/libs/angular.js/0.9.6/angular-scenario.min.js
rileyjshaw/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * 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/RootCloseWrapper.js
asiniy/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; // TODO: Merge this logic with dropdown logic once #526 is done. // TODO: Consider using an ES6 symbol here, once we use babel-runtime. const CLICK_WAS_INSIDE = '__click_was_inside'; function suppre...
src/components/enter-password/PasswordDialog.js
mailvelope/mailvelope
/** * Copyright (C) 2019 Mailvelope GmbH * Licensed under the GNU Affero General Public License version 3 */ import React from 'react'; import PropTypes from 'prop-types'; import * as l10n from '../../lib/l10n'; import EventHandler from '../../lib/EventHandler'; import SecurityBG from '../util/SecurityBG'; import S...
react-ui/src/components/Popover/Popover.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import styles from './Popover.scss'; import { showPopover } from '../../actions/stackOverflow'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import IosCloseOutline from 'react-icons/io/ios-close-outline'; class Popover extends Component { ...
app/index.js
osdc/hermes
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import configureStore from './store/configureStore'; import Root from './cont...
dev/scripts/components/account.js
CoryWilson/soccer-react-redux-project
import React from 'react' export default React.createClass({ render() { return ( <div> <div className="section"> <h2>Account</h2> <form> <div className="form-group"> <label>Name</label> <input ...
wrappers/json.js
agoldenduck/agoldenduck.github.io
import React from 'react' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <Helmet tit...
ajax/libs/rxjs/2.3.11/rx.all.compat.js
camelotceo/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
docs/src/pages/system/basics/Variant.js
Kagami/material-ui
import React from 'react'; import styled, { ThemeProvider } from 'styled-components'; import NoSsr from '@material-ui/core/NoSsr'; import { style, typography } from '@material-ui/system'; const variant = style({ prop: 'variant', cssProperty: false, themeKey: 'typography', }); // ⚠ Text is already defined in the...
public/vendor/jquery-1.9.1.min.js
Sleeper32/test
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
Examples/UIExplorer/ClipboardExample.js
BretJohnson/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, ...
blueprints/dumb/files/__test__/components/__name__.spec.js
tonyxiao/segment-debugger
import React from 'react' import <%= pascalEntityName %> from 'components/<%= pascalEntityName %>/<%= pascalEntityName %>' describe('(Component) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
Demo/app/Home.js
suffle/react-native-zoombox
/** * @flow */ import React, { Component } from 'react'; import { StyleSheet, TouchableHighlight, Text, View } from 'react-native'; class Home extends Component { _navigate(name) { this.props.navigator.push({ name }) } render() { return ( <View style={styles.container}> <Toucha...
ajax/libs/ember-data.js/1.0.0-beta.8/ember-data.prod.js
enricodeleo/cdnjs
/*! * @overview Ember Data * @copyright Copyright 2011-2014 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) * @version 1.0.0-beta.8.2a68c63a */ (function(global) { var define, requireModule, require, requirejs; (funct...
src/src/Components/Debugger/Stack.js
ioBroker/ioBroker.javascript
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import {withStyles} from '@material-ui/core/styles'; import SplitterLayout from 'react-splitter-layout'; import ReactJson from 'react-json-view'; import ListItem from '@material-ui/core/ListItem'; import ListItemText from '@materi...
src/server.js
hekike/ES6-Immutable-React
import path from 'path'; import Express from 'express'; import React from 'react'; import _ from 'lodash'; import ClientApp from './app'; import Layout from './Layout.jsx'; const app = Express(); var initialState = { userList: { name: 'Employees', users: [ { first: 'Such', last: 'Lajcsi' }, { ...
test/test-cases/custom-src-paths/another-folder/App.js
seek-oss/sku
import React from 'react'; export default () => <div>Hello custom src paths</div>;
js/src/3rdparty/email-verification/terms-of-service.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 lat...
Molecule/index.android.js
bamoha/Javascripters
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Molecule extends Component { render() { return ( <View style={styles.container}...
test/visual-test.js
Incubity/react-big-calendar
import React from 'react'; import { render } from 'react-dom'; import localizer from 'react-big-calendar/localizers/globalize'; import globalize from 'globalize'; import 'react-big-calendar/less/styles.less'; import Example from '../examples/demos/basic'; localizer(globalize); let App = () => ( <div style={{height...
ui/src/dashboards/routes.js
LearningLocker/learninglocker
import React from 'react'; import { Route } from 'react-router'; import { App, EmbeddableDashboard } from 'ui/containers'; export default () => <Route path="/dashboards/" component={App}> <Route path=":dashboardId" component={EmbeddableDashboard} /> </Route>;
src/client/app/page_switcher/PageSwitcherModal.js
raghuveerkancherla/yata
import React from 'react'; import AutoSuggestPageInput from '../page_list_sidebar/sub_components/AutoSuggestPage'; import {Modal} from 'react-bootstrap'; import Mousetrap from '../utils/mousetrap'; import styles from './styles.less'; var PageSwitcherModal = React.createClass({ propTypes: { onPageChangeBySearch: ...
app/javascript/mastodon/features/standalone/public_timeline/index.js
masto-donte-com-br/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...
apikeyField.js
wxtiles/mapbuilder
import React from 'react' class apikeyField extends React.Component { constructor() { super() this.state = {} this.state.apikey = '' this.handleUserInput = this.handleUserInput.bind(this) } handleUserInput(e) { var apikey = e.target.value this.props.updateApikey({apikey}) this.setSt...
src/components/ContextFields.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormField from 'grommet/components/FormField'; import Heading from 'grommet/components/Heading'; import Select from 'grommet/components/Select'; import Theme from '....
src/containers/pages/tournaments/tournaments.js
vFujin/HearthLounge
import React, { Component } from 'react'; import { connect } from "react-redux"; import Calendar from "../../../components/calendar/content/calendar"; import {fetchTournamentsRequest} from "../../../redux/tournaments/current-month/actions"; class Tournaments extends Component { componentDidMount() { document.tit...
packages/react-devtools-shell/src/app/InspectableElements/NestedProps.js
chenglou/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 React from 'react'; const object = { string: 'abc', longString: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKJLMN...
src/dumb/buttons/DoneIconButton.js
jeckhummer/wf-constructor
import React from 'react'; import {IconButton} from "./IconButton"; export class DoneIconButton extends React.Component{ render() { return ( <IconButton name="checkmark" tooltip="Save item changes" color="blue" onClick={this.props....
__tests__/boilerplate_test.js
nlhuykhang/react-switchcase-condition
// import React from 'react'; // import { // renderIntoDocument, // findRenderedDOMComponentWithClass, // findRenderedDOMComponentWithTag, // Simulate // } from 'react-addons-test-utils'; import { expect } from 'chai'; describe('Boilerplate', function () { it('should do boilerplate things', function () { ...
webapp/src/components/disease/diseasePageAssociationsTable.js
alliance-genome/agr
/* eslint-disable react/no-set-state */ import React, { Component } from 'react'; import { RemoteDataTable } from '../../components/dataTable'; class DiseasePageAssociationsTable extends Component { constructor(props) { super(props); this.state = { hideExtra: true }; this.handleToggleExtra = th...
src/NavItem.js
lo1tuma/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React.PropTypes.bool, disabled: React.Pr...
web/assets/plugins/master-slider/quick-start/masterslider/jquery.min.js
BesbesRiadh/hs-trading
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim...
ajax/libs/react-dom/15.0.2-alpha.3/react-dom-server.js
jonobr1/cdnjs
/** * ReactDOMServer v15.0.2-alpha.3 * * 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 th...
client/src/components/App/index.js
dotkom/super-duper-fiesta
import React from 'react'; import PropTypes from 'prop-types'; import { Link, Route, Switch } from 'react-router-dom'; import { connect } from 'react-redux'; import * as OfflinePluginRuntime from 'offline-plugin/runtime'; import { IS_MANAGER } from 'common/auth/permissions'; import { LoginButton } from '@dotkomonline/r...
packages/material-ui-icons/src/SentimentVerySatisfiedRounded.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="M8.88 9.94l.53.53c.29.29.77.29 1.06 0 .29-.29.29-.77 0-1.06l-.88-.88a.9959.9959 0 0 0-1.41 0l-.89.88c-.29.29-.29.77 0 1.06.29.29.77.29 1.06 0...
examples/multiple.js
eternalsky/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option } from 'rc-select'; import 'rc-select/assets/index.less'; import ReactDOM from 'react-dom'; const children = []; for (let i = 10; i < 36; i++) { children.push( <Option key={i.toString(36) + i} disabled={i === 10} title={`中文${i}`}> ...
src/components/SelectBox.js
matiaet98/generic-search
// @flow import React from 'react'; import {Component} from 'react'; import {connect} from 'react-redux'; import { Message, Icon, Form, Button, Grid, Popup, Header, Dropdown } from 'semantic-ui-react'; import {addOneSelect,addAllSelect,setSelected,removeSelect} from '../actions'; class SelectBox extends Component { ...
src/svg-icons/device/signal-cellular-3-bar.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar); DeviceS...
src/Irinamaps/Result.js
guitarbeard/Irinamaps
import React, { Component } from 'react'; import './Result.scss'; export default class Result extends Component { constructor(props) { super(props); this.state = { showMarkersList: false } } toggleMarkersList = () => { this.setState(prevState => ({ showMarkersList: !prevState.showMar...
client/components/domains/domain-suggestion/test/index.js
allendav/wp-calypso
/** * External Dependencies */ import { expect } from 'chai'; import sinon from 'sinon'; import ReactDom from 'react-dom'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; /** * Internal Dependencies */ import DomainSuggestion from 'components/domains/domain-suggestion'; import DomainPro...
ajax/libs/redux-form/6.1.0/redux-form.min.js
seogi1004/cdnjs
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("react-redux"),require("redux")):"function"==typeof define&&define.amd?define(["react","react-redux","redux"],r):"object"==typeof exports?exports.ReduxForm=r(require("react"),require("react-redux"),require("redux"...
ajax/libs/react-autocomplete/0.1.3/react-autocomplete.min.js
froala/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React")):"function"==typeof define&&define.amd?define(["React"],e):"object"==typeof exports?exports.ReactAutocomplete=e(require("React")):t.ReactAutocomplete=e(t.React)}(this,function(t){return function(t){function e(o){if(n[o])r...
src/app/pin/containers/edit.js
brandondewitt/react-pinterest-clone
import React, { Component } from 'react'; import * as PinActions from 'pin/actions'; import { connect } from 'react-redux'; import { PinForm } from 'PinForm'; import { pushState } from 'redux-router'; import { bindActionCreators } from 'redux'; import { PinDetail } from 'pin/components/PinDetail'; const pinSelector = ...
examples/gh-pages/src/pages/basics/PopUpInfoWindow.js
joshcarr/react-google-maps
import { default as React, Component } from "react"; import { GoogleMapLoader, GoogleMap, InfoWindow, Marker } from "react-google-maps"; /* * * Add <script src="https://maps.googleapis.com/maps/api/js"></script> * to your HTML to provide google.maps reference * * @author: @chiwoojo */ export default class Po...
app/containers/HomePage/style.js
ArtemDervoed/DiplomWork
import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.header` padding: 4em; background: papayawhip; `; export default Wrapper;
ajax/libs/reacthttp/0.0.4/react-http.js
cdnjs/cdnjs
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
src/utils/utils.js
eljamaki01/NewsWatcher2RWeb
import React from 'react'; import { Form, FormGroup, FormLabel, FormControl } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' export function FieldGroup({ id, icon, label, help, ...props }) { return ( <FormGroup controlId={id}> <FormLabel><FontAwesomeIcon icon={icon...
docs/app/routes.js
vageeshb/Semantic-UI-React
import React from 'react' import { Route, IndexRedirect } from 'react-router' import Root from './Components/Root' import Layout from './Components/Layout' import Introduction from './Views/Introduction' import Usage from './Views/Usage' import PageNotFound from './Views/PageNotFound' const routes = ( <Route path='...
app/layout/index.js
12go/ayayo-web
import React from 'react' const styles = { layout: { alignItems: 'stretch', display: 'flex', flexDirection: 'column', height: '100%', justifyContent: 'center', width: '100%', }, header: { fontSize: '24px', padding: '10px', textAlign: 'center', }, } export default React.cre...
ajax/libs/js-data/2.0.0-beta.8/js-data.js
redmunds/cdnjs
/*! * js-data * @version 2.0.0-beta.8 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUnivers...
es6/Carousel/Carousel.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...
src/components/Header/Header.js
bigwaterconsulting/to_dash_live
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
examples/auth-with-shared-root/components/Logout.js
taion/rrtr
import React from 'react' import auth from '../utils/auth' const Logout = React.createClass({ componentDidMount() { auth.logout() }, render() { return <p>You are now logged out</p> } }) export default Logout
app/javascript/mastodon/features/home_timeline/components/column_settings.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ColumnCollapsable from '../../../components/column_collapsable'; import SettingToggle from '../../notifications/com...
js/jquery.js
shwetankv/armadio
/*! 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...
demo/src/examples/AsyncGithubUserMentions.js
effektif/react-mentions
import React from 'react' import { MentionsInput, Mention } from '../../../src' import { provideExampleValue } from './higher-order' import defaultStyle from './defaultStyle' import defaultMentionStyle from './defaultMentionStyle' function fetchUsers(query, callback) { if (!query) return fetch(`https://api.gith...
ajax/libs/primereact/7.0.1/chips/chips.js
cdnjs/cdnjs
this.primereact = this.primereact || {}; this.primereact.chips = (function (exports, React, utils, tooltip) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLegacy(React); functi...
static/src/components/islands/IslandForest.js
andribja/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { number: number, paused: boolean }; export default ({number, paused}: Props): React.Element => { let className = 'island forest'; if (number) { className += `-${number}`; } if (paused) { className += ' paused'; ...
lib/common/mixin/store-change-behaviour.js
Jerom138/focus-components
'use strict'; var message = require('focus').message; var changeBehaviourMixin = { /** * Display a message when there is a change on a store property resulting from a component action call. * @param {object} changeInfos - An object containing all the event informations, without the data. * @return ...
tarot-reader/static/js/2.e7ee29ab.chunk.js
KrzysztofKowalski/krzysztofkowalski.github.io
/*! For license information please see 2.e7ee29ab.chunk.js.LICENSE.txt */ (this["webpackJsonptarot-reader"]=this["webpackJsonptarot-reader"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(47)},function(e,t,n){"use strict";e.exports=n(28)},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b...
core/src/plugins/gui.ajax/res/js/ui/HOCs/selection/providers.js
huzergackl/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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, either version 3 of the License, o...
src/index.js
samghelms/fast-math
import React from 'react'; import { render } from 'react-dom' import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { Provider } from 'react-redux' import mathApp from './reducers' import { createStore, applyMiddleware } from 'redux' import thunkMiddleware f...
src/components/Goodyear/MonthNames.js
Hypnosphi/goodyear-react
import React, { Component } from 'react'; import { cellHeight, yearLength, linear } from './consts'; import moment from 'moment'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Goodyear.scss'; import cx from 'classnames'; const speed = yearLength / (12 * cellHeight); class Slider ex...
test/ListGroupItemSpec.js
mcraiganthony/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ListGroupItem from '../src/ListGroupItem'; describe('ListGroupItem', function () { it('Should output a "span" with the class "list-group-item"', function () { let instance = ReactTestUtils.renderIntoDocument( <ListGro...
src/liftC.js
AlecAivazis/react-liftC
// external imports import React from 'react' export default config => component => { // the stateful class that will manage the state return class StatefulComponent extends React.Component { constructor(...args) { // instantiate this super(...args) // use the initial value of the config as ...
src/components/VmDetails/cards/OverviewCard/index.js
oVirt/ovirt-web-ui
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import sharedStyle from '../../../sharedStyle.css' import { getOsHumanName, getVmIcon, isVmNameValid, isHostNameValid } from '_/components/utils' import { enumMsg, withMsg } from '_/intl' import { generateUnique, buildMe...
src/svg-icons/notification/sync-problem.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
ajax/libs/angular.js/0.9.9/angular-scenario.js
kartikrao31/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * 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/pages/resume/index.fr.js
angeloocana/angeloocana
import React from 'react'; import TechnologiesPage from '../../components/Resume/TechnologiesPage'; import graphql from 'graphql'; export default (props) => <TechnologiesPage {...props} />; export const pageQuery = graphql` query ResumeTechnologiesFr { site { siteMetadata { resume { ...
web/src/SearchModal.js
cardigann/cardigann
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Modal, Button, Form, FormGroup, FormControl, ControlLabel, Label } from 'react-bootstrap'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import moment from 'moment'; import xhrUrl from './xhr'; import spi...
components/App/App.js
craigbilner/apple-pie-universe
import React from 'react'; export default () => (<div>hello universe</div>);
node_modules/@material-ui/core/es/FormControlLabel/FormControlLabel.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withFormControlContext from '../FormControl/withFormControlContext'; impo...