path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
examples/counter/components/Counter.js
taylorhakes/redux-devtools
import React, { Component, PropTypes } from 'react'; export default class Counter extends Component { static propTypes = { increment: PropTypes.func.isRequired, incrementIfOdd: PropTypes.func.isRequired, decrement: PropTypes.func.isRequired, counter: PropTypes.number.isRequired }; render() { ...
node_modules/react-bootstrap/es/Label.js
ivanhristov92/bookingCalendar
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
examples/react/src/players/FullControl.js
thangngoc89/react-howler
import React from 'react' import ReactHowler from 'ReactHowler' import raf from 'raf' // requestAnimationFrame polyfill import Button from '../components/Button' class FullControl extends React.Component { constructor (props) { super(props) this.state = { playing: false, loaded: false, loo...
examples/real-world/index.js
cornedor/redux
import 'babel-core/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage from './co...
client/src/components/Tag.js
rantav/reversim-summit-2017
import React from 'react'; const Tag = (name) => ( <div key={name} className="mr-3">#{name}</div> ); export default Tag;
test/client/unit/components/PrisonerProfile.spec.js
noms-digital-studio/csra-app
import React from 'react'; import { shallow } from 'enzyme'; import PrisonerProfile from '../../../../client/javascript/components/PrisonerProfile'; describe('<PrisonerProfile />', () => { it('renders the prisoners profile details', () => { const prisonerDetails = { forename: 'foo-name', surname: ...
packages/react-ui-components/src/ToggablePanel/index.story.js
neos/neos-ui
import React from 'react'; import {storiesOf, action} from '@storybook/react'; import {withKnobs, boolean} from '@storybook/addon-knobs'; import {StoryWrapper} from './../_lib/storyUtils'; import ToggablePanel from '.'; storiesOf('ToggablePanel', module) .addDecorator(withKnobs) .addWithInfo( 'stateful...
examples/with-mobx-react-lite/pages/other.js
BlancheXu/test
import React from 'react' import Page from '../components/Page' export default class Counter extends React.Component { render () { return <Page title='Other Page' linkTo='/' /> } }
tests/components/Paragraph-test.js
abzfarah/Pearson.NAPLAN.GnomeH
import {test} from 'tape'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Paragraph from '../../src/components/components/Paragraph'; import CSSClassnames from './src/components/utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.PARAGRAPH; test('loads a Paragraph in large size...
packages/@lyra/vision/src/containers/LoadingContainer.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' import request from '../util/request' // Yeah, inheritance and all that. Deal with it. class LoadingContainer extends React.PureComponent { constructor() { super() if (!this.getSubscriptions) { throw new Error( `${ this.con...
src/components/Collection/Entries/EntryListing.js
Aloomaio/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Waypoint from 'react-waypoint'; import { Map } from 'immutable'; import { selectFields, selectInferedField } from 'Reducers/collections'; import EntryCard from './EntryCard'; export default...
src/components/root/body/filter/type-filter.js
hamatoyogi/imdb-app-v2
import React, { Component } from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import { dataStore } from '../../../../stores/data-store'; const names = [ 'Oliver Hansen', 'Van Henry', 'April Tucker', 'Ralph Hubbard', 'Omar Alexander', 'Carlos Abbot...
ajax/libs/forerunnerdb/1.3.552/fdb-core.js
iwdmb/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...
components/Form/InputField/InputField.story.js
NGMarmaduke/bloom
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import { withKnobs, boolean, array, select, number, } from '@storybook/addon-knobs'; import CheckboxGroup from '../CheckboxGroup/CheckboxGroup'; import InputField from './InputField'; import Input from '../Input/Input'; import I...
ajax/libs/forerunnerdb/1.3.551/fdb-all.min.js
ahocevar/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...
ajax/libs/react/15.2.1/react-with-addons.js
maruilian11/cdnjs
/** * React (with addons) v15.2.1 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undef...
js/jquery-1.8.2.min.js
ningsuhen/ningsuhen.github.io
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===...
Libraries/CustomComponents/Navigator/Navigator.js
jaggs6/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. * * Facebook,...
scheduling-api-http/src/main/resources/META-INF/resources/webjars/graphiql/0.8.0/graphiql.min.js
yinan-liu/scheduling-api
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.GraphiQL=f()}}(function(){var define;return function e(...
examples/using-page-transitions/src/pages/long-page.js
mingaldrichgan/gatsby
/* eslint-disable jsx-a11y/anchor-is-valid */ import React from "react" import { Link } from "gatsby" export default () => ( <div> <h1>Links at bottom of page</h1> <p> <strong>Pellentesque habitant morbi tristique</strong> senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor ...
src/components/common/svg-icons/image/vignette.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageVignette = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/> </SvgIcon>...
new-lamassu-admin/src/pages/Wizard/components/Welcome.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core' import React from 'react' import { Button } from 'src/components/buttons' import { H1, P } from 'src/components/typography' import { comet } from 'src/styling/variables' const styles = { welcome: { textAlign: 'center', paddingTop: 256 }, title: { lineHe...
components/UserPage.ios.js
fjjk-snacktime/snacktime
import React, { Component } from 'react'; import axios from 'axios'; import { View, Text, Image, ScrollView, ListView, TouchableHighlight, TouchableOpacity } from 'react-native'; import styles from '../styles.ios.js'; import { connect } from 'react-redux'; i...
docs/src/components/browser.js
mcanthony/nuclear-js
import React from 'react' export default React.createClass({ render() { var className = 'browser-component'; if (this.props.size) { className += " browser-component__" + this.props.size } var contentClassName = "browser-component--content" return <div className={className}> <div c...
resources/lib/oojs-ui/oojs-ui.js
Tornaldo/WebIntelligence
/*! * OOjs UI v0.1.0-pre (f2c3f12959) * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2014 OOjs Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2014-09-18T23:22:20Z */ ( function ( OO ) { 'use strict'; /** * Namespace for all classes, static ...
units/rb-appbase-server/contentCreatorWebApp_async.js
codefoundries/UniversalRelayBoilerplate
// @flow import fs from 'fs' import path from 'path' import ejs from 'ejs' import createRender from 'found/lib/createRender' import { getFarceResult } from 'found/lib/server' import NestedError from 'nested-error-stacks' import React from 'react' import ReactDOMServer from 'react-dom/server' import { JssProvider, She...
src/components/Title.js
mikebarkmin/gestyled
import React from 'react'; import styled from 'styled-components'; import withStyle from './Base'; const StyledTitle = styled.span` color: ${props => props.theme.colors.text}; font-weight: ${props => props.theme.fontWeights[2]}; font-size: ${props => props.theme.fontSizes[3]}px; `; const Title = props => <Style...
src/Badge.js
mcraiganthony/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, hasContent() { return ValidComponentChildren.hasValidComponent(this.props.children) || ...
ajax/libs/analytics.js/2.3.24/analytics.min.js
alkutin/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
ajax/libs/vkui/4.29.1/cssm/components/Chip/Chip.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["value","option","removable","onRemove","removeAriaLabel","before","after","children"];import{createScopedElement}from"../../lib/jsxRuntime";import*as React from"react...
ajax/libs/swagger-ui/3.0.21/swagger-ui-standalone-preset.js
seogi1004/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e():t.SwaggerUIStandalonePreset=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={...
consoles/my-joy-images/src/index.js
yldio/joyent-portal
import React from 'react'; import ReactDOM from 'react-dom'; import { HelmetProvider } from 'react-helmet-async'; import { ThemeProvider } from 'styled-components'; import { Provider as ReduxProvider } from 'react-redux'; import { ApolloProvider } from 'react-apollo'; import { BrowserRouter } from 'react-router-dom'; i...
modules/dreamview/frontend/src/components/Offlineview.js
xiaoxq/apollo
import React from 'react'; import { inject, observer } from 'mobx-react'; import MainView from 'components/Layouts/MainView'; import ToolView from 'components/Layouts/ToolView'; import Loader from 'components/common/Loader'; import HOTKEYS_CONFIG from 'store/config/hotkeys.yml'; import WS from 'store/websocket'; @in...
fields/types/markdown/MarkdownField.js
mekanics/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on jQuery */ // Scope jQuery and the bootstrap-markdown editor so it will mount var $ = require('jquery'); require('./lib/bootstrap-markdown'); // Append/remove ### surround the select...
ajax/libs/react/0.9.0/react.min.js
stefanneculai/cdnjs
/** * React v0.9.0 * * Copyright 2013-2014 Facebook, 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 appl...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Applications/Listing/Listing.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
ajax/libs/material-ui/5.0.0-alpha.31/node/Grow/Grow.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 _extends2 = _interopRequireDefaul...
src/components/Carousel/SlideSvg/SlideSvg.js
easingthemes/notamagic
import React from 'react'; export const SlideSvg = () => { const svgTag = ` <svg id="svgLineTop" xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="300" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 2000 300" preserveAspectRatio="xMinYMax"> <polygon points="-150,450 0,100 600,300 2...
ui/js/page/start.js
akinwale/lbry-app
import React from "react"; import lbry from "../lbry.js"; class StartPage extends React.PureComponent { componentWillMount() { lbry.stop(); } render() { return ( <main className="main--single-column"> <h3>{__("LBRY is Closed")}</h3> <Link href="lbry://lbry" label={__("Click here to...
src/components/referrals/send-referral-email.js
Storj/metadisk-gui
import React, { Component } from 'react'; export default class SendReferralEmail extends Component { render() { return ( <div className="col-xs-12 col-md-6"> <h2>Refer by email</h2> <div className="content"> <form acceptCharset="UTF-8" onSubmit={this.props.handleSubmit}> ...
Examples/UIExplorer/AccessibilityIOSExample.js
vlrchtlt/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, ...
test/components/accordion-spec.js
nordsoftware/react-foundation
import React from 'react'; import { render } from 'enzyme'; import { expect } from 'chai'; import { Accordion, AccordionItem, AccordionTitle, AccordionContent, } from '../../src/components/accordion'; describe('Accordion component', () => { it('sets tag name', () => { const component = render(<Accordio...
src/server.js
user512/teacher_dashboard
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; 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'; import ApiC...
ajax/libs/primereact/6.5.1/datascroller/datascroller.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { ObjectUtils, classNames } from 'primereact/core'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var ...
LabReports/Urazov PI-42/src/src/components/Composite/ISceneComponent.js
SergeyStaroletov/Patterns17
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Grid, Row, Col, FormGroup, FormControl, ControlLabel, Form } from 'react-bootstrap'; export default class ISceneComponent extends Component { // constructor(props) { // super(props); // this.algorithm = nu...
src/charts/plotly/base.js
stitchfix/pyxleyJS
import React from 'react'; import ReactDOM from 'react-dom'; export class PlotlyAPI extends React.Component { constructor(props) { super(props); } _update(params) { var url = this.props.options.url.concat("?", $.param(params)); $.get(url, function(result) { ...
react-music-player/app/helloworld/components/button.js
zhongshanxian/SUM
import React from 'react'; class Button extends React.Component { constructor(props) { super(props); this.state = { count: 4 }; //函数需要绑定,否则报错'setState'undefined this.counterHandler = this.counterHandler.bind(this); } counterHandler () { this.setState({ count: this.state.count + 1 }); } ...
sundin/source/containers/calcMain/touchableRow.js
tkfeng/mppCalc
/** * * Created by tkfeng on 4/14/17. */ import React from 'react'; import { View, Text, Divider, Icon, Button, Row, Subtitle, Screen, Heading, } from '@shoutem/ui'; export default class TouchableRow extends React.Component { static propTypes = { title: React.PropTypes.string, iconName: ...
packages/icons/src/md/image/FilterFrames.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFilterFrames(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 10c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4V14c0-2.21 1.79-4 4-4h8l8-8 8 8h8zm0 32V14h-8.97l-6.96-7-7.04 7H8v28h32zm-4-24...
src/components/TodoForm.js
pekkis/dr-kobros-2016
import React from 'react'; import uuid from 'node-uuid'; export default class TodoForm extends React.Component { render() { return ( <form onSubmit={this.onSubmit.bind(this)}> <input ref="text" type="text" placeholder="what u wanna todo?" /> <button type="submi...
frontend/src/components/OutsideClick/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { throttle } from 'helpers/utils'; class OutsideClick extends Component { /** * Wrapper component to manage whether clicks (or escape) occur outside * of component, calling handleClick if so. (e.g. clicks outside dropdown) ...
src/frontend/components/SideBarLayout.js
Bernie-2016/ground-control
import React from 'react'; import {Styles, Paper} from 'material-ui'; import {BernieColors} from './styles/bernie-css'; import Radium from 'radium'; export default class SideBarLayout extends React.Component { styles = { container: { display: 'flex', borderBottom: 'solid 1px ' + BernieColors.lightGra...
packages/material-ui-icons/src/UnsubscribeSharp.js
Kagami/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="M18.5 13c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5 3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5zm2 4h-4v-1h4v1zm-6.95 0c-.02-.17-.05-.33-.05-.5 0-2.76 2...
client/src/components/NavBar/index.js
pqmcgill/stamp-wedding-app
import React from 'react'; import { NavLink } from 'react-router-dom'; import { StyleSheet, css } from 'aphrodite'; import { Grid, Row, Col } from 'react-flexbox-grid-aphrodite'; import Home from 'material-ui/svg-icons/action/home' import styleObject from './style'; const styles = StyleSheet.create(styleObject); cons...
node_modules/react/lib/accumulate.js
jkahrs595/website
/** * 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. * * @providesModu...
src/modules/comments/components/CommentLemma/CommentGroupMeta/CommentGroupMeta.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; // components import CommentGroupMetaWorkTitleContainer from '../../../containers/CommentGroupMetaWorkTitleContainer'; import AvatarIcon from '../../../../users/components/AvatarIcon'; // cts import serializeUrn from '../../../../cts/lib/serializeUrn'; ...
app/javascript/mastodon/features/ui/index.js
codl/mastodon
import React from 'react'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './containers/loading_bar_container'; import TabsBar from './components/tabs_bar'; import ModalContainer from './containers/modal_container'; import {...
app/components/LinkList/index.js
minhnhat09/scalable-react
/** * * LinkList * */ import React from 'react'; import styles from './styles.css'; import Link from '../Link'; function LinkList({links, topicName}) { const linkNodes = links.map(l => ( <Link key={l.id} link={l} /> )); return ( <div className={styles.linkList}> {topicName} {li...
js/node_modules/prosemirror/node_modules/babel-runtime/helpers/jsx.js
lhl/pensieve
"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 }; ...
packages/mui-icons-material/lib/esm/HeadsetOutlined.js
oliviertassinari/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M19 14v3c0 .55-.45 1-1 1h-1v-4h2M7 14v4H6c-.55 0-1-.45-1-1v-3h2m5-13c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c...
packages/material-ui-icons/src/FilterVintage.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let FilterVintage = props => <SvgIcon {...props}> <path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.95 0...
entry_types/scrolled/package/src/frontend/PlayerControls/TextTracksMenu.js
codevise/pageflow
import React from 'react'; import PropTypes from 'prop-types'; import {MenuBarButton} from './MenuBarButton'; import {useI18n} from '../i18n'; import TextTracksIcon from './images/textTracks.svg'; export function TextTracksMenu(props) { const {t} = useI18n(); if (props.items.length < 2) { return null; } ...
node_modules/react-icons/fa/xing.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaXing = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.8 14.9q-0.2 0.4-5.7 10.2-0.6 1-1.5 1h-5.3q-0.5 0-0.7-0.4t0-0.8l5.7-10q0 0 0 0l-3.6-6.2q-0.3-0.5-0.1-0.9 0.2-0.3 0.8-0.3h5.3q0.9 0 1.5 1z m18-14.3q0.3 0.3 0 0.8l-11.8...
node_modules/material-ui/svg-icons/image/crop-free.js
andrycodestuffs/atom-sync-packages
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
app/components/Tabs/AddressBlock/index.js
prudhvisays/season
import React from 'react'; export default class AddressBlock extends React.Component { //eslint-disable-line render() { const { Title } = this.props; return ( <div className="ink-flex second-boxShadow tab-second-row"> <div className="all-100"> <div className="ink-flex vertical"> ...
src/containers/ADC/SLB/Application/Application.js
armaniExchange/wizard
// React & Redux import React, { Component } from 'react'; class Application extends Component { render() { return ( <section>Application</section> ); } } export default Application;
test/Autosuggest.js
vezetvsem/react-autosuggest
import proxyquire from 'proxyquire'; import chai, { expect } from 'chai'; import sinon from 'sinon'; import sinonChai from 'sinon-chai'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import SyntheticEvent from 'react/lib/SyntheticEvent'; chai.use(sinonChai); const Autosuggest = proxyquir...
packages/react-reconciler/src/forks/ReactFiberHostConfig.native.js
STRML/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 */ export * from 'react-native-renderer/src/ReactNativeHostConfig';
frontend/components/queue-item.js
meandavejustice/min-vid
import React from 'react'; import cn from 'classnames'; import ReactTooltip from 'react-tooltip'; import formatTime from '../client-lib/format-time'; import sendToAddon from '../client-lib/send-to-addon'; const playIcon = 'resource://minvid-data/img/play-blue.svg'; const addIcon = 'resource://minvid-data/img/add.svg';...
ajax/libs/react/0.12.0/react.min.js
dominic/cdnjs
/** * React v0.12.0 * * 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. *...
src/components/Footer/Footer.js
tarixgit/test
/** * 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 withStyles from 'isomorp...
grunt/tasks/release.js
TylerBrock/react
'use strict'; var grunt = require('grunt'); var BOWER_PATH = '../react-bower/'; var BOWER_GLOB = [BOWER_PATH + '*.{js}']; var BOWER_FILES = [ 'react.js', 'react.min.js', 'JSXTransformer.js', 'react-with-addons.js', 'react-with-addons.min.js', ]; var GH_PAGES_PATH = '../react-gh-pages/'; var GH_PAGES_GLOB = [GH_PA...
local-cli/run-android.js
yangchengwork/react-native
/** * Copyright 2004-present Facebook. All Rights Reserved. */ 'use strict'; var chalk = require('chalk'); var child_process = require('child_process'); var fs = require('fs'); var http = require('http'); var runPackager = require('./run-packager.js'); function checkAndroid() { return fs.existsSync('android/grad...
newclient/scripts/components/admin/disclosure-filter-by-reviewer/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
src/Eventplanner/DayColumn.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import cn from 'classnames'; import Selection, { getBoundsForNode } from './Selection'; import dates from './utils/dates'; import { isSelected } from './utils/selection'; import localizer from './localizer';...
packages/mineral-ui-icons/src/IconSwitchVideo.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSwitchVideo(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
app/components/Navbar.js
rfarine/ArtistRanking
import React from 'react'; import {Link} from 'react-router'; import NavbarStore from '../stores/NavbarStore'; import NavbarActions from '../actions/NavbarActions'; class Navbar extends React.Component { constructor(props) { super(props); this.state = NavbarStore.getState(); this.onChange = this.onChange...
src/components/Chip.js
mikebarkmin/gestyled
import React from 'react'; import styled from 'styled-components'; import Button from './Button'; import withStyle from './Base'; import { transparentize } from 'polished'; import PropTypes from 'prop-types'; const StyledChip = withStyle(styled.button` height: 32px; width: fit-content; font-size: ${props => prop...
node_modules/semantic-ui-react/src/elements/Icon/Icon.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { createShorthandFactory, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, } from '../../lib' import IconGroup from './IconGroup' /** * An i...
src/components/board/index.js
mitalawachat/diamond-sweeper
/* eslint-disable no-console */ import React from 'react'; import './styles/style.scss'; import questionImage from './images/question.png'; import diamondImage from './images/diamond.png'; import Message from '../message'; export default class Board extends React.Component { constructor() { super(); ...
components/App.js
bryanch/react-web-template
import React from 'react'; import Layout from './Layout'; class App extends React.PureComponent { render() { return (<Layout />); } } export default App;
src/shared/utils/__tests__/Transaction-test.js
jeffchan/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
packages/cf-component-form/test/FormFieldset.js
manatarms/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { FormFieldset } from 'cf-component-form'; test('should render', () => { const component = renderer.create( <FormFieldset legend="Legend">FormFieldset</FormFieldset> ); expect(component.toJSON()).toMatchSnapshot(); });
ajax/libs/forerunnerdb/1.3.31/fdb-legacy.min.js
sreym/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...
test/unit/src/common/components/select-repository-list/t_select-repository-list.js
canonical-websites/build.snapcraft.io
import expect, { spyOn } from 'expect'; import React from 'react'; import { shallow } from 'enzyme'; import { SelectRepositoryListComponent } from '../../../../../../src/common/components/select-repository-list'; import SelectRepositoryRow from '../../../../../../src/common/components/select-repository-row'; import ...
src/v2/components/Cell/components/Konnectable/components/KonnectableMetadata/components/MetadataFileExtension/index.js
aredotna/ervell
import React from 'react' import styled from 'styled-components' import PropTypes from 'prop-types' import { space } from 'styled-system' import constants from 'v2/styles/constants' import { fractional } from 'v2/styles/mixins' import { preset } from 'v2/styles/functions' import Text from 'v2/components/UI/Text' c...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
ganquan0910/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
ajax/libs/react-native-web/0.11.6/exports/ProgressBar/index.js
cdnjs/cdnjs
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return O...
packages/material-ui-icons/src/ViewModuleTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M11 12.5h3V16h-3zM11 7h3v3.5h-3zm-5 5.5h3V16H6zM6 7h3v3.5H6zm10 0h3v3.5h-3zm0 5.5h3V16h-3z" opacity=".3" /><path d="M4 5v13h17V5H4zm5 11H6v-3.5h3V16zm0-5.5H6V7h3v3.5zm5 5.5h-3v-3.5h3V1...
ajax/libs/primereact/6.5.0-rc.1/card/card.cjs.js
cdnjs/cdnjs
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var React = require('react'); var utils = require('primereact/utils'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_interopDefaultLega...
geonode/contrib/monitoring/frontend/src/pages/alerts-settings/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Header from '../../components/organisms/header'; import AlertSetting from '../../components/organisms/alert-setting'; import HoverPaper from '../../components/atoms/hover-paper'; import actions from './actions';...
packages/react-jsx-highstock/src/components/CandlestickSeries/CandlestickSeries.js
AlexMayants/react-jsx-highcharts
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Series from 'react-jsx-highcharts/src/components/Series'; class CandlestickSeries extends Component { static propTypes = { id: PropTypes.string.isRequired }; render () { return ( <Series {...this.props} type="cand...
src/widgets/material/input-text.js
surikaterna/formr
import React from 'react'; import BaseInput from './base-input'; export default function InputText(props) { return <BaseInput {...props} type="text" />; }
wp-includes/js/jquery/jquery.js
alexandreaugusto/blueprint
/*! jQuery v1.11.2 | (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/modals/MonsterOptionsModal.js
emfmesquita/beyondhelp
import { Button, FormControl, FormGroup, Glyphicon, InputGroup, ListGroup, ListGroupItem } from 'react-bootstrap'; import React, { Component } from 'react'; import BadgeService from "../services/BadgeService"; import BhModal from "./BhModal"; import C from "../Constants"; import ColorPicker from "../forms/ColorPicker"...
ajax/libs/yui/3.2.0/event/event-min.js
JimBobSquarePants/cdnjs
(function(){var d,b=YUI.Env,c=YUI.config,h=c.doc,e=h&&h.documentElement,i=e&&e.doScroll,k=YUI.Env.add,f=YUI.Env.remove,g=(i)?"onreadystatechange":"DOMContentLoaded",a=c.pollInterval||40,j=function(l){b._ready();};if(!b._ready){b._ready=function(){if(!b.DOMReady){b.DOMReady=true;f(h,g,j);}}; /*! DOMReady: based on work ...
client/src/components/login.js
cashyu/reactNode
'use strict' import React from 'react' import { Button } from 'antd' class LoginForm extends React.Component{ handleSubmit(event) { event.preventDefault(); if(this.refs.name.value == '' || this.refs.passwd.value == '') return ; let userData = { name: this.refs.name.value, passwd: this.refs.p...
packages/react-router-website/examples/PreventingTransitions.js
rafrex/react-router
import React from 'react' import Route from 'react-router/Route' import Prompt from 'react-router/Prompt' import Router from 'react-router-dom/BrowserRouter' import Link from 'react-router-dom/Link' const PreventingTransitionsExample = () => ( <Router> <div> <ul> <li><Link to="/">Form</Link></li> ...
node_modules/react-prop-types/lib/elementType.js
darklilium/Factigis_2
'use strict'; exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _react = require('react'); va...
tests/stable/regression/libs/jquery-1.7.js
goatslacker/jshint
/*jshint white: false, undef: true, regexp: false, plusplus: false, eqeqeq: false, eqnull: true, evil: true, newcap: false, browser: true, forin: false, maxlen: 9001, immed: false */ /*! * jQuery JavaScript Library v1.7 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL V...