target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/svg-icons/av/fiber-new.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberNew = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v... |
plugins/react/frontend/components/controls/advanced/AvatarControl/index.js | pure-ui/styleguide | import React from 'react';
import randomValue from './randomValue';
import Row from '../../../form/Grid/Row';
import LeftColumn from '../../../form/Grid/LeftColumn';
import RightColumn from '../../../form/Grid/RightColumn';
import CarteBlancheInput from '../../../form/CarteBlancheInput';
import Label from '../../../for... |
ajax/libs/material-ui/5.0.0-alpha.25/modern/Table/Tablelvl2Context.min.js | cdnjs/cdnjs | import*as React from"react";const Tablelvl2Context=React.createContext();"production"!==process.env.NODE_ENV&&(Tablelvl2Context.displayName="Tablelvl2Context");export default Tablelvl2Context; |
ajax/libs/yui/3.16.0/scrollview-base/scrollview-base-coverage.js | gagan-bansal/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollv... |
techCurriculum/ui/solutions/4.4/src/components/TextInput.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
bin/_setup/react/src/js/App/index.js | Donmclean/riko | import React from 'react';
//Styles
import './App.scss';
//Assets
import image from '../../media/images/riko-favicon.png';
export default class App extends React.Component {
constructor () {
super();
this.state = {
animation: 'hello-world__rotate',
isAnimating: true
... |
src/parser/rogue/subtlety/CONFIG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { tsabo } from 'CONTRIBUTORS';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built a l... |
tests/client/core/components/TestLoginPage.js | mstriemer/usetopscore-widgets | import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import config from 'config';
import LoginPage from 'core/components/LoginPage';
describe('<LoginPage />', () => {
function render(props = {}) {
return findDOMNode(renderIntoDocument(... |
src/main/react/index.js | hhandoko/luwak | /**
* File : index.js
* License :
* Copyright (c) 2017 Herdy Handoko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
webpack/scenes/ContentViews/Table/tableDataGenerator.js | Katello/katello | import React from 'react';
import { fitContent, expandable, sortable } from '@patternfly/react-table';
import { Link } from 'react-router-dom';
import { urlBuilder } from 'foremanReact/common/urlHelpers';
import { translate as __ } from 'foremanReact/common/I18n';
import LongDateTime from 'foremanReact/components/commo... |
lib/components/Main.js | hilvitzs/weatherly | import React, { Component } from 'react';
import Weatherly from './Weatherly';
// import key from './key.js'
export default class Main extends Component {
render() {
return (
<section>
<h1 className='appTitle'>Weatherly</h1>
<div>
<Weatherly/>
</div>
</section>
... |
src/js/components/LoadingDots.js | Patrolavia/oscar | import React, { Component } from 'react';
import Loader from 'halogen/ScaleLoader';
export default class LoadingDot extends Component {
render() {
return (
<div className="LoadingDot">
<Loader color="#757575" size="10px" />
</div>
);
}
}
|
ajax/libs/react-redux-form/1.0.0-beta.6/ReactReduxForm.js | extend1994/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","redux","react-dom"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),require("redux"),require("react-dom")... |
docs/app/Examples/elements/Input/Variations/InputExampleInverted.js | ben174/Semantic-UI-React | import React from 'react'
import { Segment, Input } from 'semantic-ui-react'
const InputExampleInverted = () => (
<Segment inverted>
<Input inverted placeholder='Search...' />
</Segment>
)
export default InputExampleInverted
|
app/components/List/index.js | mclxly/react-study | import React from 'react';
import styles from './styles.css';
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={`item-${index}`} item... |
analysis/deathknightblood/src/modules/features/checklist/Component.js | anom0ly/WoWAnalyzer | import SPELLS from 'common/SPELLS';
import COVENANTS from 'game/shadowlands/COVENANTS';
import { SpellLink } from 'interface';
import Checklist from 'parser/shared/modules/features/Checklist';
import GenericCastEfficiencyRequirement from 'parser/shared/modules/features/Checklist/GenericCastEfficiencyRequirement';
impor... |
App/Navigation/ReduxNavigation.js | GulfCoastCodeCamp/CodeCampApp | import React from 'react'
import * as ReactNavigation from 'react-navigation'
import { connect } from 'react-redux'
import AppNavigation from './AppNavigation'
// here is our redux-aware our smart component
function ReduxNavigation (props) {
const { dispatch, nav } = props
const navigation = ReactNavigation.addNav... |
app/javascript/mastodon/features/video/index.js | NS-Kazuki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { fromJS } from 'immutable';
import { throttle } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/uti... |
ExNavigator.js | exponentjs/ex-navigator | 'use strict';
import PropTypes from 'prop-types';
import React from 'react';
import { Navigator } from 'react-native-deprecated-custom-components';
import invariant from 'invariant';
import cloneReferencedElement from 'react-clone-referenced-element';
import ExNavigatorMixin from './ExNavigatorMixin';
import ExNavig... |
src/Svg/QuestionMarkLogo.js | numieco/patriot-trading | import React from 'react'
const QuestionMarkLogo = () => {
return (
<div>
<svg width="60px" height="60px" viewBox="0 0 60 60" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink">
<title>question-mark copy</title>
<desc>Created with Sketch.</desc>
... |
packages/wix-style-react/src/Card/Divider/index.js | wix/wix-style-react | import React from 'react';
import CoreDivider from '../../Divider';
const Divider = props => <CoreDivider {...props} />;
Divider.displayName = 'Divider';
export default Divider;
|
src/containers/Game.js | KtuluTeam/Ktulu | import React from 'react'
import {
View
} from 'react-native'
import { connect } from 'react-redux'
import { viewMap } from '../containers'
import { styles } from '../styles/styles'
import { Top } from '../components'
let GameView = ({stage, step, substep}) => {
let GameScreen
if (viewMap[stage][step].hasSubstep... |
src/Parser/Shaman/Elemental/Modules/Talents/ElementalBlast.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBox, { STATISTIC_ORDER } from 'Main/Statisti... |
pages/index.js | 1uphealth/1upwebapp | import React from 'react';
import Link from 'next/link';
import Layout from '../components/layouts/Layout';
import Header from '../components/Header.js';
import { authenticate } from '../utils';
var createReactClass = require('create-react-class');
// TODO decide: is Iframe component useful
// eslint-disable-next-lin... |
src/Badge.js | insionng/react-bootstrap | import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
import classNames from 'classnames';
const Badge = React.createClass({
propTypes: {
pullRight: React.PropTypes.bool
},
getDefaultProps() {
return {
pullRight: false
};
},
hasContent() {
re... |
tests/js/containers/Home.spec.js | KarimJedda/django-react-setup | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
import React from 'react';
import { expect } from 'chai';
import { mount, shallow } from 'enzyme';
import configureStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import { default as HomeViewConnected, HomeViewNotCon... |
src/pages/index.js | TotalLag/hello-world | import React from 'react'
import Link from 'gatsby-link'
const IndexPage = () => (
<div>
<h1>Hi people</h1>
<p>Welcome to your new Gatsby site.</p>
<p>Now go build something great.</p>
<Link to="/page-2/">Go to page 2</Link>
</div>
)
export default IndexPage
|
src/renderers/shared/reconciler/__tests__/ReactComponentLifeCycle-test.js | mik01aj/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... |
packages/icons/src/md/image/CropRotate.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdCropRotate(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M14.93 42.97C8.4 39.87 3.71 33.52 3 26H0c1.02 12.32 11.32 22 23.9 22 .45 0 .88-.04 1.32-.07L17.6 40.3l-2.67 2.67zM24.1 0c-.45 0-.88.04-1.32.07L30.... |
client/src/components/ProportionConstraintField/tests/ProportionConstraintField-test.js | open-sausages/silverstripe-asset-admin | /* global jest, jasmine, describe, it, expect, beforeEach */
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import { Component as ProportionConstraintField } from '../ProportionConstraintField';
// eslint-disable-next-line react/prop-types
const FieldGroup = ({ children }) => <div>{chil... |
src/icons/FilterBAndWIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FilterBAndWIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zm0 32L24 22... |
modules/Lifecycle.js | MattSPalmer/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
node_modules/material-ui/svg-icons/action/perm-contact-calendar.js | SerendpityZOEY/Solr-Search-React-UI | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
examples/passing-props-to-children/app.js | BerkeleyTrue/react-router | import React from 'react'
import { render } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link, History } from 'react-router'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/passing-props-to-children'
})
const App = React.createClass({
... |
client/router.js | akileh/fermtempctrl | import React from 'react'
import { Provider } from 'react-redux'
import { browserHistory, Router, Route, IndexRoute } from 'react-router'
import store from './store'
import AppContainer from './components/appContainer'
import StatusContainer from './components/statusContainer'
import TransmitterContainer from './compon... |
src/components/Artist/Artist.js | shoegazerwithak/statfm | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Image from '../Image/Image';
import Title from '../Title/Title';
import GridElement from '../GridElement/GridElement';
import BlackUnstyledLink from '../UnstyledLink/BlackUnstyledLink';
import './Artist.css';
class Artist extends Comp... |
ajax/libs/cleave.js/1.3.4/cleave-react.js | extend1994/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Cleave"] = factory(... |
src/components/itemList.textItem.js | pcyan/dva-example-rn | import React, { Component } from 'react';
import {
Text,
} from 'react-native';
import { Card } from 'react-native-material-design';
class Item extends Component {
naviagateToWeb() {
const { navigator } = this.props;
if (navigator) {
navigator.forward({ props: { url: this.props.url } });
}
}... |
ajax/libs/material-ui/4.11.3-deprecations.1/es/RootRef/RootRef.js | cdnjs/cdnjs | import * as React from 'react';
import * as ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { exactProp, refType } from '@material-ui/utils';
import setRef from '../utils/setRef';
let warnedOnce = false;
/**
* ⚠️⚠️⚠️
* If you want the DOM element of a Material-UI component check out
* [FAQ: How... |
src/components/Seats/Seats.js | dderevjanik/dnx-exercise | import React from 'react';
import { Seat } from './Seat';
import { seatsType } from './../../utils/customProps';
export const Seats = (props) => (
<tbody>
{
props.seats.map((row, rowInd) =>
(<tr key={rowInd}>
<td><b>Row {rowInd + 1}</b> </td>
{ row.map((seat,... |
ajax/libs/forerunnerdb/1.3.10/fdb-all.js | amoyeh/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/app/index.js | jhagai/react-redux-demo | import {AppContainer} from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import {Provider} from 'react-redux'
import myStore from './AppStore'
import 'bootstrap'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootstrap/dist/css/bootstrap-theme.css'
import '... |
app/components/Right/About/AboutPaper.js | SpotifiyOrganization/spotifyHack | import React from 'react';
import { Row } from 'react-materialize';
const AboutPaper = () => {
return (
<Row style={{height: '95vh', marginBottom: '0'}}>
<Row style={{paddingTop: '20px', paddingLeft: '20px', paddingRight: '20px'}}>
<Row><h5>About Us</h5></Row>
<Row><a href="https://www.linkedin.com/in/ry... |
ajax/libs/forerunnerdb/1.3.687/fdb-core+persist.min.js | dlueth/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... |
docs/src/app/components/pages/components/SvgIcon/Page.js | lawrence-yu/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 iconReadmeText from './README';
import IconExampleSimple from './ExampleS... |
talks-articles/frameworks/react/reactjs/tutorialspoint.com/react-app/App.js | abhishekkr/tutorials_as_code | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
class App extends Component{
constructor(){
super();
this.state = {
myclass: "main"
};
}
render(){
return(
<div className={this.state.myclass}>
<Header/>
... |
ajax/libs/rxjs/2.1.2/rx.js | dylannnn/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 &&
(typeof global == 'object' && global && global == global.global && (window = global... |
packages/rex-intl-translator-example/app/app.js | linear-bits/linear-bits | import React from 'react'
import {FormattedMessage} from 'react-intl'
const App = () => (
<div>
<FormattedMessage id='title' description='Title' defaultMessage='TITLE'/>
<p>
<FormattedMessage id='body'
description='Body'
defaultMessage='BODY {val, number}'
values={{
va... |
createJestTest.js | skeie/jest-snapshot-generator | function createJestTest(filename) {
const fileWithOutExt = filename.replace(/\.[^/.]+$/, "");
const readableFilename = capitalizeFirstLetter(fileWithOutExt);
return (
`import React from 'react';
import renderer from 'react-test-renderer';
import ${readableFilename} from '../${readableFilename}';
test('Shoul... |
client/src/Components/Toolbar/AppToolbarNavMenu.js | appztreme/Jugendsommer | import React from 'react';
import { Link } from 'react-router';
import IconMenu from 'material-ui/lib/menus/icon-menu';
import IconButton from 'material-ui/lib/icon-button';
import MenuItem from 'material-ui/lib/menus/menu-item';
import MenuIcon from 'material-ui/lib/svg-icons/navigation/menu';
import EventIcon from 'm... |
packages/material-ui-icons/src/BluetoothSearching.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.98 4.02... |
ajax/libs/material-ui/5.0.0-alpha.30/modern/Tooltip/Tooltip.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { deepmerge, elementAcceptingRef } from '@material-ui/utils'... |
assets/jsx/views/base/components/footer.js | Tjorriemorrie/besetfree | import React from 'react'
import FacebookPage from './../../facebook/containers/page'
const Footer = () => {
return <footer>
<div className="wrapper">
<div className="boxes">
<FacebookPage />
<div>
<p>
Tel: 0421 854... |
src/Pages/Films.js | neilD2/neilD2.github.io | import React, { Component } from 'react';
import MovieList from '../store/MovieList';
class Films extends Component {
render() {
return (
<div className="container-fluid">
<p>
Here we have a top ten of historical films list. Please use our search feature to search ov... |
client/components/AuthenticatedComponent.js | YMFE/yapi | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeMenuItem } from '../reducer/modules/menu';
export function requireAuthentication(Component) {
return @connect(
state => {
return {
isAuthenticated: state.user.isLogin
};
},... |
ajax/libs/vis/3.4.0/vis.js | LeaYeh/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 3.4.0
* @date 2014-09-10
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
client/src/templates/Guide/components/Breadcrumbs.js | otavioarc/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
import titleify from '../../../../utils/titleify';
const propTypes = {
path: PropTypes.string.isRequired
};
function Breadcrumbs(props) {
const { path } = props;
if (path === '/') {
return null;
}
const pathM... |
src/main/script/Entry.js | gambtho/willitconnect | import React from 'react';
import ProgressBar from 'react-bootstrap/lib/ProgressBar';
import Panel from 'react-bootstrap/lib/Panel';
import { PASSED, FAILED, SUBMIT } from './actions/entry-actions';
const getPanelStyle = (status) => {
switch (status) {
case PASSED:
return 'success';
case FAILED:
... |
src/index.js | carlmanaster/stripes | import React from 'react'
import ReactDOM from 'react-dom'
import { browserHistory } from 'react-router'
import Routes from './routes'
import './index.css'
ReactDOM.render(
<Routes history={browserHistory} />,
document.getElementById('root')
)
|
src/svg-icons/image/photo-filter.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoFilter = (props) => (
<SvgIcon {...props}>
<path d="M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75.... |
ajax/libs/jquery.fancytree/2.16.0/jquery.fancytree-all.min.js | kennynaoh/cdnjs | /*! 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... |
yii/framework/web/js/source/jquery.min.js | thebluevn/bluesms | /*! 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=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
react/src/ProgressBar.js | jbadson/render_controller | import React from 'react';
import './ProgressBar.css';
/**
* Horizontal progress bar widget
* @prop {string} barClass - className of progress bar inner div. Can be used
* to set height, border-radius, etc.
* @prop {string} fillClass - className of progress bar fill.
* @prop {float} percent - Progress percent
... |
tests/framework.spec.js | deevatech/frontend | import assert from 'assert'
import React from 'react'
import {mount, render, shallow} from 'enzyme'
class Fixture extends React.Component {
render () {
return (
<div>
<input id='checked' defaultChecked />
<input id='not' defaultChecked={false} />
</div>
)
}
}
describe('(Framewo... |
src/pages/news/CBA/NewsCBAPicture.js | HeliumLau/Hoop-react | import React from 'react';
import NewsList from 'components/NewsList.js';
export default class NewsCBAPicture extends React.Component {
render() {
const list = [
{
title: '王治郅微微一笑,已深得主教练信任',
lNum: '28',
cNum: '212',
bgurl: 'h... |
dist/lib/index.js | erikschlegel/RxBingServices | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/client/components/container/Search.js | megmatty/letsplay-fullstack | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { gamesGetData, captureQuery, resetGames, addGame } from '../../actions/games';
import Game from '../../components/pure/Game';
import axios from 'axios';
class Search extends Component {
getQuery = () => {
let input = this.refs... |
extensions/cms/components/JsonDomEditor.js | axax/lunuc | import React from 'react'
import PropTypes from 'prop-types'
import {
List,
ListItem,
ListItemText,
Collapse,
ExpandLessIcon,
ExpandMoreIcon,
TextField,
ClearIconButton,
SimpleAutosuggest,
SimpleMenu
} from 'ui/admin'
import {getComponentByKey, addComponent, removeComponent} from... |
ajax/libs/jquery-mobile/1.4.5/jquery.mobile.js | LeaYeh/cdnjs | /*!
* jQuery Mobile 1.4.5
* Git HEAD hash: 68e55e78b292634d3991c795f06f5e37a512decc <> Date: Fri Oct 31 2014 17:33:30 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and othercontributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory )... |
src/svg-icons/maps/local-movies.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalMovies = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</Svg... |
examples/react-native/components/lightbox/DemoLightbox.js | aksonov/react-native-router-flux | import React from 'react';
import {Text} from 'react-native';
import Lightbox from './BaseLightbox';
const DemoLightbox = ({data, children}) => (
<Lightbox verticalPercent={0.5} horizontalPercent={0.9}>
<Text>Demo Lightbox: {data}</Text>
<Text>Allows transparency for background</Text>
</Lightbox>
);
expo... |
ajax/libs/highcharts/3.0.2/highcharts.src.js | aminghaderi/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.2 (2013-06-05)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
component/editor/editor.js | pltod2/braggers | import React from 'react';
import ReactDOM from 'react-dom';
import {EditorState, convertToRaw} from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import { fromJS } from 'immutable';
import { mdToDraftjs, draftjsToMd } from 'draftjs-md-converter';
import createMentionPlugin, { defaultSuggestionsFilter } fro... |
ajax/libs/react/0.8.0/JSXTransformer.js | OnsenUI/cdnjs | /**
* JSXTransformer v0.8.0
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSXTransformer=e():"undefined"!=typeof global?global.JSXTransformer=e():"undefined"!=typeof self&&(self.JSXTransformer=e())}(function(){var define,m... |
dist/src/components/Home/Home.js | jdhanesh/ftdpwa | import React from 'react'
import Promoarea from '../../components/Promoarea/Promoarea'
import promos from '../../../promo-contents.json'
// import styles from './Home.css'
// console.log(promos)
const Home = () => (
<div>
{promos.promos.map(promo => <Promoarea {... promo} key={promo.slug} titleLink... |
ajax/libs/yui/3.10.1/event-custom-base/event-custom-base.js | LostCrew/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
test/ModalBodySpec.js | HPate-Riptide/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import Modal from '../src/Modal';
describe('Modal.Body', () => {
it('uses "div" by default', () => {
const instance = ReactTestUtils.renderIntoDocument(
<Modal.Body />
);
assert.equa... |
frontend/test/helpers/shallowRenderHelper.js | pahomovda/victorious-pirate | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
files/yui/3.15.0/event-focus/event-focus-debug.js | Asaf-S/jsdelivr | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
components/Animate/EdgeFade.js | NGMarmaduke/bloom | /*
global
window: true,
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { subscribe } from 'subscribe-ui-event';
export default class EdgeFade extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
threshold: PropTypes.number,
};
stat... |
packages/icons/src/md/action/AssignmentInd.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdAssignmentInd(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M38 8c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V12c0-2.21 1.79-4 4-4h8.37c.82-2.32 3.02-4 5.63-4s4.81 1.68 5.63 4H38zM24 8a2... |
src/client.js | BonnWestCoast/Semantify.io | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
ajax/libs/react-native-web/0.16.5/exports/createElement/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
import AccessibilityUtil from '../../modules/AccessibilityUtil';
import createDOMProps from '../../modules/createDOMProps';
import React fro... |
src/mobile/app.js | ChingxWando/2017-07-23_bubble-dragons | import React, { Component } from 'react';
import { ApolloProvider } from 'react-apollo';
import { createStore, combineReducers, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import ApolloClient from 'apollo-client';
import { SubscriptionClient } from 'subscriptions-tran... |
src/templates/blog-post.js | justincharles/momentum | import React from "react";
import Helmet from "react-helmet";
import Nav from "../components/nav/nav";
import Footer from "../components/footer/footer";
// import '../css/blog-post.css'; // make it pretty!
export default function Template({
data // this prop will be injected by the GraphQL query we'll write in a bi... |
src/index.js | AleksandrChukhray/redux_projects | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import './styles/app.css'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Provider store={store}>
<div className='app'>
<App />... |
src/routes/system/index.js | fechy/retropie-web-gui | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import NotFound from '../notFou... |
ajax/libs/forerunnerdb/1.3.412/fdb-legacy.js | menuka94/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... |
miniProjects/imageGallery/node_modules/react/lib/ReactFragment.js | Vrturo/FrontEndLabz | /**
* Copyright 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
'use strict... |
docs/src/_bilprospekt_action_button_component.js | Bilprospekt/bilprospekt-ui | import React from 'react';
import {ActionButton} from 'bilprospekt-ui';
const ActionButtonDoc = React.createClass({
_onClick() {
console.log('working');
},
render() {
return (
<div id='ActionButtonDoc'>
<p className="table-header-label">Action Button</p>
... |
examples/todomvc/test/components/TodoItem.spec.js | neighborhood999/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoItem from '../../components/TodoItem'
import TodoTextInput from '../../components/TodoTextInput'
function setup( editing = false ) {
const props = {
todo: {
id: 0,
text: 'Use Redux',
... |
src/svg-icons/hardware/tablet-android.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletAndroid = (props) => (
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/>
</SvgIcon... |
src/containers/CurrencyPanel/index.js | blurbyte/money-fetch | // one of the root components, then placed in containers
import React from 'react';
// components
import CurrencyPicker from '../CurrencyPicker';
import CurrencyDetails from '../CurrencyDetails';
import Wrapper from './Wrapper';
class CurrencyPanel extends React.Component {
render() {
return (
<Wrapper>
... |
src/routes/home/index.js | OlegVitiuk/Majsternia | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
i... |
server/sonar-web/tests/apps/overview/main/coverage-test.js | joansmith/sonarqube | import _ from 'underscore';
import { expect } from 'chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { GeneralCoverage } from '../../../../src/main/js/apps/overview/main/coverage';
const COMPONENT = { key: 'component-key' };
const DATE = new Date(2015, 0, 1);
const MEASURES... |
ajax/libs/buy-button-js/0.1.1/buybutton.js | sashberd/cdnjs | var ShopifyBuy = (function () {
'use strict';
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}
function interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex['default'] : ex;
}
function cre... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | llukasxx/school-organizer-front | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
src/route/sysuser/index.js | hustlrb/yjbAdmin | import React from 'react';
import {connect} from 'react-redux';
import {Row, Col} from 'antd';
import UserTabHeader from './UserTabHeader';
import UserRoleTabHeader from './UserRoleTabHeader';
import UserOp from './UserOp';
import UserFilter from './UserFilter';
import UserList from './UserList';
import UserRole from '... |
node_modules/react-navigation/src/navigators/createNavigator.js | aksharora/ReactNativeDemoBasic | /* @flow */
import React from 'react';
import type {
NavigationRouter,
NavigationRoute,
NavigationNavigator,
NavigationNavigatorProps,
} from '../TypeDefinition';
/**
* Creates a navigator based on a router and a view that renders the screens.
*/
const createNavigator = (router: NavigationRouter) =>
(Vie... |
wp-includes/js/jquery/jquery.js | chadthegreat/FFPACgvsu | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.