path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ext/classic/classic/src/grid/NavigationModel.js
mkelly1495/montessoricompass
// TODO: Implement http://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#grid standards /** * @class Ext.grid.NavigationModel * @private * This class listens for key events fired from a {@link Ext.grid.Panel GridPanel}, and moves the currently focused item * by adding the class {@link #focusCls}. */ Ext.define...
examples/js/column-filter/filter-style.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; cons...
src/provider.js
ben-davis/flame
import React from 'react'; const Container = React.createClass({ childContextTypes: { app: React.PropTypes.object, }, propTypes: { app: React.PropTypes.object.isRequired, children: React.PropTypes.element.isRequired, }, componentWillMount() { const { app } = this.props; app.subscribe(th...
src/entry.js
louisrowan/science-hack-react
import React from 'react' import { render } from 'react-dom' import App from './components/app' import './styles/app.scss' render(<App/>, document.getElementById('main'))
node_modules/pretty-format/perf/test.js
MaleSharker/Qingyan
/** * Copyright (c) 2014-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';...
audio-player/src/renderer/main/components/react-split-pane/SplitPane.js
akabekobeko/examples-electron
import React from 'react' import PropTypes from 'prop-types' import stylePropType from 'react-style-proptype' import { polyfill } from 'react-lifecycles-compat' import Pane from './Pane' import Resizer, { RESIZER_DEFAULT_CLASSNAME } from './Resizer' function unFocus(document, window) { if (document.selection) { ...
test/OverlayTriggerSpec.js
jesenko/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import OverlayTrigger from '../src/OverlayTrigger'; import Popover from '../src/Popover'; import Tooltip from '../src/Tooltip'; import { render } from './helpers'; describe('OverlayTrigger', () => { ...
src/js/components/icons/base/PlatformNorton.js
odedre/grommet-final
/** * @description PlatformNorton 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....
packages/cra-template/template/src/index.js
facebookincubator/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in yo...
app/Shared/AppButton.js
mastermel/wwg_battle_tool
import React from 'react'; import { string, func } from 'prop-types'; import Button from 'apsl-react-native-button'; import { StyleSheet } from 'react-native'; import { font, navColor } from './Styles'; class AppButton extends React.Component { render() { const { title, onPress } = this.props; return (...
ajax/libs/forerunnerdb/1.3.61/fdb-legacy.js
tholu/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...
test/specs/chart/PieChartSpec.js
recharts/recharts
import React from 'react'; import { expect } from 'chai'; import { PieChart, Pie, Sector, Legend, Tooltip, Cell } from 'recharts'; import { mount, render } from 'enzyme'; import sinon from 'sinon'; describe('<PieChart />', () => { const data = [ { name: 'Group A', value: 400 }, { name: 'Group B', value: 300 ...
test/ListGroupSpec.js
gianpaj/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ListGroup from '../src/ListGroup'; import ListGroupItem from '../src/ListGroupItem'; describe('ListGroup', function () { it('Should output a "div" with the class "list-group"', function () { let instance = ReactTestUtils.re...
client/src/containers/Dashboard.js
HoussamOtarid/fb-photos-downloader
import React, { Component } from 'react'; import { connect } from 'react-redux'; import AlbumsGrid from '../components/AlbumsGrid'; import FacebookConnect from '../components/FacebookConnect'; import { getAlbums, getPhotos } from '../actions/albumsActions'; class Dashboard extends Component { componentWillMount() {...
modules/__tests__/IndexRoute-test.js
batmanimal/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import IndexRoute from '../IndexRoute' import Router from '../Router' import Route from '../Route' describe('an <IndexRoute/>', function () { var nod...
files/react.slick/0.3.1/react-slick.min.js
as-com/jsdelivr-squashed
var Slider=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){t.exports=n(1)},function(t,e,n){var r=n(2),i=n(3),o=n(7),s=n(4),a=(n(5),n(6)),u=r.createClass(...
client/src/components/Draftail/index.js
takeflight/wagtail
import React from 'react'; import ReactDOM from 'react-dom'; import { DraftailEditor } from 'draftail'; import { IS_IE11, STRINGS } from '../../config/wagtailConfig'; import Icon from '../Icon/Icon'; export { default as Link } from './decorators/Link'; export { default as Document } from './decorators/Document'; exp...
map/src/containers/Details/components/InitiativeDescription.js
teikei/teikei
import React from 'react' import PropTypes from 'prop-types' import i18n from '../../../i18n' import BadgesList from './BadgesList' const GoalItem = (goal) => <li key={goal}>{goal}</li> const InitiativeDescription = ({ feature }) => { const { properties: { goals }, } = feature return ( <div> <ul>...
web/js/jquery-1.10.2.js
Didweb/Fac
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
ajax/libs/forerunnerdb/1.3.7/fdb-all.min.js
pvnr0082t/cdnjs
/* MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or authors MIT License (c) copyright 2010-2014 original author or autho...
examples/node_modules/react-native/node_modules/react-tools/src/modern/types/__tests__/ReactTypeScriptPropTypes-test.js
rreusser/react-native-swiper
/** * Copyright 2014-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/analytics.js/2.8.22/analytics.js
maruilian11/cdnjs
(function umd(require){ if ('object' == typeof exports) { module.exports = require('1'); } else if ('function' == typeof define && define.amd) { define(function(){ return require('1'); }); } else { this['analytics'] = require('1'); } })((function outer(modules, cache, entries){ /** * Global ...
files/react/0.10.0/react-with-addons.js
2947721120/garrulous-octo-rutabaga
/** * React (with addons) v0.10.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,expo...
ajax/libs/babel-core/5.3.3/browser-polyfill.min.js
Teino1978-Corp/Teino1978-Corp-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...
packages/material-ui-icons/src/CameraRear.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CameraRear = props => <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1.11 0-2-.9-2-2s.89-2 1.99-2 2...
src/pages/404.js
creaturesagainstcancer/creaturesagainstcancer.github.io
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
local-cli/templates/HelloWorld/index.ios.js
htc2u/react-native
/** * 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 HelloWorld extends Component { render() { return ( <View style={styles.containe...
node_modules/@shoutem/theme/examples/Shapes.js
tausifmuzaffar/bisApp
import React from 'react'; import connectStyle from '../src/connectStyle'; import StyleProvider from '../src/StyleProvider'; import { INCLUDE } from '../src/resolveIncludes'; import { View, Text } from 'react-native'; const theme = (variables = {}) => ({ circle: { width: variables.circleRadius, height: varia...
scripts/jest/preprocessor.js
javascriptit/react
'use strict'; var path = require('path'); var babel = require('babel'); var coffee = require('coffee-script'); var tsPreprocessor = require('./ts-preprocessor'); // This assumes the module map has been built. This might not be safe. // We should consider consuming this from a built fbjs module from npm. var moduleM...
packages/bonde-admin-canary/src/services/auth/components/Route.spec.js
ourcities/rebu-client
import test from 'ava' import React from 'react' import { mount } from 'enzyme' import { StaticRouter } from 'react-router-dom' import Route from './Route' const props = { component: () => (<p id='testComponent'>Test Render</p>), redirectTo: '/login' } test('render component when assert is true', t => { const c...
ajax/libs/mobx/2.0.4/mobx.js
viskin/cdnjs
var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; registerGlobals(); exports._ = { quickDiff: quickDiff, ...
src/app/modules/introduction/components/Group.js
lili668668/lili668668.github.io
import React from 'react' import { withStyles } from '@material-ui/core/styles' import Item from './Item' const styles = theme => ({ padding: { padding: theme.spacing.unit } }) function Group (props) { const { classes } = props const { items } = props return ( <section className={classes.padding}> ...
ajax/libs/phaser/2.0.5/custom/p2.js
BitsyCode/cdnjs
/** * The MIT License (MIT) * * Copyright (c) 2013 p2.js authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
ajax/libs/yui/3.8.0/simpleyui/simpleyui-debug.js
anshulverma/cdnjs
/** The YUI module contains the components required for building the YUI seed file. This includes the script loading mechanism, a simple queue, and the core utilities for the library. @module yui @main yui @submodule yui-base **/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The YUI global namespace obj...
lib/yuilib/3.13.0/scrollview-base/scrollview-base-debug.js
laumarriv/moodle262
/* YUI 3.13.0 (build 508226d) Copyright 2013 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview *...
src/svg-icons/communication/stay-current-portrait.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentPortrait = (props) => ( <SvgIcon {...props}> <path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/> </SvgIcon> );...
src/svg-icons/communication/call-merge.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMerge = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); CommunicationCallMerge...
wp-content/plugins/the-events-calendar/vendor/jquery-resize/shared/jquery-1.4.1.js
SeenNotHurd/lyytinen
/*! * jQuery JavaScript Library v1.4.1 * 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. ...
ajax/libs/primereact/7.0.1/dock/dock.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { classNames, ObjectUtils } from 'primereact/utils'; import { Ripple } from 'primereact/ripple'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _...
src/modules/Synth/Synth.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { selectors as audioSelectors } from '../Audio'; import Columns from '../components/Columns'; import Envelope from './components/Envelope'; import Keyboard from '../components/Keyboard'; import Modulation from '...
src/js/screens/Chart.js
grommet/next-sample
import React from 'react'; import { Box, Chart, Stack, Text } from 'grommet'; import doc from 'grommet/components/Chart/doc'; import Doc from '../components/Doc'; const desc = doc(Chart).toJSON(); const BOUNDS = [[0, 7], [0, 100]]; const VALUES = [ { value: [7, 100], label: 'one hundred' }, { value: [6, 70], l...
web/node_modules/material-ui/svg-icons/maps/local-bar.js
Jorginho211/TFG
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
src/App.js
jjbohn/graphql-blog-schema
import React, { Component } from 'react'; import GraphiQL from 'graphiql'; import fetch from 'isomorphic-fetch'; import Schema from './schema.js'; import { graphql } from 'graphql'; GraphiQL.Logo = class Logo extends Component { render() { let style = { fontWeight: 800, fontSize: 16, color: "#2...
src/components/Header/Header.js
krizkasper/react-redux-kriz
import React from 'react'; import { IndexLink, Link } from 'react-router'; import './Header.scss'; export const Header = props => ( <div className="page-header"> <h1>React Redux Starter Kit</h1> <IndexLink to="/" activeClassName="route--active"> Home </IndexLink> {' · '} ...
packages/material-ui-icons/src/Https.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3....
packages/material-ui-icons/src/Replay.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Replay = props => <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z" /> </SvgIcon>; Replay = pure(Replay); Replay.muiNa...
src/components/EditForm/Parents.js
Apozhidaev/terminal.mobi
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { searchParents } from 'store/app/book/editForm/actions'; class Parents extends Component { constructor(props) { super(props); const { slot } = this.props; const parents = slot.parents.slice(); this.state = { par...
src/component/listing-form/index.js
Roomlet/roomlet
import React from 'react' import { connect } from 'react-redux' import { listingCreate } from '../../action/listing-actions.js' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import Paper from 'material-ui/Paper' import TextField from 'material-ui/TextField' import RaisedButton from 'material-ui/Rai...
examples/medium-app/src/js/server-profiles/ServerProfileEdit.js
rstuven/grommet
// (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P. var React = require('react'); var Rest = require('grommet/utils/Rest'); var ServerProfileForm = require('./ServerProfileForm'); var ServerProfileEdit = React.createClass({ contextTypes: { router: React.PropTypes.func.isRequired }, getIni...
src/__tests__/fileMocks/componentNamespaceCustom/LoggedIn.js
react-cosmos/fs-playground
// @flow import React from 'react'; const LoggedIn = () => <span />; LoggedIn.namespace = 'Header/User'; export default LoggedIn;
src/components/AttrBadge/AttrBadge.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import { badgeStyle } from 'constants/styles' import { attrColors } from 'constants/colors' class AttrBadge extends React.Component { render () { const { attr, ...restProps } = this.props const getAttrColor = attr => { return { backgroundCol...
app/components/modules/text.module/index.js
omeryagmurlu/algoriv
import React from 'react'; import PropTypes from 'prop-types'; import { ifModuleEnabled } from 'app/utils'; import { style } from './style.scss'; const Text = props => ifModuleEnabled('text', props, <div className={style}> {props.text} </div> ); Text.propTypes = { text: PropTypes.string }; Text.defaultProps = {...
src/main.js
radzom/cv
import React from 'react'; import ReactDOM from 'react-dom'; import cv from './cv'; import Profile from './components/profile'; ReactDOM.render(<Profile data={cv} />, document.getElementById('app'));
ajax/libs/js-data/2.2.0/js-data.js
paleozogt/cdnjs
/*! * js-data * @version 2.2.0 - 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...
ui/src/dialogs/DialogTitle.js
cloudsonic/sonic-server
import { withStyles } from '@material-ui/core/styles' import MuiDialogTitle from '@material-ui/core/DialogTitle' import Typography from '@material-ui/core/Typography' import IconButton from '@material-ui/core/IconButton' import CloseIcon from '@material-ui/icons/Close' import React from 'react' const styles = (theme) ...
ajax/libs/F2/1.2.1/f2.js
jackdoyle/cdnjs
;(function(exports) { if (exports.F2 && !exports.F2_TESTING_MODE) { return; } /*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
Lib/jquery-1.9.1.min.js
0ddie/emoncms
/*! 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...
src/components/Users.react.js
igorsvee/react-relay-app
import React from 'react'; import Relay from 'react-relay'; import {Link} from 'react-router'; import CreateUserMutation from '../mutations/CreateUserMutation' import User from './User.react' import NewUser from './NewUser.react' import autobind from 'autobind-decorator' // import {withRouter} from 'react-router' i...
src/svg-icons/communication/vpn-key.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationVpnKey = (props) => ( <SvgIcon {...props}> <path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 ...
docs/src/pages/customization/themes/ResponsiveFontSizes.js
allanalexandre/material-ui
import React from 'react'; import { createMuiTheme, responsiveFontSizes } from '@material-ui/core/styles'; import { ThemeProvider } from '@material-ui/styles'; import Typography from '@material-ui/core/Typography'; let theme = createMuiTheme(); theme = responsiveFontSizes(theme); export default function ResponsiveFon...
new-lamassu-admin/src/components/buttons/SupportLinkButton.js
lamassu/lamassu-server
import { makeStyles } from '@material-ui/core' import React from 'react' import { ActionButton } from 'src/components/buttons' import { ReactComponent as InverseLinkIcon } from 'src/styling/icons/action/external link/white.svg' import { ReactComponent as LinkIcon } from 'src/styling/icons/action/external link/zodiac.s...
src/svg-icons/editor/bubble-chart.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBubbleChart = (props) => ( <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2"/><circle cx="14.8" cy="18" r="2"/><circle cx="15.2" cy="8.8" r="4.8"/> </SvgIcon> ); EditorBubbleChart = pure(EditorBub...
src/svg-icons/image/exposure-plus-1.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus1 = (props) => ( <SvgIcon {...props}> <path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/> </SvgIcon> ); ImageExposurePlus1 = pure(ImageExposurePlus1); ImageEx...
Examples/UIExplorer/LayoutExample.js
ordinarybill/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
examples/async-data/app.js
darul75/react-router
import React from 'react'; import HashHistory from 'react-router/lib/HashHistory'; import { Router, Route, Link, Navigation } from 'react-router'; import { loadContacts, loadContact, createContact } from './utils'; import AsyncProps from 'react-router/lib/experimental/AsyncProps'; var Spinner = React.createClass({ r...
frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import AddDownloadClientModalContentConnector from './AddDownloadClientModalContentConnector'; function AddDownloadClientModal({ isOpen, onModalClose, ...otherProps }) { return ( <Modal isOpen={isOpen...
src/app/components/utils/Moment.js
backpackcoder/world-in-flames
import React from 'react' import moment from 'moment' export default class Moment extends React.Component { render() { return ( <span>{ moment(this.props.date).format(this.props.format || 'llll')}</span> ) } }
react/pages/HomePage.js
Seanskiver/b2b_application
import React from 'react'; //import { Table } from 'react-bootstrap'; import {Form, FormControl, FormGroup, InputGroup, ControlLabel, Button, Table, Carousel, Jumbotron, Panel, Col, DropdownButton, MenuItem, Grid, Thumbnail, Row, Image, Media, Tabs, Tab } from 'react-bootstrap'; import { HashRouter as Router, Route, Li...
src/svg-icons/image/style.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStyle = (props) => ( <SvgIcon {...props}> <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1....
src/layouts/Footer.js
akhatri/portfolio-website
import React from 'react'; const Footer = () => { const FooterStyles = { 'borderTop': '1px solid #bebebe', 'backgroundColor': 'whitesmoke', 'paddingTop': '2rem', 'paddingBottom': '2rem' } return ( <footer style={FooterStyles}> <div className="container"> <h3 className="text-ce...
reactNative/youDrawIGuess/index.android.js
huxinmin/PracticeMakesPerfect
/** * 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 youDrawIGuess extends Component { render() { return ( <View style={styles.conta...
examples/complex/src/components/weather/loader.js
vgno/roc-web-react
import React, { Component } from 'react'; export default class WeatherLoader extends Component { static propTypes = { endpoint: React.PropTypes.string }; render() { const source = this.props.endpoint ? ` from ${this.props.endpoint}` : ''; return ( <div> ...
src/scenes/App/scenes/MapOverview/scenes/Overview/components/SteamAvatarMedal/index.js
jsza/tempus-website
import React from 'react' import {Range} from 'immutable' import './styles.styl' export default function SteamAvatarMedal({ children }) { return ( <div className="SteamAvatarMedal"> <div className="ribbons" /> <div className="cogs"> {Range(0, 16).map((num) => <div key...
src/routes/Projects/components/NewProjectTile/NewProjectTile.js
skylus/tom-rrf
import React from 'react' import PropTypes from 'prop-types' import Paper from 'material-ui/Paper' import ContentAddCircle from 'material-ui/svg-icons/content/add-circle' import classes from './NewProjectTile.scss' const iconSize = '6rem' const iconStyle = { width: iconSize, height: iconSize } const color = '#979797' ...
__tests__/renderers/MenuOutside-test.js
instea/react-native-popup-menu
import React from 'react'; import { View, Text } from 'react-native'; import { render } from '../helpers'; jest.dontMock('../../src/renderers/MenuOutside'); const { default: MenuOutside, computePosition } = require('../../src/renderers/MenuOutside'); describe('MenuOutside', () => { const defaultLayouts = { win...
src/svg-icons/action/build.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBuild = (props) => ( <SvgIcon {...props}> <path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-...
Console/app/src/components/league_teams/teams.js
RisenEsports/RisenEsports.github.io
//-------------------------------------------------- // Components //-------------------------------------------------- import React from 'react'; import { Table, Tabs } from 'antd'; import { ContentHeader } from './../content_header/content_header.js'; //-------------------------------------------------- // CSS //...
app/components/yeast/YeastSection.js
MitchLillie/brewhome
import React from 'react' import YeastList from './YeastList' import YeastForm from './YeastForm' const YeastSection = React.createClass({ handleYeastSubmit: function (yeast) { this.props.addYeast(yeast) }, render: function () { return ( <div className='yeastBox panel panel-default'> <div c...
ajax/libs/forerunnerdb/1.3.609/fdb-core.min.js
amoyeh/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
src/containers/SettingsContainer.js
drakang4/creative-project-manager
import React, { Component } from 'react'; class SettingsContainer extends Component { render() { return ( <div> </div> ); } } export default SettingsContainer;
tp-3/juan-pablo-gonzalez/src/shared/components/sovos-options-slide-panel/components/optionsSlideContent/OptionsSlidePanelContent.js
jpgonzalezquinteros/sovos-reactivo-2017
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import OptionsSlidePanelHeader from '../optionsSlideHeader/OptionsSlidePanelHeader'; import { sources } from '../../../../../redux/overlayLayer/OverlayLayerConstants'; class RightSlideContent extends Component { componentDidMount() { t...
ajax/libs/react-sortable-hoc/0.6.0/react-sortable-hoc.min.js
holtkamp/cdnjs
!function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],factory):"object"==typeof exports?exports.SortableHOC=factory(require("react"),require("react-dom")):root.SortableHOC...
src/components/DatasetElement/DatasetElement copy.js
hack-duke/hackduke-dayof
import React from 'react' import classes from './DatasetElement.scss' class DatasetElement extends React.Component { static propTypes = { header: React.PropTypes.string.isRequired, blurb: React.PropTypes.string.isRequired, } render () { return ( <div> <div className={classes.conta...
stories/InputSelect.stories.js
maputnik/editor
import React from 'react'; import {useActionState} from './helper'; import InputSelect from '../src/components/InputSelect'; import {InputContainer} from './ui'; import {withA11y} from '@storybook/addon-a11y'; export default { title: 'InputSelect', component: InputSelect, decorators: [withA11y], }; export cons...
packages/nova-core/lib/messages.js
trujunzhang/newspoliticl
import React, {PropTypes, Component} from 'react'; import PostDetailSet from "./postdetailset.js"; import AppStatus from "./appstatus.js"; import PopoverMenus from "./popovermenus.js" import UserCollections from "./usercollections" const Messages = { // Local (client-only) collection collection: new Meteor.Col...
app/js/csv.js
CKrawczyk/volcrowe
import React from 'react'; import { Col, Button } from 'react-bootstrap'; import { getUsers, getQuestions } from './stats-api'; import json2csv from 'json2csv'; import Spinner from 'react-spinkit'; import flatten from 'flat'; import JSZip from 'jszip'; import FileSaver from 'file-saver'; export default class Csv exten...
test/integration/basic/pages/head.js
arunoda/next.js
import React from 'react' import Head from 'next/head' export default () => <div> <Head> <meta charSet='iso-8859-5' /> <meta content='my meta' /> </Head> <h1>I can haz meta tags</h1> </div>
ajax/libs/F2/1.2.1/f2.js
ekeneijeoma/cdnjs
;(function(exports) { if (exports.F2 && !exports.F2_TESTING_MODE) { return; } /*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
components/common_header_left.js
MonkingStand/MS-blog-site-v3.0
import React from 'react'; class CommonHeaderLeft extends React.Component { render() { return ( <div className = "nav-header pull-left"> <img id = "logoImg" src = "./img/logo.png" /> </div> ...
examples/progressive-render/components/Loading.js
flybayer/next.js
import React from 'react' export default function Loading() { return ( <div> <h3>Loading...</h3> <style jsx>{` div { align-items: center; display: flex; height: 50vh; justify-content: center; } `}</style> </div> ) }
app/components/Home.js
swiecki/strigine
import React, { Component } from 'react'; import YouTube from 'react-youtube'; import styles from './Home.css'; export default class Home extends Component { render() { const opts = { width: 854, height: 480, playerVars: { autoplay:1, enablejsapi:1, modestbranding:1, showinfo:0 ...
stories/props/resources.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, Views, momentLocalizer } from '../../src' import resourceData from '../resources/resourceEvents' import mdx from './resources.mdx' const { events: resourceEvents, list: resources } = resourceData const mLocalizer = momentLocalizer(moment) expor...
src/routes/details/index.js
jackinf/skynda.me
/** * Created by zekar on 9/14/2016. */ import React from 'react'; import Details from './details'; const title = 'Car details'; export default { path: '/details', action() { return { title, component: <Details />, }; }, };
packages/material-ui-icons/src/LocationOffTwoTone.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="M17 9c0 1.06-.39 2.32-1 3.62l1.49 1.49C18.37 12.36 19 10.57 19 9c0-3.87-3.13-7-7-7-1.84 0-3.5.71-4.75 1.86l1.43 1.43C9.56 4.5 10.72 4 12 4c2....
src/svg-icons/action/flip-to-front.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlipToFront = (props) => ( <SvgIcon {...props}> <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm2 4v-2H3c0 1.1.89 2 2 2zM3 9h2V7H3v2zm12 12h2v-2h-2v2zm4-18H9c-1.11 0-2 .9-2 2v10c0 1.1.89 2 2 2h10c1.1 0 2-.9 2-2V5c...
client/src/components/Draftail/Tooltip/Tooltip.js
nimasmi/wagtail
import PropTypes from 'prop-types'; import React from 'react'; const TOP = 'top'; const LEFT = 'left'; const TOP_LEFT = 'top-left'; const getTooltipStyles = (target, direction) => { const top = window.pageYOffset + target.top; const left = window.pageXOffset + target.left; switch (direction) { case TOP: r...
client/src/components/header/login.js
OpenChemistry/materialsdatabank
import React, { Component } from 'react'; import { connect } from 'react-redux' import Button from '@material-ui/core/Button'; import InputIcon from '@material-ui/icons/Input'; import { selectAuthProvider } from '../../redux/ducks/app' class Login extends Component { render = () => { return ( <Button...
frontend/src/components/localStorage/LocalStorageProgressForItem.js
OwenRay/Remote-MediaServer
/* global window */ import 'react-circular-progressbar/dist/styles.css'; import { ProgressBar } from 'react-materialize'; import React, { Component } from 'react'; import { throttle } from 'throttle-debounce'; import LocalStorage from '../../helpers/LocalStorage'; class LocalStorageProgressForItem extends Component { ...
App/Client/node_modules/react-router/es6/Router.js
qianyuchang/React-Chat
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
app/containers/NoUploadTargetsPage.js
tidepool-org/chrome-uploader
/* * == BSD2 LICENSE == * Copyright (c) 2014-2016, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This pro...