path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/renderers/shared/reconciler/__tests__/ReactMockedComponent-test.js
stevemao/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
ajax/libs/yui/3.9.0/simpleyui/simpleyui.js
melvinsembrano/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 **/ /*jshint eqeqeq: false*/ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** The...
force_dir/node_modules/react-bootstrap/es/FormControlFeedback.js
wolfiex/VisACC
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
ajax/libs/F2/1.3.1/f2.no-easyXDM.js
znsstudio/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...
src/svg-icons/image/exposure.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposure = (props) => ( <SvgIcon {...props}> <path d="M15 17v2h2v-2h2v-2h-2v-2h-2v2h-2v2h2zm5-15H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 5h6v2H5V5zm15 15H4L20 4v16z"/> </...
tests/framework.spec.js
hack-duke/hackduke-portal
import assert from 'assert' import React from 'react' import {mount, render, shallow} from 'enzyme' class Fixture extends React.Component { render () { return ( <div> <input id='checked' defaultChecked /> <input id='not' defaultChecked={false} /> </div> ) } } describe('(Framewo...
node_modules/native-base/src/basic/Header.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View, StatusBar } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import variable from '../theme/variables/platform'; import _ from 'lodash'; class Header extends Component { stat...
src/pages/NotFoundPage.js
Pavel-DV/ChronoMint
import React from 'react' const NotFoundPage = () => { return ( <div> <div> 404 Page Not Found </div> </div> ) } export default NotFoundPage
src/svg-icons/image/palette.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePalette = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.4...
assets/js/vendor/jquery-1.9.1.min.js
wujackjack/wujackjack.github.io
/*! 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...
react-flux-mui/js/material-ui/src/svg-icons/device/battery-unknown.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryUnknown = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zm-2.72 13.95h-1.9...
docs/src/IntroductionPage.js
chrishoage/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const IntroductionPage = React.createClass({ render() { return ( <div> <NavMain activePage="introduction" /> <...
public/js/components/admin/Settings.react.js
rajikaimal/Coupley
/** * Created by Isuru 1 on 21/01/2016. */ import React from 'react'; import { Link } from 'react-router'; const Settings = React.createClass({ render: function () { return ( <div className="settings"> <aside className="control-sidebar control-sidebar-dark"> <ul className="nav nav-tabs ...
ajax/libs/react-is/0.0.0-experimental-5a0607278-20210922/umd/react-is.development.js
cdnjs/cdnjs
/** @license React vundefined * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ (function (global, factory) { typeof exports === 'object' && typeof modul...
app/routes.js
juanda99/arasaac-frontend
// These are the pages you can go to. // They are all wrapped in the App component, which should contain the navbar etc // See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information // about the code splitting business import { getAsyncInjectors } from 'utils/asyncInjectors' const errorLoading = (er...
src/app/screens/Anonymous/screens/Home/components/Home.js
docgecko/react-alt-firebase-starter
/*! React Alt Firebase Starter */ import './Home.less'; import React from 'react'; export default class Home extends React.Component { render() { return ( <div className='home'> <h1>Welcome to the Home page...</h1> </div> ); } }
ajax/libs/yui/3.10.3/event-focus/event-focus-min.js
mrehayden1/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
node_modules/react-dom/lib/ReactDebugTool.js
knguyen1/kylecodes
/** * Copyright 2016-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 st...
apps/mk-app-my-setting/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' import photo from './img/photo.png' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current this.webapi = this.config.webap...
[2]. Demo_RN/[15]. loginPage_demo/index.ios.js
knightsj/RN_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image } from 'react-native'; var LoginView = require('./loginView'); class LoginViewDemo extends Component{ render(){ retur...
ajax/libs/ink/2.2.1/js/ink-all.js
iros/cdnjs
(function() { 'use strict'; /** * @module Ink_1 */ /** * global object * * @class Ink */ // skip redefinition of Ink core if ('Ink' in window) { return; } // internal data /* * NOTE: * invoke Ink.setPath('Ink', '/Ink/'); before requiring local...
libs/component/index.js
zangxd/ui-react
import React from 'react'; import classnames from 'classnames'; export default class Component extends React.Component { classNames(...args) { return classnames(args); } className(...args) { return this.classNames.apply(this, args.concat([this.props.className])); } style(args) { return Object.a...
jestSupport/preprocessor.js
kfiroo/react-native
/** * Copyright (c) 2015-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...
public/js/components/app.js
gonzochic/inox
import React from 'react'; import Overview from 'public/js/components/overview'; import Feed from 'public/js/components/feed'; import Navbar from 'public/js/components/navbar'; import Profile from 'public/js/components/profile'; import profileData from 'public/js/helper/profiledata' import { Router, Route, Link } from...
react-flux-mui/js/material-ui/src/svg-icons/av/fiber-pin.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberPin = (props) => ( <SvgIcon {...props}> <path d="M5.5 10.5h2v1h-2zM20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM9 11.5c0 .85-.65 1.5-1.5 1.5h-2v2H4V9h3.5c.85...
vendor/assets/javascripts/jquery-1.9.1.js
allantokuda/LDT
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js
Pop-Code/keystone
import React from 'react'; import classnames from 'classnames'; import ListControl from '../ListControl'; import { Columns } from 'FieldTypes'; import { DropTarget, DragSource } from 'react-dnd'; import { setDragBase, resetItems, reorderItems, setRowAlert, moveItem, } from '../../actions'; const ItemsRow = Rea...
example/src/Video/Video.js
lokiuz/redraft
/* eslint-disable jsx-a11y/media-has-caption */ import React from 'react'; import PropTypes from 'prop-types'; import withHover from '../withHover'; import './Video.css'; const imgStyles = { medium: { height: 300, }, small: { height: 200, }, }; const figStyles = { small: { float: 'left', ma...
5eShapedCompanion/4.4.5/5eShapedCompanion.js
NathaTerrien/Natha-roll20-api-scripts
var ShapedScripts = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ ...
ajax/libs/yui/3.8.0pr1/event-custom-base/event-custom-base-coverage.js
ljharb/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...
app/routes/home/__tests__/home.component.spec.js
dleszcz/ladder
import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import { spy } from 'sinon'; import { FormattedMessage } from 'react-intl'; import Helmet from 'react-helmet'; import { Home } from '../home.component'; import messages from '../home.messages'; import { MaintainerList } from '....
src/svg-icons/hardware/scanner.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareScanner = (props) => ( <SvgIcon {...props}> <path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/> </...
src/containers/__tests__/views/card-view-test.js
shojil/bifapp
/** * Test to check if the component renders correctly */ /* global it expect */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import CardView from '@containers/recipes/Card/CardView'; it('CardView renders correctly', () => { const tree = renderer.create( <CardV...
ajax/libs/material-ui/5.0.0-alpha.14/modern/internal/svg-icons/ArrowDropDown.min.js
cdnjs/cdnjs
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");
ReactNativeLIFE/Pages/JYMine.js
YotrolZ/React-Native-LIFE
/** * Sample React Native App * https://github.com/facebook/react-native * @flow * * 我的页面 * */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ScrollView } from 'react-native'; export default class Mine extends Component { render() { return ( <View s...
src/svg-icons/device/access-alarm.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAccessAlarm = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37V8zM12 4c-4.97 0-...
src/js/pages/Root.js
ilken/ChosenPokemons
import React from 'react'; import Layout from '../components/Layout.js'; import { Provider } from 'react-redux'; export default class Root extends React.Component { render () { const { store } = this.props; return ( <Provider store={store}> <Layout/> </Provider> ); } }
src/js/components/App.js
nikdelig/react-redux-sass-starter-kit
import React from 'react'; const App = () => ( <div> <p>Its working!</p> </div> ); export default App;
ajax/libs/knockout-validation/2.0.1/knockout.validation.js
NMastracchio/cdnjs
/*============================================================================= Author: Eric M. Barnard - @ericmbarnard License: MIT (http://opensource.org/licenses/mit-license.php) Description: Validation Library for KnockoutJS Version: 2.0.1 ===================...
React_Router_tutorial/modules/Repo.js
luongthomas/React-Portfolio
import React from 'react'; export default React.createClass({ render() { const { userName, repoName } = this.props.params; return ( <div> <h2>{userName} / {repoName}</h2> </div> ); }, });
ajax/libs/antd/1.5.1/antd.min.js
CyrusSUEN/cdnjs
/*! * antd v1.5.1 * * Copyright 2015-present, Alipay, Inc. * All rights reserved. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.antd=...
src/components/Resume/Games.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import H2 from '../H2'; import Game from './Game'; import { FormattedMessage } from 'react-intl'; const Ul = styled.ul` display: flex; flex-flow: row wrap; justify-content: space-around; margin: 1rem 0 0 0; ...
src/svg-icons/image/broken-image.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrokenImage = (props) => ( <SvgIcon {...props}> <path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ...
app/components/ConfirmationModal/index.js
projectcashmere/admin
import React from 'react'; import Modal from 'react-modal'; import { FormattedMessage } from 'react-intl'; import Header from './Header'; import Body from './Body'; import Button from './Button'; import messages from './messages'; import modalStyle from './modalStyle'; function ConfirmationModal({ isOpen, closeMod...
src/components/Webcam/index.js
hamsterbacke23/webcamdisplay-react
import React from 'react'; import DragResize from '../DragResize'; import Timer from '../Timer'; import Display from '../Display'; export class Webcam extends React.PureComponent { constructor(props) { super(props); this.state = { streams: [], devices: [], }; } componentDidMount() { ...
plop-templates/component.test.tmpl.js
jonniespratley/px-components-react
import { expect } from 'chai'; import React from 'react'; import {shallow} from 'enzyme'; import {{pascalCase name}} from './'; describe('{{dashCase name}}', () => { test('should...', () =>{ const wrapper = shallow( <{{pascalCase name}}/> ); console.log(wrapper.debug()); expect(true).to.equal(t...
example/DioryExample.js
DioryMe/diory-react-components
import React from 'react' import { Diory } from '../lib' const diory = { text: 'Hello, I am a diory. Take me home!', image: 'https://gravatar.com/avatar/ff80f8f9bc52f1b79e468a41f2239001', link: 'http://tampere.fi', style: { display: 'inline-block', width: '20em', height: '20em', backgroundColor: 'green', m...
ajax/libs/video.js/5.0.0-rc.83/alt/video.novtt.js
samthor/cdnjs
/** * @license * Video.js 5.0.0-rc.83 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports...
packages/react-dom/server.js
DJCordhose/react
'use strict'; module.exports = require('react/lib/ReactDOMServer');
src/components/macros.js
DarklyLabs/LaserWeb4
import React from 'react'; import { connect } from 'react-redux'; import ReactDOM from 'react-dom'; import { PanelGroup, Panel, Tooltip } from 'react-bootstrap'; import Icon from './font-awesome' import { addMacro, removeMacro, setMacro, fireMacroById } from '../actions/macros' import { runCommand } from './com.js'; ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/AllGood.js
ylu1317/flow
// @flow import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props, State> { static defaultProps: BadDefaultProps = {}; props: BadProps; state: BadState = {}; } const expression = () => class extends React.Component<DefaultProps, Props, State> { static defaultProps: BadDefa...
node_modules/react-bootstrap/es/Fade.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React fr...
example/index.android.js
Liroo/react-native-markdown-syntax
/** * 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 example extends Component { render() { return ( <View style={styles.container}>...
quickviz/2020-07-25-gutenberg-colors/viz/src/App.js
ebemunk/blog
import React from 'react' import './App.css' import Viz from './Viz' import Colors from './Colors' import HowToRead from './HowToRead' const P = ({ children, style, ...rest }) => ( <p style={{ color: 'white', maxWidth: '1000px', fontSize: '20px', fontFamily: '"Roboto Condensed"', ....
App/index.ios.js
Tyler-Losinski/Rater-Mc-Ratey-Face
/** * 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 AwesomeNativeBase extends Component { render() { return ( <View style={styles.c...
react-fundamentals-es6/lessons/09-lifecycle-mounting-usage/main.js
3mundi/React-Bible
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
src/components/Search/Search.js
nambawan/g-old
// heavily inspired by https://github.com/grommet/grommet/blob/master/src/js/components/Search.js import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import cn from 'classnames'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './Search.css...
modules/History.js
angus-c/react-router
var invariant = require('react/lib/invariant'); var canUseDOM = require('react/lib/ExecutionEnvironment').canUseDOM; var History = { /** * The current number of entries in the history. * * Note: This property is read-only. */ length: 1, /** * Sends the browser back one entry in the history. *...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/opacity.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionOpacity = (props) => ( <SvgIcon {...props}> <path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4....
ajax/libs/bla/1.6.1/bla.js
maruilian11/cdnjs
/** * @module vow * @author Filatov Dmitry <dfilatov@yandex-team.ru> * @version 0.4.9 * @license * Dual licensed under the MIT and GPL licenses: * * http://www.opensource.org/licenses/mit-license.php * * http://www.gnu.org/licenses/gpl.html */ (function(global) { var undef, nextTick = (function() { ...
src/svg-icons/hardware/router.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareRouter = (props) => ( <SvgIcon {...props}> <path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6...
ajax/libs/react-instantsearch/5.0.3/Core.js
joeyparrish/cdnjs
/*! ReactInstantSearch 5.0.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', ...
flow-typed/npm/eslint-plugin-react_vx.x.x.js
pionl/react-resizable-box
// flow-typed signature: fc559df9ab8c05cd9fa66b7d7ee8c5a4 // flow-typed version: <<STUB>>/eslint-plugin-react_v^7.1.0/flow_v0.54.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-react' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share y...
dev/react-subjects/subjects/ServerRendering/solution/server.js
AlanWarren/dotfiles
/* eslint-disable no-console */ import http from 'http' import React from 'react' import ReactDOMServer from 'react-dom/server' import fetchContacts from './fetchContacts' import App from './App' const webpackServer = 'http://localhost:8080' const port = 8090 const createPage = (markup, data) => ` <!doctype html> <ht...
pages/guides/typescript.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/guides/typescript/typescript.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot...
web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js
zlorb/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import DownloadContentButton from '../../../components/ContentView/DownloadContentButton' import { TFlow } from '../../ducks/tutils' let tflow = new TFlow() describe('DownloadContentButton Component', () => { it('should render correctly', () => {...
docs/src/index.js
InsidersByte/react-markdown-editor
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
packages/material-ui-icons/legacy/BatteryCharging30Rounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33v9.17h2.83c-.38 0-.62-.4-.44-.74l2.67-5c.24-.45.94-.28.94.24v3.5h1.17c.38 0 .62.4.44.74l-.67...
app/components/Login/Social.js
Jberivera/pandoras-wall
import React from 'react'; import style from './Login.scss'; import classNames from 'classnames/bind'; const css = classNames.bind(style); const Social = ({ onFacebookLogin }) => { return ( <div> <div className={ css('fb-btn') } onClick={onFacebookLogin}>Facebook</div> </div> ); }; export default ...
src/svg-icons/action/trending-down.js
frnk94/material-ui
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...
src/routes/home/index.js
hmeinertrita/MyPlanetGirlGuides
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 Home from './Home'; i...
node_modules/rebass/test/PanelHeader.spec.js
HasanSa/hackathon
import React from 'react' import TestUtils from 'react-addons-test-utils' import expect from 'expect' import { PanelHeader, Base } from '../src' const renderer = TestUtils.createRenderer() describe('PanelHeader', () => { let tree beforeEach(() => { renderer.render(<PanelHeader />) tree = renderer.getRen...
src/containers/ResetPasswordContainer.js
codefordenver/encorelink
import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import PropTypes from 'prop-types'; import React from 'react'; import ResetPassword from '../components/ResetPassword'; import { resetPasswordFromToken } from '../actions/userActions'; const ResetPasswordContainer = (props) => { functi...
packages/@vega/review-tool/src/components/withNavigateIntent.js
VegaPublish/vega-studio
import React from 'react' import {withRouterHOC} from 'part:@vega/core/router' export default function withNavigateIntent(Component) { return withRouterHOC(props => { const {router, ...rest} = props return <Component navigateIntent={router.navigateIntent} {...rest} /> }) }
examples/huge-apps/components/GlobalNav.js
emmenko/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
node_modules/material-ui/svg-icons/action/view-list.js
firdiansyah/crud-req
'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...
rojak-ui-web/src/app/result/ResultWrapper.js
bobbypriambodo/rojak
import React from 'react' import { connect } from 'react-redux' import styles from './result.css' class ResultWrapper extends React.Component { static propTypes = { children: React.PropTypes.any.isRequired, expanded: React.PropTypes.bool.isRequired } get managedChildren () { const { children, expand...
src/components/ui/Alerts.js
shojil/bifapp
/** * Alerts - Status/Success/Error Messages * <Alerts error={'Error hey'} success={'Hello Success'} status={'Something\'s happening...'} /> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import PropTypes from 'prop-types'...
node_modules/react-bootstrap/es/ButtonToolbar.js
superKaigon/TheCave
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/www/js/components/view-row.js
training4developers/bootcamp_04112016
import React from 'react'; export default props => <tr> <td>{props.widget.name}</td> <td>{props.widget.description}</td> <td className='capitalize'>{props.widget.color}</td> <td className='capitalize'>{props.widget.size}</td> <td className='number'>{props.widget.quantity}</td> <td>{props.widget.owner.name}</td> ...
unbuilt/admin/assets/js/hooks/extensions/periods/views/simple-period.js
WordPoints/wordpoints
/** * wp.wordpoints.hooks.view.SimplePeriod * * @class * @augments Backbone.View * @augments wp.wordpoints.hooks.view.Base */ var Base = wp.wordpoints.hooks.view.Base, template = wp.wordpoints.hooks.template, Fields = wp.wordpoints.hooks.Fields, SimplePeriod; SimplePeriod = Base.extend({ namespace: 'period'...
src/index.js
oliviertassinari/react-event-listener
import React from 'react'; import PropTypes from 'prop-types'; import warning from 'warning'; import { passiveOption } from './supports'; const defaultEventOptions = { capture: false, passive: false, }; function mergeDefaultEventOptions(options) { return { ...defaultEventOptions, ...options }; } function getEv...
ajax/libs/remoteStorage/0.12.1/remotestorage-nocache.amd.js
emmy41124/cdnjs
/** remotestorage.js 0.12.1, http://remotestorage.io, MIT-licensed **/ define(['bluebird'], function(Promise) { /** FILE: src/remotestorage.js **/ (function (global) { // wrapper to implement defer() functionality Promise.defer = function () { var resolve, reject; var promise = new Promise(function() { ...
src/containers/verification/joblist/BrowseView.js
shojil/bifapp
/** * Receipe Tabs Screen * - Shows tabs, which contain receipe listings * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, InteractionManager, ScrollView, Image, ...
options/root.js
voz-living/chrome-extension-react
import React from 'react'; import { render } from 'react-dom'; import OptionPage from './OptionPage'; render(<OptionPage />, document.getElementById('root'));
P/bst/src/components/Title.js
imuntil/React
import React from 'react' function Title({children}) { return ( <div className="col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1 col-xs-12 col-xs-offset-0"> <div className="title"> {children} </div> </div> ) } export default Title
src/applications/static-pages/contact-chatbot-cta/index.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; export default (store, widgetType) => { const root = document.querySelector(`[data-widget-type="${widgetType}"]`); if (root) { import(/* webpackChunkName: "contact-chatbot-cta" */ './compon...
frontend/src/components/partners/profile/overview/undata/partnerUnData.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import GridColumn from '../../../../common/grid/gridColumn'; import PartnerUnDataOverview from './partnerUnDataOverview'; import PartnerUnDataDetails from './partnerUnDataDetails'; import { ROLES } from '../../../../.....
src/svg-icons/action/announcement.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAnnouncement = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/> </SvgIcon> ); ActionAnnouncement = pu...
packages/material-ui-icons/src/PictureInPicture.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>...
src/svg-icons/communication/import-contacts.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportContacts = (props) => ( <SvgIcon {...props}> <path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2...
local-cli/templates/HelloWorld/__tests__/index.android.js
ptomasroos/react-native
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 /> ); });
site/pages/ExamplePage.js
tylercollier/react-dnd-demo
import React, { Component } from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import SideBar from '../components/SideBar'; import { ExamplePages } from '../Constants'; export default class ExamplesPage extends Component { render() { return ( <div> ...
packages/tessellation/src/renderEffect.spec.js
xaviervia/tessellation
import React from 'react' import {equal, deepEqual} from 'assert' import renderEffect from './renderEffect' describe('renderEffect', () => { it('passes `push` correctly to the component', () => { let receivedPush const targetNode = document.createElement('div') const push = () => {} const state = {} ...
examples/official-storybook/components/FlowTypeButton.js
kadirahq/react-storybook
/* eslint-disable react/require-default-props, react/no-unused-prop-types */ // @flow import React from 'react'; const Message = {}; interface PropsType { /** A multi-type prop to be rendered in the button */ label: string; /** Function to be called when the button is clicked */ onClick?: Function; /** Bool...
ajax/libs/yui/3.0.0/event-custom/event-custom.js
pombredanne/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 e...
src/routes/error/index.js
mikeyshing88/MUN
/** * 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 App from '../../componen...
Glossary/Scripts/jquery-1.5.1.min.js
evjan/Glossary
/*! * Note: While Microsoft is not the author of this file, Microsoft is * offering you a license subject to the terms of the Microsoft Software * License Terms for Microsoft ASP.NET Model View Controller 3. * Microsoft reserves all other rights. The notices below are provided * for informational purposes only and are ...
assets/javascripts/components/list_manager/ListManager.js
walshyb/DoTab
import React, { Component } from 'react'; import CategoryList from '../category_list/CategoryList'; import AddTaskBar from '../add_task_bar/AddTaskBar'; import { connect } from 'react-redux'; import { list_manager_actions } from '../../redux/list_manager/list_manager' import { util } from '../../utils'; export class L...
packages/material-ui-icons/src/VoicemailSharp.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="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c...