path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/components/Pages/HomePage.js
iM-Durant7/CL
import React from 'react'; import {Link} from 'react-router'; const HomePage = () => { return ( <div> <h1>React Slingshot</h1> <h2>Get Started</h2> <ol> <li>Review the <Link to="fuel-savings">demo app</Link></li> <li>Remove the demo and start coding: npm run remove-demo</li> ...
maodou/singlePages/client/components/admin/singlePagesConf/config/iframe.js
ShannChiang/USzhejiang
import React, { Component } from 'react'; export default class Iframe extends Component { render () { return ( <div className="col-sm-12 col-md-4"> <iframe width='740' height='750' frameBorder='0' allowFullScreen src='/'> </iframe> </d...
src/svg-icons/image/grid-on.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGridOn = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V4h4v4zm6 12h-4v-4h4v4zm0-6h-4v-4h4v4zm0-6...
lib/config/theme.js
nbonamy/react-native-app-components
import React, { Component } from 'react'; import { Dimensions, StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; export default { // colors colors: { theme: '#01357E', light: '#f4f4f4', dark: '#000000', info: '#66b2f3', danger: '#d75452', primary: '#157efc', warnin...
packages/material-ui-icons/src/AccountTreeRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 11h3c1.11 0 2-.9 2-2V5c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1H9.01V5c0-1.11-.9-2-2-2H4c-1.1 0-2 .9-2 2v4c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2V8h2v7.01c0 1.65 1.34 2.99 2.99 2.99H15v1c0 1.11.9 2 2 2h3c1...
ajax/libs/omniscient/4.1.0/omniscient.js
viskin/cdnjs
/** * Omniscient.js v4.1.0 * Authors: @torgeir,@mikaelbr ***************************************/ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof glo...
src/views/Dashboard/Dashboard.js
NathanLewis/surefair
import React, { Component } from 'react'; class Dashboard extends Component { render() { return ( <div className="animated fadeIn"> Hello World </div> ) } } export default Dashboard;
app/counter/containers/orient.js
littlethree/DemoProject
import React, { Component } from 'react'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Orientation from '../componets/RCTOrientation'; class orient extends Component { constructor() { su...
src/client/index.js
branchology/branchology
import React from 'react'; import ReactDOM from 'react-dom'; import {Router, browserHistory} from 'react-router'; import {syncHistoryWithStore} from 'react-router-redux'; import {StyleSheet} from 'aphrodite'; import errorCatcher from './error-catcher'; import routes from '../routes'; import Store from '../store'; impor...
packages/ringcentral-widgets-docs/src/app/pages/Components/CallCtrlPanel/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import CallCtrlPanel from 'ringcentral-widgets/components/CallCtrlPanel'; const props = {}; props.nameMatches = []; props.fallBackName = 'test string'; props.currentLocale = 'en-US'; props.recordStatus = 'test string'; props.onMute = () => null; props.onUnmute = (...
react-router-demo/lessons/13-server-rendering/index.js
zhangjunhd/react-examples
import React from 'react' import { render } from 'react-dom' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import App from './modules/App' import About from './modules/About' import Repos from './modules/Repos' import Repo from './modules/Repo' import Home from './modules/Home' render(( <R...
ajax/libs/yui/3.18.1/datatable-core/datatable-core.js
vuonghuuphuc/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...
src/interface/report/ReportLoader.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { t } from '@lingui/macro'; import { fetchFights, LogNotFoundError } from 'common/fetchWclApi'; import { captureException } from '...
src/components/topic/controlbar/FilterSelectorContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { connect } from 'react-redux'; import FocusSelectorContainer from './FocusSelectorContainer'; import QuerySelectorContainer from './QuerySelectorContai...
node_modules/babel-core/browser.min.js
tadpoleyl/h5
 !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:this,t.babel=e()}}(function(){var e,t,r;return function n(e,...
ajax/libs/react/0.12.0-rc1/react.min.js
xeodou/cdnjs
/** * React v0.12.0-rc1 * * Copyright 2013-2014, 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...
examples/counter/index.js
leolujuyi/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
ajax/libs/forerunnerdb/1.3.749/fdb-legacy.js
iwdmb/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
example/examples/Overlays.js
phantomlds/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.092...
src/Parser/Druid/Restoration/Modules/Features/HealingTouch.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; class He...
ajax/libs/primereact/6.6.0/carousel/carousel.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { UniqueComponentId, DomHandler, classNames, Ripple } from 'primereact/core'; function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return ar...
app/components/AddFile/index.js
cerebral/cerebral-reference-app
import React from 'react'; import styles from './styles.css'; import icons from 'common/icons.css'; import ToolbarButton from 'common/components/ToolbarButton'; function AddFile(props) { const onAddFileInputChange = (event) => { const fileName = event.target.value; props.onFileNameChange({fileName: fileName}...
specs/Editor.spec.js
rxfe/react-editor-quill
/* eslint-env mocha */ // The following eslint overrides should be removed when refactoring can occur /* eslint react/no-find-dom-node: "warn", react/no-render-return-value: "warn" */ /* eslint-disable */ import TestUtils from 'react-dom/test-utils'; import React from 'react'; import sinon from 'sinon'; imp...
app/javascript/mastodon/features/reblogs/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs ...
docs/src/app/components/pages/components/FontIcon/Page.js
barakmitz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconCode from '!raw!material-ui/FontIcon/FontIcon'; import iconReadmeText...
ajax/libs/yui/3.6.0pr4/event-focus/event-focus-debug.js
paleozogt/cdnjs
YUI.add('event-focus', function(Y) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Event = Y.Event, YLang = Y.Lang, isString = YLang.isString, arrayIndex = Y.Array.indexOf, useActivate = YLang.isFunction( Y...
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.min.js
henryhu712/audio
/*! jQuery v1.7.1 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 cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde...
node_modules/babel-core/node_modules/babel-runtime/node_modules/core-js/client/shim.js
yeshdev1/Everydays-project
/** * core-js 2.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
javascript/components/static-input.js
kdoran/moriana-react
import React from 'react' export default class StaticInput extends React.Component { render () { const { label, value, onEditClick, className } = this.props let classes = className ? `${className} row` : 'row' return ( <div className={classes}> <label>{label}</label> <div className=...
app/routes.js
rick-maclean/wbt-canada-stmts-electron-react-simmering
/* eslint flowtype-errors/show-errors: 0 */ import React from 'react'; import { HashRouter as Router } from 'react-router-dom'; import { Switch, Route } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; export default () => ( <Router> <App> <Switch> ...
ajax/libs/highmaps/1.0.2/highcharts.src.js
sufuf3/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.0.1-modified () * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,...
web/src/viewer/Rating.js
bolddp/pixerva
import React, { Component } from 'react'; export default class Rating extends Component { render() { if (this.props.rating) { const imgSrc = `/images/star0${this.props.rating}.png`; return ( <div style={{ float: 'right' }}> <img alt="" src={imgSrc} style={{ height: '20px' }} /> ...
lib/jquery.min.js
krampstudio/jQueryInfoBubble
/*! jQuery v@1.8.0 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=...
ajax/libs/yui/3.17.2/event-custom-base/event-custom-base-coverage.js
janpaepke/cdnjs
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-custom-base/event-custom-base.js']) { __coverage__['build/event-custom-base/e...
node_modules/react-scripts/template/src/index.js
millerman86/CouponProject
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
node_modules/react-icons/go/ruby.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const GoRuby = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 5h-20l-10 10 20 20 20-20-10-10z m-25 10l7.5-7.5h15l7.5 7.5-15 15-15-15z m22.5-5h-7.5v17.5l12.5-12.5-5-5z"/></g> </Icon> ) export default GoRuby
docs/src/components/nav.js
aldanor/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' function urlize(uri) { return BASE_URL + uri } export default React.createClass({ render() { const logo = this.props.includeLogo ? <a href={BASE_URL} className="brand-logo">NuclearJS</a> : null const homeLink = this.props.includeL...
client/common/lib/SignTextureCanvas/index.js
henryyp/lab
import React from 'react' import ReactDOM from 'react-dom' import BaseCanvas from 'lib/BaseCanvas' import CanvasCacher from 'lib/CanvasCacher' import * as THREE from 'three' export default class SignTextureCanvas extends React.Component { constructor() { super() } componentDidMount() { this.canvasD...
node_modules/react-onsenui/test/toolbar-test.js
epgui/FEECUM-cordova
/* global describe it assert */ import React from 'react'; import ReactDOM from 'react-dom'; import {Toolbar} from '../dist/react-onsenui.js'; import TestUtils from 'react/lib/ReactTestUtils'; import rendersToComponent from './testUtil.js'; describe('Toolbar', function() { rendersToComponent( <Toolbar />, ...
src/components/TeaList.js
MichailSmith/varietea
import React from 'react'; import { TeaItem } from './'; const TeaList = ({ teas }) => { return( <div style={{ textDecoration: 'none', color: '#70B180', textAlign: 'center' }}> {Object.keys(teas).map((tea)=><TeaItem key={tea} tea={tea} />)} </div> ) }; export default TeaL...
src/containers/SocialPage/IntroBlock.js
nickeblewis/walkapp
import React from 'react' import { Link } from 'react-router' import instagram_logo from '../../assets/instagram_logo.png' import facebook_logo from '../../assets/facebook_logo.png' import snapchat_logo from '../../assets/snapchat_logo.png' import twitter_logo from '../../assets/twitter_logo.png' class IntroBlock exte...
common/routes/LogIn/containers/LoginPageSmart.js
LaPetiteSouris/iot_raspberry_client
import React from 'react' import {connect} from 'react-redux' import {initialize} from 'redux-form' import LoginPage from '../components/LoginPage' class SmartLoginPage extends React.Component { handleSubmit(data) { console.log('Submission received!', data) this.props.dispatch(initialize('login', data)) // ...
src/components/details/Details.js
yakovlevyuri/inloop-application-test
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Image } from 'react-bootstrap'; import AddComment from './addComment/AddComment'; import CommentsBox from './commentsBox/CommentsBox'; export default class Details extends Component { static propTypes = { details: P...
packages/material-ui-icons/src/SettingsBluetooth.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4....
node_modules/react-select/dist/react-select.min.js
rblin081/drafting-client
!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:this,t.Select=e()}}(function(){return function e(t,u,n){functi...
Gruntfile.js
nic/reactable
var markdownlint = require('markdownlint'); module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.registerMultiTask('markdownlint', function task() { var done = this.async(); markdownlint( { "files": this.filesSrc }, function callback(err, result)...
src/svg-icons/notification/sync-problem.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
src/components/Todo/__tests__/App.js
jigsawye/redux-hot-boilerplate
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import App from '../App'; import AddTodo from '../../../containers/Todo/AddTodo'; import VisibleTodoList from '../../../containers/Todo/VisibleTodoList'; import Footer from '../Footer'; test('should render correctly', t => { const a...
src/components/sidebar/DepartmentButton.react.js
EaglesoftZJ/iGem_Web
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import classNames from 'classnames'; import { Container } from 'flux/utils'; import { FormattedMessage } from 'react-intl'; import Tooltip from 'rc-tooltip'; import EventListener from 'fbjs/lib/EventListener'; imp...
src/helpers/__tests__/getDataDependencies-test.js
vidaaudrey/mindr
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import getDataDependencies from '../getDataDependencies'; describe('getDataDependencies', () => { let getState; let dispatch; let location; let params; let CompWithFetchData; let CompWithNoData; let CompWithFetchDa...
js/BaseComponents/ScrollableNavigationHeaderPoster.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
components/Layout/NumericLabel.js
southern-ground/stack-shellybrown.com
import React, { Component } from 'react'; const NumericLabel = (props) => { // inspired by http://stackoverflow.com/a/9462382 function nFormatter(num, minValue) { if(!num || !+num || typeof +num !== 'number' ){ return { number: num } } var num...
ajax/libs/primereact/7.0.0/galleria/galleria.js
cdnjs/cdnjs
this.primereact = this.primereact || {}; this.primereact.galleria = (function (exports, React, utils, ripple, csstransition, portal, PrimeReact) { 'use strict'; function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var React__default = /*#__PURE__*/_i...
SimpleVideoCall/__tests__/index.android.js
bit6/bit6-react-native-samples
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 /> ); });
packages/material-ui-icons/src/NearMeDisabled.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 6.34L21 3l-3.34 9L12 6.34zm10.61 13.44L4.22 1.39 2.81 2.81l5.07 5.07L3 9.69v1.41l7.07 2.83L12.9 21h1.41l1.81-4.88 5.07 5.07 1.42-1.41z" /> , 'NearMeDisabled');
src/isomorphic/classic/class/__tests__/ReactBind-test.js
james4388/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...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/games.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvGames = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); AvGames.displayName = 'AvGames'; AvGames.muiName = 'SvgIcon'; export...
app/containers/NotifierContainer.js
Ruin0x11/fleet
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Notifier from '../components/Notifier' import { getShipInfo } from '../selectors/port' function mapStateToProps (state) { if(!state.messageData.message) { return { isActive: fals...
node_modules/redux-devtools-log-monitor/src/LogMonitorEntryAction.js
mjchamoures/personalPortfolio
import React, { Component } from 'react'; import JSONTree from 'react-json-tree'; const styles = { actionBar: { paddingTop: 8, paddingBottom: 7, paddingLeft: 16 }, payload: { margin: 0, paddingLeft: 16, overflow: 'auto' } }; export default class LogMonitorAction extends Component { c...
src/scenes/home/components/Map/Map.js
ismaelgt/english-accents-map
/* eslint-disable react/no-unused-prop-types */ import React from 'react' import PropTypes from 'prop-types' import { history } from '../../../../services/location' import GoogleApiComponent from 'google-maps-react/dist/GoogleApiComponent' import { GOOGLE_MAPS_API_KEY } from '../../../../config' import GOOGLE_MAPS_CON...
playground/playground.js
romelperez/ui
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import withStyles from 'react-jss'; import Navigo from 'navigo'; import createTheme from '../packages/arwes/src/tools/createTheme'; import ThemeProvider from '../packages/arwes/src/ThemeProvider'; import createSounds from ...
build-system/tasks/make-extension/template/bento/extensions/amp-__component_name_hyphenated__/__component_version__/component.js
media-net/amphtml
import * as Preact from '#preact'; import {ContainWrapper} from '#preact/component'; import { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState, } from '#preact'; __jss_import_use_styles__; /** * @param {!Bento__component_name_pascalcase__.Props} props * @return {PreactDef.Renderable} *...
ajax/libs/phaser/2.1.1/custom/p2.js
coupang/cdnjs
/** * The MIT License (MIT) * * Copyright (c) 2013 p2.js authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
20170621/react-router-4/src/Profile.js
fengnovo/fengnovo-react-test
import React from 'react' const Profile = () => ( <div> <h3>个人设置</h3> </div> ) export default Profile
src/Main/Layout/DocumentTitleUpdater.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import getFightName from 'common/getFightName'; import { getFightId, getPlayerName, getReportCode } from 'selectors/url/report'; import { getFightById } from 'selectors/fight'; import { getReport } from 'selectors/rep...
Libraries/Utilities/throwOnWrongReactAPI.js
tgoldenberg/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. * * @provides...
src/components/Pricing.js
ArturJS/ArturJS.github.io
import React from 'react' import PropTypes from 'prop-types' const Pricing = ({ data }) => ( <div className="columns"> {data.map(price => ( <div key={price.plan} className="column"> <section className="section"> <h4 className="has-text-centered has-text-weight-semibold"> {pric...
ajax/libs/babel-core/5.8.2/browser-polyfill.js
ahocevar/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
visualstudiodev/fb/tests/js/jquery-1.4.2.js
zulldesign/visualstudiodev
/*! * 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. ...
Libraries/Components/WebView/WebView.ios.js
skevy/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. * * @provides...
src/containers/Results.js
matiaet98/generic-search
// @flow import React from 'react'; import { Component } from 'react'; import { Grid, Message,Checkbox,Dimmer,Segment } from 'semantic-ui-react'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { goBack } from 'r...
src/components/Header.js
tulsajs/tulsajs.com
import React from 'react'; import propsForType from '../utils/propsForType'; import { Span } from './Base'; const types = [ { type: 1, props: { as: 'h1', fs: '5xl' } }, { type: 2, props: { as: 'h2', fs: '4xl' } }, { type: 3, props: { as: 'h3', fs: '3xl' } }, { type: 4, props: { as: 'h4', fs: '2xl' } }, { typ...
app/js/components/chrome.js
michaelbrewerdavis/gerrit-mobile
import React from 'react' import { connect } from 'react-redux' import actions from '../actions' import Loading from './loading' function Error(props, state) { return ( <div className='modal error-modal' role='dialog'> <div className='alert alert-danger'>{props.error}</div> </div> ) } function Chrome...
spec/react/siteframe/sidebar.spec.js
pivotal-cf/pivotal-ui
import React from 'react'; import ReactDOM from 'react-dom'; import {spyOnRender} from '../../support/jest_spy_on_render'; import {Sidebar} from '../../../src/react/siteframe/sidebar'; import {SidebarLinks} from '../../../src/react/siteframe/sidebar_links'; describe('Sidebar', () => { let className, primaryLinks, se...
packager/src/ModuleGraph/worker/transform-module.js
adamjmcgrath/react-native
/** * Copyright (c) 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. * * @flow */...
plugins/Files/js/components/allowanceconfirmation.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' const ConfirmationDialog = ({ allowance, onConfirmClick, onCancelClick }) => { const confirmationStyle = { padding: '40px 40px 40px 40px', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'space-around', ...
Examples/ForTest/src/containers/WebViewContainer.js
ksti/react-native-utils
import React, { Component } from 'react'; import { StyleSheet, View, WebView, } from 'react-native'; import { Actions } from 'react-native-router-flux'; /** * Navigation Bar */ import NavigationBar from 'react-native-navbar'; import BaseContainer from './BaseContainer' const styles = StyleSheet.creat...
src/routes.js
rentpath/react-redux-starter-kit
import React from 'react' import { IndexRoute, Route } from 'react-router' import { App, About, Books, Home, NotFound } from 'containers' export default state => ( <Route path="/" component={App} state={state}> <IndexRoute component={Home}/> <Route path="about" component={About}/> ...
extension/examples/todomvc/test/components/Footer.spec.js
gaearon/redux-devtools
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, ...
Libraries/Lists/FlatList.js
ndejesus1227/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. * * @provides...
src/components/molecules/Molecule/index.stories.js
DimensionLab/narc
import React from 'react' import { storiesOf } from '@storybook/react' import { Molecule } from 'components' storiesOf('Molecule', module) .add('default', () => ( <Molecule>Hello</Molecule> )) .add('reverse', () => ( <Molecule reverse>Hello</Molecule> ))
assets/jqwidgets/demos/react/app/chart/ohlcchart/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let source = { datatype: 'tsv', datafields: [ { name: 'Date' }, ...
test/helpers/shallowRenderHelper.js
akinsella/todomvc-react-alt-es6-revisited
/** * 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'...
mine-data/src/Info/Info.js
BerlingskeMedia/nyhedsbreveprofil
import React, { Component, Fragment } from 'react'; import PropTypes from 'prop-types'; import { Tooltip } from 'reactstrap'; import './Info.scss'; export class Info extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { isOpen: false }; ...
test/DropdownSpec.js
JimiHFord/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Dropdown from '../src/Dropdown'; import DropdownMenu from '../src/DropdownMenu'; import MenuItem from '../src/MenuItem'; import { shouldWarn } from './helpers'; import keycode from 'keycode'; class CustomMenu extends React.Compone...
client/desktop/app/components/signup.js
Jakeyrob/thumbroll
import React from 'react'; import api from '../utils/api'; class Signup extends React.Component { constructor(props) { super(props); this.state = { firstName: '', lastName: '', username: '', email: '', password: '', confirmedPassword: '', // Desktop app is currently ...
src/front/components/Account/Account.js
ubery/comments
import React from 'react'; import { connect } from 'react-redux'; import { bind } from '../../utils/reactness'; import api from '../../api'; class Account extends React.Component { constructor() { super(); bind(this, [ 'handleSignup', 'handleAuth', 'handleLogou...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZoneTarget.js
helloworld3q3q/keystone
/** * THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT * THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON * - @mxstbr */ import React from 'react'; import { DropTarget } from 'react-dnd'; import { setCurrentPage } from '../../actions'; let timeoutID = false; // drop target var ItemsTableDragDro...
client/src/components/signin.js
psankar/todo2016
import React from 'react'; import {Field, reduxForm, SubmissionError} from 'redux-form'; const sleep = ms => new Promise(resolve => setTimeout(resolve, ms)); function submit(values) { return sleep(1000) // simulate server latency .then(() => { console.log("What is happening ?"); if (!['joh...
js/jquery.js
rbrasher/cms-portal
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
ajax/libs/react-router/3.0.2/ReactRouter.min.js
Amomo/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.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e...
src/routes/Homepage/components/HomepageView.js
bingomanatee/wonderworld
import React from 'react'; import './homepage.scss'; import _ from 'lodash'; import ArticleListItem from '../../../components/ArticleListItem/ArticleListItem'; export class Homepage extends React.Component { constructor (props) { super(props); console.log('loading articles'); props.setBreadcrumb([{label...
src/svg-icons/action/view-headline.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewHeadline = (props) => ( <SvgIcon {...props}> <path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/> </SvgIcon> ); ActionViewHeadline = pure(ActionViewHeadline); ActionViewHeadline.d...
src/svg-icons/av/playlist-add-check.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAddCheck = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/> </SvgIcon> ); AvPlaylistAddCheck = pure...
site/demos/technews/src/components/Header.js
appbaseio/reactivesearch
import React from 'react'; import Navbar from '../styles/Navbar'; const Header = () => ( <Navbar>Tech News</Navbar> ); export default Header;
src/components/Children/LpSearch.js
rspica/Sugr
import React, { Component } from 'react'; import SearchBar from './SearchBar.js'; export default class LpSearch extends Component { render() { // console.log("LpSearch prop ",this.props) // console.log(' this.props.clickSearch: ', this.props.inputChange ) return ( <div> <img className="b...
tests/react_native_tests/test_data/native_code/ToolbarWithActions/storybook/stories/FilterIcon/index.js
ibhubs/sketch-components
import React from 'react' import { storiesOf } from '@storybook/react-native' import { action } from '@storybook/addon-actions' import { linkTo } from '@storybook/addon-links' import SvgComponent from 'app/icons/FilterIcon' storiesOf('FilterIcon', module) .add('default', () => ( <FilterIcon></FilterIcon>))
node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js
nauman-ahmad-qureshi/adsManagement
/** * Copyright (c) 2013-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. * * Facebook,...
frontend/src/components/home/Home.js
VladimirAnaniev/LoggIt
import React, { Component } from 'react' import { CardPanel } from 'react-materialize' import { connect } from 'react-redux' import { getAllUsersCount } from '../../actions/userActions' import { getAllWorkoutsCount } from '../../actions/workoutsActions' import { Link } from 'react-router-dom' class Home extends Compon...
node_modules/antd/es/transfer/list.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...