path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
app/src/components/Signin.js
mlang12/gameswipe
import React, { Component } from 'react'; import helpers from '../utils/helpers.js'; import { Redirect, Route } from 'react-router-dom'; class Signin extends Component { constructor(props) { super(props); this.state = { warn: "" } this.handleSubmit = this.handleSubmit.bind(this); this.handl...
src/svg-icons/communication/import-export.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportExport = (props) => ( <SvgIcon {...props}> <path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z"/> </SvgIcon> ); CommunicationImportExport = pure(CommunicationImpo...
src/components/Common/WhenFieldChanges.js
oraclesorg/ico-wizard
import React from 'react' import { Field } from 'react-final-form' import { OnChange } from 'react-final-form-listeners' export const WhenFieldChanges = ({ field, becomes, set, to }) => ( <Field name={set} subscription={{}}> {( // No subscription. We only use Field to get to the change function { inp...
modules/State.js
jepezi/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that need to know the path, routes, URL * params and query that are currently active. * * Example: * * import { State } from 'react-router'; * * var AboutLink = React.createClass({ * mixins: [ State ], * re...
ajax/libs/react/0.5.2/react-with-addons.min.js
athanclark/cdnjs
/** * React (with addons) v0.5.2 * * Copyright 2013 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 require...
examples/api/api_custom.js
DigitalGlobe/jetset
import React from 'react'; import { apiDecorator } from '../../src'; const doAsyncStuff = data => new Promise( resolve => setTimeout(() => resolve( data.map( item => ({ ...item, foo: 'bar' }) ) ) ) ); export const users = apiDecorator({ url: 'https://jsonplaceholder.typicode.com', users: { routes: {...
src/funponents/Day.js
rspica/Sugr
import React from 'react'; import './App.css'; import './Main.js'; //connect all this to SUBMIT button/page const Day = props => ( <div id="resultWell"> <ul> <li> <div className="well"> <div className="panel-body" data-value={props.sugar}> <h5 id="dayTotal"> {this...
client/src/components/Header/components/Login.js
BhaveshSGupta/FreeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { navigate as gatsbyNavigate } from 'gatsby'; import { Button } from '@freecodecamp/react-bootstrap'; import { hardGoTo as navigate, isSignedInSelector } from '../../....
packages/material-ui-icons/src/DomainRounded.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 7V4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V8c0-.55-.45-1-1-1h-9zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2...
packages/coinstac-ui/app/render/index.js
MRN-Code/coinstac
/* eslint-disable react/jsx-filename-extension */ import React from 'react'; import { render } from 'react-dom'; import { hashHistory } from 'react-router'; import { ipcRenderer } from 'electron'; import { Provider as ReduxProvider } from 'react-redux'; import { syncHistoryWithStore } from 'react-router-redux'; import ...
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/unit/autocomplete/autocomplete_options.js
andrewnc/brackets
(function( $ ) { module( "autocomplete: options" ); var data = [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby", "python", "c", "scala", "groovy", "haskell", "perl" ]; test( "appendTo", function() { expect( 5 ); var element = $( "#autocomplete" ).autocomplete(); equal( element.autocomplete( "widg...
ajax/libs/flocks.js/0.15.2/flocks.js
Amomo/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /** * 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 === 'undefined') { var Reac...
files/babel/5.2.7/browser-polyfill.js
jtblin/jsdelivr
(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/babel-core/5.7.0/browser-polyfill.js
yinghunglai/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...
server/markup/Html.js
vinks/redux-ultimate-ssr
/* global webpackIsomorphicTools */ import React from 'react' import Helmet from 'react-helmet' import serialize from 'serialize-javascript' import _ from 'lodash' const Html = ({ store, appString, asyncState }) => { // Should be declared after "renderToStaticMarkup()" of "../server.js" or it won't work const hea...
src/svg-icons/action/view-agenda.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewAgenda = (props) => ( <SvgIcon {...props}> <path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5...
intranet/static/vendor/fontawesome-free-5.11.2/js/brands.js
tjcsl/ion
/*! * Font Awesome Free 5.11.2 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ (function () { 'use strict'; var _WINDOW = {}; var _DOCUMENT = {}; try { if (typeof window !== 'undefined') _WINDOW = wi...
examples/real-world/index.js
rmadsen/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import BrowserHistory from 'react-router/lib/BrowserHistory'; React.render( <Root history={new BrowserHistory()} />, document.getElementById('root') );
src/client.js
martinval/boiler2
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import useScroll from 'scroll-behavior/lib/useStandardScroll'; imp...
imports/ui/components/categories/MultiSelectCheckbox.js
hwillson/file-metadata-manager
import React, { Component } from 'react'; import { Form, Checkbox } from 'react-bootstrap'; import { updateCategoryMultiSelectSetting, } from '../../../api/categories/methods'; class MultiSelectCheckbox extends Component { constructor(props) { super(props); this.state = { checked: props.checked, ...
src/input/test_textinputinui.js
sword42/react-ui-helpers
import React from 'react' import ReactDOM from 'react-dom' import { mapValues, isString, isNil, forOwn, isEmpty } from 'lodash' import { createInputModel } from './InputModel.js' import { validateEmail, validateRequired } from './Validators.js' import { TextInput } from './TextInput.jsx' var info = { model1: null, ...
src/components/YandexShare/YandexShare.js
everdimension/check.ru
import React from 'react'; import './YandexShare.css'; class YandeShare extends React.Component { componentWillMount() { const script = document.createElement('script'); script.setAttribute('src', '//yandex.st/share/share.js'); document.head.appendChild(script); } render() { return ( <div className=...
src/components/main-bio.js
nprail/blog
import React from 'react' import { useStaticQuery, graphql } from 'gatsby' import Image from 'gatsby-image' import './main-bio.css' const socialURLs = { twitter: 'https://twitter.com', github: 'https://github.com', facebook: 'https://facebook.com', medium: 'https://medium.com', linkedin: 'https://linkedin.c...
src/components/tool-button/tool-button.component.js
GeoTIFF/geotiff.io
import React from 'react'; import { Link } from 'react-router-dom'; const ToolButtonComponent = ({ name, iconUrl, path }) => ( <Link to={path} className='tool-button'> <i style={{ backgroundImage: `url(${iconUrl})` }}></i> <p>{name}</p> </Link> ); export default ToolButtonComponent;
ajax/libs/react-bootstrap/0.24.0-alpha.3/react-bootstrap.min.js
viskin/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(s){if(r[s])return ...
ajax/libs/video.js/6.2.3/alt/video.novtt.js
BenjaminVanRyseghem/cdnjs
/** * @license * Video.js 6.2.3 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ...
docs/v5/layouts/src/demos/SplitContent/Left.js
Bandwidth/shared-components
import React from 'react'; import { SplitContentLayout } from '../../../../src'; import { Form, SidebarList } from '../widgets'; import { H2, Button, Anchor } from '@bandwidth/shared-components'; export default () => ( <SplitContentLayout mainContentLocation="left" gutter> <SplitContentLayout.SecondaryContent> ...
ajax/libs/jquery.fancytree/2.22.5/jquery.fancytree-all.min.js
sufuf3/cdnjs
/*! jQuery Fancytree Plugin - 2.22.5 - 2017-05-11T17:01:53Z * https://github.com/mar10/fancytree * Copyright (c) 2017 Martin Wendt; Licensed MIT */ (function( factory ) { if ( typeof define === "function" && define.amd ) { define( [ "jquery" ], factory ); } else { factory( jQuery ); } }(function( $ ) { !fun...
Documentation/Porto/assets/js/jquery.js
hyj5320/adgo_1.01
/*! jQuery v1.7.1 jquery.com | jquery.org/license */ (function( window, undefined ) { // Use the correct document accordingly with window argument (sandbox) var document = window.document, navigator = window.navigator, location = window.location; var jQuery = (function() { // Define a local copy of jQuery var jQuer...
node_modules/react-icons/fa/houzz.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaHouzz = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.9 26.6l11.5-6.6v13.2l-11.5 6.6v-13.2z m-11.4-6.6v13.2l11.4-6.6z m11.4-19.8v13.2l-11.4 6.6v-13.2z m0 13.2l11.5-6.6v13.2z"/></g> </Icon> ) export default FaHouzz...
ajax/libs/react-highcharts/8.3.0/ReactHighmaps.src.js
tonytomov/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("highcharts/highmaps")); else if(typeof define === 'function' && define.amd) define(["react", "highcharts/highmaps"], factory); else if(type...
ajax/libs/primereact/6.4.1/components/tabmenu/TabMenu.min.js
cdnjs/cdnjs
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Tab...
src/app/development/volume/VolumeDataReceivers.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; // import DataModal from './DataModal'; import HierarchicalSelect from './HierarchicalSelect'; import GranularDash from './GranularDash'; import StatusDash from './StatusDash'; import PermitsTable from '../permits/PermitsTable'; import { dateDisplayOptsFu...
src/components/ForgotUserName/ForgotUserNameCtrl.js
folio-org/stripes-core
import React, { Component } from 'react'; import { withRouter, Redirect, } from 'react-router-dom'; import { connect as reduxConnect } from 'react-redux'; import PropTypes from 'prop-types'; import { validateForgotUsernameForm } from '../../validators'; import processBadResponse from '../../processBadResponse'; im...
modux-js-pcreations/src/DevTools.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /> </Dock...
src/js/vendor/jquery-1.11.2.min.js
kmattiko/TIY-Github
/*! 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...
ajax/libs/forerunnerdb/1.3.640/fdb-legacy.js
holtkamp/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...
node_modules/react-router-dom/es/Link.js
lujinming1/hejicaoye
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]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/components/AddChitButton.js
paramadeep/chit
import React from 'react'; import {Button, StyleSheet} from 'react-native'; const AddChitButton = ({gotoAddChit}) => { return ( <> <Button title="+ New Chit" styles={styles.newChit} onPress={gotoAddChit} /> </> ); }; const styles = StyleSheet.create({ newChit: {}, });...
app/src/index.js
nickvertucci/moneyball-fantasy-baseball
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
internals/templates/containers/App/index.js
7ruth/PadStats2
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/svg-icons/social/person-outline.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPersonOutline = (props) => ( <SvgIcon {...props}> <path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C...
ajax/libs/react-virtualized/4.6.3/react-virtualized.min.js
nolsherry/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(o){if(...
tests/react/hoc.js
claudiopro/flow
// @flow import React from 'react'; function myHOC( Component: React$ComponentType<{foo: number, bar: number}>, ): React$ComponentType<{foo: number}> { return class extends React.Component<{foo: number}, {bar: number}> { state = {bar: 2}; render() { <Component />; // Error: `foo` is required. ...
lib/paginators/paginator.js
ferencrocks/meteor-reactive-data
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export const Paginator = (PaginatorComponent) => { class PaginatorProvider extends Component { render() { const { dataCount, rowsPerPage, currentPage, setCurrentPage } = this.context; ...
renderer/components/Emoji.js
mjswensen/themer-gui
import React from 'react'; import classnames from 'classnames'; import css from './Emoji.css'; export default ({ emoji, right = false }) => ( <span className={ classnames(css.emoji, { [css.right]: right }) }>{ emoji }</span> );
files/yasgui/1.1.2/yasgui.min.js
cesarmarinhorj/jsdelivr
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
frontend/src/components/TableHelper/TableHelper.js
jippi/hashi-ui
import React from "react" import PropTypes from "prop-types" import { Table, TableHeader, TableRow, TableHeaderColumn, TableBody } from "../Table" const TableHelper = ({ headers, body }) => <Table> <TableHeader> <TableRow> {headers.map(header => <TableHeaderColumn key={header}> ...
test/components/ActiveFilters.spec.js
Byte-Code/lm-digitalstore
import React from 'react'; import { fromJS } from 'immutable'; import { shallow } from 'enzyme'; import ActiveFilters, { OtherFilters } from '../../app/components/ActiveFilters'; import Filter from '../../app/components/Filter'; describe('ActiveFilters', () => { const toggleFilter = () => {}; const toggleAvailabi...
ajax/libs/react-highcharts/11.5.0/index.src.js
jdh8/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("highcharts")); else if(typeof define === 'function' && define.amd) define(["react", "highcharts"], factory); else if(typeof exports === 'ob...
src/hoc.js
jasonmorita/react-redux-ui-state
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import isEqual from 'lodash/isEqual'; import omit from 'lodash/omit'; import { dispatchToProps, generateName, generateResetUiState, generateSetUiState, stateToProps } from './'; expo...
src/components/Privacy/Privacy.js
eunvanz/flowerhada
import React from 'react' export const Privacy = () => ( <div dangerouslySetInnerHTML={{ __html: '개인정보 처리방침' }} /> ) export default Privacy
ui/plugin/js/components/PluginExample.js
rdelval/aurora
// This is an example of how to replace components with your own custom UI logic. import React from 'react'; // You can import the original OSS component if you'd just like to wrap it. import OSSPluginExample from '../../../src/main/js/components/PluginExample'; // Add your own CSS by importing files directly import ...
blueocean-material-icons/src/js/components/svg-icons/editor/pie-chart.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorPieChart = (props) => ( <SvgIcon {...props}> <path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/> </SvgIcon> ); EditorPieChart.displayName ...
test/daypickerinput/events.js
saenglert/react-day-picker
import React from 'react'; import { mount } from 'enzyme'; import * as keys from '../../src/keys'; import DayPickerInput, { HIDE_TIMEOUT } from '../../src/DayPickerInput'; import DayPicker from '../../src/DayPicker'; describe('DayPickerInput', () => { describe('events', () => { describe('click', () => { ...
examples/js/custom/insert-modal/default-custom-insert-modal-header.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, InsertModalHeader } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; ...
admin/client/components/ListControl.js
mikaoelitiana/keystone
import React from 'react'; import classnames from 'classnames'; var ListControl = React.createClass({ propTypes: { onClick: React.PropTypes.func, type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired }, renderControl () { var icon = 'octicon octicon-'; var className = classnames('ItemLis...
frontend/app_v2/src/common/icons/More.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary More * @component * * @param {object} props * * @returns {node} jsx markup */ function More({ styling }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}> <path d="M0 0h24v24H0V0z" fi...
packages/material-ui-icons/src/BrushRounded.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="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34a.9959.9959 0 0 0-1....
ajax/libs/cyclejs-core/0.6.0/cycle.js
seogi1004/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...
app/javascript/mastodon/components/status_content.js
Ryanaka/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containers/poll_container'; import Icon ...
components/react-draft-wysiwyg/src/components/Option/__test__/optionTest.js
andresin87/wysiwyg
/* @flow */ import React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { shallow, mount } from 'enzyme'; import Option from '..'; describe('Option test suite', () => { it('should have a div when rendered', () => { expect(shallow( <Option value="b" onClick...
docs/src/sections/ButtonGroupSection.js
Terminux/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ButtonGroupSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
tests/baselines/reference/tscWatch/programUpdates/should-not-trigger-recompilation-because-of-program-emit/without-outDir-or-outFile-is-specified-with-declaration-enabled.js
microsoft/TypeScript
Input:: //// [/user/username/projects/myproject/file1.ts] export const c = 30; //// [/user/username/projects/myproject/src/file2.ts] import {c} from "file1"; export const d = 30; //// [/a/lib/lib.d.ts] /// <reference no-default-lib="true"/> interface Boolean {} interface Function {} interface CallableFunction...
ajax/libs/recompose/0.20.2/Recompose.js
rlugojr/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["Recompose"] = facto...
packages/material-ui-icons/src/TagFacesRounded.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="M12.01 2C6.49 2 2.02 6.48 2.02 12s4.47 10 9.99 10c5.53 0 10.01-4.48 10.01-10S17.54 2 12.01 2zm.01 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8...
ui/js/index.js
ericsoderberg/pbc-web
import 'whatwg-fetch'; import { polyfill as promisePolyfill } from 'es6-promise'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router-dom'; import { createBrowserHistory } from 'history'; import { Provider } from 'react-redux'; import reduxThunk from 'redux-thunk'; // impor...
ajax/libs/js-data/0.0.1/js-data.js
amoyeh/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file js-data.js * @version 0.0.1 - Homepage <http://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"!=typeof modu...
ajax/libs/inferno/1.0.0-beta28/inferno-mobx.min.js
extend1994/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("./inferno-component"),require("./inferno-create-class"),require("./inferno-create-element")):"function"==typeof define&&define.amd?define(["inferno-component","inferno-create-class","inferno-create-element"],t):(e.Inferno=e.In...
src/views/ProgressBar.js
prashantpawar/blockapps-js-tutorial
import React from 'react' import './ProgressBar.scss' import ClassNames from 'classnames' import { Link } from 'react-router' export class ProgressBar extends React.Component { static defaultProps = { totalSteps: 4, currentStep: 1, finalStep: false } static propTypes = { totalSteps...
src/components/cart/cartCheckOut/CartCheckOutCtrlComponent.js
bluebill1049/cart
'use strict'; import React from 'react'; require('styles/cart/cartCheckOut/CartCheckOutCtrl.scss'); class CartCheckOutCtrlComponent extends React.Component { sendDate(){ alert('This function is still developing.'); } render() { return ( <div className="cartcheckoutctrl-component navigation-ctrl"...
src/exseed.contrib.basic/flux/views/pages/HomePage.js
exseed/exseed-boilerplate
import React from 'react'; export default class HomePage extends React.Component { handleClick() { alert('It works'); } render() { return <div className="container"> <h1>Home</h1> <button onClick={this.handleClick}>Click me</button> </div>; } };
src/components/Player.js
CoffeeCodeKevin/Solitude
import React from 'react'; import {Circle} from 'react-konva'; const Player = ({player, mapSize, cvHeight, cvWidth}) => { const tileHeight = (1 / mapSize) * cvHeight; const tileWidth = (1 / mapSize) * cvWidth; return ( <Circle width={tileWidth} height={tileHeight} x={(tileWidth * player.x)...
stories/Breadcrubms/ExampleThemes.js
skyiea/wix-style-react
import React from 'react'; import styles from './ExampleBreadcrumbs.scss'; import Breadcrumbs from '../../src/Breadcrumbs/Breadcrumbs'; const items = [{id: '1', value: 'first item'}, {id: '2', value: 'second item'}, {id: '3', value: 'third item'}]; export default () => <div> <div className={`${styles.onGrayBac...
src/views/Charts/Charts.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; import { Bar, Doughnut, Line, Pie, Polar, Radar } from 'react-chartjs-2'; const line = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [ { label: 'My First dataset', fill: false, lineTension: 0.1, background...
src/website/app/demos/Link/common/DemoLayout.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import type { StyledComponent } from '@emotion/styled-base/src/utils'; const Root: StyledComponent<{ [key: string]: any }> = styled('div')( ({ theme }) => ({ fontFamily: theme.fontFamily }) ); const DemoLayout = (props: Object) => <R...
src/components/BookList/index.js
romarioraffington/react-mybooks
// External Dependencies import React from 'react'; import PropTypes from 'prop-types'; // Our Dependencies import Book from '../Book'; const BookList = (props) => { const { books, isFetching, onShelfChange, onBookClick } = props; return ( <ol className="books-grid"> {isFetching ? <li className=...
components/Layout/Header.js
pushkin-consortium/front-end
import React from 'react'; import * as b from 'react-bootstrap'; import s from './Header.css'; import l from './Layout.css'; import { Link } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; class Header extends React.Component { constructor(){ super(); this.state = { mobile: fals...
frontend/src/js/components/notes/list.js
Producters/docker-node-react-starter
import React from 'react'; import { Table, Button } from 'elemental'; export default function NotesList(props) { return ( <Table className="notes-list"> <thead> <tr> <th>Text</th> <th></th> </tr> </thead> ...
src/components/Header/Header.js
thepechinator/pp-test-heroku
/** * 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...
techCurriculum/ui/solutions/3.1/src/index.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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 writ...
packages/material-ui-icons/src/ExploreOff.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M14.19 14.19l-1.41-1.41-1.56-1.56L11 11 9.81 9.81 4.93 4.93 2.27 2.27 1 3.54l2.78 2.78c-.11.16-.21.32-.31.48-.04.07-.09.14-.13.21-.09.15-.17.31-.25.47-.05.1-.1.21-.16.32-.06.14-.13.28-.19.43-.1.24-.19...
src/icons/StrokeMap.js
ipfs/webui
import React from 'react' const StrokeMap = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M83 31.44L63.22 19.11a1.52 1.52 0 0 0-.8-.23h-.23a1.53 1.53 0 0 0-.88.28c-.52.35-7.3 4.62-12.75 8.06L42.5 31c-6-3.76-18.27-11.76-18.8-12.14a1.5 1.5 0 0 0-1.45-.27 1.48 1.48 0 0 0-1 1.1c-.06.26-.12.54-.12 47.9a1...
src/client.js
peeyush1234/react-nodejs-skeleton
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-...
webpack/components/Content/Details/ContentDetailRepositories.js
johnpmitsch/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'patternfly-react'; import TableSchema from './ContentDetailRepositoryTableSchema'; const ContentDetailRepositories = ({ repositories }) => ( <div> <Table.PfProvider columns={TableSchema}> <Table.Header /> <Table.Bod...
src/redux/provider.js
phamtri2395/redux-starter
import React from 'react'; import { Provider } from 'react-redux'; // Create App export const createReduxApp = (injectedStore, routes) => ( <Provider store={injectedStore}> {routes} </Provider> );
modules/__tests__/RouteComponent-test.js
brandonlilly/react-router
/*eslint-env mocha */ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Router from '../Router' describe('a Route Component', function () { let node beforeEach(function () { node = document.createElement('div') }) afterEach(function (...
src/components/SearchFields.js
ataylorme/hazels-heritage-frontend
import React from 'react'; import {Row} from 'react-bootstrap'; import SearchInput from './SearchInput'; import TaxSelect from './TaxSelect'; class SearchFields extends React.Component { render() { let {queryArgs, mainIngredients, recipeTypes, updateArgs} = this.props; return ( <Row>...
app/components/Devices/DevicesPage.js
TheCbac/MICA-Desktop
// @flow /* ********************************************************** * File: components/Devices/DevicesPage.js * * Brief: Page for starting scan, and choosing scan * method. * * Author: Craig Cheney * * 2017.09.25 CC - Changed name to DevicesPage (from ScanForDevicesComponent) * Refactored out ScanMethodBtn, Sc...
src/components/head-meta/head-meta.js
mrMetalWood/brauselier
import React from 'react'; import Helmet from 'react-helmet'; const Meta = () => ( <Helmet> <html lang="de" /> <meta name="description" content="Limonade Rezensionen" /> <meta name="keywords" content="Brause, Limonade, Drinks, Rezensionen, Koffein" /> <title>Brauselier</title> ...
src/tags/simple.js
JimLiu/bbcode-to-react
import React from 'react'; import Tag from '../tag'; export default (name, attributes) => { class SimpleTag extends Tag { constructor(renderer, settings = {}) { super(renderer, settings); Object.keys(attributes || {}).forEach(key => { this[key] = attributes[key]; }); } toHTML(...
app/index.js
madeleinehuish/awesomeVideoApp
import App from './components/App'; import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <App />, document.getElementById('app') );
ajax/libs/forerunnerdb/1.3.556/fdb-core.js
holtkamp/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...
src/components/posts_show.js
937aaron/reduxblog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions/index'; class PostsShow extends Component { componentDidMount(){ const { id } = this.props.match.params; this.props.fetchPost(id); } ...
ajax/libs/forerunnerdb/1.3.687/fdb-core+views.min.js
dakshshah96/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/scenes/home/informationForm/formComponents/interests.js
hollomancer/operationcode_frontend
import React, { Component } from 'react'; import { Line } from 'rc-progress'; import { LANGUAGES, DISCIPLINES } from 'shared/constants/status'; import Form from 'shared/components/form/form'; import FormCheckBox from 'shared/components/form/formCheckBox/formCheckBox'; import PropTypes from 'prop-types'; import styles f...
src-ui/map-editor/dialogs/edit-comment-dialog.js
cdaniel/atlas2
/*jshint esversion: 6 */ var React = require('react'); import { Form, FormGroup, FormControl, ControlLabel, HelpBlock, Col, Radio, Input, Modal, Button, Glyphicon } from 'react-bootstrap'; var Constants = require('../single-map-constants'); import SingleMapActions from '../single-map-actions'; va...
app/jsx/assignments/GraderCountNumberInput.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
node_modules/react-bootstrap/es/ToggleButtonGroup.js
acalabano/get-committed
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/src/NaturePeopleSharp.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="M22.17 9.17c0-3.91-3.19-7.06-7.11-7-3.83.06-6.99 3.37-6.88 7.19.09 3.38 2.58 6.16 5.83 6.7V20H6v-3h1v-5H2v5h1v5h16v-2h-3v-3.88c3.47-.41 6.17-...