path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
es/components/sidebar/panel-layer-elements.js
vovance/3d-demo
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;...
app/components/Nav.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; import styles from '../styles/app.scss'; import { Link } from 'react-router'; import Strings from '../model/Strings'; const navItems = Strings.nav.items.map((item, x) => <li key={x}> <Link to={'/' + item.name}> <img src={it...
src/Parser/DeathKnight/Unholy/Modules/Features/Apocalypse.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import EnemyInstances from 'Parser/Core/Modules/EnemyInstances'; import Stat...
test/helpers/shallowRenderHelper.js
Steinkuo/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
ajax/libs/material-ui/5.0.0-alpha.28/legacy/AppBar/AppBar.js
cdnjs/cdnjs
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { deepmerge } from '@material-ui/utils'; import { unstable_composeClas...
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveDown.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleMoveDown = () => ( <Reveal animated='move down'> <Reveal.Content visible> <Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> ...
packages/react-server-examples/bike-share/pages/index.js
doug-wade/react-server
import React from 'react'; import {ReactServerAgent, RootElement, TheFold, logging} from 'react-server'; import NetworkList from '../components/network-list'; import Header from '../components/header'; import Footer from '../components/footer'; import '../styles/index.scss'; const logger = logging.getLogger(__LOGGER__...
src/svg-icons/content/redo.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
page/app.js
trisys3/combook
import React from 'react'; import './app.css'; export default ({children}) => <page-comp>{children}</page-comp>;
test/specs/util/LogUtilsSpec.js
sdoomz/recharts
import React from 'react'; import { expect } from 'chai'; import { warn } from '../../../src/util/LogUtils'; describe('LogUtils', () => { it('warn when format is null', () => { warn(true); }); it('warn when condition is false', () => { warn(false, 'format'); warn(false); warn(false, 'format wid...
components/animalListScene.js
marxsk/zobro
import React from 'react'; import { View, Text, TouchableHighlight, TextInput, StyleSheet, Alert } from 'react-native'; import * as scenes from '../scenes'; import AlphabetListView from 'react-native-alphabetlistview'; import animalDb from '../animals'; var navigator; var bg; class Cell extends React.Compo...
packages/lesswrong/components/async/editor-plugins/divider/index.js
Discordius/Telescope
import React from 'react'; import DefaultDivider from './components/DefaultDivider'; import DividerButton from './components/DividerButton'; // import buttonStyles from './buttonStyles.css'; const createDividerPlugin = ( { blockType = 'divider', component = DefaultDivider } = {}, ) => ({ blockRendererFn: (block)...
src/components/options/navigation/NavigationHeader.js
svrnm/demomonkey
import React from 'react' import PropTypes from 'prop-types' import ConfigurationUpload from '../../shared/ConfigurationUpload' class NavigationHeader extends React.Component { static propTypes = { onUpload: PropTypes.func.isRequired, onNavigate: PropTypes.func.isRequired } handleClick(event, target) {...
frontend/src/Settings/ImportLists/ImportLists/EditImportListModalConnector.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { clearPendingChanges } from 'Store/Actions/baseActions'; import { cancelSaveImportList, cancelTestImportList } from 'Store/Actions/settingsActions'; import EditImportListModal from './EditImportL...
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js
Fenzland/laravel
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class Example extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-8 col-md-offset-2"> ...
ui/src/views/serviceprofiles/ListServiceProfiles.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import { Link } from 'react-router'; import Pagination from "../../components/Pagination"; import ServiceProfileStore from "../../stores/ServiceProfileStore"; import SessionStore from "../../stores/SessionStore"; class ServiceProfileRow extends Component { render() { r...
challenge6/finished/node_modules/browserify-middleware/node_modules/browserify/node_modules/umd/node_modules/ruglify/test/fixture/jquery.min.js
radhikabhanu/node-workshop
(function(e,t){function n(e){var t=e.length,n=ut.type(e);return ut.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Nt[e]={};return ut.each(e.match(ct)||[],function(e,n){t[n]=!0}),t}function i(e,n,r,i){if(ut.acceptData(e)){var o,a,s=ut.expan...
ajax/libs/yui/3.2.0/event/event.js
danut007ro/cdnjs
/* * DOM event listener abstraction layer * @module event * @submodule event-base */ (function() { // Unlike most of the library, this code has to be executed as soon as it is // introduced into the page -- and it should only be executed one time // regardless of the number of instances that use it. var stateCha...
server/sonar-web/src/main/js/apps/background-tasks/tasks.js
KoushikdMS/sonarqube
import React from 'react'; import {getProjectUrl} from '../../helpers/Url'; import QualifierIcon from '../../components/shared/qualifier-icon'; import {STATUSES} from './constants'; export default React.createClass({ propTypes: { tasks: React.PropTypes.arrayOf(React.PropTypes.object).isRequired }, onTaskCan...
app/client/imports/containers/SearchResults.js
Caroisawesome/jukeBox
import React, { Component } from 'react'; import { connect } from 'react-redux'; import SongItem from './SongItem.js'; class SearchResult extends Component { render() { return ( <div className="ui basic segment"> <h1>results...</h1> <div className="ui four cards">...
wrappers/toml.js
immato/website
import React from 'react' import toml from 'toml-js' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
app/containers/Home/index.js
g00dman5/freemouthmedia
/* * * Home * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router'; import Responsive from 'react-responsive'; import NavLeft from 'material-ui/svg-icons/navigation/chevron-left'; import NavRight from 'material-ui/svg-icons/navigation/chevron-right'; import NavUp from ...
ajax/libs/material-ui/5.0.0-alpha.23/node/ImageList/ImageList.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab...
django/contrib/admin/media/js/jquery.min.js
redebian/documentation
/*! * 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. ...
ajax/libs/yui/3.7.1/event-custom-base/event-custom-base-coverage.js
dannyxx001/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
ajax/libs/yui/3.18.0/datatable-core/datatable-core-debug.js
JimBobSquarePants/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
docs/src/app/components/pages/components/TextField/ExampleCustomize.js
pomerantsev/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; const styles = { errorStyle: { color: orange500, }, underlineStyle: { borderColor: orange500, }, floatingLabelStyle: { color: orange500, }, floatingLabelFocu...
src/svg-icons/action/settings-brightness.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBrightness = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1...
flask_react/client/test/components/Protect.spec.js
ebottabi/mmakinde-ebot
/* global expect window*/ import React from 'react'; import { shallow } from 'enzyme'; import Protect from '../../components/Protect'; import mockLocalStorage from '../utils/mockLocalStorage'; window.localStorage = mockLocalStorage; describe('Protect component', () => { it('renders as a footer', () => { const ...
app/containers/RepoListItem/index.js
haithemT/app-test
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'; import...
ajax/libs/analytics.js/2.9.1/analytics.min.js
froala/cdnjs
(function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&(define.amd||define.cmd)){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jum...
service_1/src/components/not_found_page.js
cleverbridge/spike_living_styleguide
import React from 'react'; import { Link } from 'react-router'; export default class NotFoundPage extends React.Component { render() { return ( <div> <h1>404</h1> <h2>Page not found!</h2> <p> <Link to="/">Go back to the main pa...
examples/tree-view/containers/Node.js
leoasis/redux
import React from 'react' import { Component } from 'react' import { connect } from 'react-redux' import * as actions from '../actions' class Node extends Component { constructor(props) { super(props) this.handleIncrementClick = this.handleIncrementClick.bind(this) this.handleRemoveClick = this.handleRem...
Examples/CustomTabBar/__tests__/index.android.js
Wolox/react-native-renavigate
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
src/components/DemoDialog.js
preciz/webpack-react-demo
import React from 'react'; import Dialog from 'material-ui/lib/dialog'; import RaisedButton from 'material-ui/lib/raised-button'; const DemoDialog = (props) => { const dialogActions = [ <RaisedButton label="Ok" secondary={true} onClick={props.closeDialog} /> ]; return ( <Dialog ...
packages/node_modules/@webex/react-component-activity-post-action/src/index.js
adamweeks/react-ciscospark-1
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Button from '@webex/react-component-button'; import styles from './styles.css'; const propTypes = { iconColor: PropTypes.string, iconType: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, ...
ajax/libs/angular-google-maps/2.0.10/angular-google-maps_dev_mapped.js
RubaXa/cdnjs
/*! angular-google-maps 2.0.10 2014-11-25 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
dac/ui-lib/src/components/FormikSelect/FormikSelect.js
dremio/dremio-oss
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
src/app/components/Auth/index.js
drivesense/server
import React from 'react'; import Colors from 'material-ui/lib/styles/colors'; import {Card} from 'material-ui'; import logo from '../../../static/logo.svg'; const styles = { container: { flex: 1, flexDirection: 'column', alignItems: 'center', justifyContent: 'center', boxSizing: 'border-box', ...
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Form/Modal.js
KlusterKite/KlusterKite
import React from 'react'; import { Modal, Button } from 'react-bootstrap'; import './styles.css'; export default class ModalBlock extends React.Component { static propTypes = { title: React.PropTypes.string.isRequired, cancelText: React.PropTypes.string, confirmText: React.PropTypes.string, confirm...
dispatch/static/manager/src/js/pages/Podcasts/PodcastIndexPage.js
ubyssey/dispatch
import React from 'react' import { connect } from 'react-redux' import { replace } from 'react-router-redux' import { Link } from 'react-router' import ItemIndexPage from '../ItemIndexPage' import podcastsActions from '../../actions/PodcastsActions' import CopyToClipboard from '../../components/CopyToClipboard' const...
src/build.js
l3ve/Rx.js
import React from 'react'; import ReactDOM from 'react-dom'; import O from './a.jsx'; ReactDOM.render( <O />, document.querySelector('.test') )
ajax/libs/oojs-ui/0.25.0/oojs-ui-windows.js
cdnjs/cdnjs
/*! * OOjs UI v0.25.0 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2018 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2018-01-10T00:26:02Z */ ( function ( OO ) { 'use strict'; /** * An ActionWidget is a {@link OO.ui.ButtonWidget ...
ajax/libs/mobx/3.5.1/mobx.umd.min.js
joeyparrish/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:...
index.js
yinghang/react-native-local-storage
'use strict'; // wrapper for Asyncstorage // #1 - reduce code mess for AsyncStorage // #2 - practice creating react native modules // features to implement // #1 - expand the functionalities to support multiGet etc // #2 - help setState? // #3 - help with fetch? import React, { Component } from 'react'; import { A...
packages/material-ui-icons/src/SettingsPowerRounded.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="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm1-22c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1s1-.45 1-1V3c0-.55-.45-1-1-1zm3.94 3.06l-.02.02c-.41.41-.36 1.08.08 1.46 1....
packages/icons/src/md/av/Forward30.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdForward30(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M19.1 29h.9c.4 0 .7-.1 1-.3.3-.2.3-.5.3-.9 0-.2 0-.3-.1-.4-.1-.1-.1-.3-.2-.4-.1-.1-.2-.2-.4-.2s-.3-.1-.5-.1-.3 0-.4.1c-.1.1-.3.1-.4.2-.1.1-.2.2-.2....
modules/RouteUtils.js
chf2/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
src/browser/createRoutes.js
blueberryapps/este
import App from './app/App.react'; import Auth from './auth/Page.react'; import Home from './home/Page.react'; import Me from './me/Page.react'; import NotFound from './notfound/Page.react'; import Profile from './me/Profile.react'; import React from 'react'; import Settings from './me/Settings.react'; import Todos fro...
fields/types/date/DateColumn.js
snowkeeper/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obj...
ajax/libs/angular-google-maps/1.1.12/angular-google-maps.js
humbletim/cdnjs
/*! angular-google-maps 1.1.11 2014-07-28 * AngularJS directives for Google Maps * git: https://github.com/nlaplante/angular-google-maps.git */ /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this softw...
src/TableHeaderColumn.js
prince1809/react-grid
import React from 'react'; import classSet from 'classnames'; import Const from './Const'; class TableHeaderColumn extends React.Component{ order : Const.SORT_DESC handleColumnClick(e){ if(!this.props.dataSort) return; var dom = this.refs.innerDiv.getDOMNode(); this.order = this.order == Const.SORT_DE...
src/routes/contact/index.js
koistya/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Contact from './Contact'...
app/javascript/mastodon/features/ui/components/column_subheading.js
TheInventrix/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
example/src/components/IndoorBuilding.js
bsudekum/react-native-mapbox-gl
import React from 'react'; import {View, StyleSheet} from 'react-native'; import MapboxGL from '@mapbox/react-native-mapbox-gl'; import {Slider} from 'react-native-elements'; import sheet from '../styles/sheet'; import colors from '../styles/colors'; import indoorMapGeoJSON from '../assets/indoor_3d_map.json'; import...
web/src/components/Header.js
doeg/plantly-graphql
import cx from 'classnames' import React from 'react' import { Link } from 'found' import style from './header.css' import Button from './inputs/Button' type Props = { onClickLogin: Function, onClickLogout: Function, isAuthenticated: boolean, } const Header = ({ onClickLogout, onClickLogin, isAuthenticated }: P...
node_modules/react-native/Libraries/vendor/core/ES6Promise.js
dancurtiss/MLBSchedules
/** * @generated SignedSource<<d169e3bbcd91c2e26877882e0d02f289>> * * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * !! This file is a check-in of a static_upstream project! !! * !! !! * !! You should not modify this file directly...
test/integration/scss-fixtures/invalid-global-with-app/pages/_app.js
zeit/next.js
import React from 'react' import App from 'next/app' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
ajax/libs/react-data-grid/0.13.8/react-data-grid-with-addons.min.js
iwdmb/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react")):e.ReactDataGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[...
tests/react/ConcurrentMode.js
AgentME/flow
// @flow import React from 'react'; { const {ConcurrentMode} = React; <ConcurrentMode> <div /> </ConcurrentMode> } { const {Component, ConcurrentMode} = React; class ClassExample extends Component<{||}> { render() { return null; } } <ConcurrentMode> <ClassExample /> </Concurr...
packages/mineral-ui-icons/src/IconSignalCellular2Bar.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSignalCellular2Bar(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {.....
docs/src/pages/components/lists/CheckboxList.js
kybarg/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'; impo...
ajax/libs/react-dom/18.0.0-alpha-46a0f050a-20210828/cjs/react-dom-server-legacy.browser.production.min.js
cdnjs/cdnjs
/** @license React vundefined * react-dom-server-legacy.browser.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict';var h=require("object-assign"),aa=re...
app/components/H3/index.js
AK33M/scalable-react
import React from 'react'; function H3(props) { return ( <h3 {...props} /> ); } export default H3;
src/svg-icons/action/lock.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLock = (props) => ( <SvgIcon {...props}> <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-....
src/components/PageTitle.js
branch-bookkeeper/pina
import React from 'react'; import Typography from '@material-ui/core/Typography'; const PageTitle = ({ children, ...props }) => ( <Typography variant="h5" component="h1" style={{ fontSize: '1.75rem' }} {...props}> {children} </Typography> ); export default PageTitle;
Examples/UIExplorer/AdSupportIOSExample.js
NishanthShankar/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, ...
app/containers/LandingPageContainer.js
ashley-jelks-truss/DoDidDone
import React from 'react'; import { List } from 'immutable'; import Header from '../components/LandingPage/LandingPageHeader'; import HorizontalContainer from '../components/LandingPage/HorizontalContainer'; import VerticalContainer from '../components/LandingPage/VerticalContainer'; const verticalContent = List([ {...
app/components/Gravatar/index.js
balintsoos/app.rezsi.io
import React from 'react'; import PropTypes from 'prop-types'; import md5 from 'md5'; import Avatar from 'material-ui/Avatar'; import Paper from 'material-ui/Paper'; export const url = ({ email, size = 100, placeholder = 'retro' }) => { const hash = md5(email); return `https://www.gravatar.com/avatar/${hash}?s=$...
packages/my-joy-images/src/index.js
geek/joyent-portal
import React from 'react'; import ReactDOM from 'react-dom'; import { ThemeProvider } from 'styled-components'; import { Provider as ReduxProvider } from 'react-redux'; import { ApolloProvider } from 'react-apollo'; import { BrowserRouter } from 'react-router-dom'; import isFunction from 'lodash.isfunction'; import isF...
websrc/components/ScriptList.js
Ricky-Nz/gear-website
import React from 'react'; import Relay from 'relay'; import { ListGroup } from 'react-bootstrap'; import ScriptItem from './ScriptItem'; import ListSearchHeader from './ListSearchHeader'; import ListLoadMoreFooter from './ListLoadMoreFooter'; class ScriptList extends React.Component { constructor(props) { super(pr...
templates/javascript/App.js
cmil/generator-react-webpack
'use strict'; var React = require('react/addons'); var ReactTransitionGroup = React.addons.TransitionGroup; // CSS require('normalize.css'); require('../styles/main.css'); var imageURL = require('../images/yeoman.png'); var <%= scriptAppName %> = React.createClass({ render: function() { return ( <div cl...
node_modules/react-widgets/lib/Button.js
Alex-Shilman/Drupal8Node
'use strict'; exports.__esModule = true; 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; }; var _react = requi...
Examples/UIExplorer/AccessibilityIOSExample.js
sprightco/react-web
/** * 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, ...
packages/icons/src/dv/Babel.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvBabel(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M19.527 7.007c4.546-1.76 8.25-2.75 11.054-3.007 3.41.055 5.775.532 7.095 1.43 2.237 1.008 3.41 2.328 3.557 3.96l.055.55c-.165 2.328-.66 4.015-1.467 5.0...
app/javascript/mastodon/features/home_timeline/index.js
cybrespace/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
ajax/libs/jquery/1.4.3/jquery.js
dada0423/cdnjs
/*! * jQuery JavaScript Library v1.4.3 * 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. ...
packages/lore-hook-connect/src/components/Connect.js
lore/lore
/* eslint prefer-rest-params: "off" */ /* eslint react/prefer-es6-class: "off" */ /* eslint no-unused-vars: "off" */ import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import createReactClass from 'create-react-class'; import { result as _result } from 'lore-utils'; import connect f...
src/navigation/components/subnav.js
rek/grammar-notes
import React from 'react' import {connect} from 'react-redux' import {v4} from 'node-uuid'; import PropTypes from 'prop-types' import {Navbar, Nav, NavItem} from 'react-bootstrap' import {LinkContainer} from 'react-router-bootstrap' let SubNav = ({data = [], selected}) => { // console.log('data', data); console.log...
src/interface/common/CyclingVideo.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; class CyclingVideo extends React.PureComponent { static propTypes = { videos: PropTypes.arrayOf(PropTypes.string).isRequired, randomValue: PropTypes.number, }; constructor(props) { super(props); const randomValue = props.randomValue ...
src/Parser/RestoDruid/Modules/Legendaries/Sephuz.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Combatants from 'Parser/Core/Modules/Combatants'; import ITEMS from 'common/ITEMS'; import CoreSephuz from 'Parser/Core/Modules/Items/SephuzsSecret'; export const SEPHUZ_ITEM_ID = 132452; // 1% Haste is worth 375 haste rating. const ONE_PERCENT_HASTE_RATING = 375; const SEPHUZ_PROCC_...
ajax/libs/forerunnerdb/1.3.30/fdb-core+views.min.js
dannyxx001/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...
ajax/libs/yui/3.6.0pr1/event-custom-base/event-custom-base.js
perdona/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module ev...
src/browser/copyright/CopyrightPage.js
redcom/doctori-romani-in-berlin
// @flow import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box, PageHeader, Paragraph } from '../../common/components'; import { Title } from '../components'; const Copyright = () => ( <Box> <Title message={linksMessages.copyright} /> <PageHeader descriptio...
.history/src/components/InstaCelebs/index_20171001010701.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' import '../../styles/insta-stats.scss' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885...
index.android.js
hackersync/HackerSync
/** * Index file for iOS * @flow */ import React, { Component } from 'react'; import Homepage from './common/components/homepage.js'; import { AppRegistry } from 'react-native'; class HackerSync extends Component { constructor() { super(); } render() { return <Homepage/>; } } AppRegistry.register...
app/src/Frontend/modules/weui/pages/button/index.js
ptphp/ptphp
/** * Created by jf on 15/12/10. */ "use strict"; import React from 'react'; import {Button} from '../../../../index'; import Page from '../../component/page'; import './button.less'; export default class ButtonDemo extends React.Component { render() { return ( <Page className="button" tit...
src/Flex1.js
babizhu/webApp
/** * Created by liu_k on 2015/11/16. * */ import React from 'react'; import App from './App'; import Nav from './Nav'; class Flex extends React.Component { render() { let box = { //padding: '2px', display: 'flex', height: '100%', background: 'gray', ...
react-flux-mui/js/material-ui/src/svg-icons/action/hourglass-full.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHourglassFull = (props) => ( <SvgIcon {...props}> <path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/> </SvgIcon> ); ActionHourglassFull = pure(ActionHour...
node_modules/react-icons/md/wrap-text.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdWrapText = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.4 18.4c3.6 0 6.6 2.9 6.6 6.6s-3 6.6-6.6 6.6h-3.4v3.4l-5-5 5-5v3.4h3.8c1.7 0 3.3-1.6 3.3-3.4s-1.6-3.4-3.3-3.4h-22.2v-3.2h21.8z m5-10v3.2h-26.8v-3.2h26.8z m-26.8 2...
web/static/js/containers/App.js
maxdec/cellar
import React, { Component } from 'react'; import { Footer, Header } from '../components'; import { Alerts } from './'; export default class App extends Component { static childContextTypes = { location: React.PropTypes.object }; getChildContext() { return { location: this.props.location }; } render...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
ArcanisCz/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; /** * This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`. */ export default class DatePi...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
yangchaogit/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import { assign } from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; im...
examples/todomvc/test/components/Footer.spec.js
ptkach/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Footer from '../../components/Footer' import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters' function setup(propOverrides) { const props = Object.assign({ completedCount: 0, activeCount: ...
src/parser/shaman/elemental/modules/checklist/Component.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import PreparationRule from 'parser/shared/modules/features/Checklist/PreparationRule'; i...
src/parser/warlock/destruction/modules/talents/Inferno.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatThousands } from 'common/format'; import StatisticListBoxItem from 'interface/others/...
packages/material-ui-icons/src/RoomSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /> , 'RoomSharp');
test/integration/image-component/default/pages/invalid-src-proto-relative.js
JeromeFitz/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <p>Invalid Protocol Relative Source</p> <Image src="//assets.example.com/img.jpg" width="10" height="10" /> </div> ) } export default Page
client/react_client/src/hello-react.js
khrtz/MonsterHunt
import React from 'react' export default class HelloReact extends React.Component{ render() { return( <div> <h1>Hello React</h1> </div> ); } }
packages/material-ui-icons/src/KeyboardHideRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H5V9h2v2zm0-3H5V6h2v2zm8 7H9c-.55 0-1-.45-1-1s.45-1 1-1h6...