path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
fields/types/cloudinaryimage/CloudinaryImageFilter.js | ONode/keystone | import React from 'react';
import { SegmentedControl } from '../../../admin/client/App/elemental';
const OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var CloudinaryImageFilter = React.createClass({
propTypes:... |
client/src/javascript/components/icons/FolderClosedSolid.js | stephdewit/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class FolderClosedOutline extends BaseIcon {
render() {
return (
<svg className={`icon icon--folder ${this.props.className}`} viewBox={this.getViewBox()}>
<path d="M48.71,23.45a6.49,6.49,0,0,0-6.37-6.55H23.23V16a6.49,6.49... |
ajax/libs/jquery/1.4.1/jquery.js | gereon/cdnjs | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
lib/gollum/frontend/public/javascript/jquery.js | happypeter/gollum | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/components/Root.js | tatsuhino/electron-react-redux-boilerplate | import React from 'react'
import { connect, createStore } from 'react-redux'
import net from 'net'
import { increment, decrement, async_increment } from '../actions/counter'
export default class Root extends React.Component {
render() {
return (
<div>
<h1>Counter</h1>
... |
ajax/libs/vega/3.0.5/vega.js | jdh8/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.vega = global.vega || {})));
}(this, (function (exports) { 'use strict';
var accessor = function(fn, fields, na... |
ajax/libs/react-datepicker/0.14.0/react-datepicker.min.js | rlugojr/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("tether"),require("moment"),require("react-onclickoutside")):"function"==typeof define&&define.amd?define(["react","tether","moment","react-onclickoutside"],t):"object"==typeof exports?exports.DatePicker=t(require... |
ajax/libs/forerunnerdb/1.3.855/fdb-core+persist.min.js | sajochiu/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... |
node_modules/material-ui/svg-icons/action/alarm-on.js | Rabbit884/reactapp | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
Example/components/Login3.js | Swordsman-Inaction/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgr... |
tests/js/spec/views/settings/projectAlerts/onboardingHovercard.spec.js | beeftornado/sentry | import React from 'react';
import {mountWithTheme} from 'sentry-test/enzyme';
import {initializeOrg} from 'sentry-test/initializeOrg';
import {updateOnboardingTask} from 'app/actionCreators/onboardingTasks';
import OnboardingHovercard from 'app/views/settings/projectAlerts/onboardingHovercard';
jest.mock('app/action... |
v0.3/src/App.js | sakulstra/firebase-web-todo | import React from 'react';
import { BrowserRouter, Match, Miss } from 'react-router';
import { Error404, Home, Todo } from './ui/pages';
import DevTools from 'mobx-react-devtools';
import './api/firebase';
const App = () => (
<BrowserRouter>
<div>
<DevTools />
<Match exactly pattern... |
src/parser/deathknight/blood/modules/talents/Tombstone.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import DamageTracker from 'parser/shared/modules/AbilityTracker';
import TalentStatisticBox from 'in... |
app/javascript/mastodon/components/column.js | abcang/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { supportsPassiveEvents } from 'detect-passive-events';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
label: PropTypes.string,
bindToDoc... |
src/components/Header/Header.js | jimmykobe1171/chatbotta | /**
* 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 withStyles from 'isom... |
.storybook/times.js | qingweibinary/binary-charts | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import BinaryChart from '../src/BinaryChart';
import ticks from './ticks';
storiesOf('Times', module)
.add('Standard', () =>
<BinaryChart
ticks={ticks}
contract={{
date_start: 1,
... |
tests/layouts/CoreLayout.spec.js | anitu/NextFlick | 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/material-ui-icons/src/PanoramaFishEyeOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /></g></React.F... |
example/examples/DraggableMarkers.js | j0ergo/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4... |
flinhong/public/flinhong/public/flinhong/public/flinhong/public/flinhong/public/flinhong/jscript/jquery-1.11.2.min.js | Justmylife/project | /*! jQuery v1.11.2 | (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... |
ajax/libs/js-data/1.6.0/js-data-debug.js | iros/cdnjs | /*!
* js-data
* @version 1.6.0 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
example/App.js | unclecheese/react-selectable | import React from 'react';
import { SelectableGroup, createSelectable } from 'react-selectable';
import Album from './Album';
const isNodeInRoot = (node, root) => {
while (node) {
if (node === root) {
return true;
}
node = node.parentNode;
}
return false;
};
const SelectableAlbum = createSele... |
src/js/containers/App.js | rmhowe/search-ui | import React from 'react';
import { connect } from 'react-redux';
import Immutable from 'immutable';
import throttle from 'lodash/throttle';
import NavBar from '../components/NavBar';
import Artists from '../components/Artists';
import ReactSlider from 'react-slider';
import {
fetchData,
setSmallBrowserMode,
setF... |
ajax/libs/webshim/1.14.0/dev/shims/moxie/js/moxie.js | chrillep/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 ... |
src/index.js | david-mart/react-boilerplate-edited | import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './components/root';
import configureStore from './store/configure-store';
// import './styles/styles.scss';
import { syncHistoryWithStore } f... |
public/components/analysis/plugins/document/PDFiDHeuristics.js | maliceio/malice-kibana-plugin | import React, { Fragment } from "react";
import { EuiIcon, EuiText, EuiSpacer } from "@elastic/eui";
export const PDFiDHeuristics = ({ heuristics }) => {
if (!heuristics) {
return <Fragment />;
}
const getIcon = score => {
if (score > 50) {
return <EuiIcon type="alert" color="danger" />;
}
... |
src/svg-icons/communication/phone.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61... |
src/components/todo/screens/TodoAdd/TodoAddScreen.js | yasavbrain/yasav | import React from 'react';
import I18n from 'yasav/locales/i18n';
import TodoAddContainer from './containers/TodoAddContainer';
export default class TodoAddScreen extends React.Component {
// FIXME : Here the parameters from the navigation are called navParams
// but in ActivityDisplayScreen this is called stateP... |
app/react-icons/fa/optin-monster.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaOptinMonster extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m8.4 33.6q-0.2 0.3-0.5 0.6t-0.7 0.5q-0.4 0.1-0.9-0.1t-0.5-0.5q0-0.4 0.7... |
src/utils/stylePropable.js | rscnt/material-ui | import React from 'react';
import warning from 'warning';
let hasWarned;
const warn = () => {
warning(hasWarned, 'The \'material-ui/lib/mixins/style-propable.js\' mixin has been deprecated.' +
' Please do not use this mixin as it will be removed in an upcoming release.');
hasWarned = true;
};
export const mer... |
tests/layouts/CoreLayout.spec.js | janceChun/redux-docker-swarm | 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... |
app/containers/movements/index.js | kimurakenshi/caravanas | import React from 'react';
import styles from './style/movements.scss';
import PageTitle from '../../components/page-title';
import { MovementList } from './components';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import FlatButton from 'material-ui/FlatButton';
function Movement... |
client/views/omnichannel/components/Label.js | VoiSmart/Rocket.Chat | import { Box } from '@rocket.chat/fuselage';
import React from 'react';
const Label = (props) => <Box mbe='x8' fontScale='p2' color='default' {...props} />;
export default Label;
|
frontend/app.js | apostolidhs/wiregoose | import * as OfflinePluginRuntime from 'offline-plugin/runtime';
import {IS_DEV} from '../config-public.js';
if (!IS_DEV) {
OfflinePluginRuntime.install({
onUpdateReady: () => OfflinePluginRuntime.applyUpdate(),
onUpdated: () => window.location.reload()
});
}
import React from 'react';
import ReactDOM from... |
src/Parser/Paladin/Retribution/Modules/Items/Tier20_2set.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import... |
client.js | restful-open-annotation/ACID-RESTful-OA | "use strict";
var $ = require('jquery');
window.$ = window.jQuery = $;
//var bootstrap =
require('bootstrap');
//var assert = require('assert');
//var _ = require("lodash");
var React = require("react");
var Main = require("./views/Main.jsx");
React.render(
React.createElement(Main, {
}),
document.getElementB... |
ajax/libs/rxjs/2.3.22/rx.lite.compat.js | nolsherry/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
};
... |
ajax/libs/yasr/2.4.15/yasr.bundled.min.js | yinghunglai/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
js/App.js | enrique7mc/vidflix | import React from 'react'
import { Match } from 'react-router'
import { Provider } from 'react-redux'
import store from './store'
import AsyncRoute from './AsyncRoute'
import preload from '../public/data.json'
if (global) {
global.System = { import () {} }
}
const App = () => {
return (
<Provider store={store... |
test/components/ArtistImage.spec.js | datyayu/raji-react | /* eslint no-param-reassign: 0 */
import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import ArtistImage from '../../client/components/ArtistImage';
test('ArtistImage should use the ArtistImage class', t => {
const component = shallow(<ArtistImage id={1} name="raji" />);
const im... |
examples/src/components/CustomSingleValue.js | bcardi/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var SingleValue = React.createClass({
propTypes: {
placeholder: React.PropTypes.string,
value: React.PropTypes.object
},
render () {
var obj = this.props.value;
var size = 15;
var gravatarStyle = {
borderRadius: 3,
display: 'inline-bl... |
ajax/libs/react-cookie/0.1.2/react-cookie.js | Timbioz/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/svg-icons/content/delete-sweep.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDeleteSweep = (props) => (
<SvgIcon {...props}>
<path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/>
</SvgIcon>
);
ContentDeleteSwee... |
src/views/dictionary/verbd/VerbdRow.js | bostontrader/senmaker | // @flow
import React from 'react'
import Verbd from '../../../data/dictionary/verbd/Verbd'
import VerbdActions from '../../../data/dictionary/verbd/VerbdActions'
import {VerbdPanelLevel} from '../../../data/dictionary/verbd/VerbdConstants'
function VerbdRow(props:Object):Object {
let {verbd}:Ob... |
app/src/routes/dashboard/components/poll-table/poll-table.spec.js | sproogen/itsgoingto.be | import React from 'react'
import {
render, fireEvent, screen, waitForElementToBeRemoved, act
} from '@testing-library/react'
import { map } from 'ramda'
import PollTable from './poll-table'
jest.mock('./poll-table-row', () => () => <tr><td>Mocked PollTableRow</td></tr>)
jest.mock('components/paginator', () => () => ... |
ajax/libs/jquery/1.4.3/jquery.min.js | webdev1001/cdnjs | /*!
* jQuery JavaScript Library v1.4.3
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/svg-icons/action/label-outline.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabelOutline = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l... |
src/components/header.js | paulckennedy/KennedyChemistryRocks | import React from 'react';
export default (props) => {
return (
<div>
<header className="hg_header">
<img src = {require('../img/1_Primary_logo_on_transparent_422x59.png')} />
</header>
</div>
);
} |
src/layouts/Post/index.js | codepreneur/site | import React, { PropTypes } from "react"
import LatestPosts from "../../components/LatestPosts"
import Page from "../Page"
// import styles from "./index.css"
const Post = (props) => {
// it's up to you to choose what to do with this layout ;)
const pageDate = props.head.date ? new Date(props.head.date) : null
... |
test/specs/modules/Dimmer/DimmerInner-test.js | Semantic-Org/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import DimmerInner from 'src/modules/Dimmer/DimmerInner'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
describe('DimmerInner', () => {
common.isConformant(DimmerInner)
common.hasUIClassName(DimmerInner)
common.rendersChi... |
src/svg-icons/editor/bubble-chart.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBubbleChart = (props) => (
<SvgIcon {...props}>
<circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/>
</SvgIcon>
);
EditorBubbleChart = pure(EditorBub... |
packages/material-ui-icons/src/Flight.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M10.18 9" /><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" /></g>
, 'Flight');
|
Libraries/Components/TabBarIOS/TabBarItemIOS.ios.js | gegaosong/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... |
spec/javascripts/components/story/expanded_story/expanded_story_history_location_spec.js | Codeminer42/cm42-central | import React from 'react';
import { shallow } from 'enzyme';
import ExpandedStoryHistoryLocation from 'components/story/ExpandedStory/ExpandedStoryHistoryLocation';
import storyFactory from '../../../support/factories/storyFactory';
import { storyTypes } from 'libs/beta/constants';
describe('<ExpandedStoryHistoryLocat... |
app/javascript/mastodon/features/notifications/components/filter_bar.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
const tooltips = defineMessages({
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
favourites: { id: '... |
ajax/libs/rxjs/2.4.10/rx.compat.js | bootcdn/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
};
... |
src/components/navigation/index.js | stevegood/stringer | import React from 'react'
import { Divider, Drawer, MenuItem, Subheader } from 'material-ui'
import Add from 'material-ui/svg-icons/content/add'
import Build from 'material-ui/svg-icons/action/build'
import FolderOpen from 'material-ui/svg-icons/file/folder-open'
import Refresh from 'material-ui/svg-icons/navigation/re... |
team-app/src/index.js | pelovett/CrestedDuckTeamMatcher | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
public/frameworks/jquery/1.5.2/jquery.js | chielkunkels/tinker | /*!
* jQuery JavaScript Library v1.5.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/Creatable.js | mobile5dev/react-select | import React from 'react';
import PropTypes from 'prop-types';
import Select from './Select';
import defaultFilterOptions from './utils/defaultFilterOptions';
import defaultMenuRenderer from './utils/defaultMenuRenderer';
class CreatableSelect extends React.Component {
constructor (props, context) {
super(props, co... |
source/patterns/01-molecules/popover/docs/popover.example.js | apparena/patterns | import React from 'react';
import {Button, Popover} from 'apparena-patterns-react';
export default function PopoverExample() {
return (
<Popover
title="OverPop"
content={<p>Suprise, you opened the Popover, to close it just press the button again</p>}
positioning="top"
... |
ajax/libs/yasgui/1.0.7/yasgui.min.js | tresni/cdnjs | !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... |
src/components/ChatApp/Settings/ThemeChanger.js | RMCoder198/chat.susi.ai | import React, { Component } from 'react';
import Dialog from 'material-ui/Dialog';
import Close from 'material-ui/svg-icons/navigation/close';
import RaisedButton from 'material-ui/RaisedButton';
import Translate from '../../Translate/Translate.react';
import UserPreferencesStore from '../../../stores/UserPreferencesSt... |
ajax/libs/react-router/0.6.1/react-router.js | athanclark/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.ReactRouter=e()}}(function(){var define,module,export... |
react-flux-mui/js/material-ui/src/svg-icons/maps/restaurant-menu.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2... |
node_modules/babel-runtime/node_modules/core-js/modules/es6.promise.js | TripleDip/draft-js | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, aFunction = req... |
src/components/Audioplayer/Track/spec.js | quran/quran.com-frontend | import React from 'react';
import { mount } from 'enzyme';
import Track from './index';
let component;
let onTrackChange;
describe('<Track />', () => {
beforeEach(() => {
onTrackChange = sinon.stub();
component = mount(
<Track progress={50} onTrackChange={onTrackChange} />
);
});
it('should ... |
node_modules/react-icons/fa/pause.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaPause = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m37.3 4.3v31.4q0 0.6-0.4 1t-1 0.4h-11.5q-0.6 0-1-0.4t-0.4-1v-31.4q0-0.6 0.4-1t1-0.4h11.5q0.5 0 1 0.4t0.4 1z m-20 0v31.4q0 0.6-0.4 1t-1 0.4h-11.5q-0.6 0-1-0.4t-0.4-1v-31... |
internals/templates/app.js | dbrelovsky/react-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill'
// TODO constrain eslint import/no-unresolved rule to this block
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json' // eslint-disable-line... |
client/index.js | Jacob-Manuel/swe4103-group1 | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './components/App';
import { configureStore } from './store/store';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
... |
blueprints/view/files/__test__/views/__name__View.spec.js | davecarlson/reacty | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
examples/huge-apps/routes/Profile/components/Profile.js | rkaneriya/react-router | import React from 'react'
class Profile extends React.Component {
render() {
return (
<div>
<h2>Profile</h2>
</div>
)
}
}
export default Profile
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | picter/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id, ...rest } = { id: 0, user: { id: 42, ... |
ajax/libs/rxjs/2.2.27/rx.all.js | gasolin/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... |
src/components/Notifications.js | openbasement/openbasement | import { connect } from 'react-redux';
import React from 'react';
import { I18n } from 'react-redux-i18n';
import mapDispatchToProps from '../actions';
import { mapStateToProps } from '../model/state';
@connect(mapStateToProps, mapDispatchToProps)
export default class NotificationsComponent extends React.Component {
... |
lib/Components/Welcome.js | Kalikoze/weatherly | import React from 'react';
import Search from './Search';
export const Welcome = props => {
return (
<div className={props.div}>
<h1>
{props.header}
</h1>
<p className="message">
{props.message}
</p>
<Search
class={props.class}
cities={props.places}
... |
packages/material-ui-icons/src/TabletMacRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><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.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5... |
app/components/App.js | mohamekasem/reactstart | import React from 'react';
// import ReactRouter from 'react-router-dom';
// Route Dependencies
import { BrowserRouter as Router, Route } from 'react-router-dom';
import {Switch} from 'react-router-dom';
//components rendering
import Nav from './Nav';
import Home from './Home';
import Popular from './Popular';
import B... |
examples/NestedViews/index.ios.js | jaysoo/react-native-parallax-scroll-view | import React, { AppRegistry } from 'react-native';
import Nested from './Nested';
AppRegistry.registerComponent('NestedViews', () => Nested);
|
ajax/libs/react/0.12.0/react-with-addons.js | svenanders/cdnjs | /**
* React (with addons) v0.12.0
*/
!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.React=e()}}(fu... |
modules/RouteUtils.js | davertron/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
browser.js | llaine/react-isomorphic | import React from 'react';
import { render } from 'react-dom';
import ContactsApp from './app/component/contact-app.jsx';
let initialData = document.getElementById('initial-data').textContent;
if(initialData.length > 0) {
initialData = JSON.parse(initialData);
}
render(<ContactsApp initialData={initialData} />, do... |
ajax/libs/rxjs/2.3.6/rx.js | shallaa/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... |
nx-assets/nx-admin/lib/parsley/parsley.js | nexzurt/nexzurt | /*!
* Parsley.js
* Version 2.4.4 - built Thu, Aug 4th 2016, 9:54 pm
* http://parsleyjs.org
* Guillaume Potier - <guillaume@wisembly.com>
* Marc-Andre Lafortune - <petroselinum@marc-andre.ca>
* MIT Licensed
*/
// The source code below is generated by babel as
// Parsley is written in ECMAScript 6
//
var _slice = Array.... |
src/dynamic-ui/__tests__/notifier.spec.js | instructure/canvas-planner | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
app/components/NewProject.js | GongDexing/work-board | /*jshint esversion:6*/
import '../less/NewProject.less';
import React, { Component } from 'react';
import { Modal, Button, Form, Input, DatePicker, Col, Transfer } from 'antd';
import AlertMsg from './AlertMsg';
import { ProjectNameRule, DateRule, TextareaRule } from '../validate/rules';
import { addProject } from '../... |
src/docs/components/video/VideoExamplesDoc.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Video from 'grommet/components/Video';
import InteractiveExample from '../../../components/InteractiveExample';
Video.displayName = 'Video';
const PROPS_SCHEMA = {
allowFullScreen: { value: true },... |
fields/types/color/ColorColumn.js | stosorio/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var ColorColumn = React.createClass({
displayName: 'ColorColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
src/components/common/IconHeadingBlock/index.js | WendellLiu/GoodJobShare | import React, { PropTypes } from 'react';
import cn from 'classnames';
import { P } from 'common/base';
import styles from './IconHeadingBlock.module.css';
const IconHeadingBlock = ({ heading, Icon, marginTop, noPadding, requiredText, children }) => (
<section
className={cn({
[styles.marginTop]: marginTop,... |
ChannelListings/Content/Scripts/jquery-1.9.1.min.js | ericrrichards/tvlistings | /*! 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){retur... |
spec/javascripts/components/story/expanded_story/attachment/attachment_spec.js | Codeminer42/cm42-central | import React from 'react';
import { mount } from 'enzyme';
import Attachment from 'components/story/attachment/Attachment';
describe('<Attachment/>', () => {
describe('when the attachment is a image', () => {
let attachment;
beforeEach(() => {
attachment = {
id: 42,
type: 'image',
... |
js/src/views/Status/components/EditableValue/EditableValue.js | kushti/mpt | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity 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 version.... |
src/components/video/Video.js | beccahbartlett/madapt-frontend | import React from 'react';
import Iframe from 'react-iframe'
import './Video.css';
const Video = props => {
return (
<div className='intrinsic-container'>
<Iframe
url={props.url}
allowFullScreen />
</div>
)
}
export default Video |
examples/inabox-gpt-pubads-impl.js | tdrl/amphtml | (function(){var window=this,document=this.document;var h,p=this,r=function(a){return void 0!==a},aa=function(){},ba=function(){throw Error("unimplemented abstract method");},ca=function(a){a.getInstance=function(){return a.ma?a.ma:a.ma=new a}},da=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)ret... |
packages/ndla-icons/src/editor/AlignCenter.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const AlignCenter = props => (
<Icon
v... |
site/components/PageBody.js | wagonhq/react-dnd | import React from 'react';
import './PageBody.less';
export default class PageBody {
static propTypes = {
hasSidebar: React.PropTypes.bool
};
render() {
var {hasSidebar, html, ...props} = this.props;
return (
<div className={`PageBody ${hasSidebar ? 'PageBody--hasSidebar' : ''}`}>
<div... |
app/app.js | jaadam/golfer-web | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import 'static/styles/bundle.css';
import App from 'containers/App';
import Dashboard from 'containers/Dashboard';
import Tournament from 'containers/Tourna... |
docs/src/pages/demos/tabs/ScrollableTabsButtonPrevent.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Tabs from '@material-ui/core/Tabs';
import Tab from '@material-ui/core/Tab';
import PhoneIcon from '@material-ui/icons/Phone';
import FavoriteIcon f... |
ajax/libs/forerunnerdb/1.3.812/fdb-core+views.js | Amomo/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/render/DynamicTabBadge.js | kura52/sushi-browser | 'use strict';
import _ from 'lodash';
import React from 'react';
import NotificationBadge, {Effect} from 'react-notification-badge';
class DynamicTabContent extends React.Component {
constructor(props) {
super(props);
this.state = {
badgeCount: 0
};
}
componentDidMount(){
this.startTi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.