path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ReactJS_Redux_CartApp/src/containers/CartContainer.js
canhphong/canhphong.github.io
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Cart from './../components/Cart'; import CartItem from './../components/CartItem'; import CartResult from './../components/CartResult'; import * as Message from './../constants/Message'; import { ...
react-flux-mui/js/material-ui/src/svg-icons/device/airplanemode-active.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
src/DropdownButton.js
roderickwang/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash/object/omit'; class Dropdown...
app/javascript/mastodon/components/permalink.js
hyuki0000/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
app/javascript/packs/about.js
h3zjp/mastodon
import loadPolyfills from '../mastodon/load_polyfills'; import { start } from '../mastodon/common'; start(); function loaded() { const TimelineContainer = require('../mastodon/containers/timeline_container').default; const React = require('react'); const ReactDOM = require('react-dom'); c...
app/assets/javascripts/components/pages/TasksPageDetailView.js
loggingroads/onboarding
'use strict'; import React from 'react'; import DataTableView from './../DataTableView' import Map from './../../containers/MapContainer'; class TasksDetailView extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { /* data will specify what kind of s...
src/client.js
s-mironov31/react-web
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import 'babel-polyfill'; import React from 'react'; import...
src/components/Header/Header.js
pampang/mobile-web
import React from 'react' import { IndexLink, Link } from 'react-router' import classes from './Header.scss' export const Header = () => ( <div> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName={classes.activeRoute}> Home </IndexLink> {' · '} <Link to='/counter' activeClas...
src/layouts/PageLayout/PageLayout.js
rchgrca/twine
import React from 'react' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='email-container tc'> <h3 className='mb0 pa3 bg-blue white'>React/Redux Email</h3> <div className='page-layout__viewport'> {children} </div> </div> ...
ajax/libs/flocks.js/0.16.13/flocks.min.js
BitsyCode/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 u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type...
Html.js
spanias/isomorphic-react-base-app
/** * Copyright 2015, Digital Optimization Group, LLC. * Copyrights licensed under the APACHE 2 License. See the accompanying LICENSE file for terms. */ import React from 'react'; class HtmlComponent extends React.Component { render() { return ( <html> <head> ...
ajax/libs/jquery/1.6.2/jquery.min.js
koggdal/cdnjs
/*! * jQuery JavaScript Library v1.6.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. ...
src/components/charts/geospatial.js
noahehall/udacity-corporate-dashboard
import { connect } from 'react-redux'; import { getMargins, getTotalEmployees, } from 'store/selectors'; import Chart from './charts'; import React from 'react'; export class Examples extends React.Component { static get defaultProps () { return { id: 'examples-of-charts', }; } static propType...
src/routes/index.js
kennethaa/em
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from '../containers/app'; import Players from '../containers/Players'; import Player from '../containers/Player'; export default ( <Route path="/" component={App}> <IndexRoute component={Players} /> <Route path...
hunt/src/components/DateRangePicker.js
StamusNetworks/scirius
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import Calendar from 'rc-calendar'; import 'rc-time-picker/assets/index.css'; import TimePickerPanel from 'rc-time-picker/lib/Panel'; import 'rc-calendar/assets/index.css'; const format = 'YYYY-MM-DD HH:mm:ss'; function getForm...
stories/FrameCollapsible.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links' import FrameCollapsible from '../src/js/components/ui/FrameCollapsible/FrameCollapsible.js'; import Chip from '../src/js/components/ui/Chip/Chip.js'...
packages/material-ui-icons/src/ShopOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zm10 15H4V8h16v11z" /><path d="M9 18...
src/Scrollable/Scrollable.js
collegepulse/material-react-components
import makeClass from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Styles from './Scrollable.css'; class Scrollable extends React.Component { render() { const firstChild = React.Children.only(this.props.children); return React.cloneElement(firstChild, { className:...
app/javascript/mastodon/features/status/components/detailed_status.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
src/shared/views/plans/planItinerary/PlanItems/PlanItems.js
in-depth/indepth-demo
import React from 'react' import { Link } from 'react-router' import styles from './PlanItems.css' const PlanItems = (props) => { const backgroundColor = (index) => { if (index % 2 === 0) { return { backgroundColor: '#F6F6F5' } } return null } return ( <div className={styles.main}> ...
src/entypo/DocumentLandscape.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--DocumentLandscape'; let EntypoDocumentLandscape = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M19,3H1C0.448,3,0,3.447,0,4v12c0,0.553,0.448,1,1,1h18c0.552,0,1-0.447,1-1V4C20,...
test/Select-test.js
mcanthony/react-select
'use strict'; /* global describe, it, beforeEach */ var jsdomHelper = require('../testHelpers/jsdomHelper'); var sinon = require('sinon'); var unexpected = require('unexpected'); var unexpectedDom = require('unexpected-dom'); var unexpectedSinon = require('unexpected-sinon'); var expect = unexpected .clone() .insta...
common/components/Icon.js
ebertmi/webbox
import React from 'react'; import classNames from 'classnames'; export default function Icon(props) { let {className, fixedWidth, inverse, pulse, spin, size, rotate, flip, icon, name,...rest} = props; if (name == null && icon != null) { name = icon; } let classes = classNames('fa', 'fa-' + name, { 'fa...
src/react/expander/expander.js
pivotal-cf/pivotal-ui
import React from 'react'; import PropTypes from 'prop-types'; import {Collapsible} from '../collapsible'; export class ExpanderTrigger extends React.PureComponent { constructor(props, context) { super(props, context); this.state = {}; } setTarget = target => this.setState({target}); toggleExpander =...
src/components/PageBreak/spec.js
hasibsahibzada/quran.com-frontend
import React from 'react'; import { shallow } from 'enzyme'; import PageBreak from './index'; let wrapper; const pageNum = 15; describe('<PageBreak />', () => { beforeEach(() => { wrapper = shallow(<PageBreak pageNum={pageNum} />); }); it('should render', () => { expect(wrapper).to.be.ok; // eslint-di...
src/main.js
viattik/kottans-facebook-api
import React from 'react' import ReactDOM from 'react-dom' import AppContainer from './App'; import routes from 'routes'; // ======================================================== // Render Setup // ======================================================== const MOUNT_NODE = document.getElementById('root'); let rend...
src/components/video-detail.js
ThatCrazyIrishGuy/youtube-react
import React from 'react'; import Preloader from './preloader'; const VideoDetail = ({video}) => { if(!video) { return ( <div className="col s12 m8 video-detail"> <Preloader /> </div> ); } const videoTitle = video.snippet.title; const videoDescription = video.snippet.description; cons...
src/components/Link.js
lukin-deema/FileSystem
import React from 'react'; import PropTypes from 'prop-types'; import Off from 'material-ui/svg-icons/toggle/star-border'; import On from 'material-ui/svg-icons/toggle/star'; import All from 'material-ui/svg-icons/toggle/star-half'; import * as constants from '../constants'; const Link = ({ active, onClick, filter }) ...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
x303597316/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
src/containers/viewer/MailsViewer/ToggleReadButton.js
mydearxym/mastani
import React from 'react' import { ICON_CMD } from '@/config' import { Wrapper, ToggleIcon, ToggleTitle } from './styles/toggle_read_button' import { toggleReadState } from './logic' const ToggleReadButton = ({ readState }) => ( <Wrapper onClick={toggleReadState}> {readState ? ( <ToggleIcon src={`${ICON_C...
examples/BadgeCollections.js
jareth/react-materialize
import React from 'react'; import Badge from '../src/Badge'; import Collection from '../src/Collection'; import CollectionItem from '../src/CollectionItem'; export default <Collection> <CollectionItem href="#!"> Alan <Badge>1</Badge> </CollectionItem> <CollectionItem href="#!"> Alan <Badge newIcon>4</Bad...
src/components/AddRecipeForm.js
kishigo/recipes-react-redux
/** * Created by Kelvin Ishigo on 10/1/17. * * Copyright (c) 2017 Kelvin Ishigo * Licensed under the MIT License. See LICENSE file in the project root for full license information. */ import React from 'react' import AddIngredientItem from './AddIngredientItem' import IngredientsList from './IngredientsList' impor...
client/src/ui/TrackList.js
irskep/summertunes
/* global window */ import "../css/TrackList.css"; import React, { Component } from 'react'; import Table from "../uilib/Table"; import KComponent from "../util/KComponent" import secondsToString from "../util/secondsToString"; import { play } from "../util/svgShapes"; import {...
tests/routes/Home/components/HomeView.spec.js
sohamnakhare/Market-Movement-Visualization
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
src/index.js
icancy/test-gallery-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'));
app/javascript/mastodon/features/lists/index.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
src/components/source/collection/CollectionSplitStoryCountContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/ListI...
src/Parser/MarksmanshipHunter/CONFIG.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPECS from 'common/SPECS'; import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { spec: SPECS.MARKSMANSHIP_HUNTER, maintainer: '@JLassie82', completeness:...
ajax/libs/x-editable/1.4.4/jquery-editable/js/jquery-editable-poshytip.js
stevermeister/cdnjs
/*! X-editable - v1.4.4 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
src/addons/dragAndDrop/WeekWrapper.js
intljusticemission/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import * as dates from '../../utils/dates' import { getSlotAtX, pointInBox } from '../../utils/selection' import { findDOMNode } from 'react-dom' import { eventSegments } from '../../utils/eventLevels' import Selection, { getBoundsForNode } from '../../Selec...
webapp/app/components/ForgottenPassword/Form/Email/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component email form in forgotten password page // import React from 'react'; import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap'; export default class ForgottenPasswordEmail extends React.Component { constructor(props) { super(props); this.onChangeEmail = this.onChangeEmail.bind(t...
src/components/VerticalBar.js
mjangir/react-scrollify
import React from 'react'; import ReactDOM from 'react-dom'; import _ from '../helpers'; class VerticalBar extends React.Component { constructor(props) { super(props); this.handleOnFocus = this.handleOnFocus.bind(this); this.handleOnBlur = this.handleOnBlur.bind...
examples/with-next-routes/pages/blog.js
dizlexik/next.js
import React from 'react' const posts = [ { slug: 'hello-world', title: 'Hello world' }, { slug: 'another-blog-post', title: 'Another blog post' } ] export default class extends React.Component { static async getInitialProps ({ query, res }) { const post = posts.find(post => post.slug === query.slug) i...
src/helpers/typeOf.js
sdjidjev/prop-types
import React from 'react'; export default function typeOf(child) { if (child === null) { return 'null'; } if (Array.isArray(child)) { return 'array'; } if (typeof child !== 'object') { return typeof child; } if (React.isValidElement(child)) { return child.type; } return child; }
public/js/components/Starter.react.js
TRomesh/Coupley
import React from 'react'; import AppBar from 'material-ui/lib/app-bar'; import RaisedButton from 'material-ui/lib/raised-button'; import ThemeManager from 'material-ui/lib/styles/theme-manager'; import MyRawTheme from './customtheme'; const MySampleAppComponent = React.createClass({ //the key passed through conte...
src/components/ExperienceDetail/ReportForm/ReasonCategory.js
WendellLiu/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import RadioDefault from 'common/form/RadioDefault'; import styles from './ReasonCategory.module.css'; const ReasonCategory = ({ reasonCategory, reasonCategoryOptions, handleReasonCategory, }) => ( <div> { reasonCategoryOptions.map( ...
src/d3Charts/scatter.js
livingston/react-chart-spikes
import React, { Component } from 'react'; import { maxBy, minBy } from 'lodash'; import { scaleLinear } from 'd3-scale'; import { zoom } from 'd3-zoom'; import { select, event as d3Event } from 'd3-selection'; import FlexibleWrapper from '../ui/flexibleWrapper.js'; // Test data require('chance'); const scatterDatum...
demo/Pendulum/app.js
recharts/reanimate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDom from 'react-dom'; import raf, { caf } from 'raf'; import { translateStyle } from 'react-smooth'; const g = 9.8; function Circle(props) { const { r, currTheta, ropeLength, ...others } = props; const cx = (ropeLength - r) ...
ajax/libs/rxjs/2.3.13/rx.js
jmusicc/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
src/GridList/GridList.spec.js
verdan/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import GridList from './GridList'; import getMuiTheme from '../styles/getMuiTheme'; describe('<GridList />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {co...
ajax/libs/material-ui/5.0.0-alpha.35/legacy/internal/svg-icons/KeyboardArrowLeft.min.js
cdnjs/cdnjs
import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";import{jsx as _jsx}from"react/jsx-runtime";export default createSvgIcon(_jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft");
ajax/libs/abcjs/1.1/abcjs_plugin-min.js
BenjaminVanRyseghem/cdnjs
/*! 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/components/common/svg-icons/av/mic.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMic = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-...
app/containers/LanguageProvider/index.js
michiganhackers/website
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
admin/client/App/shared/Popout/PopoutListItem.js
ratecity/keystone
/** * Render a popout list item */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, isSelected: React.PropTy...
src/svg-icons/communication/textsms.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationTextsms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); Communica...
node_modules/debug/src/browser.js
772413635/mtDNS
/** * 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...
src/components/Todo/TaskList.js
elemus/react-redux-todo-example
import React from 'react'; import PropTypes from 'prop-types'; import Task from './Task'; const TaskList = ({ tasks, onTaskToggle, onTaskDelete }) => { const taskNodes = tasks.map(task => ( <Task key={task.id} id={task.id} description={task.description} isDone={task.isDone} onToggle...
src/svg-icons/maps/directions-walk.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsWalk = (props) => ( <SvgIcon {...props}> <path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-...
docs/src/pages/demos/pickers/DatePickers.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; const styles = theme => ({ container: { display: 'flex', flexWrap: 'wrap', }, textField: { marginLeft: theme.spacing.unit, mar...
js/build/equaliserldn.js
pim/equaliser
/*! * 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 ) { // ...
public/javascripts/jquery.js
leenookx/basic_app
/*! * 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. ...
react/Radio/Radio.sketch.js
seek-oss/seek-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import Radio from './Radio'; import styles from './Radio.demo.less'; const Container = ({ children }) => ( <div className={styles.root}>{children}</div> ); Container.propTypes = { children: PropTypes.node.isRequired }; const noop = () => {}; export c...
src/Scrollbars/defaultRenderElements.js
malte-wessel/react-custom-scrollbars
import React from 'react'; /* eslint-disable react/prop-types */ export function renderViewDefault(props) { return <div {...props}/>; } export function renderTrackHorizontalDefault({ style, ...props }) { const finalStyle = { ...style, right: 2, bottom: 2, left: 2, borde...
ajax/libs/react-native-web/0.12.0/cjs/exports/TextInput/index.min.js
cdnjs/cdnjs
"use strict";exports.__esModule=!0,exports.default=void 0;var _applyLayout=_interopRequireDefault(require("../../modules/applyLayout")),_applyNativeMethods=_interopRequireDefault(require("../../modules/applyNativeMethods")),_ExecutionEnvironment=require("fbjs/lib/ExecutionEnvironment"),_createElement=_interopRequireDef...
src/svg-icons/action/account-box.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
h3zjp/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...
src/App/ItemsCategory/ItemsCategory.js
haroldSanchezb/ml-react
import React, { Component } from 'react'; import styles from './ItemsCategory.scss'; class ItemsCategory extends Component { render() { const categories = this.props.search ? this.props.search.categories : this.props.product.categories; return ( <ul className={styles.category__list}> {categories....
app/components/ProgressBar/index.js
shaggyshelar/CLA
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
ajax/libs/yui/3.10.0/datatable-core/datatable-core-debug.js
Stavrakakis/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
frontend/src/Artist/Details/AlbumRow.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import AlbumSearchCellConnector from 'Album/AlbumSearchCellConnector'; import AlbumTitleLink from 'Album/AlbumTitleLink'; import Label from 'Components/Label'; import MonitorToggleButton from 'Components/MonitorToggleButton'; import StarRatin...
lib/cli/test/fixtures/already_has_storybook/src/stories/index.js
rhalff/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import { Button, Welcome } from '@storybook/react/demo'; storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button...
docs/app/Examples/modules/Accordion/Types/AccordionExamplePanelsProp.js
clemensw/stardust
import React from 'react' import { Accordion } from 'semantic-ui-react' import faker from 'faker' import _ from 'lodash' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExamplePanelsProp = () => ( <Accordion panels={panels} /> ) export def...
nlyyAPP/component/图片管理模块/页码上传/MLPageNumberUpDate.js
a497500306/nlyy_APP
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, TouchableOpacity, Alert, Platform, DeviceEventEmitter } from 'react-native'; import Qiniu,{Auth,...
containers/eventsScene.js
marxsk/zobro
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import EventScene from '../components/eventScene'; import {addNotification, removeNotification} from '../actions'; import {Alert} from 'react-native'; const mapStateToProps = (state) => { return { configura...
ajax/libs/x-editable/1.4.4/bootstrap-editable/js/bootstrap-editable.js
bspaulding/cdnjs
/*! X-editable - v1.4.4 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
ajax/libs/vis/0.7.1/vis.js
AlicanC/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 0.7.1 * @date 2014-03-27 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
src/docs/components/form/FormExamplesDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Form from 'grommet/components/Form'; import FormFields from 'grommet/components/FormFields'; import FormField from 'grommet/components/FormField'; import Header from 'grommet/components/Header'; import...
client/App/Menu/index.js
JohannesAnd/SKWebsite
import React from 'react'; import { sequences, state } from 'cerebral'; import { connect } from '@cerebral/react'; import { faExclamationCircle } from '@fortawesome/free-solid-svg-icons'; import { Wrapper, Spacer, Nav, Icon } from './elements'; import UserLanguage from 'common/UserLanguage'; import NavItem from 'comp...
ajax/libs/redux-form/1.6.5/redux-form.js
iwdmb/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/Tabs/index.js
kareem3d/react-swipeable-tabs
import React from 'react'; import Hammer from 'react-hammerjs'; import Measure from 'react-measure'; import { Motion, spring } from 'react-motion'; import differenceBy from 'lodash.differenceby'; import ListBorder from './ListBorder'; import TabList from './TabList'; import autoprefixer from './prefixer'; import Animat...
src/Routes.js
dddhany/notes-app-client
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import NotFound from './containers/NotFound'; import Home from './containers/Home'; import Login from './containers/Login'; import Signup from './containers/Signup'; import NewNote from './containers/NewNote'; import Notes from './containers/...
ajax/libs/inferno-mobx/5.4.0/inferno-mobx.js
sashberd/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mobx'), require('inferno'), require('hoist-non-inferno-statics')) : typeof define === 'function' && define.amd ? define(['exports', 'mobx', 'inferno', 'hoist-non-inferno-statics'], factory) : (fa...
tests/routes/Home/components/HomeView.spec.js
johanzhou8/ConvertCSV
import React from 'react'; import { HomeView } from 'routes/Home/components/HomeView'; import { render } from 'enzyme'; describe('(View) Home', () => { let _component; beforeEach(() => { _component = render(<HomeView />); }); it('Renders a welcome message', () => { const welcome = _co...
enrolment-ui/src/modules/Projects/RegisterProject.js
overture-stack/enrolment
import React from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import ReqForm from './components/ReqForm'; import RequestSuccessModal from '../Common/RequestSuccessModal'; import { toggleFormModal, formReset } from './redux'; import './registerProject.scss'; const c...
src/client/components/FilterView/DeleteDeviceLink.js
ZeusTheTrueGod/background-geolocation-console
// @flow import React from 'react'; import Link from 'react-toolbox/lib/link'; import { connect } from 'react-redux'; import { type GlobalState } from '~/reducer/state'; import { deleteActiveDevice } from '~/reducer/dashboard'; type StateProps = {| isVisible: boolean, |}; type DispatchProps = {| onClick: () => any...
src/layouts/CategoryCardLayout/CategoryCardLayout.spec.js
KNMI/GeoWeb-FrontEnd
import React from 'react'; import CategoryCardLayout from './CategoryCardLayout'; import { mount } from 'enzyme'; import { Col } from 'reactstrap'; describe('(Layout) CategoryCardLayout', () => { it('renders', () => { const _component = mount(<CategoryCardLayout> <span data-role='name'>test</span> </Ca...
ajax/libs/raven.js/3.26.2/console,ember,require/raven.js
jonobr1/cdnjs
/*! Raven.js 3.26.2 (b10a875) | 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(f){if(typeof expor...
src/index.js
sjalgeo/mancreact-client
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
ajax/libs/rxjs/2.3.5/rx.all.compat.js
joseluisq/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
src/app/components/Footer.js
skratchdot/js-playground
import React, { Component } from 'react'; import { Row, Col } from 'react-bootstrap'; import { connect } from 'react-redux'; class Footer extends Component { render() { return ( <footer> <Row> <Col md={12}><div className="main-seperator"></div></Col> </Row> <Row className="footer"> <Col md...
ajax/libs/react-ace/2.6.0/react-ace.min.js
froala/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ReactAce=t():e.ReactAce=t()}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return ...
js/components/garment_suggestion.js
batter/react-weather-widget
import React from 'react'; import suggestGarment from './../utils/suggest_garment'; const { Component, } = React; class GarmentSuggestion extends Component { render () { if (this.props.temperature !== undefined) { return ( <div className='garment-suggestion'> {suggestGarment(this.prop...
files/rxjs/2.3.4/rx.lite.extras.js
photonstorm/jsdelivr
// 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...
example/js/jquery-1.11.1.min.js
ramuta/btc2fiatlib
/*! 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...
src/parser/druid/restoration/CONFIG.js
fyruna/WoWAnalyzer
import React from 'react'; import { blazyb } 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...
src/containers/waiter/orders.js
batusai513/client-side-restaurant-app
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { fetchOrders, listenOrders, stopListenningOrders, editOrder, updateOrderState, newOrder} from 'actions/orders'; import { WaiterOrders } from 'components/waiter'; import { objectToArray } from 'helpers/f...
app/assets/scripts/components/header.js
HoustonEndowment/after-school-programs
import React from 'react' export default function () { return ( <div className='header-container'> <div className='header'> <div className='header-copy'> {/*<h2 className='heading-alt'>Houston Endowment</h2>*/} <h1>Mapping Need for Out-of-School Time Programs in Harris County</...
ajax/libs/forerunnerdb/1.3.562/fdb-core+persist.js
pombredanne/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/universal/server.js
usufruct/redux
import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import App from './containers/App'; import { fetchCounter } from './api/counter'; const app = Express(); const port = 3000...