path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
imports/ui/components/InitiatePayment/InitiatePayment.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, Panel , Form , FormControl, Button , Label , Well , Image , Table , Jumbotron} from 'react-bootstrap'; import { Bert } from 'meteor/themeteorchef:bert'; import validate from ...
src/svg-icons/editor/format-list-bulleted.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListBulleted = (props) => ( <SvgIcon {...props}> <path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 ...
src/base/static/components/form-fields/types/range-field-response.js
smartercleanup/platform
/** @jsx jsx */ import React from "react"; import PropTypes from "prop-types"; import { css, jsx } from "@emotion/core"; import { withTheme } from "emotion-theming"; import { RegularText } from "../../atoms/typography"; const RangeFieldResponse = props => { return ( <RegularText css={css` margin: ...
ajax/libs/forerunnerdb/1.3.561/fdb-core+persist.min.js
holtkamp/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
web/src/js/components/Dashboard/SettingsButtonComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import { get } from 'lodash/object' import { withStyles } from '@material-ui/core/styles' import IconButton from '@material-ui/core/IconButton' import MoreVertIcon from '@material-ui/icons/MoreVert' const styles = { settingsIcon: { padding: 0, widt...
source/patterns/01-molecules/media/__tests__/media.spec.js
apparena/patterns
/* eslint-env mocha */ import React from 'react'; import {shallow, configure} from 'enzyme'; import Index from '../index'; import Adapter from 'enzyme-adapter-react-16'; configure({adapter: new Adapter()}); test('renders media', () => { const wrapper = shallow( <Index classNames="custom-media" ...
src/svg-icons/av/snooze.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSnooze = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
test/test_helper.js
venus-nautiyal/react_app
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/List11/lten2.js
DangrMiao/House
/** * Sample React Native App * https://github.com/facebook/react-native */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class lten2 extends Component { render() { return ( <View style={styles.contain...
web/app/themes/Bright-Creations-Task/assets/js/jquery.min.js
PeterBassemWilliam/creations_task
/*! 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...
public/javascripts/lib/jquery.js
okunishinishi/sellit
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function (window, undefined) { // Can't do th...
ajax/libs/yasqe/1.5.4/yasqe.bundled.min.js
honestree/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.YASQE=e()}}(function(){var e;return function t(e,i,r)...
client/src/app/views/application.js
jhuntoo/starhackit
import React from 'react'; import Reflux from 'reflux'; import ThemeManager from 'material-ui/lib/styles/theme-manager'; import analyticsStore from 'stores/analytics'; import MyRawTheme from './rawTheme'; import NavBar from 'components/navbar'; import Footer from 'components/footer'; import Debug from 'debug'; let de...
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base-debug.js
pm5/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-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
frontend/app/js/components/project/settings_add.js
serverboards/serverboards
import React from 'react' import Link from 'app/router' import i18n from 'app/utils/i18n' class Settings extends React.Component{ constructor(props){ super(props) this.state = { shortname: "" } } updateShortname(){ if (this.props.shortname) return; const name = $(this.refs.name).val() l...
app/index.js
princeV/koa2-react-redux-webpack-boilerplate
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import Counter from './components/Counter' import counter from './reducers' const store = createStore(counter) const rootEl = document.getElementById('root') const render = () => ReactDOM.render( <Counter value={store...
16. ASP.NET Web Forms/06. Data Source Controls/Todo.Web/Scripts/jquery-1.10.2.min.js
StefanSinapov/TelerikAcademy
/* 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...
ajax/libs/aui/5.6.10/aui/js/aui-dependencies.js
tmorin/cdnjs
!function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(....
examples/with-reason-relay/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' const isStatusCodeOk = (res) => { try { return `${res.statusCode}`.startsWith('2') } catch (e) { return true } } class MyApp extends App { static async getInitialProps({ Component, ctx }) { let pageProps = {} if (Component.getInitialProps) ...
node_modules/react-router/es6/IndexRoute.js
ottomajik/react-demo
'use strict'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e...
src/svg-icons/notification/adb.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAdb = (props) => ( <SvgIcon {...props}> <path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14...
packages/material-ui-icons/src/ChildCareTwoTone.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="M19 10c-.1 0-.19.02-.29.03-.2-.67-.49-1.29-.86-1.86C16.6 6.26 14.45 5 12 5S7.4 6.26 6.15 8.17c-.37.57-.66 1.19-.86 1.86-.1-.01-.19-.03-.29-.03-1...
web/src/js/__tests__/components/ContentView/ContentLoaderSpec.js
MatthewShao/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import withContentLoader from '../../../components/ContentView/ContentLoader' import { TFlow } from '../../ducks/tutils' import TestUtils from 'react-dom/test-utils' import mockXMLHttpRequest from 'mock-xmlhttprequest' global.XMLHttpRequest = mockXML...
docs/app/Examples/elements/List/Variations/ListExampleCelledHorizontal.js
ben174/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleCelledHorizontal = () => ( <List celled horizontal> <List.Item>About Us</List.Item> <List.Item>Contact</List.Item> <List.Item>Support</List.Item> </List> ) export default ListExampleCelledHorizontal
Team4of5/src/Team4of5_App/ProjectManagement/react-trello/src/components/Loader.js
Team4Of5/Project
import React from 'react' import {LoaderDiv, LoadingBar} from '../styles/Loader' const Loader = () => ( <LoaderDiv> <LoadingBar /> <LoadingBar /> <LoadingBar /> <LoadingBar /> </LoaderDiv> ) export default Loader
files/videojs/5.0.0-rc.15/video.js
Valve/jsdelivr
/** * @license * Video.js 5.0.0-rc.15 <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...
client/views/setupWizard/steps/FinalStep.js
VoiSmart/Rocket.Chat
import { Box, Button, Tile } from '@rocket.chat/fuselage'; import React from 'react'; import { useSetting, useSettingSetValue } from '../../../contexts/SettingsContext'; import { useTranslation } from '../../../contexts/TranslationContext'; function FinalStep() { const t = useTranslation(); const siteUrl = useSetti...
client/js/containers/ProfileCardContainer.js
SqrAK/journal
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ProfileCard from '../components/ProfileCard.js'; const mapStateToProps = (state) => { return { user: state.user }; } export default connect(mapStateToProps)(ProfileCard);
node_modules/babel-plugin-transform-react-jsx/node_modules/babel-runtime/helpers/typeof-react-element.js
abcdef506819/mantra-meteor-blog
"use strict"; var _Symbol = require("babel-runtime/core-js/symbol")["default"]; exports["default"] = typeof _Symbol === "function" && _Symbol."for" && _Symbol."for"("react.element") || 60103; exports.__esModule = true;
packages/cp-frontend/src/containers/metrics/metrics-data-hoc.js
yldio/copilot
import React, { Component } from 'react'; import { graphql } from 'react-apollo'; import find from 'lodash.find'; import uniqBy from 'lodash.uniqby'; import get from 'lodash.get'; import moment from 'moment'; export const MetricNames = [ 'AVG_MEM_BYTES', 'AVG_LOAD_PERCENT', 'AGG_NETWORK_BYTES' ]; export const w...
dashboard/client/src/js/components/modules/base/Loader.js
jigarjain/sieve
import React from 'react'; export default function () { return ( <div className="loading has-text-centered"> Loading ... </div> ); }
src/lib/reactors/HomeButton/HomeButton.js
ynunokawa/react-webmap
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // 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 us...
src/containers/book_list.js
Jesus-Gonzalez/ReactReduxTestNumberTwo
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import selectBook from '../actions/action_creators'; const BookList = ({ activeBook, books, actions }) => { if (!books) return ( <div className="alert alert-primary"> <h4 classNa...
dist/react-quill.js
groenlid/react-quill
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("quill")); else if(typeof define === 'function' && define.amd) define(["react", "quill"], factory); else if(typeof exports === 'object') e...
entry_types/scrolled/package/spec/frontend/Image-spec.js
codevise/pageflow
import React from 'react'; import '@testing-library/jest-dom/extend-expect' import {renderInEntry} from 'support'; import * as jsonLdQueries from 'support/jsonLdQueries'; import {Image} from 'frontend/Image'; import {useBackgroundFile} from 'frontend/useBackgroundFile'; import {useFile} from 'entryState'; describe('...
files/rxjs/2.2.10/rx.js
wallin/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'u...
wordpress/wp-content/themes/venturariver/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
brianr852/ventura-river
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
packages/rmw-shell/cra-template-rmw/template/src/components/Forms/Company.js
TarikHuber/react-most-wanted
import React from 'react' import { TextField } from 'mui-rff' // eslint-disable-next-line export default function ({ handleSubmit }) { return ( <form onSubmit={handleSubmit} style={{ display: 'flex', justifyContent: 'center' }} > <button type="submit" style={{ display: 'none' }} /> <d...
packages/react-redux-subspace/src/components/parentSpaced.js
mpeyper/redux-subspace
/** * Copyright 2017, IOOF Holdings Limited. * 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. */ import React from "react" import hoistNonReactStatics from "hoist-non-react-statics" import wrapDisplayName fr...
django/webcode/webcode/frontend/node_modules/react-router/es/withRouter.js
OpenKGB/webcode
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
spec/javascripts/jsx/conditional_release_stats/components/studentRangesViewSpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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...
node_modules/react-icons/fa/gittip.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaGittip = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20.3 29.1l7.8-10.6q0.3-0.5 0.5-1.3t-0.1-1.9-1.4-1.8q-0.9-0.6-1.8-0.5t-1.7 0.4-1.2 1q-0.8 0.8-2.1 0.8-1.4 0-2.2-0.8-0.5-0.7-1.2-1t-1.6-0.4-1.9 0.5q-1 0.7-1.4 1.8t-0.1 ...
src/Clearfix.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; import capitalize from './utils/capitalize'; import { DEVICE_SIZES } from './utils/StyleConfig'; const propTypes = { ...
packages/material-ui-icons/src/SlideshowOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /> , 'SlideshowOutlined');
test/specs/addons/TextArea/TextArea-test.js
Semantic-Org/Semantic-UI-React
import React from 'react' import TextArea from 'src/addons/TextArea/TextArea' import { sandbox } from 'test/utils' import * as common from 'test/specs/commonTests' // ---------------------------------------- // Wrapper // ---------------------------------------- // we need to unmount the dropdown after every test to ...
src/packages/@ncigdc/modern_components/CaseSymbol/CaseSymbol.relay.js
NCI-GDC/portal-ui
// @flow import React from 'react'; import { graphql } from 'react-relay'; import { makeFilter } from '@ncigdc/utils/filters'; import { compose, withPropsOnChange, branch, renderComponent } from 'recompose'; import { BaseQuery } from '@ncigdc/modern_components/Query'; export default (Component: ReactClass<*>) => co...
src/assets/jquery.min.js
caviles/wflows
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
packages/material-ui-icons/src/FilterBAndW.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z" /> , 'FilterBAndW');
pkg/ui/src/containers/Overview.js
matt-deboer/kuill
import React from 'react'; import {blueA200, blueA700, lightBlueA400, lightBlue900} from 'material-ui/styles/colors' import IconMemory from 'material-ui/svg-icons/hardware/memory' import IconCPU from 'material-ui/svg-icons/content/select-all' import IconStorage from 'material-ui/svg-icons/device/storage' import Icon...
ajax/libs/rxjs-dom/5.0.2/rx.dom.compat.js
redmunds/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, 'undefined': false }; var ...
src/components/TopBanner/TopBanner.js
tpphu/react-pwa
import React, { Component } from 'react'; import { Carousel } from 'react-bootstrap'; export default class TopBanner extends Component { render() { const lists = [ { id: 1, title: 'First slide label', image: 'https://media3.scdn.vn/img2/2016/12_29/T2u6rn_simg_39333c_560x230_maxb.pn...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/FormControlFeedback.js
Akkuma/npm-cache-benchmark
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
tp-3/juan-pablo-gonzalez/src/components/pages/welcome/WelcomePage.js
solp/sovos-reactivo-2017
import React from 'react'; // Since this component is simple and static, there's no parent container for it. const WelcomePage = () => { return ( <div> <h2 className="alt-header">Bienvenido a Sovosiano! </h2> <p> Esta es la pagina estatica de bienvenida solamente. Tu tendras que hacer una co...
ajax/libs/js-data/0.3.0/js-data.js
terrymun/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data.js * @version 0.2.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"!=typeof ...
__tests__/App.js
7kfpun/TWAQIReactNative
import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <App /> ); });
test/utils/CustomPropTypesSpec.js
blue68/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import CustomPropTypes from '../../src/utils/CustomPropTypes'; import {shouldWarn} from '../helpers'; function isChainableAndUndefinedOK(validatorUnderTest) { it('Should validate OK with undefined or null values', () => { assert.is...
website/src/pages/index.js
plouc/mozaik
import React from 'react' import HomeBanner from '../components/HomeBanner' import Share from '../components/Share' import Features from '../components/Features' import References from '../components/References' import ExternalPosts from '../components/ExternalPosts' const IndexPage = props => { const references =...
packages/material-ui-icons/src/Looks6Rounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M11 15h2v-2h-2v2zm8-12H5c-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-5 6h-3v2h2c1.1 0 2 .9 2 2v2c0 1.11-.9 2-2 2h-2c-1.1 0-2-.89-2-2V9c0-1.1.9-2 2-2h3c.55 0 1 .45 1 1s-.45 1-...
newclient/scripts/components/dynamic-icons/checkmark-icon/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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 Lic...
src/containers/ModalWindow.js
iris-dni/iris-frontend
import React from 'react'; import { connect } from 'react-redux'; import { ssoProviders } from 'settings'; import { hideModalWindow } from 'actions/ModalActions'; import ModalWindow from 'components/ModalWindow'; import LoginModal from 'components/LoginModal'; import ShareModal from 'components/ShareModal'; import Embe...
app/components/ActivityIndicator.js
weerakkodylr/react-native-login
import React from 'react' import { View, Text, StyleSheet, ActivityIndicator } from 'react-native' import { FormElementProperties, ContainerProperties, ScaleProperties, CommonProperties } from '../common/StyleConstants' import { connect } from 'react-redux' import { UserDataActionTypes } from '../common/Enums' const {...
examples/js/basic/large-column-table.js
pvoznyuk/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, ...
src/components/SwipeableFlatList.js
gitboss2000/react-native-swipeable-flat-list
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FlatList, PanResponder, View } from 'react-native'; import SwipeableListItem from './SwipeableListItem'; export default class SwipeableFlatList extends Component { static propTypes = { data: PropTypes.arrayOf(Pro...
app/javascript/mastodon/components/media_attachments.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { MediaGallery, Video, Audio } from 'mastodon/features/ui/util/async-components'; import Bundle from 'mastodon/features/u...
ajax/libs/highcharts/7.0.0/es-modules/parts/RangeSelector.js
cdnjs/cdnjs
/** * (c) 2010-2018 Torstein Honsi * * License: www.highcharts.com/license */ /** * Callback function to react on button clicks. * * @callback Highcharts.RangeSelectorClickCallbackFunction * * @param {global.Event} e * Event arguments. * * @param {boolean|undefined} * Return false to cancel ...
src/components/ResultSearch.js
superphy/reactapp
import React, { Component } from 'react'; import { connect } from 'react-refetch' // progress bar import CircularProgress from 'react-md/lib/Progress/CircularProgress'; // requests import { API_ROOT } from '../middleware/api' // Table import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const sid...
src/components/slide11-store.js
lucky3mvp/react-demo
import React from 'react' export default React.createClass({ render () { return ( <div className="m-code-dis with-border"> <ul> <li>store 是将 action 和 reducer 联系起来的对象</li> <li>通过 createStore( reducer, initialState ) 生成一个 store <img src="../img/s11-store-create.jpg" height="50" width="200" />...
nlyyAPP/component/药物管理/仓库/MLZXTable.js
a497500306/nlyy_APP
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Navigator, ListView, Alert } from 'react-native'; var List = require('../../../node_modules/antd-mobile/lib/list/index'); const Item = List.Item; const Brief = Item.Brief; var MLN...
node_modules/babel-traverse/lib/path/lib/hoister.js
GuillermoRivera/measures-converter
"use strict"; exports.__esModule = true; var _getIterator2 = require("babel-runtime/core-js/get-iterator"); var _getIterator3 = _interopRequireDefault(_getIterator2); var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck"); var _classCallCheck3 = _interopRequireDefault(_classCallCheck2); var _babel...
src/main/js/admin/modules/routes.js
chaokunyang/amanda
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './App' import Home from './home/Home' import Monitor from './monitor/Monitor' import Articles from './article/Articles' import Article from './article/Article' import CreateArticle from './article/CreateArticle' import Categorie...
src/components/BusStopInfo.js
proiectus/bus-stop
import React, { Component } from 'react'; import { numberOrStringProp } from '../utils/customPropTypes' class BusStopInfo extends Component { render() { return ( <h2> <strong className='bus-stop-code'>{ this.props.code }</strong> <span className='bus-stop-name'>{ this.props.name }</span> ...
packages/material-ui-icons/src/SpaceBar.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M18 9v4H6V9H4v6h16V9z" /></g> , 'SpaceBar');
ajax/libs/rxjs/2.3.25/rx.lite.extras.js
francescoagati/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, 'und...
packages/material-ui-icons/src/AddToQueueOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M11 15h2v-3h3v-2h-3V7h-2v3H8v2h3z" /><path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 14H3V5h...
app/javascript/mastodon/features/compose/components/character_counter.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { length } from 'stringz'; export default class CharacterCounter extends React.PureComponent { static propTypes = { text: PropTypes.string.isRequired, max: PropTypes.number.isRequired, }; checkRemainingText (diff) { if (diff < 0)...
src/index.js
nguoihocnghe/react-workshop-basic
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; ReactDOM.render(<App />, document.getElementById('root'));
packages/cf-component-notifications/test/Notification.js
manatarms/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { render, unmountComponentAtNode } from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import { Notification } from 'cf-component-notifications'; import jsdom from 'jsdom'; // timeout as second arg is so annoying function dela...
app/javascript/mastodon/features/list_editor/components/edit_list_form.js
tateisu/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
packages/material-ui-icons/src/WifiOutlined.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z" /><g><path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24...
test/specs/modules/Sidebar/Sidebar-test.js
shengnian/shengnian-ui-react
import React from 'react' import Sidebar from 'src/modules/Sidebar/Sidebar' import * as common from 'test/specs/commonTests' describe('Sidebar', () => { common.isConformant(Sidebar) common.hasUIClassName(Sidebar) common.rendersChildren(Sidebar) common.propKeyOnlyToClassName(Sidebar, 'visible') common.prop...
src/app.js
offenesdresden/annotieren
import './app.scss' import React from 'react' import ReactDOM from 'react-dom' import Route from 'react-route' import injectTapEventPlugin from 'react-tap-event-plugin' injectTapEventPlugin() import Navigation from './navigation' import Register from './register' import Search from './search' import SearchResults fro...
ajax/libs/yui/3.14.1/datatable-body/datatable-body.js
JGallardo/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = ...
node_modules/grunt/node_modules/grunt-legacy-log/node_modules/underscore.string/test/test_underscore/vendor/jquery.js
kailash-cd/CustomAdCreator
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL...
ajax/libs/omniscient/3.0.1/omniscient.min.js
svenanders/cdnjs
/** * Omniscient.js v3.0.1 * Authors: @torgeir,@mikaelbr ***************************************/ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n...
node_modules/react/lib/DOMProperty.js
belongco/react-multi-select-dropdown
/** * Copyright 2013-2015, 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. * * @providesModule ...
ajax/libs/react-ace/4.0.0/react-ace.min.js
cdnjs/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactAce=t():e.ReactAce=t()}(this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var r=i[n]={exports:{},id:n,loaded:!1};return ...
packages/material-ui-icons/src/Work.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4...
node_modules/react-icons/go/file-zip.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const GoFileZip = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.5 22.5v-2.5h-2.5v2.5h2.5z m0-5v-2.5h-2.5v2.5h2.5z m0-5v-2.5h-2.5v2.5h2.5z m-5 2.5h2.5v-2.5h-2.5v2.5z m15-12.5h-22.5v35h30v-27.5l-7.5-7.5z m5 32.5h-25v-30h7.5v2.5h...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
gaolichuang/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/components/Checkbox/Checkbox-story.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 { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withKnob...
src/Chromecast/index.js
holoed/AwesomeProject
'use strict'; var Http = require('HttpClient'); var Viewport = require('react-native-viewport'); var React = require('react-native'); var { AppRegistry, StyleSheet, Text, TextInput, Image, TouchableHighlight, View, ListView, NativeModules, DeviceEventEmitter, SliderIOS } = React; var { Chromeca...
app/node_modules/core-js/client/shim.js
icsbookmarket/uhmicsbookmarket
/** * core-js 2.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
src/components/ModalSelectionList.js
JacksonBates/pair-frontend
import React from 'react'; import ModalSelection from './ModalSelection'; const ModalSelectionList = props => { const modalSelections = props.modalSelections.map(selection => <ModalSelection title={selection} handleChange={props.handleChange} key={selection}/>) return ( <fieldset> <legend htmlFor="setup[...
client/complete/src/routes.js
fernandoxu/react-express-api-demo
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import App from './ui/App'; import PostList from './ui/posts/PostList'; import ShowPost from './ui/posts/ShowPost'; import NewPost from './ui/posts/NewPost'; import EditPost from './ui/posts/EditPost'; export const re...
app/javascript/mastodon/components/admin/Counter.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedNumber } from 'react-intl'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import classNames from 'classnames'; import Skeleton from 'mastodon/components/skeleton'; const percIncrease = (a,...
public/js/cat_source/es6/components/quality_report/ProductionSummary.js
riccio82/MateCat
import React from 'react' class ProductionSummary extends React.Component { getTimeToEdit = () => { let time = parseInt(this.props.jobInfo.get('total_time_to_edit') / 1000) let hours = Math.floor(time / 3600) let minutes = Math.floor((time % 3600) / 60) let seconds = Math.floor((time % 3600) % 60) ...
docs/app/Examples/elements/Input/Variations/InputExampleRightLabeled.js
koenvg/Semantic-UI-React
import React from 'react' import { Dropdown, Input } from 'semantic-ui-react' const options = [ { key: '.com', text: '.com', value: '.com' }, { key: '.net', text: '.net', value: '.net' }, { key: '.org', text: '.org', value: '.org' }, ] const InputExampleRightLabeled = () => ( <Input label={<Dropdown defau...
tests/lib/rules/indent.js
jasonsanjose/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
packages/rmw-shell/src/components/Icons/FacebookIcon.js
TarikHuber/react-most-wanted
import React from 'react' import SvgIcon from '@mui/material/SvgIcon' const FacebookIcon = (props) => { return ( <SvgIcon width={22} height={22} viewBox="0 0 266.893 266.895" enableBackground="new 0 0 266.893 266.895" {...props} > <path id="Blue_1_" d="M248...
components/illustrations/shared/number-var.js
skidding/illustrated-algorithms
import PropTypes from 'prop-types'; import React from 'react'; const { round } = Math; const PX_RATIOS = { VALUE_PER_ITEM_WIDTH: 16 / 48, }; const NumberVar = ({ value, label, }, { layout, }) => { const { blockLabelFontSize, numberVarWidth, numberVarHeight, } = layout; const valueWidth = ro...