target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
ajax/libs/yui/3.10.1/event-custom-base/event-custom-base-coverage.js
a8m/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-custom-base/event-custom-base.js']) { __coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,...
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js
kasra-co/material-ui
import React from 'react'; import { Step, Stepper, StepButton, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * A basic vertical non-linear implementation */ class VerticalNonLinear extends React.Component {...
node_modules/material-ui/svg-icons/editor/space-bar.js
millerman86/CouponProject
'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...
packages/node_modules/@webex/react-component-activity-post-action/src/index.js
adamweeks/react-ciscospark-1
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Button from '@webex/react-component-button'; import styles from './styles.css'; const propTypes = { iconColor: PropTypes.string, iconType: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, ...
tutorials08/src/app.js
Ivanwangcy/webpack-tutorials
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; // 可以使用箭头函数创建无状态组件 // let App = () => { // return ( // <div> // <h1>Hello hjs-webpack!!!!!!!</h1> // hot load...aaaaaaa // <p>sdfasdfasdfasdf</p> // </div> // ); // }; ReactDOM.render( <Ap...
tests/form.js
goto-bus-stop/bulmare
import React from 'react' import test from 'tape' import { render, shallow } from 'enzyme' import { Control, ControlGroup, HorizontalGroup, ControlLabel, Label, Input, Textarea, Checkbox, Radio, Icon } from '../src' test('Control should have class "control"', (t) => { t.ok(render(<Control />).has...
public/js/sliderTop/jquery-1.9.1.min.js
adrianicn/IguanaTrip
 /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function (e, t) { var n, r, i = typeof t, o = e.document, a = e.location, s = e.jQuery, u = e.$, l = {}, c = [], p = "1.9.1", f = c.concat, d = c.push, h = c.slice, g = c.indexOf, m = l.toString...
app/src/js/component/side-navigation/sidenav-quickaccess.js
enoa7/chart-account
import React from 'react'; export default class SideNavQuickAccess extends React.Component{ render() { return ( <div className="sidenav-quickaccess"> <ul className="nodots"> <li className="">Quick Access</li> <li className="">Financial Settings</li> <li className="">Sales Tax</li> <li c...
src/icons/IosComposeOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosComposeOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <polygon points="368,416 80,416 80,144 304.117,144 320.117,128 64,128 64,432 384,432 384,191.883 368,207.883 "></p...
components/LocationOutput.js
Hardyng/weatherforecast-nextjs-redux-ssr
import React from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; const Container = styled.div` display:flex; align-items:center; justify-content: center; ` const Title = styled.h4` ` const Text = styled.p` margin: 4px 0; line-height:16px; ` class LocationOutput extends...
index.android.js
rjvani/agent
/** * 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 agent extends Component { render() { return ( <View style={styles.container}> ...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/add-to-queue.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvAddToQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/> </SvgIcon> ); AvAddToQueue.displ...
ajax/libs/angular-data/0.10.3/angular-data.js
JohnKim/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file angular-data.js * @version 0.10.3 - Homepage <http://angular-data.pseudobry.com/> * @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/> * @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE> * * @overview Data store for Angular.js...
src/components/PhotoGrid.js
bigwisu/asik-sehat
import React, { Component } from 'react'; import Photo from "./Photo"; import { connect } from "react-redux"; const mapStateToProps = (state) => { return { posts: state.posts } } class PhotoGrid extends Component { render() { return ( <div className="photo-grid"> { this.p...
src/Tooltip.js
erictherobot/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
ajax/libs/bootstrap.native/2.0.9/bootstrap-native-v4.js
seogi1004/cdnjs
// Native Javascript for Bootstrap 4 v2.0.9 | © dnp_theme | MIT-License (function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD support: define([], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like: module.exports = factory(); } else...
src/index.js
kgrubic/Bullet-graph-React
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/scripts/globals.js
mikah1337/null-terminator
import React from 'react'; // ============ VARIABLES ============ // var RGB = {R: 0, B: 0, G: 0}; var prev_option = 0; // Temp variable that holds a prev value // ============ HELPER FUNCTIONS ============ // export var changeBrightness = (hex, percent, opacity = 1) => { var isDarkness = percent < 0; ...
lib/cli.js
relution-io/relution-cli
#!/usr/bin/env node --harmony "use strict"; var rxjs_1 = require('@reactivex/rxjs'); var RelutionSDK = require('./utility/RelutionSDK'); var Server_1 = require('./commands/Server'); var Environment_1 = require('./commands/Environment'); var Tower_1 = require('./commands/Tower'); var Project_1 = require('./commands/Proj...
assets/grocery_crud/js/jquery-1.11.1.min.js
BrunoMarty/MenuiserieCI
/*! jQuery v1.11.1 | (c) 2005, 2014 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...
src/icons/AndroidStar.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidStar extends React.Component { render() { if(this.props.bare) { return <g> <g> <polygon points="256,372.686 380.83,448 347.809,305.934 458,210.409 312.733,197.934 256,64 199.257,197.934 54,210.409 ...
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
tan-jerene/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
ajax/libs/cyclejs-dom/4.0.0/cycle-dom.js
gaearon/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.CycleDOM = f()...
packages/react-jsx-highcharts/test/components/Subtitle/Subtitle.spec.js
AlexMayants/react-jsx-highcharts
import React from 'react'; import { mount } from 'enzyme'; import Subtitle from '../../../src/components/Subtitle/Subtitle'; describe('<Subtitle />', function () { beforeEach(function () { this.setTitle = sinon.spy(); }); describe('when mounted', function () { it('adds a subtitle using the Highcharts s...
ajax/libs/yui/3.8.1/datatable-body/datatable-body-debug.js
ljharb/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
src/names/list/locked/EditLockedNameInfo.js
VasilyShelkov/ClientRelationshipManagerUI
import React from 'react'; import { connect } from 'react-redux'; import moment from 'moment'; import FlatButton from 'material-ui/FlatButton'; import PhoneIcon from 'material-ui/svg-icons/communication/phone'; import CancelIcon from 'material-ui/svg-icons/content/clear'; import NameDialogForm from '../../NameDialog'...
src/components/common/svg-icons/image/camera-roll.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraRoll = (props) => ( <SvgIcon {...props}> <path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h...
addons/docs/src/lib/convert/__testfixtures__/proptypes/arrays.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; export const Component = (props) => <>JSON.stringify(props)</>; Component.propTypes = { optionalArray: PropTypes.array, arrayOfStrings: PropTypes.arrayOf(PropTypes.string), arrayOfShape: PropTypes.arrayOf( PropTypes.shape({ active: PropType...
packages/react-tv-navigation/__tests__/with-navigation-test.js
raphamorim/react-tv
import React from 'react'; import Enzyme, { mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: new Adapter() }); import SpatialNavigation from '../src/spatial-navigation'; import withNavigation from '../src/with-navigation'; describe('withNavigation', () => { const Co...
ajax/libs/vega/5.0.0-rc2/vega.min.js
sufuf3/cdnjs
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).vega={})}(this,function(t){"use strict";function n(t,n,e){return t.fields=n||[],t.fname=e,t}function e(t){return null==t?null:t.fname}function r(t){return null==t?null...
src/main/resources/public/js/components/store-install-app.js
SICTIAM/ozwillo-portal
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {connect} from 'react-redux'; import createClass from 'create-react-class'; import PropTypes from 'prop-types' import { withRouter } from 'react-router-dom'; const Showdown = require('showdown'); const converter = new Showdown.Converter...
src/components/WeatherForecast/WeatherForecastBlock.js
Mikosko/EimPanel
/** * @Author: Miloš Kolčák * @Date: 2017-01-04T15:32:41+01:00 * @Email: milos.kolcak@gmail.com * @Last modified by: Miloš Kolčák * @Last modified time: 2017-01-05T17:07:33+01:00 */ import React from 'react' import style from './style.scss' class WeatherForecastBlock extends React.Component { render() { co...
react-ui/src/components/Admin.js
EdwinJow/truthindata
import React, { Component } from 'react'; import axios from 'axios'; import { GoogleLogin } from 'react-google-login-component'; class Admin extends Component { constructor(props) { super(props); this.state = { isAuthenticated: false }; } flushRedisCache = () => { ...
src/Parser/Rogue/Subtlety/Modules/Talents/DarkShadow/DarkShadowSpecterOfBetrayal.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import ItemLink from 'common/ItemLink'; import ITEMS from 'common/ITEMS'; import { formatPercentage } from 'common/format'; import DarkShadow from './DarkShadow'; class Dark...
app/components/logs-list.js
nypl-spacetime/logs-viewer
import React, { Component } from 'react'; import ReactDOM from 'react-dom' import {Table, Column, Cell} from 'fixed-data-table'; import Filters from './filters' import '../../node_modules/fixed-data-table/dist/fixed-data-table.css' import './logs-list.scss' var Renderers = {} function requireAll(r) { r.keys().for...
public/src/components/Home.js
dolchi21/open-prices-web
import React from 'react'; import LoginForm from '../containers/LoginForm.js'; require('/css/Home.less'); var Home = React.createClass({ render : function render(){ return ( <div id="Home"> <div> <h1>HOME</h1> </div> <div> <a href="/login">login</a> </div> </div> ); } }); expo...
src/components/main/parts/documents/documents.page.js
PolexRufous/FarmReactUI
import React from 'react'; import DocumentsTable from './documents.table'; import {FormattedMessage} from 'react-intl'; import DocumentsDispatcher from '../../dispatchers/documents.dispatcher'; import {Link} from 'react-router-dom'; import * as GlobalConfig from '../../../../global.config.json'; export default class D...
ajax/libs/yui/3.15.0/datatable-core/datatable-core-debug.js
tonytlwu/cdnjs
/* YUI 3.15.0 (build 834026e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @sinc...
src/components/center/inputs/name.input.js
Conservationist/HexNow
import React from 'react'; import firebase from 'firebase'; import {INPUT, Fade} from '../../_themes/text.style'; import {DIV, H1} from './input.style' class NameInput extends React.Component { constructor(props){ super(props) this.state = { user_name: null, }; this.handl...
imports/ui/pages/NotificationPage/NotificationPage.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Table, Alert, Button , Label , Row , Col } from 'react-bootstrap'; import Notification from '../../components/Notification/Notification'; const NotificationPage = () => ( <div> <Row> <Col sm={8} smOffset={2} md={8} mdOffset={2}> ...
webshop/sites/all/modules/jquery_update/replace/jquery/1.7/jquery.js
cooper-webdesign/cooper.dk
/*! * jQuery JavaScript Library v1.7.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
docs/app/Examples/collections/Table/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import States from './States' import Types from './Types' import Variations from './Variations' const TableExamples = () => ( <div> <Types /> <States /> <Variations /> </div> ) export default TableExamples
docs/app/Examples/collections/Table/Variations/TableExampleCompact.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleCompact = () => { return ( <Table compact> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</Ta...
src/tabs/tabs.container.js
Trampss/kriya
import { connect } from 'react-redux' import { getKeys } from './redux' import Component from './tabs' export const mapStateToProps = (state, ownProps) => { if (ownProps.children) return {} return { tabs: getKeys(state), } } export default connect(mapStateToProps)(Component)
client/src/entrypoints/admin/wagtailadmin.js
zerolab/wagtail
import React from 'react'; import ReactDOM from 'react-dom'; import { Icon, Portal, initUpgradeNotification } from '../..'; if (process.env.NODE_ENV === 'development') { // Run react-axe in development only, so it does not affect performance // in production, and does not break unit tests either. // eslint-disab...
ajax/libs/material-ui/4.11.2/Breadcrumbs/Breadcrumbs.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab...
shared/modules/utils/components/StepButtons.js
founderlab/fl-base-webapp
import _ from 'lodash' // eslint-disable-line import React from 'react' import PropTypes from 'prop-types' import { Row, Col } from 'reactstrap' import Button from './Button' export default class StepButtons extends React.PureComponent { static propTypes = { loading: PropTypes.bool, nextDisabled: PropTypes...
client/src/containers/RSVPForm/RSVPFormComponent.js
pqmcgill/stamp-wedding-app
import React from 'react'; import { connect } from 'react-redux'; import { Field, formValueSelector } from 'redux-form'; import { Row, Col } from 'react-flexbox-grid-aphrodite'; import { css } from 'aphrodite'; import styles from './styles'; import { RadioButton } from 'material-ui/RadioButton'; import ActionFavorite f...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsUninitialized.js
mroch/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaultProp...
cc-install/js/jquery.min.js
alx/CumulusClips
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
monkey/monkey_island/cc/ui/src/components/pages/RunMonkeyPage/utils/InterfaceSelection.js
guardicore/monkey
import React from 'react'; import InlineSelection from '../../../ui-components/inline-selection/InlineSelection'; import LocalManualRunOptions from '../RunManually/LocalManualRunOptions'; function InterfaceSelection(props) { return InlineSelection(getContents, props, LocalManualRunOptions) } const getContents = (pr...
app/components/ProgressBar.js
AngelGallegosE/Osiris
import React from 'react'; class ProgressBar extends React.Component { render() { return ( <div id="MainProgressBarContainer"> <progress id="progressBar" value={this.props.value} max="100" className={this.props.value===0?'hidden':''}></progress> </div> ); } } ProgressBar.propTypes = { ...
src/views/Tutorial.js
chrisweilun/lavidioNewSite
import React from 'react'; import '../styles/video.css' import {Helmet} from 'react-helmet' //this is how state less setup const Tutorial = props => <div className='container'> <Helmet> <title>Tutorial || LaVideoSolution</title> </Helmet> <div className='row'> <div className='col s12 flow-text'> <...
admin/client/components/CreateForm.js
Ftonso/keystone
import React from 'react'; import Fields from '../fields'; import InvalidFieldType from './InvalidFieldType'; import { Alert, Button, Form, Modal } from 'elemental'; var CreateForm = React.createClass({ displayName: 'CreateForm', propTypes: { err: React.PropTypes.object, isOpen: React.PropTypes.bool, list: R...
src/components/FinalizeAuction/FinalizeAuctionInfo.js
PhyrexTsai/ens-bid-dapp
// @flow weak import React from 'react'; import Button from 'material-ui/Button'; import Card from 'material-ui/Card'; import './FinalizeAuctionInfo.css'; export const FinalizeAuctionInfo = (props) => ( <Card raised> <div className='FinalizeAuctionInfo'> <h3>ENS: {props.searchName}.eth</h3> <p> ...
ajax/libs/x-editable/1.5.0/bootstrap-editable/js/bootstrap-editable.js
ComputerWolf/cdnjs
/*! X-editable - v1.5.0 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to form ...
test/ModalSpec.js
Cellule/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Modal from '../src/Modal'; describe('Modal', function () { it('Should render the modal content', function() { let noOp = function () {}; let instance = ReactTestUtils.renderIntoDocument( <Modal onRequestHide={noOp...
front-end/app/containers/category/display_category_container.js
akumbhani66/cantaloupe
import { connect } from 'react-redux'; import DisplayCategory from '../../components/category/Display_category_component'; import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import * as Actions from '../../actions/actions'; const mapStateToProps = (state) => { return { state: stat...
app/javascript/mastodon/features/follow_requests/index.js
SerCom-KC/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/__tests__/InfoBar-test.js
runnables/react-redux-universal-hot-example
import React from 'react'; import ReactDOM from 'react-dom'; import {renderIntoDocument} from 'react-addons-test-utils'; import { expect} from 'chai'; import { InfoBar } from 'components'; import { Provider } from 'react-redux'; import { browserHistory } from 'react-router'; import createStore from 'redux/create'; impo...
ajax/libs/F2/1.3.2/f2.js
masklinn/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...
app/javascript/mastodon/features/explore/links.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Story from './components/story'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { fetchTrendingLinks } from 'mastodon/act...
src/MenuItem.js
chilts/react-bootstrap
import React from 'react'; import classnames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; export default class MenuItem extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } hand...
examples/official-storybook/stories/addon-backgrounds.stories.js
kadirahq/react-storybook
import React from 'react'; import BaseButton from '../components/BaseButton'; export default { title: 'Addons/Backgrounds', parameters: { backgrounds: { default: 'dark', values: [ { name: 'white', value: '#ffffff' }, { name: 'light', value: '#eeeeee' }, { name: 'gray', valu...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-pharmacy.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalPharmacy = (props) => ( <SvgIcon {...props}> <path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/> </SvgIcon> ); MapsLocalPharmacy.displayName = 'MapsLocalPharmacy'; Maps...
ajax/libs/material-ui/5.0.0-alpha.11/CircularProgress/CircularProgress.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab...
src/containers/Articles/ArticlesPage/ArticlesPage.js
ReactPoland/react-community
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import permission from 'utils/privileges'; // COMPONENTS import ArticlesList from './ArticlesList'; // LAYOUT import Grid from 'react-bootstrap/lib/Grid'; impor...
site/js/jquery-1.9.1.min.js
fosfozol/w2ui
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
examples/counter/index.js
quamen/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
06-testing-redux/src/App.js
dtanzer/react-basic-examples
import React, { Component } from 'react'; import { GreeterContainer } from './Greeter' class App extends Component { render() { return ( <GreeterContainer /> ); } } export default App;
docs/src/app/components/pages/components/Drawer/ExampleUndocked.js
barakmitz/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerUndockedExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } han...
src/components/common/svg-icons/av/games.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvGames = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); AvGames = pure(AvGames); AvGames.dis...
src/pages/merci.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Merci' /> )
src/main.js
markwang2764/react-ant
import 'antd/lib/style/index.less'; import 'antd/lib/style/components.less'; import './style.less'; import React from 'react'; import ReactDOM from 'react-dom'; import Routes from './routes/index'; ReactDOM.render(<Routes />, document.getElementById('app'));
src/main.js
hrnik/roofbar
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' import './arrayinlcudespf.js' // ======================================================== // Store Instantiation // =============================================...
src/screens/tab-based/post-list.js
Clip-sub/CSClient-RN
/** * @flow */ 'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, FlatList, StyleSheet } from 'react-native'; // import { getPosts, clearPosts } from '../actions/actions-posts'; //import { PostMenuBar } from './post-menu-bar'; //import { ItemPostCard } f...
docs/src/CodeExample.js
bvasko/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js
dsopel94/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
components/mainLayout.js
batusai513/next-saga-boilerplate
import React from 'react'; import P from 'prop-types'; import Header from './header'; export default function MainLayout({ children }) { return ( <div> <Header /> {children} </div> ); } MainLayout.propTypes = { children: P.node.isRequired, };
pages/getting-started/page-layout-examples/blog.js
Kagami/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import AppTheme from 'docs/src/modules/components/AppTheme'; import Blog from 'docs/src/pages/getting-started/page-layout-examples/blog/Blog'; function Page() { return ( <AppTheme title="Blog page layout ...
techCurriculum/ui/solutions/4.3/src/App.js
tadas412/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 in writ...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
stefanosKarantin/stefanos-react-prj
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 = ...
ajax/libs/rxjs/2.1.1/rx.js
idleberg/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...
public/components/settings/api/api-is-down.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for the adding an API entry form. * * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Licens...
geonode/contrib/monitoring/frontend/src/pages/software-performance/index.js
timlinux/geonode
import React from 'react'; import Header from '../../components/organisms/header'; import GeonodeAnalytics from '../../components/organisms/geonode-analytics'; import GeonodeLayersAnalytics from '../../components/organisms/geonode-layers-analytics'; import WSAnalytics from '../../components/organisms/ws-analytics'; imp...
src/common/NotFound.js
FredBoat/fredboat.com
import React, { Component } from 'react'; import "./css/NotFound.css"; const messages = [ "Lost at sea...", "Wait. Where is the water?", "Where'd the music go?" ]; function chosenMessage(message) { return messages[Math.floor(Math.random() * messages.length)] } class NotFound extends Component { render() { ...
src/destinations/Bootstrap.js
RoyalIcing/gateau
import R from 'ramda' import React from 'react' import seeds, { Seed } from 'react-seeds' import rgba from 'react-sow/rgba' import * as assets from './assets' import * as Vanilla from './Vanilla' import { renderTreeUsing } from './render' const buttonTagsToClass = R.uncurryN(3, (resolveContent, contentIsTrue) => R.co...
src/Input/Input.spec.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import { assert } from 'chai'; import { spy } from 'sinon'; import { createShallow, createMount, getClasses } from '../test-utils'; import Textarea from './Textarea'; import Input, { hasValue, isDirty } from './Input'; describe('<Input />', () => { let shallow; let classes...
HTML/前端/my-react-app-spring-boot-yao/src/hello.js
xiaoxiaoyao/PythonApplication1
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') );
src/views/Comment/CommentGroup.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, } from '../../lib' /** * Comments can be grouped. */ function CommentGroup(props) { const...
ajax/libs/react-bootstrap/0.27.1/react-bootstrap.min.js
hanbyul-here/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react"),require("react-dom")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(...
wrappers/toml.js
umbchackers/innovategood
import React from 'react' import toml from 'toml-js' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
ajax/libs/vue/2.2.2/vue.runtime.esm.js
him2him2/cdnjs
/*! * Vue.js v2.2.2 * (c) 2014-2017 Evan You * Released under the MIT License. */ /* */ /** * Convert a value to a string that is actually rendered. */ function _toString (val) { return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val) } /** * Conver...
ajax/libs/react-highcharts/7.0.0/index.src.js
menuka94/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["index"] = factory(r...
frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import FieldSet from 'Components/FieldSet'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalBody from 'Components/Modal/ModalBo...
src/views/NavBar/index.js
aplee29/online-notebook-app-client
import React, { Component } from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import PropTypes from 'prop-types'; export default class NavBar extends Component { static contextTypes = { router: PropTypes.object } handleLogout = () => this.props.logout(this.context.router); render() {...
app/javascript/mastodon/features/ui/util/reduced_motion.js
PlantsNetwork/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
ajax/libs/thorax/2.0.0rc3/thorax.min.js
NBZ4live/cdnjs
(function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ...
src/routes.js
Sekhmet/busy
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Wrapper from './wrapper'; import Settings from './app/AppSettings'; import Page from './feed/Page'; import User from './user/User'; import Profile from './user/UserProfile'; import Followers from './user/UserFollowers'; import Following...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-router/4.1.1/es/Prompt.js
Akkuma/npm-cache-benchmark
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...