path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/yui/3.7.1/datatable-body/datatable-body-debug.js | jaslernl/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
src/components/BottomNavigation.js | tuckerconnelly/carbon-ui | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'
import { Colors, Elevation } from '../index'
/**
* Bottom navigation bars make it easy to explore and switch between top-level
* views in a single tap.
*
* ### Examples
*
* import React, { Compone... |
internals/templates/containers/LanguageProvider/index.js | Frai/Events | /*
*
* 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... |
src/platform/site-wide/header/components/Header/index.unit.spec.js | department-of-veterans-affairs/vets-website | // Node modules.
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
// Relative imports.
import { Header } from '.';
describe('Header <Header>', () => {
it('renders content', () => {
// Set up.
const wrapper = shallow(<Header showMegaMenu showNavLogin />);
// Ass... |
node_modules/native-base/Components/Widgets/Card.js | paulunits/tiptap | /* @flow */
'use strict';
import React from 'react';
import {View} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
export default class CardNB extends NativeBaseComponent {
getInitialStyle() {
return {
ca... |
ajax/libs/backbone.js/1.2.0/backbone.js | cgvarela/cdnjs | // Backbone.js 1.2.0
// (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(factory) {
// Establish the root object, `window` (`se... |
packages/material-ui-icons/src/ListAlt.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z" />
, 'ListAlt');... |
test/jestTests/containers/CounterPage.spec.js | StatEngine/spade | import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import { createBrowserHistory } from 'history';
import { ConnectedRouter } from 'react-router-redux';
import CounterPage from '../../app/containers/CounterPage';
import { configureStore } from '../../app/store/configureSt... |
src/index.js | zachcoyle/redux-looking-glass | import React from 'react'
import R from 'ramda'
import { connect } from 'react-redux'
// todo: refactoring
const notNum = node => !R.defaultTo(false)(parseInt(node))
export const arrayFromString = s =>
R.filter(R.identity,
R.replace(/\]/g, '',
R.replace(/\[/g, '.', s)
).split('.')
)
const normal... |
__tests__/RecordScreen.js | spittet/futoro-test3 | /* eslint-env mocha */
/* eslint-disable */
//==============================================================================
//
// EVERYTHING IS BROKEN - NEED TO REMOVE ENZYME AND START FROM SCRATCH
//
//==============================================================================
import 'react-native';
import Re... |
js/apps/system/_admin/aardvark/APP/react/src/views/shards/ShardsReactView.js | wiltonlazary/arangodb | import React from 'react';
import { Provider } from 'react-redux';
import store from '../../configureStore';
import Overview from './overview';
class ShardsReactView {
render () {
return <Provider store={store}>
<Overview/>
</Provider>;
}
}
window.ShardsReactView = ShardsReactView;
|
ajax/libs/yui/3.7.0pr1/datatable-body/datatable-body.js | tonytomov/cdnjs | YUI.add('datatable-body', function(Y) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isArray,
... |
web-ui/src/common/submit_button/submit_button.spec.js | pixelated/pixelated-user-agent | import { shallow } from 'enzyme';
import expect from 'expect';
import React from 'react';
import SubmitButton from 'src/common/submit_button/submit_button';
describe('SubmitButton', () => {
let submitButton;
beforeEach(() => {
submitButton = shallow(<SubmitButton buttonText='Add Email' />);
});
it('rende... |
src/client/components/dialogs/SignInDialog.js | vanpaz/vbi | import React from 'react'
import Dialog from 'material-ui/lib/dialog'
import FlatButton from 'material-ui/lib/flat-button'
import bindMethods from '../../utils/bindMethods'
/**
* Usage:
*
* <SignInDialog ref="myDialog" />
*
* this.refs.myDialog.show()
* this.refs.myDialog.hide()
* this.refs.my... |
docs/src/app/components/pages/components/Menu/Page.js | igorbt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import menuReadmeText from './README';
import MenuExampleSimple from './ExampleS... |
src/components/dashboard/Chart.js | rokka-io/rokka-dashboard | import PropTypes from 'prop-types'
import React from 'react'
import HighCharts from 'react-highcharts'
const Chart = ({ data, type, yPointSymbol = null }) => {
const config = {
title: {
text: null
},
chart: {
type,
height: 200
},
plotOptions: {
series: {
animation:... |
src/svg-icons/image/hdr-weak.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm12-2c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4... |
packages/mineral-ui-icons/src/IconCrop.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconCrop(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
packages/material-ui-icons/src/PinDropOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M5 20h14v2H5zM18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zM8 8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 2.13-2.08 5.46-4 7.91-1.92-2.44-4... |
packages/reactor-kitchensink/src/examples/DragAndDrop/Handles/Handles.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import './styles.css';
Ext.require(['Ext.drag.*']);
export default class Handles extends Component {
render() {
return (
<Panel
ref="mainPanel"
padding={5}
sha... |
src/route/AuthRoute.js | simors/yjbAdmin | /**
* Created by yangyang on 2017/9/11.
*/
import React from 'react'
import {Route} from 'react-router-dom'
import {checkAuth} from '../util/auth'
const AuthRoute = ({component: Component, ...rest}) => {
const {location: from} = rest;
const loginComponent = checkAuth(from);
if (loginComponent !== undefined) {... |
src/components/builds/build-title.js | frigg/frigg-hq-frontend | import React from 'react';
import {Map} from 'immutable';
export default class BuildTitle extends React.Component {
constructor() {
super();
this.props = {project: Map()}
}
render() {
if (!this.props.project) return false;
if (this.props.size === 2) {
return (
<h2>
{this.... |
public/client/routes/editUser/components/personalAddressFields.js | nearform/concorda-dashboard | 'use strict'
import React from 'react'
module.exports = {
render: function () {
return (
<div className="row">
<div className="col-xs-12 col-sm-6">
<input placeholder="personal address" className="input-large"/>
</div>
<div className="col-xs-12 col-sm-6">
<input... |
src/components/CreateVmWizard/steps/BasicSettings.js | oVirt/ovirt-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { localeCompare } from '_/helpers'
import { withMsg } from '_/intl'
import { isNumberInRange } from '_/utils'
import { BASIC_DATA_SHAPE } from '../dataPropTypes'
import {
handleClusterIdChange,
handleProvisionS... |
docs/app/Examples/elements/Button/Variations/ButtonExampleVerticallyAttached.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button, Segment } from 'shengnian-ui-react'
const ButtonExampleVerticallyAttached = () => (
<div>
<Button attached='top'>Top</Button>
<Segment attached>
<img src='/assets/images/wireframe/paragraph.png' />
</Segment>
<Button attached='bottom'>Bottom</Button>
... |
src/js/components/Grommet/stories/Vars.js | grommet/grommet | import React from 'react';
import { grommet, Grommet, Box } from 'grommet';
export const Vars = () => (
<Grommet theme={grommet} cssVars>
<Box pad="medium" background="var(--accent-2)" gap="medium">
<Box>
Checkout Grommet variables, you can find them in the StyledGrommet DOM.
</Box>
<B... |
node_modules/react-redux/src/utils/storeShape.js | Win-Myint/ReactChallenge2 | import { PropTypes } from 'react'
export default PropTypes.shape({
subscribe: PropTypes.func.isRequired,
dispatch: PropTypes.func.isRequired,
getState: PropTypes.func.isRequired
})
|
ajax/libs/rxjs/2.3.3/rx.compat.js | fk/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
examples/with-redux/pages/index.js | nahue/next.js | import React from 'react'
import { initStore, startClock } from '../store'
import withRedux from 'next-redux-wrapper'
import Page from '../components/Page'
class Counter extends React.Component {
static getInitialProps ({ store, isServer }) {
store.dispatch({ type: 'TICK', light: !isServer, ts: Date.now() })
... |
packages/editor/src/components/Controls/Image/ImageLayout.js | strues/boldr | /* eslint-disable no-continue */
/* @flow */
import React from 'react';
import type { Node } from 'react';
import cn from 'classnames';
import { Image } from '../../Icons';
import Option from '../../Option';
import Spinner from '../../Spinner';
import type { ImageConfig } from '../../../core/config';
export type Prop... |
frontend/test/app/components/ExperimentRowCard-test.js | 6a68/idea-town | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import moment from 'moment';
import ExperimentRowCard from '../../../src/app/components/ExperimentRowCard';
describe('app/components/ExperimentRowCard', () => {
let mockExperiment, mockClickEvent, ... |
client/app/scripts/charts/node.js | paulbellamy/scope | import React from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { Map as makeMap, List as makeList } from 'immutable';
import { clickNode, enterNode, leaveNode } from '../actions/app-actions';
import { getNodeColor } from '../utils/color-utils';
import MatchedText from '..... |
src/collections/BootBreadcrumb/BootBreadcrumbItem.js | shengnian/shengnian-ui-react | import React from 'react'
import PropTypes from 'prop-types'
import cx from 'classnames'
import { mapToCssModules } from '../../lib'
const propTypes = {
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
active: PropTypes.bool,
className: PropTypes.string,
cssModule: PropTypes.object,
}
const defau... |
ajax/libs/forerunnerdb/1.3.388/fdb-all.js | sreym/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... |
node_modules/react-bootstrap/es/SplitButton.js | NathanBWaters/jb_club | 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... |
modules/Redirect.js | sprjr/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
src/app/views/printCalculation.js | webcoding/soapee-ui | import React from 'react';
import Reflux from 'reflux';
import { Navigation, State } from 'react-router';
import calculatorStore from 'stores/calculator';
import RecipePrintArea from 'components/recipePrintArea';
export default React.createClass( {
mixins: [
Navigation,
State,
Reflux.con... |
example/App.js | nkbt/react-debounce-input | import React from 'react';
import {Controllable} from './Controllable';
import {Customizable} from './Customizable';
import {UndoRedo} from './UndoRedo';
import {Textarea} from './Textarea';
import {Ref} from './Ref';
import {DefaultValue} from './DefaultValue';
export function App() {
return (
<div className="... |
src/components/TrackerInput.js | sigma3Dev/TrackerPad | import React from 'react';
import {Button, Grid, Row, Col, FormControl} from 'react-bootstrap';
import {echo} from '../logic/TrackerCommands'
import {doSend} from '../logic/TrackerCommands'
export default class TrackerInput extends React.Component{
constructor(props) {
super(props);
}
render() {
re... |
node_modules/react/lib/flattenChildren.js | taylordaug/site | /**
* 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... |
ajax/libs/cleave.js/0.6.10/cleave-angular.js | wout/cdnjs | ;(function(window, document, undefined) {
'use strict';
/**
* Construct a new Cleave instance by passing the configuration object
*
* @param {String / HTMLElement} element
* @param {Object} opts
*/
var Cleave = function (element, opts) {
var owner = this;
if (typeof element === 'string') {
owner... |
ajax/libs/rxjs/3.0.1/rx.lite.extras.js | BobbieBel/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'function': true,
'object': true
};
var
freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports... |
tests/layouts/CoreLayout.spec.js | shengnian/webpack2-react-redux-starter | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from '../../src/layouts/CoreLayout/CoreLayout.js'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWit... |
config/paths.js | JSLancerTeam/crystal-dashboard | 'use strict';
const path = require('path');
const fs = require('fs');
const url = require('url');
// Make sure any symlinks in the project folder are resolved:
// https://github.com/facebookincubator/create-react-app/issues/637
const appDirectory = fs.realpathSync(process.cwd());
const resolveApp = relativePath => pa... |
stories/FocusBlurCallbacks/index.js | jpuri/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import { Editor } from '../../src';
import './styles.css';
class FocusBlurCallbacks extends Component {
state: any = {
state: 'blurred',
};
onFocus: Function = () => {
console.log('into onFocus')
this.setState({
state: 'focused',
});... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | MastodonCloud/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
App/node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js | Dagers/React-Native-Differential-Updater | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Image,
ListView,
Platform,
StyleSheet,
View,
} from 'react-native';
import ListItem from '../../components/ListItem';
import Backend from '../../lib/Backend';
export default class ChatListScreen extends Component {
stat... |
packages/material-ui-icons/src/LocalParking.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z" /></React.Fragment>
, 'LocalParking');
|
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateInline.js | popham/flow | // @flow
import React from 'react';
class MyComponent extends React.Component {
props: Props;
state: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Compon... |
webpack/containers/response_sets/ResponseSetDragWidget.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import SearchManagerComponent from '../../components/SearchManagerComponent';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import debounce from 'lodash/debounce';
import { Draggable, Droppable } from '../... |
vendor/bower/jquery/src/sizzle/test/jquery.js | sburgos/easydelivery | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/games/Game0.js | Breta01/MemoryKing | import React from 'react';
import { Link } from 'react-router';
import gameNumbers from './Numbers';
const NumbersGame = React.createClass({
render() {
return (
<div className="game">
<h1>Welcome to the Number:</h1>
<div id="gameContent"></div>
<d... |
javascript/containers/shipment-page.js | kdoran/moriana-react | import React from 'react'
import { connect } from 'react-redux'
import { getShipment } from 'store/shipments'
import h from 'utils/helpers'
import ShipmentLink from 'components/shipment-link'
import StaticShipmentDetails from 'components/static-shipment-details'
import {buildStockCardHref} from 'components/stockcard-li... |
node_modules/react-bootstrap/node_modules/react-overlays/lib/RootCloseWrapper.js | mgcox/nomopromo | 'use strict';
exports.__esModule = true;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subC... |
ajax/libs/ionic/0.9.26/js/ionic.js | ComputerWolf/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.26
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
//
window.io... |
ajax/libs/yui/3.12.0/datatable-core/datatable-core-debug.js | tmorin/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
component/userInfo.js | jstogether/jstogether | import React from 'react'
import Component from './component';
import AppActions from '../action/app';
import SessionStore from '../store/session';
function getState () {
const user = SessionStore.getUser();
const username = user ? user.username : null;
return {
username,
loggedIn: SessionStore.isLoggedIn()
... |
app/components/Github/UserProfile.js | devacto/notetaker | import React from 'react';
const UserProfile = ({bio}) => {
return (
<div>
{bio.avatar_url && <li className="list-group-item"><img src={bio.avatar_url} className="img-rounded img-responsive"/></li>}
{bio.name && <li className="list-group-item">Name: {bio.name}</li>}
{bio.login && <li className=... |
src/svg-icons/action/view-week.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewWeek = (props) => (
<SvgIcon {...props}>
<path d="M6 5H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm14 0h-3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V6c0-.55-.4... |
src/components/raid/RaidChatEntry.js | Miroku87/pogo-raids-organizer | import React, { Component } from 'react';
import { Row, Col, ControlLabel } from "react-bootstrap";
import UserManager from '../../utils/UserManager';
import './RaidChatEntry.css';
export default class RaidChatEntry extends Component
{
render()
{
let real_entry = null,
entry_time = new Dat... |
packages/material-ui-icons/src/MenuOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" /></React.Fragment>
, 'MenuOutlined');
|
client/src/screens/article/comment-container.js | jmsmrgn/fem-testing-workshop | import React from 'react'
import {Link} from 'react-router-dom'
import CommentInput from './comment-input'
import CommentList from './comment-list'
const CommentContainer = props => {
if (props.currentUser) {
return (
<div className="col-xs-12 col-md-8 offset-md-2">
<div>
<list-errors err... |
src/components/slider/SliderSwatch.js | socialtables/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
export class SliderSwatch extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])
classes(): any {
return {
... |
src/index.js | FCCColumbus/F3C_Website | import React from 'react';
import { render } from 'react-dom';
import { ApolloProvider } from '@apollo/react-hooks';
import * as serviceWorker from './serviceWorker';
import { client, Router } from './config';
import 'font-awesome/css/font-awesome.min.css';
import './sharedStyles/theme.scss';
const App = () => (
<Ap... |
src/packages/@ncigdc/modern_components/AddOrRemoveAllFilesButton/AddOrRemoveAllFilesButton.relay.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { graphql } from 'react-relay';
import { makeFilter } from '@ncigdc/utils/filters';
import { compose, withPropsOnChange, branch, renderComponent } from 'recompose';
import { BaseQuery } from '@ncigdc/modern_components/Query';
export default (Component: ReactClass<*>) =>
co... |
assets/js/vendor/jquery-1.9.1.min.js | feinux/feinux.github.io | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
src/components/UnitView/instructions/ScriptGraphviz.js | fkn/ndo | import _ from 'lodash';
import React from 'react';
import Base from './Base';
import D3 from '../../Graphviz';
export default class ScriptGraphviz extends Base {
constructor(root) {
super(root, 'script', { type: 'text/vnd.graphviz' });
}
/* eslint-disable class-methods-use-this */
processNode(node) {
... |
app/components/users/UserInfo.js | alexko13/block-and-frame | import React from 'react';
const UserInfo = ({ user, avatarURL, instagramProfilePic }) => {
return (
<div>
<div className="ui card">
<div className="image">
<img src={avatarURL || instagramProfilePic || 'https://s3.amazonaws.com/spreadout-img/avatar.png'} />
</div>
... |
src/Parser/BloodDeathKnight/Modules/Items/T20_4pc.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
const GRAVEWARDEN_RUNIC_DISCOUNT = 5;
class T20_4pc extends Module {
s... |
app/routes.js | thenormalsquid/electronApp | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import AppContainer from 'containers/AppContainer';
import HomeContainer from 'containers/HomeContainer';
export default () => (
<AppContainer>
<Route component={HomeContainer} />
</AppContaine... |
subfind_web/ui/src/components/AdminLTE.js | thongdong7/subfind | import React from 'react'
export default class AdminLTE extends React.Component {
render() {
return (
<div className="container">
{this.props.children}
</div>
)
}
}
|
packages/api/src/hooks/utils/ErrorBoundary.js | billba/botchat | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const RenderChildrenFunction = ({ children }) => (typeof children === 'function' ? children() : children);
class ErrorBoundary extends Component {
constructor() {
super();
this.state = { hasError: false };
}
componentDidCatc... |
src/svg-icons/device/battery-unknown.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryUnknown = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-2.72 13.95h-1.9... |
packages/material-ui/src/Slide/Slide.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import debounce from 'debounce'; // < 1kb payload overhead when lodash/debounce is > 3kb.
import { Transition } from 'react-transition-group';
import { elementAcceptingRef } from '@material-ui/utils';
import { useForkRef } ... |
frontend/web/js/jquery-1.6.2.min.js | subarnacn/yii | /*!
* jQuery JavaScript Library v1.6.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.
... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleCustomNoResultsMessage.js | koenvg/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleCustomNoResultsMessage = () => (
<Dropdown
options={[]}
search
selection
placeholder='A custom message...'
noResultsMessage='Try another search.'
/>
)
export default DropdownExampleCustomNoResultsMessag... |
components/RepoResults.js | gabrielpconceicao/react-alt-webpack-introduction | import React, { Component } from 'react'
import RepoStore from '../stores/Repo'
export default class RepoResults extends React.Component {
constructor(props) {
super( props )
this.state = {
repo: {
items: [],
total_count: undefined
},
... |
ajax/libs/zeroclipboard/2.1.2/ZeroClipboard.js | emijrp/cdnjs | /*!
* 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) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.2
*/
(function(window, undefined) {
"use strict";... |
ajax/libs/thorax/2.0.0rc2/thorax.min.js | jimmybyrum/cdnjs | (function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ... |
ajax/libs/react-router/0.11.2/react-router.js | him2him2/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.ReactRouter=e()}}(function(){var define,module,export... |
src/components/App/Header/Nav.js | dominicfallows/todo-app-react-redux-aws | import React from 'react';
import { Link } from 'react-router';
const HeaderNav = (props) => (
<nav className={`mdl-navigation ${props.navClassNames ? props.navClassNames : ""}`}>
<Link to="/" className="mdl-navigation__link" activeClassName="mdl-navigation__link--current">Home</Link>
<Link to="/sign-up" cla... |
src/parser/warlock/demonology/modules/azerite/DemonicMeteor.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import StatTracker from 'parser/shared/modules/StatTracker';
import calculateBonusAzeriteDamage from 'parser/core/calculateBonusAzeriteDamage';
import RESOURCE_TYPES from 'game/RESOURC... |
episode-033/CardCounter/__tests__/index.ios.js | thaterikperson/elmseeds | 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 />
);
});
|
stories/examples/ProgressMax.js | reactstrap/reactstrap | import React from 'react';
import { Progress } from 'reactstrap';
const Example = (props) => {
return (
<div>
<div className="text-center">1 of 5</div>
<Progress value="1" max="5" />
<div className="text-center">50 of 135</div>
<Progress value={50} max="135" />
<div className="text-... |
gapclose-frontend/components/conversation.js | conanbatt/gapclose | import React from 'react';
import Link from 'next/link';
import Toggle from 'react-bootstrap-toggle';
import 'isomorphic-fetch';
import ReactMarkdown from 'react-markdown';
export default ({topic, handleUpdates, user}) => (
<div className="conversation">
<style jsx>{`
.page-header {
margin-top: 20... |
src/components/Forms/PaymentMethodForm.js | TheModevShop/craft-app | import React from 'react';
// import {Link} from 'react-router-dom';
// import Loader from 'components/Loader';
import _ from 'lodash';
import formIsComplete from 'utility/formIsComplete';
import payform from 'payform';
import {findDOMNode} from 'react-dom';
const NAME_ON_CARD = 'nameOnCard';
const CREDIT_CARD = 'cred... |
test/specs/components.spec.js | sandim27/ReduxApp | import React from 'react';
import { mount, shallow } from 'enzyme';
import {expect} from 'chai';
import BlockPhoto from '../../app/components/PhotoBlock';
describe('<BlockPhoto/>', function () {
const props = {
photo:{name: 'photo'}
}
const wrapper = shallow(<BlockPhoto {...props}/>);
it('sh... |
src/components/display_message_link_list.js | santhoshml/Bookbild-UI | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Link } from 'react-router-dom';
import DisplayIOIList from './display_IOI_list';
import { fetchAllMessagesForAction } from '../actions/index';
import * as actionCreators from '../actions... |
docs/app/Examples/views/Statistic/Variations/Inverted.js | jamiehill/stardust | import React from 'react'
import { Segment, Statistic } from 'stardust'
// TODO: Update <Segment> usage after <Segment> will be updated to v1 API
const Inverted = () => (
<Segment className='inverted'>
<Statistic inverted value='54' label='inverted' />
<Statistic inverted color='red' value='27' label='red' ... |
src/components/LayerStylesCarousel/LayerStylesCarousel.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
import LayerStyleItem from './LayerStyleItem'
const LayerStylesCarousel = ({ layer, onArrowLeftClick, onArrowRightClick, onStyleClick }) => {
const STYLE_WIDTH = 66
let selectedLayerId
let leftArrowClassName = 'layer-styles-carousel--arrow fa fa-chevron-left'
let rightArro... |
app/scripts/NestedContextMenu.js | hms-dbmi/4DN_matrix-viewer | import React from 'react';
import ContextMenuContainer from './ContextMenuContainer';
import ContextMenuItem from './ContextMenuItem';
import { THEME_DARK } from './configs';
// Styles
import '../styles/ContextMenu.module.scss';
class NestedContextMenu extends ContextMenuContainer {
getSubmenu() {
if (this.st... |
tests/baselines/reference/tsxAttributeResolution11.js | plantain-00/TypeScript | //// [tests/cases/conformance/jsx/tsxAttributeResolution11.tsx] ////
//// [react.d.ts]
declare module JSX {
interface Element { }
interface IntrinsicElements {
}
interface ElementAttributesProperty {
props;
}
interface IntrinsicAttributes {
ref?: string;
}
}
//// [file.tsx]
class MyComponent {
re... |
ajax/libs/material-ui/4.11.3-deprecations.1/esm/ExpansionPanel/ExpansionPanel.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _toArray from "@babel/runtime/helpers/esm/toArray";
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import {... |
plugins/subschema-plugin-template-checkboxesgroup/src/index.js | jspears/subschema-devel | import React, { Component } from 'react';
import PropTypes from 'subschema-prop-types';
export class CheckboxesGroupTemplate extends Component {
static propTypes = {
legend: PropTypes.node,
style : PropTypes.style
};
render() {
return (<fieldset className={this.props.groupClass}>
... |
src/admin/containers/payment_reports.js | foundersandcoders/sail-back | /* @flow */
import React from 'react'
import { connect } from 'react-redux'
const { compose, props, map, append, lensIndex, set, range, apply, lift,
defaultTo, lensProp, reduce, over, identity }
= require('ramda')
import { minus, plus } from 'app/money_arith'
import standardise from 'app/standardise_date'
import ... |
src/components/Rottory/BigIsland.js | pyxis0810/onepy | import React, { Component } from 'react';
class BigIsland extends Component {
render() {
return(
<div className="bigisland align-items-center">
<div className="container-fluid full-width">
<div className="row justify-content-center align-items-center">
<div className="col-10 c... |
library/js/jquery-1.4.3.min.js | kevmccor/openemr | /*!
* jQuery JavaScript Library v1.4.3
* 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.
... |
components/stories/button.js | tgdn/react-dropdown | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import {
Dropdown,
DropdownMenu,
DropdownMenuItem,
DropdownButton
} from '../../src'
import IoIosMore from 'react-icons/lib/io/ios-more'
storiesOf('Button', module)
.add('Simple menu', () => (
<Dropdown open... |
components/react-semantify/src/views/advertisement.js | react-douban/douban-book-web | import React from 'react';
import ClassGenerator from '../mixins/classGenerator';
let defaultClassName = 'ui ad';
const Ad = React.createClass({
mixins: [ClassGenerator],
render: function () {
let {className, ...other} = this.props;
return (
<div {...other} className={this.getClassName(defaultCl... |
files/core-js/0.9.5/shim.js | megawac/jsdelivr | /**
* Core.js 0.9.5
* 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 = {};
/******... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.