path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ajax/libs/react-dnd/14.0.3/cjs/hooks/useDrag/useDragType.js
cdnjs/cdnjs
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useDragType = useDragType; var _invariant = require("@react-dnd/invariant"); var _react = require("react"); function useDragType(spec) { return (0, _react.useMemo)(function () { var result = spec.type; (0, _invariant.in...
node_modules/react-icons/io/ios-reload.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosReload = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15 5c8.3 0 15 6.7 15 15l4.3-4.1 0.7 0.7-5.5 5.3-5.2-5.3 0.7-0.7 4 4c0-7.6-6.3-13.9-14-13.9s-14 6.3-14 14 6.3 14 14 14c6.2 0 11.4-3.9 13.3-9.5l0.9 0.3c-2 5.9-7.6 10...
packages/material-ui-icons/src/FilterListRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M11 18h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1zm4 6h10c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1z"...
app/javascript/mastodon/features/picture_in_picture/components/footer.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import classNames from 'classna...
src/components/FAQSection/FAQSection.js
hack-duke/hackduke-ideate-website
import React from 'react' import classes from '../FAQSection/FAQSection.scss' import faqclasses from './FAQSection.scss' export const FAQSection = (props) => ( <div className={faqclasses.section}> <div className={faqclasses.sectionHeader} style={{'textAlign': 'left'}}> {props.title} </div> <div cl...
src/components/Header.js
alexeyryzhikov/kanjitesto
import React, { Component } from 'react'; import { Link } from 'react-router'; import MenuItem from './MenuItem'; export default class Header extends Component { render() { return ( <nav className="navbar navbar-inverse navbar-fixed-top"> <div className="container"> <div className="navba...
src/common/components/vanilla/table-interactive/data-link.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import { Link } from 'react-router'; import classNames from 'classnames'; import styles from './table.css'; export default function DataLink(props) { const Wrapper = (props.to || props.onClick) ? Link : 'div'; const className = classNames({ [styl...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Drouiz/DrouizBoard
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/index.js
casesandberg/workbench
'use strict' import React from 'react' import ReactDOM from 'react-dom' import 'normalize.css' import Workbench from './components/Workbench' ReactDOM.render( <Workbench />, document.getElementById('root') ) // export function __reload() { // console.clear() // }
src/components/UserCreditTab.js
Ricky-Nz/knocknock-web
import React, { Component } from 'react'; import Relay from 'react-relay'; import CreditList from './CreditList'; import PaginationSearchBar from './PaginationSearchBar'; import { pageInfoFragment, paginationVariables } from '../utils'; class UserCreditTab extends Component { onNavigate = (pagination) => { this.pro...
src/views/HomeView/RoomChart.js
seriallos/hubot-stats-web
import React, { PropTypes } from 'react'; import {LineChart} from 'react-d3-basic'; class RoomChart extends React.Component { static propTypes = { data: PropTypes.object }; render () { const {data} = this.props; let activity = []; if (data && data.activity) { activity = data.activity; }...
src/svg-icons/maps/directions-boat.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBoat = (props) => ( <SvgIcon {...props}> <path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99...
docs/src/pages/components/autocomplete/Highlights.js
lgollut/material-ui
/* eslint-disable no-use-before-define */ import React from 'react'; import TextField from '@material-ui/core/TextField'; import Autocomplete from '@material-ui/lab/Autocomplete'; import parse from 'autosuggest-highlight/parse'; import match from 'autosuggest-highlight/match'; export default function Highlights() { ...
internals/templates/containers/NotFoundPage/index.js
stephme/react-specly
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/Markdown.js
simonguo/markdownLoader
import React from 'react'; class Markdown extends React.Component { constructor() { super(); this.createMarkup = this.createMarkup.bind(this); } createMarkup() { return { __html: this.props.children }; } render() { return ( <div dangerouslySetInnerHTML={this.createMarkup()} ...
docs/app/Examples/collections/Form/index.js
shengnian/shengnian-ui-react
import React from 'react' import Content from './Content' import Types from './Types' import Variations from './Variations' import Shorthand from './Shorthand' import FieldVariations from './FieldVariations' import GroupVariations from './GroupVariations' import States from './States' import Usage from './Usage' const...
template/core/demo/src/components/_layout/index.js
bagoftrycks/ronodoc-cli
import React from 'react'; import Hodor from '../hodor'; import Markdownothor from '../markdownothor'; import PropTypesDescripthor from '../proptypes-descripthor'; import {parse} from 'react-docgen'; /** * # Layout * * This component is used to render a classic page. * Each pages extend this component `<Layout>`...
packages/react-dom/src/__tests__/ReactMultiChild-test.js
jzmq/react
/** * 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. * * @emails react-core */ 'use strict'; describe('ReactMultiChild', () => { let React; let ReactDOM; beforeEach(() => { ...
Camera.js
bletchley/react-native-camera
import React, { Component, NativeAppEventEmitter, NativeModules, PropTypes, StyleSheet, requireNativeComponent, View, } from 'react-native'; const CameraManager = NativeModules.CameraManager || NativeModules.CameraModule; const CAMERA_REF = 'camera'; function convertStringProps(props) { const newProps...
frontend/src/Components/Error/ErrorBoundary.js
lidarr/Lidarr
import * as sentry from '@sentry/browser'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; class ErrorBoundary extends Component { // // Lifecycle constructor(props, context) { super(props, context); this.state = { error: null, info: null }; } compone...
src/SectionfooterBack/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import ButtonIcon from './../ButtonIcon'; import styles from './styles.css'; import classNames from 'classnames'; function SectionFooterBack(props) { return ( <div className={classNames(styles.wrapper, { [props.className]: props.className} ...
frontend/src/components/dialog/sysadmin-dialog/sysadmin-add-member-dialog.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { gettext, orgID } from '../../../utils/constants'; import { seafileAPI } from '../../../utils/seafile-api'; import { Utils } from '../../../utils/utils'; import toaster...
src/components/Navigation/Navigation.js
TestKitt/TestKittUI
import React from 'react' import { Link } from 'react-router' import style from './Navigation.scss' export const Navigation = () => ( <nav className={style.nav}> <ul> <li><Link activeClassName={style.route_active} to="/projects">Projects</Link></li> <li><Link activeClassName={style.route_active} to="...
src/routes/workTeamManager/WorkTeamManagement.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, FormattedMessage } from 'react-intl'; import Accordion from '../../components/Accordion'; import Box from '../../components/Box'; import WorkteamHeader from '../../components/WorkteamHeader'; i...
src/components/Label.js
wbreakell/changeover
// @flow import React from 'react'; import styled from 'styled-components'; const Label = styled.label` color: #40434b; display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; `; export default Label;
src/components/TitleDisplay.js
BenGoldstein88/redux-chartmaker
import React from 'react'; export default class TitleDisplay extends React.Component { // static propTypes = { // name: React.PropTypes.string, // }; constructor(props) { super(props); this.state = { clicked: false, styles: { editStyle: { margin: '0 auto', fontSize: '1...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/Portal.js
GoogleCloudPlatform/prometheus-engine
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { canUseDOM } from './utils'; var propTypes = { children: PropTypes.node.isRequired, node: PropTypes.any }; var Portal = /*#__PURE__*/functi...
node_modules/react-icons/md/data-usage.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdDataUsage = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 31.6c3.7 0 7-1.7 9.1-4.3l4.3 2.5c-3 4.2-7.8 6.8-13.4 6.8-9.2 0-16.6-7.4-16.6-16.6 0-8.7 6.5-15.7 15-16.6v5c-5.7 0.8-10 5.7-10 11.6 0 6.5 5.1 11.6 11.6 11.6z m1....
node_modules/react-google-maps/lib/creators/OverlayViewCreator.js
ClaaziX/foodshare
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("v...
app/javascript/mastodon/features/compose/components/upload_form.js
hugogameiro/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import UploadProgressContainer from '../containers/upload_progress_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; export default class U...
src/svg-icons/action/touch-app.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTouchApp = (props) => ( <SvgIcon {...props}> <path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4....
src/svg-icons/action/done-all.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
RNTester/js/ToolbarAndroidExample.android.js
frantic/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. * * @flow * ...
src/js/components/Flurries.js
Fraina/React-Weather-Widget
import React, { Component } from 'react'; export default class Flurries extends Component { render() { return ( <div className="icon"> <div className="cloud"></div> <div className="snow"> <div className="flake"></div> <div className="flake"></div> </div> </...
examples/huge-apps/routes/Course/components/Nav.js
mattydoincode/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...
react-router-demo/lessons/05-active-links/index.js
zhangjunhd/react-examples
import React from 'react' import { render } from 'react-dom' import { Router, Route, hashHistory } from 'react-router' import App from './modules/App' import About from './modules/About' import Repos from './modules/Repos' render(( <Router history={hashHistory}> <Route path="/" component={App}> <Route path...
docs/app/Examples/views/Comment/States/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const CommentTypes = () => ( <ExampleSection title='States'> <ComponentExample title='Collapsed' description='Commen...
media/k2/assets/js/jquery-1.5.2.min.js
ChrisFrench/WWorks
/*! * jQuery JavaScript Library v1.5.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js
pradel/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; const style = { margin: 12, }; const RaisedButtonExampleSimple = () => ( <div> <RaisedButton label="Default" style={style} /> <RaisedButton label="Primary" primary={true} style={style} /> <RaisedButton label="Secondary" se...
ajax/libs/aui/5.6.4/aui/js/aui-dependencies.js
bevacqua/cdnjs
!function(){"use strict";function a(a,c){var d=new b(a,c),e=function(){var b=document.createElement(a);return d.init(b),b};return e.listener=d,e}function b(b,c){c||(c={}),"function"==typeof c&&(c={insert:c}),this.component=c,this.id=b,j(this.component,a.defaults),this.component.ready&&u(this),this.component.listen&&thi...
ajax/libs/flocks.js/1.4.0/flocks.min.js
aashish24/cdnjs
if("undefined"===typeof React)var React=require("react"); (function(){function h(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){return"undefined"===typeof a}function v(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function b(a,c){if("string"===type...
client/js/components/parts/GameInterface/Tile.react.js
Kineolyan/Catane
'use strict'; /* A tile of the map */ import React from 'react'; import {Group, Shape, Text} from 'react-art'; import Circle from 'react-art/shapes/circle'; import Globals from '../../libs/globals'; export default class Tile extends React.Component { render() { var tile = this.props.tile, vertex = ...
node_modules/react-native/Libraries/Components/Navigation/NavigatorIOS.ios.js
bohanapp/PropertyFinder
/** * 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/topic/versions/homepages/VersionGenerationProcess.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import Stepper from '@material-ui/core/Stepper'; import Step from '@material-ui/core/Step'; import StepLabel from '@material-ui/core/StepLabel'; import { FormattedMessage, injectIntl } from 'react-intl'; import { TOPIC_SNAPSHOT_STATE_ERROR, TOPIC_SNAPSHOT_S...
frontend/src/app/containers/HomePageNoAddon.js
6a68/testpilot
import React from 'react'; import MainInstallButton from '../components/MainInstallButton'; import ExperimentCardList from '../components/ExperimentCardList'; import LoadingPage from './LoadingPage'; import PastExperiments from '../components/PastExperiments'; import View from '../components/View'; export default cl...
src/svg-icons/action/pan-tool.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPanTool = (props) => ( <SvgIcon {...props}> <path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4...
src/Table/TableBody.js
pradel/material-ui
import React from 'react'; import Checkbox from '../Checkbox'; import TableRowColumn from './TableRowColumn'; import ClickAwayListener from '../internal/ClickAwayListener'; class TableBody extends React.Component { static muiName = 'TableBody'; static propTypes = { /** * @ignore * Set to true to ind...
src/components/FarmInfo/FarmInfo.js
jeffaustin81/cropcompass-ui
import React from 'react' import { IndexLink, Link } from 'react-router' import HorizontalBarChart from 'components/VisualizationsD3/HorizontalBarChart/HorizontalBarChart' import DonutD3 from 'components/VisualizationsD3/DonutD3/TryDonut' import Words from '../Words/Words' export const FarmInfo = (props) => { let ...
src/components/Feedback/Feedback.js
p-a/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/Frontend/test/components/form/SelectableFieldSpec.js
Sententiaregum/Sententiaregum
/* * This file is part of the Sententiaregum project. * * (c) Maximilian Bosch <maximilian@mbosch.me> * (c) Ben Bieler <ben@benbieler.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ 'use strict'; import React from 'react'; ...
docs/0.4f69213f6baaa346322a.js
lhf-nife/quark-ui
webpackJsonp([0],{"0P4F":function(e,n,t){"use strict";function a(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function o(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function ...
src/components/Iconfont/Iconfont.js
zhouchao0924/SLCOPY
import React from 'react' import PropTypes from 'prop-types' import './iconfont.less' const Iconfont = ({ type, colorful }) => { if (colorful) { return (<span dangerouslySetInnerHTML={{ __html: `<svg class="colorful-icon" aria-hidden="true"><use xlink:href="#${type.startsWith('#') ? type.replace(/#...
examples/todomvc/index.js
konce/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
ajax/libs/raven.js/3.22.2/angular,console,ember,require/raven.js
wout/cdnjs
/*! Raven.js 3.22.2 (1b6187b) | github.com/getsentry/raven-js */ /* * Includes TraceKit * https://github.com/getsentry/TraceKit * * Copyright 2018 Matt Robenolt and other contributors * Released under the BSD license * https://github.com/getsentry/raven-js/blob/master/LICENSE * */ (function (global, factory) ...
src/components/secrets/SecretListContent.js
secretin/secretin-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { escapeRegExp, set } from 'lodash'; import { List, AutoSizer } from 'react-virtualized'; import SecretListItem from 'components/secrets/SecretListItem'; impo...
src/svg-icons/image/assistant.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAssistant = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11...
src/components/HomePage.js
bryancr89/uLikeReact
import React from 'react'; import {Link} from 'react-router'; const HomePage = () => { return ( <div> <h1>React Slingshot1</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> ...
ajax/libs/forerunnerdb/1.3.587/fdb-all.min.js
dakshshah96/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
ajax/libs/mediaelement/2.2.1/jquery.js
sajochiu/cdnjs
/*! * jQuery JavaScript Library v1.6.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ajax/libs/6to5/1.13.3/browser.js
kellyselden/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.to5=e()}}(function(){var define,module,exports;return...
src/Overview/ProjectLane/BranchCard/CardLanes/ProgressLane/ProgressLane.js
friedow/bpd
import React, { Component } from 'react'; class ProgressLane extends Component { constructor(props) { super(props); let value = 0; if(this.props.value) { value = this.props.value; } this.state = {baseColor: 'grey darken-2', progressColor: 'green darken-4', valueText: ' ', ...
scripts/jest/preprocessor.js
brentvatne/relay
// TODO: sync babel config with gulpfile. There are differences (eg, we don't // want to use the DEV plugin). var babel = require('babel-core'); var babelPluginModules = require('fbjs/scripts/babel/rewrite-modules'); var fs = require('fs'); var getBabelRelayPlugin = require('../babel-relay-plugin/src/getBabelRelayPlug...
ajax/libs/jointjs/0.9.1/joint.nojquery.js
KOLANICH/cdnjs
/*! JointJS v0.9.1 - JavaScript diagramming library 2014-08-07 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /** * @license * Lo-Dash 2.2.1 (Custom Build) <http://...
ReactApp/LastChance/__tests__/index.android.js
Mastenka/josefina
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 /> ); });
ajax/libs/6to5/1.14.10/browser-polyfill.js
Olical/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...
examples/src/components/RemoteSelectField.js
shalomvolchok/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...
js/components/QuestionTypes/ScaleQuestion.js
ecohealthalliance/GoodQuestion
import React from 'react'; import { Text, View, Slider, Animated, Platform, } from 'react-native'; import Styles from '../../styles/Styles'; import ViewText from '../ViewText'; const ScaleQuestion = React.createClass({ propTypes: { id: React.PropTypes.string.isRequired, text: React.PropTypes.string...
bloodbank/src/main/webapp/ext/src/form/field/ComboBox.js
applifireAlgo/bloodbank
/** * A combobox control with support for autocomplete, remote loading, and many other features. * * A ComboBox is like a combination of a traditional HTML text `<input>` field and a `<select>` * field; the user is able to type freely into the field, and/or pick values from a dropdown selection * list. The user ca...
ajax/libs/forerunnerdb/1.3.375/fdb-core.js
cdnjs/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...
examples/data-fetch/pages/preact.js
kevmannn/next.js
import React from 'react' import Link from 'next/link' import 'isomorphic-fetch' export default class MyPage extends React.Component { static async getInitialProps () { // eslint-disable-next-line no-undef const res = await fetch('https://api.github.com/repos/developit/preact') const json = await res.js...
src/routes/Rover/Rover.js
imakatman/picturesfromMars
import React, { Component } from 'react'; const mapStateToProps = (state, ownProps) => { const latestDay = state[thisRover].most_recent_day; const chosenDay = state.userChosen.Day; const chosenPicture = state.userChosen.Camera; return { rover: ownProps.rover, // ID choseCamera: state.userChosen...
app/lagniappe/components/Apps/index.js
baublet/lagniappe
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Apps.scss'; export default class Apps extends Component { render() { return ( <div className={styles.container}> Applications! </div> ); } }
node_modules/grunt-jscs/node_modules/jscs/node_modules/babel-jscs/node_modules/babel-core/node_modules/core-js/library/modules/es6.promise.js
mmayorivera/angular-sync
'use strict'; var $ = require('./$') , LIBRARY = require('./$.library') , global = require('./$.global') , ctx = require('./$.ctx') , classof = require('./$.classof') , $export = require('./$.export') , isObject = require('./$.is-object') , anObject = require('./$.an-objec...
src/features/planSelection/containers/PlanSelectionScreen.js
meetfranz/franz
import React, { Component } from 'react'; import { dialog, getCurrentWindow } from '@electron/remote'; import { defineMessages, intlShape } from 'react-intl'; import { ipcRenderer } from 'electron'; import PlanSelection from '../components/PlanSelection'; import ErrorBoundary from '../../../components/util/ErrorBounda...
src/containers/kitchen/orders.js
batusai513/client-side-restaurant-app
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { fetchOrders, updateOrderState, listenOrders, stopListenningOrders} from 'actions/orders'; import { KitchenOrders } from 'components/kitchen'; import { objectToArray } from 'helpers/format-helpers'; fu...
resource/js/components/Page/PagePath.js
kyonmm/crowi
import React from 'react'; export default class PagePath extends React.Component { // Original Crowi.linkPath /* Crowi.linkPath = function(revisionPath) { var $revisionPath = revisionPath || '#revision-path'; var $title = $($revisionPath); var pathData = $('#content-main').data('path'); if (!pa...
example/index.js
webcom-components/react-card-scroll
import React from 'react' import ReactDOM from 'react-dom' import CardScroll from '../lib' const texts = ["Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas feugiat metus vel dui tristique, vitae suscipit libero ullamcorper. Phasellus ultrices ultricies gravida. Sed ut euismod tortor, et consectetur le...
ajax/libs/redux-form/6.2.0/redux-form.js
Piicksarn/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-redux"), require("redux")); else if(typeof define === 'function' && define.amd) define(["react", "react-redux", "redux"], factory); e...
packages/cf-component-tabs/test/Tabs.js
mdno/mdno.github.io
import React from 'react'; import { felaSnapshot } from 'cf-style-provider'; import { Tabs, TabsPanel } from '../../cf-component-tabs/src/index'; test('should render', () => { const snapshot = felaSnapshot( <Tabs active="2" tabs={[{ id: '1', label: 'One' }, { id: '2', label: 'Two' }]} onChange...
client/app/containers/AbstractionList/components/header.js
bryanph/Geist
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import deepEqual from 'lodash/isEqual' import classNames from 'classnames' import { VelocityComponent } from 'velocity-react'; import { Icon } from 'semantic-ui-react' // TODO: different location - 2018-01-11 import { colorNode } from '../...
client/common/components/FieldWithLabel.js
Haaarp/geo
import React from 'react'; import {FormControl, FormGroup, HelpBlock} from 'react-bootstrap'; import Label from 'konux/common/components/Label'; class FieldWithLabel extends React.Component { constructor(props) { super(props); this.state = { status:null, value:this.props.va...
packages/material-ui-icons/src/ListAlt.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 5v14H5V5h14m1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9zM11 7h6v2h-6V7zm0 4h6v2h-6v-2zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z" /> , 'ListAlt');
client/app/scripts/charts/node-networks-overlay.js
kinvolk/scope
import React from 'react'; import { scaleBand } from 'd3-scale'; import { List as makeList } from 'immutable'; import { connect } from 'react-redux'; import { getNetworkColor } from '../utils/color-utils'; import { NODE_BASE_SIZE } from '../constants/styles'; // Min size is about a quarter of the width, feels about r...
app/containers/Game/index.js
EugeneHlushko/game-15
/* * * Game * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { createStructuredSelector } from 'reselect'; import styled from 'styled-components'; import debug from 'debug'; import { tryMove } from 'utils/helpers'; ...
packages/mineral-ui-icons/src/IconFormatAlignJustify.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFormatAlignJustify(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {.....
src/parser/mage/fire/CONFIG.js
fyruna/WoWAnalyzer
import React from 'react'; import { Sharrq } from 'CONTRIBUTORS'; import retryingPromise from 'common/retryingPromise'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maint...
ajax/libs/reactive-coffee/0.0.4/reactive-coffee.js
cbas/cdnjs
(function() { var DepArray, DepCell, DepMap, DepMgr, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, firstWhere, lagBind, maybe, mkMap, mktag, mkuid, nextUid, nthWhere, popKey, prop, propSet, props, recorder, rx, rxt, setProp, specialAttrs, tag, t...
examples/components/SelectPlayground.js
nikgraf/belle
/* eslint-disable no-console */ import React from 'react'; import LinkedStateMixin from 'react-addons-linked-state-mixin'; import { Button, TextInput, Select, Separator, Option, Placeholder } from 'belle'; import { map } from 'underscore'; const fruits = [ { value: 'pineapple', content: (<span>🍍</span>) }, { val...
public/js/lib/backbone.js
guilhermeasg/outspeak
// Backbone.js 1.1.2 // (c) 2010-2014 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(root, factory) { // Set up Backbone appropriately for ...
public/js/components/profile/activityfeed/CountBox.react.js
IsuruDilhan/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import FlatButton from 'material-ui/lib/flat-button'; import Paper from 'material-ui/lib/paper'; import Dialog from 'material-ui/lib/dialog'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; im...
src/modules/settings/containers/SettingEditorContainer/SettingEditorContainer.js
CtrHellenicStudies/Commentary
import React from 'react'; import { compose } from 'react-apollo'; import autoBind from 'react-autobind'; import SettingEditor from '../../components/SettingEditor'; import tenantBySubdomainQuery from '../../../tenants/graphql/queries/tenantBySubdomain'; import settingsCreateMutation from '../../graphql/mutations/crea...
packages/react-reconciler/src/__tests__/ReactPersistentUpdatesMinimalism-test.js
terminatorheart/react
/** * 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. * * @emails react-core * @jest-environment node */ 'use strict'; let React; let ReactNoopPersistent; describe('ReactPersistentUp...
ReactJS_Redux_CartApp/src/components/Footer.js
canhphong/canhphong.github.io
import React, { Component } from 'react'; // import Header from './components/Header'; class Footer extends Component { render() { return ( <footer className="page-footer center-on-small-only"> <div className="container-fluid"> <div className="row"> <div className=...
ui/src/main/js/components/__tests__/JobConfig-test.js
rdelval/aurora
import React from 'react'; import { shallow } from 'enzyme'; import ConfigDiff from '../ConfigDiff'; import JobConfig, { CronJobConfig } from '../JobConfig'; import Loading from '../Loading'; import TaskConfigSummary from '../TaskConfigSummary'; import { JobSummaryBuilder } from 'test-utils/JobBuilders'; import { Tas...
src/js/components/icons/base/PlatformSuse.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
lib/yuilib/3.17.2/event-custom-base/event-custom-base.js
eberhardt/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-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
node_modules/gulp-react/node_modules/react-tools/src/browser/ReactBrowserEventEmitter.js
niole/Table-Highlight-Subset
/** * 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 ...
docs/app/Examples/elements/Button/States/ButtonDisabledExample.js
jamiehill/stardust
import React, { Component } from 'react' import { Button } from 'stardust' export default class ButtonDisabledExample extends Component { render() { return ( <Button className='disabled'>Disabled</Button> ) } }
src/routes/App/routes/new/components/ShareList/CustomShareListItem/CustomShareListItem.js
thomaseizinger/frontend
import React from "react"; import ShareListItem from "../ShareListItem"; import CurrencyInput from "components/CurrencyInput"; import styles from "./CustomShareListItem.scss" const CustomShareListItem = (props) => { const handleOnInputChanged = (newState) => props.onAmountChange(name, newState); const {name, val...
packages/material-ui-icons/src/UnfoldLessSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M24 0v24H0V0h24z" opacity=".87" /><path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z" /...