path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
stories/InlineToolbar/SimpleInlineToolbarEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor';
import createInlineToolbarPlugin from 'draft-js-inline-toolbar-plugin';
import editorStyles from './editorStyles.css';
const inlineToolbarPlugin = createInlineToolbarPlugin();
const { InlineToolbar } ... |
vendors/jquery/jquery-1.11.0.min.js | pscrevs/gcconnex | /*! 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... |
components/Icon/Icon.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import Icon from './Icon';
import icons from './icons';
import m from '../../globals/modifiers.css';
const story = storiesOf('Icon', module);
Object.keys(icons).forEach(icon => {
story.add(icon, () => (
<div className={ m.base }>
{i... |
ajax/libs/yui/3.4.0/loader-base/loader-base-debug.js | jaslernl/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
docs/app/Examples/elements/Reveal/Types/RevealExampleRotate.js | ben174/Semantic-UI-React | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleRotate = () => (
<Reveal animated='rotate'>
<Reveal.Content visible>
<Image shape='circular' size='small' src='http://semantic-ui.com/images/wireframe/square-image.png' />
</Reveal.Content>
<Reveal.Conten... |
src/js/components/Layout.js | ilken/ChosenPokemons | import React from 'react';
import Header from '../components/layout/Header';
import Footer from '../components/layout/Footer';
import App from '../components/layout/App';
export default class Layout extends React.Component {
render () {
return (
<div>
<Header/>
<App/>
<Footer/>
... |
site/components/StaticHTMLBlock.js | arnif/react-dnd | import React from 'react';
import CodeBlock from './CodeBlock';
export default class StaticHTMLBlock {
static propTypes = {
html: React.PropTypes.string.isRequired
};
render() {
const { html } = this.props;
// Here goes a really hack-ish way to convert
// areas separated by Markdown <hr>s into ... |
app/javascript/flavours/glitch/features/report/thanks.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import Button from 'flavours/glitch/components/button';
import { connect } from 'react-redux';
import {
unfollowAccount,
muteAccount,
blockAccou... |
components/input.js | kalicki/WhatsAppLike | import React from 'react'
const Input = ({ placeholder, value, onChange, onSubmit, name, margin = 0, buttonSubmit }) =>
<form onSubmit={onSubmit}>
<input
type="text"
value={value}
placeholder={placeholder}
name={name}
onChange={onChange}
style={{ margin }}
/>
<input t... |
tasks/replace-own-deps.js | shrynx/react-super-scripts | #!/usr/bin/env node
/**
* 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 direct... |
app/javascript/mastodon/components/autosuggest_emoji.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
import { assetHost } from 'mastodon/utils/config';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequire... |
src/components/Banner/Banner.react.js | HackCWRU/HackCWRU-Website | import React from 'react';
import styles from 'components/Banner/Banner.scss';
export default class Banner extends React.Component {
render() {
return (
<div className={styles.banner}>
{this.props.children}
</div>
)
}
}
|
src/ButtonToolbar.js | IveWong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
front/src/components/TimePicker/ClockMinutes.spec.js | ethbets/ebets | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import {spy} from 'sinon';
import getMuiTheme from '../styles/getMuiTheme';
import ClockMinutes from './ClockMinutes';
describe('<ClockMinutes />', () => {
const muiTheme = getMuiTheme();
const shallowWit... |
src/parser/monk/brewmaster/modules/spells/azeritetraits/TrainingOfNiuzao.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatNumber, formatPercentage } from 'common/format';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
im... |
src/svg-icons/image/crop-landscape.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropLandscape = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCropLandscape = pure(ImageCro... |
pages/demos/paper.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/paper/paper.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
'pages... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | MastodonCloud/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
ajax/libs/vkui/4.25.0/cssm/components/UsersStack/UsersStack.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["photos","visibleCount","size","layout","children"];import{createScopedElement}from"../../lib/jsxRuntime";import*as React from"react";import{getClassName}from"../../he... |
Libraries/ReactNative/ReactNativeMount.js | 1988fei/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... |
client/components/register/index.js | kenware/more-recipes | import React, { Component } from 'react';
import './index.scss'
import { BrowserRouter, Route, Switch, Redirect, Link } from 'react-router-dom';
import Header from '../App/common/header';
import { PropTypes } from 'react';
import * as actions from '../../redux/Action/action.js';
import { connect } from 'react-redux';
... |
src/components/Map/index.js | IntellectionStudio/intellection.kz | /* @flow */
import React from 'react';
import cx from 'classnames';
import styles from './index.css';
const API_KEY = 'AIzaSyDHzwnCkK6DwTntBvi2avh6imL2Y5W_Ts0';
const googleMapURL = `https://www.google.com/maps/embed/v1/place?key=${API_KEY}&q=Intellection`;
const Map = ({className}) => (
<div
className={cx(st... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | chunwei/react-router | import React from 'react';
class Announcement extends React.Component {
render () {
var { courseId, announcementId } = this.props.params;
var { title, body } = COURSES[courseId].announcements[announcementId];
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
... |
blueocean-material-icons/src/js/components/svg-icons/content/content-cut.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentContentCut = (props) => (
<SvgIcon {...props}>
<path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c... |
node_modules/react-icons/io/android-arrow-dropright.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidArrowDropright = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m15 10l10 10-10 10v-20z"/></g>
</Icon>
)
export default IoAndroidArrowDropright
|
teletobit/src/components/Base/Header/UserMenu.js | edenpark/teletobit | import React from 'react';
import { Link } from 'react-router';
import { Icon } from 'semantic-ui-react';
import EyeCatchy from 'components/Common/EyeCatchy';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import Dimmer from 'components/Common/Dimmer';
const UserMenu = ({profile, visible, onH... |
app/components/App.react.js | cbrwizard/cbr-landing | import React from 'react';
import { RouteHandler } from 'react-router';
//import ReactIntl from 'react-intl';
//import reactMixin from 'react-mixin';
//const IntlMixin = ReactIntl.IntlMixin;
//const FormattedMessage = ReactIntl.FormattedMessage;
import 'scss/main';
//@reactMixin.decorate(IntlMixin)
class App extend... |
files/clappr/0.0.76/clappr.js | bdukes/jsdelivr | require=(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)... |
client/modules/users/components/.stories/feed.js | kaibagoh/PitchSpot | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import Feed from '../feed.jsx';
storiesOf('users.Feed', module)
.add('default view', () => {
return (
<Feed />
);
})
|
src/components/Header/Header.js | mimiflynn/react-starter-kit | /*! 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 '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
Libraries/vendor/react_contrib/StaticContainer/StaticContainer.js | huip/react-native | /**
* @generated SignedSource<<2a163cdb088fb963f941e627fd89ce11>>
*
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
* !! This file is a check-in of a static_upstream project! !!
* !! !!
* !! You should not modify this file directly... |
ajax/libs/yui/3.17.1/scrollview-base/scrollview-base-debug.js | bspaulding/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
*... |
__tests__/index.android.js | vietcode/Spoors | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/navigation/arrow-drop-down-circle.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDownCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/>
</SvgIcon>
);
NavigationArrowDropDownCircle =... |
Example/index.android.js | JedWatson/react-native-camera | import React from 'react';
import { AppRegistry } from 'react-native';
import Example from './Example';
AppRegistry.registerComponent('Example', () => Example);
|
clients/packages/admin-client/src/components/navigation/browsable-list/browsable-list-item.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
import { Link } from 'react-router-dom'
import classnames from 'classnames'
if (require('exenv').canUseDOM) {
require('./browsable-list-item.scss')
}
const BrowsableListItem = ({ className, style, leftIcon, title, subtitle, rightIcon, path, onClick }) => ... |
ajax/libs/rxjs/2.2.27/rx.compat.js | ComputerWolf/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
imports/ui/pages/Miscellaneous/Index/Index.js | haraneesh/mydev | import React from 'react';
import { Button } from 'react-bootstrap';
import './Index.scss';
const Index = () => (
<div className="Index">
<img
src="https://s3-us-west-2.amazonaws.com/cleverbeagle-assets/graphics/email-icon.png"
alt="Suvai Organic"
/>
<h1>Pup</h1>
<p>A boilerplate for pro... |
src/components/Twitter/TwitterLoader.js | Rico75/ricardoswebconsulting-react-php | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Twitter.scss';
//console.log('TwitterLoader s: ', s);
class TwitterLoader extends Component {
render() {
return (
<div className={s.root}>
<div className={"loader " + (this.p... |
admin/assets/plugins/highcharts/jquery.js | abdiansyah/olaps | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/js/components/main.js | limardo/Console | import React from 'react';
import Rows from './rows';
class Main extends React.Component {
constructor(props) {
super(props);
this.state = {};
this._onFocus = this._onFocus.bind(this);
}
componentDidMount() {
document.addEventListener('focus', this._onFocus);
}
co... |
src/docs/components/ToastDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Toast from 'grommet/components/Toast';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import DocsArticle from '../../components/DocsArticle';
import Code from... |
src/svg-icons/navigation/chevron-left.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationChevronLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
NavigationChevronLeft = pure(NavigationChevronLeft);
NavigationChevronLeft.dis... |
src/client/components/loader/index.js | adamgruber/mochawesome-report-generator | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { observer, inject } from 'mobx-react';
import classNames from 'classnames/bind';
import styles from './loader.css';
const cx = classNames.bind(styles);
@inject('reportStore')
@observer
class Loader extends Component {
static propT... |
src/js/pages/DrawerUndockedExample2.js | MichaelFKogan/project3 | import React from 'react';
import RegisterPage from './RegisterPage';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import RaisedButton from 'material-ui/RaisedButton';
export default class DrawerUndockedExample2 extends React.Component {
constructor(props) {
super(props)... |
ajax/libs/forerunnerdb/1.3.660/fdb-all.js | cdnjs/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... |
frontend/src/app/containers/HomePageWithAddon.js | dannycoates/testpilot | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
import Banner from '../components/Banner';
import Copter from '../components/Copter';
import EmailDialog from '../components/EmailDialog';
import ExperimentCardList from '../components/ExperimentCardList';
import LayoutWrapper from '.... |
app/javascript/mastodon/components/__tests__/autosuggest_emoji-test.js | glitch-soc/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import AutosuggestEmoji from '../autosuggest_emoji';
describe('<AutosuggestEmoji />', () => {
it('renders native emoji', () => {
const emoji = {
native: '💙',
colons: ':foobar:',
};
const component = renderer.create(<Autos... |
src/components/recent-repos/Repo.js | thibmaek/thibmaek.github.io | import React from 'react';
import { string, object } from 'prop-types';
import './index.css';
const getRepoLangMod = lang => lang ? `is-${lang.name.toLowerCase()}` : ``;
const Repo = ({ name, description, url, primaryLanguage }) => (
<a href={url} rel='noopener noreferrer nofollow' target='_blank'>
<div classN... |
src/index.js | LeBenLeBen/quotes | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './styles/index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
packages/site/templates/content/ContentCTA/index.js | InventingWithMonster/popmotion | import React from 'react';
import { Container, Content, P, Support } from './styled';
import Link from 'next/link';
export default ({ children }) => (
<Container>
<Content>
<P>
Hey! Did you find this article useful? Popmotion relies on contributions
from the community to operate.
</P>... |
jssource/src_files/include/javascript/yui3/build/event/event.js | codesquad36/dc_guidoCRM | /*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 3.3.0
build: 3167
*/
var GLOBAL_ENV = YUI.Env;
if (!GLOBAL_ENV._ready) {
GLOBAL_ENV._ready = function() {
GLOBAL_ENV.DOMReady = true;
GLOBAL_ENV.remove(Y... |
ajax/libs/rxjs/2.3.7/rx.all.compat.js | fk/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
js/containers/home.js | beinan/react_native_starter | import React, { Component } from 'react';
import { Container, Header, Title, Content, Footer, FooterTab, Button, Left, Right, Body, Icon, Text, Thumbnail, Card, CardItem } from 'native-base';
import {Image} from 'react-native'
import {Actions} from 'react-native-router-flux'
export default class Main extends Compo... |
ajax/libs/ember-data.js/1.0.0-beta.1/ember-data.js | Dervisevic/cdnjs | // Version: v1.0.0-beta.1
// Last commit: cafab9d (2013-09-01 00:42:39 -0700)
(function() {
var define, requireModule;
(function() {
var registry = {}, seen = {};
define = function(name, deps, callback) {
registry[name] = { deps: deps, callback: callback };
};
requireModule = function(name) {
if (s... |
node_modules/react-bootstrap/es/SafeAnchor.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
examples/with-goober/pages/_app.js | azukaru/next.js | import React from 'react'
import { prefix } from 'goober-autoprefixer'
import { setup } from 'goober'
// goober's needs to know how to render the `styled` nodes.
// So to let it know, we run the `setup` function with the
// `createElement` function and prefixer function.
setup(React.createElement, prefix)
export defa... |
src/view/components/filter-component.js | ldkrsi/TaiwanDH-React | import React from 'react';
import RemoveComponent from './remove-component';
function FilterComponent(props){
const filters = props.filters;
const applyBtn = <button onClick={props.actions.FiltersApply}>Apply</button>;
return(<div className="filter-component">
<h3>篩選器</h3>
{filters.map((item, i) => {
return(... |
views/Service/nwdHttpClient.js | leechuanjun/TLRNProjectTemplate | 'use strict';
import React, { Component } from 'react';
import {
View,
AlertIOS,
} from 'react-native';
import NWDBaseHttp from './nwdBaseHttp';
import NWDService from './nwdService';
import NWDMacroDefine from '../Common/nwdMacroDefine';
var NWDHttpClient = {
nwdLogin: function(telephone, password, resultCal... |
ajax/libs/material-ui/4.11.1/GridList/GridList.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab... |
ajax/libs/jquery/1.7.2/jquery.min.js | abbychau/cdnjs | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
ajax/libs/oojs-ui/0.17.4/oojs-ui.js | maruilian11/cdnjs | /*!
* OOjs UI v0.17.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2016-05-31T21:50:52Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and s... |
components/org.wso2.carbon.business.rules.templates.editor.core/src/main/react/index.js | erangatl/carbon-analytics | /*
* Copyright (c) 2018, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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.... |
lib/algolia-instant-search/instantsearch.min.js | JustGoForIt/JustGoForIt.gitHub.io | /*! instantsearch.js 1.5.0 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsea... |
ajax/libs/styled-components/5.0.0-beta.6-ej3/styled-components.esm.min.js | sufuf3/cdnjs | import{isElement,isValidElementType,ForwardRef}from"react-is";import Stylis from"@emotion/stylis";import _insertRulePlugin from"stylis-rule-sheet";import unitless from"@emotion/unitless";import validAttr from"@emotion/is-prop-valid";import merge from"merge-anything";import React,{useContext,useState,useMemo,createEleme... |
react_ui/components/SubjectView/SubjFamPanel/index.js | chop-dbhi/biorepo-portal | import React from 'react';
import PropTypes from 'prop-types';
import * as SubjFamActions from '../../../actions/subjFam';
import * as SubjectActions from '../../../actions/subject';
import SubjFamCardView from './SubjFamCardView';
import { connect } from 'react-redux';
class SubjFamPanel extends React.Component {
c... |
ajax/libs/rxjs/2.4.5/rx.lite.extras.js | tresni/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/client/components/Story/StoryPreview.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import embedjs from 'embedjs';
import _ from 'lodash';
import PostFeedEmbed from './PostFeedEmbed';
import BodyShort from './BodyShort';
import { jsonParse } from '../../helpers/formatter';
import { getContentImages } from '../../helpers/postHelpers';
impor... |
src/containers/IndustryPage/IndustryPage.js | VumeroInstitute/Vumero-Talent-Matrix | /**
* Created by wangdi on 4/10/17.
*/
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import Tag from '../../components/Tag/Tag';
import '../SkillPage/skill.css';
import RaisedButton from 'material-ui/RaisedButton';
export default class IndustryPage extends React.Com... |
frontend/modules/recipe/components/IngredientGroups.js | rustymyers/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import Ingredients from './Ingredients'
const IngredientGroups = ({ data, check }) => {
let ingredientGroups = data.map((group, i) => (
<div className="ingredient-group" key={ i }>
{ (group.title) ? <b>{ group.title }</b> : null }
<Ingredi... |
ajax/libs/rxjs/4.0.1/rx.lite.extras.compat.js | humbletim/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExports ... |
src/common/Icons.js | Sam1301/zulip-mobile | /* @flow */
import React from 'react';
import IoniconsIcon from 'react-native-vector-icons/Ionicons';
import MaterialIcon from 'react-native-vector-icons/MaterialIcons';
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
import EntypoIcon from 'react-native-vector-icons/Entypo';
export const IconHome... |
ajax/libs/analytics.js/1.5.1/analytics.js | mfinelli/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
frontend/src/admin/common/__tests__/RestrictedTo-test.js | rabblerouser/core | import React from 'react';
import { shallow } from 'enzyme';
import { RestrictedTo } from '../RestrictedTo';
describe('RestrictedTo', () => {
it('renders the child when the userType is the type', () => {
const rendered = shallow(
<RestrictedTo type="SUPER" userType="SUPER">
<section />
</Rest... |
src/templates/page-template.js | saegeullee/saegeullee.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Page from '../components/Page';
import { useSiteMetadata } from '../hooks';
import type { MarkdownRemark } from '../types';
type Props = {
data: ... |
app/components/Comments.js | licaon/progressive_app | import React from 'react';
const Comments = () => (
<div>Comments page</div>
);
export default Comments;
|
test/rehearseTemplate-test.js | cashsun/rehearse | import React from 'react';
import _ from 'lodash';
import 'react-addons-test-utils';
import { shallow, mount } from 'enzyme';
import { expect } from 'chai';
import path from 'path';
import fs from 'fs';
const rehearseTemplate = require('../rehearseTemplates');
const componentFinder = require('../componentsFinder');
con... |
ajax/libs/react-ace/2.7.0/react-ace.min.js | him2him2/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactAce=t():e.ReactAce=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return ... |
src/svg-icons/editor/format-italic.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
src/stats/view/TestResultsComponent.js | sozemego/StatHelper | import React from 'react';
import SelectableElementCollectionComponent from '../../common/component/SelectableElementCollectionComponent';
import {Paper} from 'material-ui';
import {CORRELATION} from '../../experimental-design/model/test-constants';
import {CorrelationTestResultComponent} from './CorrelationTestResultC... |
ajax/libs/mediaelement/2.9.5/jquery.js | andersem/cdnjs | /*!
* jQuery JavaScript Library v1.7
* 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/svg-icons/image/add-to-photos.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAddToPhotos = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
... |
blueprints/layout/files/__test__/layouts/__name__Layout.spec.js | jenyckee/midi-redux | import React from 'react'
describe('(Layout) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
ajax/libs/react-slick/0.3.7/react-slick.min.js | tresni/cdnjs | !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Slider=n(require("react")):t.Slider=n(t.React)}(this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var... |
flow-typed/npm/react-addons-test-utils_v15.x.x.js | xiankai/triple-triad-solver | // flow-typed signature: 323fcc1a3353d5f7a36c5f1edcd963ef
// flow-typed version: 41f45a7d8c/react-addons-test-utils_v15.x.x/flow_>=v0.23.x
declare type ReactAddonTest$FunctionOrComponentClass = React$Component<any, any, any> | Function;
declare module 'react-addons-test-utils' {
declare var Simulate: {
[eventNam... |
src/js/components/CommentForm.js | SergeyFrancev/react-comment | /**
* Created by hector on 12.11.15.
*/
'use strict';
import React from 'react';
const maxLengthMessage = 150;
class CommentForm extends React.Component {
constructor(props){
super();
this.state = {
isFocus: props.isFocus,
isLoading: false,
comment: props.comment
};
}
handlerChange(e){
if(!thi... |
src/client/components/todos/todolist.js | vacuumlabs/todolist | import PureComponent from '../../../lib/purecomponent';
import React from 'react';
import TodoItem from './todoitem';
import immutable from 'immutable';
export default class TodoList extends PureComponent {
render() {
return (
<ol>
{this.props.todos.map((todo, i) => {
return <TodoItem to... |
html/dev/lib/showAll.js | scott-fleischman/greek-grammar | import React from 'react';
import R from 'ramda';
import { Button } from 'react-bootstrap';
const ShowAllButton = ({showAllLoading, handleShowAll}) => {
const text = showAllLoading ? 'Loading…' : 'Show all (may take a while)';
return (
<div className="showAllButton">
<Button onClick={() => handleShowAll(... |
src/components/DictList/Props.js | GuramDuka/reorders | //------------------------------------------------------------------------------
import React, { Component } from 'react';
import connect from 'react-redux-connect';
import * as Sui from 'semantic-ui-react';
import disp, { sscat } from '../../store';
import BACKEND_URL, { transform, serializeURIParams } from '../../bac... |
src/routes/login/Login.js | murthymuddu/murthy-umg | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
example/src/widgets/GridWrapper.js | rsamec/react-designer-core | import React from 'react';
import _ from 'lodash';
import Grid from './GridContainer';
import backgroundStyle from './utils/backgroundStyle';
import styleBorder from'./utils/border'
let GridWrapper = (props) => {
var styles = {};
//styles.width = "100%";
var selfProps = props;
//apply custom background
... |
ajax/libs/react-native-web/0.0.0-bd62af4f4/modules/UnimplementedView/index.js | cdnjs/cdnjs | function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENS... |
webpack/scenes/SmartProxy/Content.js | Katello/katello | import React from 'react';
import PropTypes from 'prop-types';
import SmartProxyContentTable from './SmartProxyContentTable';
const Content = ({ smartProxyId }) => (
<SmartProxyContentTable smartProxyId={smartProxyId} />
);
Content.propTypes = {
smartProxyId: PropTypes.number,
};
Content.defaultProps = {
smart... |
ajax/libs/thorax/2.0.0rc1/thorax.js | leecrossley/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* 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-1-14
*/
(function( window, undefined ) {
"use strict";... |
docs/app/Examples/collections/Table/Variations/TableExampleTextAlign.js | shengnian/shengnian-ui-react | import React from 'react'
import { Table } from 'shengnian-ui-react'
const TableExampleTextAlign = () => (
<Table striped>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell textAlign='right'>Notes</Tabl... |
test/ButtonToolbarSpec.js | mxc/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonToolbar from '../src/ButtonToolbar';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
describe('ButtonToolbar', () => {
it('Should output a button toolbar', () => {
let instance = React... |
src/helpers/__tests__/makeRouteHooksSafe-test.js | mull/require_hacker_error_reproduction | import { expect } from 'chai';
import React from 'react';
import { IndexRoute, Route } from 'react-router';
import makeRouteHooksSafe from '../makeRouteHooksSafe';
describe('makeRouteHooksSafe', () => {
it('should work with JSX routes', () => {
const onEnter = () => {
throw new Error('Shouldn\'t call onEn... |
src/app/components/team/TeamReport/index.js | meedan/check-web | import React from 'react';
import { QueryRenderer, graphql } from 'react-relay/compat';
import Relay from 'react-relay/classic';
import TeamReportComponent from './TeamReportComponent';
const TeamReport = () => {
const teamSlug = window.location.pathname.match(/^\/([^/]+)/)[1];
return (
<QueryRenderer
e... |
src/views/components/notification/notification.spec.js | connorbanderson/CoinREXX | import React from 'react';
import { render, shallow } from 'enzyme';
import sinon from 'sinon';
import { createTestComponent } from 'src/utils/create-test-component';
import Notification from './notification';
describe('Notification', () => {
let props;
beforeEach(() => {
props = {
action: sinon.spy(),... |
src/components/common/editor/LaTex.js | Gisto/Gisto | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import katex from 'katex';
import 'katex/dist/katex.css';
const Katex = ({ text, className }) => {
const html = katex.renderToString(text.toString(), {
throwOnError: false
});
return <TeX className={ `lat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.