path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/svg-icons/hardware/speaker.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c... |
packages/react/src/components/TooltipIcon/TooltipIcon-test.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { mount } from 'enzyme';
import TooltipIcon from '../TooltipIcon';
describe('TooltipIcon', () => {
let m... |
app/lib/jquery/jquery-1.10.2.min.js | alexblancoz/Angular | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/components/Tags.js | HugoReeves/tfr-blog | import React from 'react';
import Link from 'gatsby-link';
import '../css/tags.css';
export default function Tags({ list = [] }) {
return (
<div className="tag-list">
{list.map(tag =>
<Link className="tag" to={`/tags/${tag}`}>
{tag}
</Link>
)}
</div>
);
}
|
packages/core/admin/admin/src/content-manager/components/DynamicZone/components/DzLabel/index.js | wistityhq/strapi | /**
*
* DzLabel
*
*/
import React from 'react';
import { useIntl } from 'react-intl';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { pxToRem } from '@strapi/helper-plugin';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
impo... |
src/components/form/SelectField.js | RelativeMedia/rm-frontend | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
const SelectField = ({ disabled, options, input, inputLg, label, meta: {valid, touched, error} }) => {
const classes = classNames('form-group', {
'has-error': (touched && !valid),
'has-success': (touched && valid... |
sites/all/modules/ctools/js/dependent.js | auxy1234/bitbucket | /**
* @file
* Provides dependent visibility for form items in CTools' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('ctools_process_dependency'),
* - '#dependency' => array('id-of-form-item' => array(list, of, values, that,
* make, this, item, show),
*
* Special considerations:
... |
src/components/Thumbnail/Thumbnail.js | rogeriopvl/http.cat | import React from 'react'
import styles from './Thumbnail.module.css'
const Thumbnail = ({ code, description }) => (
<div className={styles.container}>
<a href={`/${code}`}>
<div
className={styles.image}
style={{ backgroundImage: `url(/images/${code}.jpg)` }}
/>
<div className=... |
source/component/listview/postCommentList.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
Text,
ListView
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import * as CommentAction from '../../action/comment';
import PostCommentRow... |
docs/components/components/SelectDocumentation.js | nikgraf/belle | /* eslint-disable no-console */
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Option, Placeholder, Select, Separator, TextInput } from 'belle';
import Code from '../Code';
import { propertyNameStyle, propertyDescriptionStyle } from '../../style';
function positionOptions(selectC... |
src/components/StaticVictory.js | gj262/noaa-coops-viewer | // Only update victory chart elements when key attributes change.
import PropTypes from 'prop-types'
import React from 'react'
import { VictoryLine } from 'victory-line'
class StaticVictoryLine extends React.Component {
static propTypes = {
data: PropTypes.array.isRequired,
updateAttrs: PropTypes.string.is... |
ajax/libs/material-ui/5.0.0-beta.5/Breadcrumbs/Breadcrumbs.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";const _excluded=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"];import*as React from"react";impo... |
client/containers/homePage/HomePageContainer.js | intanta/go-words | import React from 'react'
// import { connect } from 'react-redux'
// import * as actionCreators from '../redux/actions/authActions'
// import { bindActionCreators } from 'redux'
import HomePage from '../../components/homePage/HomePage';
class HomePageContainer extends React.Component {
handleAdd = () => { this.cont... |
ajax/libs/quickblox/1.0.1/quickblox.js | honestree/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... |
packages/react-dom/src/server/ReactPartialRenderer.js | jameszhan/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ThreadID} from './ReactThreadIDAllocator';
import type {ReactElement} from 'shared/ReactElementType';
imp... |
ajax/libs/redux-form/6.0.0/redux-form.js | pombredanne/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReduxForm"] = facto... |
packages/mineral-ui-icons/src/IconPlace.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 IconPlace(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
packages/material-ui-icons/lib/Shortcut.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
docs/app/Examples/elements/List/Types/ListExampleOrdered.js | mohammed88/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleOrdered = () => (
<List ordered>
<List.Item as='a'>Getting Started</List.Item>
<List.Item as='a'>Introduction</List.Item>
<List.Item>
<a>Languages</a>
<List.List>
<List.Item as='a'>HTML</List.Item>
... |
ajax/libs/js-data/2.0.0-beta.10/js-data-debug.min.js | jonobr1/cdnjs | /*!
* js-data
* @version 2.0.0-beta.10 - 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 webpackUniver... |
features/welcome/components/AbstractWelcomePage.js | jitsi/jitsi-meet-react | import React, { Component } from 'react';
import { appNavigate } from '../../app';
import { isRoomValid } from '../../base/conference';
import { VideoTrack } from '../../base/media';
import { getLocalVideoTrack } from '../../base/tracks';
/**
* Base (abstract) class for container component rendering the welcome page... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsNoneButState.js | popham/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<void, Props, State> {
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<void, Props, State> {
defaultProps: T;
static prop... |
src/packages/@ncigdc/components/FileVersionsTable.js | NCI-GDC/portal-ui | import React from 'react';
import {
compose,
lifecycle,
withState,
branch,
renderComponent,
} from 'recompose';
import moment from 'moment';
import DownloadTableToTsvButton from '@ncigdc/components/DownloadTableToTsvButton';
import BubbleIcon from '@ncigdc/theme/icons/BubbleIcon';
import DownloadIcon from '@... |
src/DropdownButton.js | roderickwang/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Dropdown from './Dropdown';
import NavDropdown from './NavDropdown';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import omit from 'lodash/object/omit';
class Dropdown... |
wrappers/toml.js | Cspeisman/cspeisman.github.io | import React from 'react'
import toml from 'toml-js'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (... |
src/icon.js | felixrieseberg/React-Dropzone-Component | import React from 'react'
export const Icon = (props) => {
return (<div data-filetype={props.filetype} className='filepicker-file-icon' />)
}
|
web/src/stories/Header.js | ajmalafif/ajmalafif.com | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from './Button';
import './header.css';
export const Header = ({ user, onLogin, onLogout, onCreateAccount }) => (
<header>
<div className="wrapper">
<div>
<svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://... |
src/pages/posts/data/encodingsAndAssumptions.js | wchargin/wchargin.github.io | import React from 'react';
import Prism from '../../../extern/Prism';
import {Code, CodeBlock, Link} from '../../../Components';
function render(Title, Section) {
const urls = {
binarySearch: 'https://research.googleblog.com/2006/06/extra-extra-read-all-about-it-nearly.html',
repo: 'https://github... |
ajax/libs/react-native-web/0.14.4/exports/RefreshControl/index.js | cdnjs/cdnjs | function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
* Copy... |
packages/benchmarks/styletron/client/Table.js | A-gambit/CSS-IN-JS-Benchmarks | import React from 'react';
import { styled, StyletronProvider } from 'styletron-react';
import Styletron from 'styletron-client';
const Table = styled('div', {
display: 'table',
marginTop: '10px',
});
const Row = styled('div', {
display: 'table-row',
});
const Cell = styled('div', props => ({
display: 'table... |
src/Navbar/Container.js | UTNianos/frontend | import { connect } from 'react-redux';
import Navbar from './Navbar';
const mapStateToProps = () => ({ userLoggedIn: false });
const mapDispatchToProps = () => ({});
const NavbarContainer = connect(
mapStateToProps,
mapDispatchToProps
)(Navbar);
export default NavbarContainer;
|
node_modules/rc-calendar/es/decade/DecadePanel.js | prodigalyijun/demo-by-antd | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-run... |
src/containers/Trailer/Trailer.js | gregsabo/beanstalk-tractor-trailer | import React from 'react';
import { Component } from 'react';
import { Link } from 'react-router';
import Helmet from 'react-helmet';
export default class Trailer extends Component {
render() {
return (
<div>
<Helmet title="Trailer"/>
<p>
It is a Trailer.
</p>
<Lin... |
src/svg-icons/image/filter-6.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter6 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-2... |
MobileApp/node_modules/react-native-elements/src/card/Card.js | VowelWeb/CoinTradePros.com | import PropTypes from 'prop-types';
import React from 'react';
import {
View,
StyleSheet,
Platform,
Image,
Text as NativeText,
} from 'react-native';
import fonts from '../config/fonts';
import colors from '../config/colors';
import Text from '../text/Text';
import Divider from '../divider/Divider';
import no... |
ajax/libs/react-data-grid/0.14.37/react-data-grid-with-addons.min.js | honestree/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... |
src/components/CategoriesTree.js | olontsev/react-redux-bootcamp | import React from 'react';
import CategoriesTreeItem from '../components/CategoriesTreeItem';
class CategoriesTree extends React.Component {
render() {
var children = [];
this.props.categories.forEach((category) => {
children.push(<CategoriesTreeItem key={category.id} category={category} {...this.pr... |
examples/ModalWithFixedFooter.js | mattBlackDesign/react-materialize | import React from 'react';
import Modal from '../src/Modal';
import Button from '../src/Button';
export default
<Modal
header='Modal Header'
fixedFooter
trigger={<Button>MODAL WITH FIXED FOOTER</Button>}>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dol... |
src/client/modules/indeed/pages/PostJob/PostJob.js | dunika/job-admin | import React from 'react';
import styled from 'styled-components';
import { compose, withHandlers, withProps } from 'recompose';
import { reduxForm, Field } from 'redux-form';
import moment from 'moment';
import { Flex } from 'client/modules/shared/components';
import { connectReselect } from 'client/lib/redux-helpers... |
test/changes.spec.js | formio/react-formio | import EventEmitter from 'eventemitter2';
import React from 'react';
import sinon from 'sinon';
import {expect} from 'chai';
import Form from '../src/components/Form';
import {
textField,
visible,
layout,
columns,
formWithInput
} from './fixtures';
import {
createIfExceed,
createMount,
seq
} from './ut... |
ajax/libs/forerunnerdb/1.3.589/fdb-core+persist.js | wout/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... |
frontend/app_v2/src/common/icons/Story.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Story
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Story({ styling }) {
return (
<svg data-testid="Story" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}>
<path ... |
src/client/containers/Home/Home.js | eliasmeire/hz-pictionary | import React from 'react';
import { connect } from 'react-redux';
import { Heading, Notification } from 'grommet';
import RoomForm from './RoomForm';
import Header from '../../components/Header/Header';
import { createRoom, logout } from '../../redux/actions';
import './Home.scss';
const Home = ({ user, createRoom, lo... |
files/jquery.handsontable/0.10.3/jquery.handsontable.full.js | garrypolley/jsdelivr | /**
* Handsontable 0.10.3
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Mon Feb 10 2014 14:15:11 GMT+0100 (CET)
*/
/*jslin... |
internals/templates/containers/LanguageProvider/index.js | romanvieito/ball-simpler | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
docs/src/SupportPage.js | victorzhang17/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="support" />
<PageHeader
title="Nee... |
src/containers/skills/index.js | btoo/btoo.github.io | import React from 'react'
import { push } from 'react-router-redux'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import {
filter
} from '../../modules/skills'
import './index.css'
const Skills = props => {
return (
<article>
<p>
Skills
</p>
{/* <h3>... |
src/svg-icons/maps/tram.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTram = (props) => (
<SvgIcon {...props}>
<path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h... |
src/svg-icons/action/account-circle.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.... |
app/containers/LocaleToggle/index.js | akash6190/apollo-starter | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
src/components/Counter/Counter.js | dkwingsmt/aporeto-pokemongo | import React from 'react'
import classes from './Counter.scss'
export const Counter = (props) => (
<div>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{props.counter}
</span>
</h2>
<button className='btn btn-default' ... |
client/components/settings/bank-accesses/disable-access-modal.js | ZeHiro/kresus | import React from 'react';
import { connect } from 'react-redux';
import { actions, get } from '../../../store';
import { translate as $t } from '../../../helpers';
import { registerModal } from '../../ui/modal';
import CancelAndWarn from '../../ui/modal/cancel-and-warn-buttons';
import ModalContent from '../../ui/mo... |
scripts/run-ci-e2e-tests.js | makadaw/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.
*/
'use stric... |
packages/ringcentral-widgets-docs/src/app/pages/Components/LogBasicInfo/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
packages/material-ui-icons/src/FilterCenterFocusTwoTone.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="M5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zM12 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3zM19 3h-4v2h4v4h2V5c0-1.1-.9-2-2-2zM19 19h-4v2h4c1.... |
src/svg-icons/action/done-all.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDoneAll = (props) => (
<SvgIcon {...props}>
<path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4... |
src/index.js | gaguri777/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
ajax/libs/jointjs/0.6.1/joint.nojquery.js | KOLANICH/cdnjs | /*! JointJS v0.6.0 - JavaScript diagramming library 2013-08-05
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// Underscore.js 1.4.4
// ===================
// > http... |
src/__tests__/Dropdown.spec.js | reactstrap/reactstrap | import React from 'react';
import { mount, shallow } from 'enzyme';
import { Popper, Reference } from 'react-popper';
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from '../';
import { keyCodes } from '../utils';
describe('Dropdown', () => {
let isOpen;
let toggle;
let element;
beforeEach(()... |
client/src/js/components/rooms/EmptyRoomsList.js | abitlog/retube | import React from 'react';
const EmptyRoomsList = () => {
return (
<div className="rooms__empty-rooms-list empty-rooms-list">
<div className="empty-rooms-list__content">
<i class="fa fa-exclamation-triangle empty-rooms-list__icon" aria-hidden="true"> </i>
<p className="empty-rooms-list__tex... |
src/connected/index.js | soybuddha/portfolio | import React from 'react';
import ReactDOM from 'react-dom';
import { Portfolio } from '../Portfolio';
ReactDOM.render(<Portfolio />, document.getElementById('jbPortfolio'));
|
Realization/frontend/czechidm-core/src/content/workflow/HistoricProcessInstanceTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { WorkflowProcessDefinitionManager } from '..... |
ajax/libs/analytics.js/2.8.18/analytics.min.js | AMoo-Miki/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
examples/huge-apps/routes/Course/components/Course.js | AnSavvides/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
render () {
let { children, params } = this.pro... |
ajax/libs/react/0.12.0-rc1/react-with-addons.min.js | froala/cdnjs | /**
* React (with addons) v0.12.0-rc1
*
* Copyright 2013-2014, 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 ... |
src/svg-icons/action/trending-up.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingUp = (props) => (
<SvgIcon {...props}>
<path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/>
</SvgIcon>
);
ActionTrendingUp = pure(ActionTrendingUp);
ActionTrending... |
ajax/libs/vue/0.12.7/vue.js | kiwi89/cdnjs | /**
* Vue.js v0.12.7
* (c) 2015 Evan You
* Released under the MIT License.
*/
(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(typ... |
ajax/libs/forerunnerdb/1.3.71/fdb-legacy.min.js | cdnjs/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/interface/report/Results/StatDisplay.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { formatPercentage } from 'common/format';
import StatTracker from 'parser/shared/modules/StatTracker';
import RadarChart, { maxDataValue } from 'interface/statistics/components/RadarChart/RadarChart';
class StatDisplay extends React.PureComponent ... |
ajax/libs/zxcvbn/3.4.0/zxcvbn.js | dhenson02/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.zxcvbn = f()}}... |
app/Component/Route/index.js | ecmadao/Electron-Search-App | import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route, hashHistory, IndexRoute} from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Dashboard from '../Dashboard/index';
import AppStore from '../../Redux/store';
import App from '../App';
import Setting fro... |
src/SparklinesLine.js | samsface/react-sparklines | import React from 'react';
export default class SparklinesLine extends React.Component {
static propTypes = {
color: React.PropTypes.string,
style: React.PropTypes.object
};
static defaultProps = {
style: {}
};
render() {
const { points, width, height, margin, col... |
packages/material-ui-icons/src/Timer3.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0z" /><path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49... |
client/visual/primitives.js | quarterto/almanac | import React from 'react'
import styled, { css } from 'styled-components'
import colours from '@quarterto/colours'
import contrast from 'contrast'
export const background = ({ colour = 'sky', shade = 3 }) => {
const bg = colours[colour][shade]
return css`
background: ${bg};
color: ${contrast(bg) === 'dark' ? 'w... |
src/createElementWithProps.js | xaviervia/react-dream | import React from 'react'
export default props => Component => <Component {...props} />
|
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.min.js | john-h-moore/moorelevesque | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
ajax/libs/vue-material/0.5.0/vue-material.debug.js | redmunds/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["VueMaterial"] = factory();
else
root["V... |
gh/components/CenteredRow.js | bitriddler/react-items-carousel | import React from 'react';
import styled from 'styled-components';
import { Row } from 'antd';
export default styled(Row)`
${props => props.withMaxWidth && `
max-width: 1000px;
margin: 0 auto;
`}
${props => !props.noTopPadding && `padding-top: 20px;`}
${props => !props.noBottomPadding && `padding-botto... |
packages/cf-component-toast/src/Toast.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
import { createComponent } from 'cf-style-container';
const getColors = (theme, type) => {
switch (type) {
case 'success':
return {
borderColor: theme.color.grass50,
backgroundColor: theme.color.grass10
};
case 'error'... |
ajax/libs/orb/1.0.8/orb.min.js | kartikrao31/cdnjs | /**
* orb v1.0.8, Pivot grid javascript library.
*
* Copyright (c) 2014-2015 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.8
* @link http://nnajm.github.io/orb/
* @license MIT
*/
"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==t... |
frontend/src/components/Loading.js | metamaps/metamaps | import React from 'react'
import PropTypes from 'prop-types'
// based on https://www.npmjs.com/package/react-loading-animation
const loadingStyle = {
position: 'relative',
margin: '0 auto',
width: '30px',
height: '30px'
}
const svgStyle = {
animation: 'rotate 2s linear infinite',
height: '100%',
transf... |
src/apps/storefront/src/routes/home/home.js | Kevnz/shopkeep | import React from 'react';
import ProductCard from '../../components/product';
class Home extends React.Component {
render() {
const products = this.props.products.map(p => <ProductCard product={p} key={`p-${p.identifier}`} />)
return (
<div >
<div>
<h1>Buy Stuff</h1>
{produc... |
src/layouts/core/core-layout.spec.js | clintonhalpin/react-redux-starter-kit | import React from 'react';
import CoreLayout from './index.jsx';
describe('(Layout) Core', function () {
it('Should have a working test.', function () {
expect(true).to.be.true;
});
});
|
pootle/static/js/admin/components/ItemTableRow.js | dwaynebailey/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 cx from 'classnames';
import React from 'react';
... |
src/js/components/icons/base/Cursor.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
admin/client/App/screens/Home/components/Section.js | pr1ntr/keystone | import React from 'react';
import getRelatedIconClass from '../utils/getRelatedIconClass';
class Section extends React.Component {
render () {
const iconClass = this.props.icon || getRelatedIconClass(this.props.id);
return (
<div className="dashboard-group" data-section-label={this.props.label}>
<div class... |
examples/example 4 - Balls/jquery-1.8.3.min.js | hxgdzyuyi/pixi.js | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
js/jquery-1.8.0.min.js | wanliyang10010/myGit | /*! jQuery v@1.8.0 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==... |
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js | cr101/create-react-app | /**
* 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.
*/
import Rea... |
src/main/script/src/containers/authentication/Register.js | EunBeeJo/auction | import React from 'react';
import Authentication from "../../components/Authentication";
import { registerRequest } from '../../actions/authentication'
import { connect } from 'react-redux';
class Register extends React.Component {
constructor(props) {
super(props);
this.handleRegister = this.handl... |
PublicApp/Main.js | sergiu-paraschiv/pi-media-center-automation | import React from 'react';
import ReactDOM from 'react-dom';
import InjectTapEventPlugin from 'react-tap-event-plugin';
import PageComponent from './Page/components/PageComponent';
InjectTapEventPlugin();
ReactDOM.render(
<PageComponent />,
document.getElementById('content')
);
|
node_modules/@material-ui/core/esm/internal/svg-icons/CheckCircle.js | pcclarke/civ-techs | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(React.createElement("path", {
d: "M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"
}), 'CheckCircle'); |
app/javascript/mastodon/components/poll.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
chrome/browser/resources/file_manager/foreground/js/file_manager.js | scotthartbti/android_external_chromium_org | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
/**
* FileManager constructor.
*
* FileManager objects encapsulate the functionality of the file selector
* dialogs, as well as the... |
ajax/libs/react-virtualized/3.1.0/react-virtualized.js | sreym/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("react")) : "function" == typeof define && define.amd ? define([ "react" ], factory) : "object" == typeof exports ? exports["react-virtualized"] = factory(require("react")) : root["react-virtualized... |
doc/asset/js/jquery.min.js | wskplho/echarts | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim... |
front/index.ios.js | fa93hws/tipping | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class front extends Component {
render() {
return (
<View style={styles.container}>
... |
ajax/libs/handsontable/0.10.3/jquery.handsontable.js | nareshs435/cdnjs | /**
* Handsontable 0.10.3
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Mon Feb 10 2014 14:15:11 GMT+0100 (CET)
*/
/*jslin... |
ajax/libs/yui/3.8.0/datatable-core/datatable-core-debug.js | vdurmont/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/bundles/ApplicationsAdmin/components/AppDiff/AppDiff.js | AusDTO/dto-digitalmarketplace-frontend | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Control, LocalForm } from 'react-redux-form';
import { appSave } from '../../redux/modules/application';
import { diff_match_patch } from 'diff-match-patch';
import styles from './AppDiff.css';
import traverse from 'traverse';
c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.