path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/layouts/layout-5-6.js | nuruddeensalihu/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className + ' horizontal'} onClick={onClick}>
{components[0]}
{components[1]}
{components[2]}
{components[3]}
{components[4]}
</div>
);
|
examples/normalization/routes.js | lore/lore | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
/**
* Wrapping the Master component with this decorator provides an easy way
* to redirect the user to a login experience if we don't know who they are.
*/
import UserIsAuthenticated from './src/decorators/UserIsAuthenticated';
... |
components/tos.js | Yutenko/stories360 | import React from 'react'
import {Container,Row,Col} from 'react-grid-system'
import {deepPurple500,orange500} from 'material-ui/styles/colors'
import {translate} from '../client/lang/translation'
class Stories360Tos extends React.Component {
render () {
return (
<Container>
<Row>
<Col>
... |
dispatch/static/manager/src/js/pages/FilesPage.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import DocumentTitle from 'react-document-title'
import Dropzone from 'react-dropzone'
import { Button } from '@blueprintjs/core'
import filesActions from '../actions/FilesActions'
import ItemList from '../components/ItemList'
import { humanizeDatetime } ... |
marriage-html/external/jquery/jquery.js | SuperJohn/mammoth2016 | /*!
* 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 ) {
// ... |
src/views/HomeView/HomeView.js | softage0/solid-online-services | /* @flow */
import React from 'react'
// We avoid using the `@connect` decorator on the class definition so
// that we can export the undecorated component for testing.
// See: http://rackt.github.io/redux/docs/recipes/WritingTests.html
export class HomeView extends React.Component {
render () {
return (
<... |
src/routes/account/Role/Search.js | pmg1989/dva-admin | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Button, Row, Col, Icon } from 'antd'
const Search = ({
addPower,
onAdd,
}) => {
return (
<Row gutter={24}>
{addPower &&
<Col lg={24} md={24} sm={24} xs={24} style={{ marginBottom: 16, textAlign: 'right' }}>
<Butto... |
src/svg-icons/action/account-balance.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBalance = (props) => (
<SvgIcon {...props}>
<path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/>
</SvgIcon>
);
ActionAccountBalance = pure(ActionA... |
test/es6-module-exports-spec.js | mikedklein/material-ui | import React from 'react';
import TestUtils from 'react-addons-test-utils';
const Divider = require('divider');
const ActionAccessibility = require('svg-icons').ActionAccessibility;
import ImportThemeManager from 'styles/theme-manager';
const RequireThemeManager = require('styles/theme-manager');
import ImportColorM... |
ajax/libs/forerunnerdb/1.3.465/fdb-core+persist.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... |
src/components/wrapper/wrapper.js | jdaio/jdaio.github.io | /**
* Wrapper Component
*
* @description Provides a size controlled container for site content.
*/
import React from 'react';
import PropTypes from 'prop-types';
import style from './wrapper.module.scss';
function Wrapper({ children }) {
return <div className={style.wrapper}>{children}</div>;
}
Wrapper.propT... |
ajax/libs/core-js/0.9.9/core.js | pombredanne/cdnjs | /**
* Core.js 0.9.9
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
packages/react-dom/src/test-utils/ReactTestUtils.js | Simek/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.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflect... |
pages/notepad.js | vasco3/Apollo | /**
* Created by cuadraman on 11/12/16.
*/
import React from 'react'
import HtmlHead from '../components/HtmlHead'
export default () => (
<div>
<HtmlHead description="CuadranteWeb Quick Notes is a simple notepad without any wow. Just type something."
titleText="CuadranteWeb - Quick Notes" />
... |
build/ui/af.ui.jquery.js | eleooo/appframework | /*! intel-appframework - v2.1.0 - 2014-04-09 */
/**
* jq.appframework.js
* @copyright Intel 2013
* @author Ian Maffett
* @description A plugin to allow jQuery developers to use App Framework UI
*/
/* jshint eqeqeq:false */
(function($,window){
"use strict";
var nundefined, document = window.document,class... |
ajax/libs/6to5/1.12.10/browser.js | cluo/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/x-editable/1.4.6/jqueryui-editable/js/jqueryui-editable.js | BeOleg/cdnjs | /*! X-editable - v1.4.6
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to for... |
src/client.js | chrisslater/snapperfish | /**
* 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 createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import { Provider } from 'react-redux';
i... |
front/app/app/rh-components/rh-Panel.js | nudoru/React-Starter-2-app | import React from 'react';
const Panel = (props) => {
let panelClass = ['rh-panel'],
header, footer;
if (props.title || props.icon || props.utilityButtons) {
header = <PanelHeader {...props}/>;
}
if (props.footerNote || props.actionButtons) {
footer = <PanelFooter {...props}/>;
}
return (... |
ajax/libs/jointjs/0.7.0/joint.all.min.js | WebReflection/cdnjs | /*! JointJS v0.7.0 - JavaScript diagramming library 2013-11-04
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/.
*/
if(function(a,b){function c(a){var b=a.length,c=ib.type(... |
files/yasgui/1.1.4/yasgui.min.js | CTres/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
Avant-Projet/Maquette/Structure/js/vendor/jquery.js | JulienBernard/ApocalySpace | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
sites/all/modules/jquery_update/replace/jquery/1.10/jquery.min.js | satisfiedlemon/rap_rank | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
ajax/libs/jointjs/0.9.3/joint.js | ppoffice/cdnjs | /*! JointJS v0.9.3 - JavaScript diagramming library 2015-02-03
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 v2.0.3
* http://jquery... |
src/components/progress/index.js | thinktopography/reframe | import React from 'react'
import PropTypes from 'prop-types'
class Progress extends React.Component {
static propTypes = {
label: PropTypes.string,
percent: PropTypes.number,
text: PropTypes.string,
title: PropTypes.string
}
render() {
const { label, title, text } = this.props
const per... |
ajax/libs/highstock/1.3.7/highstock.src.js | bspaulding/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v1.3.7 (2013-10-24)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,... |
frontend/blueprints/view/files/__root__/views/__name__View/__name__View.js | swistak35/symmetrical-chainsaw | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
server/public/js/app/sharedComponents/TopNav.js | fendy3002/QzStringTools | import React from 'react'
var TopNav = ({host}) => <header className="main-header">
<a href={host} className="logo">
<span className="logo-mini"><b>Qz</b>ST</span>
<span className="logo-lg"><b>Qz</b>StringTools</span>
</a>
<nav className="navbar navbar-static-top">
<a href="#" classNam... |
ajax/libs/geoext/1.1/lib/GeoExt/widgets/tree/TreeNodeUIEventMixin.js | pkozlowski-opensource/cdnjs | /**
* Copyright (c) 2008-2009 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
* of the license.
*/
Ext.namespace("GeoExt.tree");
/** api: (define)
* module = GeoExt.tree
* class = TreeNodeUIEventMixin
*/... |
ajax/libs/6to5/1.14.9/browser.js | ramda/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... |
app/actions/userActions.js | JasonEtco/flintcms | import React from 'react'
import { push } from 'react-router-redux'
import graphFetcher from '../utils/graphFetcher'
import { errorToasts, newToast } from './uiActions'
export const REQUEST_USER = 'REQUEST_USER'
export const RECEIVE_USER = 'RECEIVE_USER'
export const NEW_USER = 'NEW_USER'
export const UPDATE_USER = 'U... |
imports/ui/pages/index.js | scimusmn/sports-run | import React from 'react';
import { Jumbotron } from 'react-bootstrap';
export const Index = () => (
<Jumbotron className='text-center'>
<h3>Sports</h3>
<h1>Run Component</h1>
<p>Compare your sprinting speed to professional athletes.</p>
<br/>
<p><a className='btn btn-default' href='/selection' r... |
components/person-view.js | pho3nixf1re/followupboss-example | import React from 'react';
import isEmpty from 'lodash/isEmpty';
import State from 'lib/state';
import {actions as peopleActions} from 'lib/reactions/people';
import Person from 'components/person';
const PersonView = React.createClass({
propTypes: {
state: React.PropTypes.object,
params: React.P... |
ajax/libs/react-quill/0.2.2/react-quill.js | brix/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("quill"));
else if(typeof define === 'function' && define.amd)
define(["react", "quill"], factory);
else if(typeof exports === 'object')
e... |
Realization/frontend/czechidm-core/src/content/form/FormAttributes.js | bcvsolutions/CzechIdMng | import React from 'react';
//
import * as Basic from '../../components/basic';
import FormAttributeTable from './FormAttributeTable';
/**
* Attributes content for forms (table).
*
* @author Roman Kučera
* @author Radek Tomiška
*/
export default class FormAttributes extends Basic.AbstractContent {
getContentKey() {
... |
src/svg-icons/action/view-column.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewColumn = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5V5h-5v13zm-6 0h5V5H4v13zM16 5v13h5V5h-5z"/>
</SvgIcon>
);
ActionViewColumn = pure(ActionViewColumn);
ActionViewColumn.displayName = 'Actio... |
ajax/libs/yui/3.11.0/simpleyui/simpleyui-debug.js | kalkidanf/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
src/renderers/2d/strategies/naiveCanvas/NaiveCanvasRenderView.js | jeffdowdle/l-systems | import React from 'react';
import PropTypes from 'prop-types';
import { expand } from 'modules/lsystem/functions';
import NaiveCanvas from './NaiveCanvas';
class NaiveCanvasRenderView extends React.Component {
constructor(props) {
super(props);
this.canvas = null;
}
shouldComponentUpdate() {
return ... |
packages/components/src/List/Toolbar/ItemsNumber/ItemsNumber.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import getDefaultT from '../../../translate';
function ItemsNumber({ id, totalItems, selected, label, labelSelected, t }) {
return (
<div className="tc-items-number" id={id}>
{selected
? labelSelected ||
t('LIST_TOOLBAR_NUMBER_OF_SELECTED_I... |
packages/native/src/components/screens/settings/SettingsResources.js | hwaterke/inab-native | import React from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, Text, View, Button} from 'react-native';
import {
AccountResource,
CategoryGroupResource,
CategoryResource,
TransactionResource,
BudgetItemResource,
PayeeResource
} from 'inab-shared';
import {connect} from 'react-redux';
imp... |
spec/components/tabs.js | rubenmoya/react-toolbox | import React from 'react';
import { Tabs, Tab } from '../../components/tabs';
class TabsTest extends React.Component {
state = {
index: 1,
fixedIndex: 1,
inverseIndex: 1,
};
handleTabChange = (index) => {
this.setState({ index });
};
handleFixedTabChange = (index) => {
this.setState({ f... |
projects/test-empeek/src/components/CommentsList.js | hodovanyuk/hodovanyuk.github.io | import React, { Component } from 'react';
import Comment from "./Comment";
class CommentsList extends Component {
render() {
const comments = this.props.comments.map((val)=>{
return <Comment name={val.name} comment={val.comment}/>
});
return (
<div className="panel-... |
jekyll-strapi-tutorial/api/plugins/upload/admin/src/components/ListHeader/index.js | strapi/strapi-examples | /**
*
* ListHeader
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import cn from 'classnames';
import PropTypes from 'prop-types';
// import InputCheckBox from 'components/InputCheckbox';
import styles from './styles.scss';
function ListHeader({ changeSort, sort }) {
const titl... |
react/Loader/Loader.js | seekinternational/seek-asia-style-guide | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Loader.less';
import classnames from 'classnames';
export default function Loader({ _small, compact }) {
return (
<div className={classnames(styles.root, { [styles.small]: _small, [styles.compact]: compact })}>
<div classN... |
packages/es-components/src/components/containers/table/Table.js | jrios/es-components | import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
const TableBase = styled.table`
border-collapse: collapse;
border: 0;
border-spacing: 0;
margin: 0 0 25px 0;
padding: 0;
width: 100%;
caption {
padding-top: 8px;
padding-bottom: 8px;
... |
files/react/0.14.0-beta3/react.min.js | yaplas/jsdelivr | /**
* React v0.14.0-beta3
*
* 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 directo... |
src/main/javascript/node_modules/reactify/node_modules/react-tools/src/browser/ui/__tests__/ReactEventListener-test.js | leonhardE/mustached-ironman | /**
* 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... |
test/app/components/Counter.spec.js | jordanco/drafter-frontend | import React from 'react';
import expect from 'expect';
import { mount } from 'enzyme';
import Counter from '../../../src/app/components/Counter';
const props = {
state: { counter: { count: 1 } },
increment: expect.createSpy(),
decrement: expect.createSpy(),
incrementIfOdd: expect.createSpy(),
incrementAsync... |
packages/material-ui-icons/src/Looks.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="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93... |
packages/bonde-admin-canary/src/scenes/Auth/scenes/ResetPassword/CheckingToken.js | ourcities/rebu-client | import React from 'react'
import { Loading } from 'components/Loadable'
export default ({ t }) => (
<Loading
message={t('resetPassword.checkingToken')}
/>
)
|
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/CarouselItem.js | GoogleCloudPlatform/prometheus-engine | import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
... |
src/svg-icons/hardware/tablet-mac.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletMac = (props) => (
<SvgIcon {...props}>
<path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1... |
ajax/libs/react/15.0.0-rc.1/react.min.js | x112358/cdnjs | /**
* React v15.0.0-rc.1
*
* 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 direc... |
app/javascript/mastodon/features/ui/components/modal_root.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Base from '../../../components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
imp... |
ajax/libs/react-native-web/0.0.0-466063b7e/cjs/exports/Image/index.js | cdnjs/cdnjs | "use strict";
exports.__esModule = true;
exports.default = void 0;
var _createElement = _interopRequireDefault(require("../createElement"));
var _css = _interopRequireDefault(require("../StyleSheet/css"));
var _AssetRegistry = require("../../modules/AssetRegistry");
var _resolveShadowValue = _interopRequireDefault... |
ajax/libs/rxjs/2.4.6/rx.lite.extras.compat.js | qrohlf/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,
'und... |
src/components/itemsManager/Item.js | MrRandol/littleLight | /******************
REACT IMPORTS
******************/
import React from 'react';
import { View, Image, Text, TouchableOpacity } from 'react-native';
/*****************
CUSTOM IMPORTS
******************/
import T from 'i18n-react';
var styles = require('../../styles/itemsManager/Item');
import LoadingImage from '... |
app/javascript/mastodon/components/collapsable.js | kagucho/mastodon | import React from 'react';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
import PropTypes from 'prop-types';
const Collapsable = ({ fullHeight, isVisible, children }) => (
<Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight : 0 }} style=... |
src/components/HomePage.js | tavofigse/flip-the-reactomster | import React from 'react'
import { Link } from 'react-router'
const HomePage = () => {
return (
<ul className="main-menu">
<li><Link to="play">New Game</Link></li>
<li><Link to="options">Options</Link></li>
<li><Link to="credits">Credits</Link></li>
</ul>
)
}
export default HomePage
|
blueocean-material-icons/src/js/components/svg-icons/device/battery-unknown.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceBatteryUnknown = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-2.72 13.95h-1.9v-1.9h1.9v1.9zm1.35-5.26s-.38.42-... |
app/src/components/Folder/FolderPanel.js | GetStream/Winds | import React from 'react';
import PropTypes from 'prop-types';
import { Img } from 'react-image';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router-dom';
import NewFolderModal from './NewFolderModal';
import getPlaceholderImageURL from '../../util/... |
src/components/AboutSection.js | pjamieson/westindiesbooks-react-redux | import React, { Component } from 'react';
import { Button, Collapse } from 'reactstrap';
import './AboutSection.css';
class AboutSection extends Component {
constructor(props) {
super(props);
this.state = { collapsed: true };
this.toggle = this.toggle.bind(this);
}
toggle() {
this.setState({ coll... |
ajax/libs/yui/3.4.0pr2/event-custom/event-custom-base-debug.js | calvinf/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
node_modules/react-icons/go/file-text.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoFileText = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m22.5 10h-12.5v2.5h12.5v-2.5z m5-7.5h-22.5v35h30v-27.5l-7.5-7.5z m5 32.5h-25v-30h17.5l7.5 7.5v22.5z m-22.5-5h20v-2.5h-20v2.5z m0-5h20v-2.5h-20v2.5z m0-5h20v-2.5h-20v... |
ajax/libs/yui/3.8.0pr2/scrollview-base/scrollview-base.js | IonicaBizauKitchen/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
WINDOW = Y.config.win,
I... |
fields/types/number/NumberFilter.js | mekanics/keystone | import _ from 'underscore';
import React from 'react';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const CONTROL_OPTIONS = [
{ label: 'Exactly', value: 'exactly' },
{ label: 'Greater Than', value: 'greaterThan' },
{ label: 'Less Than', value: 'lessThan' },
{ label: 'Between', value: 'be... |
js/components/location_bar.js | batter/react-weather-widget | import React from 'react';
const {
Component,
} = React;
class LocationBar extends Component {
render () {
return (
<div id='location-bar'>
<h3>Weather for {this.props.location}</h3>
</div>
);
}
};
export default LocationBar;
|
src/components/footer/footer.js | n7best/react-weui | import React from 'react';
import classNames from '../../utils/classnames';
/**
* consists of `footer_links`, `footer_link` and `footer_text`
*
*/
const Footer = (props) => {
const { className, children, ...others } = props;
const cls = classNames({
'weui-footer': true,
[className]: classNam... |
src/main.js | kyoyadmoon/fuzzy-hw1 | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
im... |
jenkins-design-language/src/js/components/material-ui/svg-icons/social/share.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialShare = (props) => (
<SvgIcon {...props}>
<path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.3... |
src/server/handlers/universal.js | canonical-ols/build.snapcraft.io | import React from 'react';
import { match, RouterContext } from 'react-router';
import { renderToString } from 'react-dom/server';
import Html from '../helpers/html';
import { getClientConfig, conf } from '../helpers/config';
import configureStore from '../../common/store/configureStore';
import assets from '../../../... |
ajax/libs/omniscient/2.1.0/omniscient.js | holtkamp/cdnjs | /**
* Omniscient.js v2.1.0
* Authors: @torgeir,@mikaelbr
***************************************/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n... |
client/src/components/loading-indicator/index.js | nilnvoid/wagtail | import React from 'react';
const LoadingIndicator = () =>
<div className="o-icon c-indicator is-spinning">
<span ariaRole="presentation">Loading...</span>
</div>;
export default LoadingIndicator;
|
src/svg-icons/action/exit-to-app.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExitToApp = (props) => (
<SvgIcon {...props}>
<path d="M10.09 15.59L11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c... |
public/src/containers/counter/counter.js | white87332/react-redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { translate } from 'react-i18next';
import PropTypes from 'prop-types';
import i18n from '../../i18n/i18n';
import * as CounterActions from '../../actions/counter';
import './counter.scss';
function map... |
ajax/libs/jplayer/2.2.0/extras/jquery.jplayer.playlist.combo.min.js | toddmotto/cdnjs | /*! jQuery v1.8.2 -deprecated,-ajax,-ajax/jsonp,-ajax/script,-ajax/xhr jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof... |
packages/native/src/components/search/DataSearch.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import { Platform, View, Modal, TouchableWithoutFeedback } from 'react-native';
import { Input, Item, List, ListItem, Text, Button, Header, Left, Right, Icon } from 'native-base';
import {
addComponent,
removeComponent,
watchComponent,
updateQuery,
setQueryOptions,
setQu... |
src/Parser/Druid/Restoration/Modules/Items/T20_4Set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import HealingDon... |
lib/yuilib/3.9.1/build/event-focus/event-focus.js | ket-ed/ket-moodle | /* YUI 3.9.1 (build 5852) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
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 =... |
src/PageItem.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
assets/js/jquery-1.11.3.min.js | WereDouglas/outsourcetv | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/javascript/mastodon/components/avatar_composite.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarComposite extends React.PureComponent {
static propTypes = {
accounts: ImmutablePropTypes.list.isRequired,
ani... |
js/App/Components/PreLoginScreens/WelcomeScreen.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
src/__tests__/MathJaxReact-test.js | kevinfrei/rollercoaster | import React from 'react';
import ReactDOM from 'react-dom';
import MathJaxReact from '../MathJaxReact';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(
<MathJaxReact formula='x^2+cos(x)'/>, div);
});
|
examples/todomvc/containers/Root.js | xiamidaxia/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
techCurriculum/ui/solutions/2.7/src/index.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
html/src/index.js | donkirkby/live-py-plugin | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in yo... |
dapp/src/routes/txs/containers/page.js | airalab/DAO-IPCI | import React from 'react'
import { connect } from 'react-redux'
import i18next from 'i18next'
import Layout from '../../../shared/components/common/layout';
const Container = (props) => {
const { title, menu, children } = props
return (<Layout
title={title}
menu={menu}
>
{children}
</Layout>)
}
f... |
test/bottomToolbar-test.js | OnsenUI/react-onsenui | /* global describe it assert */
import React from 'react';
import ReactDOM from 'react-dom';
import {BottomToolbar} from '../dist/react-onsenui.js';
import TestUtils from 'react/lib/ReactTestUtils';
import rendersToComponent from './testUtil.js';
describe('B', function() {
rendersToComponent(
<BottomToolbar /... |
src/people/notifs/GetItemFailNotif.js | dash-/netjumpio-tabs-web | ///
// Dependencies
///
import React, { Component } from 'react';
import FailRetryNotif from '../../elements/FailRetryNotif';
import * as actions from '../actions';
///
// View
///
class GetItemFailNotifView extends Component {
///
// Rendering
///
renderMessage(action, userMessage) {
return (
'Retrievi... |
src/app/components/recipeJournalItem.js | nazar/soapee-ui | import _ from 'lodash';
import moment from 'moment';
import React from 'react';
import { Link } from 'react-router';
import authStore from 'stores/auth';
import ImageableThumbnails from 'components/imageableThumbnails';
import ImageableCarousel from 'components/imageableCarousel';
import MarkedDisplay from 'component... |
examples/star-wars/src/renderOnServer.js | denvned/isomorphic-relay | import IsomorphicRelay from 'isomorphic-relay';
import path from 'path';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Relay from 'react-relay';
import rootContainerProps from './rootContainerProps';
const GRAPHQL_URL = `http://localhost:8080/graphql`;
const networkLayer = new Relay... |
app/javascript/mastodon/features/direct_timeline/components/conversations_list.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ConversationContainer from '../containers/conversation_container';
import ScrollableList from '../../../components/scroll... |
src/LoginPage.js | danriti/pagerduty-review | import React from 'react';
import history from './history';
export default class LoginPage extends React.Component {
constructor() {
super();
this.state = {
subdomain: '',
apiKey: ''
};
}
handleChange(e, property) {
this.setState({
[property]: e.target.value
});
}
ha... |
src/components/List.js | v8187/regex-generator | import React, { Component } from 'react';
export class List extends Component {
render() {
return (<div className={`list-wrapper`}>
<h1>Common Regular Expressions</h1>
<p><b>Disclaimer: </b> These examples are given for learning purposes only and may fail for few use-cases.</p>
... |
files/core-js/0.9.8/core.js | Third9/jsdelivr | /**
* Core.js 0.9.8
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
www/src/withLayout.js | glenjamin/react-bootstrap | import React from 'react';
import ApiLayout from './layouts/ApiLayout';
import DefaultLayout from './layouts';
export default function withLayout(Component) {
return props => {
const { pathname } = props.location;
let Layout = DefaultLayout;
if (
pathname.startsWith('/getting-started') ||
pa... |
7.0.1/examples/asyncValidation/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/react-widgets/4.0.0-rc.13/react-widgets.js | cdnjs/cdnjs | /*! (c) 2014 - present: Jason Quense | https://github.com/jquense/react-widgets/blob/master/LICENSE.md */
!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 export... |
test/NavbarSpec.js | roderickwang/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import Nav from '../src/Nav';
describe('Nav', function () {
it('Should create nav element', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Navbar />
);
let nav = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.