path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/window1/__init__/routes.js | MichalBures/electron-redux-multi-window-comm-test-app | import React, { Component } from 'react';
import {Route, IndexRedirect} from 'react-router'
import App from 'window1/containers/App'
import CountersExample from '../views/CountersExample'
import MessagingExample from '../views/MessagingExample'
import ConfigExample from '../views/ConfigExample'
export default (
<Rou... |
server/priv/js/components/MZBenchApp.react.js | bks7/mzbench | import React from 'react';
import MZBenchActions from '../actions/MZBenchActions';
import Timeline from './Timeline.react';
import Bench from './Bench.react';
class MZBenchApp extends React.Component {
componentWillMount() {
MZBenchActions.subscribeBenchTimeline();
}
componentWillUnmount() {
... |
Scripts/jquery-1.9.1.js | bridgelabz/bridgelabz.github.io | /*!
* 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 ... |
src/components/DeveloperMenu.js | yogakurniawan/phoney-mobile | import React from 'react';
import {View} from 'react-native';
// For tests
const DeveloperMenu = () => <View/>;
export default DeveloperMenu;
|
06-enhanced-object-literals/src/index.js | benmvp/react-esnext | // Module imports to load in dependencies
// Uses both default & named imports
import React from 'react';
import {render} from 'react-dom';
import App from './containers/App';
render(
<App url="//localhost:3000/api/comments" pollInterval={2000} />,
document.getElementById('app')
);
|
dist/components/page4.js | LongStoryMedia/Compass | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
const Page4 = () => {
return (
<div>
<h1>Where can I get some?</h1>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humo... |
files/react/0.14.0-rc1/react-with-addons.min.js | Asaf-S/jsdelivr | /**
* React (with addons) v0.14.0-rc1
*
* 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 ... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | VikingDen/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
src/Typography/Display3.js | kradio3/react-mdc-web | import React from 'react';
import TypographyElement from './TypographyElement';
const defaultProps = {
component: 'h1',
};
const Display3 = props => (
<TypographyElement
modificator="display3"
{...props}
/>
);
Display3.defaultProps = defaultProps;
export default Display3;
|
Examples/UIExplorer/TouchableExample.js | southasia/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
ajax/libs/react-virtualized/5.5.6/react-virtualized.min.js | keicheng/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("react"),require("react-dom")):e.ReactVirtualized=t(e.React,e.ReactDO... |
src/MenuItem.js | mcraiganthony/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const MenuItem = React.createClass({
propTypes: {
header: React.PropTypes.bool,
divider: React.PropTypes.bool,
href: React.PropTypes.string,
title: React.PropTypes.string,
target: React.PropTypes.string,
onSelect... |
src/client/containers/Flat.js | kowhai-2016/flatme | import { connect } from 'react-redux'
import { fetchFlat } from '../actions'
import Flat from '../components/Flat'
const mapStateToProps = (state, ownProps) => {
const id = Number(ownProps.params.id)
return {
flat: state.flats[id]
}
}
const mapDispatchToProps = (dispatch, ownProps) => {
return {
fetc... |
app/views/STF/Dashboard/Budgeting/SubTable/SubTable.js | RcKeller/STF-Refresh | import React from 'react'
import PropTypes from 'prop-types'
import _ from 'lodash'
import { Row, Col, Table } from 'antd'
const currency = number =>
number.toLocaleString('en-US', {
style: 'currency',
currency: 'USD'
})
const manifestColumns = [
{
title: 'Name',
dataIndex: 'name... |
src/components/statistics/ProgressBar.js | vlamy/rtypist | import React, { Component } from 'react';
import './ProgressBar.sass';
const PropTypes = {
statistics: React.PropTypes.object
};
/**
*/
export default class ProgressBar extends Component {
render() {
return (
<div className="rtypist__exercise-manager__typing-tracker__progress-bar">
<span style={... |
src/components/stuff.js | emmoistner/minecoaster | import React, { Component } from 'react'
import { Card, CardTitle, CardText } from 'material-ui/Card'
import Players from './players'
class Stuff extends Component {
render () {
return (
<div style={{margin: '0 25%'}}>
<Card style={{marginTop: '25px', cursor: 'pointer'}} onClick={() => window.loca... |
ajax/libs/redux-form/1.6.0/redux-form.min.js | boneskull/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
ajax/libs/react-native-web/0.12.0-rc.1/exports/AppRegistry/renderApplication.js | cdnjs/cdnjs | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
/... |
examples/todomvc/test/components/MainSection.spec.js | dieface/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import MainSection from '../../components/MainSection'
import TodoItem from '../../components/TodoItem'
import Footer from '../../components/Footer'
import { SHOW_ALL, SHOW_COMPLETED } from '../../constants/TodoFilters... |
public/js/11B.js | ritchieanesco/frontendmastersreact | /* Setting application state */
import React from 'react'
import { Link } from 'react-router'
const Landing = React.createClass({
render () {
return (
<div className='landing'>
<h1>My Landing</h1>
<input type='text' placeholder='Search' />
<Link to='/search'>or Browse all</Link>
... |
app/javascript/mastodon/components/icon_button.js | hugogameiro/mastodon | import React from 'react';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class IconButton extends React.PureComponent {
static propTypes = {
className: PropTypes.stri... |
src/containers/NotFound/NotFound.js | guymorita/creditTiger | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
web/src/client/index.js | opendaylight/spectrometer | /**
# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0>
##############################################################################
# Copyright (c) 2016 The Linux Foundation and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public L... |
examples/huge-apps/routes/Course/components/Dashboard.js | tkirda/react-router | import React from 'react'
class Dashboard extends React.Component {
render() {
return (
<div>
<h3>Course Dashboard</h3>
</div>
)
}
}
export default Dashboard
|
src/views/components/icon/icon.spec.js | connorbanderson/CoinREXX | import React from 'react';
import { render, shallow } from 'enzyme';
import Icon from './icon';
describe('Icon', () => {
it('should render an icon', () => {
const wrapper = shallow(<Icon name="play" />);
expect(wrapper.contains(<span className="material-icons">play</span>)).toBe(true);
});
it('should a... |
src/components/PlayerAvatar.js | iNaesu/nba-player-dashboard | import React from 'react';
import '../style/components/PlayerAvatar.css';
export default function PlayerAvatar(props) {
return (
<div className='PlayerAvatar'>
<div className='PlayerAvatar-img-wrapper'>
<img src={props.img} alt={props.playerName} />
</div>
<div className='PlayerAvatar... |
scripts/app.js | anaptfox/imessage-search | import React from 'react';
import ReactDOM from 'react-dom';
import Main from '../components/main.jsx';
window.onload = function() {
ReactDOM.render( < Main / > , document.getElementById('app'));
}
|
classic/src/scenes/wbui/ConfirmButton.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import { Button } from '@material-ui/core'
import shallowCompare from 'react-addons-shallow-compare'
export default class ConfirmButton extends React.Component {
/* **************************************************************************/
// Class
/*... |
src/components/DBTable/InnerTotal.js | lijinfengworm/ant-design-reactjs | import React from 'react';
import {
Button,
Table,
Icon,
Modal,
message,
notification,
Affix,
Card, Col, Row, Progress, Tag
} from 'antd';
import Logger from '../../utils/Logger';
import Utils from '../../utils';
import ajax from '../../utils/ajax';
import moment from 'moment';
import ImageSlider from '... |
src/components/chatrooms/suggestions/SuggestionsReview.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import PropTypes from 'prop-types'
import Suggestion from './Suggestion'
import SuggestionInfoModal from './SuggestionInfoModal'
import SuggestionGoogleModal from './SuggestionGoogleModal'
class SuggestionsReview extends React.Component {
constructor(props) {
super(props)
this.sta... |
app/components/dashboard/about/AboutModal.js | mchlltt/mementoes | // Import dependencies, components, and services.
import React from 'react';
import {Modal} from 'react-bootstrap';
// Create component.
let AboutModal = React.createClass({
render() {
return (
<Modal
{...this.props}
show={true}
onHide={this.props... |
src/client/index.js | sanchitgangwar/remind-plus | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter, Route } from 'react-router-dom';
import { AppContainer } from 'react-hot-loader';
import { MuiThemeProvider } from 'material-ui/styles';
import Root from 'Universal/components/AppContainer';
i... |
src/svg-icons/device/wifi-lock.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiLock = (props) => (
<SvgIcon {...props}>
<path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13.... |
node_modules/react-icons/md/subdirectory-arrow-right.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdSubdirectoryArrowRight = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.6 25l-10 10-2.3-2.3 6-6.1h-18.7v-20h3.4v16.8h15.3l-6-6.1 2.3-2.3z"/></g>
</Icon>
)
export default MdSubdirectoryArrowRight
|
src/components/grunt/original-wordmark/GruntOriginalWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './GruntOriginalWordmark.svg'
/** GruntOriginalWordmark */
function GruntOriginalWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className={'Grun... |
app/components/country-rank.js | FongZooZ/test-redux-dota2 | import React, { Component } from 'react';
class CountryRank extends Component {
render() {
let mmrTable = null;
let { countriesRank } = this.props;
if (countriesRank && countriesRank.length > 0) {
let countryRows = [];
countriesRank.forEach((row, index) => {
countryRows.push(
<tr key={`country_... |
ajax/libs/yui/3.4.0pr2/loader/loader-base.js | pombredanne/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
bower_components/modernizr/test/js/lib/jquery-1.7b2.js | kitchenmagic/squeegee | /*!
* jQuery JavaScript Library v1.7b2
* 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.
... |
node_modules/css-loader/node_modules/postcss/lib/css-syntax-error.js | ibjohansen/acando-react-boilerplate | 'use strict';
exports.__esModule = true;
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writab... |
src/index.js | taylordevereaux/ppu-compare | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
// Css
import '../node_modules/bootstrap/dist/css/bootstrap.css';
import './index.css';
import './theme/dist/toolkit-inverse.css';
// Utils
import registerServiceWorker from './utilities/registerServiceWorker';
// Javascript
import jq... |
blueocean-material-icons/src/js/components/svg-icons/av/radio.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvRadio = (props) => (
<SvgIcon {...props}>
<path d="M3.24 6.15C2.51 6.43 2 7.17 2 8v12c0 1.1.89 2 2 2h16c1.11 0 2-.9 2-2V8c0-1.11-.89-2-2-2H8.3l8.26-3.34L15.88 1 3.24 6.15zM7 20c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm13-8h-2v-2h... |
book_list/src/components/app.js | williampuk/ReduxCasts | import React from 'react';
import { Component } from 'react';
import BookList from '../containers/book-list';
import BookDetail from '../containers/book-detail';
export default class App extends Component {
render() {
return (
<div>
<BookList />
<BookDetail />
</div>
);
}
}
|
ajax/libs/ember-data.js/1.0.0-beta.8/ember-data.prod.js | LeaYeh/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2014 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 1.0.0-beta.8.2a68c63a
*/
(function(global) {
var define, requireModule, require, requirejs;
(funct... |
src/entypo/OpenBook.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--OpenBook';
let EntypoOpenBook = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10.595,5.196l0.446,1.371c0.369-0.316,0.835-0.599,1.441-0.795c0.59-0.192,1.111-0.3,1.582-0.362l-0... |
docs/app/Examples/elements/Container/Types/ContainerExampleText.js | aabustamante/Semantic-UI-React | /* eslint-disable max-len */
import React from 'react'
import { Container, Header } from 'semantic-ui-react'
const ContainerExampleText = () => (
<Container text>
<Header as='h2'>Header</Header>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa stron... |
src/components/BladeFluid.js | pjkarlik/ReactUI | import React from 'react';
import { resolve } from '../styles';
export default class BladeNav extends React.Component {
static displayName = 'BladeNav';
static propTypes={
classes: React.PropTypes.object,
items: React.PropTypes.object,
};
constructor(props) {
super(props);
this.state = {
... |
docs/app/Examples/elements/Image/States/ImageExampleDisabled.js | koenvg/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleDisabled = () => (
<Image src='/assets/images/wireframe/image.png' size='medium' disabled />
)
export default ImageExampleDisabled
|
application/views/scripts/javascripts/vendor/jquery.js | zploskey/ExperimentalBeijing | /*! 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... |
openex-front/src/components/SearchFilter.js | Luatix/OpenEx | import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import withStyles from '@mui/styles/withStyles';
import TextField from '@mui/material/TextField';
import InputAdornment from '@mui/material/InputAdornment';
import { Search } from '@mui/icons-material';
import { compose } from 'ramda';
i... |
client/modules/comments/components/create_comment.js | luki21213/tripIdeas | import React from 'react';
class CreateComment extends React.Component {
render() {
const {error} = this.props;
return (
<div>
{error ? this._renderError(error) : null}
<textarea ref='text' placeholder='Enter your comment here.'>
</textarea>
<br />
<button onCli... |
ajax/libs/react-native-web/0.11.5/vendor/react-native/VirtualizedList/index.js | cdnjs/cdnjs | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
f... |
client/components/settings/emails/alert-form-modal.js | jankeromnes/kresus | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { translate as $t, AlertTypes } from '../../../helpers';
import { actions } from '../../../store';
import AccountSelector from './account-select';
import AmountInput from '../../ui/amount-input';
import Modal... |
examples/js/manipulation/export-csv-column-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 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;
p... |
src/Tooltip.js | mmartche/boilerplate-shop | import classNames from 'classnames';
import React from 'react';
import isRequiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
export default class Tooltip extends React.Component {
render() {
const {
placement,
positionLeft,
positionTop,
arrowOffsetLeft,
arrowOffsetTop,
... |
src/search/facet-box/index.js | asimsir/focus-components | import React from 'react';
import builder from 'focus-core/component/builder';
import type from 'focus-core/component/types';
import {translate} from 'focus-core/translation';
let assign = require('object-assign');
let omit = require('lodash/object/omit');
// Components
let Facet = require('./facet').component;
let I... |
ajax/libs/yui/3.2.0/event-custom/event-custom-base-debug.js | cnbin/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
app/javascript/mastodon/components/media_gallery.js | abcang/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
ui/src/components/JsonTextArea/index.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map, fromJS } from 'immutable';
import Textarea from 'react-textarea-autosize';
import classNames from 'classnames';
import {
debounce,
assign,
} from 'lodash';
import { cursorPosition } from 'lib/helpers/textCursor';
const stat... |
src/components/ListNews.js | kolyaka006/imaginarium | import React from 'react'
import PropTypes from 'prop-types'
import BlockNews from './BlockNews'
const BLOCK_ON_PAGE = 5
let ListNews = ({ idUser, news = [], load, filterArray = [], curPage = 0, searchText = '',
search, filter, filterDelete, changePage, checked, changeChecked }) => {
let searchInp... |
react/src/GridContainer.js | Chalarangelo/react-mini.css | import React from 'react';
// Module constants (change according to your flavor file)
var gridContainerClassName = 'container';
// GridContainer component.
export function GridContainer (props){
var outProps = Object.assign({},props);
if (typeof outProps.className === 'undefined') outProps.className = gridContainer... |
src/containers/nav.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import NavComponent from 'Theme/nav'
class Nav extends React.Component {
constructor() {
super()
this.state = {
isOpenMobile: false,
openSections: []
}
this.toggleOpen = this.toggleOpen.bind... |
tests/react_native_tests/test_data/native_code/Switch/app/components/Mobile/index.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react/native'
import styles from './styles'
import Mobile from './component'
@observer
class MobileWrapper extends React.Component {
render() {
return (
<Mobile
{...this.props}
></Mob... |
public/admin/scripts/jquery.min.js | rbenjamint/ravel | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
app/containers/home.js | FongZooZ/test-redux-dota2 | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { fetchHeroes, removeHeroes } from '../actions/heroes';
import { fetchCountriesRank } from '../actions/mmr';
import HeroesTable from '../components/hero-table';
import CountryRank from '../compon... |
ajax/libs/core-js/0.3.0/core.js | ljharb/cdnjs | /**
* Core.js 0.3.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
node_modules/firebase/firebase-react-native.js | eugenotop/odd-even-game | /*! @license Firebase v4.1.3
Build: rev-1234895
Terms: https://firebase.google.com/terms/ */
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _app = require('./app');
var _app2 = _interopRequireDefault(_app);
require('./auth');
function _interopRequireDefault(obj) { return obj ... |
src/main.js | magnusao/StarupProject | import "babel-polyfill";
import React from 'react';
import ReactDOM from 'react-dom';
import Gallery from './Gallery';
import MenuBar from './MenuBar';
import {createStore, applyMiddleware} from 'redux';
import createSagaMiddleware from 'redux-saga';
import {Provider} from 'react-redux';
import reducer from './reduce... |
client/component/redirect-edit/position.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
import { translate as __ } from 'i18n-calypso';
import PropTypes from 'prop-types';
const RedirectPosition = ( { position, onChange } ) => {
return (
<span className="redirect-edit-position">
<strong>{ __( 'Position' ) }</strong>
<input type="... |
packages/material-ui-icons/src/TurnedIn.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'TurnedIn');
|
js/src/views/Home/News/news.js | BSDStudios/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: 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
// (at your option) any lat... |
src/svg-icons/action/theaters.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTheaters = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgI... |
src/components/UserDetail.js | madjid-asa/github_users_browser | import React, { Component } from 'react';
import {connect} from 'react-redux';
import {Panel, Col, Row, Image, ListGroup, ListGroupItem } from 'react-bootstrap';
class UserDetail extends Component {
render() {
const msgDontFound = "Sorry, we don't have this information yet";
const name = this.props.curren... |
src/components/Props.js | mbeaudru-mrkl/addon-info-meta | import React from 'react';
import PropTypes from 'prop-types';
import PropVal from './PropVal';
const stylesheet = {
propStyle: {},
propNameStyle: {},
propValueStyle: {},
};
export default function Props(props) {
const { maxPropsIntoLine, maxPropArrayLength, maxPropObjectKeys, maxPropStringLength } = props;
... |
analysis/warlockdemonology/src/modules/talents/SummonVilefiend.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import STATISTIC_CATEGORY from 'parser/ui/STATISTIC_CATEGORY';
import Statistic from 'parser/ui/Statistic';
import BoringSpellValueText from 'parser/ui/BoringSpe... |
packages/material-ui-icons/src/MoodTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm3.5 4c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5zm-7 0c.... |
src/containers/DevTools/DevTools.js | rongkaixia/web-server | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
milestones/03-inline-styles/Before/src/nav.js | jaketrent/react-drift | import PropTypes from 'prop-types'
import React from 'react'
function Nav(props) {
return (
<div>
<button onClick={props.onPrevious}>❮</button>
<button onClick={props.onNext}>❯</button>
</div>
)
}
Nav.propTypes = {
onPrevious: PropTypes.func.isRequired,
onNext: PropTypes.func... |
app/components/ClosingModal.js | animalphase/bramble | // @flow
import React from 'react';
// import { Route } from 'react-router-dom';
// click and drag derived from https://stackoverflow.com/questions/20926551/recommended-way-of-making-react-component-div-draggable
class ClosingModal extends React.Component {
constructor(props) {
super(props);
}
componentDid... |
app/scripts/partials/Notification.react.js | darbio/auth0-roles-permissions-dashboard-sample | import React from 'react';
export default class Notification extends React.Component {
constructor(props) {
super(props);
}
getClassName() {
if ('success' === this.props.level) {
return 'alert alert-dismissible alert-success';
} else if ('error' === this.props.level) {
return 'alert alert-dismissible a... |
src/components/Search/Search.js | liufulin90/react-admin | import React from 'react'
import ReactDOM from 'react-dom'
import styles from './Search.less'
import { Input, Select, Button, Icon } from 'antd'
class Search extends React.Component {
constructor(props) {
super(props)
const { select, selectProps } = this.props
this.state = {
clearVisible: ... |
ajax/libs/angular-google-maps/2.0.13/angular-google-maps.js | chrisdavies/cdnjs | /*! angular-google-maps 2.0.13 2015-02-25
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, ... |
src/packages/@ncigdc/components/QuickSearch/FileHistoryResults.js | NCI-GDC/portal-ui | import React from 'react';
import _ from 'lodash';
import withSelectableList from '@ncigdc/utils/withSelectableList';
import { styles as resultStyles } from './QuickSearchResults';
import { Row, Column } from '@ncigdc/uikit/Flex';
const styles = {
resultIcon: {
width: 32,
height: '3.2rem',
display: 'fle... |
src/components/Filters.js | vaibhavb/water-logger | import React from 'react';
export default class Filters extends React.Component {
static propTypes = {
authors: React.PropTypes.array.isRequired,
setAuthor: React.PropTypes.func.isRequired,
order: React.PropTypes.string.isRequired,
setOrder: React.PropTypes.func.isRequired
}
render() {
retu... |
wp-includes/js/jquery/jquery.js | nikanzo/blozone | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
*/
(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,x=function(e,t){return new x.fn.ini... |
src/Parser/Monk/Windwalker/Modules/Spells/ComboBreaker.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import StatisticBo... |
frontend/src/Organize/OrganizePreviewModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import OrganizePreviewModalContentConnector from './OrganizePreviewModalContentConnector';
function OrganizePreviewModal(props) {
const {
isOpen,
onModalClose,
...otherProps
} = props;
return (... |
ajax/libs/react/0.13.0/react.js | IonicaBizauKitchen/cdnjs | /**
* React v0.13.0
*/
(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}els... |
src/components/ContextEditor.js | jimf/intl-live | import React from 'react';
import PropTypes from 'prop-types';
const handleContextChange = (f, x) => e => f({ [x]: e.target.value });
const inputTypeMap = {
numberFormat: 'number',
pluralFormat: 'number',
dateFormat: 'date',
timeFormat: 'time',
};
const ContextEditor = ({
context,
setContextVa... |
ajax/libs/react-data-grid/2.0.2/react-data-grid.min.js | sashberd/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
src/parseRoutes.js | TransferGo/react-subrouter | import React from 'react';
/**
Example:
<SubRoute handler={Pending}>
<SubRoute name="deposit" handler={Deposit}> // trailingName
<SubRoute name="card" handler={Card}/> // default subroute for "deposit" (first in a list)
<SubRoute name="bank" handler={Bank}/>
</SubRoute>
<SubRoute name=... |
packages/mui-icons-material/lib/EmojiFoodBeverageTwoTone.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
client/components/DashboardSection.js | mmazzarolo/numvalidate | /* @flow */
import React from 'react';
import Spinner from './Spinner';
import Button from './Button';
import style from './DashboardSection.css';
type Props = {
title: string,
subtitle: string,
rightElement?: any,
rightButtonText?: string,
rightButtonType?: string,
onRightButtonClick?: () => mixed,
load... |
src/parser/rogue/subtlety/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { tsabo } 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 built a l... |
__tests__/components/SkipLinks-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import SkipLinks from '../../src/js/components/SkipLinks';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('SkipLinks',... |
rmdk/rmdk/static/js/libs/jquery.min.js | thoreg/raus-mit-den-kids | /*! 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... |
node_modules/react-icons/fa/lemon-o.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaLemonO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.4 18.4q0-0.9-0.1-2.5t-0.5-2.1q-0.2-0.7-0.3-1t-0.2-0.8-0.1-1.1q0-0.5 0.1-1.6t0.1-1.5q0-0.8-0.2-1.2-0.1 0-0.3 0-0.4 0-1.3 0.1t-1.3 0.1q-1.4 0-4-0.5t-3.9-0.6q-0.9 0-2... |
src/renderer_process/app/entry.js | pastahito/remus | // React app
import React from 'react'
import {render} from 'react-dom'
import App from './components/base_layout/App.jsx'
// Redux state manager
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import reducers from './state_manager/reducers'
// Electron IPC communication events
import ipcRe... |
src/templates/post-template.js | renegens/blog | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Post from '../components/Post';
import { useSiteMetadata } from '../hooks';
import type { MarkdownRemark } from '../types';
type Props = {
data: {
markdownRemark: MarkdownRemark
}
};
... |
src/components/pub-key-list/pub-key-list-item.js | Storj/metadisk-gui | import React from 'react';
const PubKeyListItem = (props) => {
return (
<tr>
<td>
<input
type = "checkbox"
onClick = {(e) => props.itemSelectAction(props.rowItem)}
checked = {props.isSelected}/>
</td>
<td onClick = {(e) => {e.preventDefault(); props.edi... |
react/rock-paper-token/src/components/HandPicker/index.js | ripter/Workshops | import React from 'react';
import cn from 'classnames';
import './styles.css';
import { Rock } from '../Rock';
import { Paper } from '../Paper';
import { Scissors } from '../Scissors';
export function HandPicker(props) {
const { selected, onClick } = props;
console.log('props', props);
const handleClick = (h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.