path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
example/src/screens/types/LightBox.js | junedomingo/react-native-navigation | import React from 'react';
import {StyleSheet, View, Text, Dimensions, Button} from 'react-native';
class Lightbox extends React.Component {
render() {
return (
<View style={styles.container}>
<View style={{flex: 8}}>
<Text style={styles.title}>{this.props.title}</Text>
<Text s... |
ajax/libs/material-ui/5.0.0-alpha.13/legacy/Unstable_TrapFocus/Unstable_TrapFocus.js | cdnjs/cdnjs | /* eslint-disable @typescript-eslint/naming-convention, consistent-return, jsx-a11y/no-noninteractive-tabindex */
import * as React from 'react';
import PropTypes from 'prop-types';
import { exactProp, elementAcceptingRef } from '@material-ui/utils';
import ownerDocument from '../utils/ownerDocument';
import useForkRef... |
node_modules/react-bootstrap/es/Modal.js | mohammed52/door-quote-automator | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
app/stories/Dashboard.js | root-systems/cobuy | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import Dashboard from '../components/Dashboard'
const actions = {
ordering: {
startOrder: action('ordering.startOrder')
}
}
storiesOf('app.Dashboard', module)
.add('default', () => (
... |
index.js | khejing/react-scroller | require("./style.css");
import React from 'react';
import classNames from 'classnames';
import throttle from 'lodash/function/throttle.js';
import ScreenAttributes, {getScreenAttributes} from 'screen-attributes-mixin';
import {isDesktop} from 'ua.js';
const Scroller = React.createClass({
mixins: [ScreenAttributes]... |
client/js/index.js | khlieng/name_pending | import './hot';
import React from 'react';
import { render } from 'react-dom';
import Root from 'components/Root';
import { appSet } from 'state/app';
import initRouter from 'utils/router';
import Socket from 'utils/Socket';
import configureStore from './store';
import routes from './routes';
import runModules from '.... |
src/router/Logout.js | change-soft8/cs-project-antd | import React from 'react'
const Logout = React.createClass({
render() {
return <p>You are now logged out</p>
}
})
module.exports = Logout
|
src/TabbedArea.js | bvasko/react-bootstrap | import React from 'react';
import Tabs from './Tabs';
import TabPane from './TabPane';
import ValidComponentChildren from './utils/ValidComponentChildren';
import deprecationWarning from './utils/deprecationWarning';
const TabbedArea = React.createClass({
componentWillMount() {
deprecationWarning(
'TabbedA... |
app/javascript/mastodon/components/autosuggest_textarea.js | h-izumi/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import ImmutablePureComponent from 'react-immutable-pure-comp... |
src/vendor/recharts/src/cartesian/ZAxis.js | donal-crotty/fuzzy-telegram | /**
* @fileOverview Z Axis
*/
import React, { Component, PropTypes } from 'react';
import pureRender from '../util/PureRender';
@pureRender
class ZAxis extends Component {
static displayName = 'ZAxis';
static propTypes = {
// The name of data displayed in the axis
name: PropTypes.oneOfType([PropTypes.s... |
src/svg-icons/image/crop-square.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropSquare = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/>
</SvgIcon>
);
ImageCropSquare = pure(ImageCropSquar... |
react/eventwizard/components/EventWizardTabFrame.js | jaredhasenklein/the-blue-alliance | import React from 'react'
import EventInfoContainer from '../containers/EventInfoContainer'
import TeamListContainer from '../containers/TeamListContainer'
const EventWizardTabFrame = () => (
<div>
<div className="row">
<div className="col-sm-12">
<ul className="nav nav-tabs">
<li><a href... |
files/zeroclipboard/2.2.0/ZeroClipboard.js | petkaantonov/jsdelivr | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2009-2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.2.0
*/
(function(window, undefined) {
"use str... |
src/js/components/player/Html.js | barumel/ultritium-radio-player | import React from 'react';
import { Grid, Row, Col } from 'react-bootstrap';
export class PlayerHtml extends React.Component {
constructor() {
super();
this.state = {
audio: false,
playing: false
}
}
play() {
const { audio, playing } = this.state;
if (audio.paused) {
audio.... |
app/actions/usergroupActions.js | JasonEtco/flintcms | import React from 'react'
import { push } from 'react-router-redux'
import permissionsQuery from 'utils/permissionsQuery'
import graphFetcher from 'utils/graphFetcher'
import { newToast, errorToasts } from './uiActions'
export const REQUEST_USERGROUP = 'REQUEST_USERGROUP'
export const RECEIVE_USERGROUP = 'RECEIVE_USER... |
node_modules/react/lib/ReactInstanceHandles.js | meetdheeraj/NewsAggregator | /**
* 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 same directory.
*
* @providesModu... |
src/FormControls/Static.js | asiniy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
web/app/books/book-info.js | bitemyapp/serials | // @flow
import React from 'react'
import {Link} from 'react-router'
import {last, assign} from 'lodash'
import {SourceCover, Cover, CoverOverlay} from'../cover'
import {toDateString} from '../helpers'
import {SourceStatus, Status, emptySource, Source} from '../model/source'
import {Chapter} from '../model/chapter'
... |
ajax/libs/video.js/4.5.0/video.dev.js | khasinski/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | deevatech/frontend | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
src/Alert.js | bbc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
ajax/libs/forerunnerdb/1.3.841/fdb-legacy.js | cdnjs/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/components/external/BookingCompleted.js | ChrisWhiten/react-rink | import React from 'react';
// import PropTypes from 'prop-types';
import CheckCircle from 'material-ui/svg-icons/action/check-circle';
import Info from 'material-ui/svg-icons/action/info';
// import CircularProgress from 'material-ui/CircularProgress';
import AttachMoney from 'material-ui/svg-icons/editor/attach-money'... |
app/components/SignupCard/index.js | kevinnorris/bookTrading | import React from 'react';
import ActionButton from 'components/ActionButton';
import * as val from 'utils/fieldValidation';
import TextField from 'components/TextField';
import Title from 'components/Title';
import CenterCard from 'components/CenterCard';
import ServerError from 'components/ServerError';
import { res... |
src/components/SelectField/SelectField.js | GetAmbassador/react-ions | import React from 'react'
import PropTypes from 'prop-types'
import enhanceWithClickOutside from 'react-click-outside'
import classNames from 'classnames/bind'
import style from './style.scss'
import Icon from '../Icon'
export class SelectField extends React.Component {
constructor(props) {
super(props)
}
s... |
src/components/containers/AddCategoryContainer.js | teamNOne/showdown | import React from 'react';
import FormActions from '../../actions/FormActions';
import FormStore from '../../stores/FormStore';
import CombatantActions from '../../actions/CombatantActions';
import AddCategory from '../admin/AddCategory';
import Validator from '../../utilities/FormValidator';
export default class AddC... |
src/index.js | KidLau/react-3d-views | 'use strict';
import React from 'react';
import {render} from 'react-dom';
import {Router, Route, browserHistory, IndexRedirect} from 'react-router';
import CoverFlowView from './examples/cover-flow-view';
const routes = [
<Route path="/">
<IndexRedirect to="/cover-flow-view" />
<Route path="/cover-flow-vi... |
src/pages/contact/index.js | ArturJS/ArturJS.github.io | import React from 'react'
import { navigate } from 'gatsby-link'
import Layout from '../../components/Layout'
function encode(data) {
return Object.keys(data)
.map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key]))
.join('&')
}
export default class Index extends React.Component {
constr... |
src/components/SparklineChart/index.js | dramich/Chatson | import React from 'react';
import { Sparklines, SparklinesLine, SparklinesSpots } from 'react-sparklines';
export default function SparklineChart(props) {
return (
<div>
<Sparklines data={props.data} limit={props.limit}>
<SparklinesLine color={props.color} />
<SparklinesSpots />
</Spa... |
ajax/libs/core-js/0.9.1/library.js | jonathantneal/cdnjs | /**
* Core.js 0.9.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
src/svg-icons/notification/sync-disabled.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncDisabled = (props) => (
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20... |
ajax/libs/video.js/5.0.0-rc.88/alt/video.novtt.js | wil93/cdnjs | /**
* @license
* Video.js 5.0.0-rc.88 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
app/shared/reservation-confirmation/ConfirmReservationModal.js | fastmonkeys/respa-ui | import first from 'lodash/first';
import last from 'lodash/last';
import orderBy from 'lodash/orderBy';
import pick from 'lodash/pick';
import uniq from 'lodash/uniq';
import camelCase from 'lodash/camelCase';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Modal from 'react-bootstr... |
src/components/Counter/Counter.spec.js | theosherry/mx_pl | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'components/Counter/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter: 5,
...bindActionCre... |
ajax/libs/oojs-ui/0.29.0/oojs-ui.js | sufuf3/cdnjs | /*!
* OOUI v0.29.0
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2018 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2018-10-02T23:30:44Z
*/
( function ( OO ) {
'use strict';
/**
* Namespace for all classes, static methods and static pro... |
src/constants.js | JamesJin038801/CampID | import I18n from 'react-native-i18n';
import { Icons } from '@theme';
const constants = {
IP_BUTTONS: [
{ key: 0, label: I18n.t('TAKE_PHOTO') },
{ key: 1, label: I18n.t('PICK_FROM_LIBRARY') },
{ key: 2, label: I18n.t('CANCEL') },
],
HOME_TABS: [
{ id: 0, title: 'WHO', icon: 'who' },
{ id: 1, ... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.10/jquery.js | swalkergibson/ventureyogi | /*!
* jQuery JavaScript Library v1.10.2
* 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-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
grunt/node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/url/node_modules/punycode/vendor/requirejs/tests/jquery/scripts/jquery-1.5.2.js | ralph327/basic | /*!
* jQuery JavaScript Library v1.5.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/react/0.5.0/react-with-addons.js | dominic/cdnjs | /**
* React (with addons) v0.5.0
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;
return ... |
ajax/libs/material-ui/5.0.0-alpha.25/TableRow/TableRow.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { deepmerge } from '@material-ui/utils';
import { unstable_c... |
fixtures/fiber-debugger/src/Fibers.js | STRML/react | import React from 'react';
import {Motion, spring} from 'react-motion';
import dagre from 'dagre';
// import prettyFormat from 'pretty-format';
// import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
}... |
web-app/src/components/Login/index.js | oSoc17/code9000 | /* global window */
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Title from '../Title';
import Divider from '../Divider';
import GuestMode, { GoBack } from '../GuestMode';
import { Errors } from '../Alerts';
import { Form, Input, Button, FacebookButton } from '../Form';
i... |
clients/packages/admin-client/src/components/editor-wysihtml/wysihtml-toolbar-create-link.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
//
// The content widget module it is not the perfect module to provide these actions.
// Needs to refact to more abstract component like global reusable components module.
//
import * as ContentActions from '../../mo... |
ajax/libs/yui/3.10.0/simpleyui/simpleyui.js | Dervisevic/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... |
src/svg-icons/image/crop-square.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropSquare = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/>
</SvgIcon>
);
ImageCropSquare = pure(ImageCropSquar... |
react-native-git-upgrade/index.js | orenklein/react-native | #!/usr/bin/env node
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same direc... |
src/results/ResultsList.react.js | DhammaLuke/citybook | import React, { Component } from 'react';
import Alert from 'react-bootstrap/lib/Alert';
import LoadingSpinner from '../LoadingSpinner.react.js';
import Result from './Result.react.js';
import '../../styles/loading-spinner.scss';
export default class ResultsList extends Component {
constructor(){
super();
}
... |
app/components/ToggleOption/index.js | MaleSharker/Qingyan | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
test/LabelSpec.js | mmartche/boilerplate-shop | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Label from '../src/Label';
describe('Label', () => {
it('Should output a label with message', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Label>
<strong>Messag... |
assets/js/src/pages/Home.js | nathandao/ginatra | import React from 'react';
import connectToStores from 'alt/utils/connectToStores';
import RepoStore from 'stores/RepoStore';
import ChartStore from 'stores/ChartStore';
import Dashboard from 'components/Dashboard/Dashboard';
class Home extends React.Component {
static getStores() {
return [RepoStore, ChartStor... |
examples/src/components/SelectedValuesField.js | SenecaSystems/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var SelectedValuesField = React.createClass({
displayName: 'SelectedValuesField',
propTypes: {
allowCreate: React.PropTy... |
dva/porsche-e3/src/routes/training/act/Notice.js | imuntil/React | import React from 'react'
import { connect } from 'dva'
import TopBanner from '@/components/TopBanner'
import QueueAnim from 'rc-queue-anim'
import './Notice.scss'
const Notice = () => {
function openMap(index) {
console.log(index)
}
return (
<div className="container notice-8u3j9d">
<div className... |
src/scenes/home/history/timelineEvent/timelineEvent.js | OperationCode/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './timelineEvent.css';
const TimelineEvent = ({ title, content }) => (
<div className={styles.eventContainer}>
<h4 className={styles.eventTitle}>{title}</h4>
<div className={styles.eventContent}>{content}</div>
</div>
);
Ti... |
test/server/ModalSpec.js | victorzhang17/react-bootstrap | import React from 'react';
import {assert} from 'chai';
import Modal from '../../src/Modal.js';
describe('Modal', () => {
it('Should be rendered on the server side', () => {
let noOp = () => {};
assert.doesNotThrow(function renderOnServerSide() {
return React.renderToString(
<Modal onHide={noO... |
lms/static/js/student_account/components/spec/PasswordResetConfirmation_spec.js | teltek/edx-platform | /* globals setFixtures */
import ReactDOM from 'react-dom';
import React from 'react';
import sinon from 'sinon'; // eslint-disable-line import/no-extraneous-dependencies
import { PasswordResetConfirmation } from '../PasswordResetConfirmation';
describe('PasswordResetConfirmation', () => {
beforeEach(() => {
se... |
web/app/store.js | agapic/TwitchChatStreaming | /**
* Create the store with asynchronously loaded reducers
*/
import { createStore, applyMiddleware, compose } from 'redux';
import { fromJS } from 'immutable';
import { routerMiddleware } from 'react-router-redux';
import createSagaMiddleware from 'redux-saga';
import createReducer from './reducers';
const sagaMid... |
src/app/views/Home/index.js | nhardy/web-scaffold | // @flow
import React from 'react';
import { Helmet } from 'react-helmet';
import { Link } from 'react-router';
import config from 'app/config';
import { makeTitle } from 'app/lib/social';
import SpecialLayout from 'app/layouts/Special';
import P from 'app/components/P';
import profileImg from 'app/assets/images/prof... |
files/rxjs/2.3.14/rx.all.compat.js | therob3000/jsdelivr | // 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... |
examples/auth-flow/app.js | jhta/react-router | var React = require('react');
var Router = require('react-router');
var { Route, RouteHandler, Link } = Router;
var App = React.createClass({
getInitialState: function () {
return {
loggedIn: auth.loggedIn()
};
},
setStateOnAuth: function (loggedIn) {
this.setState({
loggedIn: loggedIn
... |
app/addons/replication/components/remoteexample.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... |
src/components/sims/sims-by-series/uri-container.js | FranckCo/Operation-Explorer | import React from 'react';
import { sparqlConnect } from 'sparql-connect';
import SimsLabelBySeries from './label-container';
import Spinner from 'components/shared/spinner';
import display from 'utils/display-results';
import D from 'i18n';
/**
* Builds the query that retrieves the products issued of a given series.... |
ajax/libs/flocks.js/0.15.2/flocks.min.js | ljharb/cdnjs | if("undefined"===typeof k)var k=require("react"); (function(){function q(){return!0}function r(){return!0}function b(a,b){if("string"===typeof a)if(~"warn debug error log info exception assert".split(" ").indexOf(a,0))console[a]("Flocks2 ["+a+"] "+b.toString());else console.log("Flocks2 [Unknown level] "+b.toString());... |
app/javascript/mastodon/components/inline_account.js | im-in-space/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { makeGetAccount } from 'mastodon/selectors';
import Avatar from 'mastodon/components/avatar';
const makeMapStateToProps = () => {
const getAccount = makeGetAccount();
const mapStat... |
src/svg-icons/hardware/keyboard-hide.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardHide = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H... |
node_modules/bower/node_modules/inquirer/node_modules/rx/dist/rx.lite.extras.js | PaulKennedyDIT/AngularPlayground | // 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,
... |
2_route_redux_render/component/details/result.js | chkui/react-server-demo | import React from 'react'
const cn = require('classnames/bind').bind(require('./result.scss'))
/**
*
* @param {object} props {list}
* @constructor
*/
const Result = props =>
<div className={cn('list')}>
{props.list.map(i => <ResultItem key={i.id}
name={i.name}
... |
packages/material-ui-icons/src/MoreHorizSharp.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" />
, 'MoreHorizSharp');
|
appsdaddy/views/assets/towers/js/jquery.js | cowthan/php-service | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/app/components/PageTitle.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import { Helmet } from 'react-helmet';
import { FormattedGlobalMessage } from './MappedMessage';
import { emojify } from '../helpers';
const StringOrFormattedMessage = PropTypes.oneOfType([
PropTypes.string.isRequired,
PropTypes.element.isRequired,
]);... |
frontend/node_modules/react/lib/shallowCompare.js | andres81/auth-service | /**
* 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 same directory.
*
*/
'use strict... |
example/components/CustomWidget.js | troybetz/react-soundcloud-widget | import React from 'react';
import SoundCloud from '../../';
export default class CustomWidget extends React.Component {
static propTypes = {
url: React.PropTypes.string.isRequired,
id: React.PropTypes.string.isRequired,
opts: React.PropTypes.array.isRequired,
};
componentDidUpdate() {
// otherwi... |
src/routes/LoginPage/components/LoginView.js | linxlad/tracksy-client | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import { Container, Header, Card, Segment } from 'semantic-ui-react';
import PageLayout from '../../../layouts/PageLayout';
import { formColours as colours } from '../../../constants/colours';
import { colourStringToHex } from '../... |
packages/frint-react/src/components/Region.js | Travix-International/frint | /* eslint-disable no-console, no-underscore-dangle, import/no-extraneous-dependencies */
import React from 'react';
import PropTypes from 'prop-types';
import isEqual from 'lodash/isEqual';
import zipWith from 'lodash/zipWith';
import getMountableComponent from './getMountableComponent';
export default class Region e... |
public/bower_components/blanket/test/bootstrap/tests/vendor/jquery.js | ekatzenstein/DynamoDictionary_React | /*!
* jQuery JavaScript Library v1.8.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
classic/src/scenes/mailboxes/src/Components/MailboxTooltip/MailboxTooltipSimpleContent.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { accountStore } from 'stores/account'
class MailboxTooltipSimpleContent extends React.Component {
/* **************************************************************************/
// Class
... |
Samples/Branding.ClientSideRendering/Branding.ClientSideRenderingWeb/Scripts/jquery-1.9.1.min.js | sjuppuh/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/components/organisms/Header/index.js | SIB-Colombia/dataportal_v2_frontend | import React from 'react'
import styled from 'styled-components'
import { IconLink, PrimaryNavigation, Block } from 'components'
const Wrapper = styled(Block)`
display: flex;
align-items: center;
padding: 1rem;
& > :not(:first-child) {
margin-left: 1rem;
}
`
const StyledIconLink = styled(IconLink)`
... |
src/routes/UserSearchContainer.js | folio-org/ui-users | import React from 'react';
import PropTypes from 'prop-types';
import {
get,
template,
} from 'lodash';
import { stripesConnect } from '@folio/stripes/core';
import {
makeQueryFunction,
StripesConnectedSource,
buildUrl,
parseFilters,
} from '@folio/stripes/smart-components';
import filterConfig from './fi... |
app/src/containers/Main.js | Ceschrupp/Octopus | import React from 'react';
import Header from '../components/layouts/header.jsx';
import Footer from '../components/layouts/Footer.jsx';
import { Container } from 'react-grid-system';
class Main extends React.Component {
constructor(props) {
super(props);
}
render() {
return(
<div>
<div className='backgr... |
src/front-end/src/components/ErrorBoundary.js | magician11/chiangmai-movies | import React, { Component } from 'react';
import firebase from 'firebase/app';
import 'firebase/firestore';
import { Grid, Paper, Typography, CssBaseline } from '@material-ui/core';
import { withStyles } from '@material-ui/styles';
const bg = require('../images/crash.jpg');
const styles = {
root: {
backgroundIm... |
app/containers/LanguageProvider/index.js | fforres/coworks_2 | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
ajax/libs/babel-core/5.7.2/browser-polyfill.min.js | Piicksarn/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/private/indexerApp/imports/ui/components/AuthenticatedNavigation.js | ericvrp/GameCollie | import React from 'react';
import { browserHistory } from 'react-router';
import { LinkContainer } from 'react-router-bootstrap';
import { Nav, NavItem, NavDropdown, MenuItem } from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
const handleLogout = () => Meteor.logout(() => browserHistory.push('/login'));... |
src/App.js | TheDevsOfTomorrow/birthday-countdown | 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>
... |
src/server.es6.js | docunext/minimalist-react-component | import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Html from './containers/Html';
import World from './routes/Home';
import path from 'path';
import router from './router';
import App from './containers/App';
import createFetch from './createFetch';
import assets f... |
examples/react-native-query-suggestions/App.js | algolia/react-instantsearch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
StyleSheet,
Text,
View,
TextInput,
FlatList,
Image,
Keyboard,
TouchableHighlight,
} from 'react-native';
import algoliasearch from 'algoliasearch/lite';
import {
InstantSearch,
Configure,
Index,
connectSearchB... |
src/views/View.js | nitrog7/nl-fluid | import React from 'react';
import { Component } from 'components';
export default class View extends Component {
constructor(props) {
super(props);
this.state = {};
}
}
View.contextTypes = {
router: React.PropTypes.object
};
|
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/After/app/components/Drawer/index.js | phiratio/Pluralsight-materials | /**
*
* Drawer
*
*/
import React from 'react';
import styles from './styles.css';
import classNames from 'classnames';
function Drawer({ items, selectItem, itemLabelAttr, itemKeyAttr, isDrawerOpen }) {
const itemNodes = items.map(item => (
<div
className={styles.item}
key={item[itemKeyAttr]}
... |
ajax/libs/rxjs/4.0.3/rx.all.js | honestree/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
event-handling/lib/dropdown-component.js | zpratt/react-tdd-guide | import ButtonDropdown from './button-dropdown-component';
import React from 'react';
function Dropdown() {
return (
<div>
<ButtonDropdown/>
</div>
);
}
Dropdown.displayName = 'Dropdown';
export default Dropdown;
|
src/parser/druid/feral/modules/racials/Shadowmeld.js | fyruna/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import RACES from 'game/RACES';
import Analy... |
www/container/cat__not_used/component/text.js | webbestmaster/cat-play | /**
* Created by dmitriy.turovtsov on 2/14/17.
*/
import React from 'react';
import {connect} from 'react-redux';
import BaseView from '../../../core/Base-view';
import {TimelineLite, Back} from 'gsap';
import BaseModel from './../../../core/Base-model';
import {setIsTexting} from './../action/index';
import CONST f... |
src/component/tagCloud/component.js | Platane/january | import React from 'react'
import style from './style.css'
import { memoize } from '../../util/memoize'
const createSelectTagHandler = memoize(
(selectTag, writePosition, tag) => event => {
if ('undefined' !== typeof document && document.body)
document.body.scrollTop = 0
const {
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | emmens/angular2-tour-of-heroes | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
samples/Main.js | ciscospark/react-ciscospark | import React from 'react';
import BasicComponents from './BasicComponents';
import RecentsComponents from './recents-components';
function Main() {
return (
<div>
<h1>React Samples</h1>
<h2>Basic Components</h2>
<BasicComponents />
<h2>Recents Components</h2>
<RecentsComponents />
... |
react/widget_example/test/components/Column.spec.js | webmaster444/webmaster444.github.io | import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import { mount } from 'enzyme';
import Column from '../../lib/components/Column';
describe('<Column />', () => {
it('Should call onAdd when add is clicked', () => {
let onAdd = spy();
let layout = {};
let rowIndex = 1;... |
ajax/libs/vue/2.5.13/vue.js | holtkamp/cdnjs | /*!
* Vue.js v2.5.13
* (c) 2014-2017 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, (function (... |
Libraries/Image/ImageBackground.js | jevakallio/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
ajax/libs/6to5/3.0.12/browser.js | ppoffice/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... |
ajax/libs/material-ui/5.0.0-alpha.20/node/internal/svg-icons/Warning.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.