path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/webshim/1.14.4-RC4/dev/shims/combos/26.js | pazguille/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 ... |
draft-js-buttons/src/components/OrderedListButton/index.js | koaninc/draft-js-plugins | import React from 'react';
import createBlockStyleButton from '../../utils/createBlockStyleButton';
export default createBlockStyleButton({
blockType: 'ordered-list-item',
children: (
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4... |
src/components/Cover/Cover.js | Zoomdata/nhtsa-dashboard-2.2 | import styles from './Cover.css';
import React from 'react';
const Cover = () => {
return (
<div
className={styles.root}>
</div>
)
};
export default Cover; |
src/components/SearchObject.js | samkarp/murmuration | import React from 'react';
import Select from 'react-select';
class SearchObject extends React.Component {
constructor(props) {
super(props);
this.state = {
type: this.props.type,
options: [],
value: []
};
this.handleSelectChange = this.handleSelectChange.bind(this);
}
hand... |
pathfinder/vtables/projectdataqualitycompleteness/src/common/TableUtilities.js | leanix/leanix-custom-reports | import React from 'react';
import Utilities from './Utilities';
import Link from './Link';
import LinkList from './LinkList';
/* formatting functions for the table */
const OVERFLOW_CELL_STYLE = {
maxHeight: '100px',
overflow: 'auto'
};
function formatLinkFactsheet(setup) {
const baseUrl = Utilities.getFrom(setup... |
test/specs/elements/Header/HeaderSubheader-test.js | jcarbo/stardust | import faker from 'faker'
import React from 'react'
import HeaderSubheader from 'src/elements/Header/HeaderSubheader'
import * as common from 'test/specs/commonTests'
describe('HeaderSubheader', () => {
common.isConformant(HeaderSubheader)
common.rendersChildren(HeaderSubheader)
describe('content', () => {
... |
packages/bonde-admin/src/components/navigation/navbar/navbar-edition-wrapper.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import { injectIntl, intlShape } from 'react-intl'
import classnames from 'classnames'
import { NavbarButton, NavbarForm } from '@/components/navigation/navbar'
export class NavbarEditionWrapper extends React.Component {
constructor (props, context) {
... |
frontend/components/form/InputTextArea.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {FormControl} from 'react-bootstrap';
import styles from './InputTextArea.less';
const InputTextArea = ({input}) => (
<FormControl
componentClass="textarea"
className={styles.main}
value={input.value}
onChange={in... |
src/components/App.js | LaylaWang119/Star-Wars-Search | import React, { Component } from 'react';
import PropTypes from "prop-types";
//import { BrowserRouter, Route, Switch } from "react-router-dom";
import Home from "./Home";
import Films from "./Films";
import People from "./People";
import Planets from "./Planets";
import Search from "./Search";
//import logo from '.... |
src/components/timed_render.js | Helabs/handup-web | import React, { Component } from 'react';
export default class TimedRender extends Component {
constructor(props) {
super(props);
this.state = {
content: props.contentProvider()
};
}
componentWillMount() {
this.interval = setInterval(() => {
this.setState({ content: this.props.conte... |
react-router/components/Timestamp.js | sensduo/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import updateTime from '../actions/updateTime';
import TimeStore from '../stores/TimeStore';
import { connectToStores } from 'fluxible-addons-react';
@connect... |
src/list/selection/list.js | JabX/focus-components | // Dependencies
import React from 'react';
import builder from 'focus-core/component/builder';
import types from 'focus-core/component/types';
import { reduce, isArray, find } from 'lodash';
//Add a ref to the props if the component is not pure add nothing in the other case.
import { addRefToPropsIfNotPure, LINE } fr... |
blueocean-material-icons/src/js/components/svg-icons/maps/transfer-within-a-station.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsTransferWithinAStation = (props) => (
<SvgIcon {...props}>
<path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5.75 8.9L3 23h2.1l1.75-8L9 1... |
client/src/backend/components/project-collection/SortBy/index.js | ManifoldScholar/manifold | import React from "react";
import PropTypes from "prop-types";
import classnames from "classnames";
import { useListFilters } from "hooks";
import * as Styled from "./styles";
import { useTranslation } from "react-i18next";
export default function ProjectCollectionSortBy({
projectCollection,
sortChangeHandler
}) {... |
ajax/libs/yui/3.7.0/simpleyui/simpleyui.js | terrymun/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
node_modules/recharts/demo/component/ComposedChart.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import { ResponsiveContainer, ComposedChart, Line, Bar, Area, XAxis, YAxis,
ReferenceLine, ReferenceDot, Tooltip, Legend, CartesianGrid, Brush } from 'recharts';
const data = [
{ name: 'Page A', uv: 590, pv: 800, amt: 1400 },
{ name: 'Page B', uv: 868, pv: 967, amt: 1506 },
{ name: '... |
trim-interview-26092019/src/components/sideBar.js | balaSpyrus/wave11 | import React from 'react';
import { Link } from 'react-router-dom';
class SideBar extends React.Component {
constructor(props) {
super(props);
this.state = {
};
}
generateRandomLists = () => {
let list = Array(Math.ceil(Math.random() * 10)).fill(1).map((ele, i) => {
... |
admin/client/components/Popout/PopoutFooter.js | qwales1/keystone | import React from 'react';
const buttonBaseClassname = 'Popout__footer__button Popout__footer__button--';
var PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
primaryButtonIsSubmit: React.PropTypes.bool,
p... |
ajax/libs/jqueryui/1.12.0/external/jquery/jquery.js | Amomo/cdnjs | /*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module =... |
src/utils/index.js | liuminosity/dage | import React from 'react';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
export function createConstants (...constants) {
return constants.reduce((acc, constant) => {
acc[constant] = constant;
return acc;
}, {});
}
export function createReducer (initialState, reducerMap) {
... |
front_end/src/components/App/Navigation/Timeline.js | mozilla/splice | import React, { Component } from 'react';
import { Link } from 'react-router';
window.$ = require('jquery');
window.jQuery = $;
export default class Timeline extends Component {
getCancelLink(){
let output;
if(this.props.location.pathname.match(/\/accounts\/create/) ||
this.props.location.pathname.ma... |
src/components/Admin/Field.js | ryanabragg/VanguardLARP | import React from 'react';
import PropTypes from 'prop-types';
const Field = (props) => (
<div
name={props.name}
className={!props.text ? 'placeholder' : undefined}
id={props.id}
onClick={props.onClick}
>
{props.text || props.name}
</div>
);
Field.propTypes = {
id: PropTypes.oneOfType([
... |
test/GlyphiconSpec.js | mengmenglv/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Glyphicon from '../src/Glyphicon';
describe('Glyphicon', function () {
it('Should have correct class', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Glyphicon glyph='star' />
);
assert.ok(Rea... |
app/javascript/mastodon/components/skeleton.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>‌</span>;
Skeleton.propTypes = {
width: PropTypes.number,
height: PropTypes.number,
};
export default Skeleton;
|
react-flux-mui/js/material-ui/src/utils/withWidth.js | pbogdan/react-flux-mui | import React, {Component} from 'react';
import EventListener from 'react-event-listener';
export const SMALL = 1;
export const MEDIUM = 2;
export const LARGE = 3;
export default function withWidth(options = {}) {
const {
largeWidth = 992,
mediumWidth = 768,
resizeInterval = 166, // Corresponds to 10 fra... |
news/routes/Latest/Latest.js | pahosler/freecodecamp | import React from 'react';
const propTypes = {};
function Latest() {
return (
<h2>Latest</h2>
);
}
Latest.displayName = 'Latest';
Latest.propTypes = propTypes;
export default Latest;
|
index.android.js | msalem07/LectureRecorder | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import App from './src/app';
import Header from './src/components/common/Header';
import FileList from './src/co... |
azkaban-webserver/src/web/js/jquery/jquery.js | logiclord/azkaban | /*!
* 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... |
ajax/libs/onsen/1.3.7/js/onsenui.min.js | menuka94/cdnjs | /*! onsenui - v1.3.7 - 2015-07-27 */
!function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,attr... |
src/Main/CastEfficiency.js | mwwscott0/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
const CastEfficiency = ({ categories, abilities }) => {
if (!abilities) {
return <div>Loading...</div>;
}
return (
<div style={{ marginTop: -10, marginBottom... |
src/interface/icons/GitHubMarkLarge.js | anom0ly/WoWAnalyzer | import React from 'react';
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 250" className="icon" {...other}>
<path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 ... |
ajax/libs/angular.js/0.9.17/angular-scenario.min.js | cbas/cdnjs | /*!
* 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.
... |
docs/0.1df1801860f113d1a6eb.js | heifade/quark-ui | webpackJsonp([0],{"0P4F":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return r});var a=n("Jmof"),l=(n.n(a),n("lkey")),s=n("UJDU"),i=n("Pp2j"),o=n("WB2H"),r=class extends a.Component{constructor(e){super(e),this.state={}}render(){var e=()=>{s.a.config({placemen... |
src/public/components/bar/search.js | Harrns/segta | import React from 'react'
import $ from 'jquery'
import Notify from '../notification'
import Loading from '../loading'
import TextInput from '../input/text'
import Button from '../button/submit'
import Form from '../form/default'
import DialogWindow from '../dialog/default'
import SearchList from '../list/search'
imp... |
src/TheApp2017/wwwroot/lib/react-dropzone/src/index.js | zzjaqwsx/TheApp2017 | /* eslint prefer-template: 0 */
import React from 'react'
import PropTypes from 'prop-types'
import accepts from 'attr-accept'
import getDataTransferItems from './getDataTransferItems'
const supportMultiple = typeof document !== 'undefined' && document && document.createElement
? 'multiple' in document.createElemen... |
src/js/components/Type.js | slavapavlutin/pavlutin-node | import React from 'react';
class Type extends React.Component {
constructor() {
super();
this.state = { text: '' };
this.index = 0;
this.update = this.update.bind(this);
this.remove = this.remove.bind(this);
}
componentDidMount() {
this.intervalID = setInterval(this.update, this.props.sp... |
imports/plugins/included/payments-authnet/register.js | premcool/getmydeal | /* eslint camelcase: 0 */
import { Reaction } from "/server/api";
Reaction.registerPackage({
label: "Authorize.net",
name: "reaction-auth-net",
icon: "fa fa-credit-card",
autoEnable: true,
settings: {
"api_id": "",
"transaction_key": "",
"mode": false,
"authnet": {
enabled: false
},... |
frontend/src/components/common/charts/pieChart.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import { PieChart, Pie, Cell, Label, ResponsiveContainer } from 'recharts';
import Typography from 'material-ui/Typography';
const renderLabel = ({ value, offset, position, viewBox, ...params }) => (
<text
className="recharts-text recharts-label"
... |
components/catalog/header.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {translate} from 'react-i18next'
const Header = ({catalog, t}) => (
<div>
<h1>{catalog.name}</h1>
<a href={catalog.service.location} rel='noopener noreferrer' target='_blank'>
{t('details.header.catalogService')}
</a>
<style ... |
react-flux-mui/js/material-ui/src/svg-icons/editor/border-bottom.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderBottom = (props) => (
<SvgIcon {...props}>
<path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-2v2zm... |
ajax/libs/angular.js/0.10.5/angular-scenario.js | Ranks/cdnjs | /*!
* jQuery JavaScript Library v1.6.4
* 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/javascript/pages/management/widgets/WidgetsPage.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Table } from 'components';
import Notification from 'components/Notification';
class WidgetsPage extends React.Component {
constructor(props) {
super(props);
this.state = {
selectedRow: null... |
platform/ui/src/components/selectTree/InputRadio.js | OHIF/Viewers | import { Component } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
export default class InputRadio extends Component {
static propTypes = {
value: PropTypes.string,
label: PropTypes.string.isRequired,
itemData: PropTypes.object.isRequired,
labelClass: PropTypes.string,
... |
pages/api/bottom-navigation.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './bottom-navigation.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
index.js | LarsDam/skruf.switch | import React from 'react';
export default class Switch extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
let checked = false;
if('on' in props) {
checked = this.props.on;
}
this.state = {checked};
}
componentWillReceiveProps(nextProps)... |
packages/material-ui-icons/src/UsbOutlined.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2S4.8 7.79 4.8 9c0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3.05c-.71.37-1.2 1.1-1.2 1.95 0 1.22.99 2.2 2.2 2... |
src/svg-icons/places/fitness-center.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFitnessCenter = (props) => (
<SvgIcon {...props}>
<path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ... |
tests/client/admin/containers/TestUserPage.js | jasonthomas/addons-frontend | import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import { loadEntities, setCurrentUser } from 'core/actions';
import * as api from 'core/api';
import { UserPageBase, mapStateToProps, loadProfileIfNeeded }
from 'admin/containers/UserPage... |
v2-community/resources/docstrap-master/template/static/scripts/jquery.min.js | dreamsxin/phaser | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e, t) {
function _(e) {
var t = M[e] = {};
return v.each(e.split(y), function(e, n) {
t[n] = !0
}), t
}
function H(e, n, r) {
if (r === t && e.nodeType === 1) {
var i = "data-" + n.replace(P, "-$1").toLowerCase();
r ... |
client/src/components/Details/Details.js | demisto/alfred | import './Details.less';
import React, { Component } from 'react';
import { API_RESPONSE_STATUS } from '../../utils/constants';
import { parseType } from '../../utils/utils';
import { get } from '../../utils/api';
import IPDetails from "./IPDetails";
import URLDetails from './URLDetails';
import FileDetails from './Fil... |
src/containers/MessageDisplay/index.js | badT/twitchBot | import React, { Component } from 'react';
import Tooltip from '../../components/Tooltip';
import { styles } from './styles.scss';
export default class MessageDisplay extends Component {
constructor(props) {
super(props);
this.state = {
blurClass: 'row blurred',
blurBtn: 'Show Chat',
blurMsg... |
ajax/libs/foundation/4.2.3/js/vendor/jquery.js | DDMAL/cdnjs | /*!
* jQuery JavaScript Library v1.10.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-05-30T21:49Z
*/
(function( window, undefined ) {
// ... |
docs/src/pages/utils/modal/SimpleModal.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Modal from '@material-ui/core/Modal';
import Button from '@material-ui/core/Button';
function rand() {
return Math.round(Math.random() * ... |
src/initial-state.js | mortentangen/react-slick | var initialState = {
animating: false,
dragging: false,
autoPlayTimer: null,
currentDirection: 0,
currentLeft: null,
currentSlide: 0,
direction: 1,
// listWidth: null,
// listHeight: null,
// loadIndex: 0,
slideCount: null,
slideWidth: null,
// sliding: false,
// ... |
node_modules/react-router/es6/Redirect.js | rblin081/drafting-client | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { formatPattern } from './PatternUtils';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.st... |
src/index.js | dadosto/air-quality | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension'
import thunk from 'redux-thunk';
import App from './App';
import { Provider } from 'react-redux'
import RootReducer from './reducers';
import ... |
icon-builder/tpl/SvgIcon.js | ProductiveMobile/material-ui | let React = require('react');
let SvgIcon = {{{ muiRequireStmt }}};
let {{className}} = React.createClass({
render() {
return (
<SvgIcon {...this.props}>
{{{paths}}}
</SvgIcon>
);
}
});
module.exports = {{className}};
|
src/component/main/navmain/index.js | sdmccoy/portfolio | import React from 'react';
import {connect} from 'react-redux';
import {Link} from 'react-router-dom';
import * as projectActions from '../../../actions/project.js';
import {projects} from '../../../lib/projects.js';
import './_navmain.scss';
class NavMain extends React.Component {
constructor(props){
super(prop... |
src/Navigation.js | iotize/react-native-navigation | /*eslint-disable*/
import React from 'react';
import {AppRegistry} from 'react-native';
import platformSpecific from './deprecated/platformSpecificDeprecated';
import {Screen} from './Screen';
import PropRegistry from './PropRegistry';
const registeredScreens = {};
const _allNavigatorEventHandlers = {};
function reg... |
react-components/src/library/components/user-report-form/index.js | concord-consortium/rigse | import React from 'react'
import ExternalReportButton from '../common/external-report-button'
import DayPickerInput from 'react-day-picker/DayPickerInput'
import { formatDate, parseDate } from 'react-day-picker/moment'
import 'react-day-picker/lib/style.css'
import css from './style.scss'
import Select from 'react-sele... |
src/components/TempMarker/TempMarker.js | labzero/lunch | import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './TempMarker.scss';
const TempMarker = () => (
<div className={s.tempMarker}>
<svg viewBox="-2 -2 19 19" width="19" height="19">
<circle
className={s.tempMarkerCircle}
strokeWidth="2"
... |
src/applications/disability-benefits/996/tests/components/AddIssue.unit.spec.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { expect } from 'chai';
import { render } from '@testing-library/react';
import sinon from 'sinon';
import { AddIssue } from '../../components/AddIssue';
import { issueErrorMessages } from '../../content/addIssue';
import { MAX_LENGTH, LAST_HLR_ITEM } from '../../constants';
import { ... |
src/SvgIcon/SvgIcon.spec.js | mit-cml/iot-website-source | /* eslint-env mocha */
import React from 'react';
import {spy} from 'sinon';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import SvgIcon from './SvgIcon';
import getMuiTheme from '../styles/getMuiTheme';
describe('<SvgIcon />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (nod... |
js/app.js | jonirrings/draftr | /**
* Created by jonirrings on 17/1/7.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import RichTeXEditorExample from './components/RichTeXEditorExample';
ReactDOM.render(
<RichTeXEditorExample />,
document.getElementById('target'),
);
|
src/components/Product/Product.js | unam3/oshop | import React from 'react';
import BlueButton from '../BlueButton/BlueButton';
export const Product = ({brand, name, cost, cart, id, onAddToCart}) => {
require('./Product.css');
return (
<div className="product product-list__product flex-column">
<img className="product__preview product-list__product-pre... |
js/jqwidgets/demos/react/app/treegrid/conditionalrendering/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTreeGrid.expandRow(1);
this.refs.myTreeGrid.expandRow(2);
this.refs.myTreeGrid.expandR... |
ajax/libs/reactable/0.10.2/reactable.min.js | KOLANICH/cdnjs | (function(a,b){if(typeof define==="function"&&define.amd){define(["react"],b)}else{if(typeof exports==="object"){module.exports=b(require("react"))}else{a.Reactable=b(a.React)}}}(this,function(c){var f={};if(!Array.prototype.map){Array.prototype.map=function(z,y){var s,r,t;if(this===null){throw new TypeError(" this is ... |
src/components/CategoryList.js | vinhnglx/Dzone-news | import React from 'react';
import NavLink from './NavLink';
class CategoryList extends React.Component {
render() {
return (
<aside className="col-md-4">
<h2>Categories</h2>
<br/>
<div className="list-group" id="affix">
<NavLink to="/categories/agile" className="list-grou... |
src/components/views/settings/controls/index.js | CalviinG/project-rego | import React from 'react';
// Components
import SettingsComponent from '../settings_component.js';
// Common Components
import AnimationHolder from '../../../common/animation_holder.js';
import SettingsHolder from '../../../common/settings_holder.js';
const ControlsView = React.createClass({
getInitialState() {... |
stories/props/resourceIdAccessor.stories.js | jquense/react-big-calendar | import React from 'react'
import { Calendar } from '../../src'
import { resourceAccessorStoryArgs } from './storyDefaults'
import mdx from './resourceIdAccessor.mdx'
export default {
title: 'props',
component: Calendar,
argTypes: {
localizer: { control: { type: null } },
events: { control: { type: null }... |
__tests__/index.android.js | dima11221122/63pokupki-react-native | import 'react-native';
import React from 'react';
import Index from '../index.android.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/oauth/oauth_server.js | alphanso/meteor | var Fiber = Npm.require('fibers');
var url = Npm.require('url');
OAuth = {};
OAuthTest = {};
RoutePolicy.declare('/_oauth/', 'network');
var registeredServices = {};
// Internal: Maps from service version to handler function. The
// 'oauth1' and 'oauth2' packages manipulate this directly to register
// for callback... |
ajax/libs/remoteStorage/0.9.0/remotestorage.js | sajochiu/cdnjs | /** remotestorage.js 0.9.0, http://remotestorage.io, MIT-licensed **/
/** FILE: lib/promising.js **/
(function(global) {
function getPromise(builder) {
var promise;
if(typeof(builder) === 'function') {
setTimeout(function() {
try {
builder(promise);
} catch(e) {
pro... |
packages/slate-react/test/rendering/fixtures/custom-inline-multiple.js | ashutoshrishi/slate | /** @jsx h */
import React from 'react'
import h from '../../helpers/h'
function Link(props) {
return React.createElement(
'a',
{ href: props.node.data.get('href'), ...props.attributes },
props.children
)
}
function renderNode(props) {
switch (props.node.type) {
case 'link':
return Link(p... |
webroot/rsrc/js/application/uiexample/ReactorCheckboxExample.js | hach-que/unearth-phabricator | /**
* @provides phabricator-uiexample-reactor-checkbox
* @requires javelin-install
* javelin-dom
* javelin-reactor-dom
*/
JX.install('ReactorCheckboxExample', {
extend: 'View',
members: {
render: function() {
var checkbox = JX.$N('input', {type: 'checkbox'});
return [check... |
Faw.Web.Client/src/layouts/NotFoundLayout/NotFoundLayout.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import { Grid } from 'react-mdl'
import './NotFoundLayout.scss'
export const NotFoundLayout = ({ children }) => (
<Grid>
{ children }
</Grid>
)
NotFoundLayout.propTypes = {
children: React.PropTypes.object.isRequired
}
export default NotFoundLayout
|
src/layout/ContentCell.js | Paratron/modoJS | import React from 'react';
import {
propTypes as cellPropTypes,
defaultProps as cellDefaultProps
} from './Cell';
import Cell from './Cell';
const propTypes = cellPropTypes;
const defaultProps = cellDefaultProps;
const ContentCell = (props) => {
const classNames = ['mdo-content-cell'];
if (props.className) {
... |
lib/svg-icons/communication/dialpad.js | Cerebri/material-ui | 'use strict';
var React = require('react');
var PureRenderMixin = require('react-addons-pure-render-mixin');
var SvgIcon = require('../../svg-icon');
var CommunicationDialpad = React.createClass({
displayName: 'CommunicationDialpad',
mixins: [PureRenderMixin],
render: function render() {
return React.crea... |
js/components/inputgroup/index.js | HomelandGvarim/FE-Phone | import React, { Component } from "react";
import {
Container,
Header,
Title,
Content,
Button,
IconNB,
Text,
List,
Left,
Right,
Body,
ListItem,
Icon
} from "native-base";
import styles from "./styles";
const datas = [
{
route: "RegularInput",
text: "Regular Textbox"
},
{
ro... |
src/Home.js | awesomepankaj/timeWithYou | import React from 'react';
import AppBar from 'material-ui/AppBar';
import FlatButton from 'material-ui/FlatButton';
import Dialog from 'material-ui/Dialog';
import Add from 'material-ui/svg-icons/content/add'
import IconButton from 'material-ui/IconButton';
import injectTapEventPlugin from 'react-tap-event-plugin';
... |
htdocs/src/index.js | dermidgen/hiphonix | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory, Link, IndexRoute } from 'react-router';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import TextField from 'material-ui/Tex... |
src/components/Portfolio/ChargeTable/index.js | rosudrag/PortofolioKasia | import React from 'react';
import { Table } from 'react-bootstrap';
const Charges = () => {
const chargeHead = () => {
return (
<thead>
<tr>
<th># Hours</th>
<th>Flute Hourly Rate</th>
<th>Flute and... |
app/components/ProductsTable.js | BestBuyAPIs/bestbuy-sdk-js-sample-app | import React from 'react';
import Product from './Product';
class ProductsTable extends React.Component {
render(){
var rows = [];
this.props.products.forEach( (product)=> {
rows.push(<Product product={product} key={product.name} />);
});
return (
<table className="table-bordered table">
... |
src/browser/home/HomePage.react.js | amrsekilly/updatedEste | import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { FormattedHTMLMessage, FormattedMessage, defineMessages } from 'react-intl';
const messages = defineMessages({
intro: {
defaultMes... |
client/components/admin/layout/nav.js | ShannChiang/USzhejiang | import React from 'react';
import {Link} from 'react-router';
export default (props) => (
<div>
<div className="color-line">
</div>
<div id="logo" className="light-version">
<span>
{props.appName}
</span>
</div>
<nav role="navigation">
<Link to="#" className="heade... |
src/packages/@ncigdc/containers/AnnotationsPage.js | NCI-GDC/portal-ui | /* @flow */
import React from 'react';
import Relay from 'react-relay/classic';
import SearchPage from '@ncigdc/components/SearchPage';
import AnnotationsTable from './AnnotationsTable';
import AnnotationAggregations from './AnnotationAggregations';
export type TProps = {
location: Object,
relay: Object,
view... |
src/components/App.js | guiconti/Buildev | import React from 'react';
import PropTypes from 'prop-types';
import { Link, IndexLink } from 'react-router';
import * as routes from '../constants/routesNames';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin fro... |
Skins/VetoccitanT3/ReactSrc/node_modules/react-awesome-slider/src/hoc/autoplay/hoc.js | MAN-IN-WAN/Kob-Eye | import React, { Component } from 'react';
import { onceNextCssLayout, onceTransitionEnd } from 'web-animation-club';
import PropTypes from 'prop-types';
import { getClassName } from '../../helpers/components';
import { mergeStyles, getAnyClassName } from '../../core/helpers';
const ROOTELM = 'awssld';
export default ... |
ajax/libs/rxjs/4.0.6/rx.all.compat.js | jdh8/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
src/components/Button.js | rsimmons/immersion-player | import React, { Component } from 'react';
import './Button.css';
export default class Button extends Component {
handleClick = (e) => {
e.preventDefault();
this.props.onClick();
}
render() {
const disabled = !!this.props.disabled;
return <button onClick={this.handleClick} disabled={disabled} cla... |
ajax/libs/highstock/2.1.2/highstock.src.js | sreym/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.1.2 (2015-02-27)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT... |
src/js/components/Content.js | lianwangtao/shanelian.com | import React, { Component } from 'react';
import scrollToTop from '../utils/scroll';
import Tabs from 'grommet/components/Tabs';
import Tab from 'grommet/components/Tab';
import Box from 'grommet/components/Box';
import Image from 'grommet/components/Image';
import Paragraph from 'grommet/components/Paragraph';
impor... |
src/svg-icons/av/play-circle-outline.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ... |
v8/development/node_modules/html-react-parser/lib/dom-to-react.js | BigBoss424/portfolio | var React = require('react');
var attributesToProps = require('./attributes-to-props');
var utilities = require('./utilities');
/**
* Converts DOM nodes to React elements.
*
* @param {Array} nodes - The DOM nodes.
* @param {Object} [options] - The additional options.
* @param {Function... |
files/jquery.fancytree/2.16.0/jquery.fancytree-all.min.js | ezekutor/jsdelivr | /*! jQuery Fancytree Plugin - 2.16.0 - 2016-03-16T08:09
* https://github.com/mar10/fancytree
* Copyright (c) 2016 Martin Wendt; Licensed MIT */
(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( [ "jquery" ], factory );
} else {
factory( jQuery );
}
}(function( $ ) {
!functio... |
src/components/form/label.js | ThrivingKings/circle-ui | import React from 'react'
import { css } from 'glamor'
const Label = ({ children, ...props }) => (
<label {...styles.label} {...props}>
{ children }
</label>
)
const styles = {
label: css({
margin: '0 5px 5px 0'
})
}
export default Label
|
ngiiedu-client/src/components/admin/school/list/Search.js | jinifor/branchtest | import React from 'react';
import { connect } from 'react-redux';
import { actionSearchSchool } from '../../../../actions/index';
//학교구분 버튼
import RaisedButton from 'material-ui/RaisedButton';
//검색창
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import Divider from ... |
__tests__/index.ios.js | VIPShare/VIPShare | 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 />
);
});
|
ajax/libs/video.js/4.8.4/video.dev.js | danut007ro/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
src/components/topic/wizard/TopicSeedDetailsForm.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm, Field, propTypes } from 'redux-form';
import { Row, Col } from 'react-flexbox-grid/lib';
import withIntlForm from '../../common/hocs/IntlForm';
import TopicAdvancedForm from './TopicAdvancedForm';
const localMessages = {
name: { id: '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.