path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/elements/Segment/Segment.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useKeyOrValueAndKey, useTextAlignProp, useValueAndKey, } from '../../lib' import SegmentGroup from './Seg...
imports/plugins/included/product-detail-simple/client/components/productField.js
anthonybrown/reaction
import React, { Component } from "react"; import PropTypes from "prop-types"; import classnames from "classnames"; import { Components, registerComponent } from "@reactioncommerce/reaction-components"; import { Reaction } from "client/api"; import { highlightInput } from "/imports/plugins/core/ui/client/helpers/animati...
src/modules/Components/User/Views/Profile.js
rtellez700/MESA_Connect_2.0
import React, { Component } from 'react'; class Profile extends Component { render() { return ( <div> Hello from Profile.js! inside User --> Views </div> ); } } module.exports = Profile;
src/server.js
yomolify/cc-server
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; im...
pkg/interface/link/src/index.js
jfranklin9000/urbit
import React from 'react'; import ReactDOM from 'react-dom'; import { Root } from '/components/root'; import { api } from '/api'; import { store } from '/store'; import { subscription } from "/subscription"; api.setAuthTokens({ ship: window.ship }); subscription.start(); ReactDOM.render(( <Root /> ), document.qu...
client/components/__tests__/Status.spec.js
bjoberg/social-pulse
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Status } from '../Status/Status'; test('renders status properly', t => { const wrapper = shallow( <Status /> ); t.is(wrapper.find('p').length, 1); t.is(wrapper.find('h1').length, 1); });
ajax/libs/foundation/4.1.2/js/vendor/jquery.min.js
mwillerich/cdnjs
(function(e,t){function n(e){var t=e.length,n=lt.type(e);return lt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=wt[e]={};return lt.each(e.match(ut)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(lt.acceptData(e)){var o,a,s=lt.expan...
src/views/components/about-carousel/about-carousel.js
Metaburn/doocrate
import React from 'react'; import together from './together.png'; import './about-carousel.css'; import i18n from 'src/i18n'; class AboutCarousel extends React.Component { render() { let humans = [ { name_he: 'גל ברכה', name_en: 'Gal Bracha', }, { name_he: 'מתן זוהר', ...
src/svg-icons/editor/insert-emoticon.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertEmoticon = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm...
src/components/FormButton/index.js
ortonomy/flingapp-frontend
// react import React, { Component } from 'react'; //styles import styles from './FormButton.module.css'; class FormButton extends Component { constructor (props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick (e) { this.props.submit(); } render () { const...
custom-webpack2/src/js/components/Header.js
alexisbellido/node-tests
import React from 'react'; // stateless functional component const Header = (props) => { // using functional component with event function handleClick (e) { e.preventDefault(); console.log('clicked'); } return ( <header className="top"> <h1>Favorite color: { props.color }</...
src/internal/SwitchBase.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { spy } from 'sinon'; import { createShallow, createMount, getClasses } from '../test-utils'; import createSwitch from './SwitchBase'; import Icon from '../Icon'; function assertIsChecked(wrapper) { const iconButton = wrapper.find('span').at(...
client/src/components/Stats/StatList.js
patteri/slave-cardgame
import React from 'react'; import PropTypes from 'prop-types'; import { Table, Button } from 'react-bootstrap'; import formatStat from './statsHelper'; import './style.css'; const StatList = ({ header, stats, isPercent, showDetails, onShowPlayerStats }) => ( <div className="StatList"> <h4>{header}</h4> <Tabl...
src/client.js
OSDLabs/swd
/** * 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 'isomorphic-fetch'; import React from 'react'; i...
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...
app/components/Index.js
hackerrdave/react-router-and-lazy-server-render
import React from 'react'; export default class Index extends React.Component { render() { return ( <div> <h2>Index</h2> </div> ); } }
src/client/auth/requireauth.react.js
sljuka/portfolio-este
import Component from '../components/component.react'; import React from 'react'; import User from '../users/user'; export default function requireAuth(BaseComponent) { return class RequireAuth extends Component { static displayName = `${BaseComponent.name}RequireAuth`; static willTransitionTo(transition)...
src/docs/TocHeader.js
FredBoat/fredboat.com
import React, { Component } from 'react'; import {Link} from 'react-router-dom' import "./css/TocHeader.css"; class TocHeader extends Component { render() { if (this.props.activePage === this.props.page) { document.title = this.props.name; if (this.props.name === "Quickstart") docu...
file_manager/static/file_manager/js/src/Info.js
avignat/OCP
import React from 'react'; import { formatDate } from 'utils/format'; import { getIcon } from 'utils/icons'; import PrettyNumber from 'react-pretty-number'; export default class Info extends React.Component { constructor() { super(); this.state = { fileIcon: '/static/img/icons/files/unk...
src/VideoSlider.js
ivmarcos/react-hot-boilerplate
import React, { Component } from 'react'; const styles = { video: { height: 600 } } class VideoSlider extends Component { componentDidMount() { this.swiper = new Swiper('.swiper-container', { pagination: '.swiper-pagination', paginationClickable: true, nextBu...
js/jqwidgets/demos/react/app/knob/infiniteknob/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKnob from '../../../jqwidgets-react/react_jqxknob.js'; class App extends React.Component { componentDidMount() { let lastValue; let newValue = 0; let min = 0; let max = 100; this.refs.myKnob.on('change'...
test/NavDropdownSpec.js
pandoraui/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import NavDropdown from '../src/NavDropdown'; import MenuItem from '../src/MenuItem'; describe('NavDropdown', function() { it('Should render li when in nav', function () { const instance = ReactTestUtils.renderIntoDocument( ...
src/_app/js/entry.js
hhumphrey84/WestHerts-Client
import React, { Component } from 'react'; import {render} from 'react-dom'; import Hello from './components/Hello'; class App extends Component { render() { return ( <Hello /> ) } } render(<App />, document.getElementById('root'));
__tests__/components/Search-test.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Search from '../../src/js/components/Search'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Search', () => { ...
ajax/libs/forerunnerdb/1.3.780/fdb-core+views.min.js
dc-js/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...
src/HoursForm.js
jlbooker/shop-hours-demo
import React, { Component } from 'react'; // Component to wrap the hours select element (drop down) // TODO: Use a text box with autocomplete instead class HoursSelect extends Component { render(){ // Loop over the hours in a day and generate a key/value pair with // hour number (24hr format) as t...
concrete/js/jquery.js
MichaelMaar/concrete5
/*! 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...
ajax/libs/radium/0.13.0/radium.js
sreym/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["Radium"] = factory(...
src/shared/components/form/formTextArea/formTextArea.js
hollomancer/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './formTextArea.css'; class FormTextArea extends Component { state = { value: '' }; handleChange = (event) => { this.setState({ value: event.target.value }, () => { if (this.props.onChange) { t...
src/components/TagForm/TagForm.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; // import { defineMessages, FormattedMessage } from 'react-intl'; import { defineMessages, FormattedMessage } from 'react-intl'; import Box from '../Box'; import FormField from '../FormField'; import Button from '../Button'; import Label from '../Label'; im...
packages/plugins/i18n/admin/src/components/ModalEdit/BaseForm.js
wistityhq/strapi
import React from 'react'; import { useIntl } from 'react-intl'; import PropTypes from 'prop-types'; import { useFormikContext } from 'formik'; import { Grid, GridItem } from '@strapi/design-system/Grid'; import { TextInput } from '@strapi/design-system/TextInput'; import { Select, Option } from '@strapi/design-system/...
ajax/libs/yui/3.7.3/event-custom-base/event-custom-base-coverage.js
WireShout/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
src/public/js/components/app/index.js
HappyZombies/RaGooey
import React from 'react' import NavBar from '../navbar' import Footer from '../footer' export default ({children}) => ( <div> <NavBar /> <div className='container'> {children} </div> <Footer /> </div> )
src/utils/domUtils.js
PeterDaveHello/react-bootstrap
import React from 'react'; let canUseDom = !!( typeof window !== 'undefined' && window.document && window.document.createElement ); /** * Get elements owner document * * @param {ReactComponent|HTMLElement} componentOrElement * @returns {HTMLElement} */ function ownerDocument(componentOrElement) { let e...
src/svg-icons/hardware/speaker-group.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSpeakerGroup = (props) => ( <SvgIcon {...props}> <path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2...
src/bundles/CaseStudy/components/View/View.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import isEmpty from 'lodash/isEmpty'; import { newline, validURL } from '../../../../helpers'; import view from './View.css' class View extends React.Component { state = { showConfirm: false } toggleConfirm(sh...
src/app/router.js
dyygtfx/react-redux-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import { Route } from 'react-router-dom'; import { ConnectedRouter } from 'connected-react-router'; import map from 'lodash/map'; import routes from './routes'; const propTypes = { history: PropTypes.object.isRequired, }; const Router = ({ history }) =>...
files/react/0.12.0-rc1/react.js
gswalden/jsdelivr
/** * React v0.12.0-rc1 */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){v...
js/actions/BlogActions.js
Karaja-Naji/frontEndMusic
/* * Actions change things in your application * Since this boilerplate uses a uni-directional data flow, specifically redux, * we have these actions which are the only way your application interacts with * your appliction state. This guarantees that your state is up to date and nobody * messes it up weirdly somew...
ajax/libs/flocks.js/1.0.1/flocks.min.js
lobbin/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type...
ajax/libs/angular.js/0.10.1/angular-scenario.js
bryantrobbins/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. ...
website/src/react-native/404.js
liangmingjie/react-native
/** * 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. */ v...
frontend/src/components/eois/details/overview/cfeiOverview.js
unicef/un-partner-portal
import React from 'react'; import { pluck, assoc } from 'ramda'; import Grid from 'material-ui/Grid'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import GridColumn from '../../../common/grid/gridColumn'; import Timeline from './timeline'; import Pro...
node_modules/react-router/es6/IndexRedirect.js
HasanSa/hackathon
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
test/components/NotificationBadge_spec.js
georgeOsdDev/react-notification-badge
'use strict'; require("@babel/polyfill"); import React from 'react'; import ReactDom from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import chai from 'chai'; let expect = chai.expect; import NotificationBadge from '../../src/components/NotificationBadge'; import Effect from '../../src/components/Ef...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/uploadlist.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' import TransferList from './transferlist.js' import { List } from 'immutable' const UploadList = ({uploads, onUploadClick}) => ( <div className="uploads"> <h3> Uploads </h3> <TransferList transfers={uploads} onTransferClick={onUploadClick} /> </div> ) ...
docs/src/sections/ScrollSection.js
lzcmaro/react-ratchet
import React from 'react'; import Samples from '../Samples' import ReactPlayground from '../ReactPlayground' export default function ScrollSection() { return ( <div> {/*Scroll*/} <ReactPlayground id="scroll" title="Scroll" desc='滚动加载' codeText={Samples.Scroll} /> {/*下拉...
react-router-es6-example/node_modules/react-router/es6/IndexRedirect.js
akhilaantony/React-Stylisted
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
node_modules/_antd@2.13.4@antd/es/modal/confirm.js
ligangwolai/blog
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import Icon from '../icon'; import Dialog from './Modal'; import ActionButton from './ActionButton';...
src/encoded/static/components/award.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import moment from 'moment'; import { Panel, PanelHeading, PanelBody } from '../libs/bootstrap/panel'; import DataColors from './datacolors'; import { FetchedData, Param } from './fetched'; import * as globals from './globals'; i...
docs/src/pages/demos/steppers/SwipeableTextMobileStepper.hooks.js
Kagami/material-ui
import React from 'react'; import { makeStyles, useTheme } from '@material-ui/styles'; import MobileStepper from '@material-ui/core/MobileStepper'; import Paper from '@material-ui/core/Paper'; import Typography from '@material-ui/core/Typography'; import Button from '@material-ui/core/Button'; import KeyboardArrowLeft ...
packages/material-ui-icons/src/FiveG.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 13h2v2h-5V9h7c0-1.1-.9-2-2-2h-5c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h5c1.1 0 2-.9 2-2v-4h-4v2zM3 13h5v2H3v2h5c1.1 0 2-.9 2-2v-2c0-1.1-.9-2-2-2H5V9h5V7H3v6z" /> , 'FiveG');
client/src/components/Accordion/Accordion.js
silverstripe/silverstripe-admin
import React from 'react'; const Accordion = (props) => ( <div className="accordion" role="tablist" aria-multiselectable="true" > {props.children} </div> ); export default Accordion;
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/__tests__/Label.spec.js
GoogleCloudPlatform/prometheus-engine
import React from 'react'; import { shallow } from 'enzyme'; import { Label } from '../'; describe('Label', () => { it('should render a label tag by default', () => { const wrapper = shallow(<Label />); expect(wrapper.type()).toBe('label'); }); it('should render children', () => { const wrapper = s...
packages/material-ui-icons/src/Today.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Today = props => <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z" /> </SvgIcon>; Today ...
tests/layouts/PageLayout.spec.js
wensontsai/wensonio2
import React from 'react' import PageLayout from 'layouts/PageLayout/PageLayout' import { shallow } from 'enzyme' describe('(Layout) PageLayout', () => { it('renders as a <div>', () => { shallow(<PageLayout />).should.have.tagName('div') }) it('renders a project title', () => { shallow(<PageLayout />).f...
docs/src/pages/layout/grid/SpacingGrid.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import FormLabel from '@material-ui/core/FormLabel'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import RadioGroup from '@material-ui/co...
src/containers/App.js
Vlsarro/vicegripper
import React, { Component } from 'react'; import Button from '../components/Button.jsx'; import GripToggle from '../components/GripToggle.jsx'; import ResistanceRange from '../components/ResistanceRange.jsx'; import ResistanceInput from '../components/ResistanceInput.jsx'; import SpringNumberSelect from "../components...
node_modules/react-bootstrap/es/FormControl.js
lucketta/got-quote-generator
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
kitsune/sumo/static/sumo/js/tests/kboxtests.js
YOTOV-LIMITED/kitsune
import {default as mochaJsdom, rerequire} from 'mocha-jsdom'; import {default as chai, expect} from 'chai'; import React from 'react'; import chaiLint from 'chai-lint'; import mochaK from './fixtures/mochaK.js'; import mochaJquery from './fixtures/mochaJquery.js'; import mochaGettext from './fixtures/mochaGettext.js';...
src-client/components/MouseMenuOverlay.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * 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 a...
src/client/components/topics/TopicView.js
jeremyjs/knowledgetree
import React from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import { topicById, curriculumsByTopicId } from '../../store/helpers'; import { setAddingCurriculumTopicId } from '../../store/actions'; import { CurriculumList } from '../../components/curriculums'; import { Breadcrumbs } from '....
modules/__tests__/Redirect-test.js
axross/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Redirect from '../Redirect' import Router from '../Router' import Route from '../Route' describe('A <Redirect>', function () { let node beforeEach(function () { node =...
src/app/core/atoms/icon/icons/plus-users.js
blowsys/reservo
import React from 'react'; const PlusUsers = (props) => <svg {...props} viewBox="0 0 15 15"><g><g transform="translate(-495.000000, -473.000000)"><g transform="translate(495.000000, 473.000000)"><rect width="1" height="15" x="7"/><path d="M15,7 L15,8 L0,8 L0,7 L15,7 L15,7 Z"/></g></g></g></svg>; export default PlusUser...
src/icons/GlyphSmallInfo.js
ipfs/webui
import React from 'react' const GlyphSmallInfo = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M53 69h-5.54V47.2H53zm0-26.53h-5.54v-5.53H53z' /> </svg> ) export default GlyphSmallInfo
__tests__/index.android.js
LinDing/two-life
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 /> ); });
ajax/libs/maple.js/1.1.0/maple-with-polyfills.min.js
extend1994/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.babel=e()}}(function(){var e,t,n;return function r(e,t,...
src/components/Header.js
CTumminaro/memory-game
import React from 'react'; const Header = (props) => { return( <header id="header"> <div className="container"> <div className="logo"> <img src="/images/peppa-pig/logo.png" alt="Peppa Pig Matching!" /> </div> <div className="attempts"> Attempts: {props.attempts} ...
packages/mui-icons-material/lib/esm/ModelTrainingOutlined.js
oliviertassinari/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M15.5 13.5c0 2-2.5 3.5-2.5 5h-2c0-1.5-2.5-3-2.5-5 0-1.93 1.57-3.5 3.5-3.5s3.5 1.57 3.5 3.5zm-2.5 6h-2V21h2v-1.5zm6-6.5c0 1.68-.59 3.21-1.58 4.42l1.42 1.42C2...
ajax/libs/ngreact/0.1.6/ngReact.js
holtkamp/cdnjs
// # ngReact // ### Use React Components inside of your Angular applications // // Composed of // - reactComponent (generic directive for delegating off to React Components) // - reactDirective (factory for creating specific directives that correspond to reactComponent directives) (function (root, factory) { if (ty...
gatsby-strapi-tutorial/cms/admin/admin/src/containers/AdminPage/index.js
strapi/strapi-examples
/* * AdminPage * * This is the first thing users see of our AdminPage, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove ...
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-regenerator/node_modules/babel-runtime/node_modules/core-js/library/modules/es6.promise.js
vivekparekh8/LearningReact
'use strict'; var LIBRARY = require('./_library') , global = require('./_global') , ctx = require('./_ctx') , classof = require('./_classof') , $export = require('./_export') , isObject = require('./_is-object') , aFunction = req...
src/javascripts/routes/index.js
bezreyhan/gem-asset-issuance-demo
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import AppContainer from '../components/app_container'; import AssetHoldingsContainer from '../components/asset_holdings/container'; import AssetHoldingsIndex from '../components/asset_holdings/index'; import AssetHoldingsShow from '...
src/Team.js
noedlm/png-site
import React, { Component } from 'react'; class Team extends Component { render() { return ( <div className="d-flex jumbotron jumbotron-fluid section" id="team"> <div className="container container-fluid"> <h1 className="display-4 spread-letters">Meet The Team</h1> <br/> ...
ajax/libs/material-ui/4.11.3/esm/Zoom/Zoom.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import * as React from 'react'; import PropTypes from 'prop-types'; import { Transition } from 'rea...
docs/src/sections/LabelSection.js
mmarcant/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function LabelSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anc...
node_modules/jquery/dist/jquery.js
joannenguyen/SCCFF
/*! * jQuery JavaScript Library v1.11.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2015-04-28T16:19Z */ (function( global, factory ) { if ...
Examples/UIExplorer/ViewExample.js
ProjectSeptemberInc/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
client/page/support/search-help.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import { ExternalLink } from 'wp-plugin-components'; function SearchHelp() { return ( <div className="searchregex-help"> <h3>{ __( 'Quick Help' ) }</h3> <p>{ __( 'Th...
src/components/contentManagement/postEditor/PostEditor.js
refinedjs/refinedjs-blog
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import moment from 'moment'; import { SingleDatePicker } from 'react-dates'; import { EditorState, ContentState, RichUtils, convertFromHTML } from 'draft-js';...
app/components/Nav/Nav.js
jmparsons/react-tyro
import React from 'react'; import css from 'react-css-modules'; import { Link } from 'react-router'; import styles from './Nav.sss'; const Nav = () => ( <div styleName="bg"> <ul styleName="nav-list"> <li><Link to="/">Home</Link></li> <li><Link to="/about">About</Link></li> <li><Link to="/contac...
app/javascript/mastodon/features/status/components/card.js
h-izumi/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.') .map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part) ...
packages/react-devtools-shared/src/devtools/views/Components/EditableValue.js
cpojer/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import * as React from 'react'; import {Fragment} from 'react'; import styles from './EditableValue.css'; import {useE...
src/components/WhatBtn/WhatBtn.js
denichodev/personal-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './WhatBtn.css'; class WhatBtn extends Component { handleClick = flipContainerId => { const flipContainer = document.getElementById(this.props.flipContainerId); if (flipContainer) { flipContainer.classList.toggle('fl...
admin/client/components/Navigation/SecondaryNavigation.js
tony2cssc/keystone
import React from 'react'; import { Container } from 'elemental'; var SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropTypes.string.isRequired, path: React.PropTypes.string, tit...
project-setup/libs/react-router/src/index.js
kasiriveni/practice
import React from 'react'; import {render} from 'react-dom'; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; import Hello from './components/welcome'; import {Home,About,Topics} from './components/menu'; const root =document.getElementById("root"); render( <Router> <...
packages/frontend/src/components/statusPage/NotFound/index.js
ks888/LambStatus
import React from 'react' import classnames from 'classnames' import Link from 'components/common/Link' import classes from './NotFound.scss' export default class NotFound extends React.Component { render () { return ( <div className={classnames(classes.layout)}> <h4>404 page not found</h4> ...
packages/material-ui-icons/src/SixKPlusSharp.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7.5 12.5h1V14h-1v-1.5zM21 3H3v18h18V3zm-11 7.5H7.5v1H10V15H6V9h4v1.5zm6 4.5h-1.75l-1.75-2.25V15H11V9h1.5v2.25L14.25 9H16l-2.25 3L16 15zm3-2.5h-1.5V14h-1v-1.5H15v-1h1.5V10h1v1.5H19v1z" /> , 'SixK...
src/svg-icons/image/assistant-photo.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto = pure(ImageAssistantPhoto); ImageAssistantPhoto.displayName = 'Image...
packages/mui-codemod/src/v5.0.0/jss-to-styled.test/eleventh.expected.js
oliviertassinari/material-ui
import React from 'react'; import { styled } from '@mui/material/styles'; import SomeNamespace from 'SomeNamespace'; const PREFIX = 'eleventh'; const classes = { header: `${PREFIX}-header`, img: `${PREFIX}-img` }; const StyledSomeNamespaceSomeComponent = styled(SomeNamespace.SomeComponent)(( { theme } ) =...
app/components/common/ComponentConnectorFactory.js
ariel-zplinux/data-extractor-mern
import React from 'react'; import AppDispatcher from '../../dispatcher/AppDispatcher'; export class ComponentConnectorFactory { connect(options) { const {component: Component, store: Store, name: name} = options; const storeInstance = new Store(); AppDispatcher.register(storeInsta...
thinking-in-react/step-2-part-1.js
hackerrdave/nodeschool
import React from 'react'; export const FilterableProductTable = React.createClass({ render() { return ( <div></div> ); } });
app/javascript/mastodon/features/report/components/status_check_box.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
src/routes.js
matt1991/job
/** * 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 { IndexRoute, Route } fr...
actor-apps/app-web/src/app/components/dialog/messages/Text.react.js
yangchaogit/actor-platform
import _ from 'lodash'; import React from 'react'; import memoize from 'memoizee'; import emojify from 'emojify.js'; import emojiCharacters from 'emoji-named-characters'; import Markdown from '../../../utils/Markdown'; const inversedEmojiCharacters = _.invert(_.mapValues(emojiCharacters, (e) => e.character)); emoj...
src/client.js
karlbright/hotplate
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router } from 'react-router' import routes from './routes' const root = document.getElementById('root') render(<Router history={browserHistory}>{routes}</Router>, root)
src/svg-icons/notification/sync-problem.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
app/components/Widgets/GroceryWidget.js
rjzheng/kzhomepanel
import React, { Component } from 'react'; class GroceryWidget extends Component { render () { return ( <div className="widget"> </div> ) }; }; export default GroceryWidget;
ajax/libs/react-datepicker/0.28.1/react-datepicker.js
nolsherry/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("moment"), require("react"), require("react-onclickoutside"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["moment", "rea...
src/components/Nav.js
robabby/robabby
import React from 'react' import Link from 'gatsby-link' import get from 'lodash/get' import '../assets/scss/components/Nav.scss' // #6ea8cc class Nav extends React.Component { render() { return ( <nav className="ra-nav"> <li> <Link to={'/'} exact act...