path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
kandotaIOSApp/Video/Detail.js | thnuclub/kandota | 'use strict';
var moment = require('moment');
var React = require('react-native');
var MK = require('react-native-material-kit');
var {
MKButton,
MKColor,
MKIconToggle,
MKCardStyles
} = MK;
var {
Text,
StyleSheet,
View,
WebView,
ScrollView,
} = React;
var Header = require('./../Common/Hea... |
ajax/libs/6to5/1.14.1/browser.js | iamJoeTaylor/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... |
src/helpers/universalRouter.js | joelburget/pigment | import qs from 'query-string';
import React from 'react';
import {match, RoutingContext} from 'react-router';
import createRoutes from '../routes';
import { Provider } from 'react-redux';
const getFetchData = (component = {}) => {
return component.WrappedComponent ?
getFetchData(component.WrappedComponent) :
... |
src/app/components/App.js | hipertracker/react-es7 | import React from 'react'
import ReactRouter, {RouteHandler, Link} from 'react-router'
import {Menu, Segment, Section} from 'react-semantify'
class App extends React.Component {
render() {
const styles= {
margin: 10
};
return (
<Section style={styles}>
... |
web/src/components/countrydisclaimer.js | corradio/electricitymap | import React from 'react';
import styled from 'styled-components';
import { noop } from 'lodash';
import Tooltip from './tooltip';
const MATERIAL_ICON_NAME = 'error';
const DisclaimerIcon = styled.span`
font-size: 20px;
cursor: help;
height: 20px;
color: rgba(0, 0, 0, 0.35);
margin-top: 4px;
`;
const Tool... |
demo/containers/FormList/index.js | vbait/vb-react-form | import uuid from 'uuid/v1';
import React from 'react';
import { uniq } from 'lodash';
import { Button, Row, Col } from 'react-bootstrap';
import { VBForm, requiredValidator } from '../../../src/Forms';
import { RBField, ColorField, FormActions, ErrorComponent } from './Fields';
import JSONPretty from 'react-json-pretty... |
packages/material-ui-icons/src/Cached.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42... |
src/components/app.js | pedrozok/React-Redux-Starter | import React, { Component } from 'react';
import {connect} from 'react-redux';
import { bindActionCreators } from 'redux'
import {sayHello} from '../actions'
require('../../sass/main.scss');
class App extends Component {
componentWillMount() {
this.props.sayHello();
}
render() {
return (
<h1>{t... |
src/boot/StoreProvider.js | vishwesh3/zulip-mobile | /* @flow strict-local */
import React, { PureComponent } from 'react';
import { Provider } from 'react-redux';
import type { Node as React$Node } from 'react';
import store, { restore } from './store';
import timing from '../utils/timing';
type Props = $ReadOnly<{|
children: React$Node,
|}>;
export default class S... |
src/elements/List/ListHeader.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A list item can contain a header.
*/
function ListHeader(props) {
const { ch... |
src/app.js | lnhrdt/auth0-react-sample | import React from 'react'
import ReactDOM from 'react-dom'
import 'bootstrap/dist/css/bootstrap.css'
import './app.css'
import App from 'containers/App/App'
import {browserHistory} from 'react-router'
import makeRoutes from './routes'
const routes = makeRoutes()
const mountNode = document.querySelector('#root');
R... |
ajax/libs/react/0.13.0-rc2/JSXTransformer.js | holtkamp/cdnjs | /**
* JSXTransformer v0.13.0-rc2
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined... |
src/svg-icons/content/add-box.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddBox = pu... |
ajax/libs/backbone.js/1.1.2/backbone.js | whardier/cdnjs | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
src/Parser/DeathKnight/Unholy/Modules/Items/Tier20_2p.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Mod... |
frontend/src/components/dialog/rename-group-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
import { Modal, ModalHeader, ModalBody, ModalFooter, Input, Button } from 'reactstrap';
import toaster from '..... |
src/component/picture-list/index.js | abdih17/celebrityMatch | import React from 'react'
import {
pictureCreate,
pictureReset,
} from '../../action/picture-action.js'
import PictureItem from '../picture-item'
class PictureList extends React.Component{
render(){
return (
<div>
<h3>Pictures</h3>
<PictureItem />
</div>
)
}
}
export def... |
.history/src/pages/despre-noi_20170804011648.js | radubrehar/evanghelic.ro | import React from 'react';
import Link from 'gatsby-link';
import Menu from '../components/Menu';
import Row from '../components/Row';
const AboutUs = () =>
<div>
<Row>
<p>Welcome to your new Gatsby site.</p>
<p>Now go build something great.</p>
<Link to="/page-2/">Go to page 2</Link>
</Ro... |
app/containers/FeaturePage/tests/ListItemTitle.test..js | ipselon/react-boilerplate-clone | import React from 'react';
import expect from 'expect';
import { shallow } from 'enzyme';
import ListItemTitle from '../ListItemTitle';
describe('<ListItemTitle />', () => {
it('should render an <p> tag', () => {
const renderedComponent = shallow(<ListItemTitle />);
expect(renderedComponent.type()).toEqual(... |
ch4/refs-bootstrap/react.js | azat-co/react | /**
* React v0.14.3
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}... |
components/main/SidebarContent.js | HelloTangible/Rocket-Web | import React from 'react'
import { NavItem } from 'rebass'
import { FaTasks } from 'react-icons/lib/fa'
import { MdCloud, MdCreditCard, MdPerson, MdPhonelinkSetup, MdTimeline } from 'react-icons/lib/md'
export default (
<div className='sidebar-icons'>
<style jsx global>{`
.icon {
font-size: 3em;
... |
client/src/transforms/FormAction/ownerAwareUnpublish.js | open-sausages/silverstripe-asset-admin | /* global confirm */
import React from 'react';
import i18n from 'i18n';
const ownerAwareUnpublish = (FormAction) => (props) => {
const originalOnclick = props.onClick;
const newProps = {
...props,
onClick(e, nameOrID) {
const { owners } = props.data;
let message = null;
if (owners && par... |
node_modules/critical/node_modules/debug/src/browser.js | seifdr/Patellinis-Bootstrap-V4 | /**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrom... |
client/src/scenes/SignInPage/index.js | RudthMael/chatx | import React from 'react';
import './index.css';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { login } from '../../actions';
import { getAuth } from '../../selectors';
class SignInPage extends React.Component {
static propTypes = {
auth: React.PropTypes.object
};
cons... |
ajax/libs/rxjs/2.2.7/rx.lite.compat.js | johan-gorter/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
node_modules/material-ui/svg-icons/device/settings-system-daydream.js | SerendpityZOEY/Fixr-RelevantCodeSearch | '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... |
app/components/Routes.js | jimzhang93/machi-koro-nyc | import React from 'react';
import { connect } from 'react-redux';
import {Router, Route, IndexRedirect, browserHistory} from 'react-router';
import { updatePlayersArray, updateLastNumberRolled, updateNextPlayerIndexTurn, setFirstPlayerTurn, startGame, buy, receivingMoney, receiveMoney } from '../reducers/gameReducer';
... |
src/helpers/decorator/lang.js | wvfan/HSBC | import React from 'react';
const lang = dict => (
Component => (
class LangProvider extends React.Component {
static childContextTypes = {
dict: React.PropTypes.object,
};
getChildContext() {
return { dict };
}
render() {
return <Component {...this.props} />;... |
ajax/libs/react-swipe/2.0.10/react-swipe.min.js | pombredanne/cdnjs | !function(e,o){"undefined"!=typeof module&&module.exports?module.exports=o(require("react/addons"),require("swipe-js-iso")):e.ReactSwipe=o(e.React,e.Swipe)}(this,function(e,o){var i={container:{overflow:"hidden",visibility:"hidden",position:"relative"},wrapper:{overflow:"hidden",position:"relative"},child:{"float":"lef... |
Example/__tests__/index.android.js | blackuy/react-native-twilio-video-webrtc | 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 />
);
});
|
frontend/react/components/Notification.js | Dishant15/TechIntrest | import React from 'react';
import { connect } from 'react-redux';
import store from '../store';
@connect((store) => {
return {
notifications : store.notifications.notifications,
count : store.notifications.noti_count,
};
})
export default class NotificationList extends React.Component {
renderNotification(){
... |
Realization/frontend/czechidm-core/src/components/basic/Table/Table.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import invariant from 'invariant';
import Immutable from 'immutable';
import _ from 'lodash';
import classNames from 'classnames';
import Waypoint from 'react-waypoint';
//
import * as Utils from '../../../utils';
import AbstractContextComponent from '../Ab... |
packages/material-ui-icons/src/LibraryMusic.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LibraryMusic = props =>
<SvgIcon {...props}>
<path d="M20 2H8c-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-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57... |
app/containers/Steps/Bearing/index.js | nypl-spacetime/where | import React from 'react'
import { connect } from 'react-redux'
import { createSelector } from 'reselect'
import Map from 'containers/Map'
import PaneButton from 'containers/PaneButton'
import Button from 'components/Button'
import Flex from 'components/Flex'
import { Container, BottomButtons, Buttons, MapContainer... |
ajax/libs/yui/3.10.0/event-focus/event-focus-debug.js | sympmarc/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
SkodaShop/Web/SkodaShop.Web/Scripts/jquery-1.10.2.min.js | achoraev/ASP.NetMVC | /* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
docs/src/app/pages/components/TabWrapper/ExampleTabWrapperTitlePrefix.js | GetAmbassador/react-ions | import React from 'react'
import { TabWrapper, Tab } from 'react-ions/lib/components/TabWrapper'
import Badge from 'react-ions/lib/components/Badge'
import classNames from 'classnames/bind'
import style from './style.scss'
class ExampleTabWrapperTitlePrefix extends React.Component {
constructor(props) {
super(pr... |
src/icons/LoadC.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class LoadC extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M479.8,226.1c-1.4-8.7-3.1-17.3-5.3-25.8c-2.8-10.8-6.4-21.5-10.8-31.8c-8.9-21.2-21.1-41-35.9-58.6
c-16-18.9-35.3-35.2-56.7-... |
view/rooms/list/ListController.js | salesforce/refocus | /**
* Copyright (c) 2017, salesforce.com, inc.
* All rights reserved.
* Licensed under the BSD 3-Clause license.
* For full license text, see LICENSE.txt file in the repo root or
* https://opensource.org/licenses/BSD-3-Clause
*/
/**
* view/rooms/list/ListController.js
*
* Manages List View page state.
*/
imp... |
src/components/tracker_content_sec.js | joakimremler/horse-project | import React, { Component } from 'react';
export default class TrackerContentSec extends Component {
render() {
return (
<div className="row-fluid">
</div>
);
}
}
|
src/index.js | cogKnitter/filestack-react-testapp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/device/battery-80.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z"/><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
files/clappr/0.0.82/clappr.js | 2947721120/garrulous-octo-rutabaga | 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/test/components/access/SignUpForm.spec.js | andela-eefekemo/DMS | /* global expect jest test */
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import { SignUpForm } from '../../../components/access/SignUpForm';
describe('SignUpForm Component', () => {
const spy = jest.fn();
beforeEach(() => {
global.Materialize = { toast: je... |
test/components/NavBar/MobileNavbar.spec.js | styled-components/styled-components-website | import React from 'react';
import renderer from 'react-test-renderer';
import MobileNavbar from '../../../components/Nav/MobileNavbar';
test('MobileNavbar renders correctly', () => {
const tree = renderer.create(<MobileNavbar />).toJSON();
expect(tree).toMatchSnapshot();
});
|
tests/Rules-minLength-spec.js | yesmeck/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
modules/RouteUtils.js | natorojr/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... |
ajax/libs/yui/3.12.0/datatable-core/datatable-core-coverage.js | AlicanC/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
ajax/libs/forerunnerdb/1.3.733/fdb-core+persist.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... |
examples/counter/containers/Root.js | pairyo/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import CounterApp from './CounterApp';
import configureStore from '../store/configureStore';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
... |
react-native/ReactNativeFlipperExample/__tests__/App-test.js | facebook/flipper | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be requir... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
src/components/Photos.js | colsondonohue/colsondonohue.github.io | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
const Photo = styled.img`
max-width: 90%;
margin-bottom: 2em;
max-height: 100vh;
@media (max-width: 400px) {
margin-bottom: 1em;
}
`;
const PhotoGrid = styled.div`
display: flex;
al... |
website/src/pages/Tutorials/react-advanced.js | pshrmn/curi | import React from "react";
import { Link } from "@curi/react-dom";
import {
TitledPlainSection,
HashSection,
HashAside,
Paragraph,
CodeBlock,
Outline,
Note,
IJS,
CodeSandboxDemo
} from "../../components/tutorial/common";
let demoMeta = {
title: "Demo",
hash: "demo"
};
let setupMeta = { title: "... |
modules/Redirect.js | keathley/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './URLUtils';
import { falsy } from './PropTypes';
var { string, object } = React.PropTypes;
export var Redirect = React.createClass({
statics: {
createRouteF... |
src/index.js | khairold/batu | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
const initialState = window.__INITIAL_STATE__
const store = configureStore(initialState)
render(
<Provider store={store}>
<A... |
examples/counter/test/components/Counter.spec.js | zalmoxisus/redux-notify | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Counter from '../../components/Counter';
function setup() {
const actions = {
increment: expect.createSpy(),
incrementIfOdd: expect.createSpy(),
incrementAsync: expect.createSpy(),
decremen... |
ajax/libs/yui/3.2.0/event/event-debug.js | abenjamin765/cdnjs | /*
* DOM event listener abstraction layer
* @module event
* @submodule event-base
*/
(function() {
// Unlike most of the library, this code has to be executed as soon as it is
// introduced into the page -- and it should only be executed one time
// regardless of the number of instances that use it.
var stateCha... |
src/organisms/cards/PolicyCard/PolicyActions.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import accounting from 'accounting';
import Text from 'atoms/Text';
import Layout from 'atoms/Layout';
import Button from 'atoms/Button';
import Hide from 'wrappers/Hide';
import Spacer from 'atoms/Spacer';
import styles from './policy_card.module.scss';
c... |
Examples/UIExplorer/TextInputExample.js | badfortrains/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
Libraries/Components/Slider/Slider.js | rickbeerendonk/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/modules/Rooms/components/RoomsLayout.js | prjctrft/mantenuto | /* eslint-disable */
import React, { Component } from 'react';
import { Slide } from 'components';
import PeerStatus from './PeerStatus';
import Chat from './Chat';
import ChatIconButton from './ChatIconButton';
import Controls from './Controls';
import Video from './Video';
import Stats from './Stats';
export defaul... |
packages/icons/src/md/content/Inbox.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdInbox(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H9.98C7.77 42 6 40.21 6 38l.02-28c0-2.21 1.75-4 3.96-4H38zm0 24V10H9.98v20H18c0 3.31 2.69 6 6 6s6-2.69 6-6h... |
app/javascript/mastodon/features/compose/components/autosuggest_account.js | h-izumi/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
class AutosuggestAccount extends ImmutablePureComponen... |
packages/metadata-react/src/Diagrams/Settings/grid2.js | oknosoft/metadata.js | // @flow weak
import React from 'react';
import SvgIcon from '@material-ui/core/SvgIcon';
export default function Flask(props) {
return <SvgIcon {...props} viewBox="0 0 120 120">
<path d={`
M0,0 l120,0 l0,4 l-120,0 l0,-4z
M0,39 l120,0 l0,4 l-120,0 l0,-4z
M0,79 l120,0 l0,4 l-120,0 l0,-4z
M0,116 l... |
app/app.js | Ratholien/JobReact | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
src/pages/Home.js | GamerZUnited/GamerZUninted-FrontEnd | import React from 'react'
import {connect} from 'react-redux'
import {pushState } from 'redux-router'
import * as Actions from '../actions/AppActions'
import TestComponent from '../components/TestComponent';
@connect(
state => ({
login: state.login
})
)
class Home extends React.Component {
componentWillRec... |
app/javascript/mastodon/components/radio_button.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class RadioButton extends React.PureComponent {
static propTypes = {
value: PropTypes.string.isRequired,
checked: PropTypes.bool,
name: PropTypes.string.isRequired,
onChange: PropTypes.... |
src/components/widgets/M_Tooltip/index.js | humaniq/humaniq-pwa-website | import React from 'react';
import * as T from "prop-types";
import './styles.scss';
import {cssClassName} from 'utils'
const cn = cssClassName('M_Tooltip')
const M_Tooltip = ({children, type, size, mix}) =>{
return(
<div className={cn('wrapper', [mix])}>
<div className={cn('root', {type, size})}>
... |
ajax/libs/highmaps/5.0.4/highmaps.src.js | maruilian11/cdnjs | /**
* @license Highcharts JS v5.0.4 (2016-11-22)
*
* (c) 2011-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports = root.document ?
factory(root) :
factory;
... |
ReactComponents/UserView.js | DoSomething/LetsDoThis-iOS | 'use strict';
import React from 'react';
import {
ListView,
StyleSheet,
Text,
Image,
RefreshControl,
TouchableHighlight,
View,
NativeAppEventEmitter
} from 'react-native';
var Style = require('./Style.js');
var Helpers = require('./Helpers.js');
var NetworkErrorView = require('./NetworkErrorView.js')... |
src/js/routes.js | mark-riley/react-starter | import React, { Component } from 'react';
import { Route, IndexRoute } from 'react-router'
import App from './components/app';
import Home from './components/home';
export default (
<Route path="/" component={ App }>
<IndexRoute component={ Home } />
</Route>
);
|
src/modules/App/App.js | Sazerac132/reactor-bootstrap | import React, { Component } from 'react';
import JokerList from '../JokerList';
import JokerImage from '../joker.jpg';
import './style.scss';
export default class App extends Component {
render() {
return (
<div>
<h1>The Joker's To-Do List</h1>
<img src={JokerImage} className='joker-... |
l4_flexbox/text.js | kobkrit/learn-react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class flexbox extends Component {
render() {
return (
<View>
<View style={styles.container}>... |
client/src/pages/404.js | otavioarc/freeCodeCamp | import React from 'react';
import Helmet from 'react-helmet';
import Spinner from 'react-spinkit';
import { Link } from 'gatsby';
import Layout from '../components/layouts/Default';
import notFoundLogo from '../images/freeCodeCamp-404.svg';
import { quotes } from '../resources/quotes.json';
import './404.css';
clas... |
examples/src/components/Multiselect.js | OpenGov/react-select | import React from 'react';
import createClass from 'create-react-class';
import PropTypes from 'prop-types';
import Select from 'react-select';
const FLAVOURS = [
{ label: 'Chocolate', value: 'chocolate' },
{ label: 'Vanilla', value: 'vanilla' },
{ label: 'Strawberry', value: 'strawberry' },
{ label: 'Caramel', va... |
src/react/Button.js | onap-sdc/sdc-ui | import React from 'react';
import PropTypes from 'prop-types';
import SVGIcon from './SVGIcon.js';
const Button = ({
btnType,
size,
className,
iconName,
onClick,
disabled,
children,
...other
}) => (
<button
onClick={onClick}
className={`sdc-button sdc-button__${btnTy... |
src/Parser/Mage/Frost/Modules/Items/MagtheridonsBanishedBracers.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus from 'Parser/Mage/Shared/Modules/GetDamageBonus';
import ItemDamageDone from 'Main/ItemDamageDone'... |
packages/bonde-admin/src/mobilizations/widgets/__plugins__/pressure/components/settings-menu.spec.js | ourcities/rebu-client | /* eslint-disable no-unused-expressions */
import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import { SettingsMenu } from '@/mobilizations/widgets/__plugins__/pressure/components'
describe('client/mobilizations/widgets/__plugins__/pressure/components/settings-menu', () => {
le... |
packages/material-ui-icons/src/LowPriority.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.92 2 11.5z" />
, 'LowPriority');
|
node_modules/react-icons/fa/battery-1.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaBattery1 = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m4.5 26.7v-13.4h8.9v13.4h-8.9z m33.6-12.3q0.9 0 1.6 0.7t0.6 1.5v6.8q0 0.9-0.6 1.5t-1.6 0.7v2.8q0 1.2-0.8 2t-2 0.8h-32.5q-1.2 0-2-0.8t-0.8-2v-16.8q0-1.2 0.8-2t2-0.8h3... |
ajax/libs/fixed-data-table/0.4.1/fixed-data-table.js | vuonghuuphuc/cdnjs | /**
* FixedDataTable v0.4.1
*
* Copyright (c) 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 direc... |
files/yasr/2.4.15/yasr.bundled.min.js | yyx990803/jsdelivr | !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){... |
src/containers/foiRequests/FollowingIcon.js | jfilter/frag-den-staat-app | import React from 'react';
import { connect } from 'react-redux';
import { ORIGIN } from '../../globals';
import NavBarIcon from '../../components/foiRequests/NavBarIcon';
import { getCurrentAccessTokenOrRefresh } from '../../utils/oauth';
import { clearCache } from '../../utils/networking';
import { foiRequestsUpdate... |
src/decorators/withViewport.js | BlakeRxxk/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
ajax/libs/mediaelement/2.1.7/jquery.js | kalkidanf/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* 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.
... |
client/src/components/Profile/profileNavbar.js | Velocies/raptor-ads | import React from 'react';
import { Link } from 'react-router';
import { Menu } from 'semantic-ui-react';
const ProfileNavbar = ({ current, userId }) =>
<Menu>
<Menu.Item
as={Link}
to={`/user/${userId}/dashboard`}
id="dashboard"
active={'dashboard' === current}
>
Dashboard
<... |
ajax/libs/jssip/0.6.23/jssip.js | zimbatm/cdnjs | /*
* JsSIP v0.6.23
* the Javascript SIP library
* Copyright: 2012-2015 José Luis Millán <jmillan@aliax.net> (https://github.com/jmillan)
* Homepage: http://jssip.net
* License: MIT
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&de... |
packages/react-fullcanvas/test/index.js | iTonyYo/react-layout-kits | import React from 'react';
import { expect, assert } from 'chai';
import { shallow, mount } from 'enzyme';
import FullCanvas from '../lib';
describe("<FullCanvas />", () => {
it("renders children when passed in", () => {
expect(
shallow(
<FullCanvas>
<div/>
</FullCanvas>
)
... |
examples/with-react-router/src/server.js | jaredpalmer/razzle | import App from './App';
import React from 'react';
import express from 'express';
import { renderToString } from 'react-dom/server';
import { StaticRouter } from 'react-router-dom';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const server = express();
export const renderApp = (req, res) => {
const... |
ajax/libs/angular-google-maps/1.0.15/angular-google-maps.js | baig/cdnjs | /*! angular-google-maps 1.0.15 2014-03-05
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
Author Nick McCready
Intersection of Objects if the arrays have something in common each intersecting object will be returned
in an new array.
*/
(functio... |
node_modules/react-tools/src/utils/__tests__/PooledClass-test.js | nss-day-cohort-17/nss-day-cohort-17.github.io | /**
* Copyright 2014-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... |
site/components/grouping/table.js | JamesHageman/redux-datagrid | import React from 'react';
import { FlexTable, FlexColumn, AutoSizer } from 'react-virtualized';
import { reduxDatagrid } from 'redux-datagrid';
import '!!style!css!react-virtualized/styles.css';
const GroupingTable = ({ datagrid: { columns, grouped, controls: { groupBy, search }}}) => {
return <div>
<input
... |
src/components/header/Header.js | TechyFatih/Nuzlog | import React from 'react';
import { Well, Grid, Row, Col, Button } from 'react-bootstrap';
import ThemeSwitcher from './ThemeSwitcher';
import NewGameModal from './newGame/NewGameModal';
import SaveLoadGameModal from './saveLoadGame/SaveLoadGameModal';
export default class Header extends React.Component {
construct... |
examples/02 Drag Around/Naive/index.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class DragAroundNaive extends Component {
constructor(props) {
super(props);
this.handleHideSourceClick = this.handleHideSourceClick.bind(this);
this.state = {
hideSourceOnDrag: true
};
}
handleHi... |
src/components/Pagination/Pagination.js | Amine-H/Amine-H.github.io | // @flow strict
import React from 'react';
import classNames from 'classnames/bind';
import { Link } from 'gatsby';
import { PAGINATION } from '../../constants';
import styles from './Pagination.module.scss';
type Props = {
prevPagePath: string,
nextPagePath: string,
hasNextPage: boolean,
hasPrevPage: boolean
... |
test/components/Provider.spec.js | ytiurin/redux | import expect from 'expect';
import jsdomReact from './jsdomReact';
import React, { PropTypes, Component } from 'react/addons';
import { createRedux } from '../../src';
import { Provider } from '../../src/react';
const { TestUtils } = React.addons;
describe('React', () => {
describe('Provider', () => {
jsdomRea... |
.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/ReportSystem/resources/js/components/user/user-mgt.js | LittleLazyCat/TXEY | import React from 'react'
import Reflux from 'reflux'
import ReactMixin from 'react-mixin'
import ToolsBar from './tools-bar'
import AddUserModal from './add-user-modal'
import User from './user'
import store from '../../stores/user/user-store'
import actions from '../../actions/user/user-actions'
import $ from 'jquery... |
app/javascript/mastodon/components/dropdown_menu.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
app/containers/Notifications.js | ryanwashburne/react-skeleton | // React
import PropTypes from 'prop-types';
import React from 'react';
// Redux
import { connect } from 'react-redux';
// UI
import { ToastContainer, toast } from 'react-toastify';
import { Snackbar } from 'material-ui';
class Notifications extends React.Component {
state = {
message: null,
acti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.