path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
docs-ui/components/narrowLayout.stories.js | ifduyue/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
// import {action} from '@storybook/addon-actions';
import {withInfo} from '@storybook/addon-info';
import NarrowLayout from 'app/components/narrowLayout';
storiesOf('NarrowLayout', module).add(
'default',
withInfo('A narrow layout')(() => <Na... |
src/components/MessageMedia/MessageMediaVoice.js | nolawi/champs-dialog-sg | /**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import type { MessageMediaAudio } from '@dlghq/dialog-types';
import React from 'react';
import Voice from '../MessageContent/Voice/Voice';
import classNames from 'classnames';
import styles from './MessageMedia.css';
export type Props = {
className?: stri... |
packages/material-ui-icons/src/ArrowDownwardOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" /></React.Fragment>
, 'ArrowDownwardOutlined');
|
Jumpstart/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-destructuring/node_modules/babel-runtime/node_modules/core-js/client/library.js | Ramshackle-Jamathon/Interactive-Experiments | /**
* core-js 1.2.5
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
packages/material-ui-icons/src/DeleteSweepOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M15 16h4v2h-4zM15 8h7v2h-7zM15 12h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zm2-8h6v8H5v-8zM10 4H6L5 5H2v2h12V5h-3z" /></React.Fragment>... |
05-build-cache/resources/assets/js/app3.js | Imballinst/webpack-incremental-tutorial | import React from 'react';
import feelsBadMan from '../img/feelsbadman.png';
import jquery from 'jquery';
import moment from 'moment';
import '../scss/index.scss';
console.log('xp');
|
app/javascript/mastodon/components/loading_indicator.js | hyuki0000/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
client/src/components/Draft/DraftStartButton.js | BDiuguid/fantasy-fifa | import React from 'react';
import Button from '@material-ui/core/Button';
import FileCopy from '@material-ui/icons/FileCopy';
import { compose, withHandlers } from 'recompose';
import { range } from 'lodash';
import { graphql } from 'react-apollo';
import { loader } from 'graphql.macro';
import UserQuery from '../UserQ... |
app/javascript/mastodon/features/introduction/index.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeOnboarding } from '../../actions/onboarding';
import screenHell... |
ajax/libs/yasgui/1.0.3/yasgui.min.js | cloudrifles/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... |
ajax/libs/reactive-coffee/0.0.2/reactive-coffee.js | Sneezry/cdnjs | (function() {
var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, lagBind, mkMap, mktag, mkuid, nextUid, popKey, recorder, rx, rxt, specialAttrs, tag, tags, _fn, _i, _len, _ref, _ref1, _ref2, _ref3,
__hasProp... |
docs/app/containers/Layout/Layout.js | react-fabric/react-fabric | import React from 'react'
import AppBar from '../../components/AppBar'
require('../../global.js')
const Layout = ({ children }) => (
<div>
<AppBar fixed />
{ children }
</div>
)
Layout.propTypes = {
children: React.PropTypes.node
}
export default Layout
|
Paths/React/05.Building Scalable React Apps/1-react-boilerplate-building-scalable-apps-m1-exercise-files/Before/app/containers/LanguageProvider/index.js | phiratio/Pluralsight-materials | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
src/index.js | martintasker/cognito-manage | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import './index.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
Tests/Components/FullButtonTest.js | infinitered/ChainReactApp | // // https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md
import test from 'ava'
// import React from 'react'
// import FullButton from '../../App/Components/FullButton'
// import { shallow } from 'enzyme'
// // Basic wrapper
// const wrapper = shallow(<FullButton onPress={() => {}} text='hi' />)
// test... |
src/isomorphic/modern/class/ReactComponent.js | linmic/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
src/components/common/svg-icons/places/casino.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesCasino = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z... |
fields/components/columns/IdColumn.js | concoursbyappointment/keystoneRedux | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
stories/GridWithCardLayout/ExampleRowWithEqualHeight.js | skyiea/wix-style-react | import React from 'react';
import {Container, Row, Col, Card} from '../../src/Grid';
import styles from './ExampleGrid.scss';
import TextField from '../../src/TextField';
import Input from '../../src/Input';
import Label from '../../src/Label';
function renderStandardInput() {
return (
<TextField>
<Label
... |
src/app.js | albburtsev/migrate-to-redux | import 'bootstrap/dist/css/bootstrap.css';
import 'styl/app.styl';
import store from 'store';
import * as paths from 'paths';
import {createHistory} from 'history';
import {Router, Route, IndexRoute} from 'react-router';
import React from 'react';
import {Provider} from 'react-redux';
import ReactDOM from 'react/lib/... |
ajax/libs/jqwidgets/13.1.0/jqwidgets-react-tsx/jqxgauge/react_jqxgauge.esm.min.js | cdnjs/cdnjs | import*as jqxcore from"../../jqwidgets/jqxcore";import*as jqxdraw from"../../jqwidgets/jqxdraw";import*as jqxgauge from"../../jqwidgets/jqxgauge";import{createElement,PureComponent}from"react";var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__p... |
dist/react-modal.js | x5a/react-modal | (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}else{g=this}g.ReactModal = f... |
src/Card.js | bernunca/memory-game | import React, { Component } from 'react';
let defaultImage = "url(https://avatars0.githubusercontent.com/u/24419737)";
class Card extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
this.props.onClick(this.props.id);
}
rend... |
fixtures/dom/src/components/fixtures/input-change-events/index.js | jordanpapaleo/react | import React from 'react';
import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import RangeKeyboardFixture from './RangeKeyboardFixture';
import RadioClickFixture from './RadioClickFixture';
import InputPlaceholderFixture from './InputPlaceholderFixture';
class InputChangeEvents extends ... |
src/components/Chip.js | MichelML/masaq.com | import React from 'react';
const Chip = (props) => {
const shouldRender = (props.typeOfChips) ? true : false;
if (!shouldRender) {
return null;
}
const classes = `md-chip ${props.extraClasses || ""}`;
return (
<div className={classes}>
<span className="md-chip-text">{props... |
pootle/static/js/shared/utils/i18n.js | ta2-1/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
/**
* Make it possible React... |
src/components/auth/requireAuth.js | mdunnegan/ReactFrontEndAuthentication | import React, { Component } from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authentication extends Component {
static contextTypes = {
router: React.PropTypes.object
}
componentWillMount() {
// Just checking global redux state
if ... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MeetingScheduleButton/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import MeetingScheduleButton from 'ringcentral-widgets/components/MeetingScheduleButton';
const props = {};
props.onClick = () => alert('clicked');
/**
* A example of `MeetingScheduleButton`
*/
const MeetingScheduleButtonDemo = () => (
<MeetingScheduleButton
... |
examples/huge-apps/routes/Messages/components/Messages.js | ustccjw/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
extensions/finance/components/StockTicker.js | axax/lunuc | import React from 'react'
import PropTypes from 'prop-types'
import styles from './style.css'
import Async from '../../../client/components/Async'
import {client} from '../../../client/middleware/graphql'
const Card = (props) => <Async {...props} expose="Card"
load={import(/* web... |
mm-react/src/routes/Documentation.js | Ameobea/tickgrinder | //! Documentation page with documentation on the platform, the MM interface, and general help resources.
/* global CKEDITOR */
import React from 'react';
import { Row, Col } from 'antd';
import ContentContainer from '../components/ContentContainer';
import DocSearcher from '../components/docs/DocSearcher';
import Doc... |
ajax/libs/yui/3.1.0/event-custom/event-custom.js | hare1039/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
app/assets/javascripts/components/story/StoryHistoryLocation.js | Codeminer42/cm42-central | import React from 'react';
import StoryActionButton from './StoryActionButton'
const StoryHistoryLocation = ({ id, url }) =>
<div className="col-xs-12 form-group input-group input-group-sm">
<input
className="form-control input-sm"
id={`story-link-${id}`}
readOnly="readonly"
value={url}
... |
app/client/src/components/Navbar/index.js | barahuang/rss-news-reader | import React from 'react';
import { NavLink } from 'react-router-dom';
import anime from '../Anime';
import './index.css';
import Text from '../Text';
const animateNews = () => {
anime('#news .featured-text-letter', 'lettering');
};
const animateFavorite = () => {
anime('#favorite .featured-text-letter', 'letteri... |
packages/material-ui-icons/src/CellWifiSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M6 22h16V5.97L6 22z" /><path d="M18 9.98L6 22h12V9.98zM3.93 5.93l1.29 1.29c3.19-3.19 8.38-3.19 11.57 0l1.29-1.29c-3.91-3.91-10.25-3.91-14.15 0zm5.14 5.14L11 13l1.93-1.... |
src/svg-icons/toggle/radio-button-checked.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleRadioButtonChecked = (props) => (
<SvgIcon {...props}>
<path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3... |
ajax/libs/angular-google-maps/1.1.4/angular-google-maps.js | humbletim/cdnjs | /*! angular-google-maps 1.1.4 2014-06-19
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softwa... |
ajax/libs/react-router/2.0.0-rc1/ReactRouter.min.js | dhenson02/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
test/Card.spec.js | itsolutions-dev/react-styled-ui | import React from 'react';
import ReactTestRenderer from 'react-test-renderer';
import 'styled-components-test-utils/lib/jest';
import theme from '../src/theme';
import Card from '../src/Card';
describe('Card', () => {
test('should render a Card', () => {
const component = ReactTestRenderer.create(<Card theme={t... |
ajax/libs/webshim/1.15.7/dev/shims/moxie/js/moxie-html4.js | freak3dot/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/svg-icons/hardware/tablet-mac.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletMac = (props) => (
<SvgIcon {...props}>
<path d="M18.5 0h-14C3.12 0 2 1.12 2 2.5v19C2 22.88 3.12 24 4.5 24h14c1.38 0 2.5-1.12 2.5-2.5v-19C21 1.12 19.88 0 18.5 0zm-7 23c-.83 0-1.5-.67-1.5-1.5s.67-1... |
ajax/libs/extjs/4.2.1/src/view/Table.js | steakknife/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
client/src/components/SpeakersPage.js | rantav/reversim-summit-2017 | import React from 'react';
import { colors } from '../utils';
import Page from "./Page";
import {Col, Container, Row} from "reactstrap";
import Speaker from "./Speaker";
const SpeakerItem = (speaker, i) => {
return <Col xs="12" sm="6" className="mb-4" key={i}>
<Speaker {...speaker} color={colors[i%colors.length]... |
src/@ui/typography/H5/H5.stories.js | NewSpring/Apollos | import React from 'react';
import { View } from 'react-native';
import { storiesOf } from '@storybook/react-native';
import H5 from './';
storiesOf('typography/H5', module)
.add('Default', () => (
<H5>{'"Faith does not eliminate questions. But faith knows where to take them." ― Elisabeth Elliot'}</H5>
))
.... |
src/components/EyeIcon/EyeIcon.js | tlraridon/ps-react-train-tlr | import React from 'react';
/** SVG Eye Icon. */
function EyeIcon() {
// Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg
return (
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<g transform="matrix(.02146 0 0 .02146 1 1)" fil... |
app/containers/NewsFeed/NewsFeedItem.js | rapicastillo/beautifulrising-client | import React from 'react';
import styled from 'styled-components';
import {Link} from 'react-router';
import ContentBlock from 'components/ContentBlock';
import { FormattedMessage, injectIntl } from 'react-intl';
import LanguageThemeProvider from 'components/LanguageThemeProvider';
import Timestamp from 'react-timestam... |
ajax/libs/fluentui-react/7.116.1/fluentui-react.min.js | cdnjs/cdnjs | var FluentUIReact=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symb... |
ajax/libs/formsy-react/0.11.2/formsy-react.min.js | jonobr1/cdnjs | !function t(i,s,r){function e(o,u){if(!s[o]){if(!i[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(n)return n(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var d=s[o]={exports:{}};i[o][0].call(d.exports,function(t){var s=i[o][1][t];return e(s?s:t)},d,d.ex... |
ajax/libs/orb/1.0.4/orb.js | BobbieBel/cdnjs | /**
* orb v1.0.4, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.4
* @link http://nnajm.github.io/orb/
* @license MIT
*/
'use strict';
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
els... |
test/basic-test.js | dfejgelis/know-you-better | // import React from 'react'
import { assert } from 'chai'
describe('Array', () => {
describe('#indexOf()', () => {
it('should return -1 when the value is not present', () => {
assert.equal(-1, [1,2,3].indexOf(5))
assert.equal(-1, [1,2,3].indexOf(0))
})
})
})
|
u-tang/client/modules/api/components/.stories/api_view.js | kurapikats/uhackp2p | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import ApiView from '../api_view.jsx';
storiesOf('api.ApiView', module)
.add('default view', () => {
return (
<ApiView />
);
})
|
src/www/js/monsters.js | nickolusroy/react_dnd | import React from 'react';
import ReactDOM from 'react-dom';
import * as utilities from "./utilities.js";
import monsterData from '../json/monsters.json';
import { SubmitButton } from './form-fields/submit-button.js';
import { TextInput } from './form-fields/text-input.js';
import { ButtonGroup } from './form-fields/bu... |
files/angularjs/1.0.3/angular-scenario.js | MaxMillion/jsdelivr | /*!
* jQuery JavaScript Library v1.7.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... |
angular-rails/freelance-camp-fe/node_modules/@angular/forms/src/directives/reactive_directives/form_control_directive.js | mrmcduff/udemyprojects | /**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[... |
framework/zii/widgets/assets/gridview/jquery.yiigridview.js | darug/dds-yii | /**
* jQuery Yii GridView plugin file.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright © 2008-2010 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
(function ($) {
var selectCheckedRows, methods,
gridSettings = [];
/**
* 1. Se... |
scaffold/templates/statelessComponent.js | SteMcLellan/queryman | import React from 'react';
const {{ComponentName}} = () => {
return (
<div>{{ComponentName}} -- Stateless</div>
);
}
export default {{ComponentName}};
|
packages/docs/pages/plugin/inline-toolbar/index.js | draft-js-plugins/draft-js-plugins | // eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import customExampleCode from '!!raw-loader!../../../components/Examples/inline-toolbar/CustomInlineToolbarEditor';
// eslint-disable-next-line import/no-unresolved
import customExampleEditorStylesCode from '!!raw-loader!.... |
app/Translator.js | enisey14/platform | import React from 'react';
import isString from 'lodash/isString';
import isObject from 'lodash/isObject';
import isUndefined from 'lodash/isUndefined';
import { connect } from 'react-redux'
import { IntlProvider, addLocaleData, injectIntl } from 'react-intl';
import LocalizedCurrency from 'app/components/elements/Loca... |
node_modules/react-router-dom/node_modules/react-router/es/Switch.js | millerman86/CouponProject | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
test/is.js | planttheidea/crio | // test
import test from 'ava';
import React from 'react';
// src
import * as is from 'src/is';
import CrioArray from 'src/CrioArray';
import CrioObject from 'src/CrioObject';
const array = ['foo'];
const bool = true;
const crioArray = new CrioArray(['foo']);
const crioObject = new CrioObject({foo: 'bar'});
const fun... |
fields/types/date/DateColumn.js | tony2cssc/keystone | import React from 'react';
import moment from 'moment';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var DateColumn = React.createClass({
displayName: 'DateColumn',
propTypes: {
co... |
js/setup.js | gectorat/react-native-app |
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import firebase from 'firebase';
import App from './App';
import firebaseConfig from './firebase.config';
import configureStore from './configureStore';
function setup():React.Component {
class Root extends Component {
construct... |
app/containers/HolidaysPage/index.js | zebbra-repos/Zeiterfassung-medi | /*
*
* HolidaysPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { bindRoutineCreators } from 'redux-saga-routines';
import { createStructuredSelector } from 'reselect';
import { fromJS } from 'immutabl... |
node_modules/react-images/src/components/Arrow.js | ed1d1a8d/macweb | import PropTypes from 'prop-types';
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import defaults from '../theme';
import { deepMerge } from '../utils';
import Icon from './Icon';
function Arrow ({
direction,
icon,
onClick,
size,
...props,
},
{
theme,
}) {
const classes =... |
js/jqwidgets/demos/react/app/grid/pinnedfrozencolumns/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'xml',
datafields: [
{ name: 'ProductName' }... |
source/client/components/sub-components/NavbarUserMenu.js | achobanov/ReactJS-Fundamentals-lab | import React from 'react';
import { Link } from 'react-router';
import UserActions from '../../actions/UserActions';
import UserStore from '../../stores/UserStore';
export default class NavbarUserMenu extends React.Component {
constructor(props) {
super(props);
this.state = UserStore.ge... |
app/components/ColorPicker/__tests__/ColorPicker.spec.js | igr-santos/hub-client | import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import { ColorPicker } from '../ColorPicker'
describe('app/components/ColorPicker/ColorPicker', () => {
let wrapper
const props = {
dispatch: () => {}
}
before(() => {
wrapper = shallow(<ColorPicker {...props} />... |
src/component/textInput.spec.js | sjcrank/viz-data-generator | import test from 'ava';
import { shallow } from 'enzyme';
import React from 'react';
import { StyleSheetTestUtils } from 'aphrodite';
import TextInput from './textInput';
test.beforeEach('disable style injection', () => {
StyleSheetTestUtils.suppressStyleInjection();
});
test.afterEach('resume style injection', (... |
dapp/src/routes/dao/containers/page.js | airalab/DAO-IPCI | import React from 'react'
import { connect } from 'react-redux'
import Layout from '../../../shared/components/common/layout'
const Container = (props) => {
const { title, menu, children, back } = props
return (<Layout
title={title}
menu={menu}
back={back}
>
{children}
</Layout>)
}
function m... |
src/svg-icons/toggle/star-border.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStarBorder = (props) => (
<SvgIcon {...props}>
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1... |
app/pages/signup.js | florapdx/flux-app-template | import React from 'react';
import _ from 'lodash';
import {RouteHandler} from 'react-router';
import {Button, Input} from 'react-bootstrap';
import AccountActions from '../../actions/account-actions';
import AccountStore from '../../stores/account-store';
const INPUT_FIELDS = [
{field: "email", title: "Email", pl... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | tkirda/react-router | /*globals COURSES:true */
import React from 'react'
class Grades extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment... |
test-cases/javascript/frameworks/react/src/components/QueryResult.js | google/security-crawl-maze | import React from 'react';
import {connect} from 'react-redux';
import {reset} from '../actions/actions';
class QueryResult extends React.Component {
componentDidMount() {
this.props.reset();
}
componentDidUpdate() {
this.props.reset();
}
render() {
return (<h2>You have searched '{this.props.ma... |
ajax/libs/jquery/1.4.1/jquery.min.js | nesk/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.
... |
node_modules/react/umd/react.development.js | ishaiMeresman/moveMe | /** @license React v16.0.0
* react.development.js
*
* Copyright (c) 2013-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.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undef... |
techCurriculum/ui/starter_code/cards-app/src/components/CardForm.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
ajax/libs/react-redux/7.1.0-alpha.1/react-redux.js | joeyparrish/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) :
(global = global || self, factory(glo... |
where-to-turn-next_files/jquery-1.11.3/jquery.min.js | ajlyons/rspatial-baygeo-f17 | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
test/app/components/MainSection.spec.js | Guadalsurfers/chrome-extension-bullshitmeter | import { expect } from 'chai';
import sinon from 'sinon';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import MainSection from '../../../app/components/MainSection';
import style from '../../../app/components/MainSection.css';
import TodoItem from '../../../app/components/TodoItem';
impor... |
ajax/libs/forerunnerdb/1.3.591/fdb-core+views.js | dhenson02/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/containers/Animations.js | vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome | import React from 'react';
import PropTypes from 'prop-types';
import MyPage from './MyPage';
import {Page, List, ListItem, ListHeader} from 'react-onsenui';
const capitalize = (str) => str.replace(/^[a-z]/, (c) => c.toUpperCase());
class Animations extends React.Component {
pushPage(transition) {
const... |
ajax/libs/mediaelement/2.1.1/jquery.js | ppoffice/cdnjs | /*!
* jQuery JavaScript Library v1.5.1rc1
* 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 License... |
test/TableSpec.js | leozdgao/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Table from '../src/Table';
describe('Table', function () {
it('Should be a table', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(React.findDOMNode(instance).nodeName,... |
tests/Formsy-spec.js | optiopay/optiopay-form | import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import TestInput from './utils/TestInput';
import immediate from './utils/immediate';
import sinon from 'sinon';
export default {
'Setting up a form': {
'should render a for... |
src/React/CollapsibleControls/QueryDataModelControl/example/index.js | Kitware/paraviewweb | import 'normalize.css';
import React from 'react';
import ReactDOM from 'react-dom';
import jsonData from 'paraviewweb/src/React/Widgets/QueryDataModelWidget/example/info';
import QueryDataModel from 'paraviewweb/src/IO/Core/QueryDataModel';
import QueryDataModelControl from 'paraviewweb/src/React/CollapsibleControls... |
src/interface/layout/Footer/index.js | FaideWW/WoWAnalyzer | import React from 'react';
import DiscordLogo from 'interface/icons/DiscordTiny';
import GithubLogo from 'interface/icons/GitHubMarkSmall';
import PatreonIcon from 'interface/icons/PatreonTiny';
import './style.css';
class Footer extends React.PureComponent {
render() {
return (
<footer>
<div cla... |
mobile/components/posts/Post.js | MatthieuLemoine/open-image-feed | import React, { Component } from 'react';
import { View, Text, Image, StyleSheet, Dimensions } from 'react-native';
import { Card, IconToggle, Icon } from 'react-native-material-design';
import { PRIMARY, SECONDARY } from '../../styles/material';
import { since } from '../../../common/utils/date';
import CommentList fr... |
app/boards/mercedes-amg-gt3/components/fixed-number.js | fermio/motorsport-display | import React from 'react';
const FixedNumber = React.createClass({
propTypes: {
id: React.PropTypes.string.isRequired,
legend: React.PropTypes.string.isRequired,
precision: React.PropTypes.string,
num: React.PropTypes.number,
},
getDefaultProps: function() {
return ... |
packages/material-ui-icons/src/PhotoCameraOutlined.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="M14.12 4l1.83 2H20v12H4V6h4.05l1.83-2h4.24M15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2z" /... |
node_modules/react-icons/fa/trash-o.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaTrashO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m15.9 16.4v12.9q0 0.3-0.2 0.5t-0.5 0.2h-1.4q-0.3 0-0.5-0.2t-0.2-0.5v-12.9q0-0.3 0.2-0.5t0.5-0.2h1.4q0.3 0 0.5 0.2t0.2 0.5z m5.7 0v12.9q0 0.3-0.2 0.5t-0.5 0.2h-1.4q-0.3... |
src/components/bio.js | chrishunt/chrishunt.github.com | /**
* Bio component that queries for data
* with Gatsby's useStaticQuery component
*
* See: https://www.gatsbyjs.com/docs/use-static-query/
*/
import React from "react"
const Bio = () => {
return (
<div className="my-4 opacity-50">
<p>
<span className='font-bold'>↓ Chris Hunt</span>
... |
src/svg-icons/image/control-point-duplicate.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPointDuplicate = (props) => (
<SvgIcon {...props}>
<path d="M16 8h-2v3h-3v2h3v3h2v-3h3v-2h-3zM2 12c0-2.79 1.64-5.2 4.01-6.32V3.52C2.52 4.76 0 8.09 0 12s2.52 7.24 6.01 8.48v-2.16C3.64 17.2 2 14.79 2 ... |
wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/js/jquery/jquery.js | Artgorae/wp-artgorae | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
media/static/admin/js/jquery.js | mwcz/phyton | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
examples/flux-chat/js/components/ThreadListItem.react.js | gougouGet/flux | /**
* This file is provided by Facebook for 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,
* FITNESS FOR A PARTICUL... |
app/components/StatusBar.js | ARMataTeam/ARMata | // @flow
import React, { Component } from 'react';
import styles from './StatusBar.css'; // eslint-disable-line flowtype-errors/show-errors
export default class StatusBar extends Component {
props: {
selectedFilename: string,
lines: number,
characters: number,
loadedIn: number,
isEdited: boolean,... |
app/containers/App/messages.js | juanda99/arasaac-frontend | import { defineMessages } from 'react-intl'
export default defineMessages({
pictograms: {
id: 'header.pictograms',
description: 'Header title',
defaultMessage: 'Pictograms'
},
pictogramsSearch: {
id: 'header.pictogramsSearch',
description: 'Header title',
defaultMessage: 'Search pictogram... |
react/boiling_calculator/src/index.js | greganswer/devnotes | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/components/MultiSelect/__tests__/FilterableMultiSelect-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 { mount } from 'enzyme';
import MultiSelect from '../../MultiSelect';
import {
assertMenuClosed,
assert... |
node_modules/firebase/auth.js | abilaashsai/Sai-Kailash-Ooty-Website | var firebase = require('./app');
(function(){
/*! @license Firebase v3.6.10
Build: 3.6.10-rc.1
Terms: https://firebase.google.com/terms/ */
(function(){var h,aa=aa||{},l=this,ba=function(){},m=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.