path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/app/scene/index.js
jjj201200/skincraft
/* * @Author: jjj201200@gmail.com * @Date: 2017-08-10 21:23:38 * @Last Modified by: jjj201200@gmail.com * @Last Modified time: 2017-08-20 02:06:39 */ import React from 'react'; import ReactDom from 'react-dom'; import $ from 'jquery'; import './scene.scss'; import { RenderManager, TextureManager, ModelManager,...
ajax/libs/xstream/1.0.0/xstream.js
cdnjs/cdnjs
(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 global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.xstream = f()}...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
app/javascript/mastodon/features/status/index.js
3846masa/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchStatus } from '../../actions/statuses'; import Immutable from 'immutable'; import EmbeddedStatus from '../../components/status'; import MissingI...
src/components/FacetedSearch/FacetedSearchHelp/FacetedSearchHelp.js
City-of-Helsinki/helerm-ui
import React from 'react'; import PropTypes from 'prop-types'; import ReactMarkdown from 'react-markdown'; import gfm from 'remark-gfm'; import raw from 'raw.macro'; import classnames from 'classnames'; import './FacetedSearchHelp.scss'; export const FACETED_SEARCH_HELP_TYPE_FACET = 'facet'; export const FACETED_SEAR...
src/components/common/withExperimentParameters.js
goodjoblife/GoodJobShare
import React from 'react'; import useExperimentParameters from 'hooks/useExperimentParameters'; /** * This HOC is for using Google Optimize while doing A/B testing. * * Using MutationObserver to observe attributes change on element * with `elementId`, then pass the newest attributes to WrappedComponent. * * Beca...
ajax/libs/analytics.js/2.8.13/analytics.js
yinghunglai/cdnjs
(function umd(require){ if ('object' == typeof exports) { module.exports = require('1'); } else if ('function' == typeof define && define.amd) { define(function(){ return require('1'); }); } else { this['analytics'] = require('1'); } })((function outer(modules, cache, entries){ /** * Global ...
node_modules/react-icons/io/map.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoMap = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.5 10.7c0.3 0.2 0.5 0.6 0.5 1.1v22c0 0.4-0.2 0.8-0.5 1-0.2 0.1-0.4 0.2-0.6 0.2-0.2 0-0.5 0-0.6-0.2l-7.6-5.1-7.6 5.1c-0.4 0.3-0.8 0.3-1.1 0l-7.6-5.1-7.6 5.1c-0.4 0.3-0....
ajax/libs/redux-form/5.1.0/redux-form.js
dada0423/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["ReduxForm"] = facto...
src/components/profile/TalentProfile.js
Team-Banana-Guava/JobOrNot-React
import React from 'react'; import { connect } from 'react-redux'; import TalentInfo from './TalentInfo'; import TalentStats from './TalentStats'; import TalentViewResume from './TalentViewResume'; function TalentProfile(props) { return ( <div className='container topComponent'> <div className='r...
app/components/Actions.js
matthieuh/desktop-assistant
// @flow import React, { Component } from 'react'; import { remote, screen } from 'electron'; import { Link } from 'react-router-dom'; import styles from './Actions.scss'; export default class Actions extends Component { state: { expanded: boolean }; constructor() { super(); this.state = { exp...
src/components/NewContactForm.js
lmtm/react-training
import React from 'react' // required for JSX import { connect } from 'react-redux' import { updateFormValue } from '../actions/ui' import { postContact } from '../actions/contacts' import * as api from '../client/api' class NewContactForm extends React.Component { updateValue (value) { this.props.updateFormVa...
client/extensions/woocommerce/app/promotions/promotion-update.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import page from 'page'; import { difference, debounce } from 'lodash'; /** * Int...
ajax/libs/yui/3.9.1/datatable-body/datatable-body-debug.js
magoni/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
sites/all/modules/contrib/jquery_update/replace/jquery/1.9/jquery.min.js
NaturalHistoryMuseum/scratchpads2
/*! 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...
src/js/ui/page-editor.js
SpaceHexagon/pylon
import React from 'react'; import Icon from './icon.js'; import EventEmitter from 'events'; export default class PageEditor extends React.Component { constructor() { super(); // Initial state of the component this.state = { resized: false, enabled: false }; } componentDidMo...
src/svg-icons/action/done.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDone = (props) => ( <SvgIcon {...props}> <path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/> </SvgIcon> ); ActionDone = pure(ActionDone); ActionDone.displayName = 'ActionDone'; export defaul...
src/components/UserForm/user-form.js
Mesamo/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, Radio } from 'antd' const FormItem = Form.Item const UserForm = ({ layout, initUser, messages, form: { getFieldDecorator } }) => { const formItemLayout = { labelCol: { xs: { span: 24 }, sm: { span: 4 } ...
src/svg-icons/av/playlist-play.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay = pure(AvPlaylistPlay); AvPlaylistPlay.displayName = '...
packages/react/src/inputs/Radio.js
wq/wq.app
import React from 'react'; import { Field, ErrorMessage } from 'formik'; import PropTypes from 'prop-types'; export default function Radio({ name, label, choices, horizontal }) { const style = { display: 'flex', flexDirection: horizontal ? 'row' : 'column' }; return ( <div style={{ ...
ajax/libs/forerunnerdb/1.3.673/fdb-all.js
sreym/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...
packages/my-joy-instances/src/mocks/router.js
geek/joyent-portal
import React from 'react'; import { MemoryRouter } from 'react-router-dom'; export default ({ children }) => <MemoryRouter>{children}</MemoryRouter>;
src/components/ui/Text.js
arayi/SLions
/** * Text * <Text h1>Hello World</Text> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text } from 'react-native'; // Consts and Libs import { AppStyles } from '@theme/'; /* Compon...
src/interface/report/Results/Character/PlayerInfo/Enchants.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import enchantIdMap from 'common/enchantIdMap'; class Enchants extends React.PureComponent { static propTypes = { gear: PropTypes.array.isRequired, }; render() { const { gear } = this.props; return ( <> { gear.f...
client/src/scripts/main.js
G-CorpDev/project
import React from 'react'; import ReactDOM from 'react-dom'; import style from '../scss/main.scss'; import App from './App.js' ReactDOM.render(( <App /> ), document.getElementById('root') );
ajax/libs/react-native-web/0.13.11/modules/UnimplementedView/index.min.js
cdnjs/cdnjs
function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}import View from"../../exports/View";import React from"react";var UnimplementedView=function(e){function t(){return e.apply(this,arguments)||this}_inheritsLoose(t,e);var r=t.prototype;return r.setNativeProps=func...
ajax/libs/vue-chartjs/2.3.7/vue-chartjs.min.js
BenjaminVanRyseghem/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.VueChartJs=t():e.VueChartJs=t()}(this,function(){return function(e){function t(a){if(n[a])return n[a].exports;var r=n[a]={exports:{},id:a,loaded:!1};ret...
packages/material-ui-icons/src/ExposurePlus2TwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M8 17v-4h4v-2H8V7H6v4H2v2h4v4zm11.95-4.96c.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46s-.44-.81-.78-1.11c-.34-.31-.77-.54-1.26-.71-.51-.16-1.08-.24-1.72-....
actor-apps/app-web/src/app/components/Main.react.js
tsdl2013/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
stories/props/toolbar.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, momentLocalizer } from '../../src' import demoEvents from '../resources/events' import mdx from './toolbar.mdx' const mLocalizer = momentLocalizer(moment) export default { title: 'props', component: Calendar, argTypes: { localizer: { c...
src/svg-icons/action/account-circle.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1....
demo/components/label/LabelDemo.js
ctco/rosemary-ui
import React from 'react'; import {Label} from '../../../src'; import DemoWithSnippet from '../../../demo/layout/DemoWithSnippet'; export default () => { return ( <DemoWithSnippet> <Label /> <Label /> </DemoWithSnippet> ); };
webpack/components/AnsibleHostDetail/AnsibleHostDetail.js
theforeman/foreman_ansible
import React from 'react'; import PropTypes from 'prop-types'; import { Tabs, Tab, TabTitleText } from '@patternfly/react-core'; import { useHistory } from 'react-router-dom'; import SkeletonLoader from 'foremanReact/components/common/SkeletonLoader'; import SecondaryTabRoutes from './components/SecondaryTabRoutes'; i...
src/index.js
catprince/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
client/src/Dashboard.js
mikehug/happyApp
import React from 'react'; import { Jumbotron, Button } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; class Dashboard extends React.Component { render() { return ( <Jumbotron > <h3>Chat with Happy Techie wellness bot.</h3> <LinkContainer to={{ pathname: '/signup'}}> ...
Tutorials/14 - Stateless Components/App.js
bjg/2017-buct-mobileweb
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
js/react.min.js
Derrickmv/ryanfraysure
/** * React v15.1.0 * * Copyright 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....
ajax/libs/forerunnerdb/1.3.421/fdb-core+views.js
dannyxx001/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...
ajax/libs/react-bootstrap-typeahead/0.6.0/react-bootstrap-typeahead.min.js
kennynaoh/cdnjs
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],n):"object"==typeof exports?exports.ReactBootstrapTypeahead=n(require("react"),require("react-dom")):t.ReactBootstrapTypeahead=n(t.R...
Realization/frontend/czechidm-example/src/content/identity/projection/ExampleIdentityProjection.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; // import { Basic, Utils, Managers, Content } from 'czechidm-core'; const identityManager = new Managers.IdentityManager(); const identityProjectionManager = new Managers.IdentityProjectionManager(); /** * Example form for identity projection. * *...
src/svg-icons/device/location-disabled.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceLocationDisabled = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5...
client/src/components/TextInput/index.js
bottleneckco/highlights
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.scss'; const TextInput = (props) => ( <div className={styles.container}> { props.singleLine ? ( <input onChange={props.onTextChange} placeholder={props.name} required ...
src/index.js
mattiaerre/pink-pineapple
import React from 'react'; import { render } from 'react-dom'; import App from './containers/App/App'; import Wrapper from './containers/App/Wrapper'; render( <div> <Wrapper> <App model={{ title: 'OpenComponents Registry v2' }} /> </Wrapper> </div>, document.getElementById('app') );
bin/Windows-x86/Release/ilc/www/scripts/plugins/jquery-confirm.js
luismpsilva/spl-invent
/*! * jquery-confirm v3.2.3 (http://craftpip.github.io/jquery-confirm/) * Author: Boniface Pereira * Website: www.craftpip.com * Contact: hey@craftpip.com * * Copyright 2013-2017 jquery-confirm * Licensed under MIT (https://github.com/craftpip/jquery-confirm/blob/master/LICENSE) */ if (typeof jQuery === 'unde...
tools/template/files/tools/wrapper.js
postor/react-builder
import React from 'react' import Cookies from 'js-cookie' import Router from 'next/router' import { I18nextProvider } from 'react-i18next' import { connect } from 'react-redux' import { default as fetch, getContextedFetch } from './fetch' import { i18nWrapper } from './i18n-helper' import { initStore, reduxWrapper } f...
node_modules/body-parser/node_modules/debug/src/browser.js
stl-florida/casestudy-riskmap
/** * This is the web browser implementation of `debug()`. * * Expose `debug()` as the module. */ exports = module.exports = require('./debug'); exports.log = log; exports.formatArgs = formatArgs; exports.save = save; exports.load = load; exports.useColors = useColors; exports.storage = 'undefined' != typeof chrom...
test/subscriptions-test.js
cycgit/dva
import expect from 'expect'; import React from 'react'; import dva from '../src/index'; describe('subscriptions', () => { it('type error', () => { const app = dva(); expect(() => { app.model({ namespace: '_', subscriptions: [], }); }).toThrow(/app.model: subscriptions should b...
lib/yuilib/3.17.2/event-focus/event-focus.js
ilya-catalyst/moodle
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-focus', function (Y, NAME) { /** * Adds bubbling and delegation support to DOM events focus and blur. * * @module event * @submodule event-focus */ var Ev...
wp-includes/js/jquery/jquery.js
westeast/mywordpress
/*! 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...
ajax/libs/falcor/0.0.13/Falcor.js
menuka94/cdnjs
/*! * Copyright 2014 Netflix, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
packages/material-ui-icons/src/LinkedIn.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 ...
ajax/libs/fluentui-react/7.153.0/fluentui-react.min.js
cdnjs/cdnjs
var FluentUIReact=function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symb...
node_modules/material-ui-youtube-autocomplete/node_modules/material-ui/svg-icons/av/high-quality.js
iamtonybologna/freebird
'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...
src/components/ZoomBox.js
rumblesan/webmandel
import React from 'react'; export default ({zoom, width, height}) => { if (!zoom || !zoom.x2 || !zoom.y2) { return <svg></svg>; } const ratio = height / width; const bWidth = (zoom.x2 - zoom.x1) * width; const bHeight = bWidth * ratio; return ( <svg> <rect id='zoombox' x={zoo...
pootle/static/js/auth/index.js
r-o-b-b-i-e/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import $ from 'jquery'; import assign from 'object-assign'...
src/components/Modal/index.js
fhelwanger/bayesjs-editor
import PropTypes from 'prop-types'; import React from 'react'; import ReactModal from 'react-modal'; import classNames from 'classnames'; import fontAwesome from 'font-awesome/css/font-awesome.css'; import { getComponentTestId } from 'utils/test-utils'; import styles from './styles.css'; const style = { overlay: { ...
demo/menu/menu.js
kwangkim/react-mdl
import React from 'react'; import IconButton from '../../src/IconButton'; import Menu, { MenuItem } from '../../src/Menu'; class Demo extends React.Component { render() { return ( <div style={{width: '300px', margin: 'auto', position: 'relative'}}> <p>Lower left</p> ...
app/javascript/flavours/glitch/components/column_header.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Icon from 'flavours/glitch/components/icon'; const messages = defineMessages({ show: { id: 'c...
ajax/libs/aui/5.6.7/aui/js/aui-dependencies.js
kalkidanf/cdnjs
!function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(....
examples/huge-apps/routes/Course/components/Nav.js
schnerd/react-router
import React from 'react' import { Link } from 'react-router' const styles = {} styles.nav = { borderBottom: '1px solid #aaa' } styles.link = { display: 'inline-block', padding: 10, textDecoration: 'none' } styles.activeLink = { ...styles.link, color: 'red' } class Nav extends React.Component { rende...
app/javascript/mastodon/features/ui/components/onboarding_modal.js
unarist/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'cl...
dev/dispenseApp/pages/requestedCodes.js
Thr1ve/Dispense
import React from 'react' import app from 'ampersand-app' import Mui from 'material-ui' let { Paper, FlatButton } = Mui let requestedCodes = React.createClass({ getInitialState () { return { data: [], currIndex: '' } }, componentDidMount () { this.setState({ data: app.requestedCo...
src/main.js
SergeyGuns/test-site
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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 'babel-polyfill'; im...
app/jsx/webzip_export/components/ExportListItem.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
ajax/libs/react-leaflet/1.0.3/react-leaflet.min.js
froala/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("leaflet"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","leaflet","react-dom"],e):"object"==typeof exports?exports.ReactLeaflet=e(require("react"),require("leaflet"),require("react-d...
components/balance.js
BumpBank/serverSide
import React from 'react' const Balance = (props) => { return <div> <h1>Hey {props.state.username}</h1> <h1>Balance: ${parseFloat(props.state.balance).toFixed(2)}</h1> </div> } module.exports = Balance
lavalab/html/node_modules/react-bootstrap/es/Radio.js
LavaLabUSC/usclavalab.org
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 ...
boxroom/archive/backup-js-surface-2018-01-28/src/main/js-surface-react-native.js
js-works/js-surface
import adaptReactifiedDefineComponent from './adaption/adaptReactifiedDefineComponent'; import Config from './config/Config'; import ElementInspector from './helper/ElementInspector'; import React from 'react'; import ReactNative from 'react-native'; const defineComponent = adaptReactifiedDefineComponent({ ...
clicker-key/content/src/scripts/index.js
tshaddix/react-chrome-redux-examples
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import {Store} from 'webext-redux'; import App from './components/app/App'; const proxyStore = new Store(); const anchor = document.createElement('div'); anchor.id = 'rcr-anchor'; document.body.insertBefore(anchor, do...
src/shared/forms/textInput.js
bschneier/credit-cards-front-end
import React from 'react'; import PropTypes from 'prop-types'; import Message from '../message'; import { FormGroup, Col, FormControl, ControlLabel } from 'react-bootstrap'; const TextInput = ({controlId, field, labelColProps, controlType = "text", inputColProps, labelValue, onChange}) => { retur...
app/javascript/mastodon/components/status_list.js
rainyday/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap from './load_gap...
jspm_packages/npm/babel-core@5.8.35/lib/transformation/transformers/other/react-compat.js
ludoT/PFCLS
/* */ "format cjs"; "use strict"; exports.__esModule = true; exports.manipulateOptions = manipulateOptions; // istanbul ignore next function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty....
ajax/libs/vue-smart-table/2.5.0-alpha21/vue-smart-table.js
sufuf3/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("Vue")); else if(typeof define === 'function' && define.amd) define(["Vue"], factory); else if(typeof exports === 'object') exports["SmartTable"] = factory(...
ajax/libs/flocks.js/1.0.2/flocks.min.js
jdh8/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function v(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===typ...
node_modules/react-bootstrap/es/BreadcrumbItem.js
mohammed52/something.pk
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/components/applayout/ContentSection.js
kryptnostic/gallery
import React from 'react'; import styled from 'styled-components'; import StyledFlexContainerStacked from '../flex/StyledFlexContainerStacked'; import StyledFlexContainerStackedCentered from '../flex/StyledFlexContainerStackedCentered'; const OuterSectionContainer = styled(StyledFlexContainerStackedCentered)` back...
react-component-template/test.js
Techwraith/ribcage-gen
import test from 'tape' import {{PascalName}} from './index.jsx' import React from 'react' import {isElement} from 'react-addons-test-utils' import testTree from 'react-test-tree' import defaultProps from './example/data.js' test('{{PascalName}}: constructor', (t) => { const {{camelName}} = React.createElement({{Pas...
src/item.js
wi2/sails-react-store
import React from 'react' import ReactBase from './base.js' import {ReactItemButtons} from './item-button.js' import {StoreItem} from 'sails-store' export default class ReactItem extends ReactBase { static defaultProps = { item: {}, buttons: [] } static propTypes = { item: React.PropTypes.object.isRe...
admin/client/App/elemental/Modal/dialog.js
cermati/keystone
import React, { Component, PropTypes } from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import ScrollLock from '../ScrollLock'; import Portal from '../Portal'; import theme from '../../../theme'; const canUseDom = !!( typeof window !== 'undefined' && window.document && window.document.create...
app/components/setup/overview/index.js
Vizzuality/forest-watcher
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, Image, TextInput, ActivityIndicator } from 'react-native'; import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'; import { Navigation } from 'react-native-navigation'; import Theme from 'confi...
src/propTypes/LayoutPropTypes.js
RealOrangeOne/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/StyleSheet/LayoutPropTypes.js */ import React from 'react'; const { PropTypes } = React; /** * React Native's layout system is based on Flexbox and is powered both * on iOS and Android by an open source project called css-layout: * https://gith...
docs/app/Examples/modules/Popup/Variations/PopupExampleStyle.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button, Popup } from 'semantic-ui-react' const style = { borderRadius: 0, opacity: 0.7, padding: '2em', } const PopupExampleStyle = () => ( <Popup trigger={<Button icon='eye' />} content='Popup with a custom style prop' style={style} inverted /> ) export d...
ajax/libs/yui/3.13.0/event-focus/event-focus-min.js
DSpeichert/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(...
app/js/dev/redux-dev-tools-exports.js
dothanhlam/mflenses
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor an...
test/utils.js
davidjoy/react-et-al-boilerplate
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { createStore } from 'redux'; import { Provider } from 'react-redux' import rootReducer from '../client/reducers/RootReducer' const store = createStore(rootReducer); export function shallowlyRenderedOutput(Component) { const shallow...
src/utils/domUtils.js
albertojacini/react-bootstrap
import React from 'react'; import canUseDom from 'dom-helpers/util/inDOM'; import getOwnerDocument from 'dom-helpers/ownerDocument'; import getOwnerWindow from 'dom-helpers/ownerWindow'; import contains from 'dom-helpers/query/contains'; import activeElement from 'dom-helpers/activeElement'; import getOffset from 'd...
client/components/Shared/Carousel/Carousel.js
vcu-lcc/nomad
/* Copyright (C) 2017 Darren Chan This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program ...
js/AppNavigator.js
DevHse/ClubRoom
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Router, Scene } from 'react-native-router-flux'; import { closeDrawer } from './actions/drawer'; import ChatUI from './components/ChatUI'; import Login from './components/login/'; import Home from './components/home/'; import Bl...
react-router/components/Page.js
jeffreywescott/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import PageStore from '../stores/PageStore'; import { connectToStores } from 'fluxible-addons-react'; @connectToStores([PageStore], (context) => context.getSt...
src/components/posts_index.js
tpechacek/redux-blog
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts(); } renderPosts() { return _.map(this...
docs/src/pages/component-demos/tabs/DisabledTabs.js
dsslimshaddy/material-ui
// @flow weak /* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import Tabs, { Tab } from 'material-ui/Tabs'; class DisabledTabs extends Component { state = { value: 0, }; handleChange = (event, value) => { this.setState({ value })...
src/containers/ui/Menu/MenuView.js
Jenny-L/lumohacks2017
/** * Menu Contents * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Alert, StyleSheet, TouchableOpacity, } from 'react-native'; import { Actions } from 'react-native-router-flu...
app/scripts/components/zoom-wrapper.js
hustbill/network-verification-ui
import React from 'react'; import { connect } from 'react-redux'; import { debounce, pick } from 'lodash'; import { fromJS } from 'immutable'; import { event as d3Event, select } from 'd3-selection'; import { zoom, zoomIdentity } from 'd3-zoom'; import { cacheZoomState } from '../actions/app-actions'; import { transf...
src/svg-icons/editor/format-color-text.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorText = (props) => ( <SvgIcon {...props}> <path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/> </SvgIcon> );...
src/MediaLeft.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import Media from './Media'; import { bsClass, getClassSet, prefix, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { /** * Align the media to the top, middle, or bottom of the media object. */ align: React.PropTypes.oneOf(['t...
src/Divider/Divider.spec.js
AndriusBil/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import Divider from './Divider'; describe('<Divider />', () => { let shallow; let classes; before(() => { shallow = createShallow({ dive: true }); classes = getClasses(<Divider ...
src/activity.js
siiptuo/tiima-spa
import React from 'react'; import PropTypes from 'prop-types'; import { getRequest, postRequest, putRequest, deleteRequest } from './api'; export function parseInput(input) { input = input.trim(); const tagStart = input.indexOf('#'); if (tagStart >= 0) { return { title: input.slice(0, tagStart).trim()...
blueocean-material-icons/src/js/components/svg-icons/image/panorama-vertical.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePanoramaVertical = (props) => ( <SvgIcon {...props}> <path d="M19.94 21.12c-1.1-2.94-1.64-6.03-1.64-9.12 0-3.09.55-6.18 1.64-9.12.04-.11.06-.22.06-.31 0-.34-.23-.57-.63-.57H4.63c-.4 0-.63.23-.63.57 0 .1.02.2.06.31C5.16 5.82 5.71 8.91 5.71...
src/components/Mail/MailSidebar.js
maloun96/react-admin
import React from 'react'; import {render} from 'react-dom'; import axios from 'axios'; import {Link} from 'react-router-dom'; class MailSidebar extends React.Component { constructor(props) { super(props); } render() { const link = (this.props.buttonBack == 'compose') ? <Link to='/mail/...
examples/shopping-cart/src/components/CartContainer.js
colindresj/nuclear-js
import React from 'react' import Cart from '../../common/components/Cart' import reactor from '../reactor' import getters from '../getters' import actions from '../actions' export default React.createClass({ mixins: [reactor.ReactMixin], getDataBindings() { return { products: getters.cartProducts, ...