path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
client/apps/plugin-status/log.js
Automattic/woocommerce-services
/** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import ClipboardButton from 'components/forms/clipboard-button'; import FormFieldset from 'comp...
src/parser/druid/restoration/modules/items/azeritetraits/EarlyHarvest.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import { formatPercentage, formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; import SpellUsable from 'parser/shared/modules/SpellUsable'; // Testing log w/ ...
packages/gatsby-remark-embed-snippet/src/__tests__/index.js
danielfarrell/gatsby
jest.mock(`fs`, () => { return { existsSync: jest.fn(), readFileSync: jest.fn(), } }) const fs = require(`fs`) const Remark = require(`remark`) const plugin = require(`../index`) const remark = new Remark() describe(`gatsby-remark-embed-snippet`, () => { beforeEach(() => { fs.existsSync.mockReset()...
src/results/Result.react.js
codeforamerica/citybook
import React, { Component } from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import Button from 'react-bootstrap/lib/Button'; import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'; import Glyphicon from 'react-bootstr...
src/components/RefitButton/index.js
prjctrft/mantenuto
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CircleButton from '../CircleButton'; import SquareButton from '../SquareButton'; class RefitButton extends Component { constructor(props) { super(props); this.state = { width: '0' } this.updateWindowWidth = th...
app/components/InvestorDetails/index.js
medevelopment/UMA
import React, { Component } from 'react'; import axios from 'axios'; import { IsNumber } from '../../functions/Validations'; import * as toastify from '../../functions/Toastify'; import { isoToShortDate, fullDateToIsoDate, validateEmail } from '../../functions.js'; import styled from 'styled-components'; import { Spe...
node_modules/react-icons/fa/dot-circle-o.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaDotCircleO = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m25.9 20q0 2.4-1.7 4t-4.1 1.7-4-1.7-1.7-4 1.7-4 4-1.7 4.1 1.7 1.7 4z m-5.8-12.1q-3.3 0-6.1 1.6t-4.4 4.4-1.6 6.1 1.6 6.1 4.4 4.4 6.1 1.6 6.1-1.6 4.5-4.4 1.6-6.1-1.6...
node_modules/react-bootstrap/es/Collapse.js
yeshdev1/Everydays-project
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 ...
src/pages/moduleHomePage/ModuleHomePage.js
HeliumLau/Hoop-react
import React from 'react'; import PropTypes from 'prop-types'; import './ModuleHomePage.less'; import { Link } from 'react-router'; export default class ModuleHomePage extends React.Component { constructor(props, context) { super(props); this.back = this.back.bind(this); this.search = th...
packages/editor/src/components/Icons/ListOl.js
boldr/boldr
import React from 'react'; import Icon from './Icon'; const ListOl = props => ( <Icon viewBox="0 0 512 512" {...props}> <path d="M500 124H140c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h360c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm12 148v-32c0-6.627-5.373-12-12-12H140c-6.627 0-12 5.373-12 12v32c0 ...
app/javascript/mastodon/features/compose/components/text_icon_button.js
WitchesTown/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
files/yasgui/1.0.18/yasgui.bundled.min.js
khorep/jsdelivr
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
app/containers/TrackPreview/index.js
sedubois/belong
import React from 'react'; import Relay from 'react-relay'; import NavLink from 'components/NavLink'; import styles from './styles.css'; import previewCardStyles from 'components/PreviewCard/styles.css'; class Track extends React.Component { // eslint-disable-line react/prefer-stateless-function static propTypes =...
src/index.js
jcavanagh/callcongress
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); ReactDOM.render( <App />, document.getElementById('root') );
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...
projects/react/recipe-box/src/app.js
FarahmandM/FreeCodeCamp
/* * @author: Farahmand Moslemi */ import React from 'react'; import ReactDOM from 'react-dom'; class Header extends React.Component { render() { return <h1>Recipe Box - FreeCodeCamp</h1>; } } class Footer extends React.Component { render() { return ( <div id="footer" className="cf"> <p>&...
packages/mui-icons-material/lib/LocalAtmTwoTone.js
oliviertassinari/material-ui
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
brandonlilly/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
src/components/List.js
v8187/regex-generator
import React, { Component } from 'react'; export class List extends Component { render() { return (<div className={`list-wrapper`}> <h1>Common Regular Expressions</h1> <p><b>Disclaimer: </b> These examples are given for learning purposes only and may fail for few use-cases.</p> ...
modules/__tests__/matchRoutes-test.js
mjw56/react-router
/*eslint-env mocha */ import React from 'react' import Route from '../Route' import assert from 'assert' import expect from 'expect' import { createLocation } from 'history' import { createRoutes } from '../RouteUtils' import matchRoutes from '../matchRoutes' describe('matchRoutes', function () { var routes, RootRo...
Samples/ContinuousDeploymentWebsite/src/app/Fake_WebSite/Scripts/jquery-1.4.1-vsdoc.js
warnergodfrey/FAKE
/* * This file has been commented to support Visual Studio Intellisense. * You should not use this file at runtime inside the browser--it is only * intended to be used only for design-time IntelliSense. Please use the * standard jQuery library for all production use. * * Comment version: 1.4.1a */ /*! * jQuer...
examples/counter/src/counter/view.js
HansDP/redux-container-state
import React from 'react' import { view } from 'redux-container-state' const countStyle = { fontSize: '20px', fontFamily: 'monospace', display: 'inline-block', width: '50px', textAlign: 'center' } export default view(({ model, localDispatch }) => ( <div> <button onClick={() => localDispatch({ type: 'D...
src/components/OrgCard/stories.js
envisioning/tdb-storybook
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import OrgCard from './'; import { getCloudinaryPath, getCardUrl} from '../../utils/cloudinary_url' storiesOf('Organization Card', module) .add('default', () => ( <OrgCard style={{width: 300}} _id={'abc'} type={'g...
Libraries/Inspector/Inspector.js
billhello/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. * * @provides...
src/components/TMListView.js
tiagofumo/renaSMS
import React, { Component } from 'react'; import { View, ListView, RecyclerViewBackedScrollView } from 'react-native'; class TMListView extends Component { constructor({ DSParams }) { super(); this.ds = new ListView.DataSource(DSParams || { rowHasChanged: (r1, r2) => r1 !== r2 }); } _ren...
Samples/Core.RibbonCommands/Core.RibbonCommandsWeb/Scripts/jquery-1.9.1.min.js
afsandeberg/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
Libraries/Utilities/throwOnWrongReactAPI.js
CodeLinkIO/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. * * @provides...
Realization/frontend/czechidm-core/src/content/identity/AuditLogins.js
bcvsolutions/CzechIdMng
import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import * as Basic from '../../components/basic'; import AuditIdentityLoginTable from '../audit/identity/AuditIdentityLoginTable'; import { IdentityManager } from '../../redux/data'; const identityManager = new Identity...
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleSkyscraper.js
shengnian/shengnian-ui-react
import React from 'react' import { Advertisement } from 'shengnian-ui-react' const AdvertisementExampleSkyscraper = () => ( <Advertisement unit='skyscraper' test='Skyscraper' /> ) export default AdvertisementExampleSkyscraper
src/workshops/authoring/index.js
GrayTurtle/rocket-workshop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import update from 'immutability-helper'; import uid from 'uid'; import { convertToRaw, EditorState, convertFromRaw } from 'draft-js'; import { connect } from 'react-redux'; import { firebaseConnect, isEmpty } from 'react-redux-firebase'; im...
node_modules/react/lib/ReactMarkupChecksum.js
joemccann/top-10-github-repos-by-language
/** * Copyright 2013-2014, 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. * * @providesModule ...
tests/layouts/CoreLayout.spec.js
daveham/ilgmrdx
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import CoreLayout from 'layouts/CoreLayout'; function shallowRender (component) { const renderer = TestUtils.createRenderer(); renderer.render(component); return renderer.getRenderOutput(); } function shallowRenderWithProps (props = {}...
frontend/src/index.js
dimriou/rupture
import React from 'react' import ReactDOM from 'react-dom' import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import Layout from './pages/Layout'; import NetworkOverview from './pages/NetworkOverview'; import AttackConfig from './pages/AttackConfig'; import AttackInspection from './pages/AttackI...
packages/veritone-react-common/src/components/DiscoverySideBar/header/Header.js
veritone/veritone-sdk
import React from 'react'; import { arrayOf, string, element, func, bool, shape, any } from 'prop-types'; import { withStyles } from '@material-ui/styles'; import MultipleTabHeader from './MuitipleTabHeader'; import SingleTabHeader from './SingleTabHeader'; import styles from './styles'; class DiscoverySidebarHeader e...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
joonamkim/joonamkim.github.io
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/common/Loader.js
zebras-filming-videos/streamr-web
import React from 'react' export default () => ( <div className='loader' /> )
node_modules/react-icons/lib/io/ios-skipforward-outline.js
bengimbel/Solstice-React-Contacts-Project
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
app/packs/src/admin/generic/UploadModal.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Dropzone from 'react-dropzone'; import { Modal } from 'react-bootstrap'; export default class UploadModal extends Component { constructor(props) { super(props); this.formRef = React.createRef(); this.handleUploadTemplate...
stories/datetimelocalformgroup.stories.js
JimBarrows/Bootstrap-React-Components
import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import React from 'react' import DateTimeLocalFormGroup from '../src/formgroups/DateTimeLocalFormGroup' storiesOf('Form Groups/Date Time Local', module) .addDecorator((story) => <div className="container">{<form>{story()}</f...
src/components/EditProfile.js
partneran/partneran
import React, { Component } from 'react'; import Footer from './Footer/Footer' import { Editor } from 'react-draft-wysiwyg'; import 'react-draft-wysiwyg/dist/react-draft-wysiwyg.css'; import draftToHtml from 'draftjs-to-html'; import Loading from './Lib/Loading'; import { assign } from 'lodash' // import { isLoggedIn }...
src/svg-icons/action/announcement.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAnnouncement = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/> </SvgIcon> ); ActionAnnouncement = pu...
src/icons/MergeTypeIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class MergeTypeIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M34 40.83L36.83 38 30 31.17 27.17 34 34 40.83zM15 16h7v11.17L11.17 38 14 40.83l12-12V16h7l-9-9-9 9z"/></...
src/app/js/StatsJsonPopup.js
skratchdot/colorify
import React, { Component } from 'react'; import { Button, Modal } from 'react-bootstrap'; // Our custom component is managing whether the Modal is visible class StatsJsonPopup extends Component { constructor(props) { super(props); this.state = { show: false, }; } render() { const close = (...
ajax/libs/angular-google-maps/1.0.3/angular-google-maps.js
jieter/cdnjs
/* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (function() { _.intersectionObjects = function(array1, array2, comparison) { var res, _this = this; if (comparison == null) { compariso...
src/components/Header/index.js
azoff/wedding
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import styles from './index.module.scss' const Header = ({ links, logo, hashtag }) => <header className={styles.header}> <HeaderLink {...links[0]} /> <HeaderLink {...links[1]} /> <HeaderLogo logo={logo} hashtag={h...
ajax/libs/rxjs/2.2.7/rx.lite.compat.js
tonytomov/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
ajax/libs/reactive-elements/0.6.8/reactive-elements.min.js
BenjaminVanRyseghem/cdnjs
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","react-dom"],t);else{var r="object"==typeof exports?t(require("react"),require("react-dom")):t(e.react,e["react-dom"]);for(var o in r)...
ajax/libs/yui/3.10.2/datatable-body/datatable-body-coverage.js
coupang/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-body/datatable-body.js']) { __coverage__['build/datatable-body/datatable-body.js'] = {"path":"build/datatable-body/datatable-body.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"...
src/svg-icons/action/three-d-rotation.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThreeDRotation = (props) => ( <SvgIcon {...props}> <path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-....
__tests__/tests/components/StateBadge.js
dyesseyumba/git-point
import React from 'react'; import { shallow } from 'enzyme'; import { closed as closedIssue, open as openIssue } from 'testData/api/issue'; import { closed as closedPr, open as openPr, merged as mergedPr, } from 'testData/api/pull-request'; import { colors } from 'config'; import { StateBadge } from 'components...
app/App.js
superhuahua/xunfengES
import React from 'react'; import { Layout, Menu, Icon, notification } from 'antd'; const { Content, Header, Footer } = Layout; import { Link } from 'react-router'; import axios from 'axios'; import UploadPlugins from './components/UploadPlugins'; class App extends React.Component{ handleClick = (e) => { ...
src/views/clause/ClausePanel.js
bostontrader/senmaker
// @flow import React from 'react' import ClauseTable from './ClauseTable' import ClauseAEForm from './addedit/ClauseAEForm' import ClauseActions from '../../data/clause/ClauseActions' /* The ClausePanel is responsible for displaying everything about our list of clause. Such the table of Clause, and the add or ed...
app/src/js/component/MainViewHeader.js
enoa7/chart-account
import React from 'react'; export default class MainViewHeader extends React.Component { constructor(props) { super(props); } _handleClick(e) { e.preventDefault(); this.props.isModal = true; } render() { return ( <header className="view-header"> <div className="view-header-title"><h2 className="b...
ajax/libs/antd/2.0.0-beta.13/antd.min.js
wout/cdnjs
/*! * antd v2.0.0-beta.13 * * Copyright 2015-present, Alipay, Inc. * All rights reserved. */ !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?expor...
examples/counter/webpack.config.js
drewschrauf/redux
var path = require('path'); var webpack = require('webpack'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'webpack-dev-server/client?http://localhost:3000', 'webpack/hot/only-dev-server', './index' ], output: { path: path.join(__dirname, 'dist'), filename: 'bundle.j...
node_modules/react-icons/fa/map-marker.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaMapMarker = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m25.6 14.3q0-2.4-1.6-4.1t-4.1-1.6-4 1.6-1.7 4.1 1.7 4 4 1.7 4.1-1.7 1.6-4z m5.8 0q0 2.4-0.8 4l-8.1 17.3q-0.4 0.7-1.1 1.1t-1.5 0.4-1.5-0.4-1-1.1l-8.2-17.3q-0.7-1.6-0...
src/Root.js
bitmoremedia/mygi-app
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from './configureStore'; import App from './components/App'; class RootComponent extends Component { constructor() { super(); this.state = { store: configureStore(), }; } render() { ...
src/PhotoLayoutEditor/Container/Side/ToggleSideButton/index.js
RedgooseDev/react-photo-layout-editor
import React, { Component } from 'react'; import classNames from 'classnames'; class ToggleSideButton extends Component { render() { const { props } = this; return ( <button type="button" onClick={props.onClick} className="ple-side__toggle"> <span> <i className={classNames( 'ple-sp-ico', ...
ajax/libs/rxjs/2.1.15/rx.modern.js
JohnKim/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
RN/moles_packer/rn37demo/reactcommonbridge2.ios.js
puyanLiu/LPYFramework
/* * @Author: liupuyan * @Date: 2016-12-23 10:27:52 * @Last Modified by: liupuyan * @Last Modified time: 2016-12-23 10:30:37 */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ReactExample extends Component { render() { ...
test/components/OpenClose.spec.js
martinkwan/HNGRY
import React from 'react'; import { shallow } from 'enzyme'; import OpenClose from '../../src/components/openClose'; describe('(Component) OpenClose', () => { let wrapper; beforeEach(() => { wrapper = shallow(<OpenClose />); }); it('renders self successfully', () => { expect(wrapper).to.have.length(1);...
src/Recruiters.js
ZacharyCalvert/ZachCalvert
import React, { Component } from 'react'; import AboutMe from './AboutMe'; import RecruiterQuestions from './RecruiterQuestions'; import RecruiterCommute from './RecruiterCommute'; import SubNav from './SubNav'; import _ from "lodash"; var subNavEntries = [ { page: 'questions', text: 'questions' }, { ...
data/modules/qualimap/bam_qc/with_human_gc/css/jquery.js
ewels/MultiQC_TestData
/*! * 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. ...
src/pages/404.js
thibmaek/thibmaek.github.io
/* eslint-disable react/prop-types */ import React from 'react'; import { Preview as PostPreview } from '../components/post/'; import random from '../lib/pickRandom'; const NotFoundPage = ({ data }) => { const { node: post } = random(data.allContentfulPost.edges); return ( <div> <header> <h1> ...
CompositeUi/src/views/component/__tests__/Button.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react'; import {shallo...
packages/material-ui-icons/src/FormatColorFillRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M16.56 8.94L8.32.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l1.68 1.68-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2...
examples/async/index.js
bigardone/redux
import 'babel-core/polyfill'; 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.getElementByI...
src/track_list_item.js
igorPhelype/Spotigorfy
import React from 'react'; const TrackListItem = (props) => { const track_name = props.track_name; const disc_number = props.disc_number; return( <li className="track-list-item"> <p> <span>Disco {disc_number}</span> | {track_name} </p> </li> ); } ...
ajax/libs/inferno/1.0.6/inferno-devtools.js
jonobr1/cdnjs
/*! * inferno-devtools v1.0.6 * (c) 2017 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('inferno'), require('inferno-component')) : typeof define === 'function' && define.amd ? define(['infern...
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-parameters/node_modules/babel-runtime/helpers/jsx.js
igMartin/Redux-Tinder
"use strict"; exports.__esModule = true; var _for = require("../core-js/symbol/for"); var _for2 = _interopRequireDefault(_for); var _symbol = require("../core-js/symbol"); var _symbol2 = _interopRequireDefault(_symbol); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; ...
client/src/components/recipeingredient/List.js
noinc/SimpleStorefront
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import { list, reset } from '../../actions/recipeingredient/list'; class List extends Component { static propTypes = { retrieved: PropTypes.object, loa...
node_modules/react-bootstrap/es/FormGroup.js
NathanBWaters/jb_club
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 ...
src/svg-icons/communication/mail-outline.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMailOutline = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/> </SvgIcon> )...
src/svg-icons/content/markunread.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMarkunread = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); ContentMarkunread ...
packages/benchmarks/src/cases/Tree.js
necolas/react-native-web
import { BenchmarkType } from '../app/Benchmark'; import React, { Component } from 'react'; class Tree extends Component { static displayName = 'Tree'; static benchmarkType = BenchmarkType.MOUNT; render() { const { breadth, components, depth, id, wrap } = this.props; const { Box } = components; le...
ajax/libs/buy-button-js/0.1.7/buybutton.js
holtkamp/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...
e2e-tests/production-runtime/src/pages/404.js
0x80/gatsby
import React from 'react' import Layout from '../components/layout' const NotFoundPage = () => ( <Layout> <h1 data-testid="404">NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
app/javascript/mastodon/components/missing_indicator.js
pso2club/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='regeneration-indicator missing-indicator'> <div> <div className='regeneration-indicator__figure' /> <div className='regeneration-indicator__label'> <FormattedMessage id=...
doc/js/jquery.min.js
dvdt/gyptis
/*! jQuery v1.11.0 | (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...
packages/material-ui-icons/src/StarHalfTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z" /> , 'StarHalfTwoTone');
ajax/libs/griddle-react/1.0.0-alpha.27/griddle.js
wout/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["Griddle"] = factory...
src/components/Claim.js
alexfigtree/CoreID
import React, { Component } from 'react'; import { Link } from 'react-router-dom' import claims from '../../data/claims.json'; import bitcoin from 'bitcoin' import crypto from 'crypto' export default class Claim extends Component { signClaim(claim){ var signedBy = "Alice" console.log(claim) var...
src/js/components/DataTable/stories/Tunable.js
HewlettPackard/grommet
import React from 'react'; import { Grommet, Box, DataTable } from 'grommet'; import { grommet } from 'grommet/themes'; // Source code for the data can be found here // https://github.com/grommet/grommet/blob/master/src/js/components/DataTable/stories/data.js import { columns, DATA } from './data'; export const Tuna...
clients/libs/slate-editor-components/src/modal/Modal.js
nossas/bonde-client
/* eslint-disable no-undef */ /* eslint-disable react/prop-types */ import React from 'react' // FIXME: Needs to handle assets files to work with SSR // eslint-disable-next-line @typescript-eslint/no-var-requires if (require('exenv').canUseDOM) require('./Modal.module.css') const Modal = ({ children }) => ( <div cl...
src/svg-icons/social/mood-bad.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialMoodBad = (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 8zm3.5-9c....
docs/_static/jquery-1.11.1.js
yhpeng-git/mxnet
/*! * jQuery JavaScript Library v1.11.1 * 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: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
Examples/UIExplorer/js/WebSocketExample.js
htc2u/react-native
/** * Copyright (c) 2013-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. * * The examp...
ajax/libs/aui/5.4.1/aui/js/aui-dependencies.js
robertmesserle/cdnjs
!function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d)...
packages/rocketchat-reactions/package.js
mrsimpson/Rocket.Chat
Package.describe({ name: 'rocketchat:reactions', version: '0.0.1', summary: '', git: '', documentation: 'README.md' }); Package.onUse(function(api) { api.use('ecmascript'); api.use('templating'); api.use('rocketchat:lib'); api.use('rocketchat:theme'); api.use('rocketchat:ui'); api.use('less'); api.addFile...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
fhchina/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
node_modules/core-js/modules/es6.promise.js
hellarafa/ART405-REPFINDER-Project2
'use strict'; var LIBRARY = require('./_library') , global = require('./_global') , ctx = require('./_ctx') , classof = require('./_classof') , $export = require('./_export') , isObject = require('./_is-object') , aFunction = req...
ajax/libs/babel-core/5.8.33/browser.min.js
x112358/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,r;return function n(e,...
DEPRECATED/node_modules/jsx-loader/node_modules/jstransform/visitors/__tests__/react-jsx-test.js
vanHeemstraDesigns/CreationsEcosystemStatic
/** * Copyright 2013-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. * * @emails react...
app/javascript/components/SweetSelect/SweetSelect.js
SumOfUs/Champaign
import React, { Component } from 'react'; import classnames from 'classnames'; import Select from 'react-select'; import 'react-select/dist/react-select.css'; import './SweetSelect.scss'; // TODO: deduplicate this (also seen in SweetInput) export default class SweetSelect extends Component { constructor(props) { ...
public/pages/StepsPage.js
dynamicform/dynamicform-react-client
/** * Created by KangYe on 2017/4/26. */ import React from 'react'; import {connect} from 'react-redux'; import {Steps, Button, message } from 'antd'; const Step = Steps.Step; import '../css/Steps.css'; import DynamicForm from '../../src/components/DynamicForm'; function mapStateToProps(store) { return { ...
src/svg-icons/action/speaker-notes.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpeakerNotes = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-...
cdap-ui/app/cdap/components/HeaderBrand/index.js
caskdata/cdap
/* * Copyright © 2016 Cask Data, Inc. * * 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 t...
components/toggleButton/toggleItem.js
Travix-International/travix-ui-kit
import classnames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { getDataAttributes } from '../_helpers'; export default function ToggleItem(props) { const { active, children, className, dataAttrs, handleClick, } = props; const classes = classnames(...
src/oscar/static/oscar/js/jquery/jquery-1.9.1.min.js
jinnykoo/wuyisj
/*! 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...
ui/src/testing/enzyme-intl-helper.js
gimite/personfinder
/** * Copyright 2014 Yahoo Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the f...