path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/index.js
AnthyG/da_cards-2
import React from 'react'; import ReactDOM from 'react-dom'; import './index.min.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
packages/mineral-ui-icons/src/IconCropOriginal.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 IconCropOriginal(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
src/components/Common/Error.js
oraclesorg/ico-wizard
import React from 'react' import { Field } from 'react-final-form' const defaultErrorStyles = { color: 'red', fontWeight: 'bold', fontSize: '12px', width: '100%', height: '20px', } export const Error = ({ name, errorStyle }) => ( <Field name={name} subscription={{ touched: true, pristine: true, er...
packages/react-scripts/fixtures/kitchensink/src/features/env/PublicUrl.js
matart15/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-public-url">{process.env.PUBLIC_URL}.</span> );
dist/1.11.0/jquery-ajax-wrap.js
jgallen23/jquery-builder
/*! * jQuery JavaScript Library v1.11.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseJSON,-ajax/parseXML,-ajax/script,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-wrap * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other co...
app/javascript/mastodon/features/home_timeline/components/column_settings.js
ambition-vietnam/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; import SettingText from '../../../components/se...
ajax/libs/material-ui/5.0.0-alpha.14/legacy/BottomNavigationAction/BottomNavigationAction.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import withStyles from"../styles/withStyles";import ButtonBase from"../ButtonBase";import...
docs/src/layouts/wrapper.js
balloob/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' const PRISM_PATH = BASE_URL + 'assets/js/prism.js' const CSS_PATH = BASE_URL + 'assets/css/output.css' const JS_PATH = BASE_URL + 'app.js' const GA_SCRIPT = `(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[])...
examples/shopping-cart/src/index.js
gaearon/redux
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { createLogger } from 'redux-logger' import thunk from 'redux-thunk' import reducer from './reducers' import { getAllProducts } from './actions' import App from...
packages/mineral-ui-icons/src/IconSignalWifi3BarLock.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 IconSignalWifi3BarLock(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {.....
JavaScript/React/Pro React/First App/src/components/ShoppingList/index.js
batazor/MyExampleAndExperiments
import React, { Component } from 'react'; import { render } from 'react-dom'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; class AnimatedShoppingList extends Component { constructor() { super(...arguments); // Create an "items" state pre-loading with some shopping items this....
packages/material-ui-icons/src/VerticalAlignBottomRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M14.79 13H13V4c0-.55-.45-1-1-1s-1 .45-1 1v9H9.21c-.45 0-.67.54-.35.85l2.79 2.79c.2.2.51.2.71 0l2.79-2.79c.31-.31.09-.85-.36-.85zM4 20c0 .55.45 1 1 1h14c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1 .45-1 1z" ...
src/app/containers/home/Home.js
smitch88/multi-stream-twitch
import React from 'react'; import { connect } from 'react-redux'; import AddIcon from 'react-icons/lib/md/add'; import ClearAllIcon from 'react-icons/lib/md/clear-all'; import MuteAllIcon from 'react-icons/lib/md/volume-mute'; import GridViewIcon from 'react-icons/lib/md/grid-on'; import ShuffleViewIcon from 'react-ico...
src/App.js
amoghesturi/react-news-app
import React from 'react'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunkMiddleware from 'redux-thunk'; import { createLogger } from 'redux-logger'; import Home from './containers/home' import rootReducer from './reducers'; const loggerMiddleware = createLog...
app/components/Home.js
hirofumii/fluxible-koa-example
import React from 'react'; export default class Home extends React.Component { render() { return ( <div> <h1>Home</h1> <p>Welcome to the site!</p> </div> ); } }
node_modules/react-bootstrap/es/CarouselCaption.js
ivanhristov92/bookingCalendar
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 ...
ajax/libs/react-redux/5.0.0-rc.2/redux.js
maruilian11/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("redux")); else if(typeof define === 'function' && define.amd) define(["react", "redux"], factory); else if(typeof exports === 'object') e...
frontend/src/Movie/Index/Overview/Options/MovieIndexOverviewOptionsModalContent.js
geogolem/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import Button ...
app/javascript/mastodon/components/modal_root.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ModalRoot extends React.PureComponent { static propTypes = { children: PropTypes.node, onClose: PropTypes.func.isRequired, }; state = { revealed: !!this.props.children, }; activeElement = this.state.revealed ? ...
ajax/libs/video.js/5.13.2/video.js
holtkamp/cdnjs
/** * @license * Video.js 5.13.2 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License Vers...
assets/javascripts/kitten/components/form/credit-card-form/components/expiry.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import NumberFormat from 'react-number-format' import { useFormContext } from '../' const limit = (val, max) => { if (val.length === 1 && val[0] > max[0]) { val = '0' + val } if (val.length === 2) { if (Number(val) === 0) { val = '01' ...
src/components/run.js
ArcanisCz/evolution-game
import React from 'react'; import ReactDOM from 'react-dom'; import App from './Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
assets/javascripts/kitten/components/graphics/icons/dot-icon/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' export const DotIcon = ({ color, title, ...props }) => { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6 6" width="6" height="6" {...props} > {title && <title>{title}</title>} <circle cx="3"...
app/scripts/MoveableTrack.js
hms-dbmi/higlass
import PropTypes from 'prop-types'; import React from 'react'; import DraggableDiv from './DraggableDiv'; import TrackArea from './TrackArea'; // See commented out block in "render()". // // const checkMousePosVsEl = (x, y, el) => { // const bBox = el.getBoundingClientRect(); // return isWithin( // x, y, bBox...
dev/web/www/js/components/story/new-story/new-story-container.js
zajacmarekcom/letswrite
import React from 'react' import { SubmissionError } from 'redux-form' import { browserHistory } from 'react-router' import store from '../../../store' import * as commonActions from '../../../actions/common/common-actions' import * as storyActions from '../../../actions/story/story-actions' import NewStory from './ne...
examples/js/column/demo.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import ColumnAlignTable from './column-align-table'; import ColumnWidthTable from './column-width-table'; import ColumnHideTable from './column-hide-table'; import ColumnWordWrapTable from './column-style-table'; import ColumnTitleTable from './column-title-table'; imp...
src/components/Weui/dialog/confirm.js
ynu/ecard-wxe
/** * Created by jf on 15/10/27. */ import React from 'react'; import classNames from 'classnames'; import Mask from '../mask/index'; class Confirm extends React.Component { static propTypes = { buttons: React.PropTypes.array, show: React.PropTypes.bool, title: React.PropTypes.string ...
src/app/component/nav-bar/nav-bar.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import NavBar from '.' import Logo from '../logo' import CartNavLink from '../cart-nav-link' import NavLink from '../nav-link' import config from '../../../../config' import uploadIcon from '../../../asset/icon/upload.svg' import helpIcon from '../...
src/svg-icons/editor/vertical-align-bottom.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignBottom = (props) => ( <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom); EditorVertical...
packages/ringcentral-widgets/components/ActionMenuList/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Modal from '../Modal'; import EntityButton from '../EntityButton'; import EntityModal from '../EntityModal'; import Button from '../Button'; import LogButton from '../LogButton'; import DeleteMessag...
addons/storyshots/storyshots-core/stories/exported_metadata/preview.js
kadirahq/react-storybook
import React from 'react'; export const decorators = [ (StoryFn, { parameters, globals }) => ( <div> {parameters.prefix} <StoryFn /> {globals.suffix} </div> ), ]; export const parameters = { prefix: 'prefix' }; export const globals = { suffix: 'suffix' };
src/svg-icons/editor/insert-comment.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertComment = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); EditorInsertCom...
src/components/Video.js
WhiteBlue/bilibili-react
import React from 'react'; import AMUIReact from 'amazeui-react'; import Lib from '../Lib' //import Player from '../Player' var Player = require('../VideoPlayer'); //分P选择 var Pagination = React.createClass({ render: function () { var parts = this.props.parts; var nowPlay = this.props.now; var handler =...
app/components/GameCard.js
mzanini/DeeMemory
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import Card from '@material-ui/core/Card' import CardActionArea from '@material-ui/core/CardActionArea' import Typography from '@material-ui/core/Typography' import DeleteButton from './DeleteButton' impor...
src/svg-icons/action/supervisor-account.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSupervisorAccount = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ...
src/main/common/components/PostForm.js
FrederikS/react-isomorphic-example
import React from 'react'; import { action } from 'mobx'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import styles from './styles.css'; class PostForm extends React.Component { constructor(props) { super(props); this.handlePost = (e) => this._handlePost(e); } @action...
imports/plugins/core/ui/client/components/menu/menuItem.js
anthonybrown/reaction
import React, { Component } from "react"; import PropTypes from "prop-types"; import { Components, registerComponent } from "@reactioncommerce/reaction-components"; class MenuItem extends Component { handleClick = (event) => { event.preventDefault(); if (this.props.onClick && this.props.disabled === false) {...
www/static/src/admin/utils/FormHelper.js
wmk223/firekylin
import React from 'react'; import autobind from 'autobind-decorator'; @autobind class formHelper { constructor(context, stateProp = '') { this.context = context; this.stateProps = stateProp.split('.'); } get state() { return this.stateProps.filter(Boolean).reduce( (object, key) => object[k...
src/pages/StaticPage/About.js
wkozyra95/react-boilerplate
/* @flow */ import React from 'react'; import AppLayout from 'pages/AppLayout'; class About extends React.Component { render() { return ( <AppLayout> About </AppLayout> ); } } export default About;
components/Link/Link.js
marchisbogdan/licenta-front
/** * 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 React from 'react'; ...
ajax/libs/react/0.4.2/react.js
mojio/cdnjs
/** * React v0.4.2 */ (function(e){if("function"==typeof bootstrap)bootstrap("react",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeReact=e}else"undefined"!=typeof window?window.React=e():globa...
pages/Browser/index.js
Tkoefod/javasciprt-today
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from 'react-helmet' import { config } from 'config' export default class Blog extends React.Component { render () { return ( <div> <Helmet title={config.siteTitle} ...
Libraries/Components/TextInput/TextInput.js
exponent/react-native
/** * 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. * * @flow * @format */ 'use strict'; const DeprecatedTextInputPropTypes = require('../../DeprecatedPropTypes/DeprecatedTextInputP...
server/files/javascript/library/jquery.legacy.min.js
goodtwin/Donut-Hole
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
ajax/libs/react-router/0.10.0/react-router.js
raszi/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.ReactRouter=e()}}(function(){var define,module,export...
examples/pinterest/app.js
schnerd/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, IndexRoute, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/pinterest' }) const PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekit...
src/App.js
zhaowenyi94/hey-spark
import React, { Component } from 'react'; import './App.css'; import IdeaPanel from "./IdeaPanel"; import LeaveIdea from "./LeaveIdea"; import TitleBar from "./title-bar/TitleBar"; class App extends Component { render() { return ( <div className="App"> <div><TitleBar/></div> <div><Leav...
source/pages/Media.js
TroyAlford/axis-wiki
import React from 'react' const Media = ({ match }) => ( <div className="media page"> <div className="media-container"> <img alt={match.params.filename} src={`/media/full/${match.params.filename}`} /> </div> </div> ) Media.displayName = 'Media' export default Media
ajax/libs/rxjs/2.2.3/rx.compat.js
johnvoloski/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. (function (window, undefined) { var freeExports = typeof exports == 'object' && exports, freeModule = typeof module == 'object' && module && module.exports == freeExports &&...
src/components/SongInfo/SongInfo.js
bhj/karaoke-forever
import React from 'react' import { useDispatch, useSelector } from 'react-redux' import Modal from 'components/Modal' import { formatDuration } from 'lib/dateTime' import { closeSongInfo, setPreferred } from 'store/modules/songInfo' import styles from './SongInfo.css' const SongInfo = (props) => { const { isLoading,...
packages/material-ui/src/Card/Card.js
cherniavskii/material-ui
// @inheritedComponent Paper import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Paper from '../Paper'; import withStyles from '../styles/withStyles'; export const styles = { root: { overflow: 'hidden', }, }; function Card(props) { const { classes, cla...
ext/lib/site/topic-layout/topic-article-propuesta/comments/list/comment/footer/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import t from 't-component' export default function CommentFooter (props) { return ( <footer className='actions'> <div className='votes'> <span className='score'> <span>{props.score}</span> {' '} </span> {!props.isOwner && ( <b...
app/cats.js
asaeed/ReactNativeStarter
import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, TouchableOpacity, Image } from 'react-native'; class Cats extends Component { render() { return ( <View> <ScrollView ref={(scrollView) => { _scrollView = scrollView; }} a...
ajax/libs/react-highcharts/6.0.1/highmaps.src.js
kiwi89/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["Highcharts"] = fact...
packages/arwes/src/Paragraph/sandbox.js
romelperez/prhone-ui
import React from 'react'; import Arwes from '../Arwes'; import Paragraph from './index'; export default () => ( <Arwes> <div style={{ padding: 20 }}> <Paragraph> Futuristic Sci-Fi and Cyberpunk Graphical User Interface Framework for Web Apps </Paragraph> <Paragraph> Fut...
src/Card/CardHeader.spec.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import CardHeader from './CardHeader'; describe('<CardHeader />', () => { let shallow; let classes; before(() => { shallow = createShallow({ untilSelector: 'div' }); classes = g...
ajax/libs/react-swipe/2.0.0/react-swipe.js
BenjaminVanRyseghem/cdnjs
(function (root, factory) { if (typeof module !== 'undefined' && module.exports) { module.exports = factory(require('react/addons'), require('swipe-js-iso')); } else { root.ReactSwipe = factory(root.React, root.Swipe); } })(this, function (React, Swipe) { var styles = { container: { overflow: ...
frontend/src/components/content/YouTubeVideo.js
technoboom/it-academy
import React from 'react'; import { Embed } from 'semantic-ui-react'; export default class YouTubeVideo extends React.Component { render() { return ( <div className="video video_source-youtube"> <Embed id='O6Xo21L0ybE' placeholder='/assets...
app/javascript/mastodon/features/compose/containers/warning_container.js
clworld/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\w*[a-zA-Z·]\w*)/i; const mapStateT...
ajax/libs/6to5/2.7.3/browser.js
CosmicWebServices/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...
components/Navigation.js
react-community/native-directory
import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, css } from 'glamor/aphrodite'; import { createNavigationItemsFromProps, createSupportItemsFromProps, } from '../common/static-list-functions'; import SearchInput from '../components/SearchInput'; import NavigationItem from '../co...
app/javascript/mastodon/features/public_timeline/index.js
codl/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { refreshPublicTimeline, exp...
docs/app/Examples/views/Item/Variations/Relaxed.js
jcarbo/stardust
import React from 'react' import { Item } from 'stardust' const { Content, Group, Header, Image } = Item const Relaxed = () => ( <Group relaxed> <Item> <Image size='tiny' src='http://semantic-ui.com/images/wireframe/image.png' /> <Content verticalAlign='middle'> <Header as='a'>12 Years a Sl...
admin/src/components/InvalidFieldType.js
belafontestudio/keystone
var React = require('react'); module.exports = React.createClass({ displayName: 'InvalidFieldType', render () { return <div className="alert alert-danger">Invalid field type <strong>{this.props.type}</strong> at path <strong>{this.props.path}</strong></div>; } });
src/App.js
future-ui/basics
import React, { Component } from 'react'; export default class Counter extends Component { state = { count: 0 } increment = (e) => { const { count } = this.state; this.setState({ count: count + 1 }); } decrement = (e) => { const { count } = this.state; this.setState({ c...
js/jquery.js
riceric/riceric.github.io
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
src/components/faction-table/index.js
mpigsley/sectors-without-number
import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { push } from 'connected-react-router'; import { createStructuredSelector } from 'reselect'; import { injectIntl } from 'react-intl'; import { isLoggedInSelector, isInitializedSelector, currentSectorSelector, currentEn...
packages/material-ui-icons/src/SettingsOverscanTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M3 19.01h18V4.99H3v14.02zM18 10l2.5 2.01L18 14v-4zm-5.99-4.5L14 8h-4l2.01-2.5zM14 16l-1.99 2.5L10 16h4zm-8-6v4l-2.5-1.99L6 10z" opacity=".3" /><...
src/components/Retry.js
julfeldt/memory-react
import React, { Component } from 'react'; import './Retry.css'; class Retry extends Component { render() { return ( <div class="retry-container"> <img class="retry" src="images/retry.png" alt="device" /> </div> ); } } export default Retry;
src/Stagger.js
natenorberg/react-css-stagger
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { delay: PropTypes.number.isRequired, initialDelay: PropTypes.number, transition: PropTypes.string.isRequired, className: PropTypes.string, }; const defaultProps = { initialDelay: 1, }; export default class Stagger extends Rea...
src/containers/NotFoundPage.js
nikhilfusion/substitutionApp
import React from 'react'; const NotFoundPage = () => ( <div> <h1>404 - Page Not Found</h1> </div> ); export default NotFoundPage;
src/components/EnsureLoggedInContainer.js
vsherms/LifeCoach
import React from 'react'; import { browserHistory } from 'react-router'; import { observer, inject } from 'mobx-react'; class EnsureLoggedInContainer extends React.Component { componentDidMount() { if (!this.props.userStore.isLoggedIn) { browserHistory.replace("/"); } } render() { if (this.p...
app/components/VisitorItem.js
erichardson30/jarvis-electron
import React, { Component } from 'react'; import axios from 'axios'; import RaisedButton from 'material-ui/lib/raised-button'; export default class VisitorItem extends Component { checkIn = () => { this.props.checkIn(this.props.data); console.log(this.props.data); } render() { retur...
src/containers/AddTodo.js
ftorre104/todolist-redux
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input // this "controls" the input, not with component state // because this is a dumbComponent with no lifecycles // but rather just so it's value can be reset on click r...
ajax/libs/forerunnerdb/1.3.796/fdb-all.min.js
kennynaoh/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...
packager/transformer.js
jaggs6/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. * * Note: Thi...
components/ProductCell.js
goominc/goommerce-seller-native
'use strict'; import React from 'react'; import { Image, Picker, Platform, StyleSheet, Switch, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; import { CloudinaryImageNative } from 'react-cloudinary/lib/native'; import numeral from 'numeral'; import DefaultText from '...
client/components/footer.js
vidi-insights/vidi-dashboard
'use strict' import React from 'react' export default React.createClass({ render () { return ( <footer className="footer txt-small txt-dimmed mb mt txt-center has-icon" role="contentinfo"> <div className="container-fluid"> <a href="https://github.com/nearform/vidi-dashboard/issues" class...
packages/react-scripts/fixtures/kitchensink/template/src/features/syntax/ArrayDestructuring.js
jdcrensh/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return [ [1, '1'], [2, '2'], ...
node_modules/react-icons/io/heart-broken.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoHeartBroken = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.6 22.5c0 2.8-0.1 5.5 0.4 8.4 0.1 0.7 0.1 1.5 0.1 2.4l-11.9-12.4c-3.6-3.7-3.6-9.7 0-13.4 3.1-3.2 8-3.4 11.2-0.2-0.1 1.1-0.2 2.4-0.2 3.6-1.4 1.1-3.2 1.6-4.4 3l0...
tribe_node/elasticsearch-1.4.3/plugins/head/_site/src/vendor/jquery/jquery.js
raf64flo/elasticsearch-tribe-demo
/*! * 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. ...
client/app/scripts/components/time-control.js
alban/scope
import React from 'react'; import moment from 'moment'; import classNames from 'classnames'; import { connect } from 'react-redux'; import { trackAnalyticsEvent } from '../utils/tracking-utils'; import { pauseTimeAtNow, resumeTime, startTimeTravel } from '../actions/app-actions'; const className = isSelected => ( ...
example/react-user/components/user-input.js
jsful/treeful
import React, { Component } from 'react'; import Treeful from '../../../src/treeful'; export default class UserInput extends Component { constructor() { super(); this.state = { isLoggedIn: Treeful.get('login') }; } componentDidMount() { this.unsubscribe = Treeful.subscribe('login', this.updateLogin.bind...
docs/src/pages/demos/grid-list/ImageGridList.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import GridList from '@material-ui/core/GridList'; import GridListTile from '@material-ui/core/GridListTile'; import tileData from './tileData'; const styles = theme => ({ root: { display: 'flex'...
src/components/NovelItem.js
alphasp/pxview
import React, { Component } from 'react'; import { connect } from 'react-redux'; import NovelListViewItem from './NovelListViewItem'; import NovelGridViewItem from './NovelGridViewItem'; import { makeGetNovelItem } from '../common/selectors'; class NovelItem extends Component { shouldComponentUpdate(nextProps) { ...
themes/omekahispanicliverpool/javascripts/jquery-min.js
digihum/OmekaThemeDev-HispanicLiverpoolCC
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==...
docs/app/Examples/modules/Dropdown/Content/DropdownExampleMessage.js
mohammed88/Semantic-UI-React
import React from 'react' import { Dropdown, Message } from 'semantic-ui-react' const DropdownExampleMessage = () => ( <Dropdown text='Login' floating labeled button className='icon'> {/* <i class="filter icon"></i> */} <Dropdown.Menu> <Message error header='Error' content='You must log-in to see all c...
client/src/nav/NavBrand.spec.js
flyrightsister/boxcharter
/* * Copyright (c) 2018 Bonnie Schulkin. All Rights Reserved. * * This file is part of BoxCharter. * * BoxCharter 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, ...
Js/Core/Lib/Core/OptionComponent.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; import FormComponent from './FormComponent'; class OptionComponent extends FormComponent { constructor(props) { super(props); _.assign(this.state, { options: [], loading: false }); ...
7-hover/app.js
aruberto/styling-react-components
import React from 'react'; import ReactDOM from 'react-dom'; import Button from './button'; const App = () => ( <div> <div> <Button>Everything is normal ....</Button> &nbsp;&nbsp; <Button error>Oh no, there is an error!</Button> </div> </div> ); ReactDOM.render(<App />, document.getElem...
shared/components/Equilab/utils/AutoLink.js
thehink/equilab-web
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; /* eslint-disable jsx-a11y/anchor-has-content */ const AutoLink = props => (/^https?:\/\/|^\/\//i.test(props.to) ? <a href={props.to} {...props} /> : <Link {...props} />); AutoLink.propTypes = { to: PropTypes....
ajax/libs/remoteStorage/0.10.0/remotestorage-nocache.amd.js
honestree/cdnjs
/** remotestorage.js 0.10.0, http://remotestorage.io, MIT-licensed **/ define([], function() { /** FILE: lib/promising.js **/ (function(global) { function getPromise(builder) { var promise; if(typeof(builder) === 'function') { setTimeout(function() { try { builder(promise); }...
time-on-task/app/components/Timer.js
ajaymore/time-on-task
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { View, Text, StyleSheet, Button } from 'react-native'; import Report from './Report'; import { Icon } from 'react-native-elements'; const styles = StyleSheet.create({ container: { flex: 1, ...
src/index.js
believer/react-starter
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App/App'; ReactDOM.render(<App />, document.getElementById('root'));
imports/ui/components/bookmarks-header.js
dklisiaris/grabber
import React from 'react'; import {ReactPageClick} from 'react-page-click'; import { browserHistory } from 'react-router'; import ReactTooltip from 'react-tooltip'; import {NewBookmarkBtn} from './new-bookmark-btn'; import {LinkGrabberBtn} from './link-grabber-btn'; import FolderMembers from '../containers/folder-membe...
ajax/libs/react/0.11.2/JSXTransformer.js
dominicrico/cdnjs
/** * JSXTransformer v0.11.2 */ !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.JSXTransformer=e()}...
templates/rubix/node-seed/src/routes/home.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; export default class Home extends React.Component { render() { return ( <div>Hello World!</div> ); } }
src/slides/005-tooling.js
brudil/slides-es6andbeyond
import React from 'react'; import Radium from 'radium'; import {bindShowHelper} from '../utils'; const styles = { heading: { fontSize: '2em' }, subheading: { fontSize: '1.1em' }, center: { textAlign: 'center' }, babelLogo: { display: 'block', margin: '0 auto', maxWidth: '800px', ...
packages/material-ui-icons/src/BlurCircularOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5...
src/__tests__/OutsideClick-test.js
ship-components/react-outsideclick
import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-dom/test-utils'; const OutsideClick = require('../OutsideClick').default; describe('OutsideClick', function() { it('should assign a css class', function() { let cssClass = 'outsideclick'; // Render a checkbox with la...