path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/svg-icons/maps/local-drink.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
src/intraface.dk/core/javascript/yui/container/container-debug.js | intraface/intraface.dk | /*
Copyright (c) 2006, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
Version 0.11.4
*/
/**
* Config is a utility used within an object to allow the implementer to maintain a list of local configuration properties and listen for changes to those... |
examples/query-params/app.js | MattSPalmer/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
ajax/libs/6to5/3.2.1/browser.js | abbychau/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
ajax/libs/primereact/6.5.0/core/core.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { CSSTransition as CSSTransition$1 } from 'react-transition-group';
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
function _iterableToArrayLimit(arr, i) {
var _i = arr && (typeof Symbol !== "undefined" && ar... |
ajax/libs/antd-mobile/1.0.0-alpha.13/antd-mobile.min.js | Piicksarn/cdnjs | /*!
* antd-mobile v1.0.0-alpha.13
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!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 expor... |
src/charts/datatables/base.js | stitchfix/pyxleyJS | import 'datatables/media/css/jquery.dataTables.min.css';
require("datatables");
import React from 'react';
$["dataTable"] = require("datatables");
export class Table extends React.Component {
constructor(props) {
super(props);
this.state = {
columns: []
};
}
componentWi... |
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/unit/accordion/accordion_events.js | Mosoc/brackets | (function( $ ) {
var setupTeardown = TestHelpers.accordion.setupTeardown,
state = TestHelpers.accordion.state;
module( "accordion: events", setupTeardown() );
test( "create", function() {
expect( 10 );
var element = $( "#list1" ),
headers = element.children( "h3" ),
contents = headers.next();
element.accor... |
src/components/app.js | dempah14/gitDemostration | import React, { Component } from 'react';
import Alex from './alex'
import Saundra from './saundra'
import Landon from './landon'
import Paola from './Paola'
import Jared from './jared'
import Josh from './josh'
class App extends Component {
render() {
return (
<div>
<h1>React Simple Starter</h1>... |
packages/material-ui/src/Tabs/TabScrollButton.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
import withStyles from '../styles/withStyles';
import ButtonBase from '.... |
examples/todo/src/components/App.js | mirrorjs/mirror | import React from 'react'
import AddTodo from './AddTodo'
import Footer from './Footer'
import TodoList from '../containers/TodoList'
const App = () => (
<div>
<AddTodo/>
<TodoList/>
<Footer/>
</div>
)
export default App
|
packages/icons/src/md/toggle/Star.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdStar(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M43.976 19.457l-10.9 9.46 3.26 14.06-12.36-7.46-12.36 7.46 3.28-14.06-10.92-9.46 14.38-1.22 5.62-13.26 5.62 13.24 14.38 1.24zm-20 12.32l7.54 4.56-2-8.56... |
src/App.js | karote00/todo-react | require('../stylesheets/tabs.scss');
import React, { Component } from 'react';
import { Router, Route, Link, hashHistory } from 'react-router';
import classNames from 'classnames';
export class App extends Component {
constructor(props) {
super(props);
this.state = {'scroll_position': 0};
}
componentDi... |
packages/react-server-dom-relay/src/ReactFlightDOMRelayServerHostConfig.js | ArunTesco/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 {RowEncoding, JSONValue} from './ReactFlightDOMRelayProtocol';
import type {Request, ReactModel} from 're... |
src/Card/CardHeader.js | AndriusBil/material-ui | // @flow
// @inheritedComponent CardContent
import React from 'react';
import type { Node } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Typography from '../Typography';
import CardContent from './CardContent';
export const styles = (theme: Object) => ({
r... |
ajax/libs/js-data/2.0.0-rc.2/js-data.js | dhenson02/cdnjs | /*!
* js-data
* @version 2.0.0-rc.2 - 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 webpackUniversal... |
src/app/modules/birthdays/components/Birthdays.js | kolabdigital/notification_demo | import React, { Component } from 'react';
import autobind from 'class-autobind';
import { Link } from 'react-router-dom';
const electron = window.require("electron");
const ipc = electron.ipcRenderer;
export default class Home extends Component {
constructor () {
super(...arguments);
autobind(this);
t... |
MyFit/src/components/product/ProductPage.js | zenddignite/MyFit | import React, { Component } from 'react'
import ProductForm from './ProductForm'
class ProductPage extends Component {
render () {
return (
<div className='product-container'>
<h1 className='centered'>Add Product</h1>
<ProductForm {...this.props} />
<... |
src/components/DashContainer.js | kesean/Dashboard-Frontend | import React from 'react'
import * as getData from './dataFuncs'
import Greeting from './Greeting'
import TodayCard from './TodayCard'
import SettingsDrawer from './SettingsDrawer'
//Backend API Call Containers
import OutsideEventsCard from './OutsideEvents/OutsideEventsCard'
import NewsCard from './News/NewsCard'
//... |
modules/pages/client/components/Guide.component.js | Trustroots/trustroots | import React from 'react';
import Board from '@/modules/core/client/components/Board.js';
import { useTranslation } from 'react-i18next';
export default function Guide() {
const { t } = useTranslation('pages');
return (
<>
<Board className="guide-header" names="happyhippies">
<div className="con... |
lib/werkzeug/debug/shared/jquery.js | Shanec132006/lab3 | /*!
* 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.
... |
ASP.NET Web Forms/07. File Upload/Demo/FileUploadInASP.NET/Scripts/jquery.min.js | EmilMitev/TelerikAcademy | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
ajax/libs/primereact/6.5.1/card/card.cjs.js | cdnjs/cdnjs | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var core = require('primereact/core');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React__default = /*#__PURE__*/_interopDefaultLegacy... |
before/src/components/App.react.js | rpearce/react-form-steps-example | import React, { Component } from 'react';
import Form from './form/';
class App extends Component {
static defaultProps = {
currentStep: 1,
pet: {},
pets: [{ name: 'Molly', type: 'Golden Retriever', gender: 'female' }]
}
constructor(props) {
super(props);
this.state = {
currentStep: pr... |
test/fixtures/webpack-message-formatting/src/AppNoDefault.js | facebookincubator/create-react-app | import React, { Component } from 'react';
import myImport from './ExportNoDefault';
class App extends Component {
render() {
return <div className="App">{myImport}</div>;
}
}
export default App;
|
src/components/toolbar.js | isehrob/synapses-text | // main-toolbar
import React from 'react';
import {
RichUtils,
Entity,
AtomicBlockUtils
} from 'draft-js';
import {
InlineStyleControls,
BlockStyleControls
} from './controls';
import { SpecialButton } from './buttons';
export default class Toolbar extends React.Component {
constructor(prop... |
docs/app/Examples/views/Comment/Content/CommentExampleReplyForm.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Button, Comment, Form } from 'semantic-ui-react'
const CommentExampleReplyForm = () => (
<Comment.Group>
<Comment>
<Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/steve.jpg' />
<Comment.Content>
<Comment.Author as='a'>Steve Jobes</Comm... |
components/dialog/demo/index.js | TDFE/td-ui | import React from 'react';
import ReactDOM from 'react-dom';
/* eslint-disable no-unused-vars */
import Button from '../../button/index';
/* eslint-disable no-unused-vars */
import Dialog from '../index';
const MOUNT_NODE = document.getElementById('app');
class Demo extends React.Component {
constructor(props) {
... |
src/views/LikeList/component.js | khankuan/asset-library-demo | import React from 'react';
import Text from '../../components/Text';
import Loading from '../../components/Loading';
import { Link } from 'react-router';
import LikeButton from '../../components/LikeButton';
export default class LikeList extends React.Component {
static propTypes = {
LikeListStore: React.PropTy... |
Mario/src/main/webapp/static/jquery-ztree/3.5.14/api/apiCss/jquery-1.6.2.min.js | ZheYuan/Mario | /*!
* jQuery JavaScript Library v1.6.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL... |
src/DropdownStateMixin.js | aparticka/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
/**
* Checks whether a node is within
* a root nodes tree
*
* @param {DOMElement} node
* @param {DOMElement} root
* @returns {boolean}
*/
function isNodeInRoot(node, root) {
while (node) {
... |
__tests__/components/Section-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Section from '../../src/js/components/Section';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Section', () =>... |
node_modules/react-icons/md/stars.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdStars = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27 30l-1.8-8 6.2-5.4-8.2-0.7-3.2-7.5-3.2 7.5-8.2 0.7 6.2 5.4-1.8 8 7-4.2z m-7-26.6c9.2 0 16.6 7.4 16.6 16.6s-7.4 16.6-16.6 16.6-16.6-7.4-16.6-16.6 7.4-16.6 16.6-16.6z"... |
tp-3/marisol/src/components/pages/materias/listado/MateriaListado.js | solp/sovos-reactivo-2017 | import React from 'react';
const MateriaListado = () => {
return (
<div>
<h2>Listado de Materia </h2>
<p>
aqui va la lista
</p>
</div>
);
};
export default MateriaListado; |
src/svg-icons/navigation/subdirectory-arrow-left.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M11 9l1.42 1.42L8.83 14H18V4h2v12H8.83l3.59 3.58L11 21l-6-6 6-6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowLeft = pure(Navigation... |
misc/jquery.js | folklabs/communitydata |
/*!
* 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.... |
src/svg-icons/image/filter-7.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter7 = (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-2l4-8V5h-6v2h4l-4 8h2z... |
src/Modal.js | pombredanne/react-bootstrap |
/* eslint-disable react/prop-types */
import classNames from 'classnames';
import React from 'react';
import ReactDOM from 'react-dom';
import tbsUtils, { bsClass, bsSizes } from './utils/bootstrapUtils';
import { Sizes } from './styleMaps';
import getScrollbarSize from 'dom-helpers/util/scrollbarSize';
import canUse... |
frontend/src/Settings/MediaManagement/RootFolder/EditRootFolderModalConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clearPendingChanges } from 'Store/Actions/baseActions';
import { cancelSaveRootFolder } from 'Store/Actions/settingsActions';
import EditRootFolderModal from './EditRootFolderModal';
function c... |
web/src/main/webapp/WEB-INF/static/comp/jquery-ui-bootstrap/js/jquery-1.10.1.js | ningg/es | /*!
* jQuery JavaScript Library v1.10.1
* 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-05-30T21:49Z
*/
(function( window, undefined ) {
// ... |
src/galaxy/store/hover.js | fraga/pm | import React from 'react';
import eventify from 'ngraph.events';
import appEvents from '../service/appEvents.js';
import scene from './scene.js';
import getBaseNodeViewModel from './baseNodeViewModel.js';
export default hoverStore();
function hoverStore() {
var store = {};
eventify(store);
appEvents.nodeHover... |
app/javascript/mastodon/features/video/index.js | amazedkoumei/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { fromJS } from 'immutable';
import { throttle } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/uti... |
src/index.js | Gregoor/syntactor | import React from 'react';
import ReactDOM from 'react-dom';
import { render } from './api';
import Demo from './components/demo';
const demoElement = document.getElementById('insert-syntactor-demo-here');
if (demoElement) {
ReactDOM.render(<Demo />, demoElement);
} else {
window.Syntactor = { render: render };
}... |
ajax/libs/aui/5.6.7/aui/js/aui-dependencies.js | gogoleva/cdnjs | !function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(.... |
ajax/libs/handsontable/0.15.0-beta3/handsontable.full.js | jonathantneal/cdnjs | /*!
* Handsontable 0.15.0-beta3
* Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright (c) 2012-2014 Marcin Warpechowski
* Copyright 2015 Handsoncode sp. z o.o. <hello@handsontable.com>
* Licensed under the MIT license.
* http://han... |
client/src/components/forms/inputs/Rate.js | DjLeChuck/recalbox-manager | import React from 'react';
import PropTypes from 'prop-types';
import { FormInput } from 'react-form';
import Rating from 'react-rating';
const RateInput = ({ field }) => (
<FormInput field={field}>
{({ getValue, setValue }) => (
<Rating stop={1} step={.2} fractions={2}
initialRate={parseFloat(getV... |
vendor/sonata-project/jquery-bundle/Sonata/jQueryBundle/Resources/public/jquery-1.8.3.js | filipovic/jobeet_f | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
ajax/libs/yui/3.10.3/datatable-core/datatable-core.js | nareshs435/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... |
packages/material-ui-icons/src/NotificationsPausedOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9.5 9.8h2.8l-2.8 3.4V15h5v-1.8h-2.8l2.8-3.4V8h-5zM18 16v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4... |
src/svg-icons/action/alarm.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarm = (props) => (
<SvgIcon {...props}>
<path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-9 4.03... |
packages/minimongo/wrap_transform_tests.js | AlexR1712/meteor | Tinytest.add("minimongo - wrapTransform", function (test) {
var wrap = LocalCollection.wrapTransform;
// Transforming no function gives falsey.
test.isFalse(wrap(undefined));
test.isFalse(wrap(null));
// It's OK if you don't change the ID.
var validTransform = function (doc) {
delete doc.x;
doc.y ... |
src/desktop/apps/auction/components/artwork_browser/main/artwork/GridArtwork.js | kanaabe/force | import _BidStatus from './BidStatus'
import PropTypes from 'prop-types'
import React from 'react'
import block from 'bem-cn-lite'
import titleAndYear from 'desktop/apps/auction/utils/titleAndYear'
import { connect } from 'react-redux'
import { get } from 'lodash'
// FIXME: Rewire
let BidStatus = _BidStatus
function G... |
src/index.js | sregdorr/time-tracker | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
resources/js/react/Landing.js | chekun/spore | import React from 'react';
var Router = require('react-router');
var Link = Router.Link;
class Landing extends React.Component {
constructor(props) {
super(props)
}
componentDidMount() {
document.getElementById('slogan').className="magictime puffIn";
}
render() {
return (... |
src/components/container/ProductPage/ProductPage.js | AurimasSk/DemoStore | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as productActions from "../../../actions/productActions";
import ProductDetails from '../../presentational/ProductDetails/ProductDetails';
class ProductPage extends... |
node_modules/react-bootstrap/es/Jumbotron.js | firdiansyah/crud-req | 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/routes/home/index.js | taekungngamonosus/monoreact | import React from 'react';
import Home from './Home';
import Layout from '../../components/Layout';
async function action({ fetch }) {
const resp = await fetch('/graphql', {
body: JSON.stringify({
query: '{ posts{title,url,thumb,categoryName,categoryUrl,createdAt} }',
}),
});
const data = await r... |
src/ui/controls/Searchbar.js | Spring3/Feedie | import React from 'react';
export default class SearchBar extends React.Component{
constructor(props){
super(props);
this.setState({
query: ""
});
}
textChanged(event) {
this.setState({
query: event.target.value
});
}
render(){
return(
<div className="input-group... |
ajax/libs/angular.js/1.2.0rc3/angular-scenario.js | luhad/cdnjs | /*!
* jQuery JavaScript Library v1.10.2
* 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-03T13:48Z
*/
(function( window, undefined ) {'use ... |
index.ios.js | thomaswright/bayst | import React from 'react';
import { AppRegistry } from 'react-native';
import { Examples } from './source'
AppRegistry.registerComponent('bayst', () => Examples);
|
src/renderers/dom/client/__tests__/ReactMount-test.js | mgmcdermott/react | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... |
docs/app/Examples/elements/Step/Groups/StepExampleGroupShorthand.js | shengnian/shengnian-ui-react | import React from 'react'
import { Step } from 'shengnian-ui-react'
const steps = [
{ key: 'shipping', icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' },
{ key: 'billing', active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' },
{ key: 'confirm', ... |
ajax/libs/babel-core/4.7.10/browser-polyfill.js | 2947721120/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... |
ajax/libs/asciinema-player/2.2.0/asciinema-player.js | seogi1004/cdnjs | /**
* asciinema-player v2.2.0
*
* Copyright 2011-2016, Marcin Kulik
* All rights reserved.
*
*/
if(typeof Math.imul == "undefined" || (Math.imul(0xffffffff,5) == 0)) {
Math.imul = function (a, b) {
var ah = (a >>> 16) & 0xffff;
var al = a & 0xffff;
var bh = (b >>> 16) & 0xffff;
... |
ajax/libs/forerunnerdb/1.3.52/fdb-all.js | amoyeh/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/components/controls.js | SergeRNR/music-player | import React from 'react';
import PlaybackStore from 'stores/playback-store';
import playbackActions from 'actions/playback-actions';
class ProgressBar extends React.Component {
constructor (props) {
super (props);
this.onChange = this.onChange.bind(this);
}
componentDidMount () {
PlaybackStore.addL... |
src/ui/sample/chart/lineChart/index.js | steem/qwp-antd | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Card, Button } from 'antd'
import Container from '../Container'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
} from 'recharts'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
... |
src/components/Tabs/Tabs.base.js | lebra/lebra-components | import React from 'react';
import PropTypes from 'prop-types';
//import { PropsType } from './PropsType';
//import { Models } from './Models';
const propTypes = {
/** tabs data */
tabs: PropTypes.any, //必须的
/** TabBar's position | default: top */
tabBarPosition: PropTypes.oneOf(['top', 'bottom', 'left'... |
src/App.js | Lechus/learninginthecloud | import React, { Component } from 'react';
import ThreadDisplay from './ThreadDisplay/components/ThreadDisplay';
import { firebaseConfig } from './core/firebase/config';
import * as firebase from 'firebase';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.app = fireb... |
src/client.js | joelburget/pigment | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import createLocation from 'history/lib/createLocation';
import cr... |
ajax/libs/jquery-ui-bootstrap/0.5pre/assets/js/jquery-1.9.0.min.js | BitsyCode/cdnjs | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
uiexplorer/examples/StarRating.js | tipsi/tipsi-ui-kit | import React from 'react'
import register from '../core/utils/register'
import { StarRating } from '../../src'
register.addExample({
type: 'components',
title: '<StarRating />',
description: 'Star-rating component',
examples: [{
title: 'Default',
description: 'Without props',
render: () => (
... |
packages/element-library/src/media/edit.js | GoogleForCreators/web-stories-wp | /*
* Copyright 2020 Google 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
amp-pwa/src/components/home.js | ampproject/samples | /** @license
* Copyright 2015 - present The AMP HTML Authors. All Rights Reserved.
*
* 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
... |
frontend/js/ResponsiveSplitContainer.react.js | initialxy/initialxy-irswitch | // @flow
'use strict';
import type {Element} from 'react';
import React from 'react';
export default class ResponsiveSplitContainer extends React.PureComponent {
render(): Element<any> {
return (
<div
className={[
this.props.className,
'responsive_split_container',
].j... |
src/fade-button/fade-button.js | ricsv/react-leonardo-ui | import React from 'react';
import { luiClassName } from '../util';
const FadeButton = ({
className,
children,
variant,
size,
block,
rounded,
active,
...extraProps
}) => {
const finalClassName = luiClassName('fade-button', {
className,
modifiers: {
variant,
size,
block,
... |
src/index.js | Alonski/CoinPanion | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import App from 'containers/App'
import injectTapEventPlugin from 'react-tap-event-plugin'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import { Provider } from 'react-redux'
import configure... |
stories/Recipes/HighlightSearch.js | selvagsz/react-power-select | import React, { Component } from 'react';
import { PowerSelect } from 'src';
import { countries } from '../utils/constants';
const createHighlighedOption = (label, searchTerm) => {
if (searchTerm) {
let escapedSearchTerm = searchTerm.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1');
label = label.replace(new RegExp... |
tests/components/Header/Header.spec.js | hack-duke/hackduke-ideate-website | import React from 'react'
import { Header } from 'components/Header/Header'
import classes from 'components/Header/Header.scss'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header/>)
... |
example/examples/MarkerTypes.js | phantomlds/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
import flagBlueImg from './assets/flag-blue.png';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = w... |
src/main/app/scripts/views/LostPassword.js | ondrejhudek/hudy-app | import React from 'react'
import { Link } from 'react-router'
import { Card, FlatButton, RaisedButton, Snackbar } from 'material-ui'
class LostPassword extends React.Component {
constructor(props) {
super(props)
this.state = {
autoHideDuration: 5000,
message: 'Guest credent... |
app/javascript/mastodon/features/notifications/components/filter_bar.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
const tooltips = defineMessages({
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
favourites: { id: '... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | RobertRence/Mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import Permalink from '../../../components/permalink';
import { FormattedMessage } from 'r... |
docs/src/app/components/pages/components/FlatButton/ExampleComplex.js | skarnecki/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
const styles = {
exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
top: 0,
bottom: 0,
right: 0,
... |
my-app/src/my_components/redSquare.js | jazzninja/portfolio-react | import React from 'react';
import { Button } from 'react-bootstrap';
// Import a component from another file
class RedSquare extends React.Component {
render() {
return <Button className="btn-cheezy">My Red Button Component</Button>;
}
}
export default RedSquare; |
user_guide/searchindex.js | mackythegreat/gaea | Search.setIndex({envversion:42,terms:{file_upload:11,some_librari:132,yellow:[6,136],poorli:96,four:[156,92,57,142,58,132,128,134,131],ofb:83,prefix:[],oldest:134,hate:138,optimize_databas:79,forget:[54,109],whose:32,accur:[0,32,121,158,45,99],aug:96,my_control:[107,117],site_url:[85,102,24,7,32],filename_pi:107,swap:[... |
pages/guides/api.js | allanalexandre/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/guides/api', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../docs/src... |
contracts/src/deprecated/BuyerForm.js | merlox/dapp-transactions | import React from 'react'
import Header from './Header'
import './../stylus/index.styl'
class BuyerForm extends React.Component {
constructor(props){
super(props)
}
handleSubmitForm(event){
event.preventDefault()
const data = {
buyerName: this.refs['buyer-name'].value,
bu... |
ajax/libs/forerunnerdb/1.3.773/fdb-core+views.js | sashberd/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/components/ApmtList/index.js | zweicoder/Showtime-Dashboard | /**
*
* ApmtList
*
*/
import React from 'react';
import styles from './styles.css';
function percent(score) {
return (parseFloat(score) * 100).toPrecision(3)
}
class ApmtList extends React.Component {
render() {
const days = ['Sun', 'Mon', 'Tue', 'Wed', 'Thurs', 'Fri', 'Sat'];
return (
<div cla... |
src/components/Tile/Tile-test.js | joshblack/carbon-components-react | /**
* 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 ChevronDown16 from '@carbon/icons-react/lib/chevron--down/16';
import {
Tile,
ClickableTile,
Selectab... |
ui/src/js/ranking/RankingItemLarge.js | Dica-Developer/weplantaforest | import Accounting from 'accounting';
import counterpart from 'counterpart';
import he from 'he';
import React, { Component } from 'react';
import { Link } from 'react-router';
export default class RankingItem extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div classNa... |
src/give/ScheduleDetails/ScheduleTransactionHistory.js | NewSpring/Apollos | import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import get from 'lodash/get';
import { BodyText } from '@ui/typography';
import PaddedView from '@ui/PaddedView';
import Spacer from '@ui/Spacer';
import { Link } from '@ui/NativeWebRouter';
import { ButtonLink } from '@... |
ajax/libs/rxjs/2.3.8/rx.lite.extras.js | Download/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
src/components/Provide/IntlProvider.js | fkenk/Majsternia | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { IntlProvider } from 'react-intl';
function ProvideIntl({ intl, children }) {
return (
<IntlProvider
{...intl}
messages={intl.messages[intl.locale]}
>
{children}
</IntlProvider>... |
packages/material-ui-icons/src/CompareArrowsTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z" />
, 'CompareArrowsTwoTone');
|
src/routes/Wheels/components/Wheels.js | fxghqc/svg-react-playground | // @flow
import React from 'react'
import Route from 'react-router-dom/Route'
import { Wheel1, Wheel2 } from 'components/Wheels'
import styles from './Wheels.css'
type Props = {}
const Wheel = (props: Props) => (
<div className={styles['wheels']}>
<Route path='/wheels/1' component={Wheel1} exact />
<Route p... |
app/containers/PrototypeSearch/header.js | mhoffman/CatAppBrowser | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import ReactGA from 'react-ga';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import { withStyles } from 'material-ui/styles';
import { styles } from './styles';
class Header extends R... |
ajax/libs/js-data/1.5.10/js-data-debug.js | cdnjs/cdnjs | /*!
* js-data
* @version 1.5.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 webpackUniversalModu... |
src/components/productivity/boards/New.js | dhruv-kumar-jha/productivity-frontend | 'use strict';
import React, { Component } from 'react';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import translate from 'app/global/helper/translate';
import { graphql } from 'react-apollo';
import AddBoardMutation from 'app/graphql/mutations/boards/Add';
import GetAllGroupsQuery from... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.