path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/forerunnerdb/1.3.608/fdb-core.min.js | dhenson02/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/__tests__/InfoBar-test.js | chuson1996/frontend-advisor | import React from 'react';
import ReactDOM from 'react-dom';
import {renderIntoDocument} from 'react-addons-test-utils';
import { expect} from 'chai';
import { InfoBar } from 'components';
import { Provider } from 'react-redux';
import { browserHistory } from 'react-router';
import createStore from 'redux/create';
impo... |
src/components/general/Spinner.js | katima-g33k/blu-react-desktop | import React, { Component } from 'react';
import ReactLoading from 'react-loading';
const styles = {
spinner: {
color: '#7D8364',
height: 64,
margin: 'auto',
width: 64,
},
wrapper: {
textAlign: 'center',
},
};
export default class Spinner extends Component {
render() {
return (
... |
Libraries/vendor/core/ES6Promise.js | kidaa/react-native | /**
* @generated SignedSource<<d169e3bbcd91c2e26877882e0d02f289>>
*
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !! This file is a check-in of a static_upstream project! !!
* !! !!
* !! You should not modify this file directly... |
ajax/libs/yui/3.3.0/loader/loader.js | suy/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
ajax/libs/yui/3.5.1/event-custom-base/event-custom-base.js | manorius/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... |
packages/expo-ads-facebook/build/withNativeAd.js | exponent/exponent | import { requireNativeViewManager } from '@unimodules/core';
import nullthrows from 'nullthrows';
import React from 'react';
import { Platform, findNodeHandle } from 'react-native';
import AdsManager from './NativeAdsManager';
const NativeAdLayout = Platform.OS === 'android' ? requireNativeViewManager('NativeAdLayout')... |
components/profile.js | simon-jk-casey/hth-client | import React from 'react'
import Menu from './menu'
module.exports = ({state, dispatch}) => {
const {username, firstName, lastName, streetNumber, streetName, suburb, city, email, gpsCoords} = state.userDetails
return (
<div>
<div>
<Menu dispatch={dispatch} />
</div>
<div>
<h3>... |
src/Parser/Core/Modules/Items/Legion/TombOfSargeras/VialOfCeaselessToxins.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemDamageDone from 'Main/ItemDamageDone';
import Abilities from 'Parser/Core/Modules/Abilities';
/**
* Vial of... |
client/src/components/screenshots/Container.js | DjLeChuck/recalbox-manager | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Button from 'react-bootstrap/lib/Button';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import Modal from 'react-bootstrap/lib/Modal';
import reactStringReplace from 'react-string-rep... |
docs/app/src/components/FontAwesomeIcon.js | tercenya/compendium | import React from 'react';
import classNames from 'classnames';
const FontAwesomeIcon = (props) => {
const classes = classNames(['fa', 'fa-' + props.icon, props.className]);
return (
<i className={classes} aria-hidden='true' />
);
};
export default FontAwesomeIcon;
|
components/Home/About.js | slidewiki/slidewiki-platform | import React from 'react';
import {FormattedMessage, defineMessages} from 'react-intl';
import StaticPage from './StaticPage';
import setDocumentTitle from '../../actions/setDocumentTitle';
import PropTypes from 'prop-types';
class About extends React.Component {
componentDidMount() {
this.context.executeA... |
packages/material-ui-icons/src/AssignmentReturnRounded.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 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s... |
HotelAndroid/thanksALot.js | hotel-reverse/hotel-reverse | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
ListView,
DatePickerAndroid,
TouchableWithoutFeedback,
Picker,
Navigator,
} from 'react-native';
const Item = Picker.Item;
import Button from 'react-native-button';
/*----------------------------------------------------------... |
node_modules/react-native-pathjs-charts/example/src/bar/BarChartColumnBasic.js | Stoneski93/GymDiary | /*
Copyright 2016 Capital One Services, LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing... |
node_modules/react-proxy/src/deleteUnknownAutoBindMethods.js | ttalhouk/Game_On | function shouldDeleteClassicInstanceMethod(component, name) {
if (component.__reactAutoBindMap && component.__reactAutoBindMap.hasOwnProperty(name)) {
// It's a known autobound function, keep it
return false;
}
if (component.__reactAutoBindPairs && component.__reactAutoBindPairs.indexOf(name) >= 0) {
... |
src/index.js | damassi/stack | import React from 'react'
import ReactDOM from 'react-dom'
import App from 'App'
import 'styles/normalize.scss'
import 'styles/global.scss'
ReactDOM.render(<App />, document.getElementById('root'))
|
src/svg-icons/notification/airline-seat-recline-normal.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineNormal = (props) => (
<SvgIcon {...props}>
<path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5... |
ajax/libs/rxjs/2.4.3/rx.compat.js | qrohlf/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
};
... |
ajax/libs/polymer/0.5.5-rc1/polymer.js | coupang/cdnjs | /**
* @license
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
* The complete set of contributors may be f... |
src/parser/deathknight/unholy/CHANGELOG.js | FaideWW/WoWAnalyzer | // import React from 'react';
import { Khazak } from 'CONTRIBUTORS';
export default [
{
date: new Date('2018-08-30'),
changes: 'Removed Legion modules and updated basic analysis for BFA',
contributors: [Khazak],
},
];
|
packages/mui-icons-material/lib/esm/SwitchAccountRounded.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M17 20H4V7c0-.55-.45-1-1-1s-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1zm3-18H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2... |
ajax/libs/shariff/1.4.2/shariff.js | LeaYeh/cdnjs |
/*
* shariff - v1.4.1 - 28.11.2014
* https://github.com/heiseonline/shariff
* Copyright (c) 2014 Ines Pauer, Philipp Busse, Sebastian Hilbig, Erich Kramer, Deniz Sesli
* Licensed under the MIT <http://www.opensource.org/licenses/mit-license.php> license
*/
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){... |
ajax/libs/yui/3.10.2/event-focus/event-focus-debug.js | Mrkebubun/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
ajax/libs/yui/3.9.1/scrollview-base/scrollview-base-debug.js | Sneezry/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
ajax/libs/ink/2.2.1/js/ink.min.js | sadhat/cdnjs |
(function(){"use strict";if(!("Ink"in window)){var e={Ink:"INK_PATH"in window?window.INK_PATH:window.location.protocol+"//js.ink.sapo.pt/Ink/"},n={},t=[],r={},i=[],o=function(e){if("object"!=typeof e)return!1;for(var n in e)if(e.hasOwnProperty(n))return!1;return!0};window.Ink={_checkPendingRequireModules:function(){va... |
test/resolve-mixin/index.spec.js | Brogency/baobab-react-resolver | import _ from 'lodash';
import React from 'react';
import { renderToString, render } from '../../src';
import Transform from './components/transform';
import AlwaysLoad from './components/always-load';
function renderAlwaysLoad(alwaysLoad, initialTree, itemOptions = {}) {
const promise = new Promise((resolve, reje... |
src/__tests__/fixtures/component_5.js | reactjs/react-docgen | import React from 'react';
const Button = ({ children, onClick, style = {} }) => (
<button
style={{ }}
onClick={onClick}
>
{children}
</button>
);
Button.propTypes = {
children: React.PropTypes.string.isRequired,
onClick: React.PropTypes.func,
style: React.PropTypes.object,
};
Button.childCon... |
src/Parser/Warlock/Demonology/Modules/SoulShards/SoulShardDetails.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Tab from 'Main/Tab';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SoulShardBreakdown from './SoulShardBreakdown';
import SoulShardTracker from './SoulShardTracker';
import WastedShardsIcon from '../../Images/w... |
src/clincoded/static/components/provisional_classification/approval.js | ClinGen/clincoded | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import moment from 'moment';
import { RestMixin } from '../rest';
import { Form, FormMixin, Input } from '../../libs/bootstrap/form';
import { getAffiliationName, getAllAffliati... |
tests/layouts/CoreLayout.spec.js | arleighdickerson/react-redux-express | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
app/containers/ApplicationTabs/index.ios.js | jlebensold/peckish | import { View, TabBarIOS, TabBarItemIOS } from 'react-native';
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { ActionCreators } from '../../actions';
import Home from '../Home';
import About from '../About';
class ApplicationTabs ext... |
fields/types/markdown/MarkdownColumn.js | dryna/keystone-twoje-urodziny | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
src/SplitButton.js | apkiernan/react-bootstrap | import React from 'react';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
import splitComponentProps from './utils/splitComponentProps';
const propTypes = {
...Dropdown.propTypes,
// Toggle props.
bsStyle: React.PropTypes.string,
bsSize: React.PropT... |
src/components/common/EditableWordCloudDataCard.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedHTMLMessage, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import MenuItem from '@material-ui/core/MenuItem';
import * as CSV from 'csv-string';
import { downloadText } from 'download.js';
import ... |
files/yasgui/1.1.9/yasgui.bundled.min.js | yyx990803/jsdelivr | !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.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/components/Post/Author/Author.js | saegeullee/saegeullee.github.io | // @flow strict
import React from 'react';
import { getContactHref } from '../../../utils';
import styles from './Author.module.scss';
import { useSiteMetadata } from '../../../hooks';
const Author = () => {
const { author } = useSiteMetadata();
return (
<div className={styles['author']}>
<p className={... |
examples/official-storybook/manager.js | storybooks/storybook | import React from 'react';
import { addons } from '@storybook/addons';
import { themes, styled } from '@storybook/theming';
import { Icons } from '@storybook/components';
import addHeadWarning from './head-warning';
addHeadWarning('manager-head-not-loaded', 'Manager head not loaded');
const PrefixIcon = styled(Icons... |
ajax/libs/vuetify/1.1.0-beta.0/vuetify.js | jonobr1/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("vue"));
else if(typeof define === 'function' && define.amd)
define(["vue"], factory);
else if(typeof exports === 'object')
exports["Vuetify"] = factory(req... |
.storybook/stories/illustrations.stories.js | teamleadercrm/teamleader-ui | import React from 'react';
import { addStoryInGroup, FOUNDATION } from '../utils';
import * as Illustrations from '@teamleader/ui-illustrations';
import { Box, TextSmall } from '../../src';
const gridStyles = {
display: 'flex',
flexWrap: 'wrap',
};
const itemProps = {
alignItems: 'center',
display: 'inline-fl... |
web/static/app/components/ChoreListComponent.js | jochakovsky/chores | import React from 'react';
import Day from './Day';
import { addDays } from '../utilities/date';
import styles from './ChoreListComponent.css';
function getDisplayDays(chores) {
const daysPerWeek = 7;
const weeksBefore = 2;
const weeksAfter = 4;
const currentTime = new Date();
const today = new Date(currentT... |
components/Flops.js | TopOfTheFlops/client-side | import React from 'react'
import Header from './Header'
import Nav from './Nav'
import voteFlop from '../api/voteFlop'
function Flops ({state, dispatch}) {
function goToCreateFlop (e) {
dispatch({type: 'CHANGE_PAGE', payload: '/flops/new'})
}
return (
<div>
<Header />
{RenderTitle(state)}
... |
lib/jquery-1.4.4.min.js | roxeteer/jquery-afterresize | /*!
* 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.
... |
ajax/libs/forerunnerdb/1.3.497/fdb-core+persist.min.js | sreym/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/Articles/Single.js | mcnamee/react-native-starter-app | import React from 'react';
import PropTypes from 'prop-types';
import { Image } from 'react-native';
import {
Container, Content, Card, CardItem, Body, H3, Text,
} from 'native-base';
import { Loading, Error, Spacer } from '../UI';
import { errorMessages } from '../../constants/messages';
const ArticlesSingle = ({
... |
misc/tabledrag.js | jordanlgraham/sandbox | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
client/App.js | MingLow605/MERN-stack-testing | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import IntlWrapper from './modules/Intl/IntlWrapper';
// Import Routes
import routes from './routes';
// Base stylesheet
require('./main.css');
export default function A... |
src/components/__tests__/general/error-test.js | GlenHughes/thegymbuddy | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import { Alert } from 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import Error from '@components/general/Error';
it('Error renders correctly', () => {
const tree = renderer.create(
<Erro... |
todomvc/benchmark/resources/tests.js | Merri/nom | var numberOfItemsToAdd = (~~location.hash.slice(1)) || 250;
var Suites = [];
window.onhashchange = function() {
location.reload();
}
Suites.push({
name: 'NomJS + vanilla JS MVC',
url: '../index.html',
version: '0.0.13',
prepare: function (runner, contentWindow, contentDocument) {
return ru... |
client/src/components/ShopMenu.js | redcom/pinstery | // @flow
import React from 'react';
import styled from 'styled-components';
// import {
// boxShadow,
// defaultBorderColor,
// defaultPrimaryBgColor,
// defaultSpaceBetweenElements,
// smallFontSize,
// } from '../styles/vars';
const WrapperMenu = styled.div`width: 20%;`;
const ShopMenu = () =>
<WrapperM... |
src/shared/components/grid/gridItem.js | namroodinc/contentful-react-mobx-post | import React from 'react';
export default class GridItem extends React.Component {
render() {
const { col, title, align } = this.props;
const alignClassName = align === 'right' && align !== 'left' ? `grid--align-right` : `grid--align-left`;
const className = col ? `grid grid__${col} ${alignClassName}` : ... |
ajax/libs/material-ui/4.10.2/Dialog/Dialog.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _int... |
vendor/assets/dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_deprecated.js | ManageIQ/dhtmlx-rails | /*SET EVENT HANDLERS*/
//#events_basic:21092006{
/**
* @desc: set function called when row selected ( event is async )
* @param: func - event handling function (or its name)
* @param: anyClick - call handler on any click event, react only on changed row by default
* @type: deprecat... |
packages/@sanity/default-login/src/ErrorDialog.js | sanity-io/sanity | import PropTypes from 'prop-types'
import React from 'react'
import {Dialog, Box, Text, Button, Stack} from '@sanity/ui'
import CorsCheck from './CorsCheck'
export default function ErrorDialog(props) {
const isNetworkError = props.error.isNetworkError
return (
<Dialog
header="Error"
cardShadow={2}... |
src/components/AuthenticatedRoute.js | Shashank1706/olep-serverless | import React from 'react';
import { Route, Redirect } from 'react-router-dom';
export default ({ component: C, props: cProps, ...rest }) => (
<Route {...rest} render={props => (
cProps.userToken !== null
? <C {...props} {...cProps} />
: <Redirect to={`/login?redirect=${props.location.pathname}${props... |
node_modules/react-icons/io/arrow-down-a.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoArrowDownA = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 35l-15-15h8.8v-15h12.5v15h8.7z"/></g>
</Icon>
)
export default IoArrowDownA
|
src/svg-icons/action/launch.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLaunch = (props) => (
<SvgIcon {...props}>
<path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/>
</SvgIcon>
);
Ac... |
examples/src/components/CustomOption.js | oluckyman/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var Option = React.createClass({
propTypes: {
addLabelText: React.PropTypes.string,
className: React.PropTypes.string,
mouseDown: React.PropTypes.func,
mouseEnter: React.PropTypes.func,
mouseLeave: React.PropTypes.func,
option: React.PropTy... |
Libraries/Image/Image.ios.js | lprhodes/react-native | /**
* 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... |
src/components/MainNav/MainNav.js | honeypotio/techmap | import React, { Component } from 'react';
import Item from './Item';
import Button from './Button';
import Content from './Content';
import Drawer from '../../components/Drawer';
import FloatingActionButton from '../../components/FloatingActionButton';
import Icon from '../../components/Icon';
class MainNav extends Co... |
src/svg-icons/action/fingerprint.js | ruifortes/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... |
src/shared/components/Admin/AdminEditStdPkgTab.js | Grace951/ReactAU | import React from 'react';
import EditSortableTbl from './EditSortableTbl';
import {CustomDel, CustomNumberInputTd, CustomTextInputTd} from "./SortabletblCustomInput.js";
import update from 'immutability-helper';
let initItem = {
desc:"",
qty: ""
};
let customTd=[{custd: CustomTextInputTd, keyItem: "desc... |
client/portfolio2017/src/Components/Layout/PortFolioLayout.js | corrortiz/portafolio2017 | import React from 'react';
import { BrowserRouter } from 'react-router-dom';
//Redux Store
import { Provider } from 'react-redux';
import storeConfig from '../../Store/storeConfig';
//MUI Components and Config
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import blue from 'material-ui/colors/bl... |
examples/with-react-intl/pages/index.js | sedubois/next.js | import React from 'react'
import {FormattedMessage, FormattedNumber, defineMessages} from 'react-intl'
import Head from 'next/head'
import pageWithIntl from '../components/PageWithIntl'
import Layout from '../components/Layout'
const {description} = defineMessages({
description: {
id: 'description',
defaultM... |
app_old/containers/HomePage/index.js | daicas/react-boilerplate-examp | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectArticles, ... |
packages/generator-react-application/template/src/components/Hero/Hero.js | my-dish/dish | // @flow
import React from 'react';
import styles from './hero.style.css';
const Hero = () => (
<div className={styles.container}>
<h1 className={styles.title}>
Hello:)
</h1>
</div>
);
export default Hero;
|
src/organisms/cards/GenericCard/__tests__/generic_card.spec.js | policygenius/athenaeum | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import Icon from 'atoms/Icon';
import GenericCard from 'organisms/cards/GenericCard';
describe('<GenericCard />', () => {
it('renders icon when icon prop is defined', () => {
const wrapper = shallow(<GenericCard icon='xI... |
ajax/libs/ui-router-extras/0.0.1-preview/ct-ui-router-extras.js | x112358/cdnjs | angular.module("ct.ui.router.extras", [ 'ui.router' ]);
//define(['angularAMD'], function (angularAMD) {
var app = angular.module("ct.ui.router.extras");
app.service("$deepStateRedirect", function ($rootScope, $state) {
var lastSubstate = {};
var lastParams = {};
var deepStateRedirectsByName = {};
... |
src/components/Content/Content.js | macdja38/pvpsite | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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-typ... |
ajax/libs/cellx/1.9.0/cellx.umd.js | cdnjs/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["cellx"] = factory();
else
root["cellx"]... |
src/components/RoomUserList/Votes.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import DownvoteIcon from '@mui/icons-material/ThumbDown';
import FavoriteIcon from '@mui/icons-material/Favorite';
import UpvoteIcon from '@mui/icons-material/ThumbUp';
const Votes = ({
upvote, downvote, favorite, ...props
}) => (
<div {...props}>
... |
web/js/633fbb5_jquery-1.11.1.min_1.js | n1kula/simpleCMS | /*! jQuery v1.11.1 | (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... |
src/components/ui/Input.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { Field } from 'mobx-react-form';
import classnames from 'classnames';
import { scorePassword as scorePasswordFunc } from '../../helpers/password-helpers';
export default @observer class Input e... |
src/components/video_list_item.js | naveensoman/ReactYoutube | import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick = { () => onVideoSelect(video)}className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img cla... |
packages/material-ui-icons/src/Explicit.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-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z" />
, 'Explicit');
|
ajax/libs/react-chartjs-2/2.0.0/react-chartjs-2.min.js | pvnr0082t/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.reactChartjs2=t()}}(function(){return function t(e,n,r)... |
ajax/libs/angular-ui-select/0.8.4/select.js | terrymun/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.8.3 - 2014-11-25T22:50:54.095Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
src/components/Sequencer.js | reklawnos/synthesizer | import React from 'react';
import { range } from 'lodash'
import { keyToDegree } from '../utils/KeyboardUtils';
import './Sequencer.css';
import DegreeKnob from './DegreeKnob';
const noteDegrees = Object.values(keyToDegree);
const minNoteDegree = Math.min(...noteDegrees);
const maxNoteDegree = Math.max(...noteDegre... |
ajax/libs/react-data-grid/1.0.18/react-data-grid.min.js | emmy41124/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
packages/eslint-config-airbnb/test/test-react-order.js | codelegant/JavaScript | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
rules: {
// This rule fails when executing on text.
in... |
docs/includes/GettingStarted.js | harjeethans/materialistic | import React from 'react';
class GettingStarted extends React.Component {
render() {
return (
<div>
GettingStarted
</div>
);
}
}
export default GettingStarted;
|
consoles/my-joy-instances/src/mocks/react-responsive.js | yldio/joyent-portal | import React from 'react';
export default ({ query, children }) => (
<span name="react-responsive-mock" query={query}>
{children}
</span>
);
|
client/src/react/goals/GoalForm.js | charlesj/Apollo | import React from 'react'
import { connect, } from 'react-redux'
import { Field, reduxForm, } from 'redux-form'
import PropTypes from 'prop-types'
import { CancelButton, SaveButton, } from '../_controls'
let GoalForm = props => {
const { handleSubmit, onCancel, } = props
return (
<form className="goalEditConta... |
assets/src/components/PageLoading/index.js | mmillet/mock-server | import React from "react";
import './style.less';
export default React.createClass({
render() {
return <div className="page-loading-wrapper">
<div className="spinner">
<div className="bounce1"></div>
<div className="bounce2"></div>
<div className="bounce3"></div>
</div>
</div>
}
});
|
dist/1.10.2/jquery-deprecated-event-alias-offset.js | michael829/jquery-builder | /*!
* jQuery JavaScript Library v1.10.2 -event-alias,-offset,-deprecated
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-07T16:56Z
*/
(fun... |
src/containers/Home/Home.js | jeremiahrhall/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from clien... |
ajax/libs/jquery-mobile/1.4.1/jquery.mobile.js | amoyeh/cdnjs | /*!
* jQuery Mobile 1.4.1
* Git HEAD hash: 18c1e32bfc4e0e92756dedc105d799131607f5bb <> Date: Wed Feb 12 2014 22:15:20 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
packages/material-ui-icons/src/CropOriginal.js | callemall/material-ui | import * as 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 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z" />
, 'CropOriginal');
|
app/javascript/mastodon/features/pinned_statuses/index.js | clworld/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
node_modules/rc-collapse/es/Panel.js | ZSMingNB/react-news | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
src/svg-icons/action/assignment-returned.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturned = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
src/routes/index.js | hahoocn/hahoo-admin | import React from 'react';
import Route from 'react-router/lib/Route';
import IndexRoute from 'react-router/lib/IndexRoute';
import {
App,
Home,
Login,
NotFound,
Scml,
ScmlEdit,
ScmlView,
Mcml,
McmlView,
McmlEdit,
Cate,
CateEdit
} from '../containers';
import { isAuth } from '../actions/auth';
... |
packages/material-ui-icons/src/ScoreRounded.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 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-2zm-7 2.75c0-.41.34-.75.75-.75s.75.34.75.75V8l1.79-2.69c.13-.19.35-... |
platform/viewer/src/appExtensions/MeasurementsPanel/index.js | OHIF/Viewers | import React from 'react';
import ConnectedMeasurementTable from './ConnectedMeasurementTable.js';
import init from './init.js';
import LabellingFlow from '../../components/Labelling/LabellingFlow';
export default {
/**
* Only required property. Should be a unique value across all extensions.
*/
id: 'measur... |
ajax/libs/rxjs/2.3.14/rx.lite.js | pombredanne/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... |
src/components/ErrorBox.js | pcardune/pyret-ide | import React from 'react';
import Radium from 'radium';
import {connect} from 'react-redux';
import styles from './styles';
import {getError} from '../redux/selectors';
import {LanguageError} from '../errors';
export class ErrorBox extends React.Component {
render() {
if (this.props.error instanceof LanguageErro... |
ajax/libs/react-native-web/0.14.3/exports/Picker/index.js | cdnjs/cdnjs | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
src/admin/client/apps/jivosite.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import api from 'lib/api';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
export const Description = {
key: 'jivosite',
name: 'JivoSite онлайн-консультант',
coverUrl: '/admin-assets/images/apps/jivosite.... |
src/components/01-atoms/Tooltip/TooltipContent.js | buildit/bookit-web | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { isBooking } from '../../../selectors'
import moment from 'moment'
export const TooltipContent =
({ title, start, end, roomName, owner, isUserAdmin, isOwnedByUser, styles, onEditClick, isBooking }) => {
... |
node_modules/react-icons/ti/coffee.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiCoffee = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.3 31.7h-20c-0.9 0-1.6-0.8-1.6-1.7s0.7-1.7 1.6-1.7h20c1 0 1.7 0.8 1.7 1.7s-0.7 1.7-1.7 1.7z m0.9-23.4h-20.9v15c0 1.9 1.5 3.4 3.4 3.4h13.3c1.8 0 3.3-1.5 3.3-3.4v-3.3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.