path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/routes.js
lian1925/redux
import React from 'react'; import {IndexRoute, Route} from 'react-router'; // import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Login, Index, } from 'containers'; export default ()=> { /** * Please keep routes in alphabetical order */ return ( <Route p...
src/components/NoteDialog.js
dggriffin/noteworthee
import React from 'react'; import { Dialog, FlatButton, TextField, Chip } from 'material-ui'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import HappyIcon from 'material-ui/svg-icons/social/mood'; import HappyIconBorder from 'material-ui/svg-icons/social/mood'; import SadIcon from 'material-u...
dashboard/components/TagList.js
MEDIGO/laika
import React from 'react' import { arrayOf, shape, string, bool } from 'prop-types' import Tag from './Tag' import './TagList.css' const TagList = ({ tags }) => <span className='lk-tag-list__status-list'> {tags.map(tag => ( <Tag key={tag.name} type={tag.enabled ? 'success' : null}> {tag.name} ...
template/app/screens/app/index.js
andreasrs/roc-base-web-react
import React from 'react'; import Helmet from 'react-helmet'; import Navbar from '../../components/navbar'; import Footer from '../../components/footer'; import styles from './style.scss'; export default class App extends React.Component { static propTypes = { children: React.PropTypes.node.isRequired ...
example/App.js
madjemian/react-expand-text
import React from 'react'; import ReactDOM from 'react-dom'; import ExpandText from '../src/expandtext.js'; class App extends React.Component { render() { return ( <div> <ExpandText maxLength={10} className='my-css-class' text={'I am a long stri...
test/header-test.js
melissa-c/Comms
import test from 'ava' import React from 'react' import {spy} from 'sinon' import {shallow, render, mount} from 'enzyme' import TestUtils from 'react-addons-test-utils'; //components import Header from '../src/components/header' import HeaderBtn from '../src/components/headerBtn' test('1/3 <Header /> returs page he...
ajax/libs/mobx-react/3.0.0/native.min.js
sreym/cdnjs
!function(){function e(e,t,n){function o(e){return n?n.findDOMNode(e):null}function r(e){var t=o(e);t&&c.set(t,e),d.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(e,t){var n=e[t],o=u[t];e[t]=function(){n&&n.apply(this,argume...
ajax/libs/muicss/0.2.1/react/mui-react.js
brix/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);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].exports...
ee/client/omnichannel/additionalForms/BusinessHoursMultiple.stories.js
iiet/iiet-chat
import React from 'react'; import { Box, Skeleton } from '@rocket.chat/fuselage'; import { BusinessHoursMultiple } from './BusinessHoursMultiple'; export default { title: 'omnichannel/businessHours/ee/BusinessHoursMultiple', component: BusinessHoursMultiple, }; const departmentList = [ [1, 'Support'], [2, 'Marke...
src/components/Header/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import classNames from 'classnames'; import Img from 'gatsby-image'; import { number, shape, string, node, oneOfType } from 'prop-types'; export function Header({ className, children, hero, alt, isPreview, ...props }) { return ( <header className={classNames('header main-header m...
src/transition/FixedDataTable.react.js
MalucoMarinero/fixed-data-table
/** * Copyright (c) 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 F...
packages/plutarch/tpls/redux-project/src/routes/DevTools.js
Alfred-sg/plutarch
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 /> ...
src/__tests__/Popup.js
lennerd/react-leaflet
import React from 'react'; jest.dontMock('../BaseTileLayer'); jest.dontMock('../MapComponent'); jest.dontMock('../MapLayer'); jest.dontMock('../PopupContainer'); jest.dontMock('../Map'); jest.dontMock('../Marker'); jest.dontMock('../Popup'); jest.dontMock('../TileLayer'); jest.dontMock('../index'); const {Map, Marker...
packages/material-ui-icons/src/NetworkLockedRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0zm0 0h24v24H0V0z" /><g><path d="M22 16v-.5c0-1.38-1.12-2.5-2.5-2.5S17 14.12 17 15.5v.5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1z...
node_modules/react-bootstrap/es/Fade.js
newphew92/newphew92.github.io
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React fr...
packages/icons/src/md/maps/PinDrop.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPinDrop(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M36 16c0 9-12 22-12 22S12 25 12 16c0-6.63 5.37-12 12-12s12 5.37 12 12zm-16 0c0 2.21 1.79 4 4 4s4-1.79 4-4-1.79-4-4-4-4 1.79-4 4zM10 40v4h28v-4H10z" /...
components/Services/Services.js
AptoGen/AptoGen-Website
import React from 'react'; import { COLORS, SPACING } from '../../lib/styles'; import H2 from '../Typography/H2'; import H5 from '../Typography/H5'; import P from '../Typography/Paragraph'; import strong from '../Typography/strong'; const Services = (props) => { return ( <article> <header> <H2>Se...
ajax/libs/intl-tel-input/5.7.4/js/intlTelInput.js
iamJoeTaylor/cdnjs
/* International Telephone Input v5.7.4 https://github.com/Bluefieldscom/intl-tel-input.git */ // wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery" ], function($) { factory($, window...
spec/react/portals/portals.spec.js
pivotal-cf/pivotal-ui
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-dom/test-utils'; import {PortalSource, PortalDestination} from '../../../src/react/portals'; describe('Portals', () => { let subject; class Potato extends React.Component { constructor(props, context) { super(...
src/screens/RecordingScreen.js
jjimenezlopez/ReactNativePOC
import React from 'react'; import { StyleSheet, Text, View, ActivityIndicator, TouchableWithoutFeedback } from 'react-native'; import { Icon } from 'react-native-elements'; import { connect } from 'react-redux'; import Sound from 'react-native-sound'; import AudioRecording from '../components/AudioRecording'; import *...
sites/default/files/js/js_563MDtt6kKfzS-sOueCzuapWK51DWpApnkQRILtgLyU.js
vgardner/d8-content-provider
/*! jQuery v2.1.3 | (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 windo...
modules/Redirect.js
upraised/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './PropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client should b...
src/svg-icons/notification/do-not-disturb-alt.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbAlt = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zM4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12zm8 8...
src/routes/homePage/index.js
terryli1643/daoke-react-c
import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Icon } from 'antd' const HomePage = () => { return ( <div className="content-inner"> <h2>欢迎使用稻壳物流,您身边的快递小助手!</h2> <div style={{ margin: '20px 0' }}> <Row gutter={48}> <Col span={8}> <div sty...
src/interface/icons/GitHubMarkLarge.js
ronaldpereira/WoWAnalyzer
import React from 'react'; const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 250" className="icon" {...other}> <path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 ...
docs/0.b5508016ff42670801be.js
lhf-nife/quark-ui
webpackJsonp([0],{ /***/ "0P4F": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PopoverDemo; }); /* har...
ajax/libs/material-ui/5.0.0-alpha.24/internal/svg-icons/NavigateNext.min.js
cdnjs/cdnjs
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");
mobile/mock ups/auth/App.js
parammehta/TravLendar
import React, { Component } from 'react'; import { View } from 'react-native'; import firebase from 'firebase'; import { Header, Button, Spinner, CardSection } from './src/components/common'; import LoginForm from './src/components/LoginForm'; class App extends Component { state = { loggedIn: null }; compone...
docs/app/Examples/elements/Segment/Variations/SegmentExampleClearing.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button, Segment } from 'semantic-ui-react' const SegmentExampleClearing = () => ( <Segment clearing> <Button floated='right'> floated </Button> </Segment> ) export default SegmentExampleClearing
src/Link.js
lin2jie2/react-hash-router
import React from 'react' import PropTypes from 'prop-types' import { history } from './h' export default class Link extends React.Component { static propTypes = { id: PropTypes.string, title: PropTypes.string, to: PropTypes.string, className: PropTypes.string, style: PropTypes.shape(), children: PropTyp...
ajax/libs/es6-shim/0.31.0/es6-shim.js
cdnjs/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.27.1 * see https://github.com/paulmillr/es6-shim/blob/0.27.1/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
client/routes/routes.js
LinearAtWorst/cogile
import React from 'react'; import { Router, Route, browserHistory, hashHistory, IndexRoute, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; import App from '../containers/App.js'; import Singleplayer from '../containers/Singleplayer.js'; import Multiplayer from '../containers/Multip...
public/js/jquery-1.9.1.min.js
unexaminedlife/pkuaasa-web
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
app/MnmNewsRow.js
APSL/react-native-meneame
/* @flow */ import React from 'react' import { StyleSheet, View, PixelRatio, Image, Text, TouchableHighlight, } from 'react-native' var EvilIcons = require('react-native-vector-icons/EvilIcons'); var Ionicons = require('react-native-vector-icons/Ionicons'); var screen = require('Dimensions').get('window')...
src/js/components/icons/base/FormDown.js
odedre/grommet-final
/** * @description FormDown SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @p...
lib/containers/__tests__/edit-bundle.js
conveyal/scenario-editor
// @flow import React from 'react' import {mockWithProvider} from '../../utils/mock-data' import EditBundle from '../edit-bundle' const {describe, expect, it} = global describe('Container > Edit Bundle', () => { it('renders correctly', () => { const props = { params: { bundleId: '1' } } ...
examples/src/app.js
stephennyu/select-react
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import Creatable from './components/Creatable'; import Contributors from './components/Contributors'; import GithubUsers from './components/GithubUsers'; import GithubUsersPagination from '...
src/components/elm/plain/ElmPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './ElmPlain.svg' /** ElmPlain */ function ElmPlain({ width, height, className }) { return ( <SVGDeviconInline className={'ElmPlain' + ' ' + className} iconSVG=...
react-apollo/src/containers/ProductDetailsPage/index.js
strapi/strapi-examples
/** * * ProductDetailsPage */ import React from 'react'; import { Query } from 'react-apollo'; import { Link } from 'react-router-dom'; import { GET_PRODUCT } from '../../queries'; const ProductDetailsPage = (props) => { const { match: { params: { id } } } = props; return ( <Query query={GET_PRODUCT} vari...
docs/src/app/components/pages/components/TimePicker/ExampleComplex.js
IsenrichO/mui-with-arrows
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; export default class TimePickerExampleComplex extends React.Component { constructor(props) { super(props); this.state = {value24: null, value12: null}; } handleChangeTimePicker24 = (event, date) => { this.setState({value24:...
src/components/champData.js
samrocksc/lol-app
//This component displays data about a champ import React, { Component } from 'react'; /* * Shows a dumb component for character info from * selectedChamp dispatch. */ // TODO sanitize the champ data export default class champData extends Component { componentDidMount(){ console.log('componentDidMount'); } ...
ajax/libs/rollbar.js/2.4.0/rollbar.umd.min.js
seogi1004/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.rollbar=e():t.rollbar=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[...
src/index.js
arixse/ztree-for-react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
packages/material-ui-icons/src/AccessibleForwardSharp.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><circle cx="18" cy="4.54" r="2" /><path d="M15 17h-2c0 1.65-1.35 3-3 3s-3-1.35-3-3 1.35-3 3-3v-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5zm5-3.5h-3.86...
ajax/libs/thorax/2.2.1/thorax-combined.min.js
LeaYeh/cdnjs
(function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ...
ajax/libs/react-disqus-thread/0.1.0/react-disqus-thread.js
dannyxx001/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["ReactDisqusThread"]...
packages/material-ui-icons/src/SystemUpdateRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-2.21-6H13V9c0-.55-.45-1-1-1s-1 .45-1 1v4H9.21c-.45 0-.67.54-.35.85l2.79 2.79c.2.2.51.2.71 0l2....
src/js/components/NotFound.js
otis-bot/otis-frontend
import React from 'react'; export default class NotFound extends React.Component { render() { return ( <div> <h1 className="text-center"> Not Found </h1> </div> ); } }
src/svg-icons/maps/beenhere.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsBeenhere = (props) => ( <SvgIcon {...props}> <path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59...
src/pages/index.js
codeformuenster/weihnachtsmarkt
import React from 'react' import Layout from '../components/layout' import ConnectedMap from '../containers/Map/Map' const IndexPage = () => { return ( <Layout layout="map"> <ConnectedMap /> </Layout> ) } export default IndexPage
ajax/libs/foundation/4.0.8/js/vendor/jquery.js
pzp1997/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...
packages/mcs-lite-ui/src/SpaceTop/SpaceTop.example.js
MCS-Lite/mcs-lite
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import SpaceTop from '.'; storiesOf('SpaceTop', module).add( 'API', withInfo({ text: 'margin-top', inline: true, })(() => <SpaceTop height={20}>SpaceTop content</SpaceTop>), );
RNApp/app/components/Button/Button.js
spencercarli/react-native-meteor-boilerplate
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; import styles from './styles'; const Button = (props) => { const { text, onPress } = props; return ( <TouchableOpacity style={styles.button} onPress={onPress}> <Text style={styles.buttonText}> {text} </Text> ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Apis.js
thusithak/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
examples/shared-root/app.js
joeyates/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var App = React.createClass({ render() { return ( <div> <p> This illustrates how routes can share UI w/o sharing the URL. When routes have no path, they never match themselves but their chil...
src/smif/app/test/components/ConfigForm/SosModel/DependencyList.js
nismod/smif
import React from 'react' import {expect} from 'chai' import {shallow, mount} from 'enzyme' import {describe, it} from 'mocha' import ReactModal from 'react-modal' import DependencyList from '../../../../src/components/ConfigForm/SosModel/DependencyList.js' import {sector_models, scenario_sets, sos_model} from '../.....
src/index.js
makoto/blockparty
import "./stylesheets/app.css"; import 'react-notifications/lib/notifications.css'; import React from 'react'; import EventEmitter from 'event-emitter'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Web3 from 'web3'; import TruffleContract from 'truffle-contract' im...
src/js/components/main-view.js
mdrobny/hack-place
import React from 'react'; import PlaceList from './main-view/place-list'; import Map from './main-view/map'; var MainView = React.createClass({ displayName: 'MainView', render() { return ( <div> <div className="pure-g"> <div className="pure-u-6-24 col">...
cmd/manabu-server/ui/app/Components/Multiply.js
nii236/manabu
import React, { Component } from 'react'; import axios from 'axios'; export default class Operands extends Component { constructor(props) { super(props); this.state = { left: 0, right: 0, answer: 'Something' }; this.handleChange = this.handleChange.bind(this); this.handleSubmit...
src/PaginationButton.js
snadn/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
src/front-end/src/index.js
magician11/chiangmai-movies
import React from 'react'; import ReactDOM from 'react-dom'; import MovieApp from './components/MovieApp'; // import ErrorBoundary from './components/ErrorBoundary'; ReactDOM.render(<MovieApp />, document.getElementById('app'));
webApp/src/Components/BroadcastSetupView.js
s-law/silent-disco
import React from 'react'; // MATERIAL DESIGN import Card from '../../node_modules/material-ui/lib/card/card'; import CardText from '../../node_modules/material-ui/lib/card/card-text'; import CardTitle from '../../node_modules/material-ui/lib/card/card-title'; import TextField from '../../node_modules/material-ui/lib/...
packages/material-ui-icons/src/Looks3Outlined.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="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /><path d="M15 15v-1.5c0-.83-.67-1.5-1.5-1.5.83...
src/ui/App.js
rwoll/spotit
import React, { Component } from 'react'; import search from './spotify'; import path from 'path'; import { ipcRenderer } from 'electron'; const KEY_UP = 'ArrowUp'; const KEY_DN = 'ArrowDown'; const KEY_EN = 'Enter'; const KEY_ESC = 'Escape'; class Searcher extends Component { constructor(props) { super(props);...
funcion/jquery-1.4.2.js
jdavid6700/gefad_desarollo
/*! * 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/compile.spec.js
stephenbunch/redone
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ /* global it expect jest describe */ import React from 'react'; import { mount } from 'enzyme'; import _compile from './compile'; const compile = _compile(React.Component); it('should return a new class with the same name', () => {...
static/src/components/Content.js
hammerandchisel/airhornbot
// @flow import React from 'react'; import OAuthStore from '../stores/OAuthStore'; import ResponsiveStore from '../stores/ResponsiveStore'; import * as OAuthActions from '../actions/OAuthActions'; import Constants from '../Constants'; type State = { isMobile: boolean, showVideo: boolean }; const Content = React....
src/parser/druid/restoration/modules/talents/Abundance.js
FaideWW/WoWAnalyzer
import React from 'react'; import StatisticBox from 'interface/others/StatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; const MS_BUFFER=200; const ABUNDANCE_MANA_REDU...
frontend/src/Settings/MediaManagement/Naming/NamingOption.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Link from 'Components/Link/Link'; import { sizes } from 'Helpers/Props'; import styles from './NamingOption.css'; class NamingOption extends Component { // // Listeners onPress = () => { ...
app/javascript/mastodon/features/blocks/index.js
dunn/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
app/javascript/flavours/glitch/features/getting_started/components/trends.js
im-in-space/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ImmutableHashtag as Hashtag } from 'flavours/glitch/components/hashtag'; import { FormattedMessage } from 'react-intl';...
4.React-Router/test/test_helper.js
Branimir123/Learning-React
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/svg-icons/notification/event-note.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventNote = (props) => ( <SvgIcon {...props}> <path d="M17 10H7v2h10v-2zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zm-5-5H7v...
packages/material-ui-icons/src/FilterDramaRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6.17c-2.09 0-3.95-1.53-4.15-3.61C1.79 12....
src/svg-icons/maps/local-hospital.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHospital = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/> </SvgIcon> ); MapsLocal...
src/svg-icons/editor/show-chart.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
index.ios.js
milasevicius/react-native-timepicker
import React, { Component } from 'react'; import { AppRegistry, View, PickerIOS, StyleSheet } from 'react-native'; export default class TimePicker extends Component { constructor(props) { super(props); this._hours = []; this._minutes = []; for (let j = 0; j < 24 * (this.props.loop ? 100 : 1); j++)...
examples/fiber/debugger/src/App.js
mosch/react
import React, { Component } from 'react'; import Draggable from 'react-draggable'; import ReactNoop from '../../../../build/packages/react-noop-renderer'; import ReactFiberInstrumentation from '../../../../build/packages/react-noop-renderer/lib/ReactFiberInstrumentation'; import Editor from './Editor'; import Fibers fr...
internals/templates/containers/NotFoundPage/index.js
zuban/zuban-boilerplate
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
node_modules/grunt-browserify/test/fixtures/shim/jquery.js
caseyoto/chittagong-bookclub
/*! * 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...
src/components/SvgIcon/SvgIcon.js
sk-iv/iva-app
import React from 'react'; import type { Node } from 'react'; import classNames from 'classnames'; if(process.env.WEBPACK) require('./SvgIcon.css'); export type Props = { /** * Elements passed into the SVG Icon. */ children: Node, /** * @ignore */ className?: string, /** * Provides a human-re...
src/Grid.js
mcraiganthony/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Grid = React.createClass({ propTypes: { fluid: React.PropTypes.bool, componentClass: React.PropTypes.node.isRequired }, getDefaultProps() { return { componentClass: 'div' }; }, render() { let ComponentClass = th...
DayangH/index.android.js
dianziguan1234/ReactNative
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class DayangH extends Component { render() { return ( <View style={styles.container}>...
src/index.js
react-vienna/website
import 'normalize.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
6.2.1/examples/material-ui/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(364),e.exports=n(363)},function(e,t,n){var r=n(8),o=n(47),i=n(29),a=n(30),u=n(48),s="prototype",...
web/src/js/__tests__/components/FlowView/HeadersSpec.js
vhaupert/mitmproxy
import React from 'react' import ReactDOM from 'react-dom' import renderer from 'react-test-renderer' import TestUtils from 'react-dom/test-utils' import Headers, { HeaderEditor } from '../../../components/FlowView/Headers' import { Key } from '../../../utils' describe('HeaderEditor Component', () => { it('should...
dashboard-ui/app/components/files-ui/mainbody.js
CloudBoost/cloudboost
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Modal, Button } from 'react-bootstrap'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { browserHistory, Link } from 'react-router'; import ReactTooltip from 'react-tooltip'; import Docume...
src/ui/molecule/ComponentForm/InterfaceUsageVisualization.js
jkubos/tickator-ide
import React from 'react' import {observable} from 'mobx' import {observer} from 'mobx-react' import classNames from 'classnames' import styles from './style.less' import {UiState} from '~/src/business/UiState' import {Modals} from '~/src/business/Modals' import {Rectangle} from '~/src/util/geometry/Rectangle' impo...
ajax/libs/yui/3.14.1/scrollview-base/scrollview-base-debug.js
JacquesMarais/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ // Local vars var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie...
src/index.js
romanantl/aws-js-self-updater
import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import Homepage from './views/Homepage'; import Footer from './views/Footer'; import SafeEval from 'notevil'; import DataTable from './views/DataTable'; /** * AWS init */ AWS.config.update({ region: '<region>', accessK...
examples/upload-map/context-selector.js
jjmulenex/sdk
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import fetch from 'isomorphic-fetch'; import * as mapActions from '@boundlessgeo/sdk/actions/map'; /** Component for user to upload a mapbox style doc * or enter a URL. */ class ContextSelector extends React.PureCompo...
src/Avatar/Avatar.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import CancelIcon from '../svg-icons/Cancel'; import Avatar from './Avatar'; describe('<Avatar />', () => { let shallow; let classes; before(() => { shallow = createShallow({ dive: ...
app/components/DeviceMock/sosia.js
wanbinkimoon/parmigiana
import React from 'react'; export const Sosia = () => { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1446.1 385.3"><defs></defs><title>pad_1</title><g id="Layer_2" data-name="Layer 2"><g data-name="Layer 2"><g id="Wrap"><rect id="Border" class="cls-1" x="1" y="1" width="1444.1" height="383.35" rx="3...
app/javascript/mastodon/containers/compose_container.js
vahnj/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
ajax/libs/react-textarea-autosize/4.3.0/react-textarea-autosize.min.js
sashberd/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):e.TextareaAutosize=t(e.React,e.PropTypes)}(this,function(e,t){"use strict";function o(e){var t=arguments.length>1&&void 0!==...
pages/demos/autocomplete.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/demos/autocomplete/autocomplete.md'; function Page() { return ( <MarkdownDocs markdown={markdown} ...
src/pages/paper/edit/editForm.js
sunway-official/acm-admin
import React, { Component } from 'react'; import CustomInput from 'components/CustomInput'; import { renderSelectField } from 'components/render'; import { reduxForm, Field } from 'redux-form'; import validate from '../validate'; import { RaisedButton, Subheader, MenuItem } from 'material-ui'; import { Link } from 'rea...
src/Share.js
bagilevi/jsonbrowser
import React, { Component } from 'react'; import $ from "jquery"; export default class Share extends Component { render() { if (this.props.url) { return ( <div id="share"> <div id="share-url-container"> <input id="share-url-field" type="text" defaultValue={this.props.url} /> ...
src/interface/report/index.js
FaideWW/WoWAnalyzer
import React from 'react'; import makeAnalyzerUrl from 'interface/common/makeAnalyzerUrl'; import ReportLoader from './ReportLoader'; import FightSelection from './FightSelection'; import PlayerSelection from './PlayerSelection'; import ConfigLoader from './ConfigLoader'; import SupportChecker from './SupportChecker'...
src/svg-icons/navigation/chevron-left.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...