path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/material-ui-icons/src/FlightTakeoffRounded.js | allanalexandre/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="M20.5 19h-17c-.55 0-1 .45-1 1s.45 1 1 1h17c.55 0 1-.45 1-1s-.45-1-1-1zM22.07 9.64c-.22-.8-1.04-1.27-1.84-1.06L14.92 10 8.46 3.98c-.27-.26-.66... |
ajax/libs/styled-components/4.3.0/styled-components.esm.min.js | joeyparrish/cdnjs | import Stylis from"stylis/stylis.min";import _insertRulePlugin from"stylis-rule-sheet";import React,{cloneElement,createContext,Component,createElement}from"react";import unitless from"@emotion/unitless";import{isElement,isValidElementType,ForwardRef}from"react-is";import memoize from"memoize-one";import stream from"st... |
packages/material-ui-icons/legacy/Battery90Sharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v4h10V4z" /><path d="M7 8v14h10V8H7z" /></React.Fragment>
, 'Battery90Sharp');
|
ajax/libs/material-ui/5.0.0-alpha.31/modern/internal/svg-icons/Cancel.js | cdnjs/cdnjs | import * as React from 'react';
import createSvgIcon from '../../utils/createSvgIcon';
/**
* @ignore - internal component.
*/
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.... |
src/svg-icons/av/recent-actors.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRecentActors = (props) => (
<SvgIcon {...props}>
<path d="M21 5v14h2V5h-2zm-4 14h2V5h-2v14zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM8 7.75c1.24 0 2.25 1.01 2.25 2.25S9.... |
node_modules/_antd@2.13.4@antd/es/calendar/index.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
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-runtime/helpers/i... |
ReactComponent/node_modules/react-native/local-cli/generate/generate.js | xuchengcheng/RNAPPDemo | /**
* 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 strict... |
fixtures/attribute-behavior/src/App.js | anushreesubramani/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
assets/js/jquery-1.11.3.min.js | mkumar85/web_dev | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
styleguide/screens/Patterns/Modals/Modals.js | rdjpalmer/bloom | import React, { Component } from 'react';
import cx from 'classnames';
import dedent from 'dedent';
import Specimen from '../../../components/Specimen/Specimen';
import { D, H, T, C, Note, Placeholder } from '../../../components/Scaffold/Scaffold';
import ModalAnimator from '../../../../components/Modal/ModalAnimator'... |
ajax/libs/yui/3.13.0/event-custom-base/event-custom-base.js | likang/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* 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.
* @mo... |
examples/real-world/index.js | Amirus/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import BrowserHistory from 'react-router/lib/BrowserHistory';
React.render(
<Root history={new BrowserHistory()} />,
document.getElementById('root')
);
|
packages/material-ui-icons/src/NoteTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M15 6H4v12.01h16V11h-5z" opacity=".3" /><path d="M4 4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99h16c1.1 0 2-.9 2-2v-8l-6-6H4zm16 14.01H4V6h11v5h5... |
js/views/FormPage.js | ecohealthalliance/GoodQuestion | // React
import React from 'react';
import {
View,
KeyboardAvoidingView,
ScrollView,
Text,
Platform,
Alert,
Dimensions,
} from 'react-native';
// Libraries
import _ from 'lodash';
import pubsub from 'pubsub-js';
import moment from 'moment';
import dismissKeyboard from 'dismissKeyboard';
import Icon from ... |
Gryffindor/app/containers/Config.js | Acheron-VAF/Acheron | import React, { Component } from 'react';
import Radium from 'radium';
class Config extends Component {
constructor(props) {
super(props);
this.state = {};
}
getStyles() {
const bgcolor = {
default: "white"
}
return {
landingFooter: {
position: "absolute",
... |
client/components/dashboard/Tweet.js | creativcoder/rio | import React from 'react';
import { store } from '../../index';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { retweet, likeTweet } from '../../actions';
import ReplyModal from './ReplyModal';
import {Media, Glyphicon, Collapse, Well } from 'react-bootstrap';
import tweet_tr... |
ajax/libs/redux-form/1.0.0/redux.min.js | extend1994/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].expor... |
components/modal/credits-modal/component.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
class CreditsModal extends React.Component {
render() {
return (
<div className="c-credits-modal">
<h2>Credits</h2>
<div className="upper-container">
<div className="row">
<div className="column small-6">
... |
AlbumCatalog/AlbumCatalog/Scripts/jquery-ui-1.9.2.js | tetowill/aspmvc-album-catalog | /*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js... |
src/svg-icons/editor/mode-comment.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/>
</SvgIcon>
);
EditorModeComment = pure(EditorModeComment);
Edito... |
app/javascript/mastodon/features/video/index.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { throttle } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/util/fullscreen';
const messages = def... |
RNApp/node_modules/react-native/local-cli/__tests__/generators-test.js | abhaytalreja/react-native-telescope | /**
* 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 strict... |
ajax/libs/rxjs/2.5.1/rx.all.js | khasinski/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/core-js/1.0.0/shim.js | BitsyCode/cdnjs | /**
* core-js 1.0.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
packages/material-ui-icons/src/NetworkWifiTwoTone.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.94L12 21.5l8.47-10.56c-.43-.33-3.66-2.95-8.47-2.95s-8.04 2.62-8.47 2.95z" /... |
src/svg-icons/image/photo-camera.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24... |
src/BootstrapMixin.js | erictherobot/react-bootstrap | import React from 'react';
import styleMaps from './styleMaps';
import CustomPropTypes from './utils/CustomPropTypes';
const BootstrapMixin = {
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: CustomPropTypes.keyOf(styleMaps.CLASSES),
/**
* Style variants
* @type {("... |
src/components/WhiteButton.js | jdpigeon/neurodoro | // WhiteButton.js
// A duplicate Button component for the early connector slides that is white instead of blue
import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity,
StyleSheet,
} from 'react-native';
export default class WhiteButton extends Component{
constructor(props){
supe... |
app/containers/Home/index.js | MameeV/UPA | /*
*
* Home
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import {Link} from 'react-router';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import Responsive from 'react-responsive';
export default class Home extends React.PureComponent {
con... |
ajax/libs/forerunnerdb/1.3.816/fdb-core.js | iwdmb/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... |
app/containers/Settings/index.js | johnsiu2016/FYP | /*
*
* Settings
*
*/
import React from 'react';
import {connect} from 'react-redux';
import Helmet from 'react-helmet';
import styles from './styles.css';
import Paper from 'material-ui/Paper';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'mat... |
src/MetadataRequestInfo.js | manywho/whomiboo | import React, { Component } from 'react';
import { Button, Panel } from 'react-bootstrap';
import Modal from 'react-modal';
class MetadataRequestInfo extends Component {
constructor(props) {
super(props);
}
render () {
const customStyles = {
content : {
top ... |
node_modules/react-bootstrap/es/ButtonToolbar.js | okristian1/react-info | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/interface/LocalizationLoader.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import retryingPromise from 'common/retryingPromise';
import { getLanguage } from 'interface/selectors/language';
class LocalizationLoader extends React.PureComponent {
static propTypes = {
language: PropTypes.... |
components/Layout/Header.js | RyanGosden/react-poll | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
app/components/NavBarSearch.js | mapbox/osm-comments-frontend | import React from 'react';
import {History} from 'react-router';
import utils from '../utils';
var NavBarSearch = React.createClass({
mixins: [History],
getInitialState: function() {
return {value: this.props.query['q'] || ''};
},
componentWillReceiveProps: function(newProps) {
this.set... |
src/app/layout/layout_main/layout_main.spec.js | Drathal/react-playground | import React from 'react'
import { mount } from 'enzyme'
import { Provider } from 'react-intl-redux'
import configureStore from 'redux-mock-store'
import LayoutMain from './layout_main'
const store = configureStore()({ intl: { locale: 'en' } })
describe('component <LayoutMain />', () => {
it('can render childs', ()... |
src/docs/examples/Label/ExampleRequired.js | nreoch25/react-package-dev | import React from 'react';
import Label from 'react-package-dev/Label';
/** Required label */
export default function ExampleRequired() {
return <Label htmlFor="test" label="test" required />
}
|
node_modules/jquery/src/sizzle/test/jquery.js | ajames72/WallJS | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/App.js | Tanachi/PollerBears | import React, { Component } from 'react';
import { BrowserRouter as Router, Link } from 'react-router-dom';
import Routes from './components/Routes';
class App extends Component {
render() {
return (
<div className="App-container">
<Router>
<div>
<div className="top-container"... |
src/components/SignIn.js | dbernstein/modern-webapp | import React from 'react';
export default React.createClass({
render() {
return (
<div>
<h2>Sign In</h2>
<p>A place to sign in.</p>
</div>
);
}
});
|
src/svg-icons/editor/mode-comment.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorModeComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18z"/>
</SvgIcon>
);
EditorModeComment = pure(EditorModeComment);
Edito... |
ajax/libs/material-ui/5.0.0-alpha.18/RadioGroup/RadioGroup.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import FormGroup from '../FormGroup';
import useForkRef from '../utils/useForkRef';
import u... |
app/_root/containers/App/index.js | Dmitry-N-Medvedev/motor-collection | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Header from '../../components/Header';
import withProgressBar from '../../../components/ProgressBar';
import { Conte... |
src/pages/404.js | GeniusWigga/irmua | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
packages/core/admin/admin/src/content-manager/components/FieldComponent/Label.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import { useIntl } from 'react-intl';
import styled from 'styled-components';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
const LabelActi... |
dist/frontend/links/components/main.js | angeloocana/freecomclub | import React from 'react';
import Relay from 'react-relay';
import Link from './Link';
import CreateLinkMutation from "../mutations/CreateLinkMutation";
class Main extends React.Component {
constructor() {
super(...arguments);
this.setLimit = (e) => {
var newLimit = Number(e.target.value... |
client/test/components/FormPostAttack.spec.js | umatoma/trunks | import React from 'react';
import { Record } from 'immutable';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import FormPostAttack from '../../components/FormPostAttack';
describe('<FormPostAttack />', () => {
const Form = new Record({
Duration: '10s',
Rate: '5',... |
src/components/NavigationButton/index.js | duheng/Mozi | import React from 'react';
import { TouchableOpacity, } from 'react-native';
import Icon from '../Icon';
const typeMap = {
share: 'md-share-alt',
search: 'ios-search',
back: 'ios-arrow-back',
reload: 'ion-ios-reload',
delete: 'ios-trash-outline',
};
const iStyle = {
paddingLeft: 8,
paddingRight: 8,
};
... |
src/svg-icons/action/favorite-border.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavoriteBorder = (props) => (
<SvgIcon {...props}>
<path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2... |
ajax/libs/backbone-react-component/0.6.4/backbone-react-component.js | djavaui/cdnjs | // Backbone React Component
// ========================
//
// Backbone.React.Component v0.6.2
//
// (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com>
// Backbone.React.Component can be freely distributed under the MIT license.
//
//
// `Backbone.React.Component` is a React.Component wrapper that serve... |
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js | dsopel94/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/ui/molecule/ComponentForm/index.js | jkubos/tickator-ide | import React from 'react'
import {observable} from 'mobx'
import {observer} from 'mobx-react'
import classNames from 'classnames'
import {Validate} from '~/src/util/Validate'
import styles from './style.less'
import {ComponentFrame} from './ComponentFrame'
import {UiState} from '~/src/business/UiState'
import {Busi... |
ajax/libs/rxjs/2.2.3/rx.js | mikesir87/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
src/components/Page/Page.js | edgarallanglez/foxacademia_frontend | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
ajax/libs/inferno-mobx/1.5.4/inferno-mobx.js | jonobr1/cdnjs |
/*!
* Inferno.Mobx v1.5.4
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno-component'), require('mobx'), require('inferno-create-class'), require('hoist-non-inferno-stat... |
src/svg-icons/communication/no-sim.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.... |
docs/src/app/components/pages/components/Popover/ExampleAnimation.js | lawrence-yu/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Popover, {PopoverAnimationVertical} from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleAnimation extends React.Component {
constructor(... |
src/addons/link/__tests__/ReactLinkPropTypes-test.js | JedWatson/react | /**
* Copyright 2013-2014 Facebook, Inc.
*
* 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 agree... |
subschema/test/Modal-test.js | jspears/subschema-devel | import React from 'react';
import { templates } from 'subschema-plugin-modal';
import {
byComponent, change, check, click, expect, into
} from 'subschema-test-support';
import { newSubschemaContext } from 'subschema';
import { ButtonTemplate } from 'subschema-plugin-template-button';
import { Checkbox } from 'subsc... |
admin/src/components/ListHeader.js | developer-prosenjit/keystone | import classNames from 'classnames';
import React from 'react';
import utils from '../utils.js';
import { Button, Dropdown, FormInput, InputGroup, Pagination } from 'elemental';
import CreateForm from './CreateForm';
import ListColumnsForm from './ListColumnsForm';
import ListDownloadForm from './ListDownloadForm';
im... |
ajax/libs/angular.js/0.10.4/angular.js | Bilge/cdnjs | /**
* @license AngularJS v0.10.4
* (c) 2010-2011 AngularJS http://angularjs.org
* License: MIT
*/
'use strict';
(function(window, document, undefined){
////////////////////////////////////
if (typeof document.getAttribute == $undefined)
document.getAttribute = function() {};
/**
* @ngdoc function
* @name ang... |
examples/official-storybook/stories/addon-toolbars.stories.js | kadirahq/react-storybook | import React from 'react';
import { styled } from '@storybook/theming';
export default {
title: 'Addons/Toolbars',
};
const getCaptionForLocale = (locale) => {
switch (locale) {
case 'es':
return 'Hola!';
case 'fr':
return 'Bonjour!';
case 'zh':
return '你好!';
case 'kr':
ret... |
pootle/static/js/auth/components/SocialSignInForm.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 React from 'react';
import { PureRenderMixin } from... |
app/javascript/containers/OpenContentPage.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import AdminContainer from 'containers/shared/AdminContainer';
import OpenContent from 'pages/admin/open-content';
const OpenContentPage = props => (
<AdminContainer {...props}>
<OpenContent />
</AdminContainer>
);
export default OpenContentPage;
|
packages/material-ui-icons/src/StayCurrentLandscape.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z" /></React.Fragment>
, 'StayCurrentLandscape... |
src/app.js | bygloam/desktop | require.main.paths.splice(0, 0, process.env.NODE_PATH);
import remote from 'remote';
import React from 'react';
import ipc from 'ipc';
import metrics from './utils/MetricsUtil';
import VPN from './utils/VPNUtil';
import vpnActions from './actions/VPNActions';
import template from './menutemplate';
import webUtil from '... |
src/CarouselItem.js | omerts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
app/containers/LanguageProvider/index.js | KyleAWang/react-boilerplate | /*
*
* 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 { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
ajax/libs/yui/3.9.0pr3/datatable-body/datatable-body-debug.js | iamJoeTaylor/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
jekyll-admin/src/components/form/tests/checkbox.spec.js | mparlak/mparlak.github.io | import React from 'react';
import { mount } from 'enzyme';
import Checkbox from '../Checkbox';
function setup(props = {text: 'GSoC', checked: false}) {
let actions = {
onChange: jest.fn()
};
let component = mount(
<Checkbox {...props} {...actions} />
);
return {
component,
checkbox: compon... |
src/svg-icons/alert/error.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertError = (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 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/>
</SvgIcon>
);
AlertError = pure(AlertError);
AlertEr... |
Components/SplashScreen.js | colm2/mizen | import React, { Component } from 'react';
import {
View,
StatusBar,
StyleSheet,
Image,
ActivityIndicator
} from 'react-native';
import Spacing from './Spacing';
export class SplashScreen extends Component{
render(){
return (
<View style={styles.splashScreen}>
<Spacing />
<Image source={require('./sp... |
src/Fade.js | Lucifier129/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import Transition from 'react-overlays/lib/Transition';
import deprecated from 'react-prop-types/lib/deprecated';
class Fade extends React.Component {
render() {
let timeout = this.props.timeout || this.props.duration;
return (
<Transitio... |
src/containers/create_account.js | TedtheDev/Tic-Tac-Toe | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createPlayer } from '../actions/index';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router-dom';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
i... |
node_modules/react-router/es6/RouterContext.js | orionwei/mygit | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
src/routes/Register/components/Register.js | jakehm/mapgame2 | import React from 'react'
import { browserHistory } from 'react-router'
export default class Register extends React.Component {
constructor (props) {
super(props)
this.onFormSubmit = this.onFormSubmit.bind(this)
this.state = {
message: '',
}
}
onFormSubmit (event) {
event.preventDefau... |
packages/material-ui-icons/src/ExploreRounded.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="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17... |
test/specs/lib/AutoControlledComponent-test.js | jamiehill/stardust | /* eslint-disable no-console */
import faker from 'faker'
import _ from 'lodash'
import React from 'react'
import { AutoControlledComponent } from 'src/lib'
import { consoleUtil } from 'test/utils'
let TestClass
/* eslint-disable */
const createTestClass = (options = {}) => class Test extends AutoControlledComponent... |
third_party/blink/perf_tests/speedometer/resources/todomvc/architecture-examples/react-redux/src/components/TodoTextInput.spec.js | endlessm/chromium-browser | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoTextInput from './TodoTextInput'
const setup = propOverrides => {
const props = Object.assign({
onSave: jest.fn(),
text: 'Use Redux',
placeholder: 'What needs to be done?',
editing: false,
newTodo: false
}, pro... |
src/Async.js | bruderstein/react-select | import React from 'react';
import Select from './Select';
import stripDiacritics from './utils/stripDiacritics';
let requestId = 0;
function initCache (cache) {
if (cache && typeof cache !== 'object') {
cache = {};
}
return cache ? cache : null;
}
function updateCache (cache, input, data) {
if (!cache) return... |
docs/src/GettingStartedPage.js | johanneshilden/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
export default class Page extends React.Component {
render() {
return (
<div>
<NavMain activePage="getting-started"... |
src/svg-icons/action/store.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionStore = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
</SvgIcon>
);
ActionStore = pure(ActionStore);
ActionStore.displayName = ... |
app/src/components/Errors.js | GlyphGryph/DarkerDaysAhead | import React from 'react'
import PropTypes from 'prop-types'
const Errors = ({errors}) => (
<ul
style={{
color: 'red',
position: 'absolute',
right: '0px',
top: '0px',
zIndex: 1
}}
>
{[...errors].reverse().map( (error, index) => (
<li key={index}>
{error}
... |
web/src/components/colorblindcheckbox.js | corradio/electricitymap | /* eslint-disable jsx-a11y/label-has-for */
/* eslint-disable jsx-a11y/label-has-associated-control */
import React from 'react';
import { useSelector } from 'react-redux';
import { dispatchApplication } from '../store';
import { saveKey } from '../helpers/storage';
import { useTranslation } from '../helpers/translati... |
examples/enzyme/__tests__/CheckboxWithLabel-test.js | aaron-goshine/jest | // Copyright 2004-present Facebook. All Rights Reserved.
/* eslint-disable no-unused-vars */
import React from 'react';
import {shallow} from 'enzyme';
import CheckboxWithLabel from '../CheckboxWithLabel';
it('CheckboxWithLabel changes the text after click', () => {
// Render a checkbox with label in the document
... |
node_modules/react-icons/md/gesture.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdGesture = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m23.1 30.9c1.2 0 3.2-1.4 3.6-5.8-3.6 0.9-4.8 3.6-4.8 4.6 0 0.8 0.7 1.2 1.2 1.2z m-15.4-19.4l-2.9-2.8c0.4-0.5 0.7-1 1.4-1.6 0.4-0.4 2.3-2.1 4.5-2.1 1.5 0 4.2 1.2 4.2 4... |
ajax/libs/yasgui/1.0.11/yasgui.bundled.min.js | Teino1978-Corp/Teino1978-Corp-cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/routes/dashboard/index.js | terryli1643/daoke-react-c | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col, Card } from 'antd'
import { NumberCard, Quote, Sales, Weather, RecentSales, Comments, Completed, Browser, Cpu, User } from './components'
import styles from './index.less'
import { color } from '../../utils'
c... |
ajax/libs/angular.js/0.9.8/angular-scenario.js | sadhat/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
_includes/js/jquery.min.js | rrlara/news-arabspatial | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
packages/forms/src/deprecated/widgets/ColumnsWidget/ColumnsWidget.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import SchemaField from 'react-jsonschema-form/lib/components/fields/SchemaField';
import TitleField from 'react-jsonschema-form/lib/components/fields/TitleField';
import ObjectField from '../../fields/ObjectField';
import theme from './ColumnsWidget.scss... |
src/Select.js | paulmillr/react-select | /*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/react-select
*/
import React from 'react';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
import defaultArrowRenderer from './utils/de... |
assets/web/assets/jquery/jquery.min.js | Pythcascade/pythcascade.github.io | /*! jQuery v1.11.2 | (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... |
examples/huge-apps/routes/Course/components/Dashboard.js | nauzethc/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
ajax/libs/yui/3.5.1/event-focus/event-focus.js | Jonybang/cdnjs | YUI.add('event-focus', function(Y) {
/**
* 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 = YLang.isFunction(
Y... |
test/specs/views/Card/CardHeader-test.js | clemensw/stardust | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import CardHeader from 'src/views/Card/CardHeader'
describe('CardHeader', () => {
common.isConformant(CardHeader)
common.rendersChildren(CardHeader)
describe('description prop', () => {
it('renders child te... |
src/layouts/CoreLayout/CoreLayout.js | hajiwon1023/react-webpack-redux | import React from 'react'
import Header from '../../components/Header'
import classes from './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className={classes.mainContainer}>
{children}
</div>
... |
assets/jqwidgets/demos/react/app/bargauge/addandremovevalues/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxBarGauge from '../../../jqwidgets-react/react_jqxbargauge.js';
import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.myListBox.checkIndex(2);
... |
modules/field_ui/field_ui.js | fourkitchens/fk-panopoly-demo | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.