path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
client/component/table/row/empty-row.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
const EmptyRow = ( props ) => {
const { headers } = props;
return (
<tr>
<td colSpan={ headers.length + 1 }>{ __( 'Nothing to display.' ) }</td>
</tr>
);
};
export default EmptyRow;
|
src/svg-icons/image/brightness-7.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness7 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69... |
modules/__tests__/serverRendering-test.js | chf2/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import createLocation from 'history/lib/createLocation'
import RoutingContext from '../RoutingContext'
import match from '../match'
import Link from '../Link'
describe('server rendering', function () {
let App... |
ajax/libs/angular-google-maps/1.0.3/angular-google-maps.js | ErikSchierboom/cdnjs | /*
Author Nick McCready
Intersection of Objects if the arrays have something in common each intersecting object will be returned
in an new array.
*/
(function() {
_.intersectionObjects = function(array1, array2, comparison) {
var res,
_this = this;
if (comparison == null) {
compariso... |
ajax/libs/angular.js/1.0.0/angular-scenario.js | hhbyyh/cdnjs | /*!
* jQuery JavaScript Library v1.7.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 Licenses.
... |
src/components/CardComponent.js | andresin87/enAlquiler | 'use strict';
import React from 'react';
import { Card } from 'material-ui/Card'
require('styles//Card.scss');
const blankImage = require('../images/blank.svg');
const enAlquilerColor = '#016aa9';
class CardComponent extends React.Component {
render() {
return (
<Card
style={{
margin... |
app/components/AppHeader.js | nosplashurinal/order-management | import React from 'react';
import styles from '../styles/app.scss';
import { Motion, spring } from 'react-motion';
const AppHeader = () =>
<Motion defaultStyle={{ y: -40 }} style={{ y: spring(0) }}>
{intStyle =>
<header className={styles.section_header} style={{ transform: 'translate(0,' + intSt... |
test/ButtonToolbarSpec.js | glenjamin/react-bootstrap | import React from 'react';
import { mount } from 'enzyme';
import Button from '../src/Button';
import ButtonToolbar from '../src/ButtonToolbar';
describe('ButtonToolbar', () => {
it('Should output a button toolbar', () => {
mount(
<ButtonToolbar>
<Button>Title</Button>
</ButtonToolbar>,
... |
src/svg-icons/action/markunread-mailbox.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionMarkunreadMailbox = (props) => (
<SvgIcon {...props}>
<path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionMarkunreadMailbox = pu... |
src/components/NotFoundPage.js | aleccunningham/robinhood-react | import React from 'react';
const AboutPage = () => {
return {
<div>
<h1>About Page</h1>
<p>An implementation of ReactJS and Redux with the Robinhood API to make trades on your desktop machine!</p>
</div>
};
};
export default AboutPage
|
examples/todomvc/containers/App.js | peteruithoven/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
pkg/interface/link/src/js/components/lib/welcome.js | ngzax/urbit | import React, { Component } from 'react';
export class Welcome extends Component {
constructor() {
super();
this.state = {
show: true
}
this.disableWelcome = this.disableWelcome.bind(this);
}
disableWelcome() {
this.setState({ show: false });
localStorage.setItem("urbit-link:wasWe... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-router-dom/es/Link.js | bhathiya/test | 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 = {... |
ajax/libs/webshim/1.14.6/dev/shims/moxie/js/moxie.js | Timbioz/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
app/containers/NotFoundPage/index.js | brainsandspace/ship | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
ajax/libs/forerunnerdb/1.3.577/fdb-core+views.js | AMoo-Miki/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... |
pyproctgui/gui/static/wizard/js/libs/jquery/jquery-1.9.1.min.js | victor-gil-sepulveda/pyProCT-GUI | /*! 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... |
src/svg-icons/notification/sms-failed.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSmsFailed = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/>
</SvgIcon>
);
NotificationSmsFail... |
src/routes/login/Login.js | Gtallant/my-life-organizer | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Login.scss';
class Login extends Component {
componentWillUnmount() {
}
render() {
const style = {
width: '300px',
backgroundColor: '#00BCD4',
fontFamily: "'Share',c... |
src/widget.js | flatzo/gnome-shell-extensions-mediaplayer | /* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
/**
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later v... |
ajax/libs/yui/3.11.0/datatable-body/datatable-body-debug.js | jmusicc/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... |
examples/huge-apps/routes/Course/components/Nav.js | besarthoxhaj/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
admin/client/App/index.js | Adam14Four/keystone | /**
* This is the main entry file, which we compile the main JS bundle from. It
* only contains the client side routing setup.
*/
// Needed for ES6 generators (redux-saga) to work
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, IndexRoute... |
src/isomorphic/classic/element/__tests__/ReactElement-test.js | vincentism/react | /**
* Copyright 2013-2015, 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-co... |
src/svg-icons/content/move-to-inbox.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentMoveToInbox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3... |
src/svg-icons/image/slideshow.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSlideshow = (props) => (
<SvgIcon {...props}>
<path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/>
</SvgIcon>
);
ImageSlideshow = pure(I... |
app/components/ChargesList/index.js | projectcashmere/web-server | /**
*
* ChargesList
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
const TopRow = ({ currency }) => (
<div className="row">
<div className="col-sm-6">
<b><FormattedMessage {...messages.service} /></... |
src/components/TracksGrid/TracksGrid.js | hack-duke/hackduke-code-for-good-website | import React from 'react'
import TracksBox from 'components/TracksBox'
import {Grid, Row, Col} from 'react-bootstrap'
import classes from './TracksGrid.scss'
export const TracksGrid = () => (
<div>
<Grid className={classes.grid}>
<Row className='show-grid'>
<Col sm={6} md={6} className={classes.lef... |
examples/universal/client/index.js | gajus/redux | import 'babel-core/polyfill'
import React from 'react'
import { render } from 'react-dom'
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... |
node_modules/reflexbox/docs/components/Example.js | HasanSa/hackathon |
import React from 'react'
import toJsx from 'react-element-to-jsx-string'
import { Box } from '../..'
const Example = ({ example, ...props }) => (
<Box mb={3}>
<Box py={2} className='Example' children={example} />
<pre style={{ margin: 0 }} children={toJsx(example)} />
</Box>
)
Example.propTypes = {
ex... |
tests/layouts/CoreLayout.spec.js | davecarlson/reacty | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
packages/relay-test-utils/__tests__/__generated__/RelayMockPayloadGeneratorTest45Query.graphql.js | josephsavona/relay | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<afcc72d0b49e475be00eb1b0fe8f3b1c>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disabl... |
static/js/jquery.js | AndresVillan/pyafipws.rece2py | /*! jQuery v1.7.1 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 cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
ajax/libs/angular-ui-select/0.9.1/select.js | raszi/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.9.1 - 2014-12-03T16:41:44.798Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
modules/__tests__/RouteComponent-test.js | dalexand/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Router from '../Router'
describe('a Route Component', function () {
let node
beforeEach(function () {
node = document.createElement('div')
})
afterEach(function (... |
node_modules/antd/es/auto-complete/InputElement.js | prodigalyijun/demo-by-antd | 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/inherits';
import React from 'react';
import { findDOMN... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/material-ui/internal/BeforeAfterWrapper.js | bhathiya/test | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProperties2);
var _getPrototypeOf = require('babel-runtime/core-js/object/get-... |
client/views/about/About.js | kriasoft/aspnet-starter-kit | /**
* ASP.NET Core Starter Kit (https://dotnetreact.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 Layout from '../../comp... |
ajax/libs/forerunnerdb/1.3.480/fdb-core.min.js | bootcdn/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/svg-icons/image/monochrome-photos.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMonochromePhotos = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3... |
ajax/libs/analytics.js/2.3.7/analytics.js | steve-ng/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
src/components/Footer/Footer.js | BenRichter/app2 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import withStyles from 'isomorp... |
packages/reactor-kitchensink/src/examples/Wizard/Wizard.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Toolbar, Container, Panel, Button, Indicator, SegmentedButton, ToolTip } from '@extjs/ext-react';
export default class WizardExample extends Component {
state = {
step: 0,
tapMode: 'direction'
}
render() {
const { step, tapMode } ... |
template/src/layouts/CoreLayout/CoreLayout.js | likun7981/react-template-router | import React from 'react'
import Header from './Header'
import Sider from './Sider'
import { renderRoutes } from 'react-router-config'
import './CoreLayout.less'
export default ({ routes }) => {
return (
<div className="core-layout">
<Header />
<Sider />
<div className="core-layout__viewport">{... |
examples/shared/wrapInTestContext.js | jgable/react-dnd | import React, { Component } from 'react';
import TestBackend from 'react-dnd-test-backend';
import { DragDropContext } from 'react-dnd';
export default function wrapInTestContext(DecoratedComponent) {
class TestStub extends Component {
render() {
return <DecoratedComponent {...this.props} />;
}
}
... |
src/js/shared/components/errors-field.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import PropTypes from 'prop-types';
class ErrorsField extends React.Component {
render() {
let errors = this.props.errors || this.context.errors;
if (!errors) {
return null;
}
errors = errors[this.props.name];
if (!errors) {
... |
ajax/libs/6to5/1.12.16/browser-polyfill.js | callumacrae/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/SparklinesSpots.js | goodeggs/react-sparklines | import React from 'react';
export default class SparklinesSpots extends React.Component {
static propTypes = {
size: React.PropTypes.number,
style: React.PropTypes.object,
spotColors: React.PropTypes.object
};
static defaultProps = {
size: 2,
spotColors: {
... |
nlyyAPP/component/消息中心/模板/MLMoban.js | a497500306/nlyy_APP | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
TouchableOpacity,
TextInput,
ActivityIndicator,
Platform,
PermissionsAndroid,
ScrollView,
Alert,
DeviceEventEmitter,
AsyncStorage,
Modal
} from 'react-native';
v... |
aaf-enrollment/src/components/enrollment/ChainEnrollment.js | MicroFocus/CX | import './ChainEnrollment.scss';
import React from 'react';
import { Redirect } from 'react-router-dom';
import { methods } from '../../data/MethodData';
import {connect} from 'react-redux';
import AuthenticatorContainer from './AuthenticatorContainer';
import {
getChainAuthenticatorLink, getMethodIdFromUri, HOMEPA... |
src/components/TodoItem.js | mboperator/fractalTodoExample | import React from 'react';
import { connectModule } from 'redux-modules';
import * as todoModule from '../modules/todo/reducer';
const TodoItem = ({id, title, description, checked, todo: { actions }}) =>
<li>
<div className="checkbox">
<input
onChange={e =>
actions.setDescription({
... |
src/svg-icons/action/lightbulb-outline.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLightbulbOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1... |
client/src/containers/order/category-menu.js | dagobahtech/acit2910 | import React, {Component} from 'react'
import MenuItem from './menu-item';
import CategoryNavigation from './category-navigation';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {getMenuFor} from '../../actions/order/index';
import ReactCSSTransitionGroup from 'react-addons-css-t... |
src/components/helpers/difficulty.stories.js | serlo-org/serlo-abc | import React from 'react';
import { Text, View } from 'react-native';
import { storiesOf } from '@storybook/react-native';
import withDifficulty from './difficulty';
const C = ({ label, difficulty }) => (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Text>
{label}: {difficult... |
packages/material-ui-icons/lib/esm/PersonalVideoOutlined.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"
}), 'PersonalVideoOutlined'); |
ajax/libs/react-native-web/0.16.4/cjs/vendor/react-native/Animated/nodes/AnimatedProps.js | cdnjs/cdnjs | /**
* 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.
*
*
* @format
*/
'use strict';
exports.__esModule = true;
exports.default = void 0;
var _AnimatedEvent = require("../AnimatedEve... |
Libraries/Modal/Modal.js | alin23/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... |
build/public/js/react-d3.min.js | VladimirJelincic/rd3-tmd | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.rd3=e()}}(function(){return function e(t,r,i){function ... |
app/javascript/mastodon/features/notifications/index.js | TootCat/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../ui/components/column';
import { expandNotifications, clearNotifications, scrollTopNotifications } from '../../actions/notifications';
i... |
ajax/libs/graphiql/0.6.0/graphiql.min.js | cdnjs/cdnjs | !function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.GraphiQL=f()}}(function(){var define;return function e(... |
ajax/libs/forerunnerdb/1.3.560/fdb-legacy.min.js | humbletim/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... |
examples/with-cerebral/pages/other.js | BlancheXu/test | import React from 'react'
import { Controller, UniversalController } from 'cerebral'
import Devtools from 'cerebral/devtools'
import { Container } from '@cerebral/react'
import Page from '../components/Page'
import clock from '../modules/clock'
export default class Counter extends React.Component {
static getInitial... |
packages/mcs-lite-ui/src/StatusLight/StatusLight.example.js | MCS-Lite/mcs-lite | import React from 'react';
import styled from 'styled-components';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import { theme } from 'mcs-lite-theme';
import StatusLight from '.';
const StyledStatusLight = styled(StatusLight)`
width: 100px;
`;
storiesOf('StatusLig... |
node_modules/react-icons/fa/youtube-square.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaYoutubeSquare = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m23.5 29.1v-3.5q0-1.1-0.6-1.1-0.4 0-0.8 0.3v5q0.4 0.4 0.8 0.4 0.6 0 0.6-1.1z m4.1-2.7h1.5v-0.8q0-1.1-0.7-1.1t-0.8 1.1v0.8z m-12.7-6v1.6h-1.8v9.4h-1.7v-9.4h-1.7v... |
src/StatusMenuBar.js | sansetty2510/bootStrap | import React from 'react';
import { Tabs, Tab, Nav, NavItem, ButtonGroup, Button} from 'react-bootstrap';
export default class StatusMenuBar extends React.Component {
constructor(props){
super(props);
}
render(){
let self = this;
return(
<div>
<h2> Status Menu Items </h2>
<div cl... |
ajax/libs/backbone-react-component/0.7.0/backbone-react-component-min.js | saitheexplorer/cdnjs | "use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module&&module.exports){var c=require("react"),d=require("backbone"),e=require("underscore");module.exports=b(c,d,e)}else b(a.React,a.Backbone,a._)}(this,function(a,b,c){function ... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | jwaltonmedia/react-router | /*globals COURSES:true */
import React from 'react'
class Grades extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment... |
src/components/Rectangle.js | fullstackreact/google-maps-react | import React from 'react';
import PropTypes from 'prop-types';
import { areBoundsEqual } from '../lib/areBoundsEqual';
import { camelize } from '../lib/String';
const evtNames = ['click', 'mouseout', 'mouseover'];
const wrappedPromise = function() {
var wrappedPromise = {},
promise = new Promise(function ... |
docroot/sites/all/modules/contrib/ctools/js/dependent.js | victorkane/lit-drupal-lean | /**
* @file
* Provides dependent visibility for form items in CTools' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('ctools_process_dependency'),
* - '#dependency' => array('id-of-form-item' => array(list, of, values, that,
* make, this, item, show),
*
* Special considerations:
... |
client/commons/InputField.js | rockchalkwushock/photography-backend | import React from 'react';
import { Form, Message } from 'semantic-ui-react';
const InputField = ({ placeholder, input, icon, type, meta: { touched, error } }) => (
<div>
<Form.Input
iconPosition={icon && 'left'}
icon={icon}
{...input}
placeholder={placeholder}
type={type}
/>
... |
client/src/components/Header/Header.js | raestrada/bipbalance | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
return (... |
js/jquery-1.11.0.js | hugomarkitt/finalfinal | /*! 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 wind... |
packages/material-ui-icons/src/ClosedCaptionOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H5V6h14v12z" /><path d="M7 15h3c.55 0 1-.45 1-1v-1H9.5v.5h-2v... |
ajax/libs/inferno-mobx/1.0.0-beta25/inferno-mobx.js | sufuf3/cdnjs | /*!
* inferno-mobx v1.0.0-beta25
* (c) 2016 Ryan Megidov
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('./inferno-create-class'), require('./inferno-create-element'))... |
examples/basic/view_a.js | seanich/react-modal | import React, { Component } from 'react';
import Modal from '../../src/index';
import ModalA from './modal_a';
const MODAL_A = 'modal_a';
const MODAL_B = 'modal_b';
const DEFAULT_TITLE = 'Default title';
export default class ViewA extends Component {
constructor(props) {
super(props);
this.state = {
... |
src/views/components/Switch.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import './Switch.css';
export const Switch = (props) => {
const {isOn, showLabels, offLabel, onLabel, ...inputProps} = {...props};
return (
<div styleName={'container' + (props.disabled ? ' isDisabled' : '')}>
{showLabels && <span styleName="offLab... |
src/svg-icons/maps/local-drink.js | mit-cml/iot-website-source | 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.... |
frontend/src/components/recipes/list/components/ListItemPres.js | jf248/scrape-the-plate | import React from 'react';
import { ButtonBase, Card, Typography, withStyles } from '@material-ui/core';
import { Source, Time, SubheadingItem } from 'components/common';
import Tag from './Tag';
const styles = theme => ({
root: {
flex: '0 0 auto',
margin: theme.spacing.unit,
display: 'flex',
flexFl... |
ajax/libs/rxjs/4.0.4/rx.all.compat.js | sympmarc/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
src/svg-icons/image/crop-square.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropSquare = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/>
</SvgIcon>
);
ImageCropSquare = pure(ImageCropSquar... |
packages/poa-core/src/config.js | Strikersoft/poa | // @ts-check
import React from 'react';
function helloComponent() {
return <div>Jambo, jambo! Define your routes in {`boot({ routes: <here> })`}.</div>;
}
export function createDefaultConfig(config) {
const defaultConfig = {
react: { htmlNode: document.getElementById('root'), loadingComponent: null },
rou... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.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/components/SortMenu/index.js | topguru/React-Equiaction | import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
Image,
TouchableHighlight
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import styles from './style';
import { images, metrics } from '../../theme';
import Icon from 'react-native-vector-icons/FontAwesome'... |
src/svg-icons/communication/import-export.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationImportExport = (props) => (
<SvgIcon {...props}>
<path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/>
</SvgIcon>
);
CommunicationImportExport = pure(CommunicationImpo... |
ajax/libs/core-js/0.4.0/core.js | magoni/cdnjs | /**
* Core.js 0.4.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
packages/cf-component-modal/test/ModalHeader.js | jroyal/cf-ui | import React from 'react';
import renderer from 'react-test-renderer';
import { ModalHeader } from '../../cf-component-modal/src/index';
test('should render', () => {
const component = renderer.create(<ModalHeader>ModalHeader</ModalHeader>);
expect(component.toJSON()).toMatchSnapshot();
});
|
admin/client/components/PopoutBody.js | Ftonso/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React.PropTypes.bool,
},
render () {
let ... |
controlled/index.js | eyesofkids/react-compositionevent | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(
<App />,
document.getElementById('root'))
|
app/components/Chunk/__tests__/index-test.js | ModusCreateOrg/budgeting-sample-app-webpack2 | import React from 'react';
import { shallow } from 'enzyme';
import Loading from 'components/Loading';
import Chunk from '..';
// mock 'load' function that resolves to a component
const LoadedComponent = () => <div>loaded</div>;
const mockLoad = async () => ({ default: LoadedComponent });
// mock nested component
jes... |
src/main.js | mrinalkrishnanm/kyogre | /**
* App entry point
*/
// Polyfill
import 'babel-polyfill';
// Libraries
import React from 'react';
import ReactDOM from 'react-dom';
import { Router,Route , browserHistory } from 'react-router';
import { Provider } from 'react-redux';
// Routes
import Homepage from './Homepage';
import Login from './Login';
imp... |
test/tab.js | woshisbb43/coinMessageWechat | import React from 'react';
import { mount, shallow } from 'enzyme';
import assert from 'assert';
import sinon from 'sinon';
import WeUI from '../src/index';
const { Tab, TabBody, TabBodyItem, NavBar, NavBarItem, TabBar, TabBarItem, TabBarLabel, TabBarIcon } = WeUI;
describe('<Tab></Tab>', ()=>{
describe('Compone... |
Realization/frontend/czechidm-core/src/components/advanced/IncompatibleRoleInfo/IncompatibleRoleInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { IncompatibleRoleManager, SecurityManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
import EntityInfo from '../EntityIn... |
src/library/Text/TextProvider.js | mineral-ui/mineral-ui | /* @flow */
import React, { Component } from 'react';
import { TextRoot as Root } from './styled';
import ElementContext from './ElementContext';
import { APPEARANCE } from './constants';
import type { TextProviderDefaultProps, TextProviderProps } from './types';
export default class TextProvider extends Component<Te... |
ajax/libs/jointjs/0.6.4/joint.js | liubo404/cdnjs | /*! JointJS v0.6.4 - JavaScript diagramming library 2013-10-15
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/*!
* jQuery JavaScript Library v1.9.1
* http://jquery... |
app/components/LoadingIndicator/index.js | iFatansyReact/react-boilerplate-imagine | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
test/test_helper.js | benjaminboruff/CityWeather | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/icons/LinkedinSocialIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
const LinkedinSocialIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 18 18">
{props.title && <title>{props.title}</title>}
<path d="M17.00975,0.99020833 C17.6699167,1.650375 18,2.44529167 18,3.375 L18,14.6249583 C18,15.5546667 17.6... |
client/acp/components/ChannelItemView.js | NicolasSiver/nodebb-plugin-ns-twitch-monitor | /**
* Created by Nicolas on 6/24/15.
*/
import Actions from '../actions/Actions';
import Bootbox from 'bootbox';
import classNames from 'classnames';
import React from 'react';
export default class ChannelItemView extends React.Component {
constructor(props) {
super(props);
this.state = {mouseOve... |
demo/views/content/menu5/menu53.js | 133922249/demo | import React, { Component } from 'react';
export default class Menu53 extends Component {
render() {
return (
<div>
<span>Menu53</span>
</div>
)
};
}
|
dist/1.8.1/jquery-ajax-css-deprecated-dimensions.js | michael829/jquery-builder | /*!
* jQuery JavaScript Library v1.8.1 -deprecated,-css,-ajax,-ajax/jsonp,-ajax/script,-ajax/xhr,-effects,-offset,-dimensions
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/licen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.