path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
ui/src/components/EditorAssembler.js
untoldwind/eightyish
import React from 'react' import * as MachineActions from '../actions/MachineActions' function assemblerEquals(lines, instructions) { if (lines.length !== instructions.length) { return false } for (let i = 0; i < lines.length; i++) { if (lines[i] !== instructions[i].assembler) { ...
packages/react-vis/src/plot/series/vertical-rect-series.js
uber/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
app/components/PostDate/index.js
brainsandspace/ship
/** * * PostDate * */ import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.p` // font-style: italic; color: #bbb; margin: 0; text-align: right; `; function PostDate(props) { return ( <Wrapper className="date"> {props.children} </Wrapper> ); } PostDate.propTypes...
src/app.js
paddykgriffin/webpack-starter-demo
const css = require('./app.scss'); import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render ( <h1>Hello world</h1>, document.getElementById('root') );
profiles/cod/themes/drupalcamp/bootstrap/js/tests/vendor/jquery.js
DavidHernandez/DrupalCampEs
/*! jQuery v1.11.0 | (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...
src/components/Banner/Banner.js
hanndbn/appDemo
import React from 'react'; //import {Link} from 'react-router'; import '../../styles/home-page.css'; class Banner extends React.Component { render() { return ( <div className="feature-adv container"> <div className="slider row"> <div className="bx-wrapper" style={{maxWidth: '100%'}}> ...
src/components/left-page.js
KoushikKumar/trade-a-book-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { BOOK } from '../constants/routes-constants'; import { updateActiveMyBookDetails } from '../actions'; class LeftPage extends Component { static contextTypes = { router: React.PropTypes.object } renderLeftPageContent(...
app/src/index.js
zhanglun/fist
import './public/css/style.less'; import firebase from 'firebase'; import 'firebase/auth'; import 'firebase/database'; import React from 'react'; import { render } from 'react-dom'; import { connect } from 'redux'; import { Provider } from 'react-redux'; import AppComponent from './components/App'; import configure...
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> ...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
cybrespace/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import ImageLoader from './image_loader'; import classNames from 'classnames'; import { changeUploadCompose } from '../../../...
node_modules/semantic-ui-react/dist/es/views/Statistic/StatisticLabel.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _isNil from 'lodash/isNil'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * A statistic can contain a label to help pro...
components/DeckCollection/Modals/NewCollectionModal.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {navigateAction} from 'fluxible-router'; import {Button, Icon, Modal, Header, Form, Dropdown, Segment, TextArea} from 'semantic-ui-react'; import FocusTrap from 'focus-trap-react'; import addNewCollection from '../../../actions/collections/addNewColl...
app/javascript/mastodon/containers/timeline_container.js
mstdn-jp/mastodon
import React, { Fragment } from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import {...
src/modules/body/Body.js
hanyoureal/armorgame
import React, { Component } from 'react'; import { shoot, getClosestItem, getHitAngle, getHitAngleSign } from '../../js/physics'; import { Armor, PropInput, Bullet, Shot } from '../elements'; let done = false; class Body extends Component { constructor() { super(); this.shoot = this.shoot.bind(this); this...
app/containers/PrimaryBlock/EditBlock.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import get from 'lodash.get'; import isEmpty from 'lodash.isempty'; import FRC from 'formsy-react-components'; import Formsy from 'formsy-react'; import { Confirm } from '../Modal'; import { modifyBo...
test/client/components/Hello.spec.js
toomastahves/node-red-starter
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { expect } from 'chai'; import { Hello } from 'client/components/Hello'; const setup = () => { const props = { message: 'hello' }; const renderer = TestUtils.createRenderer(); renderer.render(<Hello {...props} />); const o...
ajax/libs/6to5/3.0.1/browser-polyfill.js
narikei/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/common/icon.js
fmsouza/rn-seed-tabs
import React from 'react'; import { Platform } from 'react-native'; import Ionicon from 'react-native-vector-icons/Ionicons'; import Theme from '../theme'; function getSize(size) { if ((size >>> 0) > 0) return size; switch (size) { case 'small': return Theme.iconSizeSmall; default: case...
ajax/libs/yui/3.0.0pr2/loader/loader.js
jackdoyle/cdnjs
/** * Loader dynamically loads script and css files. It includes the dependency * info for the version of the library in use, and will automatically pull in * dependencies for the modules requested. It supports rollup files and will * automatically use these when appropriate in order to minimize the number of * ...
app/scripts/Mobilization/plugins/Templates/__tests__/pages/MobilizationTemplatesListPage.spec.js
igr-santos/hub-client
import React from 'react' import { shallow } from 'enzyme' import { expect } from 'chai' import { MobilizationTemplatesListPage } from '../../pages' describe('app/scripts/Mobilization/plugins/Templates/pages/MobilizationTemplatesListPage', () => { let wrapper const props = {} beforeEach(() => { wrapper = <...
pages/photo.js
jubearsun/juliasun.io
import React from 'react'; import { prefixLink } from 'gatsby-helpers'; // eslint-disable-line import Helmet from 'react-helmet'; import _ from 'lodash'; export default class Photo extends React.Component { componentDidMount() {} render() { const works = [ { img: '../img/works/photo/2.jpg', ...
code/workspaces/web-app/src/components/stacks/StackCard.spec.js
NERC-CEH/datalab
import React from 'react'; import { render } from '@testing-library/react'; import StackCard from './StackCard'; import { storageDescription, storageDisplayValue } from '../../config/storage'; jest.mock('../../hooks/usersHooks'); jest.mock('../../config/storage'); jest.mock('./StackCardActions/StackCardActions', () =...
src/svg-icons/action/group-work.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGroupWork = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5...
client/src/components/common/settings.js
natalie-elizabeth/doczy
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { Card, CardText } from 'material-ui/Card'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import RaisedButton from 'material-ui/Raise...
config/paths.js
JSLancerTeam/crystal-dashboard
'use strict'; const path = require('path'); const fs = require('fs'); const url = require('url'); // Make sure any symlinks in the project folder are resolved: // https://github.com/facebookincubator/create-react-app/issues/637 const appDirectory = fs.realpathSync(process.cwd()); const resolveApp = relativePath => pa...
ajax/libs/vue/2.3.1/vue.js
sufuf3/cdnjs
/*! * Vue.js v2.3.1 * (c) 2014-2017 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function ()...
src/index.js
flydev-labs/react-face-detector
import React from 'react'; import { render } from 'react-dom'; import './css/styles.css'; import './css/spinner.css'; import App from './components/App'; render(<App/>, document.querySelector('#main'));
src/Game.js
mamendes/3d-tic-tac-toe
import React, { Component } from 'react'; import Board from './Board.js'; import GameInfo from './GameInfo.js'; import { calculateWinners } from './helpers.js'; import './index.css'; const X = 'x'; const O = 'o'; class Game extends Component { constructor() { super(); this.state = { history: [{square...
src/components/common/svg-icons/image/tune.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTune = (props) => ( <SvgIcon {...props}> <path d="M3 17v2h6v-2H3zM3 5v2h10V5H3zm10 16v-2h8v-2h-8v-2h-2v6h2zM7 9v2H3v2h4v2h2V9H7zm14 4v-2H11v2h10zm-6-4h2V7h4V5h-4V3h-2v6z"/> </SvgIcon> ); ImageTune = pure...
src/components/common/NavBarCityAndSport.js
jinqiupeter/mtsr
import React from 'react'; import {StyleSheet, Platform, View, Text, TouchableOpacity} from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import {COLOR} from '../../config'; import * as components from '../'; export default ({city, sport, onPress}) => { return ( <components.NavBarLef...
src/routes/index.js
balintsoos/brickland
import React from 'react' import { Router, Route, IndexRoute, browserHistory } from 'react-router' import App from 'components/App' import Main from 'components/Main' import About from 'components/About' import Projects from 'components/Projects' const routes = ( <Router history={browserHistory}> <Route path="/...
src/components/navigation/NavigationBase.js
mikebarkmin/react-to-everything
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import ActionHome from 'material-ui/svg-icons/action/home'; import ActionSettings from 'material-ui/svg-icons/action/settings'; import I18n from '../../locales/I18n'; import { closeDrawer } from '../../acti...
examples/cards.js
busypeoples/reactcards.js
import React from 'react' import cards from '../dist/client.bundle' import {Foo, Bar, StatefulCounter, StatelessCounter, TodoList} from './components' import * as testSimple from './test/simple' import * as testComponents from './test/components' import * as advancedTestComponents from './test/advanced' const demo = c...
src/List/ListItemIcon.spec.js
und3fined/material-ui
// @flow weak /* eslint-env mocha */ import React from 'react'; import { assert } from 'chai'; import { createShallowWithContext } from 'test/utils'; import ListItemIcon, { styleSheet } from './ListItemIcon'; describe('<ListItemIcon />', () => { let shallow; let classes; before(() => { shallow = createShal...
src/components/Counter.js
mmapplebeck/react-redux-minesweeper
import React from 'react' import '../style/counter.scss' export default props => ( <div className="counter">{props.count}</div> )
build-bench/src/DisplayEditor.js
FredTingaud/quick-bench-front-end
import React from 'react'; import Editor from 'components/Editor.js'; class DisplayEditor extends React.Component { render() { const options = { selectOnLineNumbers: true, readOnly: true }; return ( <Editor {...this.props} options={optio...
examples/simple/components/DefaultScrollbars/App.js
zxlin/react-custom-scrollbars
import React, { Component } from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; export default class App extends Component { render() { return ( <Scrollbars style={{ height: 300 }}> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed d...
es/components/catalog-view/catalog-list.js
dearkaran/react-planner
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import PropTypes from 'prop-types'...
ajax/libs/video.js/4.4.2/video.dev.js
calebmer/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
client/src/App.js
pestrada/requests-app
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import { Layout, Header, Navigation, Drawer, Content, Button } from 'react-mdl'; import ListItem from './ListItem.js'; import RequestDialog from './RequestDialog.js'; const url = 'http://localhost:3000/requests'; class App ex...
Code_Examples/801Ugly/libraries/p5.sound.js
bensk/SE8_p5js
/*! p5.sound.js v0.3.0 2016-01-31 */ (function (root, factory) { if (typeof define === 'function' && define.amd) define('p5.sound', ['p5'], function (p5) { (factory(p5));}); else if (typeof exports === 'object') factory(require('../p5')); else factory(root['p5']); }(this, function (p5) { /** * p5....
ajax/libs/remoteStorage/0.10.2/remotestorage.js
wil93/cdnjs
/** remotestorage.js 0.10.2, http://remotestorage.io, MIT-licensed **/ /** FILE: lib/promising.js **/ (function(global) { function getPromise(builder) { var promise; if(typeof(builder) === 'function') { setTimeout(function() { try { builder(promise); } catch(e) { pr...
code/workspaces/web-app/src/components/app/Message.spec.js
NERC-CEH/datalab
import React from 'react'; import { useDispatch } from 'react-redux'; import { render, fireEvent } from '@testing-library/react'; import Message from './Message'; import messagesActions from '../../actions/messagesActions'; jest.mock('react-markdown', () => props => (<>{`React Markdown: ${props.children}`}</>)); jest...
src/svg-icons/editor/border-top.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderTop = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h...
classic/src/scenes/mailboxes/src/Scenes/AppWizardScene/AppWizardIntroScene.js
wavebox/waveboxapp
import React from 'react' import { Avatar } from '@material-ui/core' import blueGrey from '@material-ui/core/colors/blueGrey' import yellow from '@material-ui/core/colors/yellow' import { withStyles } from '@material-ui/core/styles' import FASMagicIcon from 'wbfa/FASMagic' const styles = { container: { position:...
src/react/App.js
laundree/app
// @flow /** * Module in charge of rendering either the scene * for logging in, the logged in application, or * an offline scene if there is no network connection. * Also provides internationalisation through the * IntlProvider wrapper. */ import { Buffer } from 'buffer/' import React from 'react' import LoginAp...
node_modules/react-icons/ti/social-at-circular.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiSocialAtCircular = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.7 12.5c-4.1 0-7.4 3.4-7.4 7.5s3.5 7.5 7.6 7.5c1.5 0 3-0.4 4.2-1.3 0.4-0.3 0.5-0.8 0.3-1.2-0.3-0.3-0.8-0.4-1.2-0.2-0.9 0.7-2.1 1-3.3 1-3.2 0-5.8-2.6-5.8-5...
src/svg-icons/editor/publish.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPublish = (props) => ( <SvgIcon {...props}> <path d="M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"/> </SvgIcon> ); EditorPublish = pure(EditorPublish); EditorPublish.displayName = 'EditorPublish'; EditorPub...
src/components/AllUsers.js
reindexio/reindex-starter-kit-react-auth0
import React from 'react'; import Relay from 'react-relay'; import User from './User'; const AllUsers = (props) => ( <div> <h2>All Users</h2> <ul> {props.viewer.allUsers.edges.map((edge, i) => ( <li key={i}> <User user={edge.node} /> </li> ))} </ul> </div> ); exp...
example/index.js
oneteam-dev/react-oneteam
import 'bootstrap/dist/css/bootstrap.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; const main = () => { const meta = document.createElement('meta'); meta.setAttribute('name', 'viewport'); meta.setAttribute('content', 'width=device-width, initial-scale=1'); document...
options/OnOffConfigItem.js
SuperDOgePx/chrome-extension-react
import React from 'react'; import { autobind } from 'core-decorators'; import ConfigItem from './ConfigItem'; @autobind export default class OnOffConfigItem extends ConfigItem { toggleCheckBoxHandler() { this.setValue(!this.getValue()); } renderConfig() { return ( <label className="on-off-item"> ...
app/javascript/mastodon/components/loading_indicator.js
pointlessone/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
src/containers/Navigation.js
aastein/crypto-trader
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import { connect } from 'react-redux'; import moment from 'moment'; import PropTypes from 'prop-types'; import { updateHeartbeat, fetchAccounts, fetchOrderBook, initProducts, } from '../actions'; import { round } from '../uti...
js/vendor/backbone-1.1.0.js
Yify/popcorn-app
// Backbone.js 1.1.0 // (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc. // (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(...
ajax/libs/material-ui/4.9.3/es/Tabs/TabScrollButton.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; /* eslint-disable jsx-a11y/aria-role */ import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import KeyboardArrowLeft from '...
ajax/libs/6to5/3.6.4/browser.js
NMastracchio/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.to5=e()}}(function(){var define,module,exports;return...
node_modules/react-redux/lib/components/connect.js
niukui/gitpro
'use strict'; exports.__esModule = true; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; exports["default"]...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/NavDropdown.js
JamieMason/npm-cache-benchmark
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
core/misc/tabledrag.es6.js
kaa4ever/kristiankaadk
/** * @file * Provide dragging capabilities to admin uis. */ /** * Triggers when weights columns are toggled. * * @event columnschange */ (function ($, Drupal, drupalSettings) { /** * Store the state of weight columns display for all tables. * * Default value is to hide weight columns. */ let s...
src/components/Home/Banner.js
thinq4yourself/simply-social-in
import React from 'react' import { Link } from 'react-router-dom' import { Container, Segment, Header, Form, Input, Menu, Modal, Button, Icon, Portal, Responsive } from 'semantic-ui-react' import faker from 'faker'; import ReactFilepicker from 'react-filepicker'; import api from '../../services/ap...
src/components/widgets/LineChart.js
Raathigesh/Dazzle-Starter-Kit
import React, { Component } from 'react'; import { Line } from 'react-chartjs'; import { getRandomInt } from './util'; class LineChart extends Component { constructor() { super(); this.state = { data: { labels: ['10', '20', '30', '40', '50', '60', '70'], datasets: [ { ...
src/LeaderboardHeader8/index.js
DuckyTeam/ducky-components
import Icon from '../Icon'; import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import Wrapper from '../Wrapper'; import classNames from 'classnames'; import styles from './styles.css'; function LeaderboardHeader8(props) { return ( <Wrapper className={clas...
test/CardSpec.js
jsbranco/react-materialize
/* global describe, it, expect */ import React from 'react'; import { shallow } from 'enzyme'; import Card from '../src/Card'; const wrapper = shallow( <Card title='card title' className='blue-grey darken-1' textClassName='white-text'> I am a very simple card </Card> ); describe('<Card />', () => { it('sho...
components/forms/contact/index.js
Vizzuality/gfw
import { connect } from 'react-redux'; import Component from './component'; const mapStateToProps = ({ myGfw }) => ({ initialValues: { email: myGfw && myGfw.data && myGfw.data.email } }); export default connect(mapStateToProps)(Component);
packages/ringcentral-widgets-docs/src/app/pages/Components/LinkLine/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import LinkLine from 'ringcentral-widgets/components/LinkLine'; /** * A example of `LinkLine` */ const LinkLineDemo = () => ( <LinkLine to="test string" onClick={() => null} > <span>Line</span> </LinkLine> ); export default LinkLineDemo;
ajax/libs/rxjs/2.3.3/rx.lite.extras.js
jrbasso/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, ...
addons/actions/src/components/ActionLogger/index.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Inspector from 'react-inspector'; import style from './style'; class ActionLogger extends Component { componentDidUpdate() { const latest = this.ref.latest; if (latest) { const borderLeft = style.action.borderLeft; ...
ajax/libs/es6-shim/0.20.0/es6-shim.js
pc035860/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.20.0 * see https://github.com/paulmillr/es6-shim/blob/master/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
docs/src/components/Docs/Props/index.js
michalko/draft-wyswig
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { EditorState, convertToRaw, ContentState, Modifier } from 'draft-js'; import draftToHtml from 'draftjs-to-html'; import htmlToDraft from 'html-to-draftjs'; import { Editor } from 'react-draft-wysiwyg'; import Codemirror f...
client/components/NotFoundPage.js
Treeeater/expresshome
/* eslint react/forbid-prop-types: "off" */ import React from 'react'; import { Link } from 'react-router-dom'; export class NotFoundPage extends React.Component { componentWillMount() { const { staticContext } = this.props; if (staticContext) { staticContext.is404 = true; } } render() { ...
stories/CurrentRefinements.stories.js
algolia/react-instantsearch
import React from 'react'; import { storiesOf } from '@storybook/react'; import { CurrentRefinements, Menu, NumericMenu, HierarchicalMenu, Panel, RangeInput, RefinementList, ToggleRefinement, } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('CurrentRefi...
test/react/visual/tests/__decorators__/.config.decorator.js
JulienPradet/pigment-store
import React from 'react' import {ConfigProvider} from '../../../../../src/core/display/App/util/ConfigProvider' const configDecorator = (renderFn) => () => ( <ConfigProvider config={{}}> {renderFn()} </ConfigProvider> ) export default configDecorator
app/javascript/mastodon/features/compose/components/warning.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...
src/routes/register/Register.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 PropTypes from 'prop-...
mine-data/src/Form/FormInput.js
BerlingskeMedia/nyhedsbreveprofil
import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup, Input, Label } from 'reactstrap'; import './Form.scss'; export const FormInput = ({name, label = name, type = 'text', value, onChange, pending, required, hint, ...otherProps}) => ( <div className="row justify-content-center"> <di...
src/svg-icons/action/donut-large.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDonutLarge = (props) => ( <SvgIcon {...props}> <path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18....
src/icons/IosPersonOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosPersonOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M202.4,201.7L202.4,201.7L202.4,201.7z"></path> <path d="M363.3,363.9c-12.9-4.6-31.4-6.2-43.2-8.8c-6.8-1.5-...
misc/jquery.js
idfive/drupal-boilerplate
/*! * 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/angular-google-maps/1.1.13/angular-google-maps.js
hibrahimsafak/cdnjs
/*! angular-google-maps 1.1.13 2014-07-29 * AngularJS directives for Google Maps * git: https://github.com/nlaplante/angular-google-maps.git */ /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
ajax/libs/core-js/1.2.6/library.js
LeaYeh/cdnjs
/** * core-js 1.2.6 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
src/components/manage/ManageForm.js
oraclesorg/ico-wizard
import React from 'react' import { Link } from 'react-router-dom' import { FormSpy } from 'react-final-form' import { FieldArray } from 'react-final-form-arrays' import { ManageTierBlock } from './ManageTierBlock' import classNames from 'classnames' export const ManageForm = ({ handleSubmit, invalid, pristine, ...
src/app.js
twreporter/twreporter-react
import PropTypes from 'prop-types' import React from 'react' import getRoutes from './routes' import { Provider } from 'react-redux' import { Switch, Route } from 'react-router-dom' import { createGlobalStyle } from 'styled-components' // components import AppShell from './containers/app-shell' // constants import colo...
demos/todomvc/src/components/NewTodo/index.js
FWeinb/cerebral
import React from 'react' import { connect } from 'cerebral/react' import {state, signal} from 'cerebral/tags' export default connect({ title: state`app.newTodoTitle`, titleChanged: signal`app.newTodoTitleChanged`, submitted: signal`app.newTodoSubmitted` }, function NewTodo ({ isSaving, title, titleChanged, su...
test/components/connection-card-test.js
jamppa/busa-web
import React from 'react'; import Paper from 'material-ui/lib/paper'; import ConnectionCard from '../../app/components/connection-card.jsx'; import { shallow } from 'enzyme'; import { expect } from 'chai'; describe('ConnectionCard Component', () => { it('should render first element as Paper', () => { const ren...
stories/examples/CardImageCaps.js
reactstrap/reactstrap
import React from 'react'; import { Card, CardBody, Button, CardTitle, CardText, CardImg } from 'reactstrap'; const Example = (props) => { return ( <div> <Card> <CardImg top width="100%" src="https://picsum.photos/318/180" alt="Card image cap" /> <CardBody> <CardTitle tag="h5">Car...
node_modules/react-overlays/lib/utils/ownerWindow.js
newphew92/newphew92.github.io
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = function (componentOrElement) { return (0, _ownerWindow2.default)(_reactDom2.default.findDOMNode(componentOrElement)); }; var _reactDom = require('react-dom'); var _reactDom2 = _interopRequireDefault(_reactDom); var ...
files/jquery/1.8.2/jquery.js
cesarmarinhorj/jsdelivr
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function(...
docs/src/app/components/pages/components/Popover/ExampleSimple.js
w01fgang/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Popover from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; export default class PopoverExampleSimple extends React.Component { constructor(props) { super(props); ...
src/main/resources/static/bower_components/jqwidgets/demos/react/app/calendar/defaultfunctionality/app.js
dhawal9035/WebPLP
import React from 'react'; import ReactDOM from 'react-dom'; import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js'; class App extends React.Component { render () { return ( <JqxCalendar width={220} height={220} /> ) } } ReactDOM.render(<App />, document.getElementById('app'));
ajax/libs/vue/0.11.0-rc/vue.js
BobbieBel/cdnjs
/** * Vue.js v0.11.0-rc * (c) 2014 Evan You * Released under the MIT License. */ ;(function(){ "use strict" /** * Require the module at `name`. * * @param {String} name * @return {Object} exports * @api public */ function require(name) { var module = require.modules[name]; if (!module) throw new Error...
docs/reference/html/jquery.js
coregtk/gir2objc
/* * 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. ...
examples/canjs_require/node_modules/canjs/amd/can/map.js
ABaldwinHunter/todomvc-clone
/*! * CanJS - 2.0.7 * http://canjs.us/ * Copyright (c) 2014 Bitovi * Wed, 26 Mar 2014 16:12:27 GMT * Licensed MIT * Includes: CanJS default build * Download from: http://canjs.us/ */ define(["can/util/library", "can/util/bind", "can/construct", "can/util/batch"], function (can, bind) { // ## map.js // `can....
react/reactRouterPractice/app/basic.js
huxinmin/PracticeMakesPerfect
import React from 'react' import ReactDOM from 'react-dom' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' const BasicExample = () => ( <Router> <div> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/about">About</Link></li> <li><Link to="/topics">...
client/src/routes/RecordVsLeague/RecordVsLeagueContainer.js
ccabrales/espn-fantasy-stats
import { connect } from 'react-redux'; import { fetchTeamDetailsIfNeeded } from '../../actions/teamDetailsActions'; import { getValue } from '../../services/utility'; import RecordVsLeague from './RecordVsLeague'; const mapStateToProps = state => { const { navBar, teamDetails } = state; const { leagueId, seasonId ...
ajax/libs/yasgui/1.1.11/yasgui.bundled.min.js
JimBobSquarePants/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
web/sites/all/modules/contrib/jquery_update/replace/jquery/1.6/jquery.min.js
TerraLudis/shop
/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"...
react-shrine-network-aware-code-splitting/src/components/NavBar/NavBar.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 ...
courses/react-course/src/Containers/Layout/components/UserItem/UserItem.js
Zengineers/Academy
import React from 'react'; import './user-item.css'; const UserItem = (props) => { /** * return {string} */ const handleName = () => { const { user: { name: { first, last } } } = props; const userNameArr = []; if(first) userNameArr.push(first); if(last) userNameArr.push(last); return userNameArr.join('...
assets/jquery.min.js
irwinj/eventcal
/*! 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/ItemView.js
jdaudier/Timo-Plato
import React, { Component } from 'react'; import { Button } from './Button'; import { styles } from './styles/styles'; export class ItemView extends Component { constructor(props) { super(props); this.state = { editMode: false, origProjectName: this.props.projectName, ...