path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/Collapse.js | omerts/react-bootstrap | import React from 'react';
import Transition from './Transition';
import domUtils from './utils/domUtils';
import createChainedFunction from './utils/createChainedFunction';
let capitalize = str => str[0].toUpperCase() + str.substr(1);
// reading a dimension prop will cause the browser to recalculate,
// which will l... |
pootle/static/js/browser/components/BrowserTableRow.js | evernote/zing | /*
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing 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 cx from 'classnames';
import React from 'react';
impor... |
browser/components/filter-search/filter-search.component.js | smanwaring/relationship-visualizer | import React, { Component } from 'react';
import { connect } from 'react-redux';
import FlatButton from 'material-ui/FlatButton';
import Popover from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import TextField from 'material-ui/TextField';
/* -------------... |
docs/src/pages/style/TypographyTheme.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
const styles = theme => ({
root: theme.typography.button,
});
function TypograpghyTheme(props) {
return (
<div className={props.classes.root}>
{'This div looks like a button.'}
... |
shared/store/configureStore.js | inCodeSystemsNsk/frontend-boilerplate | import React from 'react'
import { createStore, combineReducers, compose, applyMiddleware } from 'redux'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import { routerReducer, routerMiddleware } from 'react-route... |
src/parser/druid/feral/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Anatta336 } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone buil... |
examples/with-react-router-3/src/App.js | jaredpalmer/react-production-starter | import React from 'react';
import './App.css';
class App extends React.Component {
render() {
return <div>{this.props.children}</div>;
}
}
export default App;
|
extensions/amp-fit-text/1.0/test/standalone/test-bento-fit-text.js | danielrozenberg/amphtml | import {CSS} from '#build/bento-fit-text-1.0.css';
import {adoptStyles} from '#bento/util/unit-helpers';
import {createElementWithAttributes} from '#core/dom';
import {computedStyle} from '#core/dom/style';
import {defineBentoElement} from '#preact/bento-ce';
import {waitFor} from '#testing/helpers/service';
impor... |
src/containers/Router.js | luckybirdme/reactjs-cnodejs | import React from 'react'
import {
BrowserRouter,
Route,
Link
} from 'react-router-dom'
import Home from './Home'
import About from './About'
import Login from './Login'
import Create from './Create'
import Detail from './Detail'
import User from './User'
// Some folks find value in a centralized route config... |
ajax/libs/cellx/1.7.99/cellx.umd.js | cdnjs/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["cellx"] = factory();
else
root["cellx"]... |
src/client/assets/js/nodes/processors/uibuilder/components/NotFound/NotFound.js | me-box/iot.red | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class NotFound extends Component {
render() {
return (
<div className="container text-center">
<h1>This is a demo 404 page!</h1>
<hr />
<Link to="/">Back To Home View</Link>
</div>
... |
server/server.js | openfocus/HTH-MERN | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.confi... |
node_modules/native-base/__tests__/backward/Button.android.js | tausifmuzaffar/bisApp | import 'react-native';
import renderer from 'react-test-renderer';
import React from 'react';
import { Button } from './../../src/backward/Widgets/Button';
// import Icon from '../../../Components/Widgets/Icon';
// Note: test renderer must be required after react-native.
jest.mock('Platform', () => {
const Platf... |
src/svg-icons/notification/adb.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAdb = (props) => (
<SvgIcon {...props}>
<path d="M5 16c0 3.87 3.13 7 7 7s7-3.13 7-7v-4H5v4zM16.12 4.37l2.1-2.1-.82-.83-2.3 2.31C14.16 3.28 13.12 3 12 3s-2.16.28-3.09.75L6.6 1.44l-.82.83 2.1 2.1C6.14... |
ajax/libs/webshim/1.14.3-RC3/dev/shims/moxie/js/moxie.js | gokuale/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 ... |
ajax/libs/yui/3.8.0/datatable-body/datatable-body-debug.js | viskin/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/ChooseType.js | naconner/lamassu-server | import { Field } from 'formik'
import React from 'react'
import * as Yup from 'yup'
import ToggleButtonGroup from 'src/components/inputs/formik/ToggleButtonGroup'
import { H4 } from 'src/components/typography'
import { ReactComponent as Keyboard } from 'src/styling/icons/compliance/keyboard.svg'
import { ReactComponen... |
app/render/scripts/components/App.js | swashcap/sample-electron-setup | import React, { Component } from 'react';
export default class App extends Component {
displayName: 'App'
render() {
return (
<div>
<h1>Welcome to Sample Electron Setup!</h1>
</div>
);
}
}
|
docs/src/app/components/pages/components/Dialog/ExampleModal.js | IsenrichO/mui-with-arrows | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* A modal dialog can only be closed by selecting one of the actions.
*/
export default class DialogExampleModal extends React.Component {
sta... |
src/@ui/ContentView/Media/AudioBanner/AudioBanner.tests.js | NewSpring/Apollos | import React from 'react';
import renderer from 'react-test-renderer';
import Providers from '@ui/TestProviders';
import AudioBanner from './';
describe('the AudioBanner component', () => {
it('should render', () => {
const tree = renderer.create(
<Providers>
<AudioBanner />
</Providers>,
... |
ajax/libs/yui/3.1.0/loader/loader-base.js | BobbieBel/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
packages/reactor-tests/src/tests/rel/RelGridColumn.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container, Grid, Column, WidgetCell, SparkLineLine } from '@extjs/ext-react';
export default class RelGridColumn extends Component {
store = Ext.create('Ext.data.Store', {
data: [
{ first: 'Mark', last: 'Brocato', trend: [1,2,3,4,3,2,1] }
... |
js/FortranCompilePanel.react.js | Sable/McLab-Web | import AT from './constants/AT';
import classnames from 'classnames';
import Dispatcher from './Dispatcher';
import DropdownSelect from './DropdownSelect.react';
import FortranCompileActions from './actions/FortranCompileActions';
import FortranCompileArgumentSelector from './FortranCompileArgumentSelector.react';
impo... |
j-forms/source/forms/smtp_sendmail_database/login_2/j-folder/js/jquery.1.11.1.min.js | Serious-Rage/SOCIAL-RAGE | /*! 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... |
src/Badge.js | andrew-d/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
hasContent() {
return ValidComponentChildren.hasValidComponent(this.props.children) ||
... |
app/js/components/Demo.js | liuyan5258/reactjs-hotcss-flexbox | import React from 'react';
import { Link } from 'react-router';
export default class Demo extends React.Component {
render(){
return (
<div className="g-content">
<ul className="m-demo-list">
<li><Link to="/modals">modals</Link></li>
<li><Link to="/slider">slider</Link></li>
... |
ajax/libs/oojs-ui/0.17.1/oojs-ui.js | dlueth/cdnjs | /*!
* OOjs UI v0.17.1
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2016-05-03T22:58:02Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and s... |
__tests__/components/Image.js | weaintplastic/react-sketchapp | import React from 'react';
import renderer from 'react-test-renderer';
import Image from '../../src/components/Image';
describe('<Image />', () => {
it('renders children', () => {
const tree = renderer.create(<Image source="foo"><foo /></Image>).toJSON();
expect(tree).toMatchSnapshot();
});
it('flatten... |
theme/ThemeSite_files/jquery.js | agomespb/jakcmodaintima | /*! jQuery v1.7.1 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 cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
app/screens/event-detail/EventDetailScreen.js | akilb/rukatuk-mobile | import React, { Component } from 'react';
import {
Image,
Linking,
Platform,
ScrollView,
Share,
Text,
TouchableWithoutFeedback,
View
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import MapView from 'react-native-maps';
import Button from 'apsl-react-native-button';
i... |
ui/src/js/profile/tools/Certificates.js | Dica-Developer/weplantaforest | import Accounting from 'accounting';
import axios from 'axios';
import counterpart from 'counterpart';
import moment from 'dayjs';
import React, { Component } from 'react';
import IconButton from '../../common/components/IconButton';
import Notification from '../../common/components/Notification';
class PlantBag exten... |
ajax/libs/primereact/7.2.0/splitter/splitter.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { DomHandler, ObjectUtils, classNames } from 'primereact/utils';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
return arr2;
}
functi... |
examples/js/jquery.js | calvinmetcalf/selectize.js | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
src/components/Dilution.js | ntwcklng/react-dilutioncalc | import React from 'react';
export default class Dilution extends React.Component {
dilutionClickHandler() {
this.props.updateDil(this.props.part1, this.props.part2);
}
render() {
return (
<button type="button" className='btn btn-default' onClick={this.dilutionClickHandler.bind(this)}>
{this... |
examples/enyo_backbone/lib/app.js | szytko/todomvc |
// minifier: path aliases
enyo.path.addPaths({layout: "C://VSProjects/WebSites/ToDoMvc/enyo/tools/../../lib/layout/", mvc: "C://VSProjects/WebSites/ToDoMvc/enyo/tools/../../lib/mvc/", css: "../source/css/"});
// FittableLayout.js
enyo.kind({
name: "enyo.FittableLayout",
kind: "Layout",
calcFitIndex: function() {
fo... |
src/svg-icons/device/wifi-tethering.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiTethering = (props) => (
<SvgIcon {...props}>
<path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21... |
ajax/libs/material-ui/4.10.2/esm/Switch/Switch.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{refType}from"@material-ui/utils";import withStyles from"../styles/withStyles";impo... |
client/src/components/Profile/Profile.js | Darkrender/raptor-ads | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Grid } from 'semantic-ui-react';
import { push } from 'react-router-redux';
import ProfileDashboard from './ProfileDashboard';
import Inbox from './Inbox/Inbox';
import ProfileSettings from './profileSettings';
import P... |
js/jquery.js | osvaldoalvaradodev/personas | /*! 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... |
ajax/libs/thorax/2.2.1/thorax-combined.js | LostCrew/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-1-14
*/
(function( window, undefined ) {
"use strict";... |
src/Input.js | bbc/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'FormControls.S... |
docs/app/Examples/modules/Popup/Variations/index.js | vageeshb/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const PopupVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Basic'
descripti... |
ajax/libs/react-dom/16.1.0-beta/cjs/react-dom-test-utils.development.js | sashberd/cdnjs | /** @license React v16.1.0-beta
* react-dom-test-utils.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.
*/
'use strict';
if (process.env.NODE_ENV !== "production") {
(funct... |
ajax/libs/yui/3.11.0pr1/scrollview-base/scrollview-base.js | steadiest/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
ajax/libs/rxjs/2.3.0/rx.lite.compat.js | ppavlov/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
ajax/libs/video.js/5.0.0-rc.51/video.js | wout/cdnjs | /**
* @license
* Video.js 5.0.0-rc.51 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
src/components/App.js | Donnzh/TwitterTrends | import React from 'react';
import { browserHistory, Router } from 'react-router';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
routes: PropTypes.object.isRequired,
}
shouldComponen... |
packages/@lyra/form-builder/src/inputs/DateInputs/DateInput.js | VegaPublish/vega-studio | // @flow
import type Moment from 'moment'
import moment from 'moment'
import React from 'react'
import PatchEvent, {set, unset} from '../../PatchEvent'
import type {Marker} from '../../typedefs'
import BaseDateTimeInput from './BaseDateTimeInput'
type ParsedOptions = {
dateFormat: string,
calendarTodayLabel: strin... |
FunctionalTest/UpgradeTest/prestashop/js/jquery/jquery-1.11.0.min.js | djfm/pstaf | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
pootle/static/js/shared/components/FormCheckedInput.js | dwaynebailey/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';
const FormCheckedInput = Reac... |
ajax/libs/yui/3.10.3/event-custom-base/event-custom-base.js | xirzec/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* 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.
* @mo... |
src/pages/sorting/Pancake/Pancake.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Pancake extends React.Component {
render() {
return (
<div>Pancake</div>
)
}
}
export default Pancake |
social/js/app.49af9d2a.js | ZenekeZene/zenekezene.github.io | (function(t){function e(e){for(var i,o,r=e[0],c=e[1],l=e[2],p=0,d=[];p<r.length;p++)o=r[p],Object.prototype.hasOwnProperty.call(a,o)&&a[o]&&d.push(a[o][0]),a[o]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(t[i]=c[i]);u&&u(e);while(d.length)d.shift()();return s.push.apply(s,l||[]),n()}function n(){for(var t,... |
app/routes/NotFound/components/NotFoundView.js | ming-soon/mern-starter | import React from 'react'
const NotFoundView = () => (
<h2>Not Found</h2>
)
export default NotFoundView
|
node_modules/react-icons/md/multiline-chart.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdMultilineChart = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m36.6 11.6l-5 5.7c1.8 2.9 3 6.4 3.4 10.2h-3.4c-0.3-2.7-1.1-5.3-2.4-7.6l-6.7 7.6-6.6-6.7-10 10-2.5-2.5 12.5-12.5 6.6 6.7 4.8-5.5c-2.9-3.3-6.8-5.4-11.3-5.4-3.9 0... |
CompositeUi/src/views/component/Selector.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/components/_selector... |
ajax/libs/jquery/1.10.2/jquery.min.js | FezVrasta/cdnjs | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim... |
src/components/Notification/NotificationContent/DeletedTagFromRestaurant/DeletedTagFromRestaurant.js | labzero/lunch | import PropTypes from 'prop-types';
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from '../NotificationContent.scss';
const DeletedTagFromRestaurant = ({
loggedIn,
user,
restaurantName,
tagName,
showMapAndInfoWindow
}) => {
const restaurantEl = (
<... |
common/components/Search.js | alexdvance/the-watcher | import { provideHooks } from 'redial'
import React from 'react'
import { connect } from 'react-redux'
import { searchMedia } from '../routes/Home/actions'
import { displaySearchResults } from '../routes/Home/reducer'
import axios from 'axios';
import { StyleSheet, css } from 'aphrodite'
var searchResults = [];
functi... |
src/docs/examples/TextInput/ExampleError.js | thomashoggard/ps-react-tom | import React from 'react';
import TextInput from 'ps-react-tom/lib/TextInput';
/** Optional TextBox */
export default class ExampleOptional extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
required
... |
src/index.js | rpowelll/universal-react-boilerplate | /* @flow */
/* global module */
import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import { Provider } from 'react-redux'
import { BrowserRouter as Router } from 'react-router-dom'
import App from './components/App'
import configureStore from './store/configureSto... |
test/AlertSpec.js | Lucifier129/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Alert from '../src/Alert';
describe('Alert', () => {
it('Should output a alert with message', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Alert>
<strong>Message... |
node_modules/react-router/MemoryRouter.js | charmainetham/charmainetham.github.io | 'use strict';
exports.__esModule = true;
var _warning = require('warning');
var _warning2 = _interopRequireDefault(_warning);
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _createMemo... |
app/imports/ui/client/layouts/UserStories/index.js | valcol/ScrumNinja | import React, {Component} from 'react';
import UserStoriesBox from '../../components/UserStories';
class UserStories extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="UserStories">
<UserStoriesBox {...this.props}/>
</div>
);
}
}
expo... |
src/js/components/icons/base/Tasks.js | odedre/grommet-final | /**
* @description Tasks SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @prop... |
component/Layout.js | alivelee/NextTech | import React from 'react';
import PropTypes from 'prop-types';
import Error from '../pages/_error';
import { Wrapper } from '../styles/components/Wrapper';
import { Container } from '../styles/components/Container';
import NavBar from '../component/NavBar';
import Header from '../styles/components/Header'
import { Mai... |
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-modules-systemjs/node_modules/babel-runtime/node_modules/core-js/client/shim.js | Crisa221/Lista-Giocatori | /**
* core-js 2.4.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
ajax/libs/react-native-web/0.16.4/exports/SectionList/index.min.js | cdnjs/cdnjs | import SectionList from"../../vendor/react-native/SectionList";export default SectionList; |
src/app/EmployeesTable.js | cityofasheville/coa-converse | import React from 'react';
import PropTypes from 'prop-types';
import ReactTable from 'react-table';
import { Link } from 'react-router';
import moment from 'moment';
import Icon from '../shared/Icon';
import { IM_WARNING2, IM_HOURGLASS } from '../shared/iconConstants';
const getTimeSinceLastConversation = (employee) ... |
src/components/ContactPage/ContactPage.js | ksevezich/DayOfBlueprint | import React from 'react'
import classes from './ContactPage.scss'
import AboutSection from 'components/AboutSection'
export const ContactPage = () => (
<div>
<div className={classes.about} >
<div className={'container text-center'}>
<h1 className={classes.header}> Contact Information...</h1>
... |
src/svg-icons/hardware/phonelink.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhonelink = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
... |
src/components/Sections/Splash.js | sioked/ecomchicago | import React from 'react';
import { Hero, HeroBody, Container, Image, Title, Subtitle } from 'bloomer';
import Ribbon from '../Ribbon';
import RegistrationButton from '../Buttons/Registration';
import content from '../../constants/content';
import logoLight from '../Images/logo-light-on-dark.png';
import SplashImageTyp... |
app/pages/security-policy.spec.js | jelliotartz/Panoptes-Front-End | import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import SecurityPolicy from './security-policy';
describe('SecurityPolicy', () => {
let wrapper;
before(() => {
wrapper = shallow(<SecurityPolicy />);
});
it('should render without crashing', () => {
const securi... |
packages/material-ui-icons/src/Toys.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Toys = props =>
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 23V12z"... |
test/integration/AutoComplete/AutoComplete.spec.js | mit-cml/iot-website-source | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {mount} from 'enzyme';
import AutoComplete from 'src/AutoComplete';
import getMuiTheme from 'src/styles/getMuiTheme';
describe('<AutoComplete />', () => {
const muiTheme = getMuiTheme();
const mountWithContext = (node) => mount(... |
fields/types/text/TextFilter.js | kwangkim/keystone | import React from 'react';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true }
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly'... |
__tests__/index.ios.js | bendman/open-adopt | import 'react-native';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
import React from 'react';
import Index from '../index.ios';
it('renders correctly', () => {
renderer.create(<Index />);
});
|
client/alt.js | zodiac-xl/react-demo | import React from 'react';
import Alt from 'alt';
class Flux extends Alt {
constructor() {
super({});
}
}
export default new Flux();
|
src/routes.js | Lebedancer/compare-app | import React from 'react';
import { Route, IndexRoute} from 'react-router';
import App from './components/App';
import RulesList from './components/RulesList';
import Rule from './components/Rule';
export default (
<Route path="/" component={App}>
<IndexRoute component={RulesList} />
<Route path="... |
src/modules/payment/Main/Main.js | Deivis/FleaMarket | import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { Field, reduxForm } from 'redux-form';
import Cards from 'react-credit-cards';
import 'react-credit-cards/lib/styles.scss';
import FormNotification from '../../../components/FormNotification';
import validate from './validate';
i... |
ajax/libs/react-native-web/0.0.0-da3429ed3/cjs/exports/AppRegistry/renderApplication.js | cdnjs/cdnjs | "use strict";
exports.__esModule = true;
exports.default = renderApplication;
exports.getApplication = getApplication;
var _AppContainer = _interopRequireDefault(require("./AppContainer"));
var _invariant = _interopRequireDefault(require("fbjs/lib/invariant"));
var _render = _interopRequireWildcard(require("../rend... |
js/profile/home/YourHomeEditorScreen.js | kilimondjaro/react-native-couchsurfing-app | // @flow
import React from 'react';
import {
View,
ScrollView,
StyleSheet,
Navigator
} from 'react-native';
import {connect} from 'react-redux';
import {CSHeader} from '../../components/CSHeader';
import CSInputList from '../../components/CSInputList';
import CSTextInput from '../../components/CSTextInput';
imp... |
src/components/Navbar/Searchbar.js | nicolas-adamini/littleblue | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { search } from '../../redux/actions/index';
import { withRouter } from 'react-router-dom';
class Searchbar extends Component {
constructor(props) {
super(props);
this.state = ... |
src/client/components/notfound.react.js | cazacugmihai/este | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import React from 'react';
import {Link} from 'react-router';
export default class NotFound extends Component {
static propTypes = {
msg: React.PropTypes.object.isRequired
}
render() {
const {msg: {... |
IntegrationTests/AsyncStorageTest.js | HealthyWealthy/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.
*
* @flow
*/... |
app/js/tabs.js | CKrawczyk/volcrowe | import React from 'react';
import { Nav, NavItem } from 'react-bootstrap';
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap';
const Tabs = () => (
<Nav bsStyle="tabs" activeKey={1} stacked>
<IndexLinkContainer to={{ pathname: '/' }}>
<NavItem eventKey={1}>Home</NavItem>
</Index... |
examples/counter/components/Counter.js | jstrimpel/redux | import React, { Component, PropTypes } from 'react';
class Counter extends Component {
render() {
const { increment, incrementIfOdd, incrementAsync, decrement, counter } = this.props;
return (
<p>
Clicked: {counter} times
{' '}
<button onClick={increment}>+</button>
{' '... |
react-flux-mui/js/material-ui/src/svg-icons/editor/border-clear.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
src/pages/User/components/PullRequests/PullRequest/PlatformIcon.js | jenkoian/hacktoberfest-checker | import React from 'react';
import { useColorScheme } from 'use-color-scheme';
import PropTypes from 'prop-types';
import githubLogoLight from './github-logo-light.png';
import gitlabLogoLight from './gitlab-logo-light.png';
import githubLogoDark from './github-logo-dark.png';
import gitlabLogoDark from './gitlab-logo-... |
ajax/libs/vega-lite/2.0.0-rc3/vega-lite.js | seogi1004/cdnjs | (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.vl = f()}})(fu... |
ajax/libs/6to5/2.4.4/browser-polyfill.js | mgoldsborough/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... |
app/javascript/mastodon/features/generic_not_found/index.js | imas/mastodon | import React from 'react';
import Column from '../ui/components/column';
import MissingIndicator from '../../components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator fullPage />
</Column>
);
export default GenericNotFound;
|
techCurriculum/ui/starter_code/src/index.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 in writ... |
generators/app/templates/src/js/config/routes.js | kenmazaika/generator-transcendence | import React from 'react';
import Welcome from'../components/Welcome';
import ApplicationLayout from '../components/layouts/ApplicationLayout';
import Router from'react-router';
import {Route, IndexRoute} from'react-router';
export default (
<Route path="/" component={ApplicationLayout}>
<IndexRoute component={W... |
react-fundamentals-es6/lessons/11-higher-order/main.js | 3mundi/React-Bible | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
test/specs/elements/Rail/Rail-test.js | ben174/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import Rail from 'src/elements/Rail/Rail'
const requiredProps = { position: 'left' }
describe('Rail', () => {
common.isConformant(Rail, { requiredProps })
common.hasUIClassName(Rail, { requiredProps })
common.rendersChildren(Rail, { req... |
packages/cp-frontend/test/unit/components/deployment-group/delete.js | yldio/copilot | /**
* @jest-environment jsdom
*/
import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import DeploymentGroupDelete from '@components/deployment-group/delete.js';
import { deploymentGroup } from '../../mocks';
it('renders <DeploymentGroupDelete /> without throwing'... |
demos/demo/src/components/LangSelector/index.js | bdjnk/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal, state} from 'cerebral/tags'
import translations from '../../common/compute/translations'
import * as LANGS from '../../common/translations'
const LANG_OPTS = Object.keys(LANGS).map(lang => (
[lang, LANGS[lang].language]
))
export defau... |
src/components/Overlay.js | ericyd/gdrive-copy | /**
* A static semi-opaque overlay with a spinner and optional message
* to indicate loading, processing, or other wait times.
*/
'use strict';
import React from 'react';
import Spinner from './icons/Spinner';
import PropTypes from 'prop-types';
export default function Overlay(props) {
// fixed position overlay ... |
src/svg-icons/action/speaker-notes.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotes = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.