target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
test/test_helper.js | MeKyleH/ReactPortfolioStuff | 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... |
src/js/components/icons/base/CoatCheck.js | odedre/grommet-final | /**
* @description CoatCheck 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.
* @... |
app/todoapp/Root.js | omega-prime/omega | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
import createStore from './configureStore';
const store = createStore(... |
app/assets/scripts/components/dropdown.js | WorldBank-Transport/rra-frontend | 'use strict';
import React from 'react';
import TetherComponent from 'react-tether';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
const Dropdown = React.createClass({
displayName: 'Dropdown',
propTypes: {
id: React.PropTypes.string,
onChange: React.PropTypes.func,
triggerE... |
test/SplitButtonSpec.js | jakubsikora/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import SplitButton from '../src/SplitButton';
import MenuItem from '../src/MenuItem';
import Button from '../src/Button';
describe('SplitButton', function() {
const simple = (
<SplitButton title='Title' id='test-id'>
<MenuIte... |
src/components/FuelSavingsForm.js | pagepress/pagepress | import React from 'react';
import PropTypes from 'prop-types';
import FuelSavingsResults from './FuelSavingsResults';
import FuelSavingsTextInput from './FuelSavingsTextInput';
class FuelSavingsForm extends React.Component {
constructor(props, context) {
super(props, context);
this.save = this.save.bind(thi... |
src/Token.react.js | Neophy7e/react-bootstrap-typeahead | 'use strict';
import cx from 'classnames';
import {noop} from 'lodash';
import React, {PropTypes} from 'react';
import tokenContainer from './containers/tokenContainer';
/**
* Token
*
* Individual token component, generally displayed within the TokenizerInput
* component, but can also be rendered on its own.
*/... |
Sites/Umbraco/Glass.Mapper.Sites.Umb/umbraco/js/umbraco.controllers.js | rhamille/Glass.Mapper | /*! umbraco - v7.0.0-Beta - 2013-11-21
* https://github.com/umbraco/umbraco-cms/tree/7.0.0
* Copyright (c) 2013 Umbraco HQ;
* Licensed MIT
*/
(function() {
/**
* @ngdoc controller
* @name Umbraco.DashboardController
* @function
*
* @description
* Controls the dashboards of the application
*
*/
functi... |
packages/material-ui-icons/src/NoEncryptionTwoTone.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M6 20h10.78l-10-10H6zm6.44-10L18 15.56V10z" opacity=".3" /><path d="M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2h-4.66l2 2H18v5.56l2 2V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-... |
src/svg-icons/image/brightness-1.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness1 = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="10"/>
</SvgIcon>
);
ImageBrightness1 = pure(ImageBrightness1);
ImageBrightness1.displayName = 'ImageBrightness1';
ImageBrightnes... |
media/jui/js/jquery.min.js | alexrah/teddy | /*! 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... |
assets/js/vendor/jquery/jquery-1.12.4.min.js | WittyAgnomen/WittyAgnomen.github.io | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
scripts/rollup/wrappers.js | flarnie/react | 'use strict';
const Bundles = require('./bundles');
const reactVersion = require('../../package.json').version;
const UMD_DEV = Bundles.bundleTypes.UMD_DEV;
const UMD_PROD = Bundles.bundleTypes.UMD_PROD;
const UMD_PROFILING = Bundles.bundleTypes.UMD_PROFILING;
const NODE_DEV = Bundles.bundleTypes.NODE_DEV;
const NODE... |
ajax/libs/extjs/4.2.1/src/layout/container/Card.min.js | nolanlawson/cdnjs | Ext.define("Ext.layout.container.Card",{extend:"Ext.layout.container.Fit",alternateClassName:"Ext.layout.CardLayout",alias:"layout.card",type:"card",hideInactive:true,deferredRender:false,getRenderTree:function(){var a=this,b=a.getActiveItem();if(b){if(b.hasListeners.beforeactivate&&b.fireEvent("beforeactivate",b)===fa... |
blueocean-material-icons/src/js/components/svg-icons/action/copyright.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-.9-.28-1.29s-.4-.73-.7-1.01-.66-.... |
app/containers/NotFoundPage/messages.js | EugeneHlushko/game-15 | /*
* NotFoundPage Messages
*
* This contains all the text for the NotFoundPage component.
*/
import { defineMessages } from 'react-intl';
export default defineMessages({
header: {
id: 'app.components.NotFoundPage.header',
defaultMessage: 'This is NotFoundPage component!',
},
});
|
ajax/libs/react-autosuggest/1.12.3/autosuggest.min.js | tonytomov/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.Autosuggest=t(require("React")):e.Autosuggest=t(e.React)}(this,function(e){return function(e){function t(s){if(n[s])return n[s].e... |
src/main/scripts/modules/sea-siege/react/views/card/header.js | twuni/sea-siege | import React from 'react';
import Component from '../../components/component';
import ManaCost from './mana-cost';
const {object, string} = React.PropTypes;
class Header extends Component {
static get propTypes() {
return Component.withPropTypes({
title: string.isRequired,
cost: object
});
... |
generators/advanced-base/templates/src/App.js | bamlab/generator-rn-toolbox | import React from 'react';
import Scenes from './Scenes';
const App = () => <Scenes />;
export default App;
|
packages/material-ui-icons/src/LocalAirport.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'Loc... |
src/components/instructions/MuteGroupInstructions.js | dkadrios/zendrum-stompblock-client | /* eslint-disable react/no-unescaped-entities */
import React from 'react'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core'
import Instructions from './Instructions'
const styles = {
cont: {
width: 630,
maxWidth: 630,
},
}
const header = 'Here you can define voices that sh... |
rojak-ui-web/src/app/home/SearchForm.js | pyk/rojak | import React from 'react'
class SearchForm extends React.Component {
static propTypes = {
keyword: React.PropTypes.string,
onKeywordChange: React.PropTypes.func.isRequired
}
constructor (props) {
super(props)
this.state = { keyword: '' }
this.throttleKeyChange = null
}
componentDidMount... |
src/routes/admin/index.js | jimmykobe1171/chatbotta | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/ContentBlocks/BlockParagraphCTA/BlockParagraphCTAForm.js | grommet/grommet-cms-content-blocks | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Form from 'grommet/components/Form';
import FormFields from 'grommet/components/FormFields';
import FormField from 'grommet/components/FormField';
import Button from 'grommet/components/Button'... |
stories/components/login/index.js | NestorSegura/operationcode_frontend | import React from 'react';
import createHistory from 'history/createBrowserHistory';
import { Router } from 'react-router';
import { storiesOf } from '@storybook/react';
import Login from 'shared/components/login/login';
const history = createHistory();
storiesOf('shared/components/login', module)
.add('Basic', ()... |
.history/src/components/Menu_20170804012435.js | radubrehar/evanghelic.ro | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import { css } from 'glamor';
import Row from './Row';
const mainCls = css({
display: 'flex',
flexFlow: 'row',
paddingTop: 20,
paddingBottom: 20,
borderBottom: '1px solid gray',
justifyContent: 'flex-end',
ma... |
Examples/UIExplorer/js/NavigationExperimental/NavigationExperimentalExample.js | imjerrybao/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.
*
* The examp... |
Rosa_Madeira/Cliente/src/components/common/CardSection.js | victorditadi/IQApp | import React from 'react';
import { View } from 'react-native';
const CardSection = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderBottomWidth: 1,
padding: 5,
backgroundColor: "#d9d9d9",
justifyCont... |
example/examples/PolygonCreator.js | Gogowego/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LA... |
platform/ui/plugins/reactors/ScriptReactor.js | acmorrow/pion-core | dojo.provide("plugins.reactors.ScriptReactor");
dojo.require("plugins.reactors.Reactor");
dojo.require("pion.widgets.SimpleSelect");
dojo.declare("plugins.reactors.ScriptReactor",
[ plugins.reactors.Reactor ],
{
postCreate: function(){
this.config.Plugin = 'ScriptReactor';
this.inherited("postCreate", argume... |
src/index.js | jackblackCH/zululo | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
front/index.ios.js | fa93hws/tipping | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class front extends Component {
render() {
return (
<View style={styles.container}>
... |
components/pages/Courses.js | freyconner24/Quizzly | "use strict";
import React from 'react'
import Course from '../partials/Course.js'
import Modal from '../partials/Modal.js'
import MetricModal from '../partials/MetricModal.js'
export default class Courses extends React.Component {
constructor(props) {
super(props);
this.state = {
course: props.cours... |
misc/jquery.js | MisreadableMind/bogatska_website |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
src/components/App.js | lf2941270/react-zhihu-daily | 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,
}
shouldComponentUpd... |
src/store/routes.js | uwguise/compass-web | import React from 'react'
import { Route } from 'react-router'
import App from '../app/app.js'
export default (
<Route path="/" component={App}/>
)
|
packages/material-ui-icons/src/SupervisedUserCircleSharp.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="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm3.61 6.34c1.07 0 1.93.86 1.93 1.93s-.86 1.93-1.93 1.93-1.93-.86-1.93-1.93c-.0... |
ajax/libs/rxjs/2.4.7/rx.lite.extras.compat.js | ErikSchierboom/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'und... |
packages/react/src/components/atoms/Placeholder/Placeholder.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import Placeholder from '.';
import PlaceholderDocs from './Placeholder.md';
export const PlaceholderExample = (args) => <Placeholder {...args} />;
PlaceholderExample.storyName = 'Default';
PlaceholderExample.args = {
text: 'This is ju... |
storybooks/web/stories/carousels/carousel-0.js | opensource-cards/binary-ui | import ActionIcon from 'binary-ui-components/mobile/ActionIcon';
import IconArrowLeft from 'binary-ui-icons/binary/ArrowLeft';
import IconArrowRight from 'binary-ui-icons/binary/ArrowRight';
import React from 'react';
import BinaryUICarousel from 'binary-ui-carousel';
function getStyle(color) {
return {
width: ... |
ajax/libs/raven.js/3.23.1/console,require,vue/raven.js | joeyparrish/cdnjs | /*! Raven.js 3.22.2 (1b6187b) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2018 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function (global, factory) ... |
test/PagerSpec.js | Cellule/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Pager from '../src/Pager';
import PageItem from '../src/PageItem';
describe('Pager', function () {
it('Should output a unordered list as root element with class "pager"', function () {
let instance = ReactTestUtils.renderInt... |
src/routes/privacy/index.js | Frenzzy/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/routes/Admin/components/MainView.js | Stas-Buzunko/cyber-school | import React from 'react'
import UserList from '../containers/UserListContainer'
import Login from '../containers/LoginContainer'
const MainView = (props) => {
let content
switch (props.auth.authenticated) {
case true:
content = <UserList />
break
default:
content = <Login />
}
retu... |
packages/material-ui-icons/src/ViewHeadline.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ViewHeadline = props =>
<SvgIcon {...props}>
<path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z" />
</SvgIcon>;
ViewHeadline = pure(ViewHeadline);
ViewHeadline.muiName = 'SvgIcon';
e... |
client/src/app/admin/panel/tickets/admin-panel-new-tickets.js | ivandiazwm/opensupports | import React from 'react';
import {connect} from 'react-redux';
import i18n from 'lib-app/i18n';
import AdminDataAction from 'actions/admin-data-actions';
import TicketList from 'app-components/ticket-list';
import Header from 'core-components/header';
import Message from 'core-components/message';
class AdminPane... |
src/components/passphraseInput/index.js | slaweet/lisk-nano | import { IconButton } from 'react-toolbox/lib/button';
import { translate } from 'react-i18next';
import Input from 'react-toolbox/lib/input';
import React from 'react';
import Tooltip from 'react-toolbox/lib/tooltip';
import { findSimilarWord, inDictionary } from '../../utils/similarWord';
import { isValidPassphrase ... |
docs/app/Examples/elements/Header/Variations/HeaderExampleBlock.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleBlock = () => (
<Header as='h3' block>
Block Header
</Header>
)
export default HeaderExampleBlock
|
tests/layouts/CoreLayout.spec.js | Clothet/web | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
src/pages/shows/Shows.js | hinzed1127/fayraysite | import React from 'react';
import ShowsTable from '../../components/ShowsTable/ShowsTable';
import './shows.css';
import lincolnHall from '../../img/media/blue-lh.jpg';
export default function Shows() {
return (
<div className='shows-table-container'>
<img className='banner-image' alt='lincoln hall show' src={li... |
setup/src/universal/features/user/auth/components/ForgotPasswordForm/index.js | ch-apptitude/goomi | /**
*
* ForgotPasswordForm
*
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Form } from 'react-form';
import { Row, Col } from 'react-flexbox-grid';
import Box from 'features/common_ui/components/Box';
import { GreenButton } from 'features/common_ui/components/Button';
impor... |
ajax/libs/mobx-react/2.1.5/index.min.js | joeyparrish/cdnjs | !function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&c.set(t,e),m.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function s(e,t){var n=e[t],o=d[t];e[t]=function(){n&&n.apply(this,argume... |
docs/src/app/components/pages/components/DatePicker/ExampleInline.js | ArcanisCz/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* Inline Date Pickers are displayed below the input, rather than as a modal dialog.
*/
const DatePickerExampleInline = () => (
<div>
<DatePicker hintText="Portrait Inline Dialog" container="inline" />
<DatePicker hintText="Land... |
examples/auth-with-shared-root/components/Logout.js | rubengrill/react-router | import React from 'react'
import auth from '../utils/auth'
const Logout = React.createClass({
componentDidMount() {
auth.logout()
},
render() {
return <p>You are now logged out</p>
}
})
export default Logout
|
ajax/libs/yui/3.5.0pr3/event-custom-base/event-custom-base-debug.js | keicheng/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 ev... |
src/svg-icons/image/filter-center-focus.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterCenterFocus = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9... |
packages/material-ui-icons/src/TouchAppTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><g><path d="M18.12 14.44l-3.24-1.62c1.29-1 2.12-2.56 2.12-4.32C17 5.47 14.53 3 11.5 3S6 5.47 6 8.5c0 2.13 1.22 3.98 3 4.89v3.26l-1.84-.39-.1-.02c-.... |
core/router.js | tomalexing/quiz | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
src/svg-icons/communication/call-missed.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed = pure(CommunicationCallMissed);
CommunicationC... |
examples/rollup.config.js | perrin4869/react-onenterkeydown | import babel from 'rollup-plugin-babel';
import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs';
import replace from 'rollup-plugin-replace';
import liveServer from 'rollup-plugin-live-server';
const env = process.env.NODE_ENV || 'development';
export default {
input: './src... |
ajax/libs/angular-data/1.0.0/angular-data.js | NamPNQ/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.0.0 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
node_modules/semantic-ui-react/dist/es/collections/Table/TableRow.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _without from 'lodash/without';
import _map from 'lodash/map';
import _isNil from 'lodash/isNil';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { createShorthandFactory, customPropTypes, getElementType, g... |
ajax/libs/rxjs/2.3.14/rx.compat.js | the-destro/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... |
examples/BadgeCollections.js | jsbranco/react-materialize | import React from 'react';
import Badge from '../src/Badge';
import Collection from '../src/Collection';
import CollectionItem from '../src/CollectionItem';
export default
<Collection>
<CollectionItem href="#!">
Alan <Badge>1</Badge>
</CollectionItem>
<CollectionItem href="#!">
Alan <Badge newIcon>4</Bad... |
src/routes/content/index.js | mlem8/dev-challenge | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Content from './Content'... |
src/Jumbotron.js | Terminux/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import elementType from 'react-prop-types/lib/elementType';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: elementType
},
getDefaultProps() {
return ... |
src/browser/eventPlugins/__tests__/AnalyticsEventPlugin-test.js | sverrejoh/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.
*
* @emails react-co... |
client/containers/Authors.js | JayMc/react-crud-example | import React from 'react';
import List from '../components/List';
import Count from '../components/Count';
export default React.createClass({
getInitialState() {
// pretend to get a list of authors
return {
authors: [
{ id: 1, name: 'Superman' },
{ id: 2, name: 'Batman' },
{ id:... |
src/svg-icons/action/verified-user.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVerifiedUser = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/>
</SvgIcon>
);
ActionVerif... |
src/components/Header.js | g8extended/Character-Generator | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import HeaderNav from './HeaderNav';
import { buyAll } from '../actions/sale';
export default connect()((
({ dispatch }) => (
<div className="header">
<div className="logo part">
<Link to="/"><img... |
ajax/libs/yui/3.1.0/loader/loader.js | thykka/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 = ... |
src/index.js | tmbtech/reindex-todo-relay | import React from 'react';
import ReactDOM from 'react-dom';
import Relay from 'react-relay';
import Reindex from './Reindex';
import App from './components/App';
Relay.injectNetworkLayer(Reindex.getRelayNetworkLayer());
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/audio/index.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { formatTime } from 'mastodon/features/video';
import Icon from 'mastodon/components/icon';
import classNames from 'classnames';
import { throttle } from 'lodash';
import { getPointerPosition, ... |
docs/src/pages/components/autocomplete/Playground.js | lgollut/material-ui | /* eslint-disable no-use-before-define */
import React from 'react';
import TextField from '@material-ui/core/TextField';
import Autocomplete from '@material-ui/lab/Autocomplete';
export default function Playground() {
const defaultProps = {
options: top100Films,
getOptionLabel: (option) => option.title,
}... |
packages/material-ui-icons/src/QueryBuilder.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let QueryBuilder = props =>
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H... |
src/svg-icons/hardware/keyboard-arrow-left.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowLeft = pure(HardwareKeyboardArrowLeft);
Hardware... |
modules/__tests__/Redirect-test.js | schnerd/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Redirect from '../Redirect'
import Router from '../Router'
import Route from '../Route'
describe('A <Redirect>', function () {
let node
beforeEach(function () {
node =... |
packages/material-ui/src/ExpansionPanel/ExpansionPanel.js | cherniavskii/material-ui | // @inheritedComponent Paper
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Collapse from '../transitions/Collapse';
import Paper from '../Paper';
import withStyles from '../styles/withStyles';
import { isMuiElement } from '../utils/reactHelpers';
// Workaro... |
client/src/components/Loading.js | esausilva/profile-updater | import React from 'react';
import { Loader } from 'semantic-ui-react';
import ReactDelayRender from 'react-delay-render';
const Loading = () => <Loader active size="massive" />;
export default ReactDelayRender({ delay: 300 })(Loading);
|
js/App/Components/TabViews/SubViews/RGBPalette.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
ajax/libs/iCheck/1.0.1/demo/js/jquery.js | jakubfiala/cdnjs | /*!
* jQuery v1.8.3 jquery.com | jquery.org/license
*/
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:... |
src/scenes/home/press/pressPhotos/pressPhotos.js | miaket/operationcode_frontend | import React from 'react';
import CodeConferencePic from '../../../../images/CodeConferenceLA.jpg';
import RedHatSummitPic from '../../../../images/RedHat-Summit.jpg';
import NodeSummitPic from '../../../../images/Node-Summit.jpg';
import AngelHackBostonPic from '../../../../images/AngelHack-Boston.jpg';
import UtahMee... |
static/jquery-1.10.1.js | bobbynewmark/microframeworkexample | /*!
* jQuery JavaScript Library v1.10.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-05-30T21:49Z
*/
(function( window, undefined ) {
// ... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | Antontsyk/react_vk | import React from 'react'
export default class extends React.Component {
users = [
{ id: 1, name: '1' },
{ id: 2, name: '2' },
{ id: 3, name: '3' },
{ id: 4, name: '4' }
];
render() {
return (
<div id="feature-class-properties">
{this.users.map(user => (
<div key={use... |
docs/controls/close-button/index.js | aruberto/react-foundation-components | import React from 'react';
import { CloseButton } from '../../../src/close-button';
import { Callout } from '../../../src/callout';
const CloseButtonPage = () => (
<div>
<h1>Close Button</h1>
<p>
The close button can be used anywhere you need something to go away on click.
</p>
<hr />
<h2>... |
ajax/libs/yui/3.11.0/simpleyui/simpleyui-debug.js | luhad/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
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
app/javascript/mastodon/features/ui/components/boost_modal.js | mimumemo/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
ajax/libs/rxjs/2.2.27/rx.js | camelotceo/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
src/__tests__/TR.js | claudioDcv/Tabl3 | import React from 'react';
import { mount } from 'enzyme';
import TR from '../TR';
jest.mock('../conector/ajax');
const props = {
updateState: e => {},
tableState: {
config: {
columnsAction: e => { console.log(e);},
},
columns: [{
id: 1,
}],
},
}
describe("TR ", function ... |
src/main/webapp/static/jquery-validation/1.11.1/lib/jquery-1.6.4.js | 11653786/jeesite | /*!
* jQuery JavaScript Library v1.6.4
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/CollapsibleMixin.js | yickli/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState(){
let defaultExpanded = this.props.defaultExpanded != null ?
this.props.default... |
demos/demo/src/components/ProjectSelector/index.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {signal, state} from 'cerebral/tags'
import visibleProjectsByClient from '../../computed/visibleProjectsByClient'
export default connect(
{
editedTask: state`tasks.$draft`,
filter: state`projects.$filter`,
onBackgroundClick: signal`p... |
app/client/src/routes/manageCampaignSettings/index.js | uprisecampaigns/uprise-app | import React from 'react';
import ManageCampaignSettings from 'scenes/ManageCampaignSettings';
import Layout from 'components/Layout';
import organizeCampaignPaths from 'routes/organizeCampaignPaths';
export default organizeCampaignPaths({
path: '/organize/:slug/settings',
component: campaign => (
<Layout>
... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | StuartChaffe/responsive-table | 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/@vega/review-tool/src/components/Field.js | VegaPublish/vega-studio | import React from 'react'
import {FormBuilderInput} from 'part:@lyra/form-builder'
type Props = {
onChange: any,
value: any,
type: any,
focusPath: any,
fieldName: any,
onFocus: any,
readOnly: boolean
}
export default class Field extends React.Component<Props> {
handleChange = patchEvent => {
const... |
ajax/libs/nuclear-js/1.0.0/nuclear.js | sympmarc/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["Nuclear"] = factory();
else
root["Nuclear"]... |
src/components/Layout/Footer/FooterInfo/ChatModal/presenter.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import Chat from 'components/Chat'
import ChatInvitation from 'components/Chat/Invitation'
import ChatImage from '../../images/ask.svg'
const ChatModal = (props) => {
let buttonMessage = (<span><img src={ChatImage} alt='' aria-hidden='true' /> Chat with a ... |
packages/bonde-styleguide/src/content/IconColorful/svg/Greeting.js | ourcities/rebu-client | import React from 'react'
const Icon = () => (
<svg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'>
<g fill='none' fillRule='evenodd'>
<circle cx='30' cy='20' r='20' fill='#E09' opacity='.297' />
<circle cx='30' cy='20' r='16' fill='#E09' opacity='.3' />
<circle c... |
src/collections/Form/FormInput.js | aabustamante/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Input from '../../elements/Input'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Input} />.
* @see Form
* @see Input
*/
function FormInput(props) {
const { con... |
src/components/button-comment.js | bokuweb/tomato_pasta | import React, { Component } from 'react';
export default class ButtonComment extends Component {
constructor(props) {
super(props);
}
onCommentClick(item) {
if (item.isCommentOpen)
this.props.closeComment(item, this.props.activeKeyword);
else
this.props.openComment(item, this.props.activ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.