target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
demo/static/js/src/app.js
OmegaDroid/django-jsx
import React from 'react'; import routers from "./routers" export default class App extends React.Component { constructor (props) { super(props); this.updateUrl = this.updateUrl.bind(this); this.handleClick = this.handleClick.bind(this); // Get the initial path name from the server...
js/jqwidgets/demos/react/app/grid/filterconditions/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; import JqxPanel from '../../../jqwidgets-react/rea...
node_modules/react-bootstrap/es/ControlLabel.js
vitorgomateus/NotifyMe
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 ...
packages/material-ui-icons/lib/Bookmark.js
mbrookes/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")...
__tests__/components/RadioButton-test.js
codeswan/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react/lib/ReactTestRenderer'; import RadioButton from '../../src/js/components/RadioButton'; describe('RadioButton', () => { it('has correct default options', () => { const component = renderer...
components/Signup.js
sunday-school/sundayschool.rocks
import React from 'react' const openWindow = () => { window.open('https://tinyletter.com/sundayschool', 'popupwindow', 'scrollbars=yes,width=800,height=600') return true } const Signup = () => <form className='pa2 mw5 mv2 f6 lh-copy bg-light-pink purple' action='https://tinyletter.com/sundayschool' ...
Libraries/CustomComponents/Navigator/NavigatorNavigationBar.js
sunblaze/react-native
/** * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * Facebook, Inc. ("Facebook") owns all right, title and interest, including * all intellectual property and other proprietary rights, in and to the React * Native CustomComponents software (the "Software"). Subject to your * compliance with these t...
src/components/Calendar/Calendar.js
moo-dal/spoon-web
/* External dependencies */ import React from 'react' import autobind from 'core-decorators/lib/autobind' import classNames from 'classnames' import c from 'calendar' /* Internal dependencies */ import styles from './Calendar.scss' import CalendarDate from '../../models/CalendarDate' const days = ['SUN', 'MON', 'TUE'...
examples/shared-root/app.js
CivBase/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var App = React.createClass({ render() { return ( <div> <p> This illustrates how routes can share UI w/o sharing the URL. When routes have no path, they never match themselves but their chil...
node_modules/react-icons/ti/lock-closed-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiLockClosedOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m22.2 28.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2c0-1.2 1-2.1 2.2-2.1s2.2 0.9 2.2 2.1z m6.1-11.6h-1.6v-3.4c0-3.6-3-6.6-6.7-6.6s-6.7 3-6.7 6.6v3.4h-1.6c-1.9 0-3....
src/pagination/PaginationList.js
prajapati-parth/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classSet from 'classnames'; import PageButton from './PageButton.js'; import SizePerPageDropDown from './SizePerPageDropDown'; import Const from '../Const'; import Util from '../util'; class PaginationList extends Component { const...
addons/webinterface.default/js/jquery-1.8.2.min.js
a1d3s/xbmc
/*! 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===...
src/components/icon.js
conveyal/woonerf
import React from 'react' export default class Icon extends React.PureComponent { render () { const {className = '', type, ...props} = this.props return <i className={`fa fa-${type} fa-fw ${className}`} {...props} /> } }
src/pages/launchWindow/laounchWindowExamples.js
Synchro-TEC/site-apollo-11
import React from 'react'; import { LaunchWindow } from 'syntec-apollo-11'; class LaunchWindowExample extends React.Component { constructor() { super(); } showLaunchWindow(){ this.refs.modal.show(); } render() { return( <div> <LaunchWindow ref='modal'> Modal </La...
packages/material-ui-icons/src/MultilineChartSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3.24-4-4L2 16.99l1.5 1.5 6-6.01 4 4 4.05-4.55c.75 1.35 1....
app/addons/documents/routes-doc-editor.js
apache/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
node_modules/native-base/__tests__/backward/Header.ios.js
odapplications/WebView-with-Lower-Tab-Menu
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import { Header } from './../../src/backward/Widgets/Header'; import { Button } from './../../src/backward/Widgets/Button'; import { Icon } from './../../src/backward/Widgets/Icon'; import { Title } from './../../src/backward/...
node_modules/react-icons/md/toll.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdToll = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m5 20c0 4.4 2.7 8.1 6.6 9.5v3.4c-5.7-1.5-10-6.6-10-12.9s4.3-11.4 10-12.9v3.5c-3.9 1.3-6.6 5-6.6 9.4z m20 10c5.5 0 10-4.5 10-10s-4.5-10-10-10-10 4.5-10 10 4.5 10 10 10z m...
example/src/Content.js
istarkov/pbl
import React from 'react'; import compose from 'recompose/compose'; import { themr } from 'react-css-themr'; import markdown from 'markdown-in-js'; import { Link } from 'react-router'; import Carusel from './Carusel'; import contentStyles from './content.sass'; const Data = ({ theme }) => markdown({ a: ({ href, chil...
test/ImageSpec.js
cgvarela/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Image from '../src/Image'; describe('Image', () => { it('should be an image', () => { let instance = ReactTestUtils.renderIntoDocument( <Image /> ); let image = React.findDOMNode(instance); image.nodeName...
packages/ringcentral-widgets/components/ActiveCallButton/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CircleButton from '../CircleButton'; import styles from './styles.scss'; export default function ActiveCallButton(props) { const className = classnames(styles.btnSvg, props.className); const buttonClassName ...
src/svg-icons/content/remove-circle.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); ContentRemoveCircle = pure(ContentRemoveCir...
ajax/libs/rxjs/2.4.8/rx.lite.compat.js
barkinet/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 }; ...
analysis/shaman/src/Maelstrom.js
yajinni/WoWAnalyzer
//Based on Main/Mana.js and parser/VengeanceDemonHunter/Modules/PainChart //Note: For those that might wish to add Boss Health in the future- some of the work is already done here: https://github.com/leapis/WoWAnalyzer/tree/focusChartBossHealth import React from 'react'; import PropTypes from 'prop-types'; import { Au...
packages/material-ui-icons/lib/esm/ElectricMopedRounded.js
mbrookes/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon([/*#__PURE__*/_jsx("path", { d: "M19 5c0-1.1-.9-2-2-2h-2c-.55 0-1 .45-1 1s.45 1 1 1h2v2.65L13.52 12H10V8c0-.55-.45-1-1-1H6c-2.21 0-4 1.79-4 4v3h2c0 1.66 1.34 3 3 3s3-1.34 3-3h4.48L19 8.35V5...
packages/react-dom/src/__tests__/inputValueTracking-test.js
maxschmeling/react
/** * 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. * * @emails react-core */ 'use strict'; var React = require('react'); var ReactDOM = require('react-dom'); var ReactTestUtils = require(...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import IconButton from '../../../...
client/src/components/react-echarts/index.js
jizhuofeng/redis-monitor
import React from 'react'; import ReactEcharts from 'echarts-for-react'; import './style'; export class Charts extends React.Component { constructor(props) { super(props); } render() { return ( <div className="charts"> <div className="charts-name">{this.props.title}</div> <ReactEc...
node_modules/gulp-browatchify/node_modules/watchify/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.js
TumboTheGnome/phaserGraph
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { ...
ajax/libs/yui/3.2.0/event-custom/event-custom-base-debug.js
BitsyCode/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module e...
test/WellSpec.js
pombredanne/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Well from '../src/Well'; describe('Well', () => { it('Should output a well with content', () => { let instance = ReactTestUtils.renderIntoDocument( <Well> <strong>Content</str...
app/containers/Menu/components/Modal/index.js
ethanve/bakesale
import React from 'react'; import { reduxForm } from 'redux-form/immutable'; import { Modal, ModalBody, ModalHeader, ModalFooter } from 'elemental'; import formFactory from '../formFactory'; import { FORM_NAME } from '../../constants'; export default class MenuModal extends React.Component { render() { const {...
test/integration/css-fixtures/bad-custom-configuration-arr-6/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
client/src/components/SignInPage.js
fmoliveira/rexql-boilerplate
import React from 'react' import { Link } from 'react-router' import { FormatMessage } from 'react-easy-intl' import Hero from './Hero' import SignInFormContainer from '../containers/SignInFormContainer' export default () => ( <section className='hero is-fullheight is-dark is-bold'> <div className='hero-body'> ...
modules/dreamview/frontend/src/components/StatusBar/Notification.js
ycool/apollo
import React from 'react'; import { observer } from 'mobx-react'; import classNames from 'classnames'; import warnIcon from 'assets/images/icons/warning.png'; import errorIcon from 'assets/images/icons/error.png'; @observer export default class Notification extends React.Component { render() { const { monitor, ...
ajax/libs/material-ui/5.0.0-alpha.20/legacy/TableFooter/TableFooter.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import withStyles from"../styles/withStyles";import Tablelvl2Context from"../Table/Tablel...
docs/client.js
dozoisch/react-bootstrap
import CodeMirror from 'codemirror'; import 'codemirror/addon/runmode/runmode'; import 'codemirror/mode/jsx/jsx'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router, browserHistory} from 'react-router'; import Root from './src/Root'; import routes from './src/Routes'; import 'bootstrap/less/...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
ro-savage/create-react-app
/** * Copyright (c) 2015-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. */ import React from 'react'; import './assets/style.css'; export default () => <p id="feature-css-inclusion">We love useless text.</p>;
docs/src/pages/customization/themes/WithTheme.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import Typography from '@material-ui/core/Typography'; import { withTheme } from '@material-ui/core/styles'; function WithTheme(props) { const { theme } = props; const primaryText = theme.palette.text.primary; const primaryColor = theme.palette.prima...
test/helpers/shallowRenderHelper.js
iceking112/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
styleguide/screens/Patterns/Tether/Tether.js
NGMarmaduke/bloom
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import cx from 'classnames'; import dedent from 'dedent'; import Specimen from '../../../components/Specimen/Specimen'; import { D, H, T, C, Note } from '../../../components/Scaffold/Scaffold'; import Tether, { VERTICAL_ATTACHMENTS, ...
blueprints/dumb/files/__test__/components/__name__.spec.js
harijoe/redux-shooting-stars
import React from 'react' import <%= pascalEntityName %> from 'components/<%= pascalEntityName %>/<%= pascalEntityName %>' describe('(Component) <%= pascalEntityName %>', () => { it('should exist', () => { }) })
src/svg-icons/action/settings-cell.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
src/components/Visits/Visits.js
0xcdc/rfb-client-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/withStyles'; import { Button, Table } from 'react-bootstrap'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { faTimesCircle } from '@fortawesome/free-solid-svg-icons';...
src/Slider/Slider.spec.js
igorbt/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import {spy} from 'sinon'; import keycode from 'keycode'; import Slider from './Slider'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Slider />', () => { const muiTheme = getMuiTheme(); con...
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...
ajax/libs/ink/2.2.1/js/ink-all.js
Olical/cdnjs
(function() { 'use strict'; /** * @module Ink_1 */ /** * global object * * @class Ink */ // skip redefinition of Ink core if ('Ink' in window) { return; } // internal data /* * NOTE: * invoke Ink.setPath('Ink', '/Ink/'); before requiring local...
ajax/libs/pdf.js/2.0.122/pdf.js
joeyparrish/cdnjs
/* Copyright 2017 Mozilla Foundation * * 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...
jssource/src_files/include/javascript/yui3/build/event-custom/event-custom-base.js
harish-patel/ecrm
/* Copyright (c) 2009, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 3.0.0 build: 1549 */ YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-cu...
examples/src/components/DisabledUpsellOptions.js
colbyr/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropType...
test/index.android.js
ivanl001/ReactNative-Learning
/** * 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 test extends Component { render() { return ( <View style={styles.container}> ...
classic/src/scenes/wbui/BrowserToolbarContent.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { IconButton, Tooltip } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles' import { CHROME_PDF_URL } from 'shared/constants' import { URL } from 'url' import Spinner ...
src/scenes/home/branding/logos/logos.js
sethbergman/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; import smallBlueAccentLogo from 'images/logos/small-blue-logo.png'; import smallRedAccentLogo from 'images/logos/small-red-logo.png'; import smallNoAccentLogo from 'images/logos/small-logo.png'; import smallWhiteAccentLogo from 'images/...
ajax/libs/forerunnerdb/1.3.762/fdb-core.js
sajochiu/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...
old/drafty/src/PositionFilters.js
paulpooch/fantasy-football
import React, { Component } from 'react'; import './PositionFilters.css'; const POSITION_COLUMN_INDEX = 8; class PositionFilters extends Component { onPositionFilterClick(e) { const el = e.target; const pos = el.dataset.position; this.props.filters.POS[pos] = !this.props.filters.POS[pos]; this.filt...
ajax/libs/griddle-react/1.0.0-alpha.13/griddle.js
menuka94/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Griddle"] = factory...
src/components/Tooltip/Tooltip.js
propertybase/react-lds
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ControlledTooltip, { POSITIONS } from './ControlledTooltip'; class Tooltip extends Component { static propTypes = { /** * Will be wrapped with a div referencing the tooltip */ children: PropTypes.node.isRequired, ...
app/javascript/mastodon/features/explore/suggestions.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import AccountCard from 'mastodon/features/directory/components/account_card'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { ...
Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
thotegowda/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/views/Register.js
avencat/bjtu-software-project-training
import React, { Component } from 'react'; import Nav from '../components/Navbar'; import UserForm from '../components/UserForm'; import 'whatwg-fetch'; import Alert from '../components/Alert'; class Register extends Component { constructor(props) { super(props); this.state = { login: '', email:...
ajax/libs/rxjs/2.3.23/rx.lite.compat.js
r3x/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...
app/components/Counter.js
Sebkasanzew/Electroweb
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './Counter.css'; class Counter extends Component { props: { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => void, counter: number }; ...
packages/material-ui-icons/src/Filter.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Filter = props => <SvgIcon {...props}> <path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-...
app/javascript/mastodon/components/poll.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import Motion fr...
src/svg-icons/image/filter-hdr.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
test/test_helper.js
eriksecker/egan-game-201702
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/vendor/recharts/lib/container/Layer.js
happyboy171/Feeding-Fish-View-
'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]; } } }...
examples/todomvc/test/components/TodoItem.spec.js
gajus/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoItem from '../../components/TodoItem' import TodoTextInput from '../../components/TodoTextInput' function setup( editing = false ) { const props = { todo: { id: 0, text: 'Use Redux', ...
stories/components/form/index.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import Form from 'shared/components/form/form'; import FormInput from 'shared/components/form/formInput/formInput'; import FormButton from 'shared/components/form/formButton/formB...
challenge6/finished/node_modules/browserify-middleware/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.min.js
radhikabhanu/node-workshop
(function(e,t){function n(e){var t=e.length,n=ut.type(e);return ut.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Nt[e]={};return ut.each(e.match(ct)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ut.acceptData(e)){var o,a,s=ut.expan...
__tests__/index.android.js
bavuongco10/react-native-school-board
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
ajax/libs/js-data/1.0.0-alpha.5-6/js-data.js
itvsai/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data.js * @version 1.0.0-alpha.5-6 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"undefined...
node_modules/core-js/client/library.js
tsaini123/TestRepo2
/** * core-js 2.5.0 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2017 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The r...
docs/app/Examples/modules/Popup/Types/PopupExampleHtml.js
koenvg/Semantic-UI-React
import React from 'react' import { Popup, Card, Rating, Image } from 'semantic-ui-react' const IndividualCard = ( <Card> <Image src='http://semantic-ui.com/images/movies/totoro-horizontal.jpg' /> <Card.Content> <Card.Header> My Neighbor Totoro </Card.Header> <Card.Description> ...
client/modules/MenuBlog/components/MenuBlogList/MenuBlogList.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Table, Checkbox, Button } from 'react-bootstrap'; import { fetchMenuBlog, toggleTopic } from '../../MenuBlogActions'; import { getMenuBlogs, getCurrentPage } from '../../MenuBlogReducer'; import...
src/containers/App/App.spec.js
yichiang/ROS---Dashboard
import React from 'react' import { expect } from 'chai' import { shallow } from 'enzyme' import App from './App' import styles from './styles.module.css' describe('<App />', () => { let wrapper; let history = {}; beforeEach(() => { wrapper = shallow(<App history={history}/>) }) it('has a Router c...
ajax/libs/yui/3.0.0/loader/loader-debug.js
underyx/cdnjs
YUI.add('loader', function(Y) { (function() { /** * Loader dynamically loads script and css files. It includes the dependency * info for the version of the library in use, and will automatically pull in * dependencies for the modules requested. It supports rollup files and will * automatically use these when app...
ajax/libs/6to5/3.4.1/browser.js
hibrahimsafak/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
ajax/libs/react-bootstrap/0.25.0-alpha.0/react-bootstrap.js
ljharb/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["ReactBootstrap"] = ...
src/kanban/containers/Root.js
rdwrcode/myreact-demo
import React from 'react'; import { Provider } from 'react-redux'; import App from './App'; const Root = ({store}) => ( <Provider store={store}> <App /> </Provider> ); export default Root;
src/components/video/inboard.js
motion123/mbookmakerUI
/** * Created by tomihei on 17/03/03. */ import React from 'react'; import {grey500, darkBlack, lightBlack} from 'material-ui/styles/colors'; import FlatButton from 'material-ui/FlatButton'; import BoardAddCount from 'material-ui/svg-icons/content/add-circle-outline'; import AddVideoUser from '../const/addedVideoUser...
js/main.js
Heli-Copter/messaging-client
import React from 'react'; import ReactDOM from 'react-dom'; import './main.scss'; import Homepage from './Components/HomePage/homePage'; import Gallery from './Components/Gallery/gallery'; import * as OfflinePluginRuntime from 'offline-plugin/runtime'; import english from '../translations/english.json'; import hindi f...
components/Icon/index.js
sikhote/clairic
import React from 'react'; import PropTypes from 'prop-types'; import Text from '../Text'; import { colors } from '../../lib/styling'; import styles from './styles'; const Icon = ({ icon, ...props }) => ( <Text className="text" color={colors.white} {...props}> <style jsx>{styles}</style> <i className={`icon-...
client/domain/Demo/Default/components/UploadDemo.js
briefguo/learn-js
import React from 'react' // import URL from 'lib/fetchBy/resolveURL' import { Upload, Icon, message } from 'antd' import Styles from './UploadDemo.css' function getBase64(img, callback) { const reader = new FileReader() reader.addEventListener('load', () => callback(reader.result)) reader.readAsDataURL(img) }...
app/components/ColorPicker/components/Button/styles.js
JSSolutions/Perfi
import { StyleSheet } from 'react-native'; import { colors, dimensions } from '../../../../styles/index'; import fontWeights from '../../../../styles/fontWeights'; const { indent } = dimensions; export default StyleSheet.create({ button: { color: colors.green, marginHorizontal: indent * 1.5, fontWeight:...
ajax/libs/forerunnerdb/1.3.758/fdb-all.min.js
hare1039/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...
docs/app/Examples/collections/Form/FieldVariations/FormExampleRequiredField.js
aabustamante/Semantic-UI-React
import React from 'react' import { Form, Input } from 'semantic-ui-react' const FormExampleRequiredField = () => ( <Form> <Form.Field required> <label>Last name</label> <Input placeholder='Full name' /> </Form.Field> </Form> ) export default FormExampleRequiredField
public/js/components/chat/chatCard.react.js
TRomesh/Coupley
import React from 'react'; import Paper from 'material-ui/lib/paper'; import ChatCC from './ChatCC.react'; import MessageThread from './Messages.react'; import SelectFriend from './ChatTopBar.react'; import LoginStore from '../../stores/LoginStore'; const styleup = { height:50, width: 650, textAlign:'center', ...
app/javascript/mastodon/features/ui/components/column_link.js
dunn/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Icon from 'mastodon/components/icon'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span...
docs/src/examples/elements/Segment/Types/SegmentExamplePlaceholderInline.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Header, Icon, Segment } from 'semantic-ui-react' const SegmentExamplePlaceholderInline = () => ( <Segment placeholder> <Header icon> <Icon name='search' /> We don't have any documents matching your query. </Header> <Segment.Inline> <Button prim...
webclient/src/index.js
jadiego/bloom
import React from 'react'; import ReactDOM from 'react-dom'; //css import 'semantic-ui-css/semantic.min.css'; import './index.css'; //app import App from './components/App'; //redux import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; ...
client/components/utils/container.js
guyonroche/quaero
import React, { Component } from 'react'; // A Container component is one that reacts to and controls Redux state // This base class subscribes to the store state. // Derived classes can supply a transform to restructure the state if it needs // to be extended. class Container extends Component { constructor(props,...
components/Deck/ContentModulesPanel/QualityPanel/QualityPanel.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import { connectToStores } from 'fluxible-addons-react'; import DataSourceStore from '../../../../stores/DataSourceStore'; import PermissionsStore from '../../../../stores/PermissionsStore'; /*import DataSourceList from './DataSourceList'; import EditDataSo...
ajax/libs/react-dom/18.0.0-alpha-bdd6d5064-20211001/cjs/react-dom-server-legacy.node.development.js
cdnjs/cdnjs
/** @license React vundefined * react-dom-server-legacy.node.development.js * * 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. */ 'use strict'; if (process.env.NODE_ENV !== "productio...
src/svg-icons/action/chrome-reader-mode.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionChromeReaderMode = (props) => ( <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z"/> ...
js/components/uiApi.js
ZhnZhn/webgl-topics
"use strict"; exports.__esModule = true; exports.useState = exports.useImperativeHandle = exports.forwardRef = exports.Component = void 0; var _react = require("react"); exports.Component = _react.Component; exports.forwardRef = _react.forwardRef; exports.useState = _react.useState; exports.useImperativeHandle = _re...
ajax/libs/rxjs/2.2.22/rx.compat.js
jamesarosen/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...
config/paths.js
ericyd/surfplot-ui
/** * Provide paths for use in other config files. * * This is mostly taken from the boilerplate file * in the hello-world app created by create-react-app */ const path = require('path'); const fs = require('fs'); // Make sure any symlinks in the project folder are resolved: // https://github.com/facebookincubat...
src/App.js
myk5000/allisite2
import React, { Component } from 'react'; import Hero from './components/hero.jsx' import Services from './components/services.jsx' import Work from './components/work.jsx' import HSBook from './components/HSBook.jsx' import ContactMe from './components/contactme.jsx' import './css/main.css' var that; export default ...
ajax/libs/flocks.js/0.15.5/flocks.js
Nadeermalangadan/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /* eslint-env node,browser */ /** * The Flocks library module. * * @module Flocks * @main Flocks * @class Flocks */ // if it's in a <script> it's defined already // otherwise assume commonjs if (typeof React =...