path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/Option.js
taifen/react-select
import React from 'react'; import classNames from 'classnames'; const Option = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, // className (based on mouse position) isDisabled: React.PropTypes.bool, // the option is disabled isFocus...
src/routes/Tournaments/components/TournamentsList.js
akossebestyen/getrecd-client-redux
import React from 'react' import TournamentsForm from './TournamentsForm' import TeamList from './TeamList' import classes from './Tournaments.scss' import { Link } from 'react-router' export const TournamentsList = (props) => ( <div className="row"> <div className="col-md-6"> <h3>Create Tourney</h3> ...
client/src/index.js
forrana/reactql-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app/App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
CompositeUi/src/views/component/HelpText.js
kreta-io/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import './../../scss/components/_help-tex...
src/plugins/index.js
MeteorDevTools/meteor-dev-tools
import React from 'react'; import { createStore, compose, combineReducers } from 'redux'; import DDPReducers from './ddp/reducers'; import _ from 'underscore'; import DDPMonitor from './ddp'; let __store = null; const plugins = [{ name: 'DDP Monitor', reducers: DDPReducers, component: <DDPMonitor /> }]; module....
src/js/components/Header.js
kusera/sentrii
import React, { Component } from 'react'; export default class Header extends Component { constructor() { super(); } render() { return ( <div className='header-container row no-select'> <div className='title-group col-3-4'> <div className='title'>Sentrii</div> <div clas...
packages/material-ui-icons/lib/esm/BorderAllTwoTone.js
mbrookes/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M21 3H3v18h18V3zM11 19H5v-6h6v6zm0-8H5V5h6v6zm8 8h-6v-6h6v6zm0-8h-6V5h6v6z" }), 'BorderAllTwoTone');
src/renderers/shared/event/eventPlugins/__tests__/ResponderEventPlugin-test.js
supriyantomaftuh/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...
ajax/libs/material-ui/5.0.0-alpha.36/ImageList/ImageList.min.js
cdnjs/cdnjs
import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";import{integerPropType}from"@material-ui/utils";import clsx from"clsx";import PropTypes...
src/modules/users/components/BookmarkedTextNode/BookmarkedTextNode.js
cltk/cltk_frontend
import React from 'react'; import PropTypes from 'prop-types'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Utils from '../../../../lib/util'; class BookmarkedTextNode extends React.Component { getChildContext() { return { mu...
src/main/webapp/scripts/7.3.0/jquery-1.11.3.js
convertigo/convertigo-webapp
/*! * jQuery JavaScript Library v1.11.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2015-04-28T16:19Z */ (function( global, factory ) { if ...
test/InputSpec.js
jareth/react-materialize
import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import TestUtils from 'react-addons-test-utils'; import Input from '../src/Input'; import Icon from '../src/Icon'; describe('Input', function() { it('renders a text field by default', function() { let inst...
packages/material-ui-icons/src/SecurityOutlined.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="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z" /></g></React.Fra...
ajax/libs/6to5/3.4.0/browser.js
2947721120/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...
src/shared/components/modal/modal.js
OperationCode/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import ReactModal from 'react-modal'; import Section from 'shared/components/section/section'; import styles from './modal.css'; const Modal = ({ isOpen, title, onRequestClose, children }) => ( <ReactModal isOpen={isOpen} contentLabel={title} ...
src/FormGroup.js
leozdgao/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
src/website/app/demos/Button/common/DemoLayout.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Root from '../../common/DemoLayout'; import type { DemoLayoutProps } from '../../common/types'; const DemoLayout = (props: DemoLayoutProps) => ( <Root includeLastChild marginBottom="0.5rem" marginRight="0.5rem" {...props} /> ); export default DemoLayo...
packages/material-ui-icons/src/AccessTimeOutlined.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="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 ...
ajax/libs/vue-material/0.5.0/components/mdDialog/index.js
extend1994/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueMaterial=t():e.VueMaterial=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};r...
src/ContentBlocks/ContentLayoutEngine/index.js
grommet/grommet-cms-content-blocks
/* @flow */ import React, { Component } from 'react'; import type { LayoutProps } from './flowTypes'; import assignedLayoutProps from './utils'; import { Box, Section } from './styles'; export default class ContentLayoutEngine extends Component { static defaultProps = { applyLayout: true, }; props: LayoutPro...
ajax/libs/mobx-react/3.4.0-beta.1/native.min.js
nolsherry/cdnjs
!function(){function e(e,t,o){function n(e){return o?o.findDOMNode(e):null}function r(e){var t=n(e);t&&l.set(t,e),u.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react...
step6-serviceapi/node_modules/react-router/modules/RouterContext.js
jintoppy/react-training
import invariant from 'invariant' import React from 'react' import deprecateObjectProperties from './deprecateObjectProperties' import getRouteParams from './getRouteParams' import { isReactChildren } from './RouteUtils' import warning from './routerWarning' const { array, func, object } = React.PropTypes /** * A <...
blocks/page_list/templates/typeahead/index.js
jkoudys/janeswalk-web
/* global JanesWalk */ import { translateTag as t } from 'janeswalk/stores/I18nStore'; import { createElement as ce, Component } from 'react'; import { render } from 'react-dom'; const { startups, event } = JanesWalk; /** * Fold accent-characters into their accentless character * @param String str * @return ...
app/src/App.js
nickvertucci/Sundays-Are-For-Baseball
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
examples/todo/src/App.js
pspaulding/create-redux-module
import React from 'react'; import './App.css'; import {Provider} from 'react-redux'; import TodoLayout from './components/Todo/TodoLayout'; const App = ({store}) => ( <Provider store={store}> <TodoLayout /> </Provider> ); export default App;
src/components/Navigation/index.js
iris-dni/iris-frontend
import React from 'react'; import settings from 'settings'; import { IndexLink } from 'react-router'; import { debounce } from 'lodash'; import Overlay from 'components/Overlay'; import Logo from 'components/Logo'; import MenuItems from 'components/MenuItems'; import MenuTrigger from 'components/MenuTrigger'; import st...
static/src/index.js
eltrufas/cosmico
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/Root'; import configureStore from './store/configureStore'; import { browserHistory } from 'react-router'; import moment from 'moment'; import './index.css'; moment.locale('es'); const store = configureStore(); ReactDOM.rend...
Libraries/Geolocation/Geolocation.js
lzbSun/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/parser/hunter/beastmastery/CHANGELOG.js
FaideWW/WoWAnalyzer
import React from 'react'; import { Putro, Streammz } from 'CONTRIBUTORS'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; export default [ { date: new Date('2018-11-14'), changes: <> Created a module for <SpellLink id={SPELLS.BORN_TO_BE_WILD_TALENT.id} /> and <SpellLink id={SP...
GitLab-LIGO-Display-Wall/src/DIsplay Wall/node_modules/browser-sync/node_modules/socket.io/node_modules/debug/browser.js
qwerjkl112/CMPEN482
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chro...
app/components/Notes/AddNote.js
LlamaSantos/react_day4
'use strict'; import React from 'react'; import notesStore from '../../stores/notesStore'; import noteActions from '../../actions/noteActions'; export default React.createClass({ handleSubmit() { noteActions.addNote({ user: this.props.username, note: this.refs.note.getDOMNode().value, }); ...
ajax/libs/jquery.fancytree/2.5.1-0/jquery.fancytree.min.js
Showfom/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.5.0 * @dat...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
kurayama/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class Sidebar extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment =>...
packages/@lyra/state-router/demo-server/components/Main.js
VegaPublish/vega-studio
// @flow import type {Router} from '../../src/components/types' import React from 'react' import {StateLink, Link, RouteScope, withRouterHOC} from '../../src/components' import Product from './Product' import User from './User' type Props = { router: Router } export default withRouterHOC((props: Props) => { const...
generators/app/templates/src/routes/Counter/components/Counter.js
chenkaixia/generator-zcy-front-starter-kit
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
fannie/src/javascript/tablesorter-2.22.1/docs/js/jquery-1.4.4.min.js
flathat/IS4C
/*! * jQuery JavaScript Library v1.4.4 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/scripts/lib/react/lib/traverseAllChildren.js
sdwangbaotong/react-study
/** * 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. * */ 'use strict...
ajax/libs/yui/3.7.1/event-custom-base/event-custom-base.js
emmansun/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * 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. * @mo...
ajax/libs/inferno-mobx/5.4.1/inferno-mobx.min.js
sufuf3/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mobx"),require("inferno"),require("hoist-non-inferno-statics")):"function"==typeof define&&define.amd?define(["exports","mobx","inferno","hoist-non-inferno-statics"],t):t((e.Inferno=e.Inferno||{},e.Inferno.Mobx=e.Inferno.Mobx||{}),e....
src/app/core/atoms/icon/icons/question.js
blowsys/reservo
import React from 'react'; const Question = (props) => <svg {...props} x="0px" y="0px" viewBox="0 0 14.173 14.173"><g><g><path d="M7.773,11.452H6.286V9.915h1.488V11.452z M7.681,9.212H6.308v-0.2c0-0.551,0.066-0.987,0.199-1.333 c0.135-0.349,0.421-0.731,0.876-1.167l0.445-0.432c0.123-0.115,0.221-0.231,0.294-0.35C8.256,5.52...
src/svg-icons/hardware/keyboard.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboard = (props) => ( <SvgIcon {...props}> <path d="M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-9 3h2v2h-2V8zm0 3h2v2h-2v-2zM8 8h2v2H8V8zm0 3h2v2H8v-2zm-1 2H5v...
src/clincoded/static/libs/render_publish_status.js
ClinGen/clincoded
'use strict'; import React from 'react'; import moment from 'moment'; import { sortListByDate } from './helpers/sort'; /** * Method to render the publication status of a given GDM's classification * @param {array} snapshots - List of snapshots associated with classification * @param {boolean} stringOnly - Whether r...
src/components/browsevacancy/BrowseVacancy.js
Vasyl1989/Opus.ua
import React from 'react'; import Header from '../common/Header'; import Footer from '../common/Footer'; import Results from './Results'; import TitlebarBrowseVacancy from './TitlebarBrowseVacancy'; const BrowseVacancy = () => { return ( <div> <Header /> <TitlebarBrowseVacancy/> <Results /> ...
packages/material-ui-icons/src/SportsMotorsportsRounded.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M10.42 13c.87 0 1.58-.71 1.58-1.58 0-.65-.39-1.22-.99-1.47l-5.77-2.3c-1.4 1.47-2.42 3.3-2.9 5.35h8.08z" /><path d="M21.92 10.84C21.36 6.85 17.75 4 13.73 4c-2.53 0-4.87.81-6.79 2.1...
packages/material-ui-icons/src/MoneySharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M14 16h5V8h-5v8zm2-6h1v4h-1v-4zm-8 6h5V8H8v8zm2-6h1v4h-1v-4zM5 8h2v8H5zM2 4v16h20V4H2zm18 14H4V6h16v12z" /> , 'MoneySharp');
docs/src/pages/demos/tabs/IconTabs.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import Paper from 'material-ui/Paper'; import Tabs, { Tab } from 'material-ui/Tabs'; import PhoneIcon from 'material-ui-icons/Phone'; import FavoriteIcon from 'material-ui-icons/Favorite'; import PersonPinIcon from 'material-ui-icon...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
fhchina/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin } from 'react-intl'; import classnames from 'classnames'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import DialogStore from 'stores/DialogStore'; import ActivityStore from 'stores/ActivityStore'; //import A...
ajax/libs/zxcvbn/1.0.2/zxcvbn.js
Teino1978-Corp/Teino1978-Corp-cdnjs
(function(){var y,p,s,z,I,J,K,L,M,N,O,P,A,q,B,Q,R,S,T,U,V;O=function(b){var a,c;c=[];for(a in b)c.push(a);return 0===c.length};A=function(b,a){return b.push.apply(b,a)};U=function(b,a){var c,e,f,d,g;d=b.split("");g=[];e=0;for(f=d.length;e<f;e++)c=d[e],g.push(a[c]||c);return g.join("")};Q=function(b,a){var c,e,f,d;d=[];...
ajax/libs/forerunnerdb/1.3.460/fdb-core.js
kiwi89/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/Stepper/Step.spec.js
skarnecki/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import Step from './Step'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Step />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node, context = {}) => { return sha...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js
in2core/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, { Component } from 'react'; import PropTypes from 'prop-types'; function load(name) { return [ { id: 1, name: `${na...
modules/createSourceFactory.js
numso/react-dnd
'use strict'; exports.__esModule = true; exports['default'] = createSourceFactory; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as ...
examples/with-mux-video/pages/asset/[id].js
zeit/next.js
import { useEffect } from 'react' import Router, { useRouter } from 'next/router' import Link from 'next/link' import useSwr from 'swr' import Spinner from '../../components/spinner' import ErrorMessage from '../../components/error-message' import UploadPage from '../../components/upload-page' const fetcher = (url) =>...
src/script/App.js
dongseup/comms-component
import React, { Component } from 'react'; import {render} from 'react-dom'; import '../style/font.scss'; import '../style/entry.scss'; import WordContainer from './WordContainer'; render(<WordContainer />, document.getElementById('root'));
packages/material-ui-icons/src/PhonelinkSetupTwoTone.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 3v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2H9c-1.1 0-2 .9-2 2z" /><path d="M9.5 15.5c.29-.12.55-.29.8-.48l-.02...
app/javascript/mastodon/components/display_name.js
mstdn-jp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; render () { const displayNameHtml = { __html: this.props.account.get('display_name_ht...
ajax/libs/rxjs/2.3.4/rx.compat.js
a8m/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...
src/svg-icons/action/store.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStore = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); ActionStore = pure(ActionStore); ActionStore.displayName = ...
src/svg-icons/action/feedback.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFeedback = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); ActionFeedback = pure(Acti...
ajax/libs/js-data/1.6.3/js-data.js
peteygao/cdnjs
/*! * js-data * @version 1.6.3 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUniversalModul...
packages/material-ui-icons/src/RepeatTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 22v-3h12v-6h-2v4H7v-3l-4 4zM21 6l-4-4v3H5v6h2V7h10v3z" /> , 'RepeatTwoTone');
src/components/List/ListItem/index.js
adammockor/fridge
import React from 'react'; import styles from './styles.scss'; export default function ListItem ({children, actions}) { return ( <li className={styles.root}> <div className={styles.content}>{children}</div> <div className={styles.actions}>{actions}</div> </li> ); };
06-react-blogs/src/component/PostCollectionItem.js
iproduct/course-node-express-react
import React from 'react'; import PropTypes from 'prop-types'; import './PostCollectionItem.css'; import { NavLink, useNavigate } from 'react-router-dom'; const PostCollectionItem = ({ post, onDelete }) => { const navigate = useNavigate(); const navigateEditPost = (event) => { event.preventDefault(); ...
src/js/routes/Multiplier/components/Multiplier.js
vladiibine/trust-network
import React from 'react' export const Multiplier = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Multiplier: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Double </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
docs/src/app/components/pages/components/Divider/Page.js
kasra-co/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dividerReadmeText from './README'; import DividerExampleForm from './Exam...
test/PageItemSpec.js
nickuraltsev/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageItem from '../src/PageItem'; describe('PageItem', () => { it('Should output a "list item" as root element, and an "anchor" as a child item', () => { let instance = ReactTestUtils.renderIntoDocument( <PageItem href=...
src/sentry/static/sentry/app/icons/icon-bitbucket.js
gencer/sentry
import React from 'react'; import Icon from 'react-icon-base'; function IconBitbucket(props) { return ( <Icon viewBox="0 0 32 32" {...props}> <g id="icon-bitbucket" stroke="none" fill="currentColor"> <path d="M29.3673282,3.54600696 C29.1643282,3.25881969 28.9163282,3.01697779 28.6383282,2.80234309 ...
ajax/libs/clappr/0.0.26/clappr.js
rileyjshaw/cdnjs
require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]...
src/app.js
city41/pxtobrx
import 'babel/polyfill'; import React from 'react'; import FastClick from 'fastclick'; import App from './components/App'; function run() { // Render the top-level React component let props = { context: { onSetTitle: value => document.title = value } }; let element = React.createElement(App, prop...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
creynders/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize: '.8rem', }; var Cloudin...
src/web/app.js
lukemarsh/react-redux-boilerplate
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the favicon, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./...
packages/material-ui-icons/src/CropRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h7c.55 0 1 .45 1 1v7zm-9 2c-.55 0-1-.45-1-1V2c0-.55-.45-1-1-1s-1 .45-1 1v3H2c-.55 0-1 .45-1 1s.45 1 1 1h3v10c0 1.1.9 2 2 2h10v3c0 .55.45 1 1 1s1-.45 1-1v-3h3c.55 0 1-.45 1...
node_modules/react-router/es6/IndexLink.js
NathanBWaters/jb_club
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; }; import React from 'react'; import Link from './Link'; /** *...
docs/app/Examples/modules/Checkbox/Types/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const CheckboxTypesExamples = () => ( <ExampleSection title='Types'> <Message info> ...
examples/src/ControlledComponent/ControlledComponent.js
DanielMontesDeOca/react-autosuggest
require('./ControlledComponent.less'); import React, { Component } from 'react'; import utils from '../utils'; import Autosuggest from '../../../src/Autosuggest'; import SourceCodeLink from '../SourceCodeLink/SourceCodeLink'; import suburbs from 'json!../suburbs.json'; function getSuggestions(input, callback) { con...
react/features/video-menu/components/web/MuteRemoteParticipantsVideoDialog.js
gpolitis/jitsi-meet
/* @flow */ import React from 'react'; import { Dialog } from '../../../base/dialog'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import AbstractMuteRemoteParticipantsVideoDialog, { abstractMapStateToProps } from '../AbstractMuteRemoteParticipantsVideoDialog'; /...
client/index.js
Rosuav/monopoly-open-bid
import React from 'react'; import ReactDOM from 'react-dom'; import MainComponent from './main-component'; import store from './store'; import {Provider} from 'react-redux'; import './websocket'; document.addEventListener('DOMContentLoaded', () => ReactDOM.render(<Provider store={store}> <MainComponent /> </Provid...
app/components/ProfilesList.js
LouWii/syno-music-app
import React from 'react'; import { Link } from 'react-router' import Profile from './Profile' import '../styles/ProfilesList.global.css'; class ProfilesList extends React.Component { componentDidMount() { this.props.clearSelectedClientProfile() } renderProfile(idx, profile) { return ( <Profile k...
ajax/libs/angular.js/0.9.17/angular-scenario.js
blairvanderhoof/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
desktop/core/ext-py/Mako-0.8.1/doc/_static/jquery.js
xq262144/hue
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/Select/SelectInput.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { spy } from 'sinon'; import { ReactWrapper } from 'enzyme'; import keycode from 'keycode'; import { createShallow, createMount } from '../test-utils'; import { MenuItem } from '../Menu'; import consoleErrorMock from '../../test/utils/consoleErr...
src/app.js
CMP-Studio/BeaconDeploymentTool
import React from 'react'; import { Provider } from 'react-redux'; import configureStore from './store'; import { loadBeaconsFromFile } from './actions/data'; import WayfindingActor from './actors/wayfindingActor'; import RootScreen from './containers/rootScreen'; const store = configureStore(); store.dispatch(lo...
src/js/container/Layout.js
tpucci/jobads-webapp
import React from 'react'; import ScrollSpy from './ScrollSpy'; import Menu from './Menu'; export default class Layout extends React.Component { constructor(props) { super(props); } render() { return ( <div className="mainLayout"> <ScrollSpy> ...
ajax/libs/glamorous/3.7.0/glamorous.umd.min.js
maruilian11/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("glamor")):"function"==typeof define&&define.amd?define(["react","glamor"],t):e.glamorous=t(e.React,e.Glamor)}(this,function(e,t){"use strict";function n(e){return null==e||"function"!=typeof e&&"object"!=typeo...
src/js/components/Layer/stories/RTL.js
grommet/grommet
import React from 'react'; import { Box, Layer } from 'grommet'; export const RTLLayer = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Layer position="start" margin={{ vertical: 'small', start: 'xlarge', end: 'medium' }} > <Box height="small" overfl...
src/containers/Root.prod.js
reimertz/anolog
import React from 'react' import { Provider } from 'react-redux' import routes from '../routes' import { Router } from 'react-router' const Root = ({ store, history }) => ( <Provider store={store}> <Router history={history} routes={routes} /> </Provider> ) export default Root
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js
helloworld3q3q/keystone
import React from 'react'; import classnames from 'classnames'; import ListControl from '../ListControl'; import { Columns } from 'FieldTypes'; import { DropTarget, DragSource } from 'react-dnd'; import { setDragBase, resetItems, reorderItems, setRowAlert, moveItem, } from '../../actions'; const ItemsRow = Rea...
app/component/app.js
caoqianjie/react-webpack-demo1
import $ from 'jquery'; import NewsList from './NewsList' import React from 'react'; import { render } from 'react-dom'; import '../src/css/app.css'; function get(url) { return Promise.resolve($.get(url)); } get('https://hacker-news.firebaseio.com/v0/topstories.json') .then(function (stories) { return P...
src/Navigation/Navigation.js
brz0/chart-suite
import React from 'react'; import ReactTooltip from 'react-tooltip'; var Scroll = require('react-scroll'); var Link = Scroll.Link; var Events = Scroll.Events; var scroll = Scroll.animateScroll; var scrollSpy = Scroll.scrollSpy; export default class Navigation extends React.Component { componentDidMo...
src/components/UnorderedList/UnorderedList-story.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { storiesOf } from '@storybook/react'; import ListItem from '../ListItem'; import UnorderedList from '../U...
js/jqwidgets/demos/react/app/tagcloud/bindingtojson/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTagCloud from '../../../jqwidgets-react/react_jqxtagcloud.js'; class App extends React.Component { render () { let url = '../sampledata/beverages.txt'; // prepare the data let source = { datatype: 'j...
src/svg-icons/action/compare-arrows.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCompareArrows = (props) => ( <SvgIcon {...props}> <path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/> </SvgIcon> ); ActionCompareArrows = pure(ActionCompareArrows); Acti...
src/components/layout/test/index.js
unindented/whitelist-chrome
import React from 'react' import Layout from 'components/layout' import {render} from 'utils/test' describe('Layout', function () { beforeEach(function () { const location = {query: {details: 'eyJocmVmIjoiaHR0cHM6Ly91bmluZGVudGVkLm9yZy8iLCJob3N0bmFtZSI6InVuaW5kZW50ZWQub3JnIn0='}} this.element = render(<Layou...
client/app/containers/HomePage/index.js
gustblima/what-can-i-play-with-my-friends
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import Modal from 'react-modal'; import { createStructuredSelector } from 'reselect'; import { List, Map } from 'immutable'; impor...
client/src/components/Gifts.js
xmas-bunch/amigo-invisible
import React, { Component } from 'react'; import Gift from './Gift'; class Gifts extends Component { componentDidMount() { this.props.getGifts(); } render() { let mainContent; if (this.props.gifts.length) { mainContent = this.props.gifts.map(gift => { r...
app/javascript/flavours/glitch/features/account_timeline/components/header.js
Kirishima21/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from 'flavours/glitch/features/account/components/header'; import ActionBar from 'flavours/glitch/features/account/components/action_bar'; import ImmutablePureComponent from 'rea...
src/components/LoadingButton.js
codevinsky/deep-ellum-jukebox-ui
import React from 'react'; import { Button } from 'react-bootstrap'; class LoadingButton extends React.Component { constructor(...args) { super(...args); this.state = {isLoading: false} } render() { let isLoading = this.state.isLoading; let style = this.props.bsStyle || 'default'; let load...
app/components/Home/LeftPanel/LeftPanel.js
rjzheng/kzhomepanel
import React from 'react'; import WeatherWidget from 'WeatherWidget'; import CalendarWidget from 'CalendarWidget'; import TaskWidget from 'TaskWidget'; import GroceryWidget from 'GroceryWidget'; function LeftPanel() { return ( <div className="left-panel"> <WeatherWidget /> <CalendarWidget /> <d...
app-kanban-flux/components/KanbanBoardContainer.js
singun/kanban-app
import React, { Component } from 'react'; import update from 'react-addons-update'; import KanbanBoard from './KanbanBoard'; import { throttle } from '../utils'; import { Container } from 'flux/utils'; import CardActionCreators from '../actions/CardActionCreators'; import CardStore from '../stores/CardStore'; import ...
src/containers/ui/NavbarLogoutButton/NavbarLogoutButtonView.js
jeanlescure/detox-react-native-demo
/** * Navbar Logout Button */ import React from 'react'; import PropTypes from 'prop-types'; import { TouchableOpacity } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Icon from 'react-native-vector-icons/Ionicons'; /* Component =======================================================...