path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/svg-icons/action/https.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
src/parser/warrior/fury/modules/talents/Carnage.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage, formatNumber } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; i...
server/sonar-web/src/main/js/apps/permissions/project/components/AllHoldersList.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
node_modules/pretty-format/perf/test.js
scaulfield01/HallHorn
/** * Copyright (c) 2014-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. */ const util = ...
files/rxjs/2.3.6/rx.lite.extras.js
cake654326/jsdelivr
// 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, 'unde...
ajax/libs/material-ui/5.0.0-beta.5/legacy/Popover/Popover.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";import{chain...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxexpander.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxExpander = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
frontend-admin/src/common/containers/editFile/index.js
OptimusCrime/youkok2
import React from 'react'; import {Modal} from "../../components/modal"; import {ModalTitle} from "../../components/modal/modal-title"; import {ModalBody} from "../../components/modal/modal-body"; import EditFileData from './edit-file-data'; import {connect} from "react-redux"; import {hideEditFileModal} from "../../re...
app/app.js
janet/monkeys
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved, import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name]....
ajax/libs/react/0.13.0-alpha.1/react.js
rivanvx/cdnjs
/** * React v0.13.0-alpha.1 */ !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.React=e()}}(function...
react-flux-mui/js/material-ui/src/svg-icons/av/featured-video.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z"/> </SvgIcon> ); AvFeaturedVideo = pure(AvFeaturedVideo)...
ajax/libs/thorax/2.0.0rc6/thorax.js
mkoryak/cdnjs
/*! * jQuery JavaScript Library v1.9.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-1-14 */ (function( window, undefined ) { "use strict";...
test/TooltipSpec.js
rapilabs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Tooltip from '../src/Tooltip'; describe('Tooltip', function () { it('Should output a tooltip with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Tooltip positionTop={10} positionLeft={20}> ...
packages/material-ui-icons/src/CompassCalibrationTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M4.94 7.26l2.21 2.21c1.44-.91 3.11-1.4 4.85-1.4 1.74 0 3.41.49 4.84 1.4l2.21-2.21C17 5.79 14.56 5 12 5c-2.56 0-5.01.79-7.06 2.26z" opacity=".3" ...
docs/src/app/components/pages/components/TextField/ExampleDisabled.js
andrejunges/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleDisabled = () => ( <div> <TextField disabled={true} hintText="Disabled Hint Text" /><br /> <TextField disabled={true} id="text-field-disabled" defaultValue="Disabled Value" />...
placard/static/js/jquery.min.js
VPAC/django-placard
/*! 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...
Breakout/examples/libs/jquery.min.js
SugarPeas/prototype
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.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...
ajax/libs/js-data/1.0.0-alpha.5-0/js-data.js
AMoo-Miki/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data.js * @version 1.0.0-alpha.5-0 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefined...
app/src/components/common/CustomWebView.js
kort/kort-native
import React from 'react'; import { WebView } from 'react-native'; const CustomWebView = ({ uri, error }) => { return ( <WebView source={{ uri }} style={{ marginTop: 40, marginBottom: 40 }} renderError={error} /> ); }; export { CustomWebView };
app/views/post/index.ios.js
akveo/react-native-reddit-reader
'use strict'; var React = require('react-native'); var { StyleSheet, Text, View, Image, WebView } = React; var styles = require('./styles'); var PostView = React.createClass({ render: function() { return ( <View style={styles.container}> <WebView automaticallyAdjustContentIns...
src/components/ForkMeOnGithubRibbon.js
zwhitchcox/redux-game-of-life
import React from 'react'; const PROJECT_URL = 'https://github.com/alanrsoares/redux-game-of-life'; export default class ForkMeOnGithubRibbon extends React.Component { render() { return ( <div> <div className="github-fork-ribbon-wrapper right-bottom visible-xs"> { this.renderRibbon() } ...
ajax/libs/react-ios-switch/0.1.5-rc5/bundle.js
Amomo/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
support/jquery-1.4.1.js
smstamm/JavaScript-Koans
/*! * jQuery JavaScript Library v1.4.1 * http://jquery.com/ * * Copyright 2010, John Resig * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files...
src/js/icon/index.js
HBM/md-components
import React from 'react' export const Button = (props) => ( <button type='button' className='IconButton' {...props}> {props.children} </button> ) export const Logo = (props) => ( <svg width='68' height='61' viewBox='0 0 68 61' style={{maxWidth: '100%', maxHeight: '100%'}}> <polygon style={{fill: (props...
pages/games/[slug]/teams/[single].js
turntwogg/final-round
import React from 'react'; import Page from '../../../../components/Page'; import PageHeader from '../../../../components/PageHeader'; import PageContent from '../../../../components/PageContent'; import PageHero from '../../../../components/PageHero'; import FollowButton from '../../../../components/FollowButton'; im...
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/class-assign-unreferenced-param-deopt/actual.js
claudiopro/babel
import React from 'react'; // Regression test for https://github.com/babel/babel/issues/5552 class BugReport extends React.Component { thisWontWork = ({ color }) => (data) => { return <div color={ color }>does not reference data</div>; }; thisWorks = ({ color }) => (data) => { return <div ...
examples/js/react.js
superdesk/superdesk-ui-framework
import React from 'react'; import Prism from 'prismjs'; import NormalizeWhitespace from 'prismjs/plugins/normalize-whitespace/prism-normalize-whitespace'; import LineNumbers from 'prismjs/plugins/line-numbers/prism-line-numbers'; import Markdown from 'prismjs/components/prism-markdown'; import JSX from 'prismjs/compon...
src/components/views/context_menus/GenericElementContextMenu.js
aperezdc/matrix-react-sdk
/* Copyright 2017 New Vector Ltd 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
ajax/libs/muicss/0.2.0-rc1/react/mui-react.js
sreym/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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports...
src/views/Components/Buttons/Buttons.js
haromy/appSO
import React, { Component } from 'react'; class Buttons extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-md-6"> <div className="card"> <div className="card-header"> <strong>Options...
src/components/GrEditor.js
phodal/growth-ng
/* eslint-disable global-require,no-unused-vars,class-methods-use-this */ import React, { Component } from 'react'; import { Keyboard, Dimensions, WebView, StyleSheet, Platform } from 'react-native'; import Toast from 'react-native-simple-toast'; import Orientation from 'react-native-orientation'; import EditorWebView...
app/containers/DevTools.js
eranimo/explorer
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" defaultIsVisible={false} changePositionKey="ctrl...
node_modules/react-icons/lib/fa/firefox.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]; } }...
lib/Highlighter/stories/Highlighter.stories.js
folio-org/stripes-components
import React from 'react'; import { storiesOf } from '@storybook/react'; import withReadme from 'storybook-readme/with-readme'; import readme from '../readme.md'; import BasicUsage from './BasicUsage'; storiesOf('Highlighter', module) .addDecorator(withReadme(readme)) .add('Basic Usage', () => <BasicUsage />);
app/react-native/src/server/addons.js
rhalff/storybook
import deprecate from 'util-deprecate'; import '@storybook/addon-actions/register'; import '@storybook/addon-links/register'; deprecate(() => {}, '@storybook/react-native/addons is deprecated. See https://storybook.js.org/addons/using-addons/')();
app/components/QuickButton.js
jcasner/EarthDawnDiceRoller
import React from 'react'; import { Text, View } from 'react-native'; import Button from './Button'; import { containerStyles, textStyles } from './styles'; const QuickButton = props => <View style={containerStyles.container}> <Text style={textStyles.quickButton}>{props.name}</Text> <Button handlePress={pro...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Breadcrumb.js
JamieMason/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/unit/tabs/tabs_events.js
CoherentLabs/brackets
(function( $ ) { var state = TestHelpers.tabs.state; module( "tabs: events" ); test( "create", function() { expect( 10 ); var element = $( "#tabs1" ), tabs = element.find( "ul li" ), panels = element.children( "div" ); element.tabs({ create: function( event, ui ) { equal( ui.tab.length, 1, "tab length"...
superset-frontend/webpack.config.js
apache/incubator-superset
/* eslint-disable no-console */ /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Ver...
test/integration/image-component/default/pages/layout-intrinsic.js
flybayer/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Layout Intrinsic</p> <Image id="intrinsic1" src="/wide.png" width="1200" height="700" layout="intrinsic" ></Image> <Image id="intrinsic2" ...
ajax/libs/6to5/1.11.11/browser.js
wout/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...
ajax/libs/extjs/4.2.1/src/form/Panel.js
upgle/cdnjs
/* This file is part of Ext JS 4.2 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in...
vendor/github.com/hashicorp/consul/ui/javascripts/libs/jquery-1.10.2.min.js
needkane/n-exporter
/*! * 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(e,t){function n(e){var t=e....
index.ios.js
ajaymathur/fun-community
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './appios/app' AppRegistry.registerComponent('FunCommunity', () => App);
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
gutenye/create-react-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/style.css'; export default () => <p id="feature-css-inclusion">We love useless text.</p>;
stories/components/countdown.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { Countdown } from 'components/UI' storiesOf('Components', module).addWithChapters('Countdown', { chapters: [ { sections: [ { title: 'Default', sectionFn: () => <Countdown offset={new Date(Date.now() +...
packages/material-ui-icons/src/FormatAlignLeftSharp.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" /></React.Fragment> , 'FormatAlignLeftSharp');
node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js
jasonlarue/react-native-flashcards
'use strict'; import React, { Component } from 'react'; import { Image, Platform, StyleSheet, } from 'react-native'; import ListItem from '../../components/ListItem'; import WelcomeText from './WelcomeText'; export default class WelcomeScreen extends Component { static navigationOptions = { title: 'Welc...
ajax/libs/core-js/1.1.0/shim.js
iamJoeTaylor/cdnjs
/** * core-js 1.1.0 * 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/svg-icons/image/control-point.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPoint = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-...
client/modules/App/__tests__/Components/Footer.spec.js
4dinterface/profpruf
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
src/App.js
akoltun/reblog-front
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, match, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import createStore from 'store'; import routes from 'routes'; import prepareData from 'helpers/prepareData'; import DevTools from 'containers/DevTools'; ...
test/helpers.js
IveWong/react-bootstrap
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
src/SfWebApp/FrontOfficeBundle/Resources/public/js/jquery-1.12.0.js
ceciless/sisi_web
/*! * jQuery JavaScript Library v1.12.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-01-08T19:56Z */ (function( global, factory ) { if ( typeof module =...
desktop-application/node_modules/material-ui/lib/svg-icons/file/cloud-circle.js
santosh-surya/pcb-cnc-machine
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin'); var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi...
Lab9/app.js
prpatel/react-workshop-day1
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import Bootstrap from 'react-bootstrap'; import Jumbotron from 'react-bootstrap/lib/Jumbotron'; import Panel from 'react-bootstrap/lib/Panel'; import Input from 'react-bootstrap/lib/Input'; import Label from 'react-bootstrap/lib/L...
test/ButtonInputSpec.js
snadn/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () =>{ it('renders an input button element with type=button', function () { const instance = ReactTestUtils.renderIntoDocum...
app/views/Player/Handler.js
thomasboyt/bipp
import React from 'react'; import { connect } from 'react-redux'; import Loading from './states/Loading'; import Loaded from './states/Loaded'; import Playing from './states/Playing'; import Done from './states/Done'; import GameWrapper from '../lib/GameWrapper'; import { resetPlayback, } from '../../actions/Playba...
src/components/ui/Text.js
arayi/SLions
/** * Text * <Text h1>Hello World</Text> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text } from 'react-native'; // Consts and Libs import { AppStyles } from '@theme/'; /* Compon...
wrappers/toml.js
johnpmorris/johnpmorris.github.io
import React from 'react' import toml from 'toml-js' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of toml file</p> ...
src/containers/SidebarMenu.js
ayastreb/money-tracker
import React from 'react'; import { Route, Link } from 'react-router-dom'; import { Icon, Menu } from 'semantic-ui-react'; import routes from '../router/routes'; const SidebarMenu = ({ isOpen, toggleSidebar }) => ( <nav className={isOpen ? 'open' : 'closed'} onClick={toggleSidebar}> <Menu fluid color="blue" vert...
src/components/Header.js
toannhu/React-Pokedex
import React from 'react'; import { connect } from 'react-redux'; import { Image } from 'semantic-ui-react'; import { itemsFetchData, evolDataFetchData } from '../actions/items'; const Header = (props) => { return ( <Image fluid children={ <header id="header" style={ { backgroundRepeat: 'no-rep...
src/components/albums/Albums.js
archistackt/kts
import React from 'react'; import ListGroup from 'react-bootstrap/lib/ListGroup'; import Album from './Album'; class Albums extends React.Component { constructor(props) { super(props); this.state = { selected: null }; this.handleAlbumSelect = this.handleAlbumSelect.bind(this); } handl...
app/javascript/mastodon/features/pinned_statuses/index.js
ikuradon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
src/components/Widgets/TextControl.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; export default class StringControl extends React.Component { componentDidMount() { this.updateHeight(); } handleChange = (e) => { this.props.onChange(e.target.value); this.updateHeight(); }; updateHeight() { if (this.element.scr...
packages/website/src/components/table-of-contents/FloatingHamburgerButton.js
mucsi96/w3c-webdriver
import React from 'react'; import styled, { css } from 'styled-components'; import theme from '../../theme'; const scrollbarWidth = window.innerWidth - document.body.clientWidth; const HamburgerInner = styled.div` top: 19px; left: 11px; position: absolute; width: 40px; height: 4px; transition: transform $...
examples/js/keyboard-nav/enter-to-edit-with-nav-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
frontend/App/index.js
shoumma/ReForum
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { Provider } from 'react-redux'; import styles from './styles'; // app store import appStore from './store'; // app views import AppContainer from './App'; import AdminContaine...
src/components/input-buttons/InputButtons.js
camilacnery/simple-calculator
import React, { Component } from 'react'; import { StyleSheet, View, Text} from 'react-native'; import Button from './button/Button'; export default class InputButtons extends Component { constructor(props) { super(props); this.onKeyPressed = this.onKeyPressed.bind(this); this.handleNumberInput = this.handleN...
technology-roadmap/src/index.js
leanix/leanix-custom-reports
// 3rd party css files import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'react-bootstrap-table/css/react-bootstrap-table.css' // global dependencies import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, docum...
node_modules/material-ui-youtube-autocomplete/node_modules/material-ui/svg-icons/maps/navigation.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...
app/components/Tabs/Timeline/index.js
theterra/newsb
import React from 'react'; import moment from 'moment'; import './timeline.css'; export default class Timeline extends React.Component { //eslint-disable-line constructor(props) { super(props); this.formatTime = this.formatTime.bind(this); this.formatDate = this.formatDate.bind(this); } formatTim...
src/Select.js
ygkee/React-select
import React from 'react'; import ReactDOM from 'react-dom'; import Input from 'react-input-autosize'; import classNames from 'classnames'; import stripDiacritics from './utils/stripDiacritics'; import Async from './Async'; import Option from './Option'; import Value from './Value'; function stringifyValue (value) {...
6.webpack/message/components/MessageForm.js
zhufengnodejs/201608node
import React from 'react'; export default class MessageForm extends React.Component{ handleClick(event){ var author = this.refs.author.value;//得到作者姓名 var content = this.refs.content.value;//得到发言内容 this.props.addMessage({author,content,date:new Date()}); } render(){ return ( ...
ajax/libs/hyperform/0.9.2/hyperform.cjs.js
tonytomov/cdnjs
/*! hyperform.js.org */ 'use strict'; var registry = Object.create(null); /** * run all actions registered for a hook * * Every action gets called with a state object as `this` argument and with the * hook's call arguments as call arguments. * * @return mixed the returned value of the action calls or undefined ...
src/components/BulkOverrideDialog/BulkOverrideLoansList.js
folio-org/ui-users
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { get } from 'lodash'; import { FormattedTime, FormattedMessage, injectIntl, } from 'react-intl'; import { Icon, MultiColumnList, } from '@folio/stripes/components'; import { effectiveCallNumber } from '@folio/stripes/util';...
example/src/views/ratings.js
fengshanjian/react-native-komect-uikit
import Expo from 'expo'; import React from 'react'; import { StyleSheet, Text, View, Platform } from 'react-native'; import { Rating } from 'react-native-elements'; const WATER_IMAGE = require('../images/water.png'); class Ratings extends React.Component { ratingCompleted(rating) { console.log('Rating is: ' + r...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
fengshao0907/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import VisibilitySensor from 'react-visibility-sensor'; import AvatarItem from 'components/common/AvatarItem.react'; import Text from './Text.react'; import Image from './Image.rea...
src/svg-icons/action/date-range.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDateRange = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0...
war/resources/js/jquery-1.8.3.min.js
gmostert/wedding-invitation
/*! 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===...
public/assets/server_rendering-59ecff697e5218b32fdb676248b7e87d93c3babdf8144b5108422a578f2f1bb2.js
njd5475/rails-activity-tracker
!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){(function(t){var e=n(2),r=n(14),i=n(4),o=n(8);t.React=e,t.ReactDOMServer=r,t.createReactClass=i,t.PropTypes=o})...
client/extensions/woocommerce/components/d3/sparkline/index.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { extent as d3Extent } from 'd3-array'; import { scaleLinear as d3ScaleLinear } from 'd3-scale'; import { line as d3Line } from 'd3-shape'; import classNames from 'classnames'; import D3Base from 'woo...
ajax/libs/yui/3.9.0/simpleyui/simpleyui.js
avinassh/cdnjs
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...
packages/material-ui-icons/src/CastConnectedRounded.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M19 16V8c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v.63c3.96 1.28 7.09 4.41 8.37 8.37H18c.55 0 1-.45 1-1z" /><path d="M21 3H3c-1.1 0-2 .9-2 2v2c0 .55.45 1 1 1s1-.45 1-1V6c0-.55.45-1 1-1h16c.55...
ajax/libs/recompose/0.20.1/Recompose.js
dc-js/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
js/components/developer/create-job-screen/index.js
justarrived/p2p-client
import React, { Component } from 'react'; import { Container, Content, Button, Text } from 'native-base'; import PlaceCard from './placeCard'; import TimeCard from './timeCard'; import CalendarCard from './calendarCard'; import GlobalStyle from '../../../resources/globalStyle'; import I18n from '../../../i18n'; expor...
src/components/Container.js
elementalui/elemental
import React from 'react'; import theme from '../constants'; import PropTypes from 'prop-types'; function Container ({ children, clearfix, gutter, maxWidth, style, ...props }) { const styles = { clearfix: { clear: 'both', display: 'table', }, container: { marginLeft: 'auto', marginRight: 'auto', ...
ajax/libs/inferno-compat/1.0.0-beta36/inferno-compat.js
seogi1004/cdnjs
/*! * inferno-compat v1.0.0-beta36 * (c) 2016 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./inferno-component'), require('./inferno')) : typeof define === 'function' && define.amd ? d...
src/helpers/__tests__/getDataDependencies-test.js
mull/require_hacker_error_reproduction
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import getDataDependencies from '../getDataDependencies'; describe('getDataDependencies', () => { let getState; let dispatch; let location; let params; let CompWithFetchData; let CompWithNoData; let CompWithFetchDa...
node_modules/react-bootstrap/es/Radio.js
NickingMeSpace/questionnaire
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/js/containers/item-detail.js
designcreative/react-redux-template
import React, { Component } from 'react'; import { connect } from 'react-redux'; class ItemDetail extends Component { render() { if (!this.props.item) { return (<div>Select an item...</div>); } return ( <div> <h2>{this.props.item.title}</h2> <h4>Category: {this.props.item.cate...
app/javascript/mastodon/features/notifications/components/notification.js
h3zjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'; import { HotKeys } from 'react-hotkeys'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { me ...
node_modules/material-ui/svg-icons/maps/local-atm.js
Rabbit884/reactapp
'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...
ajax/libs/ngOfficeUiFabric/0.12.10/ngOfficeUiFabric.js
dc-js/cdnjs
/*! * ngOfficeUIFabric * http://ngofficeuifabric.com * Angular 1.x directives for Microsoft's Office UI Fabric * https://angularjs.org & https://dev.office.com/fabric * v0.12.10 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.e...
examples/js/column-filter/text-filter-with-default-value.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
ajax/libs/react-data-grid/0.12.27/react-data-grid-with-addons.js
hare1039/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReactDataGrid"] = f...
subschema/test/Field-test.js
jspears/subschema-devel
import React, { Component } from 'react'; import { expect } from 'chai'; import PropTypes from 'subschema-prop-types'; import Field from 'subschema-field'; import { newSubschemaContext } from 'subschema'; import { EditorTemplate } from 'subschema-plugin-template-editor'; import { blur, byComponent, byTag, change, i...
website/src/pages/docs/api.js
nodkz/mongodb-memory-server
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import React from 'react'; import { Redirect } from '@docusaurus/router'; import useBaseUrl from '@docusaurus/useBaseUrl'; function Api() { return <Redirect to={useBaseUrl('docs/api/index-api')} />; } export default Api;
src/components/Icons/Audio/index.js
jmikrut/keen-2017
import React from 'react'; import './Audio.css'; export default (props) => { if (props.color) { this.color = props.color; } else { this.color = '#4df7ca'; } return ( <svg className="audio" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> <path stroke={this.color} d="M15.22,5.33a6.25,6.25,0,0,1,2...
packages/material-ui-icons/src/FiberNew.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FiberNew = props => <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v...