path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
node_modules/react/lib/ChangeEventPlugin.js
skinsshark/skinsshark.github.io
/** * 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. * * @providesModule ...
packages/material-ui-icons/src/ColorLensRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67...
src/Gamepad.js
SBRK/react-gamepad
import React from 'react' import { XBOX } from './layouts' class Gamepad extends React.Component { static defaultProps = { layout: XBOX, stickThreshold: 0.5, deadZone: 0.08, gamepadIndex: 0, onConnect: () => {}, onDisconnect: () => {}, onButtonDown: () => {}, onButtonUp: () => {}...
src/boto/docs/build/html/_static/jquery.js
ssvsergeyev/ZenPacks.zenoss.AWS
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==...
src/js/components/nodes/NodesTableView.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
docs/src/examples/elements/Input/Variations/InputExampleIcon.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleIcon = () => <Input icon='search' placeholder='Search...' /> export default InputExampleIcon
ajax/libs/react/18.1.0-next-354772952-20220420/umd/react.development.js
cdnjs/cdnjs
/** * @license React * react.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. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'unde...
ajax/libs/material-ui/5.0.0-alpha.28/Icon/Icon.min.js
cdnjs/cdnjs
import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{unstable_composeClasses as composeClasses}from"@material-ui/unstyled";im...
ajax/libs/react-router/2.4.0/ReactRouter.js
cdnjs/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["ReactRouter"] = fac...
src/svg-icons/communication/call-missed.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMissed = (props) => ( <SvgIcon {...props}> <path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/> </SvgIcon> ); CommunicationCallMissed = pure(CommunicationCallMissed); CommunicationC...
test/components/Header.spec.js
kadira-samples/react-storybook-demo
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Header from '../../components/Header' import TodoTextInput from '../../components/TodoTextInput' function setup() { const props = { addTodo: expect.createSpy() } const renderer = TestUtils.createRend...
spec/javascripts/jsx/grading/GradingPeriodFormSpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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...
src/svg-icons/av/video-label.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideoLabel = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 13H3V5h18v11z"/> </SvgIcon> ); AvVideoLabel = pure(AvVideoLabel); AvVid...
app/components/H3/index.js
anhldbk/react-boilerplate
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
enrolment-ui/src/modules/ProjectUsers/components/ModalReqForm.js
overture-stack/enrolment
import React from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { Modal } from 'react-bootstrap'; import { RFSelect, rules } from '../../ReduxForm'; import EmailList from './EmailList'; import { toggleModal } from '../redux'; const SuccessMessage = props => { ...
node_modules/react-native-htmlview/AutoSizedImage.js
tausifmuzaffar/bisApp
import React from 'react'; import { Image, Dimensions, } from 'react-native'; const {width} = Dimensions.get('window'); const baseStyle = { backgroundColor: 'transparent', }; export default class AutoSizedImage extends React.Component { constructor(props) { super(props); this.state = { // set w...
addons/storyshots/stories/directly_required/index.js
shilman/storybook
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import Button from './Button'; storiesOf('Another Button', module) .add('with text', () => <Button onClick={action('clicked')}>Hello Button</Button>) .add('with some emoji', () => <Button onClick={action('clicked')}>😀 😎 👍 💯</Butto...
ajax/libs/react-autocomplete/1.4.0/react-autocomplete.min.js
Piicksarn/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactAutocomplete=e(require("react"),require("react-dom")):t.ReactAutocomplete=e(t.React,t.React...
ajax/libs/glamorous/3.23.3/glamorous.umd.js
holtkamp/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) : typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) : (global.glamorous = factory(global.React,global.Glamor)); }(this, (function ...
pkg/interface/groups/src/js/components/lib/icons/sigil.js
jfranklin9000/urbit
import React, { Component } from 'react'; import { sigil, reactRenderer } from 'urbit-sigil-js'; export class Sigil extends Component { render() { const { props } = this; const classes = props.classes || ''; const rgb = { r: parseInt(props.color.slice(1, 3), 16), g: parseInt(props.color.sli...
node_modules/react-select/test/Async-test.js
maty21/statistisc
'use strict'; /* eslint react/jsx-boolean-value: 0 */ // Emulating the DOM here, only so that if this test file gets // included first, then React thinks there's a DOM, so the other tests // (e.g. Select-test.js) that do require a DOM work correctly var jsdomHelper = require('../testHelpers/jsdomHelper'); jsdomHelper...
src/components/grid/Grid.component.js
acateland/react-flow-designer
import PropTypes from 'prop-types'; import React from 'react'; import { GRID_SIZE } from '../../constants/flowdesigner.constants'; function Grid({ transformData }) { const largeGridSize = GRID_SIZE * transformData.k; return ( <g> <defs> <pattern id="grid" fill="none" stroke="#BFBDBD" st...
src/parser/rogue/shared/azeritetraits/SharpenedBlades.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SPECS from 'game/SPECS'; import Analyzer from 'parser/core/Analyzer'; class SharpenedBlades extends Analyzer { constructor(...args) { super(...args); ...
packages/react-instantsearch-dom/src/widgets/Pagination.js
algolia/react-instantsearch
import React from 'react'; import { connectPagination } from 'react-instantsearch-core'; import PanelCallbackHandler from '../components/PanelCallbackHandler'; import Pagination from '../components/Pagination'; /** * The Pagination widget displays a simple pagination system allowing the user to * change the current ...
src/DropdownMenu.js
bbc/react-bootstrap
import React from 'react'; import keycode from 'keycode'; import classNames from 'classnames'; import RootCloseWrapper from 'react-overlays/lib/RootCloseWrapper'; import ValidComponentChildren from './utils/ValidComponentChildren'; import createChainedFunction from './utils/createChainedFunction'; class DropdownMenu e...
frontend/test/app/containers/NotFoundPage-test.js
6a68/idea-town
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import NotFoundPage from '../../../src/app/containers/NotFoundPage'; describe('app/containers/NotFoundPage', () => { it('should render notFoundHeader string', () => { expect(shallow(<NotFoundPage />) // HACK: .fin...
ajax/libs/foundation/4.1.6/js/vendor/jquery.js
thetrickster/cdnjs
/*! * 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 ) { // Can't do t...
eslint-rules/__tests__/warning-and-invariant-args-test.js
inuscript/react
/** * Copyright 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-core *...
springboot/GReact/src/main/resources/static/app/components/forms/inputs/Timepicker.js
ezsimple/java
import React from 'react' import 'script-loader!bootstrap-timepicker/js/bootstrap-timepicker.min.js' export default class Timepicker extends React.Component { componentDidMount() { $(this.refs.input).timepicker() } render() { return ( <input type="text" {...this.props} ref="input"/> ) } }
packages/material-ui-icons/src/Landscape.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Landscape = 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>; Landscape = pure(Landscape); Landscape.muiName = 'SvgIcon'; export ...
client/trello/src/app/routes/home/routes/boardView/components/BoardViewHeader/BoardViewHeader.js
Madmous/Trello-Clone
import React from 'react'; import FontAwesome from 'react-fontawesome'; import PropTypes from 'prop-types'; import { UpdateBoardName } from '../../components/index'; import './BoardViewHeader.css'; const propTypes = { boardIdLocation: PropTypes.string.isRequired }; export default function BoardViewHeader(props)...
packages/cf-component-table/test/TableHeadCell.js
jroyal/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { TableHeadCell } from '../../cf-component-table/src/index'; test('should render', () => { const component = renderer.create( <TableHeadCell>TableHeadCell</TableHeadCell> ); expect(component.toJSON()).toMatchSnapshot(); }); test('...
node_modules/react-icons/fa/random.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaRandom = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m14.9 10.7q-1.4 2.1-3.1 6.1-0.5-1-0.8-1.6t-0.9-1.4-1.2-1.3-1.4-0.7-1.8-0.4h-5q-0.3 0-0.5-0.2t-0.2-0.5v-4.3q0-0.3 0.2-0.5t0.5-0.2h5q5.6 0 9.2 5z m25.1 17.9q0 0.3-0.2 0....
src/styles/theme-decorator.js
Unforgiven-wanda/learning-react
import React from 'react'; export default (customTheme) => { return function(Component) { return React.createClass({ childContextTypes : { muiTheme: React.PropTypes.object, }, getChildContext() { return { muiTheme: customTheme, }; }, render() {...
src/components/App/setViewport.js
bryanlelliott/bryan_site_react
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * 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, { Component } from 'react'; // eslint-disable-line no-unused-vars import { ...
fields/components/columns/IdColumn.js
Freakland/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, ...
packages/material-ui-icons/src/DvrOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 4H5v2h2v-2z" /> , 'DvrOutlined');
app/javascript/mastodon/components/skeleton.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const Skeleton = ({ width, height }) => <span className='skeleton' style={{ width, height }}>&zwnj;</span>; Skeleton.propTypes = { width: PropTypes.number, height: PropTypes.number, }; export default Skeleton;
app/components/H3/index.js
7ruth/PadStats2
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
app/components/Header/HeaderLink.js
MaleSharker/Qingyan
import React from 'react' import { Link } from 'react-router'; import styled from 'styled-components'; const HeaderLink = styled(Link)` display: inline-flex; flex-wrap: nowrap; padding: 0.25em 2em; margin: 1em; text-align: center; text-decoration: none; border-radius: 4px; -webkit-font-smoothing: ant...
ajax/libs/forerunnerdb/1.3.801/fdb-all.js
x112358/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/svg-icons/communication/ring-volume.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRingVolume = (props) => ( <SvgIcon {...props}> <path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0...
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Checkbox.js
jmanday/Master
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 ...
src/client/modules/home/homeContainer.js
arnold-iakab/universal-mern
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { generateRandomNumber, getWelcomeMessage, getApiInfo } from './homeActions'; import HomeComponent from './homeComponent'; import { getRandomNumber, retrieveWelcomeMessage, retrieveApiInfo } from './selectors'; import { ...
app/javascript/mastodon/features/list_editor/components/account.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../compone...
app/containers/ActionBar/index.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import Raven from 'raven-js'; import BigNumber from 'bignumber.js'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import { getTimeLeft } from '../Seat/index'; import { playIsPlayerTurn } from '../../sounds'; ...
demo/src/components/App/components/Header/Header.js
YingyuWu/react-autosuggest-fix-ios-scroll-issue
import styles from './Header.less'; import React, { Component } from 'react'; import fetch from 'isomorphic-fetch'; import Link from 'Link/Link'; import GitHub from 'GitHub/GitHub'; export default class Header extends Component { constructor() { super(); this.state = { stargazers: '2363' }; } ...
react/example/index.js
CrisDan1905/text-mask
import React from 'react' import App from './app' import ReactDOM from 'react-dom' ReactDOM.render( <App/>, document.querySelector('#content') )
ui/src/core/components/Loader.js
erlanglab/erlangpl
// @flow import React from 'react'; import './Loader.css'; type Props = { text: string }; const Loader = ({ text }: Props) => ( <div className="loader"> <div className="text-center"> <div className="spinner"> <div className="bounce1" /> <div className="bounce2" /> <div className...
src/svg-icons/action/get-app.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGetApp = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); ActionGetApp = pure(ActionGetApp); ActionGetApp.displayName = 'ActionGetApp'; export defau...
lib/vis-js/vis/dist/vis.js
MHenderson/graph-visualisations
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 1.0.1 * @date 2014-05-09 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
src/components/DataTable/TableToolbarAction.js
joshblack/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 PropTypes from 'prop-types'; import React from 'react'; import OverflowMenuItem from '../OverflowMenuItem'; const TableToolbarAction ...
src/components/contact.js
yvanbister/WeddingSite
import React, { Component } from 'react'; import Icon from './icon'; class Contact extends Component { render() { return( <div className="section-container" id="contact"> <div className="contact-container"> <h1>Contact</h1> <div className="row"> <div className="col-md-6 contactcard"> <...
modules/__tests__/History-test.js
zipongo/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import History from '../History' import Router from '../Router' import Route from '../Route' import createHistory from 'history/lib/createMemoryHistory' describe('History Mixin', function () { let node ...
src/svg-icons/hardware/keyboard-backspace.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardBackspace = (props) => ( <SvgIcon {...props}> <path d="M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"/> </SvgIcon> ); HardwareKeyboardBackspace = pure(HardwareKeyboardBackspace); Ha...
ajax/libs/material-ui/4.9.5/es/utils/useEventCallback.js
cdnjs/cdnjs
import * as React from 'react'; const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect; /** * https://github.com/facebook/react/issues/14099#issuecomment-440013892 * * @param {function} fn */ export default function useEventCallback(fn) { const ref = React.useRef(fn); ...
tests/lib/rules/vars-on-top.js
scriptdaemon/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require(".....
ajax/libs/react-slick/0.3.5/react-slick.min.js
marxo/cdnjs
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Slider=n(require("react")):t.Slider=n(t.React)}(this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var...
ajax/libs/axios/0.16.0/axios.js
jonobr1/cdnjs
/* axios v0.16.0 | (c) 2017 by Matt Zabriskie */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') ex...
ajax/libs/remoteStorage/0.10.0/remotestorage-nocache.amd.js
bootcdn/cdnjs
/** remotestorage.js 0.10.0, http://remotestorage.io, MIT-licensed **/ define([], function() { /** FILE: lib/promising.js **/ (function(global) { function getPromise(builder) { var promise; if(typeof(builder) === 'function') { setTimeout(function() { try { builder(promise); }...
client-web/client-web/src/components/AddNewRoom.js
ppsari/final
import React from 'react' import axios from 'axios' import { upload } from '../helpers/upload' import './AddNewRoom.css' const api = 'https://api.room360.ga/api' let newRoom = {} class AddNewRoom extends React.Component { constructor () { super() this.state = { isAddRoom: false, rooms: [] } ...
node_modules/react-color/lib/components/alpha/AlphaPointer.js
together-web-pj/together-web-pj
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.AlphaPointer = undefined; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _reactcss = require('reactcss'); var _reactcss2 = _interopRequireDefault(_reactcss); function _interopRequireDefault(obj...
packages/material-ui-icons/src/ShoppingCart.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.4...
app/containers/Chat/message-box.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; class MessageBox extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function constructor(props) { super(props); this.handleSend = this.handleSend.bind(this); } handleSend(event) { if (event.which === 13) { ...
src/svg-icons/action/account-circle.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountCircle = (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 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1....
components/UserGroups/Decks.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import DecksGrid from '../User/UserProfile/DecksGrid'; import { navigateAction } from 'fluxible-router'; import { FormattedMessage, defineMessages } from 'react-intl'; import { Button, Icon } from 'semantic-ui-react'; import fetchGroupDecks from '../../acti...
client-react/src/components/Accounts/Value.js
diman84/Welthperk
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { ContentBlock } from 'components'; import { Row, Col } from 'react-bootstrap'; import { WithTooltip } from 'components/Elements'; import { portfolioValue } from 'constants/staticText'; import { V...
app/components/LoadingIndicator/index.js
sulthan16/awesome-jr-frontend-sulthan
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/client/utils/utils.js
pmeijer/user-management-page
/* globals document */ /** * Utility functions * @author patrickkerrypei / https://github.com/patrickkerrypei */ import React from 'react'; import blockies from 'blockies'; /** * Format string so that only first letter is capitalized * Note: String.prototype.charAt & String.prototype.slice handle out of bounds ...
ajax/libs/react/0.9.0/react.js
oivoodoo/cdnjs
/** * React v0.9.0 */ !function(e){if("object"==typeof exports)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.React=e()}}(function(){var define,module,exports;return (fun...
src/comment.js
xorkevin/stratosphere
import React from 'react'; import Time from 'time'; class Comment extends React.PureComponent { constructor(props){ super(props); this.state = {hidden: props.hidden || false}; } hide(){ this.setState((prevState)=>{ return Object.assign({}, prevState, {hidden: true}); }); } show(){ ...
src/svg-icons/maps/local-grocery-store.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGroceryStore = (props) => ( <SvgIcon {...props}> <path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-...
src/components/Comments/CommentCard.js
niquepa/react-readable
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardTitle, CardSubtitle, CardText, CardActions, Button, Icon, Grid, Cell, Dialog, DialogHeader, DialogTitle, DialogBody, DialogFo...
client/modules/App/App.js
codejunky/neda
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import cookie from 'react-cookie'; // Import Style import styles from './App.css'; // import '../../../node_modules/bootstrap/dist/css/bootstrap.min.css'; // Import Components import Helmet from 'react...
node_modules/react-router/es6/withRouter.js
xuan6/admin_dashboard_local_dev
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 invariant from 'invariant'; import React from 'react';...
client/src/components/dashboard/messaging/reply-message.js
joshuaslate/mern-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { sendReply } from '../../../actions/messaging'; const form = reduxForm({ form: 'replyMessage', }); const renderField = field => ( <div> <input className="form-control" autoCo...
ajax/libs/yui/3.17.1/event-focus/event-focus-debug.js
tkirda/cdnjs
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Ev...
src/common/ErrorPages/e404.js
GerManson/bodymass
import React, { Component } from 'react'; import styles from './e404.css'; export default class e404 extends Component { render () { return ( <div className={styles.container}> <h1 className={styles.title}>404</h1> <a href='javascript:history.back()'>Go back</a> </div> ); } }
src/interface/statistics/Statistic.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Tooltip from 'common/Tooltip'; import InfoIcon from 'interface/icons/Info'; import DrilldownIcon from 'interface/icons/Link'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import './S...
ajax/libs/clappr/0.0.35/clappr.js
menuka94/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/client.js
NogsMPLS/react-redux-universal-hot-example
/* global __DEVTOOLS__ */ import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import createStore from './redux/create'; import ApiClient from './ApiClient'; import universalRouter from './universalRouter'; const history = new Browser...
src/icons/EjectIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class EjectIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/></svg>;} };
js/screens/WeeklyPage.js
msbu-tech/msbu-tech-anywhere
/** * Copyright (c) 2016 MSBU Tech. All Rights Reserved. * This program is distributed under MIT License. */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, ListView, Dimensions } from 'react-native'; import { getWeeklyList } from '../actions/weekly'; import Artic...
blueprints/component/files/src/components/__name__/__name__.js
hack-duke/hackduke-dayof
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h1><%= pascalEntityName %></h1> </div> ) export default <%= pascalEntityName %>
ajax/libs/jquery/1.8.3/jquery.js
koggdal/cdnjs
/*! * jQuery JavaScript Library v1.8.3 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time) */ (function(...
renderer/components/UI/CloseButton.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { themeGet } from '@styled-system/theme-get' import { Flex, Box } from 'rebass/styled-components' import X from 'components/Icon/X' const CloseButtonWrapper = styled(Box)` height: ${({ size }) => (size === 's' ...
src/index.js
jenkoian/hacktoberfest-checker
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root'));
app/containers/Map/index.js
nypl-spacetime/where
import React from 'react' import { connect } from 'react-redux' import { findDOMNode } from 'react-dom' import L from 'leaflet' require('leaflet-geotag-photo') import { createSelector } from 'reselect' import { selectMapDefaults } from 'containers/App/selectors' import { StyledContainer, StyledMap } from './style...
renderer/components/Onboarding/Steps/ConnectionDetails.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass/styled-components' import ConnectionDetailsManual from './ConnectionDetailsManual' import ConnectionDetailsString from './ConnectionDetailsString' import ConnectionDetailsContext from './ConnectionDetailsContext' import { FORM_TYPE...
src/components/cards/card_draw_two.js
camboio/yooneau
import React from 'react'; export default class CardDrawTwo extends React.Component{ render(){ const colour = this.props.card.colour ? this.props.card.colour : 'gray'; return( <svg className="card-draw-two-component" onClick={this.props.onClick} xmlns="http://www.w3.org/2000/svg" vi...
ache-dashboard/src/StartCrawler.js
ViDA-NYU/ache
import React from 'react'; import {AlertMessages} from './AlertMessage' import {api} from './RestApi'; class StartCrawler extends React.Component { DEFAULT_STATE = { crawlerId: '', crawlType: null, seeds: null, seedsContent: null, modelFile: null, invalidModel: null, starting: false }...
docs/index.js
shixy/react-tap
import React from 'react' import ReactDom, {render} from 'react-dom' require('../index.js'); require('./demo.less'); class Main extends React.Component { onTap(index) { alert(index); } render () { return ( <div> <div className="demo-title">Tap</div> ...
app/containers/Dashboard/Overview.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import { createStructuredSelector } from 'reselect'; import web3Connect from '../AccountProvider/web3Connect'; import makeSelectAccountData from '../AccountProvider/selectors'; import messages from './messages'; import { txnsToList } from './txnsToList'; ...
ajax/libs/rxjs/2.3.16/rx.lite.compat.js
victorjonsson/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...
tests/components/Navigation/Navigation.spec.js
successkrisz/fx-rates-right
import React from 'react' import { shallow } from 'enzyme' import { IndexLink, Link } from 'react-router' import Navigation from 'components/Navigation' describe('(Component) Navigation', () => { let wrapper beforeEach(() => { wrapper = shallow(<Navigation />) }) it('Should render as a <div>', () => { ...
test/test_helper.js
jdiep79/TribalUser
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...
ajax/libs/jquery-tools/1.2.6/jquery.tools.min.js
maxklenk/cdnjs
/*! * jQuery Tools v1.2.6 - The missing UI library for the Web * * overlay/overlay.js * scrollable/scrollable.js * tabs/tabs.js * tooltip/tooltip.js * * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. * * http://flowplayer.org/tools/ * */ /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ ...
fixtures/dom/src/components/fixtures/input-change-events/RangeKeyboardFixture.js
wmydz1/react
import React from 'react'; import Fixture from '../../Fixture'; class RangeKeyboardFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { keydownCount: 0, changeCount: 0, }; } componentDidMount() { this.input.addEventListener('keydown'...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
liqk2014/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
modules/users/client/components/AboutMe.component.js
Trustroots/trustroots
// External dependencies import { useTranslation } from 'react-i18next'; import PropTypes from 'prop-types'; import React from 'react'; // Internal dependencies import '@/config/client/i18n'; import { plainTextLength } from '@/modules/core/client/utils/filters'; import ReadMorePanel from '@/modules/core/client/compone...