path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
webapp/src/main/webapp/WEB-INF/view/scripts/jquery/jquery.min.js | naraink/openmrs-core | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/components/gimp/original/GimpOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './GimpOriginal.svg'
/** GimpOriginal */
function GimpOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'GimpOriginal' + ' ' + className... |
assets/search-employee-view/components/ResultTable.js | janta-devs/nyumbani | import React, { Component } from 'react';
import TableCell from './TableCell';
class ResultTable extends Component{
render() {
const tableStyle = {
width: '85%',
margin:'auto',
};
var populate = this.props.data.map( (x, y) =>
<TableCell key = { y } order_id = {x.order_id} employer = { x.login_id } d... |
tests/components/Participant.spec.js | hack-duke/hackduke-portal | import React from 'react'
import Participant from 'components/Participant'
import StackedInfo from 'components/StackedInfo'
import SpacedInfo from 'components/SpacedInfo'
import LinkInfo from 'components/LinkInfo'
import classes from 'components/Participant/Participant.scss'
import { shallow} from 'enzyme'
describe('(... |
src/pages/Dashboard/index.js | shrimpliu/shradmin | import React from 'react';
export default () => (
<div>dashboard</div>
); |
client/components/icons/icon-components/twitter-white.js | HelpAssistHer/help-assist-her | import React from 'react'
export default function TwitterWhite(props) {
return (
<svg
version="1.1"
id="Layer_1"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
x="0px"
y="0px"
viewBox="-11 -10 239 236"
enableBackground="new -11 -10 239 236"
xmlSpace="preserve... |
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | verdan/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
js/ClientApp.js | PansFortress/complete-intro-to-react | import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter, Match } from 'react-router'
import Landing from './Landing'
import Search from './Search'
import Details from './Details'
import preload from '../public/data.json'
import '../public/normalize.css'
import '../public/style.css'
console.... |
src/stories/2019-11-05-amazing-provence-part-2.js | danpersa/remindmetolive-react | import React from 'react';
import PostImageResp from '../components/story/PostImageResp';
import TwoPostImageResp from '../components/story/TwoPostImageResp';
import StoryPage from '../components/story/StoryPage';
import StoryTextBlock from '../components/story/StoryTextBlock';
import StoryImages from '../components/st... |
ajax/libs/yui/3.14.0/datatable-body/datatable-body-debug.js | francescoagati/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 = ... |
ajax/libs/6to5/1.13.2/browser.js | steadiest/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... |
client/src/components/users/user-edit.js | commoncode/ontap | import React from 'react';
import autobind from 'autobind-decorator';
import EditForm from '../generic/edit-form';
@autobind
class UserEdit extends EditForm {
save(evt) {
evt.preventDefault();
this.props.save(this.state.model);
}
delete(evt) {
evt.preventDefault();
this.props.delete(this.props... |
ajax/libs/forerunnerdb/1.3.751/fdb-all.js | dc-js/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... |
client/components/basic/Page.stories.js | subesokun/Rocket.Chat | import { Button, ButtonGroup, Margins, Tile } from '@rocket.chat/fuselage';
import React from 'react';
import Page from './Page';
export default {
title: 'basic/Page',
component: Page,
decorators: [
(fn) => <div className='rc-old'>{fn()}</div>,
],
};
export const _default = () =>
<Page>
<Page.Header title='... |
src/js/Containers/App.js | 7sleepwalker/addicted-to-mnt | import React, { Component } from 'react';
import logo from '../../img/logo.svg';
import '../../styles/App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 classNam... |
ajax/libs/forerunnerdb/1.3.614/fdb-all.min.js | bootcdn/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | alin23/react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
examples/native-react-component-type.js | kjirou/flow-playground | // @flow
import React from 'react';
type P = {a: number};
// TODO: なんで動かないんだろうこれは
//function Hoge(p: P) {
// return React.createElement('div', p);
//}
//(Hoge: React$Component<P>);
//
//
//class Fuga extends React.Component<P> {
// render() {
// return React.createElement('div', this.props);
// }
//}
//(Fuga... |
tests/routes/Counter/components/Counter.spec.js | kolyaka006/imaginarium | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'routes/Counter/components/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter : 5,
...bindA... |
src/workflows/nwchem/nwchem-simput/components/steps/Input.js | Kitware/HPCCloud | import React from 'react';
import SimputReact from '../../../../generic/components/steps/SimputReact';
// ----------------------------------------------------------------------------
function simputModelDecorator(model, props) {
// Add external data from project mesh
if (!model.external) {
model.external = {}... |
app/components/Main.js | Jaudat/nba-routes | var React = require('react');
var Router = require('react-router');
var RouteHandler = Router.RouteHandler;
var Link = Router.Link;
var firebaseUtils = require('../utils/firebaseUtils');
var Main = React.createClass({
getInitialState: function(){
return {
loggedIn: firebaseUtils.isLoggedIn()
};
},
... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/PopoverHeader.spec.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import { shallow } from 'enzyme';
import { PopoverHeader } from '../';
describe('PopoverHeader', () => {
it('should render children', () => {
const wrapper = shallow(<PopoverHeader>Ello world</PopoverHeader>);
expect(wrapper.text()).toBe('Ello world');
expect(wrapper.hasClass(... |
popup/src/scripts/components/friends/LiveFriendVideoReplaysList.js | CaliAlec/ChromeIGStory | import React, { Component } from 'react';
import Toolbar from '@material-ui/core/Toolbar';
import Tooltip from '@material-ui/core/Tooltip';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemAvatar from ... |
site/src/components/index.js | anathik/quest-apparel | import React, { Component } from 'react';
import './index.css';
class NavLink extends Component {
render() {
return (
<div className="NavLink">{this.props.text}</div>
);
}
}
export default NavLink;
|
src/assets/js/react/django.js | happeninghq/happening | import React from 'react';
import Cookies from 'js-cookie';
export const DjangoCSRFToken = React.createClass({
render: function() {
const csrftoken = Cookies.get('csrftoken');
return React.DOM.input(
{type:"hidden", name:"csrfmiddlewaretoken", value:csrftoken}
);
}
});
|
fast-react/spec/context.spec.js | cevek/fast-react | import React from 'react';
import ReactDOM from 'react-dom';
const colorPurple = {color: 'purple'}
const colorRed = {color: 'red'};
const colorYellow = {color: 'yellow'};
const nameJames = {name: 'james'};
const nameBrown = {name: 'brown'};
let messageCurrentContext;
let messageNextContext;
let buttonCurrentContext... |
packages/wix-style-react/src/TableActionCell/TableActionCell.js | wix/wix-style-react | import PropTypes from 'prop-types';
import React from 'react';
import ChevronRight from 'wix-ui-icons-common/ChevronRight';
import More from 'wix-ui-icons-common/More';
import PopoverMenu from '../PopoverMenu';
import Button from '../Button';
import IconButton from '../IconButton';
import Tooltip from '../Tooltip';
imp... |
ajax/libs/yui/3.10.3/event-focus/event-focus.js | aaqibrasheed/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
app_old/components/List/index.js | daicas/react-boilerplate-examp | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
examples/src/components/MultiSelectField.js | reynolek/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 MultiSelectField = React.createClass({
displayName: 'MultiSelectField',
propTypes: {
label: React.PropTypes.string,
... |
src/components/index.js | RcrsvSquid/rcrsvsquid.github.io | // ------------------------------------
// Generic Style Components
// ------------------------------------
import React from 'react';
import styled, {css} from 'styled-components';
import {Center, Rounded, ZDepth1, ZDepth3} from './mixins';
export const BackgroundImg = styled.div`
background-image: url(${props =>... |
ajax/libs/F2/1.3.0/f2.no-easyXDM.js | honestree/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
ajax/libs/onsen/1.3.6/js/onsenui.js | emijrp/cdnjs | /*! onsenui - v1.3.6 - 2015-07-23 */
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// JavaScript Dynamic Content shim for Windows Store apps
(function () {
if (window.MSApp && M... |
docs/src/pages/demos/tooltips/PositionedTooltips.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Button from '@material-ui/core/Button';
import Tooltip from '@material-ui/core/Tooltip';
const styles = {
root: {
width: 500,
},
};
function P... |
src/utils/divWithClassName.js | glenjamin/react-bootstrap | import React from 'react';
import classNames from 'classnames';
export default className =>
React.forwardRef((p, ref) => (
<div {...p} ref={ref} className={classNames(p.className, className)} />
));
|
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-language-selector.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, ScreenSizeMixin, LsiMixin} from '../common/common.js';
import Dropdown from './dropdown.js';
import DropdownItem from './dropdown-item.js';
import Image from './image.js';
import {Div, Button, Modal... |
internals/templates/app.js | StrikeForceZero/react-typescript-boilerplate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].[ext]!./.htaccess';... |
stories/DropdownLayout/ExampleReactElements.js | nirhart/wix-style-react | import React from 'react';
import DropdownLayout from 'wix-style-react/DropdownLayout';
const style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px'
};
const options = [
{id: 0, value: <span style={{color: 'red'}}>Option 1</span>},
{id: 1, value: <span style={{color: 'gree... |
lib/LayoutGrid/stories/BasicUsage.js | folio-org/stripes-components | /**
* LayoutGrid: Basic Usage
*/
import React from 'react';
import Headline from '../../Headline';
import Icon from '../../Icon';
import Button from '../../Button';
import { Row, Col } from '../index';
import css from './LayoutGridExample.css';
export default () => (
<div>
<Headline className={css.headline} s... |
src/components/User/Deposit.js | yiweimatou/doctor-antd | import React, { Component } from 'react';
import { connect } from 'react-redux'
import {
Form, Button, Input, Spin, message
} from 'antd'
const FormItem = Form.Item
const formItemLayout = {
labelCol: { span: 4 },
wrapperCol: { span: 12 },
}
class Deposit extends Component {
state = {
vcodeLabe... |
src/__tests__/index.js | mox-1/react-click-handler | import React from 'react';
import {shallow, mount, render} from 'enzyme';
import {expect} from 'chai';
import sinon from 'sinon';
import MyComponent from '../index';
// Demo tests
// Shallow Rendering
// https://github.com/airbnb/enzyme/blob/master/docs/api/shallow.md
describe('Shallow Rendering', () => {
it('... |
src/messages-alert-container.js | knledg/react-blur-admin | import React from 'react';
export class MessagesAlertContainer extends React.Component {
static propTypes = {
mailCount: React.PropTypes.number.isRequired,
settingsOnClick: React.PropTypes.func,
allMessagesOnClick: React.PropTypes.func,
markAllAsReadOnClick: React.PropTypes.func,
}
constructor(... |
opentech/static_src/src/app/src/components/SidebarBlock/index.js | OpenTechFund/WebApp | import React from 'react'
import PropTypes from 'prop-types'
import './styles.scss';
export const SidebarBlock = ({ title, children }) => {
return (
<div className="sidebar-block">
{title && <h5>{title}</h5>}
{ children }
</div>
)
}
SidebarBlock.propTypes = {
title... |
app/components/statistic/StatisticFilter.js | jendela/jendela | import React from 'react'
import { m } from '../../helper'
const styles = {
label: {
marginTop: "7px"
},
text: {
color: '#7385A2',
textTransform: 'uppercase',
fontWeight: 900,
fontSize: '0.9em',
letterSpacing: '1px'
},
select: {
backgroundColo... |
app/javascript/mastodon/features/notifications/components/filter_bar.js | salvadorpla/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
const tooltips = defineMessages({
mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' },
favourites: { id: '... |
components/Search/SearchPanel.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import { connectToStores } from 'fluxible-addons-react';
import { navigateAction } from 'fluxible-router';
import classNames from 'classnames/bind';
import SearchResultsStore from '../../stores/SearchResultsStore';
import ErrorStore from '../../stores/Error... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.min.js | gionkunz/cdnjs | /*! F2 - v1.3.3 - 04-07-2014 - See below for copyright and license */
!function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
files/iosoverlay.js/0.1/js/jquery.min.js | bdukes/jsdelivr | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
docs/app/Examples/collections/Table/States/TableExampleActive.js | clemensw/stardust | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleActive = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Tabl... |
src/TextInput.js | Pearson-Higher-Ed/compounds | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class TextInput extends Component {
constructor(props) {
super(props);
const { showText, isNotVisibleMsg, password } = this.props;
this.state = {
passwordStatusText : showText || '',
... |
packages/@vega/layout/src/components/Notifications.js | VegaPublish/vega-studio | import React from 'react'
// import NotificationsWidget from '../../../../src/components/Notifications/Widget'
// import NotificationsFeed from '../../../../src/components/Notifications/Feed'
export default function TODO() {
return <div>TODO</div>
}
/*
import lyraClient from 'part:@lyra/base/client'
const notifica... |
ajax/libs/js-data/2.0.0-beta.3/js-data-debug.min.js | x112358/cdnjs | /*!
* js-data
* @version 2.0.0-beta.3 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUnivers... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/Tests/setupTests.js | tharikaGitHub/carbon-apimgt | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
packages/react-ui-components/src/MultiSelectBox/multiSelectBox.spec.js | neos/neos-ui | /* eslint-disable camelcase, react/jsx-pascal-case */
import React from 'react';
import {shallow} from 'enzyme';
import toJson from 'enzyme-to-json';
import {createStubComponent} from './../_lib/testUtils';
import MultiSelectBox from './multiSelectBox';
describe('<MultiSelectBox/>', () => {
let props;
beforeE... |
loc_frontend/node_modules/reactify/test/reactify.js | marka2g/loc | var assert = require('assert');
var browserify = require('browserify');
var coffeeify = require('coffeeify');
var reactify = require('../index');
var concat = require('concat-stream');
var fs = require('fs');
describe('reactify', function() {
function bundle(entry, cb) {
return browseri... |
packages/material-ui-icons/src/TurnedInNot.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z" />
, 'TurnedInNot');
|
src/renderers/dom/client/__tests__/ReactBrowserEventEmitter-test.js | howtolearntocode/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
node_modules/react-icons/io/android-sad.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidSad = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 22.5c3.5 0 6.4 2 7.9 5h-15.9c1.5-3 4.4-5 8-5z m0-18.7c8.9 0 16.2 7.3 16.2 16.2s-7.3 16.3-16.2 16.3-16.3-7.4-16.3-16.3 7.3-16.2 16.3-16.2z m0 29.2c7.1 0 12.9-... |
templates_c/ResultList-d3efe9fe8b7d2fa90d24f51cf94d530f.js | MfN-Berlin/AmphibiansTraits | if(typeof(window.console)=='undefined'){window.console={log:function(str){}};}if(typeof(window.__xatajax_included__)!='object'){window.__xatajax_included__={};};if(typeof(window.__xatajax_included__['Dataface/ResultList.js'])=='undefined'){window.__xatajax_included__['Dataface/ResultList.js']=true;require(DATAFACE_URL+... |
ajax/libs/yasr/2.4.13/yasr.bundled.min.js | LSleutsky/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
src/components/ListTitle/ListTitle.js | hrnik/roofbar | import React from 'react'
import PropTypes from 'prop-types'
import './ListTitle.scss'
const ListTitle = ({ number, type, count }) => {
return (
<div className='list-title'>
<span className='list-title__number'>{number}</span>
<div className='list-title__name'>
<span>{type} </span>
<s... |
src/components/__tests__/FormButton-test.js | MakeSchool-17/ios-app-DennisAleynikov | /**
* # FormButton-test.js
*
* This class tests that the form button displays correctly
*
* *Note:* if you want to understand the structures here, add a
* ```console.log``` and then ```npm test```.
*/
'use strict';
jest.autoMockOff();
/**
* ## Imports
*/
const React = require('react-native');
const { View }... |
src/utils/domUtils.js | mxc/react-bootstrap | import React from 'react';
import canUseDom from 'dom-helpers/util/inDOM';
import getOwnerDocument from 'dom-helpers/ownerDocument';
import getOwnerWindow from 'dom-helpers/ownerWindow';
import contains from 'dom-helpers/query/contains';
import activeElement from 'dom-helpers/activeElement';
import getOffset from 'd... |
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js | mmrtnz/material-ui | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
const style = {
container: {
position: 'relative',
},
refresh: {
display: 'inline-block',
position: 'relative',
},
};
const RefreshIndicatorExampleSimple = () => (
<div style={style.container}>
<RefreshIn... |
ajax/libs/vkui/4.29.0/cjs/components/ModalRoot/withModalRootContext.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard").default,_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default,_jsxRuntime=(Object.defineProperty(exports,"__esModule",{value:!0}),exports.withModalRootContext=withModalRootContext,require("... |
packages/material-ui-icons/src/StarsTwoTone.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="M19.47 9.16c-1.1-2.87-3.8-4.95-7.01-5.14l2 4.71 5.01.43zM11.54 4.02c-3.22.18-5.92 2.27-7.02 5.15l5.02-.43 2-4.72zM4.23 10.14C4.08 10.74 4 11.36 ... |
packages/react-devtools-scheduling-profiler/src/view-base/useCanvasInteraction.js | billfeller/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {NormalizedWheelDelta} from './utils/normalizeWheel';
import type {Point} from './geometry';
import {useE... |
packages/material-ui-icons/src/Cast.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" opacity=".1" /><path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3... |
src/components/App/__tests__/App-test.js | seeds-of-creativity/home | jest.unmock('../App');
import App from '../App';
import React from 'react';
import { shallow } from 'enzyme';
describe('App', () => {
it('renders children correctly', () => {
const wrapper = shallow(
<App context={{ insertCss: () => {} }}>
<div className="child" />
</App>
);
expect(w... |
ajax/libs/rxjs/2.2.14/rx.lite.compat.js | pombredanne/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,
'u... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet2Bar.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8z" /><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet2Bar');
|
app/components/PageHome.js | hasanozgan/cockpit | var React = require('react');
var Document = require('./Document');
var PureRenderMixin = require('react/lib/ReactComponentWithPureRenderMixin');
var ReactGridLayout = require('react-grid-layout');
var PageHome = React.createClass({
mixins: [PureRenderMixin],
getDefaultProps() {
return {
isDraggable: t... |
node_modules/react-router/es/Link.js | raskolnikova/infomaps | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
node_modules/node_modules/recharts/src/component/Cell.js | SerendpityZOEY/Solr-Search-React-UI | /**
* @fileOverview Cross
*/
import React, { Component, PropTypes } from 'react';
import pureRender from '../util/PureRender';
@pureRender
class Cell extends Component {
static displayName = 'Cell';
render() {
return null;
}
}
export default Cell;
|
src/svg-icons/image/grid-on.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGridOn = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6... |
src/components/UserObjects/UserObjects.js | expdevelop/yoap | import React from 'react'
import { observer } from 'mobx-react'
import { Link as RouterLink } from 'react-router-dom'
import { ItemPageInfoTitle, LinkIcon, Svg, Content, FlexGrid } from 'components'
import { ItemTileContainer } from 'containers'
import { classNames } from 'helpers'
import s from './UserObjects.sass'
i... |
modules/RoutingContext.js | buddhike/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
const { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
const RoutingC... |
ajax/libs/alt/0.16.8/alt-with-addons.js | hare1039/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Alt = f()}})(f... |
src/components/common/icons/ArrowGo.js | chejen/GoodJobShare | import React from 'react';
/* eslint-disable */
const ArrowGo = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<path fillRule="evenodd" d="M104.7581,108.714073 C103.3114,110.153697 103.3114,112.480659 104.7581,113.920282 C106.2048,115.359906 108.5432,115.359906 109.9899,113.920282 L... |
src/mobile/FremontMobile/index.ios.js | I-520/Fremont | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Fremont extends Component {
render() {
return (
<View style={styles.container}>... |
app/javascript/mastodon/features/followers/index.js | robotstart/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowers,
expandFollowers
} from '../../actions/accounts... |
examples/hello-world/src/index.js | mitchrosu/react-datepicker | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/compose/components/warning.js | unarist/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
examples/tree-view/src/setupTests.js | gaearon/redux | import { configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
configure({ adapter: new Adapter() })
|
my-redux-notes/my-react-redux/src/redux/connect.js | wumouren/react-demo | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export const connect = (Comp, propsType) => {
class Connect extends Component {
static contextTypes = {
store: PropTypes.object,
dispatch: PropTypes.func,
subscribe: PropTypes.func,
getStore: PropTypes.func,
... |
src/Main/Timeline/SpellTimeline.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import GeminiScrollbar from 'react-gemini-scrollbar';
import ReactTooltip from 'react-tooltip';
import 'gemini-scrollbar/gemini-scrollbar.css';
import { formatDuration } from 'common/format';
import SpellLink from 'common/SpellLink';
import SpellIcon from ... |
lib/site/home-forum/topic-card/component.js | democracy-os-fr/democracyos | import React from 'react'
import { Link } from 'react-router'
import t from 't-component'
import topicStore from 'lib/stores/topic-store/topic-store'
export default ({ topic }) => (
<Link
to={topic.url}
className='topic-card'>
<div
className='topic-cover'
style={{
backgroundImage: `ur... |
docs/app/Examples/views/Item/Types/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Items'
description='A group of items.'... |
packages/material-ui-icons/src/NotListedLocationRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 2C8.14 2 5 5.14 5 9c0 4.17 4.42 9.92 6.23 12.11.4.48 1.13.48 1.53 0C14.58 18.92 19 13.17 19 9c0-3.86-3.14-7-7-7zm.88 13.75h-1.75V14h1.75v1.7... |
app/javascript/mastodon/features/account_timeline/index.js | MitarashiDango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { lookupAccount, fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/time... |
ajax/libs/rxjs/2.1.20/rx.js | koggdal/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
files/react/0.14.0-alpha1/react.js | Craga89/jsdelivr | /**
* React v0.14.0-alpha1
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=s... |
app/app/components/Dashboard/RegisterationsStatisticsChart.js | lycha/masters-thesis | import React from 'react';
class RegisterationsStatisticsChart extends React.Component {
componentDidMount() {
this.keys = ['twitter'];
//const keys = ['facebook', 'twitter', 'my_source', 'website'];
this.registrationChart = Morris.Line({
element: "registrationChart",
... |
index.js | RebootJeff/questionable | import React from 'react';
import ReactDOM from 'react-dom';
import App from './scripts/components/app';
ReactDOM.render(<App />, document.querySelector('#react-app-root'));
|
client/containers/App.spec.js | zhakkarn/Mail-for-Good | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { AppComponent } from './App';
const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars
children: <div />,
user: {},
ws_notification: [],
isGettingActivePermissions: true,
activePermissionsEm... |
index.android.js | eilianlove/OneWeekOneProjectOfReactNative | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class OneDayOneProjectOfReactNative extends Component {
render() {
return (
<View sty... |
src/components/main/Main.js | jckfa/img.silly.graphics | import React from 'react'
import Images from './Images'
const Main = (props) => (
<main>
<Images />
</main>
)
export default Main
|
src/docs/components/animate/AnimateFadeExample.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Animate from 'grommet/components/Animate';
import Box from 'grommet/components/Box';
import Button from 'grommet/components/Button';
import Paragraph from 'grommet/components/Paragraph';
import Example... |
ajax/libs/ember-data.js/2.17.1/ember-data.js | cdnjs/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2017 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.17.1
*/
var loader, define, requireModule, require, requirejs;
(fu... |
ajax/libs/webshim/1.14.6-RC1/dev/shims/moxie/js/moxie.js | sashberd/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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.