target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/renderers/dom/client/__tests__/ReactMount-test.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.
*
* @emails react-co... |
src/Image/ImageCropper.js | ClarityMovement/clarity-components | import React from 'react';
import T from 'prop-types';
import { compose, withHandlers } from 'recompose';
import AvatarEditor from 'react-avatar-editor';
import Slider from 'material-ui/Slider';
import IconButton from 'material-ui/IconButton';
import ImageRotateLeft from 'material-ui/svg-icons/image/rotate-left';
impo... |
debugger/cerebral-debugger/src/components/Debugger/Signals/Signal/Action/index.js | FWeinb/cerebral | import './styles.css'
import React from 'react'
import Inspector from '../../../Inspector'
import Mutation from './Mutation'
import Service from './Service'
function Action ({action, execution, children, onMutationClick, onActionClick}) {
function getActionName () {
var regex = /\(([^()]+)\)/
var match = re... |
ajax/libs/yui/3.4.0/event-focus/event-focus.js | camelotceo/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
examples/webpack.config.js | mhils/react-router | var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
function isDirectory(dir) {
return fs.lstatSync(dir).isDirectory();
}
module.exports = {
devtool: 'inline-source-map',
entry: fs.readdirSync(__dirname).reduce(function (entries, dir) {
var isDraft = dir.charAt(0) === '_'... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js | reload/dockhub-testing | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/Menus/MainAppBar.js | kevinleclair1/pitch_fx_visualizer | import React from 'react';
import MenuIcon from 'material-ui/svg-icons/navigation/menu';
import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle } from 'material-ui/Toolbar';
import { createSelector } from 'reselect';
import createContainer from '../containers/GenericContainer.js';
import { actions as sidebar... |
examples/shopping-cart/src/components/Product.spec.js | jhwgnu/redux | import React from 'react'
import { shallow } from 'enzyme'
import Product from './Product'
const setup = props => {
const component = shallow(
<Product {...props} />
)
return {
component: component
}
}
describe('Product component', () => {
it('should render title and price', () => {
const { com... |
app/js/components/Duration.js | arcsecw/zhaiyao | import React from 'react'
export default function Duration ({ className, seconds }) {
return (
<time dateTime={`P${Math.round(seconds)}S`} className={className}>
{format(seconds)}
</time>
)
}
function format (seconds) {
const date = new Date(seconds * 1000)
const hh = date.getUTCHours()
const ... |
src/svg-icons/editor/format-textdirection-l-to-r.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionLToR = (props) => (
<SvgIcon {...props}>
<path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/>
</SvgIcon>
);
EditorFormatTextdirectionLToR = p... |
src/appReact/components/Map/InputRange/Slider.js | devmessias/brasillivre | /**
* @module InputRange/Slider
*/
import React from 'react';
import Label from './Label';
import { autobind } from './util';
/**
* Get the owner document of slider
* @private
* @param {Slider} slider - React component
* @return {Document} Document
*/
function getDocument(slider) {
const { slider: { ownerDoc... |
src/svg-icons/image/brightness-7.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness7 = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69... |
codes/chapter05/jigsaw/app/components/Topics.js | atlantis1024/react-step-by-step | import React from 'react';
import { NavLink, Route, Switch } from 'react-router-dom';
class Topic extends React.PureComponent {
render() {
return (
<div>
<h3>ID: {this.props.match.params.id}</h3>
</div>
)
}
}
class Topics extends React.PureComponent {
render() {
return (
<d... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/steps/index.js | bhathiya/test | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PropTypes ... |
src/components/send/SendOptions.js | whphhg/vcash-ui | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
/** Ant Design */
import Input from 'antd/lib/input'
@translate(['common'])
@inject('send')
@observer
class SendOptions extends React.Component {
constructor(props) {
super(props)
this.t = props... |
stories/Breadcrubms/ExampleThemes.js | skyiea/wix-style-react | import React from 'react';
import styles from './ExampleBreadcrumbs.scss';
import Breadcrumbs from '../../src/Breadcrumbs/Breadcrumbs';
const items = [{id: '1', value: 'first item'}, {id: '2', value: 'second item'}, {id: '3', value: 'third item'}];
export default () =>
<div>
<div className={`${styles.onGrayBac... |
ajax/libs/material-ui/4.10.1/internal/svg-icons/RadioButtonChecked.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
src/Parser/Druid/Restoration/Modules/Items/T21_2Set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemHealingDo... |
src/components/NoRecords.spec.js | branchology/branchology | import React from 'react';
import renderer from 'react-test-renderer';
import NoRecords from './NoRecords';
describe('<NoRecords>', () => {
it('should render the message', () => {
const tree = renderer.create(<NoRecords message="My Message" />).toJSON();
expect(tree).toMatchSnapshot();
});
});
|
public/assets/application-b739c93e983273b731a9cece73646eb50c5720faf6ee4d0c3bacb3bb7592aefa.js | kenikall/wccusd | /*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module ... |
node_modules/react-icons/md/queue-music.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdQueueMusic = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.4 10h8.2v3.4h-5v15c0 2.7-2.2 5-5 5s-5-2.3-5-5 2.3-5 5-5c0.6 0 1.2 0.1 1.8 0.3v-13.7z m-23.4 16.6v-3.2h13.4v3.2h-13.4z m20-10v3.4h-20v-3.4h20z m0-6.6v3.4h-20v-3... |
ajax/libs/Sly/1.0.1/sly.js | dlueth/cdnjs | /*!
* sly 1.0.1 - 8th Jun 2013
* https://github.com/Darsain/sly
*
* Licensed under the MIT license.
* http://opensource.org/licenses/MIT
*/
;(function ($, w, undefined) {
'use strict';
var pluginName = 'sly';
var className = 'Sly';
var namespace = pluginName;
// Local WindowAnimationTiming interface
var... |
node_modules/react-input-field/webpack.config.js | odedgol/trackingUi | module.exports = {
entry: './index.jsx',
output: {
publicPath: 'http://localhost:9090/assets'
},
module: {
loaders: require('./loaders.config')
},
externals: {
'react': 'React'
},
resolve: {
extensions: ['', '.js', '.jsx']
}
} |
app/components/Toggle/index.js | hieubq90/react-boilerplate-3.4.0 | /**
*
* LocaleToggle
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = <option>--</option>;
// If we have items, render them
if (props.values) {
content = props.values.map(val... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js | Bogala/create-react-app-awesome-ts | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import './assets/style.css';
import { test, version } from 'test-integrity';
export default () => {
const ... |
ajax/libs/rxjs/2.5.1/rx.js | aaqibrasheed/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
};
... |
frontend/app/components/Recorder/detail.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import ContributorDetail from 'components/Contributor/detail'
import validator from './validator'
import copy from './copy'
const { string } = PropTypes
export default class RecorderDetail extends React.Component {
static propTypes = {
className: stri... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Form/story.js | KlusterKite/KlusterKite | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
// import StubContainer from 'react-storybooks-relay-container';
import Submit from './submit';
storiesOf('Form')
.add('submit enabled', () => {
return <Submit canSubmit={true} />;
})
.add('submit can\'t submit', () => {
r... |
ajax/libs/forerunnerdb/1.3.457/fdb-core+views.min.js | sashberd/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
app/javascript/flavours/glitch/components/loading_indicator.js | Kirishima21/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... |
fields/types/cloudinaryimage/CloudinaryImageField.js | ligson/keystone | import _ from 'underscore';
import $ from 'jquery';
import React from 'react';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../../admin/src/components/Lightbox';
/**
* TODO:
* - Remove dependency on jQuer... |
packages/story-editor/src/components/canvas/karma/backgroundCopyPaste.karma.js | GoogleForCreators/web-stories-wp | /*
* Copyright 2020 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
examples/js/shopping-list-redux/client/components/StaticImage.js | reimagined/resolve | import React from 'react'
import { Image } from 'react-bootstrap'
import { useStaticResolver } from '@resolve-js/react-hooks'
const StaticImage = ({ src, ...otherProps }) => {
const resolveStatic = useStaticResolver()
return <Image {...otherProps} src={resolveStatic(src)} />
}
export { StaticImage }
|
WasteAppMini/js/components/list/index.js | airien/workbits |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
const {
... |
app/javascript/app/components/projects/project.js | moisesnandres/mvp-miprimeraapp | import React, { Component } from 'react';
import glamorous from 'glamorous';
import { Image } from 'react-bootstrap';
import { Link } from 'react-router-dom';
import { Row } from 'react-bootstrap';
const ProjectContainer = glamorous.div({
width: '100%',
minHeight: '110px',
borderRadius: '2px',
backgroundColor:... |
src/js/SecondPage.js | merlox/dapp-transactions | import React from 'react'
import Header from './Header'
import { Link } from 'react-router-dom'
import './../stylus/index.styl'
import './../stylus/secondpage.styl'
import LINKS from './utils.js'
class SecondPage extends React.Component {
constructor(props){
super(props)
this.state = {
dialog1... |
packages/ui-toolkit/src/popover/item.js | yldio/joyent-portal | import React, { Component } from 'react';
import is, { isNot } from 'styled-is';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import remcalc from 'remcalc';
const BaseItem = styled.span`
display: block;
text-align: left;
font-size: ${remcalc(16)};
margin: ${remcalc(6)} ${remcalc(... |
app/addons/setup/components/FirstStepController.js | apache/couchdb-fauxton | // 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 writing, software
// distributed un... |
wp-content/plugins/wfm-slaider/js/jquery-1.11.0.min.js | boltogriz/mod | /*! 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... |
generators/app/templates/src/config/Providers.js | 127labs/generator-duxedo | import React from 'react'
import { Provider } from 'react-redux'
const Providers = ({ store, children }) =>
<Provider store={store}>
{children}
</Provider>
export default Providers
|
src/components/Error/Error.js | piu130/react-redux-gpa-app | import React from 'react'
import { Alert } from 'react-bootstrap'
import './Error.scss'
export const Error = (props) => (
<div id='alerts-queue'>
{props.errors.map((error, index) => (
<Alert key={index} bsStyle='danger' onDismiss={() => props.removeByMessage(error.message)}>
<p>{error.message}</p>... |
src/pages/repos.js | gyaresu/labelr | import React from 'react'
import ampersandMixin from 'ampersand-react-mixin'
export default React.createClass({
displayName: 'ReposPage',
mixins: [ampersandMixin],
render () {
const {repos} = this.props
return (
<div>
<h1>Repos Page</h1>
<div>
{repos.map((repo) => {
... |
ajax/libs/omniscient/3.0.1/omniscient.min.js | pm5/cdnjs | /**
* Omniscient.js v3.0.1
* Authors: @torgeir,@mikaelbr
***************************************/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n... |
src/client/components/notfound.react.js | obimod/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: {... |
examples/shopping-cart/src/containers/App.js | roth1002/redux | import React from 'react'
import ProductsContainer from './ProductsContainer'
import CartContainer from './CartContainer'
const App = () => (
<div>
<h2>Shopping Cart Example</h2>
<hr/>
<ProductsContainer />
<hr/>
<CartContainer />
</div>
)
export default App
|
modules/field_ui/field_ui.js | steve-taylor-wsu/mukurtu | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
src/components/IndexPage.js | lmammino/judo-heroes-2 | import React from 'react';
import { AthleteCard } from './AthleteCard';
export const IndexPage = ({ athletes }) => (
<div className="home">
<div className="athletes-selector">
{athletes.map(
athleteData => <AthleteCard key={athleteData.id} {...athleteData} />,
)}
</div>
</div>
);
expor... |
docs/app/Examples/elements/Button/Types/ButtonExampleBasic.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleBasic = () => (
<div>
<Button basic>Standard</Button>
<Button basic color='red'>Red</Button>
<Button basic color='orange'>Orange</Button>
<Button basic color='yellow'>Yellow</Button>
<Button basic color='olive... |
ajax/libs/vue-material/1.0.0-beta-5/components/MdContent/index.js | ahocevar/cdnjs | !(function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r=t("object"==typeof exports?require("vue"):e.Vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}})(this,(function(e){return (funct... |
components/Calendar/DayRange/DayRange.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, number, select } from '@storybook/addon-knobs';
import moment from 'moment';
import DayRange from './DayRange';
const stories = storiesOf('DayRange', module);
stories.addDecorator(withKnobs);
stories.add('Default day range',... |
app/view/main/stream.js | jnoleau/cocoweet | // @flow
import type {RE} from 'app/flow/misc';
import type {TweetStreamType, State} from 'app/store/state';
import React from 'react';
import {connect} from 'react-redux';
import style from 'app/view/main/stream.less';
import StreamList from 'app/view/main/stream.list';
type StreamPropsType = {stream: TweetStreamTy... |
ajax/libs/6to5/2.9.1/browser.js | ddeveloperr/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/svg-icons/image/exposure-plus-1.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus1 = (props) => (
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposurePlus1 = pure(ImageExposurePlus1);
ImageEx... |
packages/material-ui-icons/src/ArtTrackOutlined.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="M22 13h-8v-2h8v2zm0-6h-8v2h8V7zm-8 10h8v-2h-8v2zm-2-8v6c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2zm-1.5 6l-2.25-3-1.75 2... |
app/lib/react/react-with-addons.min.js | iamssurya/assister | /**
* React (with addons) v15.4.2
*
* Copyright 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 s... |
web/src/components/Help.js | jhonfredynova/Scaffolding-Nodejs-Reactjs | import React, { Component } from 'react';
import { FormattedMessage } from 'react-intl';
class Help extends Component {
render() {
return (
<h1 className="text-center"><FormattedMessage id={ 'help' } /></h1>
);
}
}
export default Help;
|
public/js/10C.js | ritchieanesco/frontendmastersreact | /* Abstract reusable component and loop through data */
import React from 'react'
import preload from '../../public/data.json'
import ShowCard from './10D'
const Search = React.createClass({
render () {
return (
<div className='search'>
{ /* <pre><code>{JSON.stringify(preload, null, 4)}</code></pr... |
frontend/src/components/dialog/sysadmin-dialog/sysadmin-add-member-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { gettext, orgID } from '../../../utils/constants';
import { seafileAPI } from '../../../utils/seafile-api';
import { Utils } from '../../../utils/utils';
import toaster... |
src/svg-icons/action/settings-ethernet.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsEthernet = (props) => (
<SvgIcon {...props}>
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12... |
ajax/libs/yasgui/1.0.13/yasgui.bundled.min.js | viskin/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... |
app/Screens/Home/Home.js | martinvarelaaaa/tintina | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { NavigationActions } from 'react-navigation';
import Home from '../../Components/Home';
const signInNavigator = NavigationActions.reset({
index: 0,
actions: [NavigationActions.navigate({ routeName: 'SignIn' })],
});
const signU... |
src/main/resources/VAADIN/mediaelement/jquery.js | korpling/ANNIS | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/_wlk/SocialMediaLink.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import Button from '@material-ui/core/Button';
const SocialMediaLink = ({ href, label, children }) => (
<li className="wlk-AboutPage-socialMedia">
<Button target="_blank" href={href}>
<span className="wlk-AboutPage-socialMediaIcon">{children}</... |
ajax/libs/thorax/2.0.0rc3/thorax.min.js | kwokhou/cdnjs | (function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ... |
packages/blaze/materializer.js | brdtrpp/meteor | // Turns HTMLjs into DOM nodes and DOMRanges.
//
// - `htmljs`: the value to materialize, which may be any of the htmljs
// types (Tag, CharRef, Comment, Raw, array, string, boolean, number,
// null, or undefined) or a View or Template (which will be used to
// construct a View).
// - `intoArray`: the array of DO... |
ajax/libs/rxjs/2.3.7/rx.all.compat.js | bspaulding/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/yui/3.6.0/event-custom-base/event-custom-base.js | ThibWeb/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... |
packages/material-ui-icons/src/ThreeSixtyRounded.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="M12 7C6.48 7 2 9.24 2 12c0 2.24 2.94 4.13 7 4.77v2.02c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36v1.52c-3.1... |
src/svg-icons/av/explicit.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvExplicit = (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-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/>
</SvgIcon>
);
AvExplicit = pure(AvExplic... |
ajax/libs/react-native-web/0.13.14/exports/TouchableHighlight/index.js | cdnjs/cdnjs | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < argument... |
app/containers/Planning/DsGallery.js | frascata/vivaifrappi | import React from 'react';
import Gallery from '../../components/Gallery/index';
const S3_BASE_PATH = 'https://s3.eu-central-1.amazonaws.com/vivaifrappi/servizi/progettazione/ds/';
const S3_TMB_PATH = 'tmb/';
const S3_TMP_POSTFIX = '-300x200-no-upscale';
const S3_FILE_EXT = '.jpg';
const IMAGES = [
'ds_01_progetto'... |
Realization/frontend/czechidm-core/src/components/advanced/RoleCompositionInfo/RoleCompositionInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { RoleCompositionManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
import EntityInfo from '../EntityInfo/EntityInfo';
c... |
examples/js/basic/borderless-table.js | pvoznyuk/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/examples/AdvancedTodoList/Form.js | steos/elmar.js | import React from 'react'
import {message, targetValue} from '../../elmar'
export const ActionType = {
Submit: 'submit-form',
Change: 'change-form'
}
export const Action = {
Submit: {type: ActionType.Submit},
Change: e => ({type: ActionType.Change, value: targetValue(e)})
}
export const init = (... |
ajax/libs/babel-core/5.0.6/browser-polyfill.js | perfect-pixell/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/react/demo/src/App.js | enjoylife/storybook | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
dcc-portal-ui/app/scripts/oncololliplot/js/react-components/Lolliplot.js | icgc-dcc/dcc-portal | import React, { Component } from 'react';
import { object } from 'prop-types';
import { connect } from 'react-redux';
import LolliplotChart from './LolliplotChart';
import Toolbar from './Toolbar';
import Tooltip from './Tooltip';
import Backbone from './Backbone';
import Minimap from './Minimap';
import Loading from '... |
docs/src/sections/BreadcrumbSection.js | jesenko/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function BreadcrumbSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/ui/confirm-focus-mode.js | esvbible/esvbible.github.io | import React from 'react';
export default ({confirmFocusMode}) =>
<div style={{
position: 'absolute',
left: '1.3rem',
right: '1.3rem',
bottom: '3rem',
backgroundColor: 'black',
color: 'white',
textAlign: 'center',
borderRadius: '1rem',
}}>
<p>... |
docs/app/Examples/elements/Label/Types/LabelExampleRibbon.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Image, Label, Segment } from 'semantic-ui-react'
const LabelExampleRibbon = () => (
<Grid columns={2}>
<Grid.Column>
<Segment raised>
<Label as='a' color='red' ribbon>Overview</Label>
<span>Account Details</span>
<Image src='http://semantic-... |
tests/Rules-isEmptyString-spec.js | hanbar/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.getValue()} readOnly/>;
}
});
const TestForm = React.createClass({
render() {
re... |
docs/src/pages/premium-themes/tweeper/components/tweeper/AccordingWhom.js | allanalexandre/material-ui | import React from 'react';
import Button from '@material-ui/core/Button/Button';
import Divider from '@material-ui/core/Divider/Divider';
import List from '@material-ui/core/List/List';
import ListItem from '@material-ui/core/ListItem/ListItem';
import ListItemText from '@material-ui/core/ListItemText/ListItemText';
im... |
src/components/Options.js | kalpetros/hawkpass | import PropTypes from 'prop-types';
import React from 'react';
import { Button } from './Button';
import { WordList } from './WordList';
export const Options = props => {
const {
useWords,
useNumbers,
useSymbols,
useSpaces,
useCase,
useWordList,
} = props.options;
const { onSetWords, onS... |
generators/nfeb/templates/htmls/pcweb/pageapp.js | Horve/generator-nlife | /**
* @jsdoc function
* @name <%= appname %>.page:<%= pageName %>
* @description
* # <%= classedName %>
* page of the <%= appname %>
* `<<%= classedName %>App/>` main file
*/
import React from 'react';
import NLDownload from '../common/nl_download.js';
import NLDownloadType from '../../../../global_define/downl... |
examples/shopping-cart/src/components/ProductItem.spec.js | roth1002/redux | import React from 'react'
import { shallow } from 'enzyme'
import Product from './Product'
import ProductItem from './ProductItem'
const setup = product => {
const actions = {
onAddToCartClicked: jest.fn()
}
const component = shallow(
<ProductItem product={product} {...actions} />
)
return {
co... |
app/js/vendor/jquery-1.11.2.min.js | maraymer/article-rewriter | /*! jQuery v1.11.2 | (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/routes/login/index.js | bharathbhsp/refactored-funicular | /**
* 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... |
ajax/libs/core-js/0.1.1/shim.js | bspaulding/cdnjs | /**
* Core.js 0.1.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
app/javascript/mastodon/features/status/index.js | clworld/mastodon | import Immutable from 'immutable';
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '..... |
src/js/components/city__list__container/index.js | Arlefreak/arlefreakClient | import PropTypes from 'prop-types';
import React from 'react';
import Remarkable from 'remarkable';
import Page from '../../containers/page';
import List from '../city__list';
import CategoryList from '../../containers/portfolio/filter__categories';
import TagList from '../../containers/portfolio/filter__tags';
impor... |
ajax/libs/jquery/1.11.0/jquery.min.js | kartikrao31/cdnjs | /*! 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... |
src/containers/Home/Home.js | jsdmc/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
imports/client/ui/pages/Index.js | mgscreativa/base | import React from 'react';
import { Jumbotron } from 'react-bootstrap';
const Index = () => (
<div className="Index">
<Jumbotron className="text-center">
<h2>Base</h2>
<p>A starting point for Meteor applications.</p>
<p><a className="btn btn-success" href="https://themeteorchef.com/base" role="... |
app/javascript/mastodon/features/home_timeline/components/setting_text.js | 3846masa/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropTypes.string.isR... |
src/components/users/ProfileInfo.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import PropTypes from 'prop-types';
import { formatDate } from '../../lib/shared'
const ProfileInfo = ({ email, avatar_url, nickname, first_name, last_name, created_at }) => {
return (
<div className="content has-text-centered">
<img src={avatar_url} alt="avatar" id="avatar" />
... |
src/server.js | lian1925/redux | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
// import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import A... |
example/ExampleForm.js | moser-inc/react-json-form | import React, { Component } from 'react';
import JSONTree from 'react-json-tree';
import { BasicForm as Form, Nest, createInput } from '../src';
const Input = createInput()(props => <input type="text" {...props} />);
const Checkbox = createInput({ toggleable: true })(({ children, ...props }) => (
<label><input typ... |
src/components/sidebar.js | Full-Metal-JS/reserver-space | import React from 'react';
import SidebarLocation from './SidebarLocation';
const Sidebar = ({locationsList, roomsList}) => {
let locations = locationsList ? locationsList.map(location =>
<SidebarLocation location={location} roomsList={roomsList}/>) : '';
return (
<div className='col-sm-3 col-md-2 sidebar... |
ajax/libs/forerunnerdb/1.3.368/fdb-legacy.js | ahocevar/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... |
phpmyadmin/js/openlayers/src/openlayers/lib/OpenLayers/Control/Panel.js | dtinetworks/openemr | /* Copyright (c) 2006-2010 by OpenLayers Contributors (see authors.txt for
* full list of contributors). Published under the Clear BSD license.
* See http://svn.openlayers.org/trunk/openlayers/license.txt for the
* full text of the license. */
/**
* @requires OpenLayers/Control.js
*/
/**
* Class: OpenLayers.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.