path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
files/react/0.12.2/react-with-addons.min.js | bdukes/jsdelivr | /**
* React (with addons) v0.12.2
*
* 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 same... |
apps/react/components/App.js | router5/examples | import React from 'react';
import Nav from './Nav';
import Main from './Main';
export default function App(props) {
return (
<div className='mail-client'>
<aside>
<Nav />
</aside>
<main>
<Main />
</main>
</div>
);
... |
src/svg-icons/social/people.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeople = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.... |
src/components/App.js | migutw42/jp-tax-calculator | import React, { Component } from 'react';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import Typography from 'material-ui/Typography';
import Grid from 'material-ui/Grid';
import InputArea from './InputArea';
import TableArea from './TableArea';
class App extends Component {
... |
src/client/components/LoadingSpinner.js | dtekcth/dfotose | import React from 'react';
import Spinner from 'react-spinkit';
export default ({visible}) => {
const spinner = (
<div className="loading-spinner">
<h1>LADDAR</h1>
<Spinner name="wave" />
</div>
);
return visible ? spinner : null;
};
|
packages/material-ui-icons/src/NotificationsPausedOutlined.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="M9.5 9.8h2.8l-2.8 3.4V15h5v-1.8h-2.8l2.8-3.4V8h-5z" /><path d="M18 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.6... |
examples/universal/client/index.js | Surreal9/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
src/svg-icons/social/sentiment-very-satisfied.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVerySatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1... |
src/components/tooltips/demos/Right.js | isogon/material-components | import React from 'react'
import { Tooltip, Button, Icon } from '../../../'
export default () => (
<Tooltip message="Follow" position="right">
<Button icon>
<Icon name="add" />
</Button>
</Tooltip>
)
|
src/app.js | ComicsReader/reader | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import rootSaga from './sagas';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Router, Route } from 'react-router';
import { syncHistoryWithSt... |
src/app.js | tholapz/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel/polyfill';
import React from 'react';
import FastClick from 'fastclick';
import App from './components/App';
import Dispatcher from './core/Dispatcher';
import AppActions from './actions/AppActions';
import ActionTypes from './const... |
webpack.config.js | prexsa/m3specs | module.exports = {
entry: [
'./src/index.js'
],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
module: {
loaders: [{
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['react', 'es2015', 'stage-1']
}
}]
},
resolve: {
... |
shared/routes.js | johnqiang/TwitterMap | import { Route, IndexRoute } from 'react-router';
import React from 'react';
import App from './container/App';
import PostContainer from './container/PostContainer/PostContainer';
import PostDetailView from './container/PostDetailView/PostDetailView';
import Twitsection from './components/Twitsection/Twitsection';
co... |
src/PageItem.js | Cellule/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.PropTypes.bool,
next: React.PropTypes... |
docs/app/Examples/addons/Portal/Types/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const PortalTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Portal'
description='A b... |
ajax/libs/js-data/1.5.12/js-data.js | tresni/cdnjs | /*!
* js-data
* @version 1.5.12 - 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/form/TextInput/TextInput.js | jeffdowdle/l-systems | import React from 'react';
import PropTypes from 'prop-types';
import Control from '../Control';
import Label from '../Label';
import './text-input.scss';
const fieldId = id => `param-${id}`;
const TextInput = ({
id,
label,
value,
onChange,
}) => (
<Control>
<Label htmlFor={fieldId}>{label}</Label>
... |
client/src/_components/alerts/index.js | bpowers1215/MoneyMap | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Alert from './alert';
import './styles.scss';
const mapStateToProps = state => {
return ({
alerts: ( state.alerts.alerts ? state.alerts.alerts : [] )
})
};
class ConnectedAlerts extends Component {
constructor(props) {
super... |
app/javascript/mastodon/components/common_counter.js | musashino205/mastodon | // @ts-check
import React from 'react';
import { FormattedMessage } from 'react-intl';
/**
* Returns custom renderer for one of the common counter types
*
* @param {"statuses" | "following" | "followers"} counterType
* Type of the counter
* @param {boolean} isBold Whether display number must be displayed in bold
... |
src/js/index.js | a-fiorito/react-webpack-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './helpers/registerServiceWorker';
import '../styles/index.scss';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js | GreenGremlin/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
const styled = ([style]) =>
style
.trim()
.spli... |
packages/react-devtools-shell/src/app/InspectableElements/UnserializableProps.js | mjackson/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 React from 'react';
import Immutable from 'immutable';
const set = new Set(['abc', 123]);
const map = new Map(... |
src/js/components/app.js | nicksenger/JSchematic | import React, { Component } from 'react';
import MenuBar from '../containers/menuBar';
import Canvas from '../containers/canvas';
import SubMenu from '../containers/subMenu';
require("../../css/app.scss");
export default class App extends Component {
render() {
return (
<div className="appContai... |
index.js | leebenson/dagre-test | import React from 'react';
import ReactDOM from 'react-dom';
import {Graph, Vertex, Edge} from 'dagre-react';
const Example = React.createClass({
render: function () {
const arrow = `<marker id="markerArrow" markerWidth="6" markerHeight="4" refx='5' refy="2" orient="auto"><path d='M 0,0 V 4 L6,2 Z' class="arrow"... |
src/Parser/DeathKnight/Shared/RuneDetails.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Scatter } from 'react-chartjs-2';
import Analyzer from 'Parser/Core/Analyzer';
import Tab from 'Main/Tab';
import { formatDuration } from 'common/format';
import RuneBreakdown from './RuneBreakdown';
import RuneTracker from './RuneTracker';
class RuneDetails extends Analyzer {
s... |
source/common/components/GithubBox/GithubBox.js | shery15/react | import React from 'react';
import { Link } from 'react-router';
import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card';
import RaisedButton from 'material-ui/RaisedButton';
import ActionHome from 'material-ui/svg-icons/action/home';
const GithubBox = props => (
<div>
<Card>
<CardHeader
... |
frontend/src/components/eois/details/overview/selectedPartners/singleSelectedPartner.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { connect } from 'react-redux';
import Typography from 'material-ui/Typography';
import { withStyles } from 'material-ui/styles';
import SvgIcon from 'material-ui/SvgIcon';
import { updateApplication } from '../..... |
webpack/scenes/RedHatRepositories/components/RepositoryTypeIcon.js | pmoravec/katello | import React from 'react';
import PropTypes from 'prop-types';
import { ListView, OverlayTrigger, Tooltip } from 'patternfly-react';
import { getTypeIcon } from '../../../services/index';
export default class RepositoryTypeIcon extends React.Component {
constructor(props) {
super(props);
this.tooltipId = `... |
plugins/cleditor/js/jquery.cleditor.min.js | xihaxixi/bbs |
jQuery(document).ready(function($){$.cleditor={defaultOptions:{width:500,height:250,controls:"bold italic underline strikethrough subscript superscript | font size "+"style | color highlight removeformat | bullets numbering | outdent "+"indent | alignleft center alignright justify | undo redo | "+"rule image link un... |
src/containers/Feed/NewFeed.js | b00705008/TellYou | import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { addToExclude, removeFromExclude, editFeed, postFeed } from '../../actions/feed.js';
import Cards from './Cards.js';
class NewFeed extends Component {
static propTypes = {
photo:... |
src/MasterPassword/SetupMasterPassword.js | Lynx-Productions/OPeM | /***
* Copyright 2017 - present Lynx Productions
*
* 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 applicabl... |
packages/material-ui-icons/src/AssignmentReturned.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1... |
docs/pages/customization/spacing.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'customization/spacing';
const requireDemo = require.context('docs/src/pages/customization/spacing', false, /\.(js|tsx)$/);
const ... |
6.7.0/examples/wizard/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
ajax/libs/core-js/0.1.2/shim.js | emmy41124/cdnjs | /**
* Core.js 0.1.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
src/home/components/Subheading.js | elailai94/elailai94.github.io | import React, { Component } from 'react';
import { Header } from 'semantic-ui-react';
import PropTypes from 'prop-types';
class Subheading extends Component {
render() {
const { article } = this.props;
const { adjective } = this.props;
return (
<Header
inverted
as={'h2'}
si... |
ajax/libs/rollbar.js/2.3.3/rollbar.named-amd.min.js | jonobr1/cdnjs | define("rollbar",[],function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){"use strict";var r=n(2),o=window&&w... |
Libraries/ReactNative/ReactNativeReconcileTransaction.js | josebalius/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/dashboardComponents/Table.js | AInvest/AInvestWeb | import React from 'react';
import './dashboardStyles/dashboardStyles.css';
export default class Table extends React.Component {
constructor(props) {
super(props);
this.state = {
hoverCard: false,
}
this.onHoverCard = this.onHoverCard.bind(this);
}
onHoverCard() {
this.setState({
... |
src/layouts/PageLayout/PageLayout.js | aburd/issues-tracker | import React from 'react'
import PropTypes from 'prop-types'
import { IndexLink } from 'react-router'
import './PageLayout.scss'
import { SETTINGS } from '../../config'
export const PageLayout = ({ children }) => (
<div className='container text-center'>
<IndexLink to='/' activeClassName='page-layout__nav-item--... |
src/routes/broadcast/index.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import cookies from 'cookiesjs'
import { message } from 'antd'
import { Link,routerRedux } from 'dva/router'
import MyUpload from '../../components/MyUpload'
import style from './index.less'
import {
Button,
Icon,
F... |
ajax/libs/primereact/7.2.0/avatar/avatar.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { IconUtils, classNames, ObjectUtils } from 'primereact/utils';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {... |
ajax/libs/primeui/4.1.1/primeui-min.js | kennynaoh/cdnjs | /*
* PrimeUI 4.1.1
*
* Copyright 2009-2015 PrimeTek.
*
* 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 applicab... |
src/components/App.js | dacostafilipe/react-base | import React from 'react';
import classNames from 'classnames';
import Dispatcher from '../Dispatcher';
import Constants from '../Constants';
import BaseComponent from '../tools/BaseComponent.js';
//
// Stores
//
// Models
//
// Components
import { Link } from 'react-router';
//
// App class
class App extends Ba... |
packages/material-ui-icons/src/TurnedInNot.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'TurnedInNot');
|
demo/bear-admin/static/js/3.f65b45d5.chunk.js | huzzbuzz/huzzbuzz.github.io | webpackJsonp([3],{1018:function(n,e,t){"use strict";e.a={DATE_ROW_COUNT:6,DATE_COL_COUNT:7}},1019:function(n,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t(1213);e.default=a.a},1020:function(n,e,t){"use strict";function a(n){return n&&n.__esModule?n:{default:n}}e.__esModule=!0;var r=t(0),o=a... |
ajax/libs/forerunnerdb/1.3.326/fdb-core+views.min.js | brix/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... |
ajax/libs/backbone.js/1.0.0/backbone.js | yasyf/cdnjs | // Backbone.js 1.0.0
// (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(){
// Initial Setup
// -------------
// Save a reference to the global object (`wi... |
react-client/src/components/Louvre.js | francoabaroa/escape-reality | import 'aframe';
import 'aframe-animation-component';
import 'aframe-text-component';
import 'babel-polyfill';
import {Entity, Scene} from 'aframe-react';
import React from 'react';
import ReactDOM from 'react-dom';
import { Link, withRouter } from 'react-router';
import 'aframe-bmfont-text-component';
import Iframe fr... |
packages/material-ui-icons/src/EventSeatTwoTone.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="M9 5h6v7H9z" opacity=".3" /><path d="M4 21h2v-4h12v4h2v-6H4zM17 5c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2v9h10V5zm-2 7H9V5h6v7zM19 10h3v3h-3zM2 10h3... |
src/js/components/navigation/Navigation.js | barumel/ultritium-radio-player | import React from 'react'
import { Nav, Navbar, NavItem, NavDropdown } from 'react-bootstrap';
import NavigationItem from './Item'
/**
* Navigation class
*/
class Navigation extends React.Component {
/**
* Constructor
*
* @return void
*/
constructor() {
super();
const toggle = this.toggle.bi... |
src/front/app/features/create/components/CreateCategories.spec.js | travel-and-help/start-kit | import React from 'react';
import CreateCategories from './CreateCategories';
import { mount } from 'enzyme';
import { List } from 'immutable';
describe('CreateCategories', () => {
let sut;
let categoriesMock;
let categoryMock;
beforeEach(() => {
categoryMock = {
error: 'Some error... |
public/javascripts/jquery.min.js | neverkin/mylove | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof win... |
ajax/libs/primereact/6.2.1/components/selectbutton/SelectButtonItem.js | cdnjs/cdnjs | "use strict";
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ... |
node_modules/babel-preset-stage-0/node_modules/babel-preset-stage-1/node_modules/babel-preset-stage-2/node_modules/babel-plugin-transform-decorators/node_modules/babel-template/node_modules/babel-traverse/lib/path/lib/virtual-types.js | cloud9ide/react-enquiry | "use strict";
exports.__esModule = true;
exports.Flow = exports.Pure = exports.Generated = exports.User = exports.Var = exports.BlockScoped = exports.Referenced = exports.Scope = exports.Expression = exports.Statement = exports.BindingIdentifier = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = und... |
vendor/fontawesome-free/js/brands.min.js | lucasBrilhante/lucasBrilhante.github.io | /*!
* Font Awesome Free 5.2.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
!function(){"use strict";var c={};try{"undefined"!=typeof window&&(c=window)}catch(c){}var z=(c.navigator||{}).userAgent,l=void 0===z?"":z,h... |
node_modules/react-router/es6/IndexLink.js | ArtixZ/LyingMan2 | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
app/components/MediumEditor/theme/MediumEditor/index.js | Zurico/t7 | import blacklist from 'blacklist';
import React from 'react';
import ReactDOM from 'react-dom';
import MediumEditor from 'medium-editor';
export default class ReactMediumEditor extends React.Component {
static defaultProps = {
tag: 'div'
};
constructor(props) {
super(props);
this.state = {
te... |
src/components/TransactionSnackbar/TransactionSnackbar.js | OR13/car2go | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
export default class TransactionSnackbar extends React.Component {
constructor(props) {
super(props);
this.state = {
message: '0x0',
open: false
};
};
handleRequestClose = () => {
... |
__tests__/components/Notification-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 Notification from '../../src/js/components/Notification';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Notif... |
src/svg-icons/social/mood-bad.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMoodBad = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.... |
ajax/libs/yui/3.17.2/datatable-core/datatable-core-debug.js | carlsednaoui/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@sinc... |
node_modules/react-icons/md/local-pharmacy.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalPharmacy = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.6 23.4v-3.4h-5v-5h-3.2v5h-5v3.4h5v5h3.2v-5h5z m8.4-15v3.2l-3.4 10 3.4 10v3.4h-30v-3.4l3.4-10-3.4-10v-3.2h21.2l2.4-6.8 3.9 1.5-1.9 5.3h4.4z"/></g>
</Icon... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | thuongho/dream-machine | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | mxw0417/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import CreateGroupActionCreators from 'actions/CreateGro... |
src/svg-icons/navigation/first-page.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFirstPage = (props) => (
<SvgIcon {...props}>
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
</SvgIcon>
);
NavigationFirstPage = pure(NavigationFirstPage);
NavigationFirstPag... |
ReactNative/messagelist.android.js | jpush/aurora-imui | 'use strict';
import React from 'react';
import ReactNative from 'react-native';
import {ViewPropTypes} from 'react-native';
import PropTypes from 'prop-types';
var {
Component,
} = React;
var {
StyleSheet,
UIManager,
findNodeHandle,
requireNativeComponent,
} = ReactNative;
const PTR_LAYOUT = "ptr_layout";... |
ajax/libs/yui/3.7.2/event-focus/event-focus-debug.js | ProfNandaa/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = YLang.isFunction(
... |
src/client/client-views/comment-input.js | davidbstein/moderator | import React from 'react'
import {connect} from 'react-redux'
export default class CommentInput extends React.Component {
submit_content(){
this.props.submit_content(this.textInput.value);
}
render() {
const comments = this.props.comments;
return <div className="comment-input">
<div> Add a (non... |
public/assets/js/node_modules/react-router/es6/Router.js | ngocson8b/6jar | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/video_detail.js | callistusystan/youtubeApp | import React from 'react';
const VideoDetail = ({ video }) => {
if (!video) {
return <div>Loading...</div>;
}
const videoId= video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="col-8 video-detail">
<div className="embed-re... |
admin/client/Signin/components/Brand.js | pr1ntr/keystone | /**
* Renders a logo, defaulting to the Keystone logo if no brand is specified in
* the configuration
*/
import React from 'react';
const Brand = function (props) {
// Default to the KeystoneJS logo
let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 };
if (props.logo) {
// If th... |
store/index.js | nicoladl/nicoladelazzari | export const state = () => ({
menu: [
{
label: '1985<br />2022',
slug: 'intro'
},
{
label: 'About',
slug: 'about'
},
{
label: 'Experience',
slug: 'experience'
},
{
label: 'Projects',
slug: 'projects'
},
{
label: 'Technology',
... |
ajax/libs/jqwidgets/12.0.2/jqwidgets-react-tsx/jqxsplitter/react_jqxsplitter.umd.js | cdnjs/cdnjs | require('../../jqwidgets/jqxcore');
require('../../jqwidgets/jqxbuttons');
require('../../jqwidgets/jqxsplitter');
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 're... |
src/components/ProductsGrid.js | MichelML/masaq.com | import React from 'react';
import Hash from '../utils/hash.js';
import ProductCard from './ProductCard';
import ErrorCard from './ErrorCard';
const ProductsGrid = (props) => {
const isNoProducts = !props.products.length;
const gridContent = (() => {
if (isNoProducts) {
return (
<ErrorCa... |
src/frontend/clientEntryPoint.js | delaneyj/koa-livereactload-boilerplate | const React = require('react');
const ReactDOM = require("react-dom");
const App = require("./components/app");
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
const injectTapEventPlugin = require('react-tap-event-plugin');
injectT... |
ajax/libs/forerunnerdb/1.3.642/fdb-all.js | emmy41124/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... |
files/parsleyjs/2.1.0-rc9/parsley.remote.js | cedricbousmanne/jsdelivr | // `window.ParsleyExtend`, like `ParsleyAbstract`, is inherited by `ParsleyField` and `ParsleyForm`
// That way, we could add new methods or redefine some for these both classes. In particular case
// We are adding async validation methods that returns promises, bind them properly to triggered
// Events like onkeyup wh... |
kitsune/sumo/static/sumo/js/tests/ajaxvotetests.js | NewPresident1/kitsune | import React from 'react';
import {default as mochaJsdom, rerequire} from 'mocha-jsdom';
import {expect} from 'chai';
import sinon from 'sinon';
import mochaK from './fixtures/mochaK.js';
import mochaJquery from './fixtures/mochaJquery.js';
describe('ajaxvote', () => {
mochaJsdom({useEach: true});
mochaJquery();
... |
react-flux-mui/js/material-ui/src/svg-icons/social/group.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialGroup = (props) => (
<SvgIcon {...props}>
<path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.3... |
src/js/components/Collapsible/stories/Horizontal.js | HewlettPackard/grommet | import React from 'react';
import { Notification } from 'grommet-icons';
import { Box, Button, Collapsible, Heading, Grommet, Text } from 'grommet';
import { grommet } from 'grommet/themes';
export const Horizontal = () => {
const [openNotification, setOpenNotification] = React.useState();
return (
<Grommet... |
webpack/scenes/ContentViews/Details/Versions/Delete/affectedHosts.js | snagoor/katello | import React, { useState, useCallback } from 'react';
import { useSelector, shallowEqual } from 'react-redux';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { TableVariant, Thead, Tbody, Tr, Th, Td } fr... |
client2/containers/404.container.js | QuizChatbot/quiz-chatbot | import React from 'react'
export default () => <h3>{'Page not found'}</h3> |
transforms/__testfixtures__/React-PropTypes-to-prop-types/import-alias.output.js | reactjs/react-codemod | import PT from 'prop-types';
import React, { Component } from 'react';
class ClassComponent extends Component {
static propTypes = {
foo: PT.string.isRequired,
}
}
|
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-calendar/es/month/MonthPanel.js | bhathiya/test | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import YearPanel from '../year/YearPanel';
import MonthTable from './MonthTable';
function goYear(direction) {
var next = this.state.value.clone();
next.add(direction, 'year');
this.setAndChangeValue... |
node_modules/react-icons/io/more.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoMore = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8.9 23.8c-2.2 0-3.9-1.7-3.9-3.8 0-2 1.7-3.7 3.9-3.7s3.9 1.7 3.9 3.7c0 2.1-1.7 3.8-3.9 3.8z m11.1 0c-2.2 0-3.9-1.7-3.9-3.8 0-2 1.7-3.7 3.9-3.7s3.9 1.7 3.9 3.7c0 2.1-1.7 ... |
examples/counter/containers/Root.js | chrisvfritz/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
dev/react-subjects/subjects/PropsVsState/lecture.js | AlanWarren/dotfiles | import React from 'react'
import ReactDOM from 'react-dom'
class ContentToggle extends React.Component {
state = {
isOpen: false
}
handleClick() {
this.setState({ isOpen: !this.state.isOpen }, () => {
if (this.props.onToggle)
this.props.onToggle(this.state.isOpen)
})
}
render() {
... |
packages/@lyra/state-router/demo-server/components/Main.js | VegaPublish/vega-studio | // @flow
import type {Router} from '../../src/components/types'
import React from 'react'
import {StateLink, Link, RouteScope, withRouterHOC} from '../../src/components'
import Product from './Product'
import User from './User'
type Props = {
router: Router
}
export default withRouterHOC((props: Props) => {
const... |
client/src/global/components/helper/UserLink.js | zdavis/manifold | import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import { withRouter } from "react-router-dom";
import Url from "url-parse";
import memoize from "lodash/memoize";
import config from "config";
import { Link } from "react-router-dom";
const urlFactory = memoize(url => new Url(url));
cla... |
src/App.js | vivek1729/Arduino-Browser-Editor | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import TextEditor from './TextEditor';
import { buttonPressed, compileStart } from './actions';
import { connect } from 'react-redux';
const mapStateToProps = (state) => {
return state;
};
const mapDispatchToProps = (dispa... |
Samples/Core.SPD/Core.SPDWeb/Scripts/jquery-1.9.1.js | timothydonato/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/svg-icons/content/content-copy.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCopy = (props) => (
<SvgIcon {...props}>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</SvgIcon>
);... |
docs/includes/Home.js | harjeethans/materialistic | import React from 'react';
class Home extends React.Component {
render() {
return (
<div>
Home
</div>
);
}
}
export default Home;
|
entry_types/scrolled/package/src/frontend/ThemeIcon.js | codevise/pageflow | import React from 'react';
import information from './icons/information.svg';
import muted from './icons/muted.svg';
import share from './icons/share.svg';
import unmuted from './icons/unmuted.svg';
import {useTheme} from '../entryState';
const icons = {
information,
muted,
share,
unmuted
};
/**
* Render a... |
client/components/Friends.js | gut-js/gut | import React from 'react';
//Components
import AddFriend from './AddFriend';
import FriendsList from './FriendsList';
class Friends extends React.Component {
constructor(){
super();
this.sendQuery = this.sendQuery.bind(this);
this.displaySearchResults = this.displaySearchResults.bind(this);
}
compo... |
frontend/src/components/user/Register/RegisterForm.js | VladimirAnaniev/LoggIt | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Input, Button } from 'react-materialize'
Input.propTypes = {
user: PropTypes.shape({
email: PropTypes.string,
password: PropTypes.string,
confirmPassword: PropTypes.string,
name: PropTypes.string
}),
error: PropTypes.strin... |
src/Dropdown.js | selvagsz/react-power-select | import React, { Component } from 'react';
import TetherComponent from 'react-tether';
import cx from 'classnames';
export default class Dropdown extends Component {
render() {
let { className, horizontalPosition, children } = this.props;
return (
<TetherComponent
className={cx('PowerSelect__Tet... |
src/AffixMixin.js | johanneshilden/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
src/components/Board/components/Outils/components/BorderRadius/index.js | codex49/icon-generator | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import { changeBorder } from '../../../../../../redux/actions';
class BorderRadius extends Component {
static defaultProps = {
changeBorder: () => unde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.