path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/svg-icons/social/domain.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialDomain = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v...
ajax/libs/redux-form/5.2.2/redux-form.min.js
dc-js/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor...
src/svg-icons/places/free-breakfast.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFreeBreakfast = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/> </SvgIcon> ); PlacesFre...
ui/modal/modalWalletSend/index.js
lbryio/lbry-electron
import { connect } from 'react-redux'; import { doHideModal } from 'redux/actions/app'; import WalletSend from './view'; const select = state => ({}); const perform = { doHideModal, }; export default connect( select, perform )(WalletSend);
node_modules/react-icons/io/ios-drag.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosDrag = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m6 25v-1.2h27.5v1.2h-27.5z m0-4.4v-1.2h27.5v1.2h-27.5z m0-4.3v-1.3h27.5v1.3h-27.5z"/></g> </Icon> ) export default IoIosDrag
react/features/chat/components/web/ChatHeader.js
jitsi/jitsi-meet
// @flow import React, { useCallback } from 'react'; import { translate } from '../../../base/i18n'; import { Icon, IconClose } from '../../../base/icons'; import { connect } from '../../../base/redux'; import { toggleChat } from '../../actions.web'; type Props = { /** * Function to be called when pressing...
src/components/Navigation/index.js
sdwvit/coding-challenge-frontend-b
import React from 'react'; import { string, func } from 'prop-types'; import { translate } from 'react-i18next'; import './style.scss'; export function Navigation({ t, date, onDateChange }) { const datePicker = <input type="date" value={date} onChange={onDateChange} />; return ( <nav className="navigation"> <h...
src/components/ImgFigureComponent.js
Pennnn/gallery-by-react
'use strict'; import React from 'react'; require('styles/App.css'); class ImgFigureComponent extends React.Component { render() { return ( <figure> <img/> <figcaption> <h2></h2> </figcaption> </figure> ); } } ImgFigureComponent.displayName = 'ImgFi...
js/CameraView.js
mkgilbert/ispy
/** * Created by mkg on 11/5/2016. */ import React, { Component } from 'react'; import { AppRegistry, Dimensions, ListView, StyleSheet, Text, View, TouchableHighlight, Image } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; import Camera from './Camera' ...
src/components/User/index.js
hwclass/propelled
// Libraries import React from 'react'; // Components import TableRow from 'grommet/components/TableRow'; const User = ({ name, position, location }) => { return ( <TableRow> <td>{name}</td> <td className="secondary">{position.lat}</td> <td className="secondary">{position.lat}</td> <td c...
frontend/src/containers/AttackListDetails.js
dimkarakostas/rupture
import React from 'react'; import AttackItem from './AttackItem'; import _ from 'lodash'; export default class AttackListDetails extends React.Component { constructor() { super(); this.state = { completed: [], runpaused: [] } } deleted = () => { t...
src/app/common/User/components/Status.js
toxzilla/app
import React from 'react'; import shallowCompare from 'react-addons-shallow-compare'; import {classNames} from 'react-dom-stylesheet'; import { TOX_USER_STATUS_NONE, TOX_USER_STATUS_AWAY, TOX_USER_STATUS_BUSY, TOX_CONNECTION_NONE, TOX_CONNECTION_TCP, TOX_CONNECTION_UDP } from './../../../../shared/tox'; i...
gatsby-config.js
whitebird/whitebird.github.io
require('dotenv').config({ path: `.env`, }) const config = require('./config') const pathPrefix = config.pathPrefix === '/' ? '' : config.pathPrefix module.exports = { pathPrefix: config.pathPrefix, siteMetadata: { siteUrl: config.siteUrl + pathPrefix, pathPrefix, title: config.siteTit...
examples/huge-apps/components/App.js
mozillo/react-router
/*globals COURSES:true */ import React from 'react' import Dashboard from './Dashboard' import GlobalNav from './GlobalNav' class App extends React.Component { render() { return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={COURSES...
react-backend/client/src/components/DynamicFeedbackView/index.js
JonasJan89/JSChallenge
import React, { Component } from 'react'; import './index.css'; export default class DynamicFeedbackView extends Component { constructor(props) { super(props); this.state = { dynamicFeedback: props.dynamicFeedback, }; } componentWillReceiveProps(nextProps) { th...
src/components/mask/mask.js
n7best/react-weui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * screen mask, use in `Dialog`, `ActionSheet`, `Popup`. * */ class Mask extends React.Component { static propTypes = { /** * Whather mask should be transparent (no color) ...
ajax/libs/analytics.js/1.3.4/analytics.min.js
lhorie/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol...
ajax/libs/oojs-ui/0.17.1/oojs-ui-windows.js
dlueth/cdnjs
/*! * OOjs UI v0.17.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2016-05-03T22:58:02Z */ ( function ( OO ) { 'use strict'; /** * An ActionWidget is a {@link OO.ui.ButtonWidget ...
definitions/npm/react-i18next_v2.x.x/flow_v0.30.x-v0.39.x/react-i18next_v2.x.x.js
mkscrg/flow-typed
declare module 'react-i18next' { declare type TFunction = (key?: ?string, data?: ?Object) => string; declare type Locales = string | Array<string>; declare type StatelessComponent<P> = (props: P) => ?React$Element<any>; declare type Comp<P> = StatelessComponent<P> | Class<React$Component<*, P, *>>; declare...
src/thirdparty/react.js
show0017/brackets
/** * React (with addons) v0.11.2 */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(fu...
js/constants.js
nCoda/julius
// -*- coding: utf-8 -*- // ------------------------------------------------------------------------------------------------ // Program Name: Julius // Program Description: User interface for the nCoda music notation editor. // // Filename: js/constants.js // Purpose: Constants...
src/components/Heading/__tests__/StyledHeading.js
thegrinder/basic-styled-uikit
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { render, cleanup } from '@testing-library/react'; import theme from '../../../theme/theme'; import StyledHeading from '../StyledHeading'; const children = 'children'; const renderComponent = (props = {}) => render( <ThemeProv...
react-flux-mui/js/material-ui/src/svg-icons/action/trending-down.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingDown = (props) => ( <SvgIcon {...props}> <path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/> </SvgIcon> ); ActionTrendingDown = pure(ActionTrendingDown); ActionTre...
ajax/libs/forerunnerdb/1.3.748/fdb-core+persist.min.js
dc-js/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/components/H/H2.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import get from 'extensions/themeGet'; import userSpacing from 'extensions/userSpacing'; import Skeleton from 'skeletons/Skeleton'; const H2 = styled.h2.withConfig({ displayName: 'H2' })` color: ${get('colors.text....
src/components/relationships/Relationship.js
ello/webapp
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { css, modifier } from '../../styles/jss' import * as s from '../../styles/jso' const relationshipStyle = css( modifier('.inUserProfile', s.inlineBlock, s.alignTop), modifier('.inUserProfileCard', s.inlineBlock,...
test/integration/client-navigation/pages/nav/hash-changes.js
flybayer/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' let count = 0 const HashChanges = ({ count }) => { const router = useRouter() return ( <div id="hash-changes-page"> <Link href="#via-link"> <a id="via-link">Via Link</a> </Link> <a href="#...
src/components/loader.js
kanitsharma/general-js
import React from 'react' import PropTypes from 'prop-types' import { RotatingPlane } from 'better-react-spinkit' const Loader = ({ loading }) => <div> {loading && <div className='loader-overlay'> <RotatingPlane size={100} color='#fff' /> </div> } </div> Loader.propTypes = { loading:...
src/components/Header/Header.js
pandoraui/react-starter
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { return (...
app/javascript/mastodon/features/notifications/index.js
dwango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandNotifications, scrollTopNotifications ...
src/components/widgets/widgets-index.js
johnamiahford/widgets-spa
'use strict'; import React from 'react'; import { RouteHandler } from 'react-router'; class WidgetsIndex extends React.Component { componentWillUnmount() { this.props.resetToDefaultSettings(); } render() { let { widgets, widgetsCount, updateAllWidgetsList, updateSingleWidgetLis...
src/index.js
bombbomb/Hydra
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './css/index.css'; ReactDOM.render( <App />, document.getElementById('root') );
components/select/demo/showSearch.js
TDFE/td-ui
import React from 'react'; import Select from '../index'; const Option = Select.Option; export default class showSearch extends React.Component { constructor(props) { super(props); this.state = { value: 'one' } } handleChange = value => { this.setState({ value }) } render() { ...
docs/src/app/components/pages/components/Tabs/ExampleControlled.js
verdan/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; export default class TabsExampleControlled extends React.Component { constructor(props) { super(props); this.state =...
src/Parser/Priest/Shadow/Modules/Items/TwinsPainfulTouch.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Enemies from 'Parser/Core/Modules/Enemies'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import Voidform from '../Spells/Voidform'; const LATENCY_BUFFER = ...
js/jqwidgets/demos/react/app/dropdownlist/textwithicons/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { render() { let source = [ { html: '<div style="height: 20px; float: left;"><img style="float: left; margin-top: 2px;...
ajax/libs/backbone.js/1.1.2/backbone.js
JacquesMarais/cdnjs
// Backbone.js 1.1.2 // (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(root, factory) { // Set up Backbone appropriately for ...
ajax/libs/forerunnerdb/1.3.709/fdb-legacy.min.js
hare1039/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/frontend/screens/Customer/edit.js
Koleso/invoicer
import React from 'react'; // Components import { Grid, GridColumn } from 'components/Grid'; import Screen from 'components/Screen'; import Box from 'components/Box'; // Forms import CustomerContainer from 'containers/CustomerContainer'; const EditCustomer = (props) => ( <Screen title="Subjekty" pageTitle="Upravit ...
test/specs/sidenav/sidenav.spec.js
working-minds/realizejs
import React from 'react' import { SideNav } from 'components/sidenav'; import { Menu } from 'components/menu'; import { shallow } from 'enzyme'; describe('Sidenav', () => { it('exists', () => { assert(SideNav); }); it('renders with the default props', () => { const content = shallow( <SideNav /> ...
src/index.js
tomgowans/365beers
import React from 'react'; import ReactDOM from 'react-dom'; import * as firebase from 'firebase'; import * as firebaseui from 'firebaseui'; import { firebaseAuth } from './components/Auth.js'; import './styles/index.css'; import 'firebaseui/dist/firebaseui.css'; import 'bootstrap/dist/css/bootstrap.css'; import { Prov...
client/Todo/TodoApp.js
wekilledit/react-redux-website
import React from 'react' import Footer from './components/Footer' import AddTodo from './containers/AddTodo' import VisibleTodoList from './containers/VisibleTodoList' const TodoApp = () => ( <div className='todoApp'> <AddTodo /> <VisibleTodoList /> <Footer /> </div> ) export default TodoApp
ajax/libs/react-bootstrap-table/1.5.3/react-bootstrap-table.js
tonytomov/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
src/historyrouter.js
goldenyz/thin-react-router
import React from 'react'; import PropTypes from 'prop-types'; import Router from './router'; import { createBrowserHistory, createHashHistory } from './createhistory'; function createHistoryRouter(createHistory) { const history = createHistory(); const HistoryRouter = props => ( <Router history={history} rout...
ajax/libs/react-data-grid/1.0.34/react-data-grid.ui-plugins.js
maruilian11/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof define === 'function' && define.amd) define(["react", "react-dom"], factory); else if(typeof exports === 'obje...
src/client/app/createactions.js
Tzitzian/Oppex
import Component from '../components/component.react'; import React from 'react'; import fetch from 'isomorphic-fetch'; import {createValidate} from '../validate'; import * as authActions from '../auth/actions'; import * as todosActions from '../todos/actions'; const actions = [authActions, todosActions]; export def...
addons/info/src/components/types/PropertyLabel.js
storybooks/react-storybook
import PropTypes from 'prop-types'; import React from 'react'; const styles = { hasProperty: { whiteSpace: 'nowrap', }, }; const PropertyLabel = ({ property, required }) => { if (!property) return null; return ( <span style={styles.hasProperty}> {property} {required ? '' : '?'}:&nbsp; ...
frontend/ext/packages/sencha-core/src/util/Schedulable.js
tlaitinen/receipts
/** * This is a base class for objects that can be managed by `Ext.util.Scheduler`. * @private */ Ext.define('Ext.util.Schedulable', { 'abstract': true, isSchedulable: true, scheduled: false, constructor: function () { this.getScheduler().add(this); }, destroy: function () { ...
client/src/components/CustomSettingsPage.js
BrianLusina/Arco
/** * Created by lusinabrian on 05/05/17. */ import React from 'react'; const CustomSettingsPage = () => { return( <div className="page" id="page-custom"> <header className="bp-header cf"> <h1 className="bp-header__title">Customization &amp; Settings</h1> <p className="bp-header__desc">Based on Ily...
packages/material-ui-icons/src/ModeCommentSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M22 2H2v16h16l4 4z" /></React.Fragment> , 'ModeCommentSharp');
src/components/Counter.js
mmapplebeck/react-redux-minesweeper
import React from 'react' import '../style/counter.scss' export default props => ( <div className="counter">{props.count}</div> )
src/svg-icons/image/filter-none.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterNone = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); Ima...
installer/frontend/trail.js
estroz/tectonic-installer
import _ from 'lodash'; import React from 'react'; import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable'; import { commitPhases } from './actions'; import { PLATFORM_TYPE, DRY_RUN } from './cluster-config'; import { CertificateAuthority } from './components/certificate-authority'; import { ClusterType ...
App.js
danieltoo/Smart-Notifications-RN
import React from 'react'; import { StyleSheet, Text, View, TextInput, Button, ToastAndroid } from 'react-native'; import PushNotification from'react-native-push-notification' import notificationSettings from './utils/notificationSettings' import SocketIOClient from 'socket.io-client' PushNotification....
react-ui/src/routes.js
simonlimon/varsncrafts
import React from 'react'; import NavTransition from './components/NavTransition.react'; import Home from './components/Home.react'; import CraftRoot from './components/CraftRoot.react'; import { Router, Route, hashHistory, IndexRoute } from 'react-router'; const routes = ( <Router history={hashHistory}> <Route ...
node_modules/react-icons/md/flare.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdFlare = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m18.4 38.4v-10h3.2v10h-3.2z m-9-10.1l3.6-3.6 2.3 2.3-3.6 3.6z m15.3-1.3l2.3-2.3 3.6 3.6-2.3 2.3z m-4.7-12c2.7 0 5 2.3 5 5s-2.3 5-5 5-5-2.3-5-5 2.3-5 5-5z m8.4 3.4h10v3....
client/src/components/software/index.js
OpenChemistry/materialsdatabank
import React, { Component } from 'react'; import withStyles from '@material-ui/core/styles/withStyles'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Card from '@material-ui/core/Card'; import ImageIcon from '@material-ui/icons/Image'; import PageHead from '../...
node_modules/antd/es/badge/ScrollNumber.js
ZSMingNB/react-news
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/svg-icons/av/fast-rewind.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFastRewind = (props) => ( <SvgIcon {...props}> <path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/> </SvgIcon> ); AvFastRewind = pure(AvFastRewind); AvFastRewind.displayName = 'AvFastRewind'; AvFastRewin...
src/components/panel-layers.js
maxmalynowsky/map-talc
import React, { Component } from 'react'; import Radium from 'radium'; import store from '../store.js'; import styles from '../styles.js'; import Drawer from './drawer.js'; @Radium export default class PanelLayers extends Component { get styles() { const state = store.getState(); return { container: {...
src/svg-icons/action/alarm-off.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
Console/app/node_modules/antd/es/table/SelectionBox.js
RisenEsports/RisenEsports.github.io
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import Checkbox f...
src/svg-icons/alert/warning.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertWarning = (props) => ( <SvgIcon {...props}> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/> </SvgIcon> ); AlertWarning = pure(AlertWarning); AlertWarning.displayName = 'AlertWarning'; Aler...
js/vendor/jquery-1.10.2.min.js
nimetu/ryzom_js
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
src/components/about.js
avalla/webpack-react-kit
import React from 'react'; import PageHeader from './_shared/page_header' import Grid from 'react-bootstrap/lib/Grid' import Row from 'react-bootstrap/lib/Grid' import Col from 'react-bootstrap/lib/Col' import Image from 'react-bootstrap/lib/Image' import dummy from '../img/dummy.jpg' export default class About exten...
tests/api-react/image/2-Image.js
keystonejs/keystone-test-project
import React from 'react'; import { Form, FormField, FileUpload } from 'elemental'; import api from '../../../client/lib/api'; const Test = React.createClass({ displayName: 'Upload Multiple Images', getInitialState () { return { image_one: null, image_two: null, }; }, componentDidMount () { this.props...
src/js/libs/backbone.js
mxruedag/listit
// Backbone.js 1.0.0 // (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(){ // Initial Setup // ------------- // Save a reference to the global object (`wi...
app/addons/permissions/components/PermissionsItem.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/jquery-1.6.1.js
IAmAnubhavSaini/brackets
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
packages/material-ui-icons/src/StyleOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zM22.03 15.95L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1...
core/components/ErrorBoundary.js
wp-pwa/wp-pwa
/* eslint-disable class-methods-use-this, no-console */ import React from 'react'; import PropTypes from 'prop-types'; class ErrorBoundary extends React.Component { static propTypes = { children: PropTypes.node.isRequired, }; componentDidCatch(error, info) { console.warn(error, info); const name = ...
src/server/middleware/reactApplication/index.js
igorsvee/react-ssr
/* @flow */ import type { $Request, $Response, Middleware } from 'express'; import React from 'react'; import { renderToString } from 'react-dom/server'; // import { ServerRouter, createServerRenderContext } from 'react-router'; import { StaticRouter, createServerRenderContext } from 'react-router'; import { Provider ...
example/src/views/app.js
TransferGo/react-subrouter
import React from 'react'; import {Link, RouteHandler} from 'react-router'; import Modal from './modal/index.js'; export default class extends React.Component{ render(){ return ( <div className="wrapper"> <hr/> <h3>React Router</h3> <div classN...
src/layout/Footer.js
Moovashaka/moovaShaka
import React from 'react'; export default class Footer extends React.Component { render() { return ( <div className="text-center"> <hr /> <p>&copy;MoovaShaka {(new Date().getFullYear())}</p> <hr /> </div> ); } }
assets/components/product/main.js
alwayalive/admin-be
import React from 'react'; import ReactDOM from 'react-dom' import { connect } from 'react-redux' import { Table } from 'antd' import Fieldset from 'commons/fieldset.js' import Search from './search.js' import { loadingState, initDataSource, initPagination, changeScroll } from 'actions/product/list.js' import { is } fr...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js
liamhu/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(baseUser) { return [ { id: 1, name: '...
src/svg-icons/av/fiber-manual-record.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberManualRecord = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="8"/> </SvgIcon> ); AvFiberManualRecord = pure(AvFiberManualRecord); AvFiberManualRecord.displayName = 'AvFiberManualRecord'; ...
Tests/Components/RoundedButtonTest.js
samuraitruong/react-native-fx260
import 'react-native' import React from 'react' import RoundedButton from '../../App/Components/RoundedButton' import { shallow } from 'enzyme' import renderer from 'react-test-renderer' test('RoundedButton component renders correctly', () => { const tree = renderer.create(<RoundedButton onPress={() => {}} text='how...
docs/src/app/components/pages/components/IconButton/ExampleSimple.js
spiermar/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; const IconButtonExampleSimple = () => ( <div> <IconButton iconClassName="muidocs-icon-custom-github" /> <IconButton iconClassName="muidocs-icon-custom-github" disabled={true} /> </div> ); export default IconButtonExampleSimple;
app/containers/EditContainer.js
mcmunder/eaternity-react
/* @flow */ import React from 'react' import * as dataActions from '../store/data/actions' import * as viewActions from '../store/view/actions' import { bindActionCreators } from 'redux' import { push } from 'react-router-redux' import { connect } from 'react-redux' import Edit from '../components/Edit/Edit' const Edi...
ajax/libs/rxjs/2.3.11/rx.lite.compat.js
drewfreyling/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...
templates/javascript/Component.js
mjul/generator-react-webpack
'use strict'; var React = require('react/addons');<% if(rich && architecture === 'reflux'){%> var Reflux = require('Reflux');<%}%> <% if(rich && architecture === 'flux' || architecture === 'reflux'){%> //var Actions = require('actions/xxx')<%}%> <% if (stylesLanguage === 'css') { %>require('styles/<%= classedFileName...
components/frontend/src/subject/SubjectParameters.js
ICTU/quality-time
import React from 'react'; import { Grid } from 'semantic-ui-react'; import { Comment } from '../fields/Comment'; import { StringInput } from '../fields/StringInput'; import { SubjectType } from './SubjectType'; import { set_subject_attribute } from '../api/subject'; import { EDIT_REPORT_PERMISSION } from '../context/P...
src/components/ab-ctrl/tooltip/singleton.js
jl-/bronote
import React, { Component } from 'react'; import './style.scss'; const TOOLTIP_ACTIVE_CLS = 'tp--active'; let $tooltip = null; function makeTooltip(content) { let tooltipInner; if (!$tooltip) { $tooltip = document.createElement('div'); tooltipInner = $tooltip.cloneNode(); $tooltip.appendChild(tooltipI...
app/modules/frontpage/js/plugins/noty/demo/jquery-1.7.2.min.js
eulersantana/yggdrasil
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
packages/material-ui-icons/src/LocalConvenienceStoreTwoTone.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M14 14h2v4h4V9h-3V6H7v3H4v9h4v-4h6zm-1-7h1v2h1V7h1v5h-1v-2h-2V7zM8 9h2V8H8V7h3v3H9v1h2v1H8V9z" opacity=".3" /><path d="M10 16h4v4h8V7h-3V4H5v3H2...
public/src/components/products/__tests__/products-search.react-test.js
Lesha-spr/greed
jest.unmock('./../products-search.react.jsx'); import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import ProductsSearch from './../products-search.react.jsx'; import ProductsActions from './../../../actions/products/products.actions.js'; let productsSearchRen...
tests/react_native_tests/test_data/native_code/Scrollview/app/components/UserConnect_5/component.js
ibhubs/sketch-components
/** * @flow */ import React from 'react' import PropTypes from 'prop-types' import { observer } from 'mobx-react/native' import styles from './styles' import Button from '@rn/commons/app/components/VIButton/VIButton' import styled from 'styled-components/native' import { Text } from 'react-native' import { View } f...
packages/shared/forks/Schedule.umd.js
roth1002/react
/** * 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. * * @flow */ import React from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; const { ...
node_modules/react-router/es/Redirect.js
iEnder/React-Blog
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.st...
app/javascript/mastodon/containers/card_container.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; import Card from '../features/status/components/card'; import { fromJS } from 'immutable'; export default class CardContainer extends React.PureComponent { static propTypes = { locale: PropTypes.string, card: PropTypes.array.isRequired, }; ...
ajax/libs/forerunnerdb/1.3.729/fdb-core+persist.min.js
iwdmb/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/components/Notify/index.js
deep-c/react-redux-notify
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import { connect } from 'react-redux'; import ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup'; import { removeNotification, removeAllNotifications, NOTIFICATIONS_POS_TOP_RIGHT, } from ...
ajax/libs/forerunnerdb/1.3.808/fdb-core+views.min.js
rlugojr/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/components/partials/FloatingActionButtons.js
benjamindehli/chord-finder-app-test
// Dependencies import React, { Component } from 'react'; import { connect } from 'react-redux'; // OutputAudio import Synthesizer from 'components/outputAudio/Synthesizer'; // Stylesheets import style from 'components/partials/FloatingActionButtons.module.scss'; class FloatingActionButtons extends Component { r...
docs/app/Examples/views/Statistic/Types/StatisticExampleGroupShorthand.js
shengnian/shengnian-ui-react
import React from 'react' import { Statistic } from 'shengnian-ui-react' const items = [ { key: 'faves', label: 'Faves', value: '22' }, { key: 'views', label: 'Views', value: '31,200' }, { key: 'members', label: 'Members', value: '22' }, ] const StatisticExampleGroupShorthand = () => ( <Statistic.Group items=...
src/Interpolate.js
laran/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
src/svg-icons/action/settings-input-antenna.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputAntenna = (props) => ( <SvgIcon {...props}> <path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ...
frontend/app_v2/src/components/DashboardMedia/DashboardMediaContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import { Route, Routes } from 'react-router-dom' // FPCC import DashboardMediaPresentation from 'components/DashboardMedia/DashboardMediaPresentation' import DashboardMediaData from 'components/DashboardMedia/DashboardMediaData' import MediaBrowser from 'components/MediaBrowser' function Das...
ajax/libs/extjs/4.2.1/src/form/Basic.min.js
NameFILIP/cdnjs
Ext.define("Ext.form.Basic",{extend:"Ext.util.Observable",alternateClassName:"Ext.form.BasicForm",requires:["Ext.util.MixedCollection","Ext.form.action.Load","Ext.form.action.Submit","Ext.window.MessageBox","Ext.data.Errors","Ext.util.DelayedTask"],constructor:function(b,c){var d=this,a;d.owner=b;d.checkValidityTask=ne...