target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
tests/layouts/CoreLayout.spec.js
Stas-Buzunko/cyber-school
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
src/components/dumb/LoadingIcon/LoadingIcon.js
arfianadam/react-swapi
import React from 'react' import styles from './LoadingIcon.scss' class LoadingIcon extends React.Component { constructor(props) { super(props) } render() { return ( <div className={ styles.LoadingIcon }> {/* Your code here */} </div> ) } } export default LoadingIcon
__tests__/components/Legend-test.js
codeswan/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react/lib/ReactTestRenderer'; import Legend from '../../src/js/components/Legend'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Legend', ...
ajax/libs/material-ui/5.0.0-alpha.35/node/ScopedCssBaseline/ScopedCssBaseline.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _objectWithoutPropertiesLoose2 = ...
app/components/Navbar/Notifications/index.js
josueorozco/parlay
import React from 'react'; import classNames from 'classnames'; import Icon from '../../Icon'; import NavDropdown from '../NavDropdown'; import NavDropdownMenu from '../NavDropdownMenu'; import NavDropdownToggle from '../NavDropdownToggle'; import NotificationsList from './NotificationsList'; import NotificationItem fr...
src/parser/mage/arcane/modules/Checklist/Module.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import BaseChecklist from 'parser/shared/modules/features/Checklist/Module'; import CastEfficiency from 'parser/shared/modules/CastEfficiency'; import Combatants from 'parser/shared/modules/Combatants'; import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/Preparation...
src/js/components/Nav/stories/Collapsable.js
HewlettPackard/grommet
import React from 'react'; import { Anchor, Box, Header, Menu, Nav, ResponsiveContext } from 'grommet'; const CollapsableNav = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Header background="dark-1" pad="medium"> <Box direction="row" align="center" gap="smal...
src/scripts/components/fontIcon/FontIcon.component.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * 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 3 of the License, or * (at ...
ajax/libs/6to5/1.14.14/browser-polyfill.js
menuka94/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
ajax/libs/rxjs/2.2.24/rx.js
wormful/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; v...
8.1.0/examples/asyncChangeValidation/dist/bundle.js
erikras/redux-form-docs
!function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var r={};n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__e...
admin/client/App/screens/Item/components/AltText.js
dvdcastro/keystone
import React from 'react'; import blacklist from 'blacklist'; import vkey from 'vkey'; var AltText = React.createClass({ propTypes: { component: React.PropTypes.string, modifiedLabel: React.PropTypes.string, modifiedValue: React.PropTypes.object, modifier: React.PropTypes.string, normalLabel: React.PropType...
src/component/App/index.js
Goblinlordx/cv-gen
import React from 'react'; import ContentLayout from 'component/ContentLayout'; import HeaderSection from 'component/HeaderSection'; import CareerSection from 'component/CareerSection'; import TechSkillSection from 'component/TechSkillSection'; import CertSection from 'component/CertSection'; const spacerStyle = { h...
js/components/segment/segmentTab.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { StatusBar } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body, Segment } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import {...
docs/src/app/DevicesIntroPage.js
mit-cml/iot-website-source
import React from 'react'; import Title from 'react-title-component'; import DeviceList from './DeviceList'; import MarkdownElement from './MarkdownElement'; import DevicesIntroText from './DevicesIntro.md'; const DevicesIntroPage = () => ( <div> <Title render={(previousTitle) => `Internet of Things - ${previous...
js/jquery-1.11.0.min.js
Deovandski/UPE_NDSU_WEBSITE
/*! 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...
src/components/RequestActiveRecord.js
y-takey/rails-dashboard
import _ from "lodash"; import React, { Component } from "react"; import StyledRow from "./StyledRow"; import formatter from "../formatter"; const typeStyle = { fg: "magenta", bold: true, align: "right" }; const durationStyle = { fg: "yellow" }; const sqlStyle = {}; const durationHeaderStyle = { fg: "yellow" }; const ...
js/src/components/Spinner/__test__/spinnerTest.js
andresin87/react-draft-wysiwyg
/* @flow */ import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import Spinner from '..'; describe('Option test suite', () => { it('should have a div when rendered', () => { expect(shallow( <Spinner /> ).node.type).to.equal('div'); }); });
ajax/libs/react-dom/16.1.1/cjs/react-dom-server.browser.development.js
sashberd/cdnjs
/** @license React v16.1.1 * react-dom-server.browser.development.js * * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; if (process.env.NODE_ENV !== "production") { (func...
docs/lib/examples/BigPlayButton.js
video-react/video-react
import React from 'react'; import { Player, BigPlayButton } from 'video-react'; export default props => { return ( <Player src="https://media.w3.org/2010/05/sintel/trailer_hd.mp4"> <BigPlayButton position="center" /> </Player> ); };
client/views/omnichannel/directory/ContextualBar.js
VoiSmart/Rocket.Chat
import React from 'react'; import { useRouteParameter } from '../../../contexts/RouterContext'; import ChatsContextualBar from './ChatsContextualBar'; import ContactContextualBar from './ContactContextualBar'; const ContextualBar = ({ contactReload, chatReload }) => { const page = useRouteParameter('page'); const b...
theme-assets/assets-backoffice/assets-reporting-resources/src/main/resources/themes/default/library/jquery-1.8.2/jquery-1.8.2.js
qalingo/qalingo-web-classic-fo-bo
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function(...
src/Col.js
tonylinyy/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
src/components/Move.js
tobice/flux-lumines
import React from 'react'; import PureComponent from './PureComponent.js'; export default class Move extends PureComponent { render() { return ( <g transform={'translate(' + this.props.x + ' ' + this.props.y + ')'}> {this.props.children} </g> ); } }
src/packages/@ncigdc/components/AddToCartButtonSingle.js
NCI-GDC/portal-ui
// @flow // Vendor import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { compose } from 'recompose'; import ShoppingCartIcon from '@ncigdc/theme/icons/ShoppingCart'; import Color from 'color'; // Custom import { toggleFilesInCart } from '@ncigdc/dux/cart'; impo...
stbackground-run/target/stbackground-run-1.0-SNAPSHOT/WEB-INF/ext/assets/jquery.js
tctxl/stbackground
/*! 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...
dist/js/vendor/jquery-1.11.3.min.js
nolisj/Boilerplate1
/*! 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...
src/svg-icons/editor/publish.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPublish = (props) => ( <SvgIcon {...props}> <path d="M5 4v2h14V4H5zm0 10h4v6h6v-6h4l-7-7-7 7z"/> </SvgIcon> ); EditorPublish = pure(EditorPublish); EditorPublish.displayName = 'EditorPublish'; EditorPub...
src/components/Blog/List.js
zhouxuanpo/Big-Demo
import React from 'react'; import BlogCard from './BlogCard'; import map from 'lodash/fp/map' import axios from 'axios'; import CircularProgress from 'material-ui/CircularProgress'; // // let blogs = [ // {index:'1',title:'Hello World',date:'2016年7月8日'}, // {index:'2',title:'React',date:'2016年7月1日'}, // {...
src/app/ui/Col/Col.js
arikanmstf/mylibrary
/** * Web Component Template By => create-module script * @version 1.0.0 * */ // @flow import React from 'react'; import type { Node } from 'react'; import type { ColProps } from './types'; import defaultStyle from './style.json'; const Col = (props: ColProps): Node => { const { style, ...other } = props; co...
src/svg-icons/maps/beenhere.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsBeenhere = (props) => ( <SvgIcon {...props}> <path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59...
bower_components/skrollr/test/jquery.js
jpdanks/cfriverfront
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
index.ios.js
MariusGarbea/Bucurestiul-Tinerilor
/** * 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 rnapp extends Component { render() { return ( <View style={styles.container}> ...
src/client/components/Home.js
Blooprint/blooprint.xyz
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div className={styles.home}> <img className={styles.logo} src='http://www.blooprint.xyz/images/trad...
pages/playgrounds.js
dabbott/react-native-express
import React from 'react' import EditorConsole from '../components/EditorConsole' import example from '../examples/files/helloWorld' export default function Playgrounds() { return <EditorConsole height={'100vh'} code={example} /> } Playgrounds.title = 'Playgrounds'
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/transfersbutton.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' const FileTransfersButton = ({unread, actions}) => { const onTransfersClick = () => actions.toggleFileTransfers() return ( <div className="transfers-button" onClick={onTransfersClick}> <i className="fa fa-bars fa-2x" /> {unread > 0 ? ( <span cl...
client/modules/App/__tests__/Components/Header.spec.js
pucksME/BetterBackPacking
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
examples/sidebar/app.js
mattydoincode/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' import data from './data' require('./app.css') const history = useBasename(createHistory)({ basename: '/sidebar' }) class Category extends React.Compo...
js/app.js
beiciye/login-flow
/** * * app.js * * This is the entry file for the application, mostly just setup and boilerplate * code * */ // Load the ServiceWorker, the Cache polyfill, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!../serviceworker.js'; import 'file?name=[name].[ext]!../serviceworker-cache-pol...
src/svg-icons/av/repeat-one.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeatOne = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z"/> </SvgIcon> ); AvRepeatOne = pure(AvRepeatOne); AvRepeatOn...
src/icons/GearA.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class GearA extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M411.1,256c0-23.9,14.8-42.8,36.9-55.8c-4-13.3-9.3-26.2-15.8-38.2c-24.9,6.5-45-3.2-62-20.2c-16.9-16.9-22.1-37.1-15.6-62...
ajax/libs/flocks.js/0.14.5/flocks.min.js
pcarrier/cdnjs
if("undefined"==typeof React)var React=require("react");!function(){"use strict";function j(a,b){"string"==typeof a?s(a,["warn","debug","error","log","info","exception","assert"])?console[a]("Flocks2 ["+a+"] "+b.toString()):console.log("Flocks2 [Unknown level] "+b.toString()):void 0===h.flocks_config?console.log("Flock...
packages/material-ui-icons/src/ShopTwoSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M3 9H1v13h18v-2H3V9zm15-4V3c0-1.1-.9-2-2-2h-4c-1.1 0-2 .9-2 2v2H5v13h18V5h-5zm-6-2h4v2h-4V3zm0 12V8l5.5 3-5.5 4z" /></React.Fragment> , 'ShopTwo...
.storybook/View.stories.js
constelation/monorepo
import React from 'react' import { storiesOf, action } from '@kadira/storybook' import View from '../packages/View' import Event_ from '../packages/Event_' // import ViewNative from '../packages/View/View.native.js' const style = { backgroundColor: 'lightgrey', border: '1px solid black' } storiesOf('View', module...
app/shared/as-polymorph/AsPolymorph.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; const AsPolymorph = React.forwardRef(({ as, children, ...props }, ref) => { return React.createElement(as, { ...props, ref }, children); }); AsPolymorph.propTypes = { as: PropTypes.elementType, children: PropTypes.node, }; AsPolymorph.defaultProps ...
src/svg-icons/notification/no-encryption.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNoEncryption = (props) => ( <SvgIcon {...props}> <path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1...
application/components/profile/Profile.js
buildreactnative/assemblies-tutorial
import Icon from 'react-native-vector-icons/Ionicons'; import NavigationBar from 'react-native-navbar'; import React, { Component } from 'react'; import { ScrollView, Text, View, Image, TouchableOpacity } from 'react-native'; import Colors from '../../styles/colors'; import BackButton from '../shared/BackButton'; impo...
src/client/components/UserLinkWidget/UserLinkWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' const UserLinkWidget = ({ id = 0, name, facebookId = 0, googleId = 0, username = '', displayName = '', picture = '', website = '', showFacebookLink = true, showGoogleLink = false, showTrippianLink = false, showWebSiteLink = f...
docs/Documentation/ListPage.js
reactivers/react-material-design
/** * Created by muratguney on 29/03/2017. */ import React from 'react'; import {Card, CardHeader,List,ListItem,Icon,Table,TableRow,TableHeaderColumn,TableHeader,TableRowColumn,TableBody} from '../../lib'; import HighLight from 'react-highlight.js' export default class CardPage extends React.Component { render...
node_modules/react-native-svg/elements/Rect.js
Stoneski93/GymDiary
import React from 'react'; import './Path'; // must import Path first, don`t know why. without this will throw an `Super expression must either be null or a function, not undefined` import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass'; import...
packages/cf-component-code/test/Code.js
koddsson/cf-ui
import React from 'react'; import { felaSnapshot } from 'cf-style-provider'; import { Code } from '../../cf-component-code/src/index'; test('should render', () => { const snapshot = felaSnapshot(<Code>Hello</Code>); expect(snapshot.component).toMatchSnapshot(); expect(snapshot.styles).toMatchSnapshot(); });
src/svg-icons/maps/transfer-within-a-station.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTransferWithinAStation = (props) => ( <SvgIcon {...props}> <path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 ...
packages/ringcentral-widgets-docs/src/app/pages/Components/SettingsPanel/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import SettingsPanel from 'ringcentral-widgets/components/SettingsPanel'; const props = {}; props.brandId = 'test string'; props.callingSettingsUrl = 'test string'; props.currentLocale = 'en-US'; props.loginNumber = 'test string'; props.onLogoutButtonClick = () =>...
src/__tests__/Spinner-test.js
nikgraf/belle
/* global jest describe beforeEach it expect */ jest.dontMock('../components/Spinner'); jest.dontMock('../style/spinner'); import React from 'react'; import TestUtils from 'react-dom/test-utils'; // Babel would move an import in front of the jest.dontMock. That's why require // is used instead of import. const Spinn...
data-browser-ui/public/app/components/tableComponents/td/listComponents/passwordList.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; class PasswordListComponent extends React.Component { constructor(){ super() this.state = { } } updateValue(e){ this.props.updateElementData(e.target.value,this.props.index) } addNewRowToList(e){ if(e.which === 13){ this.props.addToElem...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/CloseButton.js
JamieMason/npm-cache-benchmark
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import * as PropTypes from 'prop-types'; import React from 'react'; var propTypes = { label: PropTypes....
src/views/target/Calendar.js
anysome/objective
/** * Created by Layman(http://github.com/anysome) on 16/3/16. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text} from 'react-native'; import Spinner from 'react-native-spinkit'; import moment from 'moment'; import CalendarView from '../../widgets/CalendarView'; import {analytics, styles, col...
src/components/Button.js
MarceloProjetos/react-router-node-red
import React from 'react'; import { Button as BootstrapButton } from 'react-bootstrap'; const Button = props => ( <BootstrapButton style={{magin: '0'}} label={props.label} > </BootstrapButton> )
ajax/libs/glamorous/4.9.2/glamorous.umd.tiny.js
sufuf3/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) : typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) : (global.glamorous = factory(global.React,global.Glamor)); }(this, (function ...
public/main.min.js
chloeleichen/react-starter
!function e(t,n,o){function r(i,s){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!s&&u)return u(i,!0);if(a)return a(i,!0);var c=new Error("Cannot find module '"+i+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[i]={exports:{}};t[i][0].call(l.exports,function(e){var n=t[i][1][e];return r(n?n:e)},l,l.ex...
src/routes.js
MichaelWiss/React_E
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from'./components/app'; import PostsIndex from './components/posts_index'; import PostsNew from './components/posts_new'; import PostsShow from './components/posts_show'; export default ( <Route path="/" component={App}> ...
src/svg-icons/av/library-books.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
app/javascript/mastodon/features/follow_recommendations/index.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import { fetchSuggestions } from 'mastodon...
src/client/app/footer.react.js
sljuka/portfolio-este
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; export default class Footer extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg: {app: {footer}}} = this.props; ret...
public/controllers/overview/components/alerts-stats.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for alerts stats. * * 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 License, or * (at you...
client/index.js
Frostimage/Frostimage
import React from 'react'; import { render } from 'react-dom'; import * as THREE from 'three'; import OrbitControls from './public/dist/OrbitControls' import Main from './components/Main/Main'; import TestView from './components/TestView'; import Header from './components/header/Header'; // import App from './component...
ajax/libs/es6-shim/0.12.0/es6-shim.js
x112358/cdnjs
// ES6-shim 0.12.0 (c) 2013-2014 Paul Miller (http://paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ (function(undefined) { 'use strict'; var isCallableWithoutNew = function(func) { try { func(); } ...
docs/app/Examples/elements/Button/Types/ButtonExampleLabeledIcon.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleLabeledIcon = () => ( <div> <Button content='Pause' icon='pause' labelPosition='left' /> <Button content='Next' icon='right arrow' labelPosition='right' /> </div> ) export default ButtonExampleLabeledIcon
ajax/libs/mediaelement/2.1.1/jquery.js
koggdal/cdnjs
/*! * jQuery JavaScript Library v1.5.1rc1 * 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 License...
app/javascript/mastodon/features/list_editor/components/account.js
d6rkaiz/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
Examples/UIExplorer/NavigatorIOSExample.js
jacobbubu/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, ...
app/components/ToggleOption/index.js
Zurico/t7
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {intl.formatMessage(message)} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequired, message: Rea...
ajax/libs/backbone.radio/0.3.0/backbone.radio.js
pvnr0082t/cdnjs
// Backbone.Radio v0.2.0 (function(root, factory) { if (typeof define === 'function' && define.amd) { define(['backbone', 'underscore'], function(Backbone, _) { return factory(Backbone, _); }); } else if (typeof exports !== 'undefined') { var Backbone = require('backbone'); var _ = require('...
packages/material-ui-icons/src/Crop169TwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z" /></g></React.Fragment> , 'Crop169TwoTone');
openex-front/src/private/components/settings/tags/TagPopover.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as R from 'ramda'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent from '@mui/material/DialogContent'; import DialogCont...
ajax/libs/jquery/1.11.1-rc1/jquery.min.js
owcc/cdnjs
/*! jQuery v1.11.1-rc1 | (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 ...
ajax/libs/inferno/1.0.0-beta13/inferno-compat.min.js
tonytomov/cdnjs
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("./inferno-component")):"function"==typeof define&&define.amd?define(["exports","inferno-component"],n):n(e.Inferno=e.Inferno||{},e.Inferno.Component)}(this,function(e,n){"use strict";function t(e,n){return n={exports:{}},e(n,n.export...
assets/Columns/Content.js
rmccue/new-list-tables
import React from 'react'; import RowActions from '../RowActions'; export default class Content extends React.Component { render() { const { item, onDelete, onUpdate } = this.props; return <td className="comment column-comment"> <div dangerouslySetInnerHTML={{ __html: item.content.rendered }} /> <RowActi...
app/components/Nav/index.js
theClubhouse-Augusta/JobWeasel-FrontEnd
/** * * Nav * */ import React from 'react'; import {Link} from 'react-router-dom' import './style.css'; import './styleM.css'; import Bars from 'react-icons/lib/fa/bars'; export default class Nav extends React.PureComponent { constructor () { super(); this.state = { menuOpen:false } } hand...
node_modules/react-icons/fa/calendar-plus-o.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaCalendarPlusO = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35.8 5.7q1.1 0 2 0.9t0.8 2v28.5q0 1.2-0.8 2.1t-2 0.8h-31.4q-1.2 0-2.1-0.9t-0.8-2v-28.5q0-1.2 0.8-2t2.1-0.9h2.8v-2.1q0-1.5 1.1-2.6t2.5-1h1.4q1.5 0 2.5 1.1t1.1 2...
packages/stockflux-launcher/src/toolbar/ToolBar.js
ScottLogic/StockFlux
import cx from 'classnames'; import React from 'react'; import Components from 'stockflux-components'; import './ToolBar.css'; export default ({ tools, style }) => { return ( <div className={style}> {tools .filter(tool => tool.visible) .map((tool, index) => ( <Components.Buttons.R...
ajax/libs/react-native-web/0.14.6/exports/YellowBox/index.js
cdnjs/cdnjs
/** * Copyright (c) Nicolas Gallagher. * 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. * * */ import React from 'react'; import UnimplementedView from '../../modules/UnimplementedVie...
src/components/Header/Header.js
luisma1989/portfolio-react
import React from 'react' import $ from 'jquery' import './Header.scss' class Header extends React.Component { componentDidMount () { const widnowHeight = $(window).height() const containerHeight = $('.home-container').height() const padTop = widnowHeight - containerHeight $('.home-container').css({ ...
src/components/Content.js
emjayoh/nsii
import React from 'react' import PropTypes from 'prop-types' export const HTMLContent = ({ content, className }) => ( <div className={className} dangerouslySetInnerHTML={{ __html: content }} /> ) const Content = ({ content, className }) => ( <div className={className}>{content}</div> ) Content.propTypes = { co...
test/RowSpec.js
kwnccc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Row from '../src/Row'; describe('Row', function () { it('uses "div" by default', function () { let instance = ReactTestUtils.renderIntoDocument( <Row /> ); assert.equal(React.findDOMNode(instance).nodeName, 'D...
src/components/FilterItem/FilterItem.js
tigaly/antd-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './FilterItem.less' const FilterItem = ({ label = '', children, }) => { const labelArray = label.split('') return ( <div className={styles.filterItem}> {labelArray.length > 0 ? <div className={styles.labelWrap}> ...
ajax/libs/angular-google-maps/2.1.0-X.2/angular-google-maps_dev_mapped.js
tholu/cdnjs
/*! angular-google-maps 2.1.0-X.2 2015-03-10 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby grante...
src/routes/Synthesizer/components/Keybed.js
prestonbernstein/react-redux-synthesizer
import React from 'react' const Key = (props) => ( <button className='key' onClick={() => props.playSound(props.frequency)} > {props.note} </button> ) Key.propTypes = { note: React.PropTypes.string, frequency: React.PropTypes.number, playSound: React.PropTypes.func } const Keybed = (props) =>...
src/index.js
daisyHawen/React-gallery
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/components/Icons/IconCopy.js
chrisxclash/play-midnight
import React from 'react'; import SvgIcon from './SvgIcon'; const IconCopy = props => ( <SvgIcon viewBox="0 0 32 32" {...props}> <path d="M20 8v-8h-14l-6 6v18h12v8h20v-24h-12zM6 2.828v3.172h-3.172l3.172-3.172zM2 22v-14h6v-6h10v6l-6 6v8h-10zM18 10.828v3.172h-3.172l3.172-3.172zM30 30h-16v-14h6v-6h10v20z" /> </S...
react/features/conference/components/Avatar.native.js
bickelj/jitsi-meet
import React, { Component } from 'react'; import { Image } from 'react-native'; import { styles } from './styles'; /** * Display a participant avatar. */ export default class Avatar extends Component { /** * Implements React's {@link Component#render()}. * * @inheritdoc */ render() { ...
app/react-icons/fa/tumblr-square.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaTumblrSquare extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m28.4 32.6l-1.4-4.1q-1 0.5-2.3 0.5-0.8 0-1.4-0.2t-0.9-0.7-0.4-0.9-0.1-1...
node_modules/react-icons/io/android-arrow-dropdown.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoAndroidArrowDropdown = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m10 15h20l-10 10z"/></g> </Icon> ) export default IoAndroidArrowDropdown
core/built/public/jquery.js
ranadeep47/openshift-ghost-0.5.0-rc1-quickstart
/*! * jQuery JavaScript Library v1.11.0 * 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-01-23T21:02Z */ (function( global, factory ) { if ...
plugins/af.scroller.js
andemi02/appframework
/** * af.scroller * created by appMobi with modifications by Carlos Ouro @ Badoo and Intel * Supports iOS native touch scrolling * Optimizations and bug improvements by Intel * @copyright Intel */ (function ($) { var HIDE_REFRESH_TIME = 325; // hide animation of pull2ref duration in ms var cache = []; ...
modules/core/client/components/NotFoundPage.component.js
Trustroots/trustroots
import { useTranslation } from 'react-i18next'; import React from 'react'; export default function NotFoundPage() { const { t } = useTranslation('core'); return ( <section className="container container-fullscreen container-error board board-error"> <div className="middle-wrapper middle-wrapper-horizont...
src/components/Footer/Footer.js
max-gram/react-saga-universal
import React from 'react' import PropTypes from 'prop-types' import css from './Footer.css' const Footer = (props) => { return ( <footer className={css.mainFooter}> <div> Fork me on <a href="https://github.com/max-gram/react-saga-universal">Github</a> </div> </footer> ) } Footer.propT...
packages/test-studio/src/components/PertEstimateInput.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' import { PatchEvent, set, unset, setIfMissing } from 'part:@lyra/form-builder/patch-event' import './PertEstimate.css?raw' // eslint-disable-line const calculateEstimate = estimates => { const {optimistic, nominal, pessimistic} = estimates || {} ...
examples/basic/index.js
jaredpalmer/formik
import React from 'react'; import ReactDOM from 'react-dom'; import { Formik, Field, Form } from 'formik'; const Basic = () => ( <div> <h1>Sign Up</h1> <Formik initialValues={{ firstName: '', lastName: '', email: '', }} onSubmit={async (values) => { await new...
files/rxjs/2.3.9/rx.lite.extras.js
leebyron/jsdelivr
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'unde...