target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
front/bookings/components/form/feeForm.js | RalphSleigh/bookings | import React from 'react'
import feeFactory from '../../../../shared/fee/feeFactory.js'
export default class FeeForm extends React.Component {
constructor(props) {
super(props);
this.updatePermission = this.updatePermission.bind(this);
}
updatePermission(e) {
this.props.update();
}
render() {
... |
ajax/libs/oboe.js/1.12.2/oboe-browser.js | menuka94/cdnjs | // This file is the concatenation of many js files.
// See https://github.com/jimhigson/oboe.js for the raw source
(function (window, Object, Array, Error, JSON, undefined ) {
// v1.12.1-7-g08a2134
/*
Copyright (c) 2013, Jim Higson
All rights reserved.
Redistribution and use in source and binary forms, with or wi... |
src/svg-icons/editor/format-line-spacing.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatLineSpacing = (props) => (
<SvgIcon {...props}>
<path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/>
</SvgIcon>
);
EditorFormatLineSpacing =... |
src/components/mana-curve/mana-curve-graph.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import Icon from "../icon";
const ManaCurveBar = ({cost, deck, icon, max, barHeight = "100%", barWidth = "1.5vh", barSpacing = ".2vh", showCount = true, showIcons = true, barColor, manaCurveObj}) => {
const costBelowSeven = (numbe... |
src/common/ReadableList.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
/**
* I think this is ugly but it works so I am going to concede and use it. Turns React elements into a human readable sentence.
* E.g. <Maintainer1><Maintainer2><Maintainer3> becomes <Maintainer1>, <Maintainer2> and <Maintainer3>
*/
const ReadableList... |
app/containers/ProfilePage/index.js | belongapp/belong | import React from 'react';
import Relay from 'react-relay';
import TrackList from 'containers/TrackList';
import NotFound from 'components/NotFound';
import UserPreview from 'containers/UserPreview';
import styles from './styles.css';
class ProfilePage extends React.Component { // eslint-disable-line react/prefer-sta... |
src/Loader.js | ship-components/ship-components-tag-input | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import css from './Loader.css';
export default class Loader extends React.Component {
/**
* Optimizes the app performance
*
* @param {array of object} nextProps
* @returns {bool}
* @memberof Loader
*... |
public/js/build/react.js | romainberger/react-chat | /**
* React v0.10.0
*/
!function(e){if("object"==typeof exports)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(){var define,module,exports;return (fu... |
app/assets/scripts/components/chart-brush.js | openaq/openaq.github.io | 'use strict';
import React from 'react';
import * as d3 from 'd3';
import _ from 'lodash';
const CHART_DEBUG = false;
// Resources:
// Brush & Zoom
// http://bl.ocks.org/mbostock/34f08d5e11952a80609169b7917d4172
// D3 Advanced Brush Style - Part 5
// http://bl.ocks.org/jisaacks/5678983
var BrushChart = React.creat... |
ajax/libs/yasqe/1.2.5/yasqe.min.js | MenZil/cdnjs | !function(e){if("object"==typeof exports)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){function n(s,a){if(!i[s]){if(!... |
analysis/demonhunterhavoc/src/modules/talents/DemonBlades.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatThousands, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import STATISTIC_ORDER from 'parser/... |
ReactNative/node_modules/react-navigation/src/views/Transitioner.js | tahashahid/cloud-computing-2017 | import React from 'react';
import { Animated, Easing, StyleSheet, View } from 'react-native';
import invariant from '../utils/invariant';
import NavigationScenesReducer from './ScenesReducer';
// Used for all animations unless overriden
const DefaultTransitionSpec = {
duration: 250,
easing: Easing.inOut(Easing.ea... |
_demo_/app/container/scanner/story.js | shoplinksys/react-native-scandit | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import React from 'react';
import { Text } from 'react-native';
import { storiesOf } from '@storybook/react-native';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
impo... |
src/components/SimplePager/Pager.js | steem/qwp-antd | import React from 'react'
import layout from 'utils/layout'
import { Icon, Input, InputNumber, Button, message } from 'antd'
import styles from './Pager.less'
import { classnames } from 'utils'
import { l } from 'utils/localization'
class SimplePager extends React.Component {
constructor (props) {
super(props)
... |
packages/interfaces/web-app/src/components/atoms/ProtectedRoute.js | assistant-os/assistant-os | import React from 'react'
import { useSelector } from 'react-redux'
import { Redirect, Route } from 'react-router-dom'
import { isAuthenticated } from 'redux/credentials'
export default props => {
const authenticated = useSelector(isAuthenticated)
if (authenticated) {
console.log('authenticated', authenticat... |
docs/src/pages/components/autocomplete/FreeSoloCreateOption.js | lgollut/material-ui | /* eslint-disable no-use-before-define */
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete, { createFilterOptions } from '@material-ui/lab/Autocomplete';
const filter = createFilterOptions();
export default function FreeSoloCreateOption() {
const [value, setValue] ... |
src/js/components/spinner.js | mdibaiee/Hawk | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
@connect(props)
export default class Spinner extends Component {
render() {
let className = 'sk-cube-grid ' + (this.props.active ? ' show' : '');
return (
<div className={className}>
... |
blueocean-material-icons/src/js/components/svg-icons/social/cake.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialCake = (props) => (
<SvgIcon {...props}>
<path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l-1.07-1.07-1.09 1.07C6.75 16.64 5... |
client/modules/core/components/.stories/poll_list_screen.js | thancock20/voting-app | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs';
import { setComposerStub } from 'react-komposer';
import PollListScreen from '../poll_list_screen.jsx';
import PollList from '../../containers/poll_... |
client/modules/Reason/components/Add/Add.js | b3j0f/lechangement | import './Add.css';
import React, { Component } from 'react';
import TextField from 'material-ui/TextField';
import ContentAdd from 'material-ui/svg-icons/content/add';
class Add extends Component {
render() {
return (
<div className="reason-add">
<form
method="post"
... |
examples/js/selection/multi-select-table.js | neelvadgama-hailo/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,
... |
docs/src/components/Slider.js | Gisto/Gisto | import React from 'react';
import colortTemesImage from '../images/colours2.png';
const images = [
'https://camo.githubusercontent.com/5d6d4a596d8a290f34c3d4997314076d27c68683/68747470733a2f2f696d6775722e636f6d2f4a7838546339732e706e67',
'https://camo.githubusercontent.com/167453afa79d0f2b3eee9b5436be08682976f5b9/... |
src/client/xmls/components/xml-list/list.js | jordond/xmlr | import React from 'react'
import { inject, observer } from 'mobx-react'
import ListItem from './list-item'
/**
* Renders the list of XMLModel's
*
* @param {Object} props
* @param {Object<XmlStore>} props.xmlStore - Reference to the XML Store
* @returns
*/
function List({ xmlStore: { list, filterText } }) {
re... |
src-client/scripts/display-cargo-details.js | VeryBarry/iLuggit | import Backbone from 'backbone'
import React from 'react'
import ACTIONS from './ACTIONS.js'
import LuggAuthView from './lugg-auth-view.js'
import $ from 'jquery'
const CargoDisplay = React.createClass({
_acceptLugg: function(){
let userid = this.refs.id.dataset.id
// console.log('id', userid);
... |
src/components/TodoPage.js | pekkis/dr-kobros-2016 | import React from 'react';
const TodoPage = props => {
const { todos, params } = props;
const currentTodo = todos.find(todo => todo.id === params.uuid);
if (!currentTodo) {
return (
<div>Not found</div>
);
}
return (
<div>
{currentTodo.text}
... |
imports/plugins/included/taxes-taxcloud/server/jobs/taxcodes.js | aeyde/reaction | import { Meteor } from "meteor/meteor";
import { Job } from "/imports/plugins/core/job-collection/lib";
import { Jobs, Packages } from "/lib/collections";
import { Hooks, Logger, Reaction } from "/server/api";
//
// helper to fetch reaction-taxes config
//
function getJobConfig() {
const config = Packages.findOne({
... |
src/domain/search/results/SearchMapResults.js | fastmonkeys/respa-ui | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import moment from 'moment';
import { Map, TileLayer, ZoomControl } from 'react-leaflet';
import Loader from 'react-loader';
import ResourceCardSlider from '../../resource/card/slider/ResourceCardSlider';
import UnitMarker fro... |
Lumino/js/screens/ControllerForm.js | evonove/lumino | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { reduxForm, change, submit } from 'redux-form';
import { View, Button, Alert } from 'react-native';
import { Picker } from 'native-base';
import styles from './style';
import { onLightControllerSubmit } from '... |
src/svg-icons/file/file-upload.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFileUpload = (props) => (
<SvgIcon {...props}>
<path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/>
</SvgIcon>
);
FileFileUpload = pure(FileFileUpload);
FileFileUpload.displayName = 'FileFileUpload';
FileFil... |
docs/src/examples/elements/Loader/Variations/LoaderExampleInline.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Loader } from 'semantic-ui-react'
const LoaderExampleInline = () => <Loader active inline />
export default LoaderExampleInline
|
sites/all/modules/jquery_update/replace/jquery/1.9/jquery.js | jrmeclt/tedxLausanne | /*!
* 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... |
ajax/libs/mobx-react/0.1.3/index.min.js | honestree/cdnjs | !function(){function e(e,t){function n(e){var n=t.findDOMNode(e);n&&c.set(n,e),d.emit({event:"render",renderTime:e.__renderEnd-e.__renderStart,totalTime:Date.now()-e.__renderStart,component:e,node:n})}function o(e,t){var n=e[t],o=h[t];e[t]=function(){n&&n.apply(this,arguments),o.apply(this,arguments)}}function r(e){if(... |
ajax/libs/react-highcharts/16.0.0/ReactHighcharts.src.js | seogi1004/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("highcharts"));
else if(typeof define === 'function' && define.amd)
define(["react", "highcharts"], factory);
else if(typeof exports === 'ob... |
src/routes/admin/Admin.js | takahashik/todo-app | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
app/javascript/mastodon/features/ui/components/column_header.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
... |
ajax/libs/mediaelement/2.4.3/jquery.js | IonicaBizauKitchen/cdnjs | /*!
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
*... |
src/svg-icons/navigation/close.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationClose = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
NavigationClose = pure(Navig... |
src/universal/pages/CreateEvent/index.js | sanchitgangwar/remind-plus | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Field, FieldArray, reduxForm } from 'redux-form';
import { Link } from 'react-router-dom';
import moment from 'moment';
import cx from 'classnames';
... |
pootle/static/js/admin/components/ItemDelete.js | Finntack/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
const ItemDelete = React.crea... |
assets/javascripts/archon/mixins/FlashMessageMixin.js | panli889/archon | import React from 'react';
import NoticeInforCard from '../components/NoticeInforCard';
let FlashMessageMixin = {
renderFlash(flash, action) {
if (!flash) {
return null;
}
const closeCard = (evt) => this.props.dispatch(action);
return (
<NoticeInforCard title='操作提示'
title... |
client/githubProjects.js | PawlakArtur/project-reactjs-github-projects | import React from 'react';
import { render } from 'react-dom';
require("./styles/style.scss");
import App from './components/App';
import GithubProject from './components/GithubProject';
import GithubProjectsGrid from './components/GithubProjectsGrid';
import { Router, Route, IndexRoute, browserHistory } from 'react... |
node_modules/react-router/es6/RoutingContext.js | xuan6/react-videos | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
src/view/WorkspaceManager.js | sophiacaspar/brackets | /*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
js/src/dapps/githubhint/Application/application.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
examples/react-router/src/index.js | stylesuxx/generator-react-webpack-redux | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './stores';
import App from './containers/App';
const store = configureStore();
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('app')
);
|
vendor/phpunit/php-code-coverage/PHP/CodeCoverage/Report/HTML/Renderer/Template/js/jquery.min.js | hrraydov/RayBlog | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
test/NavbarSpec.js | aparticka/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import Nav from '../src/Nav';
describe('Nav', function () {
it('Should create nav element', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Navbar />
);
let nav = ... |
frontend/src/Settings/Profiles/Quality/EditQualityProfileModalContentConnector.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchQualityProfileSchema, saveQualityProfile, setQualityProfileValue } from 'Store/Actions/settingsActions';
import createProf... |
src/Parser/BrewmasterMonk/Modules/Spells/BlackoutCombo.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import Combata... |
internals/templates/app.js | thuantrinh/math_is_hard | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
meteor/imports/modules/utils.js | globeandmail/chart-tool | import React from 'react';
import { Meteor } from 'meteor/meteor';
import Swal from 'sweetalert2';
import Papa from 'papaparse';
import { app_settings } from './settings';
import { timeFormat, timeParse } from 'd3-time-format';
import ChartTool from './chart-tool';
import { extent } from 'd3-array';
export function ra... |
ajax/libs/preact/4.7.2/preact.js | iwdmb/cdnjs | !function(global, factory) {
'object' == typeof exports && 'undefined' != typeof module ? module.exports = factory() : 'function' == typeof define && define.amd ? define(factory) : global.preact = factory();
}(this, function() {
'use strict';
function VNode(nodeName, attributes, children) {
this.nod... |
src/docs/components/box/BoxDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Anchor from 'grommet/components/Anchor';
import Button from 'grommet/components/Button';
import DocsArticle from '../../../components/DocsArticle';
export con... |
src/routes/user/detail/index.js | tigaly/antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import styles from './index.less'
const Detail = ({ userDetail }) => {
const { data } = userDetail
const content = []
for (let key in data) {
if ({}.hasOwnProperty.call(data, key)) {
content.push(<div key={key} c... |
packages/material-ui-icons/src/KeyboardReturnTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7h-2z" /></g></React.Fragment>
, 'KeyboardReturnTwoTone');
|
gulp/tasks/browserify.js | 8bithappy/happyhack | 'use strict';
import config from '../config';
import gulp from 'gulp';
import gulpif from 'gulp-if';
import gutil from 'gulp-util';
import source from 'vinyl-source-stream';
import sourcemaps from 'gulp-sourcemaps';
import buffer from 'vinyl-buffer';
import streamify from 'g... |
ajax/libs/jquery.fancytree/2.6.0/jquery.fancytree.js | him2him2/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.6.0
* @dat... |
ajax/libs/analytics.js/2.3.0/analytics.min.js | barkinet/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
app/components/Footer/Footer.js | jmparsons/react-tyro | import React from 'react';
import css from 'react-css-modules';
import styles from './Footer.sss';
const Footer = () => (
<div>
<div styleName="content">© 2016 JMParsons</div>
</div>
);
export default css(Footer, styles);
|
src/svg-icons/navigation/last-page.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationLastPage = (props) => (
<SvgIcon {...props}>
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
</SvgIcon>
);
NavigationLastPage = pure(NavigationLastPage);
NavigationLastPage.di... |
node_modules/material-ui/svg-icons/action/trending-up.js | smaccoun/wrapid-react-ts | '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/material-ui/5.0.0-beta.1/modern/Stepper/Stepper.min.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";const _excluded=["activeStep","alternativeLabel","children","className","connector","nonLinear","orientation"];import*as React from"react";import PropTypes from"pro... |
ajax/libs/mobx/2.0.5/mobx.min.js | ahocevar/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
function U(e,i){o(e,"autorun methods cannot have modifiers"),n("function"==typeof e,"autorun expects a function"),n(0===e.length,"autorun expects a function without arguments"),i&&(e=e.bind(i));var r=new S(e.name||"Autorun",function(){this.track(e)});return ... |
ajax/libs/react-router-bootstrap/0.13.4/ReactRouterBootstrap.min.js | dc-js/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-bootstrap/lib/Button"),require("react-bootstrap/lib/MenuItem"),require("react-bootstrap/lib/NavItem"),require("react-bootstrap/lib/ListGroupItem")):"function"==typeof define&&define.amd?define(["react","rea... |
src/pages/Settings/News/News.js | aggiedefenders/aggiedefenders.github.io | import React, { Component } from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import { Link } from 'react-router-dom';
import _backButton from '../../../assets/img/back_btn_white.png';
import firebase from 'firebase';
var database = firebase.database();
const containerStyle = {... |
app/components/Chart/__tests__/index-test.js | nelsonomuto/budgeting-sample-app-webpack2 | import React from 'react';
import renderer from 'react-test-renderer';
import Chart from '../';
it('renders correctly', () => {
const tree = renderer
.create(
<Chart width={100} height={100}>
test
</Chart>
)
.toJSON();
expect(tree).toMatchSnapshot();
});
|
node_modules/react-icons/md/whatshot.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdWhatshot = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.5 31.6c4.5 0 8-3.5 8-7.9 0-2.4-0.3-4.6-0.9-6.7-1.8 2.2-4.8 3.6-7.8 4.3s-4.7 2.4-4.7 5.1c0 2.9 2.5 5.2 5.4 5.2z m3-30.5c6.5 5.2 10.9 13.3 10.9 22.3 0 7.3-6.1 13.2... |
src/components/FirstLaunchRedirect.js | unihackhq/skilled-acolyte-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react';
import { Redirect } from 'react-router-dom';
import allowNull from '../utils/nullablePropTypes';
const FirstLaunchRedirect = ({ match, user }) => {
if (!match && user.loggedIn && ... |
test/defaults.spec.js | mirrorjs/mirror | import React from 'react'
import defaults, { options } from 'defaults'
import { render } from 'index'
import { store } from 'store'
beforeEach(() => {
jest.resetModules()
})
describe('mirror.defaults', () => {
it('options should be exported', () => {
expect(options).toBeDefined()
})
it('should not throw... |
ajax/libs/yui/3.4.1/event-custom-base/event-custom-base-debug.js | gereon/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
docs/src/app/components/pages/components/AppBar/ExampleIconMenu.js | rscnt/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import NavigationClose from 'material-ui/s... |
list/views/SearchView.js | ExtPoint/yii2-frontend | import React from 'react';
import Collapse from 'react-bootstrap/lib/Collapse';
import PropTypes from 'prop-types';
import {html, locale} from 'components';
const bem = html.bem('SearchView');
export default class SearchView extends React.Component {
static propTypes = {
rows: PropTypes.arrayOf(PropType... |
frontend/js/components/send/component.js | roman901/Overheard | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import UITextarea from 'js/ui/textarea/component';
import UIButton from 'js/ui/button/component';
export default class SendComponent extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {
... |
lib/werkzeug/debug/shared/jquery.js | pam-bot/SMSQuery | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
packages/material-ui-icons/src/SyncDisabled.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SyncDisabled = props =>
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20h6v-6l-2.2... |
ajax/libs/forerunnerdb/1.3.713/fdb-legacy.js | x112358/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/parser/core/healingEfficiency/HealingEfficiencyDetails.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Tab from 'interface/others/Tab';
import HealingEfficiencyTracker from 'parser/core/healingEfficiency/HealingEfficiencyTracker';
import HealingEfficiencyBreakdown from './HealingEfficiencyBreakdown';
class HealingEfficiencyDetails extends A... |
src/main/webapp/pkgs/backbone.js/backbone.js | haxwell/quizki | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
node_modules/react-native/Libraries/Storage/AsyncStorage.js | hukezhu/React-Native-demo | /**
* Copyright (c) 2015-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.
*
* @provides... |
node_modules/react-bootstrap/es/MediaBody.js | nikhil-ahuja/Express-React | 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/components/term/index.js | plastical/react-theme | /* global PlasticalSettings */
import React from 'react';
import { connect } from 'react-redux';
import DocumentMeta from 'react-document-meta';
import ScrollIntoView from 'scroll-component';
import he from 'he';
// Internal dependencies
import BodyClass from 'utils/react-body-class';
import QueryTerm from 'wordpress-... |
frontend/tests/screens/selection-viewer/global-viewer/global-viewer.js | desihub/qlf | import React from 'react';
import GlobalViewer from '../../../../src/screens/selection-viewer/global-viewer/global-viewer';
import { mount, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
describe('GlobalViewer', () => {
let globalViewer;
beforeEach... |
src/app.js | accommodavid/spooky-react | import React from 'react'
import ReactDOM from 'react-dom'
class App extends React.Component {
render() {
return (
<main>
You have been spooked
</main>
)
}
}
ReactDOM.render(<App />, document.getElementById('app'))
|
client/modules/App/__tests__/Components/Header.spec.js | 4dinterface/profpruf | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
ajax/libs/angular-google-maps/2.0.21/angular-google-maps_dev_mapped.js | taydakov/cdnjs | /*! angular-google-maps 2.0.21 2015-06-04
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
src/components/AdultIncome.js | umgauper/USDA-UX-Challenge | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class AdultIncome extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h3>Adult Income Section</h3>
{this.props.children}
</div>
)
}
} |
src/main/webapp/resource/modules/elementui-2.3.5/vue-2.5.16.js | tylerchen/foss-qdp-project-v4 | /*!
* Vue.js v2.5.16
* (c) 2014-2018 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function (... |
React.js demos/hello-world/src/App.js | komitoff/Software-Technologies | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
linksa/Scustomera.js | liuhui219/linksa | import React from 'react';
import {
View,
StyleSheet,
Navigator,
TouchableOpacity,
TouchableHighlight,
Text,
ScrollView,
ActivityIndicator,
InteractionManager,
Dimensions,
BackAndroid,
Image,
RefreshControl,
ListView,
} from 'react-native';
import ScrollableTabView, { DefaultTabBar, } from 'react... |
src/parser/demonhunter/vengeance/modules/talents/FeastOfSouls.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import { formatNumber, formatPercentage } from 'common/format';
//WCL: ... |
src/layout-v2/main-content/address.js | bblassingame/at-home-climate-website | import React from 'react'
import ReactGA from 'react-ga'
import AddressIcon from './address-icon.png'
const Units = () => {
return (
<div className='mc-sub-panel'>
<img className='mc-sub-panel-img' src={AddressIcon} alt='storage unit icon indicating information about available storage units' />
<div... |
chrome/extension/inject.js | altany/react-new-tab-chrome-extension | import React, { Component } from 'react';
import { render } from 'react-dom';
import Dock from 'react-dock';
class InjectApp extends Component {
constructor(props) {
super(props);
this.state = { isVisible: false };
}
buttonOnClick = () => {
this.setState({ isVisible: !this.state.isVisible });
};
... |
src/svg-icons/action/turned-in-not.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTurnedInNot = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/>
</SvgIcon>
);
ActionTurnedInNot = pure(ActionTurnedInNo... |
docs/tests/useSelect.js | paypal/downshift | import React from 'react'
import {useSelect} from '../../src'
import {items, menuStyles} from '../utils'
export default function DropdownSelect() {
const {
isOpen,
selectedItem,
getToggleButtonProps,
getLabelProps,
getMenuProps,
highlightedIndex,
getItemProps,
} = useSelect({items})
r... |
apps/mk-app-login/action.js | ziaochina/mk-demo | import React from 'react'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
class action {
constructor(option) {
this.metaAction = option.metaAction
this.config = config.current
this.webapi = this.config.webapi
}
onInit = ({ component, i... |
ajax/libs/highmaps/1.0.4/highmaps.src.js | cloudrifles/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.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, clearTi... |
src/components/Feedback/Feedback.js | zhangmhao/circle | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
js/app.js | pletcher/mission-hacks | import 'babel-polyfill'
import '../css/app.css'
import { browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import { RelayRouter } from 'react-router-relay'
import cookies from 'lib/cookies'
import React from 'react'
import ReactDOM from 'react-dom'
import Relay from 'react-relay'
import route... |
Examples/UIExplorer/LayoutEventsExample.js | hassanabidpk/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/client/sidebars/SidebarConfig.stories.js | leagueofcake/Project-Resistance | import React from 'react';
import { withKnobs, object, boolean } from '@storybook/addon-knobs';
import SidebarConfig from './SidebarConfig';
import { userData } from './components/PlayerList.stories';
export default {
component: SidebarConfig,
title: 'Sidebars/SidebarConfig',
decorators: [withKnobs],
exclude... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.