path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/pdf.js/2.0.112/pdf.js | cdnjs/cdnjs | /* Copyright 2017 Mozilla Foundation
*
* 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... |
src/svg-icons/action/fingerprint.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFingerprint = (props) => (
<SvgIcon {...props}>
<path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/CheckboxOrRadioGroup.js | dewmini/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
docs/app/Examples/collections/Menu/Content/MenuExampleButtons.js | clemensw/stardust | import React from 'react'
import { Button, Menu } from 'semantic-ui-react'
const MenuExampleButtons = () => {
return (
<Menu>
<Menu.Item>
<Button primary>Sign up</Button>
</Menu.Item>
<Menu.Item>
<Button>Log-in</Button>
</Menu.Item>
</Menu>
)
}
export default MenuE... |
frontend/test/app/components/Header-test.js | mozilla/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import Header from '../../../src/app/components/Header';
describe('app/components/Header', () => {
let preventDefault, stopPropagation, mockClickEvent, props, subject;
beforeEach(() => {
pre... |
debugger/cerebral-debugger/src/components/Debugger/Components/StatePaths/index.js | FWeinb/cerebral | import './styles.css'
import React from 'react'
export default function StatePaths (props) {
let uniqueComponents = []
return (
<div className='statePaths-wrapper'>
<div className='statePaths-componentsWrapper'>
<div
key='header'
className='statePaths-itemHeader'
>
... |
src/Parser/Warlock/Demonology/Modules/Features/AlwaysBeCasting.js | enragednuke/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
... |
ajax/libs/forerunnerdb/1.3.517/fdb-legacy.min.js | nolsherry/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... |
node_modules/react-router/es6/Router.js | dulik06/ReduxStarter | 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 = {... |
vendor/yiisoft/yii2/assets/yii.gridView.js | timjcook/achieve-it | /**
* Yii GridView widget.
*
* This is the JavaScript widget used by the yii\grid\GridView widget.
*
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0
*/
(function ($) {
... |
src/components/docker/plain-wordmark/DockerPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './DockerPlainWordmark.svg'
/** DockerPlainWordmark */
function DockerPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'DockerPlai... |
components/page/footer/index.js | sgmap/inspire | import React from 'react'
import Container from '../../container'
import Social from './social'
import Sitemap from './sitemap'
const Footer = () => (
<footer>
<Container>
<div className='content'>
<div>
<img src='/static/images/etalab.png' alt='Etalab' />
<Social />
</... |
src/Footer/Footer.js | Pearson-Higher-Ed/compounds | import React from 'react';
import PropTypes from 'prop-types';
import './Footer.scss';
const currentYear = new Date().getFullYear();
const Footer = ({ copyrightText, links, anchorTarget, light, singlePageStick }) => {
const renderCopy = () => {
return <p className="pe-label">{copyrightText}</p>;
};
const... |
src/components/Main.js | Aikk/gallery-by-react | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
let imageDatas = require('json!../data/images.json');
imageDatas = (function genImageURL(imageDatasArr) {
for (let i = 0, n = imageDatasArr.length; i < n; i++) {
let singleImageData ... |
ajax/libs/yui/3.16.0/datatable-core/datatable-core-coverage.js | kentcdodds/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-... |
packages/material-ui-icons/src/BlurOnTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="14" cy="10" r="1.5" /><circle cx="14" cy="18" r="1" /><circle cx="14" cy="14" r="1.5" /><circle cx="14" cy="6" r="1" /><path d="M3 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-... |
client/components/BaseTable.js | rodrigok/GradeFaccat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Table,
} from 'antd';
export class BaseTableComponent extends Component {
static propTypes = {
data: PropTypes.object,
}
state = {}
static getDerivedStateFromProps(props, state) {
return {
...state,
records: props.d... |
src/components/MainNav/AppList/components/ResizeContainer/ResizeContainer.js | folio-org/stripes-core | /**
* AppList -> ResizeContainer
*/
import React from 'react';
import classnames from 'classnames';
import debounce from 'lodash/debounce';
import PropTypes from 'prop-types';
import css from './ResizeContainer.css';
class ResizeContainer extends React.Component {
static propTypes = {
children: PropTypes.func... |
packages/material-ui-icons/src/MenuBookRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17.5 4.5c-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5-1.45 0-2.99.22-4.28.79C1.49 5.62 1 6.33 1 7.14v11.28c0 1.3 1.22 2.26 2.48 1.94.98-.25 2.02-.36 3.02-.36 1.56 0 3.22.26 4.56.9... |
packages/vx-demo/components/tiles/axis.js | Flaque/vx | import React from 'react';
import { Grid } from '@vx/grid';
import { Group } from '@vx/group';
import { curveBasis } from '@vx/curve';
import { GradientOrangeRed } from '@vx/gradient';
import { genDateValue } from '@vx/mock-data';
import { AxisLeft, AxisBottom } from '@vx/axis';
import { AreaClosed, LinePath } from '@v... |
node_modules/@angular/forms/bundles/forms.umd.js | JuanMenendezBuitrago/angular-tour-of-heroes | /**
* @license Angular v2.4.3
* (c) 2010-2016 Google, Inc. https://angular.io/
* License: MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/operator/toPromise'), require('rxjs/Subject'), require('rxjs/Obse... |
src/app.js | morrishopkins/test_spa | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Redirect, browserHistory } from 'react-router';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from './store... |
renderer/Flag.js | VishalRohra/chroma-tone | import React from 'react'
export default class Flag extends React.Component {
render() {
let {icon, pos: {x, y}, zoom} = this.props
return (
<g transform={`translate(${x} ${y})`}>
{icon}
</g>
);
}
}
|
src/ReactBoilerplate/Scripts/components/Spinner.js | pauldotknopf/react-aspnet-boilerplate | import React from 'react';
const fontAwesome = require('font-awesome/scss/font-awesome.scss');
const spinnerClass = fontAwesome.fa + ' ' + fontAwesome['fa-spinner'] + ' ' + fontAwesome['fa-spin'] + ' ' + fontAwesome['fa-5x'];
export default () =>
(
<p style={{ textAlign: 'center' }}>
<i className={spinnerClass... |
tests/boilerplate_test.js | olivierrr/react-selection-popover | // import React from 'react';
// import {
// renderIntoDocument,
// findRenderedDOMComponentWithClass,
// findRenderedDOMComponentWithTag,
// Simulate
//} from 'react-addons-test-utils';
describe('Boilerplate', function() {
it('should do boilerplate things', function() {
// TODO: test something now
e... |
app/javascript/mastodon/features/account/components/header.js | Craftodon/Craftodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Motion from '../../ui/util/optional_motion';
import sprin... |
src/components/Scroll.js | mattbanks/mattbanks | /* eslint-disable react/destructuring-assignment */
import smoothscroll from 'smoothscroll-polyfill';
import React from 'react';
import PropTypes from 'prop-types';
const Element = (props) => props.children;
class Scroll extends React.Component {
constructor() {
super();
this.handleClick = this.handleClick.... |
__tests__/index.ios.js | khosimorafo/reactmastende | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
examples/with-fela/layout.js | arunoda/next.js | import { Provider } from 'react-fela'
import felaRenderer from './fela-renderer'
export default ({ children }) =>
<Provider renderer={felaRenderer}>
{children}
</Provider>
|
packages/reactor-tests/src/tests/props/SimplePropUpdate.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Button } from '@extjs/ext-react';
export default class SimplePropUpdate extends Component {
state = { count: 0 };
increment = () => this.setState({ count: this.state.count + 1 });
render() {
return (
<Button itemId="button" text={`Co... |
src/main/webapp/act/rest/libs/ext-2.0.2/ext-all-debug.js | youtops/jeesite-master | /*
* Ext JS Library 2.0.2
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
Ext.DomHelper = function(){
var tempTableEl = null;
var emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;
var tableRe = /^table|tbody|tr|td$/i;
... |
js/Header.js | CdrXander/FEM-React-Learning | import React from 'react'
import { Link } from 'react-router'
class Header extends React.Component {
render () {
let utilSpace
if (this.props.showSearch) {
utilSpace = <input onChange={this.props.handleSearchTermChange} value={this.props.searchTerm} type='text' placeholder='Search' />
} else {
... |
15-react-router-v4/src/components/repo.js | iproduct/course-node-express-react | import React from 'react';
import { PropTypes } from 'prop-types';
const Repo = ({ match }) => {
return (
<div>
<h3>User: {match.params.userName}</h3>
<h3>Repo: {match.params.repoName}</h3>
</div>
);
}
Repo.propTypes = {
params: PropTypes.object
}
export default Repo; |
app/javascript/mastodon/features/hashtag_timeline/index.js | d6rkaiz/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
ajax/libs/forerunnerdb/1.3.608/fdb-core.min.js | BenjaminVanRyseghem/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... |
src/components/Header/Header.js | mikemunsie/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
src/demos/building-a-geospatial-app/starting-code/src/app.js | uber-common/vis-academy | import React, { Component } from 'react';
const MAPBOX_STYLE = 'mapbox://styles/mapbox/light-v9';
const MAPBOX_TOKEN = process.env.MapboxAccessToken; // eslint-disable-line
function SetToken() {
return (
<div style={{fontSize: '20px'}}>
<div>You don't have a Mapbox token set in your environemnt.</div>
... |
src/svg-icons/content/mail.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMail = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
ContentMail = pure(Conte... |
ajax/libs/jquery/1.11.0/jquery.min.js | ankitjamuar/cdnjs | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/components/Footer/index.js | matusmarcin/special-disco | /**
*
* Footer
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import styles from './styles.css';
function Footer() {
const year = new Date().getFullYear();
return (
<footer>
<h2><FormattedMessage {...messages.topText} values={{ year }... |
src/svg-icons/av/volume-off.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeOff = (props) => (
<SvgIcon {...props}>
<path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86... |
ajax/libs/yui/3.4.1/yui/yui.js | Kaakati/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
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
ajax/libs/yui/3.0.0/event-custom/event-custom-debug.js | sullivanmatt/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 e... |
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-helper-define-map/node_modules/babel-helper-function-name/node_modules/babel-traverse/lib/path/lib/hoister.js | vivekparekh8/LearningReact | "use strict";
exports.__esModule = true;
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
var _getIterator2 = require("babel-runtime/core-js/get-iterator");
var _getIterator3 = _interopRequireDefault(_getIterator2);
var _babel... |
components/__tests__/OrderedList-test.js | hellobrian/carbon-components-react | import React from 'react';
import OrderedList from '../OrderedList';
import ListItem from '../ListItem';
import { shallow } from 'enzyme';
describe('OrderedList', () => {
describe('Renders as expected', () => {
const list = shallow(
<OrderedList className="some-class"><ListItem>Item</ListItem></OrderedList... |
demo/index.js | markmur/react-slack-feedback | /* eslint-disable import/no-unassigned-import */
import React from 'react'
import ReactDOM from 'react-dom'
import fetch from 'isomorphic-fetch'
import styled from 'styled-components'
import SyntaxHighlighter, {
registerLanguage
} from 'react-syntax-highlighter/dist/prism-light'
import jsx from 'react-syntax-highlig... |
ajax/libs/js-data/2.2.0/js-data-debug.min.js | schoren/cdnjs | /*!
* js-data
* @version 2.2.0 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
test/fixtures/hoc/actual.js | layershifter/babel-plugin-transform-react-handled-props | import PropTypes from 'prop-types';
import React from 'react';
export default function Foo() {
return function Bar(Component) {
return class Baz extends React.Component {
static propTypes = {
children: PropTypes.node
}
render() {
return <Component />;
}
}
}
}
|
app/components/Dashboard/AnalyticsGrid.js | cdiezmoran/AlphaStage-desktop | /* eslint-disable import/extensions */
// @flow
import React, { Component } from 'react';
import Chart from 'chart.js';
import type { DevGame } from '../../utils/globalTypes';
type Props = {
game: DevGame
};
let churnBarChart;
class AnalyticsGrid extends Component {
createBarChart: () => void;
static chartC... |
src/shared/components/join/join.js | alexspence/operationcode_frontend | import React from 'react';
// import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import LinkButton from 'shared/components/linkButton/linkButton';
import styles from './join.css';
const Join = (props) => {
const { ...otherProps } = props;
return (
<Section
title=... |
test/DropdownButtonSpec.js | herojobs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import DropdownButton from '../src/DropdownButton';
import DropdownMenu from '../src/DropdownMenu';
import MenuItem from '../src/MenuItem';
import { shouldWarn } from './helpers';
describe('DropdownButton', function() {
const simpleD... |
src/index.js | dpastoor/n-queens | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
packages/material-ui-icons/src/PermScanWifiTwoTone.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="M12 5c-3.26 0-6.2.85-9.08 2.65L12 18.83l9.08-11.16C18.18 5.85 15.25 5 12 5zm1 11h-2v-6h2v6zm-2-8V6h2v2h-2z" opacity=".3" /><path d="M12 3C6.95 3... |
src/Carousel/chevron_left.js | kambi-sportsbook-widgets/widget-components | import React from 'react'
export default function ChevronLeft() {
return (
<svg
fill="#fff"
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
<path d="M0 0h24v24H0z" fill="none" ... |
node_modules/react/lib/ReactComponentWithPureRenderMixin.js | thenatural09/Bread | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use strict... |
examples/04 Sortable/Simple/index.js | zetkin/react-dnd | import React from 'react';
import Container from './Container';
export default class SortableSimple {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b>
</p>
<p>
It i... |
UI/src/pages/mine/index.js | sunzy0212/local-event | import React, { Component } from 'react';
export default class Mine extends Component {
render() {
return (
<div className="page3"> Page3 </div>
);
}
} |
components/Header.js | ramprasath25/react-app | import React from 'react';
import {Link} from 'react-router';
import {connect} from 'react-redux';
import {isLoggedIn, getUserDetails} from './authorization';
import * as action from '../actions/login-action';
import * as ReactBootstrap from 'react-bootstrap';
class Header extends React.Component {
logout() {
... |
dashboard/client/src/js/components/modules/base/Header.js | arawind/sieve | import React from 'react';
import {Link} from '../../../utils/router';
import Logo from '../../../../img/logo.svg';
export default function () {
return (
<header className="header has-shadow">
<div className="container">
<Link
to="/"
... |
src/components/users/users-list-item.js | johnamiahford/widgets-spa | 'use strict';
import React from 'react';
import { Link } from 'react-router';
class UsersListItem extends React.Component {
render() {
let params = {
id: this.props.id,
userName: this.props.name.trim().toLowerCase()
};
return (
<tr key={this.props.id}>
<td className="text-c... |
app/javascript/mastodon/features/hashtag_timeline/index.js | summoners-riftodon/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandHashtagTimeline } from '... |
src/svg-icons/av/skip-previous.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipPrevious = (props) => (
<SvgIcon {...props}>
<path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/>
</SvgIcon>
);
AvSkipPrevious = pure(AvSkipPrevious);
AvSkipPrevious.displayName = 'AvSkipPrevious';
AvSkipPrevious.mu... |
import/jquery-1.8.2.min.js | Kyon15498/izhihu | /*! 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===... |
src/components/Toolbar/inputs/link.js | crossfield/react-drafts | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDropzone from 'react-dropzone';
import { SUPPORTED_DOCUMENT_TYPES } from '../../../constants/file';
import Modal from '../../shared/modal';
import InputControls from './controls';
const ERROR_MSG = 'We\'re sorry, there was an upl... |
lib/components/Uploader.js | hanford/filepizza | import Arrow from '@app/components/Arrow';
import React from 'react';
import UploadActions from '@app/actions/UploadActions';
export default class UploadPage extends React.Component {
uploadFile(file) {
UploadActions.uploadFile(file);
}
render() {
switch (this.props.status) {
case 'ready':
... |
src/views/components/button/button.spec.js | connorbanderson/CoinREXX | import React from 'react';
import { render, shallow } from 'enzyme';
import Button from './button';
describe('Button', () => {
it('should render a button with text node', () => {
const wrapper = render(<Button>Foo</Button>);
const button = wrapper.find('button');
expect(button.length).toBe(1);
expe... |
smart-css/button.js | martinandert/css-in-js | import React from 'react';
import SmartCSS from 'smart-css';
const css = new SmartCSS();
css.setClass('.container', {
textAlign: 'center'
});
css.setClass('.button', {
backgroundColor: '#ff0000',
width: '320px',
padding: '20px',
borderRadius: '5px',
border: 'none',
outline: 'none'
});
css.setClass('.b... |
examples/auth0/pages/advanced/ssr-profile.js | BlancheXu/test | import React from 'react'
// This import is only needed when checking authentication status directly from getInitialProps
import auth0 from '../../lib/auth0'
import { fetchUser } from '../../lib/user'
import Layout from '../../components/layout'
function Profile ({ user }) {
return (
<Layout user={user}>
... |
src/App.js | availabs/avail_app_bootstrap | import React, { Component } from 'react';
import Routes from './Routes';
import { login, logout } from './store/modules/user';
import SideNav from './components/SideNav/SideNav';
import { connect } from 'react-redux';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.... |
src/components/shell/header/Header.js | fredmarques/petshop | import React, { Component } from 'react';
import logo from '../../../logo.svg';
class Header extends Component {
render() {
return (
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<span style={{fontSize: 30, color: "#42cef4"}}>PetCare</span>
</div>
... |
src/components/layout/Header.js | gReis89/redux-todo | import React from 'react';
/**
* React dumb component to list todos
*/
const Header = () => {
return (
<section className="hero is-small is-primary is-bold">
<div className="hero-body">
<div className="container">
<h1 className="title">
React + Redux Todo List
</h1... |
src/containers/List.js | blaqbern/lists | import React from 'react';
import { connect } from 'react-redux';
import { addItem } from '../actions';
import AddNew from '../components/AddNew';
import Item from './Item';
function List({ items, handleAddItemClick }) {
return (
<div>
<AddNew
what="item"
handleAddClick={handleAddItemClick}... |
tests/components/Error-test.js | jmcolella/unique-twitter-followers | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import Error from '../../app/components/Error';
describe ( 'Error component', () => {
it ( 'renders to the DOM', () => {
expect( shallow( <Error /> ) ).to.exist;
});
});
|
site/components/Cover.js | jchristman/react-context-menus | import React, { Component } from 'react';
import './Cover.less';
export default class Cover extends Component {
render() {
return (
<div className="Cover">
<div className="Cover-header">
<p className="Cover-description">
Drag and Drop for React
</p>
</div>
... |
ajax/libs/rxjs/2.2.28/rx.lite.compat.js | mirthy/cdnjs | // 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,
'undefined': false
};
v... |
src/routes/about.js | danii1/react-beginner-boilerplate | 'use strict';
import React from 'react';
export default React.createClass({
render() {
return (
<div className='about-route'>
<h1>About</h1>
</div>
);
}
});
|
benchmarks/dom-comparison/src/implementations/react-fela-useFela/Box.js | risetechnologies/fela | import React from 'react'
import { useFela } from 'react-fela'
const rule = ({ color, fixed = false, layout = 'column', outer = false }) => ({
alignItems: 'stretch',
borderWidth: '0px',
borderStyle: 'solid',
boxSizing: 'border-box',
display: 'flex',
flexBasis: 'auto',
flexDirection: 'column',
flexShrin... |
expo/www/core/modules/quickedit/js/views/AppView.js | 318io/318-io | /**
* @file
* A Backbone View that controls the overall "in-place editing application".
*
* @see Drupal.quickedit.AppModel
*/
(function ($, _, Backbone, Drupal) {
'use strict';
// Indicates whether the page should be reloaded after in-place editing has
// shut down. A page reload is necessary to re-instat... |
ajax/libs/react-dom/18.1.0-next-0568c0f8c-20220409/umd/react-dom-test-utils.development.min.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","react","react-dom"],t):t((e=e||self).ReactTestUtils={},e.React,e.ReactDOM)}(this,function(e,s,u){"use strict";var o=s.__SECRET_INTERNALS_DO_NOT_US... |
ajax/libs/analytics.js/2.3.19/analytics.min.js | steakknife/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... |
src/AsyncCreatable.js | DanielHeath/react-select | import React from 'react';
import Select from './Select';
const AsyncCreatable = React.createClass({
displayName: 'AsyncCreatableSelect',
render () {
return (
<Select.Async {...this.props}>
{(asyncProps) => (
<Select.Creatable {...this.props}>
{(creatableProps) => (
<Select
{...as... |
src/js/components/Carousel.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Box from './Box';
import Tiles from './Tiles';
import Tile from './Tile';
import Button from './Button';
import PreviousIcon fro... |
tests/components/testOperator.js | notfier/touristique-client | import React from 'react';
import { shallow } from 'enzyme';
import { Operator } from '../../src/js/components/Operator';
describe( 'Test Operator component |', function() {
it( 'test componentWillMount logic', function() {
localStorage.setItem( 'token', 'olalah' );
var test;
const wrapper = shallow(
... |
packages/mineral-ui-icons/src/IconSettingsOverscan.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconSettingsOverscan(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...i... |
Frontend/src/index/invite_list.js | zsefvlol/threedegrees |
"use strict";
import React from 'react';
import { render } from 'react-dom';
import WeUI from 'react-weui';
import Ajax from '../lib/Ajax';
const {Cells, CellsTitle, CellBody, Cell, Button, CellFooter} = WeUI;
export default class InviteList extends React.Component {
state = {
invite_list : this.props.u... |
vendor/firebug-lite/src/firebug-lite-debug.js | IveWong/lodash | (function(){
/*!*************************************************************
*
* Firebug Lite 1.4.0
*
* Copyright (c) 2007, Parakey Inc.
* Released under BSD license.
* More information: http://getfirebug.com/firebuglite
*
**************************************************************/
/*!
... |
app/scripts/components/matched-results.js | hustbill/network-verification-ui | import React from 'react';
import MatchedText from './matched-text';
const SHOW_ROW_COUNT = 2;
const MAX_MATCH_LENGTH = 24;
const Match = match => (
<div className="matched-results-match" key={match.label}>
<div className="matched-results-match-wrapper">
<span className="matched-results-match-label">
... |
ui/app/index.js | mmadej85/todo-list | import './styles/app.css'
import React from 'react';
import ReactDOM from 'react-dom';
import TaskBox from './components/TaskBox.jsx';
import {CONFIG} from './constants/constants';
ReactDOM.render(<TaskBox url={CONFIG.urlTasks} pollInterval={CONFIG.pollInterval} />, document.getElementById('root')); |
ajax/libs/yui/3.4.1pr1/yui/yui-debug.js | melvinsembrano/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
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
src/svg-icons/hardware/desktop-mac.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
src/containers/NotFound/NotFound.js | leifdalan/vega-june | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Leif is working on the site.</h1>
<p>Check back again later!</p>
</div>
);
}
|
ajax/libs/yui/3.8.0/datatable-core/datatable-core-coverage.js | chrillep/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
app/m_login/m_login.js | jefferchang/reactApp | import 'bootstrap/less/bootstrap.less';
import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory} from 'react-router'
const rootRoute = {
component: 'div',
childRoutes: [{
path: '/',
component: require('./../components/login/Login'),
childRoutes: [
... |
powerauth-webflow/src/main/js/components/approvalSca.js | lime-company/powerauth-webflow | /*
* PowerAuth Web Flow and related software components
* Copyright (C) 2019 Wultra s.r.o.
*
* 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 License, or
* (... |
__tests__/index.ios.js | kararnab/Property-Finder | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/templates/categories-list-template.js | apalhu/website | // @flow strict
import React from 'react';
import { Link } from 'gatsby';
import kebabCase from 'lodash/kebabCase';
import Sidebar from '../components/Sidebar';
import Layout from '../components/Layout';
import Page from '../components/Page';
import { useSiteMetadata, useCategoriesList } from '../hooks';
const Categor... |
packages/mineral-ui-icons/src/IconGraphicEq.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconGraphicEq(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
src/Badge/Badge.spec.js | andrejunges/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Badge from './Badge';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Badge />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {mu... |
src/components/WorkshopMap.js | r-portas/robogals-brisbane-pwa | import React, { Component } from 'react';
class WorkshopMap extends Component {
constructor(props) {
super(props);
this.map = null;
this.markers = [
{position: {lat: -27.497686, lng: 153.014022}, title: 'University of Queensland'},
{position: {lat: -27.476547, lng: 153.027841}, title: 'Queen... |
server/server.js | saltykovdg/mern-react-redux-nodejs-express-todo-list | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.confi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.