path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
test/Styling.spec.js
madison-kerndt/avant-garde-synesthesia
import React from 'react'; import { shallow, mount, render, spys } from 'enzyme'; import { assert, expect } from 'chai'; import Styling from '../lib/components/Styling'; describe('Styling', () => { const wrapper = shallow(<Styling />); context('Styling set up', () => { it('should render within an <div>', () ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js
TryKickoff/create-kickoff-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(name) { return [ { id: 1, name: `${na...
src/components/Layout.js
verkstedt/react-amp-components
import React from 'react' import { Helmet } from 'react-helmet' import PropTypes from 'prop-types' const Layout = ({ children }) => ( <Helmet> <html lang="en" amp="" /> <meta charSet="utf-8" /> <script async="" src="https://cdn.ampproject.org/v0.js" /> <meta name="viewport" content="width=device-widt...
js/jqwidgets/demos/react/app/slider/keyboardnavigation/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js'; class App extends React.Component { componentDidMount() { this.refs.jqxSlider.focus(); } render () { return ( <div> ...
node_modules/material-ui-youtube-autocomplete/node_modules/material-ui/svg-icons/device/brightness-auto.js
iamtonybologna/freebird
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
node_modules/react-icons/md/pregnant-woman.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdPregnantWoman = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.6 21.6v6.8h-5v8.2h-5v-8.2h-3.2v-11.8c0-2.7 2.2-5 5-5s5 2.3 5 5c1.9 0.8 3.2 2.8 3.2 5z m-11.6-15c0-1.8 1.5-3.2 3.4-3.2s3.2 1.4 3.2 3.2-1.4 3.4-3.2 3.4-3.4-1....
blueocean-material-icons/src/js/components/svg-icons/av/queue-music.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQueueMusic.displayName = 'AvQueueMu...
ajax/libs/F2/1.3.3/f2.no-bootstrap.js
xissy/cdnjs
;(function(exports) { if (exports.F2 && !exports.F2_TESTING_MODE) { return; } /*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
node_modules/react-icons/lib/io/ios-person.js
bairrada97/festival
'use strict'; Object.defineProperty(exports, "__esModule", { value: 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]; } }...
fake-youtube/src/index.js
WendySanarwanto/udemy-modern-react-with-redux
import React from 'react'; import ReactDOM from 'react-dom'; import Home from './components/home'; // App is declared as a functional component, because it does not maintain any states. const App = function() { return <Home />; } ReactDOM.render(<App />, document.querySelector('#main-view'));
client/shop/shopComponent.js
mordrax/cotwmtor
import React from 'react'; import { connect } from 'react-redux'; import Equipment from '/client/player/equipmentComponent.js'; import ShopWindow from '/client/shop/shopWindowComponent.js'; import Pack from '/client/player/packComponent.js'; import Purse from '/client/player/purseComponent.js'; import * as actions fr...
src/esm/components/feedback/vertical-stepper/components/link.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className"]; import React from 'react'; import styled from 'styled-components'; import classNames from 'classnames'; import { pxToRem, stepToRem } fro...
BeeWebSite/BeeWeb/BeeWeb/Scripts/jquery-1.10.2.js
wooting/BeeWeb
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
src/Alert.js
nickuraltsev/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
lawrence-yu/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
frontend/src/Artist/History/ArtistHistoryModalContentConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { artistHistoryMarkAsFailed, clearArtistHistory, fetchArtistHistory } from 'Store/Actions/artistHistoryActions'; import ArtistHistoryModalContent from '....
fields/types/embedly/EmbedlyField.js
brianjd/keystone
import React from 'react'; import Field from '../Field'; import { FormField, FormInput } from '../../../admin/client/App/elemental'; import ImageThumbnail from '../../components/ImageThumbnail'; import NestedFormField from '../../components/NestedFormField'; module.exports = Field.create({ displayName: 'EmbedlyField...
packages/mcs-lite-ui/src/MobileDeviceCard/MobileDeviceCard.example.js
MCS-Lite/mcs-lite
import React from 'react'; import styled from 'styled-components'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import MobileDeviceCard from '.'; const StyledMobileDeviceCard = styled(MobileDeviceCard)` height: 200px; `; storiesOf('MobileDeviceCard', module) .add...
js/App/Components/Location/LocationDetails/TestLocalControl.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
packages/sounds/src/SoundsProvider/sandbox.js
romelperez/prhone-ui
import React from 'react'; import createSounds from '../createSounds'; import withSounds from '../withSounds'; import SoundsProvider from './index'; const Player = withSounds()(props => ( <button style={{ margin: 10 }} onClick={() => props.sounds[props.id].play()}> Play {props.id} </button> )); const sounds =...
node_modules/babel-traverse/lib/path/lib/virtual-types.js
aksharora/ReactNativeDemoBasic
"use strict"; exports.__esModule = true; exports.Flow = exports.Pure = exports.Generated = exports.User = exports.Var = exports.BlockScoped = exports.Referenced = exports.Scope = exports.Expression = exports.Statement = exports.BindingIdentifier = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = und...
docs/app/Examples/elements/Loader/States/index.js
ben174/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LoaderStatesExamples = () => ( <ExampleSection title='States'> <ComponentExamp...
assets/js/jquery.min.js
Corneliuscob/UBCEnvision.github.io
/*! 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/containers/toputilizers/components/TopUtilizersMultiHistogram.js
dataloom/gallery
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import { Constants } from 'lattice'; import { HistogramVisualization } from '../../visualizations/HistogramVisualization'; import { COUNT_FQN } from '../../../utils/Consts/StringConsts'; import styles from '../styles.modu...
src/svg-icons/action/assignment.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssignment = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-...
src/native/app/components/CenteredContainer.js
xiankai/triple-triad-solver
/* @flow */ import React from 'react'; import { Container } from './'; import { StyleSheet } from 'react-native'; const styles = StyleSheet.create({ centeredContainer: { justifyContent: 'center', alignItems: 'center', }, }); type Props = { style?: any, }; const CenteredContainer = ({ style, ...props }:...
examples/todomvc/components/Header.js
aheuermann/redux
import React, { PropTypes, Component } from 'react'; import TodoTextInput from './TodoTextInput'; class Header extends Component { handleSave(text) { if (text.length !== 0) { this.props.addTodo(text); } } render() { return ( <header className='header'> <h1>todos</h1> ...
src/client/FileInput.js
mcjohnalds/geocode-csv-file
// Component that lets the user choose a file when clicked. import React from 'react'; import PropTypes from 'prop-types'; class FileInput extends React.PureComponent { static propTypes = { // Standard onChange handler for an input[type=file] onChange: PropTypes.func, // Visually and functionally disable...
src/components/splitPane/Resizer.js
sanjay1909/WeaveReact
import React from 'react'; import Style from "../../utils/Style"; //code logic taken from https://github.com/tomkp/react-split-pane class Resizer extends React.Component { constructor(props) { super(props); this.onMouseDown = this.onMouseDown.bind(this); } onMouseDown(event) { ...
server/startup/accounts.js
jemsotry/store-reaction
import { Meteor } from "meteor/meteor"; import * as Collections from "/lib/collections"; import { Hooks, Logger, Reaction } from "/server/api"; export default function () { /** * Make sure initial admin user has verified their * email before allowing them to login. * * http://docs.meteor.com/#/full/accou...
src/components/shapes/index.js
brochington/Akkad
import React from 'react'; import ShapeFactory from './ShapeFactory'; // import Sphere from "./Sphere"; // import Box from "./Box"; // import Disc from "./Disc"; // import Ground from "./Ground"; // import GroundFromHeightMap from "./GroundFromHeightMap"; // import Cylinder from "./Cylinder"; // import Torus from "./T...
app/javascript/mastodon/features/directory/components/account_card.js
tootsuite/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from 'mastodon/selectors'; import Avatar from 'mastodon/compone...
files/videojs/5.0.0-18/video.js
vvo/jsdelivr
/** * @license * Video.js 5.0.0-18 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Ve...
src/components/Header.js
anibali/showoff
import React from 'react'; import * as ReactRedux from 'react-redux'; import _ from 'lodash'; import { Link } from 'react-router-dom'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Button from 'material-ui/Button'; import authActionCreators from '../redux/authActionCreators...
ajax/libs/material-ui/4.9.3/es/Popper/Popper.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import PopperJS from 'popper.js'; import { chainPropTypes, refType } from '@material-ui/utils'; i...
ajax/libs/semantic-ui-react/0.62.1/semantic-ui-react.min.js
holtkamp/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.semanticUIReact=t(require("React"),require("ReactDOM")):e.semanticUIReact=t(e.React,e.ReactDOM)}(t...
front/src/scenes/UserSettings/index.js
dherault/Aquest
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay'; import environment from '../../relayEnvironment'; import AuthBouncer from '../../components/AuthBouncer'; import LoadingIndicator from '../../components/LoadingIndicator'; import DevelopmentErrorMessage from '../../components/DevelopmentE...
docs/app/Examples/modules/Dropdown/States/DropdownExampleDisabledItem.js
shengnian/shengnian-ui-react
import React from 'react' import { Dropdown } from 'shengnian-ui-react' const options = [ { key: 1, text: 'Choice 1', value: 1 }, { key: 2, text: 'Choice 2', value: 2, disabled: true }, { key: 3, text: 'Choice 3', value: 3 }, ] const DropdownExampleDisabledItem = () => ( <Dropdown text='Dropdown' options={opt...
dispatch/static/manager/src/js/vendor/dispatch-editor/components/Embed.js
ubyssey/dispatch
import React from 'react' import R from 'ramda' import { Entity } from 'draft-js' import { Button } from '@blueprintjs/core' require('../styles/embeds/embed.scss') export default class Embed extends React.Component { constructor(props) { super(props) this.state = { editMode: false, data: this....
ajax/libs/mobx-react/0.2.3/native.js
sajochiu/cdnjs
(function() { function mrFactory(mobservable, React) { if (!mobservable) throw new Error("mobservable-react requires the Mobservable package.") if (!React) throw new Error("mobservable-react requires React to be available, or mobservable-react/native requires ReactNative to b...
examples/create-react-app/src/pages/index.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Button from 'material-ui/Button'; import Dialog, { DialogTitle, DialogContent, DialogContentText, DialogActions, } from 'material-ui/Dialog'; import Typography from 'material-ui/Typography'; import { withStyles } from 'material-ui/styles'; im...
src/shared/components/modal/modal.js
NestorSegura/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import ReactModal from 'react-modal'; import Section from 'shared/components/section/section'; import styles from './modal.css'; const Modal = ({ isOpen, title, onRequestClose, children }) => ( <ReactModal isOpen={isOpen} contentLabel={title} ...
test/EndToEnd/ProjectTemplates/WinJS.zip/default.js
alluran/node.net
// For an introduction to the Blank template, see the following documentation: // http://go.microsoft.com/fwlink/?LinkId=232509 (function () { "use strict"; WinJS.Binding.optimizeBindingReferences = true; var app = WinJS.Application; var activation = Windows.ApplicationModel.Activation; app.onac...
sites/default/files/js/js_cVXS6shKcun3PKq8WSPOPHz7Le3jEXio1kn57fWRIv0.js
deryfebriantara/symfonyId
/*! jQuery v2.1.4 | (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 windo...
app/component/NewsHeader.js
caoqianjie/react-webpack-demo1
import React from 'react'; import imgLogo from '../logo.png'; import '../src/css/NewsHeader.css'; class NewsHeader extends React.Component { getLogo() { return ( <div className="newsHeader-logo"> <a href="https://news.ycombinator.com/"><img src={imgLogo}/></a> </div> ...
ajax/libs/asynquence-contrib/0.12.0/contrib.js
seogi1004/cdnjs
/*! asynquence-contrib v0.12.0 (c) Kyle Simpson MIT License: http://getify.mit-license.org */ !function UMD(e,n){"undefined"!=typeof module&&module.exports?(module.exports=function $$inject$dependency(e){if("string"==typeof e)try{e=require(e)}catch(t){return $$inject$dependency}return n(e)},"string"==typeof e&&...
bower_components/flot/jquery.js
habibmasuro/startbootstrap-sb-admin-2
/*! * jQuery JavaScript Library v1.8.3 * 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: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...
assets/3ee4321d/jquery.min.js
phpcuder/cdemo
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
react/react-16.2.0/fixtures/ssr/src/index.js
isubham/isubham.github.io
import React from 'react'; import {hydrate} from 'react-dom'; import App from './components/App'; hydrate(<App assets={window.assetManifest} />, document);
ajax/libs/fluentui-react/7.113.3/fluentui-react.umd.min.js
cdnjs/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.FluentUIReact=t(require("React"),require("ReactDOM")):e.FluentUIReact=t(e.React,e.ReactDOM)}(windo...
packages/starter-scripts/fixtures/kitchensink/src/features/webpack/SassInclusion.js
chungchiehlun/create-starter-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './assets/sass-styles.sass'; export default () => <p id="feature-sass-inclusion">We love useless text...
ajax/libs/forerunnerdb/1.3.647/fdb-all.js
joeyparrish/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/components/RightsManager/RightsManager.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { Permissions, PermissionsSchema, Groups, Privileges, PrivilegesSchema, } from '../../organization'; import Box from '../Box'; import Label from '../Label'; import CheckBox from '../CheckBox'; /* eslint-disable no-bitwise */ const filterR...
Console/app/node_modules/rc-tree-select/lib/SelectTrigger.js
RisenEsports/RisenEsports.github.io
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _defineProperty2 = require('babel-runtime/helpers/defineProperty'); var _defineProperty3 = _interopRequireDefault(_defineProperty2); var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_e...
examples/with-overmind/components/Items.js
flybayer/next.js
import React from 'react' import { useOvermind } from '../overmind' function Items() { const { state } = useOvermind() return ( <ul> {state.items.map((item) => ( <li key={item.id}>{item.title}</li> ))} </ul> ) } export default Items
submissions/leoasis/src/JediSlot.js
okmttdhr/flux-challenge
import React from 'react'; export default class JediSlot extends React.Component { render() { const { jedi } = this.props; return <li className="css-slot"> {jedi && !jedi.fetching && <div style={jedi.isInCurrentPlanet ? { color: 'red' } : null}> <h3>{jedi.name}</h3> <h6>Homeworld: {jedi...
src/components/Row.js
williamcabrera4/chrome-app-websocket-tester
import 'flexboxgrid'; // eslint-disable-line import React from 'react'; import PropTypes from 'prop-types'; const Row = ({ className, children }) => { const elementClassName = `row ${className || ''}`; return ( <div className={elementClassName}> {children} </div> ); }; Row.propTypes = { classNam...
src/components/topic/wizard/EditTopicSettingsContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { injectIntl, FormattedMessage } from 'react-intl'; import { filteredLinkTo } from '../../util/location'; impor...
client/src/UserForm.js
panter/mykonote
import React from 'react'; import UserLinks from './UserLinks'; export default function UserForm(props) { return ( <div className="flex center"> <div className="hidden-sm"></div> <div className="full third-1000"> {props.intro ? ( <div className="card"> <footer> ...
node_modules/react-transform-hmr/src/index.js
Helena-High/school-app
import { getForceUpdate, createProxy } from 'react-proxy'; import window from 'global/window'; let componentProxies; if (window.__reactComponentProxies) { componentProxies = window.__reactComponentProxies; } else { componentProxies = {}; Object.defineProperty(window, '__reactComponentProxies', { configurable...
src/components/Breadcrumb/__tests__/Breadcrumb.Skeleton-test.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { BreadcrumbSkeleton } from '../'; import { mount } from 'enzyme'; describe('BreadcrumbSkeleton', () => { ...
ajax/libs/vue-material/1.0.0/components/MdSpeedDial/index.js
BenjaminVanRyseghem/cdnjs
module.exports=(function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esMod...
docs/src/pages/components/lists/CheckboxListSecondary.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 ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'; import ListItemText from '@material-ui/core/ListItemText'; impo...
app/javascript/mastodon/components/short_number.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers'; import { FormattedMessage, FormattedNumber } from 'react-intl'; // @ts-check /** * @callback ShortNumberRenderer * @param {JSX.Element} displayNumber Number to display * @para...
samples/JavaScript/jquery-1.4.2.min.js
scttnlsn/linguist
/*! * 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/components/Roster/Roster.js
footballhackday/hackday-example
'use strict'; import React, { Component } from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Player from './Player'; class Roster extends Component { constructor(props) { super(props); this.state = { roster: null }; } render() { if(!this.state.roster) { return null; } ...
ajax/libs/line-chart/2.0.2/LineChart.js
dhenson02/cdnjs
var n3Charts; (function (n3Charts) { 'use strict'; var LineChart = (function () { function LineChart($window, $parse, $timeout, $rootScope) { var _this = this; this.$window = $window; this.$parse = $parse; this.$timeout = $timeout; this.$rootSc...
node_modules/reactify/node_modules/react-tools/src/test/all.js
niole/GrumpCats
// This file exists both to give a single entry point for all the utility // modules in src/test and to specify an ordering on those modules, since // some still have implicit dependencies on others. require("./phantomjs-shims"); require("ReactTestUtils"); require("reactComponentExpect"); require("mocks"); require("mo...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
liruqi/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
ThinkBox.SignalR/ThinkBox.SignalR.Web.Client/Scripts/ThirdParty/jquery-1.10.2.min.js
jrob5756/SignalR-Scalability
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
src/svg-icons/action/view-quilt.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
src/FormControls/Static.js
erictherobot/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
packages/bonde-admin/src/pages/admin/mobilizations/widgets/form/settings/finish/page.js
ourcities/rebu-client
import React from 'react' import { FormattedMessage } from 'react-intl' import { FormFinishMessage } from '@/mobilizations/widgets/components' import { FormTellAFriend } from '@/mobilizations/widgets/__plugins__/form/components' const FormSettingsFinishPage = props => ( <FormFinishMessage {...props} TellAFr...
app/src/Frontend/libs/weui/components/cell/cell_footer.js
ptphp/ptphp
/** * Created by jf on 15/11/12. */ import React from 'react'; import classNames from 'classnames'; export default class CellFooter extends React.Component { render() { const {children, ...others} = this.props; const className = classNames({ weui_cell_ft: true }); ...
src/svg-icons/hardware/keyboard-arrow-left.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/> </SvgIcon> ); HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft); Hardware...
src/shared/components/Error.js
jacobkeaton1/fdi-app
/** * Error.js * * (C) 2017 mobile.de GmbH * * @author <a href="mailto:pahund@team.mobile.de">Patrick Hund</a> * @since 10 Feb 2017 */ import React from 'react'; const style = { padding: '16px' }; export default () => ( <div style={style}> <h1>Sorry!</h1> <p>Something went horribly wron...
fannie/src/javascript/jquery-ui-1.10.4/js/jquery-1.10.2.js
flathat/IS4C
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
public/js/components/Results.js
Vabrins/CadernetaDoIdoso
import React from 'react'; import ChartWeightControl from './ChartWeightControl'; import ChartGlucoseControl from './ChartGlucoseControl'; import ChartPressureControl from './ChartPressureControl'; class Results extends React.Component { constructor (props) { super(props) this.state = { lastUpdate:...
test/MediaListItemSpec.js
apkiernan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import Media from '../src/Media'; describe(`Media.ListItem`, () => { it(`uses "li"`, () => { const instance = ReactTestUtils.renderIntoDocument( <Media.ListItem/> ); assert.equal...
gxa/src/main/javascript/bundles/homepage-species-summary-panel/index.js
gxa/atlas
import React from 'react' import ReactDOM from 'react-dom' import SpeciesSummaryPanel from 'species-summary-panel' import withFetchLoader from 'atlas-react-fetch-loader' const FetchLoadSpeciesSummaryPanel = withFetchLoader(SpeciesSummaryPanel) const render = (options, target) => { ReactDOM.render(<FetchLoadSpecies...
ajax/libs/highstock/2.0.4/highstock.src.js
mgoldsborough/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highstock JS v2.0.4 (2014-09-02) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT...
docs/src/app/components/pages/discover-more/Community.js
igorbt/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} /> ...
src/navigators/DrawerNavigator.js
half-shell/react-navigation
/* @flow */ import React from 'react'; import { Dimensions, Platform, } from 'react-native'; import createNavigator from './createNavigator'; import createNavigationContainer from '../createNavigationContainer'; import TabRouter from '../routers/TabRouter'; import DrawerScreen from '../views/Drawer/DrawerScreen';...
ajax/libs/jquery-mobile/1.4.1/jquery.mobile.js
solojavier/cdnjs
/*! * jQuery Mobile 1.4.1 * Git HEAD hash: 18c1e32bfc4e0e92756dedc105d799131607f5bb <> Date: Wed Feb 12 2014 22:15:20 UTC * http://jquerymobile.com * * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ (function ( root, doc, factory ...
docs/src/ComponentsPage.js
deerawan/react-bootstrap
/* eslint react/no-did-mount-set-state: 0 */ import React from 'react'; import getOffset from 'dom-helpers/query/offset'; import css from 'dom-helpers/style'; import Affix from '../../src/Affix'; import Nav from '../../src/Nav'; import SubNav from '../../src/SubNav'; import NavItem from '../../src/NavItem'; import N...
packages/react/src/components/FlatFieldset.js
wq/wq.app
import React from 'react'; import PropTypes from 'prop-types'; export default function FlatFieldset({ label, children }) { return ( <> <h6>{label}</h6> {children} </> ); } FlatFieldset.propTypes = { label: PropTypes.string, children: PropTypes.node };
core/src/plugins/access.ajxp_conf/res/js/AdminWorkspaces/editor/FeaturesListWizard.js
pydio/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...
fixtures/packaging/brunch/dev/app/initialize.js
maxschmeling/react
var React = require('react'); var ReactDOM = require('react-dom'); ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
forum/static/js/base/jquery-1.8.3.min.js
Liubusy/V2GO
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
src/app/components/market/Settings.js
mazahell/eve-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import SystemPrice from './SystemPrice'; import { setTypePrice, changePercentage } from '../../actions/marketActions'; import { range, cloneDeep, each } from 'lodash'; class Settings extends Component { changePriceTypeComponents(typePri...
app/jsx/external_apps/components/ConfigureExternalToolButton.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
admin/src/containers/views/DocumentEdit.js
mparlak/mparlak.github.io
import React, { PropTypes, Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory, withRouter, Link } from 'react-router'; import _ from 'underscore'; import Splitter from '../../components/Splitter'; import Errors from '../../components/Erro...
examples/counter/containers/Root.js
vxsx/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
components/Clue.js
macocha/react-words
import React from 'react'; import classnames from 'classnames'; export default class Clue extends React.Component { render() { return ( <li className={classnames(['clue', {'clue-solved': this.props.solved}])}> <div className='clue-text' dangerouslySetInnerHTML={{__html: this.props.text}}></...
ajax/libs/yui/3.15.0/event-custom-base/event-custom-base.js
andrepiske/cdnjs
/* YUI 3.15.0 (build 834026e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
website-prototyping-tools/playground.js
venepe/relay
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import 'ba...
ajax/libs/yui/3.9.1/datatable-core/datatable-core-debug.js
NBZ4live/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/yui/3.17.1/event-focus/event-focus-debug.js
LostCrew/cdnjs
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Ev...
index.ios.js
infinitered/ChainReactApp
import './App/Config/ReactotronConfig' import { AppRegistry } from 'react-native' import App from './App/Containers/App' AppRegistry.registerComponent('ChainReactApp', () => App)
src/routes/Counter/components/Counter.js
rbhat0987/funfunapp
import React from 'react' import PropTypes from 'prop-types' export const Counter = ({ counter, increment, doubleAsync }) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {counter}</h2> <button className='btn btn-primary' onClick={increment}> Increment </button> {' '} <button className...