path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
node_modules/@material-ui/core/esm/TableRow/TableRow.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import Tablelvl2Context from '../Table/Tabl... |
ajax/libs/rxjs/2.4.5/rx.all.compat.js | Showfom/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
};
... |
react-flux-mui/js/material-ui/src/svg-icons/action/rounded-corner.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoundedCorner = (props) => (
<SvgIcon {...props}>
<path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v... |
app/components/ConfigureScenes/index.js | cerebral/cerebral-reference-app | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import styles from './styles.css';
import elements from 'common/elements.css';
@Cerebral()
class ConfigureScenes extends React.Component {
onNewSceneSubmit(e) {
e.preventDefault();
this.props.signals.course.addSceneSubmitte... |
modules/Route.js | MattSPalmer/react-router | import React from 'react'
import warning from 'warning'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components } from './PropTypes'
const { string, bool, func } = React.PropTypes
/**
* A <Route> is used to declare which components are rendered to t... |
packages/react-error-overlay/src/components/NavigationBar.js | lolaent/create-react-app | /**
* 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.
*/
/* @flow */
import React from 'react';
import { red, redTransparent } from '../styles';
const navigationBarStyle = {
marginBottom: '0... |
packages/node_modules/@ciscospark/react-component-loading-screen/src/index.js | Altocloud/alto-react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Spinner from '@ciscospark/react-component-spinner';
import styles from './styles.css';
export default function LoadingScreen({loadingMessage}) {
return (
<div className={classNames(`ciscospark-loading`, st... |
app/screens/containers/seller/quick-build-goods.js | yiyinsong/react-native-example-jdh | /**
* Component: 添加商品
* author: yiyinSong
* date: 2017-10-18
*/
import React, { Component } from 'react';
import {
Image,
ImageBackground,
Text,
View,
ScrollView,
TouchableOpacity,
TouchableHighlight,
TextInput,
InteractionManager,
DeviceEventEmitter,
Modal,
WebView,
Animated
} from 'rea... |
src/Contexts/App.js | HelpfulHuman/React-Project | import { connect } from 'react-redux';
import App from '../Components/App';
/**
* Cherry pick values out of the given state model and choose which
* ones to pass to the contextual component.
*
* @param {Object} state
* @return {Object}
*/
function mapStateToProps (state) {
return {};
}
/**
* Bind the store'... |
app/components/WhichDiagram.js | gidich/votrient-kiosk | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import styles from './WhichDiagram.css';
export default class WhichDiagram extends Component {
render() {
return (
<div className={styles.container}>
<div className={styles.close} onClick={browserHistory.goBa... |
ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js | mplacona/cdnjs | /*!
* jQuery Tools v1.2.7 - The missing UI library for the Web
*
* dateinput/dateinput.js
* overlay/overlay.js
* overlay/overlay.apple.js
* rangeinput/rangeinput.js
* scrollable/scrollable.js
* scrollable/scrollable.autoscroll.js
* scrollable/scrollable.navigator.js
* tabs/tabs.js
* tabs/tabs.sli... |
examples/amp-first/components/amp/AmpState.js | flybayer/next.js | import PropTypes from 'prop-types'
import React from 'react'
import { AmpIncludeAmpBind } from './AmpCustomElement'
/**
* Renders an amp-state element, by either adding local state via `value`
* or remote state via the `src` property.
*
* @param {Props} props
*/
export default function AmpState(props) {
return ... |
vendor/jquery/jquery.min.js | silesia2016/webschoolsilesia | /*! 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... |
20170525/zhihu/src/App5.js | fengnovo/react-native | import React, { Component } from 'react';
import { WebView } from 'react-native';
class App extends Component {
render() {
return (
<WebView
source={{uri: 'https://github.com/facebook/react-native'}}
style={{marginTop: 20}}
/>
);
}
}
export default App; |
src/app/owner/Owner.js | cityofasheville/simplicity2 | import React from 'react';
import AccessibleReactTable from 'accessible-react-table';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import LoadingAnimation from '../../shared/LoadingAnimation';
import Error from '../../shared/Error';
import Property from '../property/Property';
import PageHeade... |
src/svg-icons/maps/local-car-wash.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCarWash = (props) => (
<SvgIcon {...props}>
<path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2... |
client/src/screens/article/comment-input.js | jmsmrgn/fem-testing-workshop | import React from 'react'
import {connect} from 'react-redux'
import smiley from '../../shared/smiley-cyrus.jpg'
import agent from '../../shared/agent'
const mapDispatchToProps = dispatch => ({
onSubmit: payload => dispatch({type: 'ADD_COMMENT', payload}),
})
class CommentInput extends React.Component {
construct... |
assets/containers/App.js | simongfxu/react-starter-project | import React from 'react'
import {Switch, Route, HashRouter as Router} from 'react-router-dom'
import {observer, Provider} from 'mobx-react'
import {ThemeProvider} from 'styled-components'
import stores from 'stores'
import {IS_DEV_MODE} from 'constants'
import DevTools from 'mobx-react-devtools'
import Header from 'co... |
AK.Listor.WebClient/src/UserName.js | aashishkoirala/mylists | /*******************************************************************************************************************************
* AK.Listor.WebClient.UserName.js
* Copyright © 2017 Aashish Koirala <http://aashishkoirala.github.io>
*
* This file is part of Aashish Koirala's Listor.
*
* Listor is free software: yo... |
src/components/Common/Error.js | oraclesorg/ico-wizard | import React from 'react'
import { Field } from 'react-final-form'
const defaultErrorStyles = {
color: 'red',
fontWeight: 'bold',
fontSize: '12px',
width: '100%',
height: '20px',
}
export const Error = ({ name, errorStyle }) => (
<Field
name={name}
subscription={{ touched: true, pristine: true, er... |
ajax/libs/core-js/0.5.2/library.js | humbletim/cdnjs | /**
* Core.js 0.5.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(global, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
actor-apps/app-web/src/app/components/dialog/messages/MessageItem.react.js | hzy87email/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import classnames from 'classnames';
import VisibilitySensor from 'react-visibility-sensor';
import DialogActionCreators from 'actions/DialogActionCreators';... |
ajax/libs/rxjs/2.3.16/rx.lite.js | calvinf/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... |
docs/_build/html/_static/jquery.js | dimagi/tablib | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
node_modules/material-ui/svg-icons/image/brightness-7.js | Alex-Shilman/Drupal8Node | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
node_modules/material-ui/svg-icons/action/pregnant-woman.js | SerendpityZOEY/Solr-Search-React-UI | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
admin/client/App/screens/Home/components/Lists.js | Pop-Code/keystone | import React from 'react';
import _ from 'lodash';
import { connect } from 'react-redux';
import { plural } from '../../../../utils/string';
import ListTile from './ListTile';
export class Lists extends React.Component {
render () {
return (
<div className="dashboard-group__lists">
{_.map(this.props.lists, ... |
test/NavbarSpec.js | adampickeral/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import Nav from '../src/Nav';
describe('Nav', function () {
it('Should create nav element', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Navbar />
);
let nav = ... |
src/DropArea.js | diginatu/nagome-webui | import React, { Component } from 'react';
import {Icon} from 'react-onsenui';
import ons from 'onsenui';
// Only display and not catch actual dropping.
export default class DropArea extends Component {
constructor() {
super();
this.state = {dropping: false};
// Stop to move in hole page.
... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch05/05_05/start/src/routes.js | yevheniyc/Autodidact | import React from 'react'
import { Router, Route, hashHistory } from 'react-router'
import Home from './components/ui/Home'
import About from './components/ui/About'
import MemberList from './components/ui/MemberList'
import { Whoops404 } from './components'
const routes = (
<Router history={hashHistory}>
... |
node_modules/react-bootstrap/es/DropdownButton.js | premcool/getmydeal | 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... |
test/specs/table/table_actions.spec.js | working-minds/realizejs | import React from 'react';
import { TableActions } from 'components/table';
import { assert } from 'chai';
import { mount } from 'enzyme';
describe('<TableActions/>', () => {
it('exists', () => {
assert(TableActions);
});
it('renders with the default props', () => {
const renderedTableActions = mount(<T... |
project/src/scenes/Admin/Tags/components/TagList/TagList.js | boldr/boldr | /* @flow */
import React from 'react';
import Link from 'react-router-dom/Link';
import Trash from '@boldr/ui/Icons/Trash';
import styled from 'styled-components';
type Props = {
tags: $ReadOnlyArray<Tag>,
handleTagClick: Function,
handleDeleteTagClick: Function,
};
const List = styled.ul`
list-style-type: no... |
docs/components/home/Home.js | conorhastings/react-color | 'use strict'
import React from 'react'
import ReactCSS from 'reactcss'
import HomeFeature from './HomeFeature'
import HomeDocumentation from './HomeDocumentation'
class Home extends ReactCSS.Component {
constructor() {
super()
this.state = {
primaryColor: '#194D33',
}
this.handleChange = t... |
node_modules/react-icons/ti/flag.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiFlag = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.6 7.2c-0.6-0.3-1.3-0.1-1.8 0.4-2.1 2.1-5.5 2.1-7.6 0-3.4-3.4-9-3.4-12.4 0-0.3 0.3-0.5 0.7-0.5 1.1v21.7c0 0.9 0.8 1.7 1.7 1.7s1.7-0.8 1.7-1.7v-7.6c2.1-1.6 5.2-1.5 7.1... |
actor-apps/app-web/src/app/components/common/Fold.React.js | liuzwei/actor-platform | /* eslint-disable */
import React from 'react';
import classnames from 'classnames';
class Fold extends React.Component {
static PropTypes = {
icon: React.PropTypes.string,
iconClassName: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
state = {
isOpen: false
};
construc... |
src/assets/js/react/router/coreFontRouter.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
import PropTypes from 'prop-types'
import { HashRouter as Router, Route, Switch } from 'react-router-dom'
import CoreFontContainer from '../components/CoreFonts/CoreFontContainer'
/**
* @package Gravity PDF
* @copyright Copyright (c) 2020, Blue Liquid Designs
* @license http://op... |
src/components/VacancyDetail/VacancyDetail.js | Vasyl1989/Opus.ua | import React from 'react';
import { connect } from 'react-redux';
import { PropTypes } from 'prop-types';
import Header from '../common/Header';
import Footer from '../common/Footer';
import { getVacancyById, searchVacancy } from '../../actions/vacancyActions';
import picture from '../../styles/images/company-logo.png'... |
src/components/HomePage.js | cmaart/runpl | import React from 'react';
import {Link} from 'react-router';
import WorkoutCalendarPage from './WorkoutCalendarPage';
const HomePage = () => {
return (
<div>
<div className="col-lg-9 clearfix center-block" style={{"float": "none"}}>
<div className="jumbotron">
<h1>Micky</h1><h2>your runn... |
src/pages/list/comp.Item.js | neekey/daigou | import React from 'react';
import style from './comp.Item.scss';
import LazyLoad from 'react-lazyload';
import placeholderImg from './placeholder.png';
const isSource = document.location.host.includes('-source');
function requireAll(requireContext) {
return requireContext.keys().map(requireContext);
}
// requires an... |
src/images/Opera.svg.js | dkadrios/zendrum-stompblock-client | import React from 'react'
export default props => (
<svg viewBox="0 0 120 120" {...props}>
<linearGradient
id="opera-a"
gradientTransform="matrix(0 97.396584 -97.396584 0 51.620814 11.389501)"
gradientUnits="userSpaceOnUse"
spreadMethod="pad"
x1="0"
x2="1"
y1="0"
y... |
examples/huge-apps/routes/Messages/components/Messages.js | joeyates/react-router | import React from 'react';
class Messages extends React.Component {
render () {
return (
<div>
<h2>Messages</h2>
</div>
);
}
}
export default Messages;
|
src/dripForm.js | tsuyoshiwada/react-drip-form | // @flow
import React, { Component } from 'react';
import invariant from 'invariant';
import { Validator } from 'drip-form-validator';
import * as dot from 'dot-wild';
import forEach from 'lodash.foreach';
import isPlainObject from 'lodash.isplainobject';
import isEqual from 'lodash.isequal';
import isArray from './uti... |
packages/core/dashboard/src/components/InfoBox/typeContentProvider.js | tocco/tocco-client | import React from 'react'
import {consoleLogger} from 'tocco-util'
import InfoBoxHtmlFieldContent from './typeContent/InfoBoxHtmlFieldContent'
import InfoBoxSearchFilterContentContainer from './typeContent/InfoBoxSearchFilterContentContainer'
export default (type, id, content) => {
if (map[type]) {
return React... |
frontend/app/score.js | bow-fujita/jacc-halloween | /**
* Copyright (C) 2018 Hiro Fujita <bow.fujita@gmail.com>
*/
'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import {
Button
, ButtonGroup
} from 'react-bootstrap';
import Header from './header';
import Table from './table';
import Ajax from './ajax';
i... |
node_modules/react-icons/md/3d-rotation.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const Md3dRotation = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 0c10.5 0 19.1 8 19.9 18.3h-2.5c-0.5-6.3-4.4-11.5-9.9-14.1l-2.3 2.2-6.3-6.3z m7.6 19.7c0-2.7-1.1-4.5-3.7-4.5h-1.6v9.6h1.5c2 0 3.2-1 3.6-2.6 0.2-0.6 0.2-1.2 0.2-... |
example/react-bootstrap/src/util/confirm.js | haradakunihiko/react-confirm | import Confirmation from '../components/Confirmation';
import ComplexConfirmation from '../components/ComplexConfirmation';
import { createConfirmation } from 'react-confirm';
const defaultConfirmation = createConfirmation(Confirmation);
export function confirm(confirmation, options = {}) {
return defaultConfirmati... |
ajax/libs/webshim/1.14.3-RC1/dev/shims/combos/26.js | dakshshah96/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
fields/types/textarea/TextareaField.js | ONode/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from '../../../admin/client/App/elemental';
module.exports = Field.create({
displayName: 'TextareaField',
statics: {
type: 'Textarea',
},
renderValue () {
const { height } = this.props;
const styles = {
height: height,
white... |
public/docs/api/latest/@stdlib/assert/is-ndarray-like/benchmark_bundle.js | stdlib-js/www | // modules are defined as an array
// [ module function, map of requireuires ]
//
// map of requireuires is short require name -> numeric require
//
// anything defined in a previous bundle is accessed via the
// orig method which is the requireuire for previous bundles
(function outer (modules, cache, entry) {
//... |
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet4Bar = (props) => (
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/>
</SvgIcon>
);
DeviceSignalCellularConnectedNoInternet4Bar = pur... |
fields/types/text/TextFilter.js | rafmsou/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
SegmentedControl,
} from '../../../admin/client/App/elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ la... |
packages/node_modules/@webex/widget-meet/src/components/call-active/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import Draggable from 'react-draggable';
import classNames from 'classnames';
import ButtonControls from '@webex/react-component-button-controls';
import Video from '@webex/react-component-video';
import Audio from '@webex/react-component-audio';
import Ava... |
misc/tabledrag.js | destyjustc/realsite | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
app/javascript/mastodon/features/followers/index.js | Nyoho/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet0BarTwoTone.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 fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z" /></g></React.Fragment>
, 'SignalCellularConnectedNoInte... |
public/bower_components/js-sequence-diagrams-svgjs/node_modules/jison/node_modules/JSONSelect/src/test/js/jquery-1.6.1.min.js | oro8oro/devi | /*!
* jQuery JavaScript Library v1.6.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.
... |
app/jsx/grading/EditGradingPeriodSetForm.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
packages/material-ui-icons/src/LocalAtm.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99... |
src/svg-icons/image/transform.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
src/pages/writings/index.js | aravindballa/website2017 | import React from 'react';
import { Link, graphql } from 'gatsby';
import { GatsbyImage } from 'gatsby-plugin-image';
import Layout from '../../components/Layout';
import SEO from '../../components/SEO';
import FeaturedPost from '../../components/FeaturedPost';
import { getRandomTailwindGradient } from '../../utils/ge... |
gui/src/app/containers/loading-spinner-container.js | mbonvini/LambdaSim | import React from 'react';
import { connect } from 'react-redux';
import LoadingSpinner from '../components/loading-spinner';
import log from 'loglevel';
const LoadingSpinnerContainer = React.createClass({
render: function() {
return (
<LoadingSpinner loading={this.props.loading}/>
);
}
});
const ... |
src/svg-icons/social/school.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSchool = (props) => (
<SvgIcon {...props}>
<path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/>
</SvgIcon>
);
SocialSchool = pure(SocialSchool);
SocialSchool.displayNa... |
server/sonar-web/src/main/js/apps/organizations/components/OrganizationDelete.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/key.spec.js | benmvp/react-composite-events | // @flow
import React from 'react'
import {shallow} from 'enzyme'
import {withKeyRemainDown, withKeyRemainUp} from './key'
const Dummy = () => <div />
jest.useFakeTimers()
describe('`withKeyRemainDown`', () => {
it('calls handler after key down & default 500 ms', () => {
const EnhancedAnchor = withKeyRemainDow... |
app/javascript/mastodon/features/status/components/action_bar.js | rekif/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
i... |
ajax/libs/material-ui/5.0.0-alpha.29/FormControl/FormControlContext.js | cdnjs/cdnjs | import * as React from 'react';
/**
* @ignore - internal component.
*/
const FormControlContext = /*#__PURE__*/React.createContext();
if (process.env.NODE_ENV !== 'production') {
FormControlContext.displayName = 'FormControlContext';
}
export function useFormControl() {
return React.useContext(FormControlConte... |
packages/jquery/jquery.js | TribeMedia/meteor | /*!
* jQuery JavaScript Library v1.11.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-17T15:27Z
*/
(function( global, factory ) {
if ... |
example/examples/ZIndexMarkers.js | athaeryn/react-native-maps | import React from 'react';
import {
Dimensions,
StyleSheet,
Text,
View,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.733858;
const LONGITUDE = -122.446549;
const MARKERS_LATITUDE_DE... |
scripts/App-test.js | jamieholliday/scrum-poker | 'use strict';
import React from 'react';
import TestUtils from 'react/lib/ReactTestUtils';
import App from './App';
describe('App', () => {
it('should work', () => {
expect(true).toBeTruthy();
})
}) |
src/components/UserList/index.js | hyy1115/react-redux-webpack2 | import React from 'react'
import { List, message, Avatar, Spin, Input } from 'antd'
import InfiniteScroll from 'react-infinite-scroller'
import './index.less'
const Search = Input.Search
class UserList extends React.Component {
state = {
data: [],
loading: false,
hasMore: true
}
getData = (callback)... |
app/components/main.js | pompopo/pomhub | import React from 'react'
import Root from './Root.js'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import rootReducer from '../reducers/index.js'
import thunk from 'redux-thunk'
import createLogger from 'redux-logger'
var defaultState = {
github: {
auth_token: unde... |
src/components/ui/Text.js | arayi/SLions | /**
* Text
*
<Text h1>Hello World</Text>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Text } from 'react-native';
// Consts and Libs
import { AppStyles } from '@theme/';
/* Compon... |
ajax/libs/material-ui/5.0.0-alpha.30/node/TablePagination/TablePagination.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _int... |
src/app/app.js | ishaan-puniani/moopy-server | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import store from './store';
import router from './router';
import axios from './axios';
require('es6-promise').polyfill();
// Provider is a top-level component that wrapps our entire application, including
// the Route... |
node_modules/antd/lib/collapse/Collapse.js | ZSMingNB/react-news | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CollapsePanel = undefined;
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _defineProperty2 = require('babel-runtime/helpers/defineProperty');
var _definePropert... |
components/code-preview.js | CarlRosell/glamorous-website | import React from 'react'
import {LiveProvider, LiveEditor, LiveError, LivePreview} from 'react-live'
import glamorous from 'glamorous'
import stripIndent from './utils/strip-indent'
const StyledLiveProvider = glamorous(LiveProvider)({
margin: '0 auto',
display: 'flex',
flexDirection: 'column',
flexWrap: 'wrap... |
web/src/js/__tests__/components/common/DocsLinkSpec.js | StevenVanAcker/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import DocsLink from '../../../components/common/DocsLink'
describe('DocsLink Component', () => {
it('should be able to be rendered with children nodes', () => {
let docsLink = renderer.create(<DocsLink children="foo" resource="bar"></Doc... |
Libraries/Components/Touchable/TouchableWithoutFeedback.js | bouk/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... |
Lab10/app.js | prpatel/react-workshop-day1 | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import Bootstrap from 'react-bootstrap';
import Jumbotron from 'react-bootstrap/lib/Jumbotron';
import Panel from 'react-bootstrap/lib/Panel';
import Input from 'react-bootstrap/lib/Input';
import Label from 'react-bootstrap/lib/L... |
src/index.js | masonforest/react-components | import React from 'react';
import App from './components/App';
React.render(<App />, document.getElementById('root'));
|
packages/@vega/layout/src/components/Search.js | VegaPublish/vega-studio | import React from 'react'
import schema from 'part:@lyra/base/schema?'
import client from 'part:@lyra/base/client?'
import Preview from 'part:@lyra/base/preview?'
import {
getDraftId,
getPublishedId,
isDraftId
} from 'part:@lyra/base/util/draft-utils'
import {Subject} from 'rxjs'
import {debounceTime, map, switch... |
ajax/libs/react-dom/15.2.0/react-dom.js | extend1994/cdnjs | /**
* ReactDOM v15.2.0
*
* 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 directo... |
app/views/GroupItem/GroupItem.js | lishengzxc/random | import React from 'react';
import styles from './GroupItem.scss';
var GroupItem = React.createClass({
render: function () {
return (
<li className={styles.li}>{
this.props.result.map(function (result) {
return (
<div className={styles.member} key={result}>
{result}
... |
__tests__/index.ios.js | khosimorafo/reactmastende | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
packages/spec/integration/pwa/index.js | xing/hops | import installServiceWorker from 'hops-pwa';
import { render } from 'hops';
import React from 'react';
import { Helmet } from 'react-helmet-async';
import manifest from './manifest.webmanifest';
installServiceWorker();
export default render(
<>
<Helmet>
<link rel="icon" href="data:;base64,iVBORw0KGgo=" /... |
admin/client/components/SecondaryNavigation.js | codevlabs/keystone | import React from 'react';
import { Container } from 'elemental';
var SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRequired,
title: React.PropTypes.string,
},
... |
src/containers/todo/TodoFormContainer.js | RafaelDelboni/todo-react-redux | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import TodoForm from '../../components/todo/TodoForm';
import * as todoActions from '../../actions/todoActions';
export class TodoFormContainer extends React.Component {
constructor(props, context) {
supe... |
spec/components/icon_menu.js | KerenChandran/react-toolbox | import React from 'react';
import { MenuItem, IconMenu, MenuDivider } from '../../components/menu';
class IconMenuTest extends React.Component {
state = {
selected: undefined
};
handleShow = () => {
console.log('Showing menu...');
};
handleHide = () => {
console.log('Hiding menu...');
};
h... |
ajax/libs/react-router/0.13.1/ReactRouter.js | bootcdn/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
src/Slider/Slider.js | rscnt/material-ui | import React from 'react';
import keycode from 'keycode';
import transitions from '../styles/transitions';
import FocusRipple from '../internal/FocusRipple';
/**
* Verifies min/max range.
* @param {Object} props Properties of the React component.
* @param {String} propName Name of the property to v... |
webapp/app/components/Users/Table/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Table page save
//
import React from 'react';
import { Table } from 'react-bootstrap';
import ButtonPopover from 'components/ButtonPopover';
import UserDeletionModal from 'containers/Users/Table/ModalDeletionUser';
import Tr from 'components/Tr';
import Th from 'components/Th';
import Td from 'components/Td';
im... |
q-a11y-training-demo/src/components/react-router-aria-live/LiveRouterMessage.js | AlmeroSteyn/Q-A11y-Training | import React from 'react';
import LiveMessage from '../react-aria-live/LiveMessage';
import LiveRouterHOC from './LiveRouterHOC';
const LiveRouterMessage = ({ message }) =>
<LiveMessage message={message} aria-live="polite" />;
export default LiveRouterHOC(LiveRouterMessage);
|
node_modules/sinon/test/rhino/env.rhino.1.2.js | od3n/ghost-on-heroku | /*
* Envjs core-env.1.2.13
* Pure JavaScript Browser Environment
* By John Resig <http://ejohn.org/> and the Envjs Team
* Copyright 2008-2010 John Resig, under the MIT License
*/
var Envjs = function(){
var i,
name,
override = function(){
for(i=0;i<arguments.length;i++){
... |
docs/src/app/components/pages/components/Card/ExampleWithAvatar.js | xmityaz/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleWithAvatar = () => (
<Card>
<CardHeader
title="URL Avatar"
subtitle="Subtitle"
avatar="http://lorempixel.c... |
src/encoded/static/components/static-pages/ErrorPage.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
/** Render a simple static error page with a link to return to the homepage. */
export default class ErrorPage extends React.PureComponent {
render() {
const { currRoute, status } = this.props;
let homelink;
var errorMessage;
if (status ==... |
app/javascript/mastodon/features/ui/components/column_loading.js | hyuki0000/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
const ColumnLoading = ({ title = '', icon = ' ' }) => (
<Column>
<ColumnHeader icon={icon} title={title} multiColumn={false} focusable={fa... |
[2]. Demo_RN/[4]. nav_component/index.ios.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
NavigatorIOS,
ScrollView,
} from 'react-native';
var NavBar = React.createClass({
render: function(){
return(
<Navig... |
fixtures/fiber-debugger/src/Editor.js | edvinerikson/react | import React, { Component } from 'react';
class Editor extends Component {
constructor(props) {
super(props);
this.state = {
code: props.code
};
}
render() {
return (
<div style={{
height: '100%',
width: '100%'
}}>
<textarea
value={this.state.c... |
pages/me/accounts/index.js | kylecarter/bank | import React from 'react'
import Head from 'next/head'
import { Button } from 'react-bootstrap'
import Account from '../../../components/accounts/account'
export default class Accounts extends React.Component {
constructor() {
super();
this.state = {
user: {
name: 'Client Tester',... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.