path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/react-data-grid/0.14.11/react-data-grid-with-addons.js | seogi1004/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
node_modules/react-icons/lib/ti/battery-full.js | bairrada97/festival | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }... |
ajax/libs/inferno-devtools/1.0.0-beta41/inferno-devtools.js | jdh8/cdnjs | /*!
* inferno-devtools v1.0.0-beta41
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('./inferno'), require('./inferno-component')) :
typeof define === 'function' && define.amd ? defi... |
rollup.config.docs.js | ricsv/react-leonardo-ui | /* eslint-env node */
import resolve from 'rollup-plugin-node-resolve';
import babel from 'rollup-plugin-babel';
import serve from 'rollup-plugin-serve';
import sourcemaps from 'rollup-plugin-sourcemaps';
import fs from 'fs';
import path from 'path';
import React from 'react';
import { renderToString } from 'react-d... |
src/components/SiteHeader/index.js | iris-dni/iris-frontend | import React from 'react';
import Container from 'components/Container';
import Navigation from 'containers/Navigation';
import styles from './site-header.scss';
const SiteHeader = () => (
<header className={styles.root}>
<Container>
<Navigation />
</Container>
</header>
);
export default SiteHeader... |
ajax/libs/inferno/1.0.0-beta17/inferno-mobx.min.js | emmy41124/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("./inferno-component"),require("./inferno"),require("./inferno-create-class"),require("./inferno-create-element")):"function"==typeof define&&define.amd?define(["inferno-component","inferno","inferno-create-class","inferno-crea... |
js/jquery.js | haimy/pms_landing | /*! jQuery v1.11.1 | (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... |
assets/javascripts/archon/components/ProcScheduleSpecCard.js | panli889/archon | import React from 'react';
import Radium from 'radium';
import MDL from './MdlComponents';
let ProcScheduleSpecCard = React.createClass({
getInitialState() {
return {
isCpuValid: true,
isMemoryValid: true,
};
},
contextTypes: {
theme: React.PropTypes.object,
},
render() {
con... |
docs/src/sections/PagerSection.js | apkiernan/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function PagerSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anc... |
src/FontIcon/FontIcon.js | skarnecki/material-ui | import React from 'react';
import transitions from '../styles/transitions';
function getStyles(props, context, state) {
const {
color,
hoverColor,
} = props;
const {baseTheme} = context.muiTheme;
const offColor = color || baseTheme.palette.textColor;
const onColor = hoverColor || offColor;
return... |
ajax/libs/angular-google-maps/1.2.0/angular-google-maps.js | FaiblUG/cdnjs | /*! angular-google-maps 1.2.0 2014-07-30
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/**
* @name InfoBox
* @version 1.1.12 [December 11, 2012]
* @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
* @copyright Copyright 201... |
packages/material-ui/src/NativeSelect/NativeSelectInput.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { componentPropType } from '@material-ui/utils';
/**
* @ignore - internal component.
*/
function NativeSelectInput(props) {
const {
children,
classes,
className,
disabled,
IconComponent,
... |
client/containers/messages.js | nearform/vidi-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router'
import {Panel, PageHeader, HealthPanel, InfoCell} from '../components/index'
import ChartistGraph from 'react-chartist'
import {subscribe, unsubscribe} from '../actions/vidi'
import _ from 'lodash'
export cons... |
js/src/index.js | romainberger/reddjent | import React from 'react'
import Router from 'react-router'
import routes from './routes'
import ScrollBehavior from './scroll-behavior'
const AppRouter = Router.create({
routes: routes,
scrollBehavior: ScrollBehavior
})
AppRouter.run(function(Handler, State) {
React.render(<Handler />, document.body)
})
|
ajax/libs/fluentui-react/8.29.2/fluentui-react.js | cdnjs/cdnjs | /*! For license information please see fluentui-react.js.LICENSE.txt */
var FluentUIReact;!function(){"use strict";var e={d:function(t,o){for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Functio... |
src/js/reducer/distorter-event-reducer.js | aratakokubun/cursor-hijack | 'use strict';
import React from 'react';
import { handleActions } from 'redux-actions';
import * as _ from 'lodash';
import ActionTypes from '../action/action-types';
import Distorter from '../service/distorter/distorter';
import format from 'string-format';
import * as sortOn from 'sort-on';
const createInitialState... |
frontend/components/PostcodeFormatter.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
const PostcodeFormatter = ({value}) => (
<span>{value.substring(0, 3)} {value.substring(3, 5)}</span>
);
PostcodeFormatter.propTypes = {
value: PropTypes.string.isRequired,
};
export default PostcodeFormatter;
|
stories/AvailabilityEdit.stories.js | nekuno/client | import React from 'react';
import { storiesOf, forceReRender } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links'
import AvailabilityEdit from '../src/js/components/Availability/AvailabilityEdit/AvailabilityEdit.js';
import {INFINITE_CALENDAR_BLUE... |
src/components/dictator/Name.js | pekkis/diktaattoriporssi-2016 | import React from 'react';
export default function Name({identity}) {
return (
<span className="dictator-name">{identity.displayName}</span>
);
}
|
src/svg-icons/image/filter-9-plus.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter9Plus = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1... |
local-cli/link/__tests__/android/applyPatch.spec.js | skevy/react-native | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
'use stric... |
packages/material-ui-icons/src/CropRotateRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M16 9v5h2V8c0-1.1-.9-2-2-2h-6v2h5c.55 0 1 .45 1 1zm3 7H9c-.55 0-1-.45-1-1V5c0-.55-.45-1-1-1s-1 .45-1 1v1H5c-.55 0-1 .45-1 1s.45 1 1 1h1v8c0 1.1.9 2 2 2h8v1c0 .55.45 1 1 1s1-.45 1-1v-1h1c.55 0 1-.45 1-... |
public/assets/mui-0.9.16/extra/mui-react-combined.js | nunoblue/ts-react | (function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.classCallCheck = function (instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
};
babelHelpers.createClass = function () {
function define... |
src/containers/App.js | DIYAbility/Capacita-Controller-Interface | import React, { Component } from 'react';
import { connect } from 'react-redux';
import ReactSuperSimpleRouter from '../components/app/ReactSuperSimpleRouter';
import AppToolbar from '../components/app/AppToolbar';
import * as page from '../constants/pages';
import { changeRoute } from '../actions/actions-app';
import ... |
src/index.js | dcritchlow/reading-timer | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/app/component/button/button.story.js | all3dp/printing-engine-client | import React from 'react'
import {storiesOf} from '@storybook/react'
import {action} from '@storybook/addon-actions'
import Button from '.'
import placeholderIcon from '../../../asset/icon/placeholder.svg'
storiesOf('Button', module)
.add('default', () => <Button label="Default Button" onClick={action('onClick')} ... |
front/src/components/CommentList.js | muhammad-awan/financial-news | import React from 'react'
import Comment from './Comment'
export default function CommentList({
items
}){
return(
<div>
{
items.map((item) => (
<Comment
key={ item._id }
{ ... item }
/>
))
}
</div>
)
} |
node_modules/react-icons/go/fold.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoFold = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m37.5 10h-8.7l-2.5 2.5h7.5l-5 5h-17.5l-5-5h7.5l-2.5-2.5h-8.8v2.5l6.3 6.3-6.3 6.2v2.5h8.8l2.5-2.5h-7.5l5-5h17.5l5 5h-7.5l2.5 2.5h8.7v-2.5l-6.2-6.2 6.2-6.3v-2.5z m-10-2.5h... |
packages/react-error-overlay/src/components/CodeBlock.js | Clearcover/web-build | /**
* 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.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
display: 'b... |
src/components/Login/login.js | ateev/starWars | import React, { Component } from 'react';
import './login.css';
class LoginContainer extends Component {
constructor() {
super();
this.state = {
username: 'Luke Skywalker',
password: '19BBY',
}
}
handleChange = (ev) => {
const newObj = {};
newObj[ev.target.name] = ev.target.value;... |
src/browser/main.js | AugustinLF/este | import 'babel-polyfill';
import Bluebird from 'bluebird';
import React from 'react';
import ReactDOM from 'react-dom';
import configureStore from '../common/configureStore';
import createEngine from 'redux-storage-engine-localstorage';
import createRoutes from './createRoutes';
import cs from 'react-intl/locale-data/cs... |
property-finder-sample/app/modules/property-list/SearchResults.js | mitrais-cdc-mobile/react-pocs | "use strict";
import React, {
Component,
Image,
ListView,
StyleSheet,
Text,
TouchableHighlight,
View
} from 'react-native';
import Styles from './SearchResults.Styles';
import PropertyView from '../property-detail/PropertyView';
/** Responsible for rendering ListView which display search'... |
web/dashboard/src/layout/ReactPanel.js | unicesi/pascani-library | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
require("../img/close.png");
require("../img/expand.png");
require("../img/collapse.png");
class ReactPanel extends Component {
static defaultProps = {
active: false,
floating: false,
width: 'regular',
id: undefined,
onBeforeOpen:... |
frontend/src/components/overview/sub/Recipe.js | kevto/cssd2webapp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {Redirect} from 'react-router-dom'
export default class Recipe extends Component {
constructor(props) {
super(props)
}
componentDidMount() {
}
clearText() {
//console.log('clearing text');
this.commentBox.val... |
files/rxjs/2.3.14/rx.lite.compat.js | therob3000/jsdelivr | // 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/svg-icons/image/filter-frames.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
src/svg-icons/notification/do-not-disturb-on.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturbOn = (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 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
NotificationDoNotDisturbOn = pure(No... |
ajax/libs/vue-material/0.5.0/components/mdBottomBar/index.debug.js | tholu/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["VueMaterial"] = factory();
else
root["V... |
ajax/libs/video.js/4.4.2/video.dev.js | sullivanmatt/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
ajax/libs/react-intl/1.1.0-rc-1/react-intl-with-locales.min.js | mscharl/cdnjs | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)q.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d){this.id=a,this.offset=b,this.options... |
src/DropdownMenu.js | dozoisch/react-bootstrap | import classNames from 'classnames';
import keycode from 'keycode';
import React from 'react';
import ReactDOM from 'react-dom';
import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper';
import { bsClass, getClassSet, prefix, splitBsProps }
from './utils/bootstrapUtils';
import createChainedFunction from '... |
src/routes/boards/Boards.js | jhlav/mpn-web-app | /* eslint-disable no-shadow */
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { graphql } from 'react-apollo';
import reactMDCSS from 'react-md/dist/react-md.red-light_blue.min.css';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import ... |
src/routes/Archives/containers/Archives.js | mywentu/react-blog | import { connect } from 'react-redux'
import { fetchArchives } from './../modules/archives'
import Archives from '../components/Archives'
const mapDispatchtoProps = {
fetchArchives
}
const mapStateToProps = (state) => ({
archives: state.archives
})
export default connect(mapStateToProps, mapDispatchtoProps)(Arc... |
templates/app/js/index.js | 111StudioKK/lambda-cli | import React from 'react';
import { Provider } from 'react-redux';
import { render } from 'react-dom';
import App from './app/App/App.jsx';
import '../styles/config.less';
import {store} from './redux/';
import {actions} from './redux/';
actions.initConfig({
bootstrapped: true
});
render(<Provider store={store}><Ap... |
packages/reactReduxFormBase/src/Model.spec.js | daniloster/react-experiments | import React from 'react';
import sinon from 'sinon';
import { mount } from 'enzyme';
import AppModel from '../DEV/AppModel';
import Input from '../DEV/Input';
import { change, click } from '../../../tools/helpers/test/simulate';
import { assertValue, length } from '../../../tools/helpers/test/assert';
let element;
l... |
static/src/containers/Authorize.js | detailyang/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-13T22:43:06+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-06-24T10:31:12+08:00
* @License: The MIT License (MIT)
*/
import { Icon, Button, Row, Col, message } from 'antd';
import url from 'url';
import que... |
src/components/screenBeaconList.js | CMP-Studio/BeaconDeploymentTool | // @flow
import React from 'react';
import { View, ScrollView, TouchableOpacity, Text, StyleSheet } from 'react-native';
import type { NavigateType } from '../actions/navigation';
import type { BeaconType, DeleteBeaconType } from '../actions/beacons';
import type { RegionsByFloorType } from '../reducers/beacons';
imp... |
src/components/Common/TierBlock.js | oraclesorg/ico-wizard | import React from 'react'
import { Field } from 'react-final-form'
import { OnChange } from 'react-final-form-listeners'
import { InputField2 } from './InputField2'
import { WhitelistInputBlock } from './WhitelistInputBlock'
import {
composeValidators,
isDateInFuture,
isDateLaterThan,
isDatePreviousThan,
isDa... |
packages/starter-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js | chungchiehlun/create-starter-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 from 'react';
export default () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAG... |
app/javascript/mastodon/components/icon_with_badge.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
const formatNumber = num => num > 40 ? '40+' : num;
const IconWithBadge = ({ id, count, issueBadge, className }) => (
<i className='icon-with-badge'>
<Icon id={id} fixedWidth className={className} />
... |
src/Header/index.js | yrezgui/napersona | import React from 'react';
export default class Header extends React.Component {
constructor(props) {
super(props);
}
generateLink(item, index) {
if (item.newTab) {
return <a key={index} href={item.url} target="_blank">{item.name}</a>;
} else {
return <a key={index} href={item.url}>{item... |
test/performance/comparisons/jquery-latest.js | marshall007/rethinkdb | /*! 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... |
src/components/FrenchToastQuestion.spec.js | raq929/react-french-toast | import chai from 'chai';
import cheerio from 'cheerio';
import AboutPage from './AboutPage';
import React from 'react';
import ReactDOMServer from 'react/lib/ReactDOMServer';
chai.should();
|
src/components/Loader.js | react-in-action/letters-social | import React from 'react';
/**
* See https://www.npmjs.com/package/loaders.css for more info
* @method Loader
*/
const Loader = () => (
<div className="loader">
<div className="ball-pulse-sync">
<div />
<div />
<div />
</div>
</div>
);
export default Load... |
src/files/header/Header.js | ipfs/webui | import React from 'react'
import classNames from 'classnames'
import { connect } from 'redux-bundler-react'
import { withTranslation } from 'react-i18next'
import { humanSize } from '../../lib/files'
// Components
import Breadcrumbs from '../breadcrumbs/Breadcrumbs'
import FileInput from '../file-input/FileInput'
impor... |
tests/ExpandRow.spec.js | react-component/table | import React from 'react';
import { mount } from 'enzyme';
import { act } from 'react-dom/test-utils';
import { resetWarned } from 'rc-util/lib/warning';
import { spyElementPrototype } from 'rc-util/lib/test/domHook';
import Table from '../src';
describe('Table.Expand', () => {
const expandedRowRender = () => <p>ext... |
src/scripts/components/MainLayout/Nav.js | Joywok/Joywok-Mobility-Framework | import React from 'react';
import { Menu, Icon } from 'antd';
import { Link } from 'dva/router';
import navs from './../../../styles/Nav.css';
function Nav({ location }) {
return (
<div className={navs.nav}>
<img className={navs.nav} />
</div>
);
}
export default Nav; |
icandevit/src/components/Home.js | yeli-buonya/icandevit.io | import React from 'react';
import { fadeInLeft, fadeInRight } from 'react-animations';
import Radium, { Style, StyleRoot } from 'radium';
import { bounce } from 'react-animations';
const styles = {
fadeInLeft: {
animation: 'x 2s',
animationName: Radium.keyframes(fadeInLeft, 'fadeInLeft')
},
... |
client/js/components/environments/Feedback.js | Code4HR/hrtb.us | import React from 'react';
import Radium from 'radium';
class Feedback extends React.Component {
render() {
return (
<pre>Feedback</pre>
);
}
}
export default Feedback
|
src/components/Layout.js | AlexNarayanan/setlist-forecast | import React from 'react';
export default class Layout extends React.Component {
render() {
return (
<div className="app-container">
<header>
<p> Here is a header VERSION 2</p>
</header>
<div className="app-content">{this.props... |
node_modules/react-icons/fa/mars-stroke-v.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaMarsStrokeV = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.8 14.4q4.8 0.5 8.1 4.2t3.3 8.5q0 3.8-1.9 6.9t-5.3 4.7-7.1 1.2q-3-0.3-5.5-2t-4.1-4.1-1.8-5.6q-0.2-3.5 1.2-6.5t4.2-5 6-2.3v-3h-3.5q-0.4 0-0.6-0.2t-0.2-0.5v-1.4q... |
project-templates/reactfiber/externals/react-fiber/src/renderers/native/ReactNativeTagHandles.js | itsa-server/itsa-cli | /**
* 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... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch07/07_01/finish/src/routes.js | yevheniyc/Autodidact | import React from 'react'
import { Router, Route, hashHistory } from 'react-router'
import Home from './components/ui/Home'
import About from './components/ui/About'
import MemberList from './components/ui/MemberList'
import { Left, Right, Whoops404 } from './components'
const routes = (
<Router history={hashHis... |
examples/todomvc-flux/js/components/MainSection.react.js | gdi2290/react | /**
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
src/components/Header.js | davendesai/twitchcast | import React, { Component } from 'react';
import '../styles/Header.css';
import github from '../../res/github.png';
export default class Header extends Component {
render() {
const GITHUB_URL = "http://github.com/davendesai/twitchcast";
return (
<div id="twitchcast-header">
<a href={ GITHUB_... |
ajax/libs/rxjs/2.2.7/rx.lite.compat.js | timnew/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 &&... |
src/pages/components/About/BirdWatching.js | uwrov/uwrov.github.io | import React from 'react'
import { StaticImage } from 'gatsby-plugin-image'
import video from "../../../images/Bird-Watching/CrowVideo.mp4"
import NavBar from '../NavBar/NavBar'
import './BirdWatching.css'
import Footer from "../Footer/Footer"
import HtmlHelmet from '../../HtmlHelmet.js'
const BirdWatching = () => (
... |
packages/react/src/components/SkeletonPlaceholder/SkeletonPlaceholder-story.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable no-console */
import React from 'react';
import { withKnobs, select } from '@storybook/addon-knobs';
import SkeletonPlace... |
test/test_helper.js | rafaalb/BlogsReact | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
examples/UnigridExample9.js | yoonka/unigrid | /*
Copyright (c) 2018, Grzegorz Junka
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following... |
src/Grid.js | deerawan/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Grid = React.createClass({
propTypes: {
/**
* Turn any fixed-width grid layout into a full-width layout by this property.
*
* Adds `container-fluid` class.
*/
fluid... |
ajax/libs/yui/3.3.0/simpleyui/simpleyui.js | steakknife/cdnjs |
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global name... |
Examples/UIExplorer/ProgressViewIOSExample.js | wangziqiang/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,
... |
src/client/assets/js/features/driver/components/Overview/Overview.js | me-box/platform-sdk | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class Overview extends React.Component {
render(){
return <div>
<div className="panel">
<div className="cell">
<div className="description">
Is your driver a <strong> cloud </strong> or a <stron... |
app/routes.js | Git-Together/GitTogether | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App-container';
import HomePage from './containers/HomePage-container';
import authCheck from './utils/checkLogin.js'
import Auth from './components/Auth/Auth-component.js'
export default (
<Route path="/" comp... |
ajax/libs/onsen/2.9.0/js/angular-onsenui.js | jonobr1/cdnjs | /* angular-onsenui v2.9.0 - 2018-01-25 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
(factory());
}(this, (function () { 'use strict';
/* Simple JavaScript Inheritance for ES 5.1
* based on... |
src/parser/rogue/assassination/modules/talents/ElaboratePlanning.js | FaideWW/WoWAnalyzer | import React from 'react';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Ana... |
docs/src/HomePage.js | leozdgao/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageFooter from './PageFooter';
import Grid from '../../src/Grid';
import Alert from '../../src/Alert';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
export default class HomePage extends React.Component{
render()... |
files/rxjs/4.0.8/rx.lite.extras.compat.js | abishekrsrikaanth/jsdelivr | // 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/svg-icons/av/replay-5.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
src/routes/dev.js | Capgemini/mesos-ui | import _ from 'lodash';
import fs from 'fs';
import path from 'path';
import React from 'react';
import Router from 'react-router';
import routes from './react-routes';
import proxy from 'express-http-proxy';
import express from 'express';
module.exports = function(app) {
var config = require('../config/config');
... |
src/svg-icons/file/cloud-off.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudOff = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4c-1.48 0-2.85.43-4.01 1.17l1.46 1.46C10.21 6.23 11.08 6 12 6c3.04 0 5.5 2.46 5.5 5.5v.5H19c1.66 0 3 1.34 3 3 0 1.13-... |
.eslintrc.js | owencm/material-ui | module.exports = {
// So parent files don't get applied
root: true,
env: {
es6: true,
browser: true,
node: true,
},
extends: 'eslint:recommended',
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjec... |
src/svg-icons/device/battery-unknown.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryUnknown = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-2.72 13.95h-1.9... |
src/ColumnComparer.js | yogesh-patel/react-data-grid | /* TODO@flow objects as a map */
var isValidElement = require('react').isValidElement;
module.exports =
function sameColumn(a: Column, b: Column): boolean {
var k;
for (k in a) {
if (a.hasOwnProperty(k)) {
if ((typeof a[k] === 'function' && typeof b[k] === 'function') || (isValidElement(a[k]) && isValidE... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | andresd24/Heroes | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
packages/material-ui-icons/src/KeyboardArrowRightRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M9.29 15.88L13.17 12 9.29 8.12a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42z" /></React.Frag... |
ajax/libs/vue/1.0.0-alpha.5/vue.js | hare1039/cdnjs | /*!
* Vue.js v1.0.0-alpha.5
* (c) 2015 Evan You
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
e... |
packages/reactive-dict/reactive-dict.js | AnjirHossain/meteor | // XXX come up with a serialization method which canonicalizes object key
// order, which would allow us to use objects as values for equals.
var stringify = function (value) {
if (value === undefined)
return 'undefined';
return EJSON.stringify(value);
};
var parse = function (serialized) {
if (serialized ===... |
src/utils/index.js | rendact/rendact | import React from 'react';
import request from 'request';
import Config from '../rendact.config.json';
import AdminConfig from '../admin/AdminConfig';
import Query from '../admin/query';
import _ from 'lodash';
import { default as swal } from 'sweetalert2';
import {connect} from 'react-redux'
import {saveConfig} from '... |
src/components/Sigmet/SigmetEditMode.spec.js | KNMI/GeoWeb-FrontEnd | import React from 'react';
import SigmetEditMode from './SigmetEditMode';
import { mount, shallow } from 'enzyme';
import { Button } from 'reactstrap';
describe('(Component) SigmetEditMode', () => {
it('mount renders a SigmetEditMode', () => {
const sigmet = {
phenomenon: 'TEST',
levelinfo: { levels:... |
ajax/libs/material-ui/5.0.0-beta.1/node/StepConnector/StepConnector.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
... |
packages/material-ui-icons/src/PhonelinkTwoTone.js | allanalexandre/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="M18 10h4v7h-4z" opacity=".3" /><path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6z" /><path d="M23 8h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1... |
examples/simple/src/index.js | one-market/appson | import * as R from 'ramda'
import React from 'react'
import { Routes, Route, Link, addState, addEffects } from '@onemarket/appson'
import { AppContainer } from 'react-hot-loader'
import main from './states/main'
import logAction from './effects/log-action'
import Home from './modules/Home'
import Cart from './modules... |
src/main/webapp/js/lib/createjs/jquery-1.8.3.min.js | it2l/it2l-platform | /*!
* 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... |
app/components/App.js | rfarine/ArtistRanking | import React from 'react';
import {RouteHandler} from 'react-router';
import Footer from './Footer';
import Navbar from './Navbar';
class App extends React.Component {
render() {
return (
<div>
<Navbar />
<RouteHandler />
<Footer />
</div>
);
}
}
export default App; |
ajax/libs/forerunnerdb/1.3.711/fdb-core+views.min.js | dc-js/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/react-icons/ti/edit.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiEdit = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.9 8.9l-4.8-4.8c-0.5-0.5-1.1-0.8-1.7-0.8-0.7 0-1.3 0.3-1.8 0.8l-5.9 5.9h-15c-1 0-1.7 0.7-1.7 1.7v21.6c0 1 0.8 1.7 1.7 1.7h21.6c1 0 1.7-0.7 1.7-1.7v-15l5.9-5.9c0.5-0.5... |
src/components/FormItem/FormItem-test.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { shallow } from 'enzyme';
import FormItem from '../FormItem';
describe('FormItem', () => {
it('should r... |
examples/custom-server-express/pages/index.js | dizlexik/next.js | import React from 'react'
import Link from 'next/link'
export default () => (
<ul>
<li><Link href='/b' as='/a'><a>a</a></Link></li>
<li><Link href='/a' as='/b'><a>b</a></Link></li>
</ul>
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.