path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
bayty/src/components/common/Header.js
Asmaklf/bayty
// Import libraries for making a component import React from 'react'; import { Text, View } from 'react-native'; // Make a component const Header = (props) => { const { textStyle, viewStyle } = styles; return ( <View style={viewStyle}> <Text style={textStyle}>{props.headerText}</Text> </View> ); }...
src/svg-icons/content/delete-sweep.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDeleteSweep = (props) => ( <SvgIcon {...props}> <path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/> </SvgIcon> ); ContentDeleteSwee...
ajax/libs/cyclejs-core/0.12.1/cycle.js
ahocevar/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Cycle=e()}}(function(){var define,module,exports;retu...
app/scripts/components/card.js
icanseesharp/react-typeahead-demo
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; let numeral = require('numeral'); let backdropIMG; class Card extends Component { render() { let data = this.props.data // if movie ID found, then... let posterIMG = 'https://image.tmdb.org/t/p/w500' + data.poster, ...
src/views/Root/index.js
montemishkin/mishkin_com
// third party imports import React from 'react' import Helmet from 'react-helmet' // local imports import styles from './styles.css' class Root extends React.Component { constructor(...args) { super(...args) this.state = { isExpanded: false, } } toggleExpanded = () =...
examples/src/components/Footer.js
krasimir/hocbox
import React from 'react'; import { wire, signal } from '../../../lib'; class Footer extends React.Component { render() { const { all, done } = this.props; const latestAddedTodo = this.props['new-todo']; return ( <div className='footer'> <span>Done: { `${ done } / ${ all }` }</span> ...
app/containers/LocaleToggle/index.js
yogakurniawan/phone-catalogues
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
test/resetFormButton-test.js
theadam/react-inform
import { expect } from 'chai'; import React from 'react'; import { spy } from 'sinon'; import { mount } from 'enzyme'; import ResetFormButton from '../src/resetFormButton'; describe('ResetFormButton', () => { let context; let props; const render = () => mount(<ResetFormButton {...props} />, { context }); bef...
src/index.js
mjxm/loadingscreen
import React from 'react'; import App from './App.jsx'; import ChampionList from './ChampionList.jsx'; React.render(<App/>, document.body);
vendor/jquery/jquery.js
jjsub/jjsub.github.io
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
ui/src/components/Header/index.js
denniss17/status-dashboard
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import logo from '../../logo.ico'; import './index.css'; class Header extends Component { render() { let issueCount = 0; if (this.props.issueProviders) { Object.keys(this.props.issuePro...
client/containers/lists/teacherListTail.js
TecProgPurrsuit/TeamBasedLearningApp
/** * This file is responsible for giving teacher some configuration options on a List Tail. * * @summary Teacher list options. * */ import React from 'react'; function TeacherListTail() { return ( <div className="card-action"> <a className="activator">Ativar/Desativar lista</a> </div> ); } // Espe...
src/media/js/addon/components/progressBar.js
mozilla/marketplace-submission
/* ProgressBar, primarily for file uploads. */ import React from 'react'; function toFixedDown(number, digits) { const re = new RegExp("(\\d+\\.\\d{" + digits + "})(\\d)"); const m = number.toString().match(re); return m ? parseFloat(m[1]) : number.valueOf(); } export default class ProgressBar extends React...
docs/src/app/components/pages/customization/Styles.js
lawrence-yu/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../CodeExample'; import MarkdownElement from '../../MarkdownElement'; import stylesText from './styles.md'; import stylesOverridingInlineText from './styles-overriding-inline.md'; import StylesOverridingInlineExample from ...
native/network-status-modal.js
argosity/sm
import React from 'react'; import { Image, View, Text, Button, Modal, NetInfo, StyleSheet, } from 'react-native'; import { observer } from 'mobx-react'; import { observable, action } from 'mobx'; import logo from './logo.png'; @observer export default class NetworkStatusModal extends React.Component { @observ...
Movies-GES/Movies-GES.Web/Scripts/jquery-1.10.2.js
mauricedb/Movies-GES
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
examples/async/containers/Root.js
usufruct/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
src/components/Page.js
karservice/kobra
import React from 'react' import {Grid, Navbar} from 'react-bootstrap' const Page = (props) => ( <div> {props.title ? ( <Navbar staticTop> <Navbar.Header> <Navbar.Brand> {props.title} </Navbar.Brand> </Navbar.Header> </Navbar> ) : ( <p /> ...
docs/js/demos/react.js
Vestride/Shuffle
// Normally you would import these like `import React, { Component } from 'react';` const React = window.React; const ReactDOM = window.ReactDOM; const Component = React.Component; const Shuffle = window.Shuffle; // A very simple app with one component. class App extends Component { render() { return ( <di...
src/svg-icons/image/blur-off.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
src/repository/screens/pull-list.screen.js
Antoine38660/git-point
/* eslint-disable no-shadow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { FlatList, View, StyleSheet, Dimensions, Text, Platform, } from 'react-native'; import { ButtonGroup } from 'react-native-elements'; import { ...
core/misc/tabbingmanager.js
animeshpatni94/Drupal8
/** * @file * Manages page tabbing modifications made by modules. */ /** * Allow modules to respond to the constrain event. * * @event drupalTabbingConstrained */ /** * Allow modules to respond to the tabbingContext release event. * * @event drupalTabbingContextReleased */ /** * Allow modules to respond ...
ajax/libs/primereact/6.5.0/orderlist/orderlist.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { Button } from 'primereact/button'; import { ObjectUtils, 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++) { ...
src/routes/search.js
fustic/here-hackaton
import React from 'react'; import Search from '../components/Search'; export default { path: '/', action() { return <Search />; }, };
src/expense/ExpenseItem.js
merylturner/budget-app
import React, { Component } from 'react'; import ExpenseForm from './ExpenseForm'; import ReactModal from 'react-modal'; import { connect } from 'react-redux'; import { initExpenseUpdate, deleteExpense, updateExpense } from './expenseForm.actions'; import {getCategories} from '../category/categoryForm.actions'; class ...
src/views/log/logTable.js
pot-code/redux-demo
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Table } from "antd"; import { SCHEMA_NAME, ID_ATTRIBUTE } from 'schema/log'; //selector 选择器,选择 state 中的数据切片 const getLogIds = (state) => state.logData; const getLogEntities = (state, props) => state.e...
app/index.js
LetSpotify/letspotify-client
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
whouses/react-router
import React from 'react'; class Assignments extends React.Component { render () { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ); } } export default Assignments;
client/my-sites/customize/controller.js
ironmanLee/my_calypso
/** * External Dependencies */ var React = require( 'react' ), Qs = require( 'qs' ); /** * Internal Dependencies */ var sites = require( 'lib/sites-list' )(), route = require( 'lib/route' ), i18n = require( 'lib/mixins/i18n' ), analytics = require( 'analytics' ), titleActions = require( 'lib/screen-title/acti...
ajax/libs/ember-data.js/1.0.0-beta.5/ember-data.prod.js
gasolin/cdnjs
/*! * @overview Ember Data * @copyright Copyright 2011-2014 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) * @version 1.0.0-beta.5 */ (function() { var define, requireModule; (function() { var registry = {}, seen...
storybook/config.js
sinsoku/mastodon
import { configure, setAddon } from '@kadira/storybook'; import IntlAddon from 'react-storybook-addon-intl'; import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { addLocaleData } from 'react-intl'; import en from 'react-intl/locale-data/en'; import '../app/assets/stylesheets/compone...
src/routes/index.js
manikandan-ramar/react-redux-boilerplate
import React from 'react'; import { Route } from 'react-router-dom' import Home from '../pages/Home'; import Error from '../pages/Error'; export default [ <Route key="home" exact path="/" component={Home} />, <Route key="error" path="*" component={Error} /> ];
pages/guides/server-rendering.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/server-rendering/server-rendering.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export defa...
src/server.js
jaruesink/ruesinkdds
/** * 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 path from 'path'; import express from 'express';...
docs/app/Examples/collections/Message/States/MessageVisibleExample.js
jamiehill/stardust
import React from 'react' import { Message } from 'stardust' const MessageVisibleExample = () => ( <Message visible> You can always see me </Message> ) export default MessageVisibleExample
app/javascript/mastodon/components/__tests__/display_name-test.js
esetomo/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import DisplayName from '../display_name'; describe('<DisplayName />', () => { it('renders display name + account name', () => { const account = fromJS({ username: 'bar', acct: 'bar@baz', ...
src/components/UserCover.js
alphasp/pxview
import React from 'react'; import { View, StyleSheet, Text } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; import PXThumbnailTouchable from './PXThumbnailTouchable'; import PXTouchable from './PXTouchable'; import PremiumBadge from './PremiumBadge'; import { THEME_TYPES } from '../common/c...
public/assets/application-c4b704bbbbbe0a8cfba3cc401e267dfe.js
AlexandrBasan/pectorale_site
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { //...
src/svg-icons/image/blur-on.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOn = (props) => ( <SvgIcon {...props}> <path d="M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-...
console/react/src/common/tableToolbar.js
ted-ross/qpid-dispatch
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this f...
trip-planner/src/TagChooser.js
ajmers/gdi-philly-react-redux
import React, { Component } from 'react'; const TAGS = [ 'lodging', 'sightseeing', 'adventure' ] const COLORS = ['blue', 'pink', 'green']; class TagChooser extends Component { constructor() { super(); this.state = { tags: new Set() } } chooseTag(tag) { const { tags } = this.state; ...
doc/pub/locale/Norwegian-cbc/_static/jquery.js
dragly/doconce
/*! 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...
es/components/RoomUserList/GuestsRow.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import ListItem from "@material-ui/core/es/ListItem"; import ListItemText from "@material-ui/core/es/ListItemText"; import { translate } from 'react-i18next'; var GuestsRow...
node_modules/react-router/es6/Lifecycle.js
rekyyang/ArtificalLiverCloud
'use strict'; import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation...
ajax/libs/vega/3.0.0-beta.32/vega.min.js
holtkamp/cdnjs
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vega=t.vega||{})}(this,function(t){"use strict";function e(t){var e,n,r,i,a,o,u,s,f=t.maxbins||20,c=t.base||10,l=Math.log(c),h=t.divide||[5,2],d=t.extent[0],p=t.extent[1],g=p-d;...
src/renderers/shared/reconciler/ReactInstanceMap.js
reggi/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. * * @providesModule ...
src/components/Result/SimpleCard.js
GovWizely/trade-event-search-app
import React from 'react'; import PropTypes from 'prop-types'; import { dateFormatter } from '../../utils/formatter'; import List from '../List/List'; import Location from './Location'; import './Card.scss'; const SimpleCard = ({ result }) => { const { name, venues, event_type: eventType, hosted_url: hostedU...
src/components/ReplPreferences.js
princejwesley/Mancy
import React from 'react'; import _ from 'lodash'; import ReplPreferencesStore from '../stores/ReplPreferencesStore'; import ReplStatusBarActions from '../actions/ReplStatusBarActions'; import ReplFontFamily from './ReplFontFamily'; import ReplPageZoom from './ReplPageZoom'; import {ipcRenderer} from 'electron'; let l...
imports/ui/pages/Index.js
hirdbluebird/recipe-app-react
import React from 'react'; import { Image } from 'react-bootstrap'; import { Router, Route, browserHistory } from 'react-router'; import { Link } from 'react-router'; const Index = () => ( <div className="Index"> <div> <h3>Welcome to Recipe App!</h3> <Image src={'mainpage-welcome.gif'} alt="" classNa...
src/hoc/withTech.js
xavi160/react-video
import React from 'react'; const initialTech = { currentTime: 0, paused: true, duration: 1 }; export default function withTech(Component) { const wrapped = (props, { tech = initialTech }) => ( tech ? <Component {...props} tech={tech} /> : null ); wrapped.displayName = 'withTech()'; wrapped.contextTy...
files/rxjs/2.3.3/rx.lite.extras.js
zhuwenxuan/qyerCDN
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'unde...
ajax/libs/mediaelement/1.1.5/jquery.js
viskin/cdnjs
/*! * jQuery JavaScript Library v1.4.4 * 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. ...
examples/cancel/index.js
sskyy/redux-task
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import App from './App' import { Provider } from 'react-redux' import { createStore, compose } from 'redux' import { createEnhancer } from 'redux-task' import { addListener, cancelListener } from './listener' import reducer from './red...
src/helpers/universalRouter.js
jsdmc/react-redux-universal-hot-example
import qs from 'query-string'; import React from 'react'; import {match, RoutingContext} from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : c...
src/app/TeamsTab.js
calvinterpstra/FTCResQCalculatorWebApp
import React from 'react'; import Slider from 'material-ui/Slider'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; var TeamsTab = React.createClass({ render() { return ( <div> <h2 style={styles.headline}>...
www/assets/bootstrap/2.2.2/extend/bootstrap-toggle-buttons/static/js/jquery.min.js
KBO-Techo-Dev/MagazinePro-jfw
/*! jQuery v1.7.2 jquery.com | jquery.org/license */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde...
src/views/HotpatchManage/index.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Button, Table, Spin, Icon, Popconfirm } from 'antd' import WaitSpin from 'COMPONENT/effects/Spin' import { platformFilter, releaseFilter, releaseStatusFilter } from 'UTIL/filters' import * as hotpatchMana...
packages/material-ui-icons/src/LocationDisabledTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M23 13v-2h-2.06c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-.98.11-1.91.38-2.77.78l1.53 1.53C10.46 5.13 11.22 5 12 5c3.87 0 7 3.13 7 7 0 .79-.13...
ajax/libs/forerunnerdb/1.3.450/fdb-core+persist.min.js
redmunds/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...
app/action-creators/auUser.js
ellejeong/benefeel
import React from 'react'; import axios from 'axios'; import {SELECT_PASTORDER} from 'APP/app/constants'; export const selectPastOrder = order => ({ type: SELECT_PASTORDER, order: order }); export const receivePastOrder = orderId => { return dispatch => { axios.get(`/api/orders/order/${orderId}`) .then(orde...
node_modules/react-d3/scatterchart/ScatterChart.js
niole/NewsCharts
'use strict'; var React = require('react'); var d3 = require('d3'); var common = require('../common'); var Chart = common.Chart; var XAxis = common.XAxis; var YAxis = common.YAxis; var Voronoi = common.Voronoi; var utils = require('../utils'); var immstruct = require('immstruct'); var DataSeries = require('./DataSerie...
index.ios.js
laundree/app
/** * React Native App for Laundree * * https://laundree.io/ * https://github.com/facebook/react-native * @flow */ import React from 'react' import {AppRegistry} from 'react-native' import App from './src/react/App' const Laundree = () => <App /> AppRegistry.registerComponent('Laundree', () => Laundree)
server/sonar-web/src/main/js/apps/projects/components/App.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
client/src/components/todolist/add_todo.js
pierrekraemer/modular-react-node-app
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Button, Form, InputGroup, InputGroupAddon, InputGroupButton, Input } from 'reactstrap'; import { addTodo } from 'actions/todolist'; const AddTodo = (props) => { let textInput; const handleSubmit = (event...
lib/components/__tests__/ArticleListTest.js
Brainpowered/advanced-react
import React from 'react'; import ArticleList from '../ArticleList'; import renderer from 'react-test-renderer'; import 'babel-polyfill'; // needed for Node v6 (possible bug: https://github.com/facebook/jest/issues/3687) describe('ArticleList', () => { const testProps = { articles: { a: { id: 'a'}, ...
ajax/libs/react-dropzone/10.1.5/index.js
extend1994/cdnjs
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","prop-types"],n):n((e=e||self).reactDropzone={},e.React,e.PropTypes)}(this,function(e,ae,n){"use strict";var u="default"in ae?ae.default:a...
packages/material-ui/src/utils/focusVisible.js
allanalexandre/material-ui
// based on https://github.com/WICG/focus-visible/blob/v4.1.5/src/focus-visible.js import React from 'react'; import ReactDOM from 'react-dom'; let hadKeyboardEvent = true; let hadFocusVisibleRecently = false; let hadFocusVisibleRecentlyTimeout = null; const inputTypesWhitelist = { text: true, search: true, url...
docs/src/app/app.js
owencm/material-ui
import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
ajax/libs/react-native-web/0.17.4/exports/Modal/ModalAnimation.js
cdnjs/cdnjs
/** * Copyright (c) Nicolas Gallagher. * 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. * * */ import * as React from 'react'; import StyleSheet from '../StyleSheet'; import createEle...
examples/05 Customize/Drop Effects/SourceBox.js
longlho/react-dnd
import React, { Component, PropTypes } from 'react'; import ItemTypes from './ItemTypes'; import { DragSource } from 'react-dnd'; const style = { border: '1px dashed gray', backgroundColor: 'white', padding: '0.5rem 1rem', marginRight: '1rem', marginBottom: '1rem', cursor: 'move' }; const boxSource = { ...
src/__tests__/DateTimeField-test.js
MYOB-Technology/react-bootstrap-datetimepicker
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import ShallowRenderer from 'react-test-renderer/shallow'; jest.dontMock('moment'); jest.dontMock('../DateTimeField.js'); function shallowRender(component) { const shallowRenderer = new ShallowRenderer(); shallowRenderer.render(component); ...
core/assets/vendor/backbone/backbone.js
raghavdev/project6
// Backbone.js 1.2.3 // (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(factory) { // Establish the root object, `window` (`se...
test/DropdownButtonSpec.js
dongtong/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownButton from '../src/DropdownButton'; import DropdownMenu from '../src/DropdownMenu'; import MenuItem from '../src/MenuItem'; import { shouldWarn } from './helpers'; describe('DropdownButton', () => { const simpleDropdo...
imports/ui/pages/CorrectedPapers/CorrectedPapers.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col , Alert , Button , ListGroup , ListGroupItem , Table} from 'react-bootstrap'; import renderHTML from 'react-render-html'; import { Meteor } from 'meteor/meteor'; import { Capitalize , sumMeUp , AuthorRank } from '../../../modules/utiliti...
ajax/libs/angular.js/1.1.1/angular-scenario.js
jessepollak/cdnjs
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function(...
app/utils/injectSaga.js
pauleonardo/demo-trans
import React from 'react'; import PropTypes from 'prop-types'; import hoistNonReactStatics from 'hoist-non-react-statics'; import getInjectors from './sagaInjectors'; /** * Dynamically injects a saga, passes component's props as saga arguments * * @param {string} key A key of the saga * @param {function} saga A r...
javascripts/foundation/jquery.js
dekom/jekyll
/*! * jQuery JavaScript Library v1.8.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Aug 30 2012 17:17:22 GMT-0400 (Eastern Daylight Time) */ (function(...
src/renderers/dom/client/utils/__tests__/getNodeForCharacterOffset-test.js
dustin-H/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/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...
files/parsleyjs/2.1.2/parsley.js
PeterDaveHello/jsdelivr
/*! * Parsleyjs * Guillaume Potier - <guillaume@wisembly.com> * Version 2.1.2 - built Tue Jun 16 2015 10:32:01 * MIT Licensed * */ !(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module depending on jQuery. define(['jquery'], factory); } else if (typ...
ajax/libs/babel-core/5.8.19/browser-polyfill.js
terrymun/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...
addons/actions/src/components/ActionLogger/index.js
nfl/react-storybook
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Inspector from 'react-inspector'; import style from './style'; class ActionLogger extends Component { componentDidUpdate() { const latest = this.ref.latest; if (latest) { const borderLeft = style.action.borderLeft; ...
ajax/libs/yui/3.6.0/event-custom-base/event-custom-base.js
anshulverma/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/routes/login/Login.js
poeschko/ask-refugeescode
/** * 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 PropTypes from 'prop-...
src/common/components/App.js
17Q4MX2hmktmpuUKHFuoRmS5MfB5XPbhod/dropzone
import React from 'react'; export default ({children}) => { return ( <div id="container"> {children} </div> ); }
components/AddIngredientCamera.ios.js
xfredlix/snacktime
'use strict'; import React, { Component } from 'react'; import { Text, Image, TouchableHighlight, View } from 'react-native'; import Camera from 'react-native-camera'; import helpers from '../helpers/helpers.js'; var axios = require('axios'); import styles from '../styles.ios.js'; import GoogleResults from './G...
compare/src/components/atoms/ButtonSettings.js
garris/BackstopJS
import React from 'react'; import styled from 'styled-components'; import { colors, fonts, shadows } from '../../styles'; import settingsIcon from '../../assets/icons/settings.png'; const Button = styled.button` border: none; height: 100%; border-radius: 3px; background: ${colors.lightGray}; margin-left: 1...
ajax/libs/nuclear-js/1.0.2/nuclear.js
khasinski/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define(factory); else if(typeof exports === 'object') exports["Nuclear"] = factory(); else root["Nuclear"]...
index.js
gocodecamp/react-native-imagebrowser
/** * example * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import {NativeModules} from 'react-native'; import { AppRegistry, StyleSheet, Text, View, Alert, DeviceEventEmitter } from 'react-native'; var DisplayImage = NativeModules.ZJImageBrowserMan...
src/js/components/Grommet/stories/Theme.js
HewlettPackard/grommet
import React from 'react'; import { Grommet, Anchor, Box } from 'grommet'; import { Add } from 'grommet-icons'; const customTheme = { global: { colors: { custom: '#cc6633', }, }, }; export const Theme = () => ( <Grommet theme={customTheme}> <Box pad="medium"> <Anchor icon={<Add />} labe...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js
cr101/create-react-app
/** * 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. */ import Rea...
src/components/EarthquakesDetails.js
ajaycheenath/earthquake
import React, { Component } from 'react'; import appStyle from "../css/app.css"; import RightDrawer from "../uic/RightDrawer"; import RangeSelector from "../uic/RangeSelector"; import Content from "../uic/Content"; import Button from "../uic/Button"; import EarthQuakePlaces from "./EarthQuakePlaces"; import EarthQuakeL...
heesong/src/index.js
hanheesong/hanheesong.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js
1Body/prayer-app
/** * 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. */ import Rea...
src/layouts/index.js
burdell/thelinwood
import React from 'react' import '../assets/scss/main.scss' import Helmet from 'react-helmet' import Header from '../components/Header' import Main from '../components/Main' import Footer from '../components/Footer' class Template extends React.Component { constructor(props) { super(props) this.state = { ...
static/scripts/components/ProductItem.js
minhuaF/bcb-koa2
import React from 'react'; import { Link } from 'react-router'; import Footer from './Footer.js'; import ProjectListUtil from '../utils/ProjectListUtil.js'; const ProductListItem = React.createClass({ render: function(){ return( <li className="white dropdown"> <header> ...
html-prototype/js/jquery.min.js
WeHateNick/edin-carpenter
/*! jQuery v1.11.0 | (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...
blueprints/dumb/files/__root__/components/__name__/__name__.js
bruceli1986/contract-react
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
node_modules/rx/dist/rx.compat.js
Mvangramberen/Herexamen-Webtech-2-voorbereiding
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExpor...
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
HelpfulHuman/helpful-react-scripts
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => <span id="feature-public-url"> {process.env.PUBLIC_URL}. </span>;