target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
app/javascript/mastodon/components/intersection_observer_article.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; import { is } from 'immutable'; // Diff these props in the "rendered" state const updateOnPropsForRendered = ['id...
ajax/libs/moonjs/0.0.2/moon.js
jdh8/cdnjs
/*! * Moon.js v0.0.2 * (c) 2016 Kabir Shah * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Moonjs = factory()); }(this, function...
test/integration/IconButton/IconButton.spec.js
kasra-co/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import IconButton from 'src/IconButton'; import FontIcon from 'src/FontIcon'; import getMuiTheme from 'src/styles/getMuiTheme'; describe('<IconButton />', () => { const muiTheme = getMuiTheme(); const sha...
__tests__/index.android.js
hippothesis/Recipezy
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 /> ); });
docs/src/PageHeader.js
herojobs/react-bootstrap
import React from 'react'; const PageHeader = React.createClass({ render() { return ( <div className='bs-docs-header' id='content'> <div className='container'> <h1>{this.props.title}</h1> <p>{this.props.subTitle}</p> </div> </div> ); } }); export default Pag...
docs/src/pages/component-demos/progress/LinearQuery.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import { LinearProgress } from 'material-ui/Progress'; const styles = theme => ({ root: { width: '100%', marginTop: theme.spacing.unit * 3, }, }); function LinearQuery(props) { ...
src/index.js
zhaowenyi94/hey-spark
import React, { Component } from 'react'; import { render } from 'react-dom'; import './index.css'; import App from './App'; import TitleBar from './title-bar/TitleBar'; import SignUp from './sign/SignUp'; import SignIn from './sign/SignIn'; import Comment from './comment/CommentPanel'; import { HashRouter, Router, R...
Modules/Orchard.jQuery/Scripts/jquery-1.8.2.js
DessiG/orchard
/*! * jQuery JavaScript Library v1.8.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2012 jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time) */ (function(...
react-redux-tutorial/redux-undo-boilerplate/test/containers/CounterPage.spec.js
react-scott/react-learn
import { expect } from 'chai' import jsdom from 'mocha-jsdom' /*eslint-disable*/ import React from 'react' import TestUtils from 'react-addons-test-utils' import { Provider } from 'react-redux' import CounterPage from '../../src/containers/CounterPage' import configureStore from '../../src/store/configureStore' /*eslin...
src/svg-icons/action/perm-data-setting.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0...
examples/basic/src/pages/Home.js
NickCis/react-data-ssr
import React from 'react'; import PropTypes from 'prop-types'; import { withGetInitialData } from 'react-data-ssr'; const Home = ({isLoading, title, body}) => { if (isLoading) return <span>Loading</span>; return ( <div> <h1>{title}</h1> <p>{body}</p> </div> ); }; Home.propTypes = { isL...
fields/types/text/TextFilter.js
danielmahon/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormSelect, SegmentedControl, } from '../../../admin/client/App/elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; const MODE_OPTIONS = [ { la...
packages/material-ui-icons/src/WbCloudySharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19.37 10.04C18.68 6.59 15.65 4 12.01 4c-2.89 0-5.4 1.64-6.65 4.04C2.35 8.36.01 10.91.01 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.0...
js/components/loaders/Spinner.ios.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { ActivityIndicatorIOS } from 'react-native'; export default class SpinnerNB extends Component { prepareRootProps() { const type = { height: 80, }; const defaultProps = { style: type, }; return computeProps(this.props, defaultProps...
src/Parser/Monk/Mistweaver/Modules/Spells/UpliftingTrance.js
hasseboulen/WoWAnalyzer
// Based on Clearcasting Implementation done by @Blazyb import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parse...
ajax/libs/react/0.3.2/JSXTransformer.js
kartikrao31/cdnjs
/** * JSXTransformer v0.3.2 */ (function(e){if("function"==typeof bootstrap)bootstrap("jsxtransformer",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.makeJSXTransformer=e}else"undefined"!=typeof wi...
packages/es-components/src/components/containers/tooltip/Tooltip.specs.js
TWExchangeSolutions/es-components
/* eslint-env jest */ import React from 'react'; import { fireEvent, waitFor } from '@testing-library/react'; import Tooltip from './Tooltip'; import { renderWithTheme } from '../../util/test-utils'; it('displays when the mouse enters the target and hides when the mouse leaves the target', async () => { const inst...
SplitForUs/WebContent/com_exp_cemk_extjs_js/graph/jquery.1.6.4.js
KITSABHIJIT/Ihalkhata-Web-App
/*! * jQuery JavaScript Library v1.6.4 * 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. ...
node_modules/react/lib/ReactComponentWithPureRenderMixin.js
yhx0634/foodshopfront
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict...
docs/src/examples/modules/Accordion/Usage/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' const AccordionUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Active Index' descrip...
ajax/libs/6to5/1.13.13/browser.js
luanlmd/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...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
tmbtech/react-router
import React from 'react'; class Announcements extends React.Component { render () { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ); } } export default Announcements;
wwwroot/app/src/components/NavigationMenu/index.js
AlinCiocan/PlanEatSave
import React from 'react'; import { Link } from 'react-router'; import classNames from 'classnames'; import Routes from '../../services/Routes'; import pages from '../../constants/pages'; const NavigationMenu = (props) => { return ( <div className="pes-navigation-menu"> <Link class...
.storybook/config.js
Drathal/react-playground
import React from 'react' import { configure, setAddon, addDecorator } from '@kadira/storybook' import infoAddon from '@kadira/react-storybook-addon-info' import '../src/app/layout/layout-global.css' import '../src/app/layout/fonts-global.css' import '../src/app/layout/theme.css' import './theme.css' setAddon(infoAdd...
app/js/components/content/ContentSection.js
theappbusiness/tab-hq
'use strict'; import React from 'react'; import PageComponent from './PageComponent'; import Editor from 'react-medium-editor'; import SectionActionCreators from '../../actions/SectionActionCreators'; import AppActionCreators from '../../actions/AppActionCreators'; import ModalMixin from '../../mixins/ModalMixin'; ...
packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/2775/actual.js
CrocoDillon/babel
import React, {Component} from 'react'; export default class RandomComponent extends Component { constructor(){ super(); } render() { return ( <div className='sui-RandomComponent'> <h2>Hi there!</h2> </div> ); } }
reactNativeThermo/src/containers/pairButton.js
jontore/web_bluetooth_demo
import React, { Component } from 'react'; import { BleManager } from 'react-native-ble-plx'; import { Buffer } from 'buffer'; import { Text, View, StyleSheet, FlatList, Vibration } from 'react-native'; import Button from './button'; const vibrationPattern = [0, 500, 200, 500]; class PairButton extends Com...
src/svg-icons/device/screen-lock-rotation.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockRotation = (props) => ( <SvgIcon {...props}> <path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59...
src/components/posts_show.js
tpechacek/redux-blog
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPost, deletePost } from '../actions'; import { Link } from 'react-router-dom'; class PostsShow extends Component { componentDidMount() { if (!this.props.post) { const { id } = this.props.match.params; this...
client/views/omnichannel/realTimeMonitoring/overviews/ProductivityOverview.js
VoiSmart/Rocket.Chat
import React from 'react'; import { useEndpointData } from '../../../../hooks/useEndpointData'; import CounterContainer from '../counter/CounterContainer'; const defaultValue = { title: '', value: '00:00:00' }; const initialData = [defaultValue, defaultValue, defaultValue, defaultValue]; const ProductivityOverview ...
Client/Components/App.js
mix-bank/Mix-Bank
import React from 'react' import Transaction from './Transaction' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { receiveAccountTransaction, fetchAccountTransaction, signOutButton } from '../actions/action' const mapStateToProps = (state) => { return { data: state.accoun...
js-old/src/views/RpcCalls/components/RpcDocs/RpcDocs.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
20170524/zhihu/index.android.js
fengnovo/react-native
/*import React, { Component } from 'react'; import{ AppRegistry, ScrollView, Image, Text, View, ListView } from 'react-native' class Zhihu extends Component { // 初始化模拟数据 constructor(props) { super(props); this.state = { dataSource: new ListView.DataSource({ rowHasChanged: (r1, r2) =...
frontend/src/components/threads/navs.js
1905410/Misago
import React from 'react'; import { Link } from 'react-router'; // jshint ignore:line import Li from 'misago/components/li'; //jshint ignore:line // jshint ignore:start let navLinks = function(baseUrl, active, lists, hideNav) { return lists.map(function(list) { return <Li isControlled={true} ...
test/regressions/site/src/tests/Divider/InsetDivider.js
und3fined/material-ui
// @flow weak import React from 'react'; import Divider from 'material-ui/Divider'; export default function InsetDivider() { return ( <div style={{ padding: 2, width: 100 }}> <Divider inset /> </div> ); }
ajax/libs/react-native-web/0.16.5/exports/Touchable/index.js
cdnjs/cdnjs
/** * 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. * * * @format */ 'use strict'; function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var targ...
src/pages/SignIn.js
DIYAbility/Capacita-Controller-Interface
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { PageHeader, Button } from 'react-bootstrap'; import { signin } from '../actions/actions-app'; class SignIn extends Component { render() { return ( <div className="page"> <PageHeader>Sign In</PageHeader> ...
client/extensions/woocommerce/components/extended-header/index.js
Automattic/woocommerce-services
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; /** * Internal dependencies */ import SectionHeader from 'components/section-header'; class ExtendedHeader extends Component { render() { const { label, description, children } = this.props; const labelContent = ( <...
cerberus-dashboard/src/components/SDBMetadata/SDBMetadata.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/components/tvshows/episode-table.js
scholtzm/arnold
import React from 'react'; import { Table } from 'semantic-ui-react'; import LoaderSegment from '../misc/loader-segment.js'; import PlayEpisodeButton from './play-episode-button.js'; const EpisodeTable = (props) => { if(!props.episodes) { return <LoaderSegment size='medium' />; } return ( <Table celled>...
src/utils/__tests__/shallowEqual-test.js
1234-/react
/** * Copyright 2014-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
Examples/UIExplorer/js/ScrollViewExample.js
jadbox/react-native
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
src/AppBundle/Resources/static/jsx/app/Course.js
viszerale-therapie/simple-courses
import React from 'react'; import ReactDOM from 'react-dom'; import tl from '../util/translator'; import DataTable from '../util/DataTable'; import actions from '../util/actions'; import dataCourseTypes from '../data/Course'; export default { init : function(data, meta) { ReactDOM.render(( <div> <h1>{tl.t...
test/integration/client-navigation/pages/custom-encoding.js
flybayer/next.js
import React from 'react' export default class extends React.Component { static async getInitialProps({ res }) { if (res) { res.setHeader('Content-Type', 'text/html; charset=iso-8859-2') } return {} } render() { return null } }
src/no-redux/Field.js
fourlabsldn/fl-form-builder
import React from 'react'; import assert from 'fl-assert'; import EventHub from './EventHub'; import trackReorderDrag from './utils/trackReorderDrag'; import addListenerOnce from './utils/addListenerOnce'; // =========== Handle drag function getParentField(el) { if (!el || ! el.parentNode) { return el; } return...
styles/components/Header.js
alivelee/NextTech
import React from 'react'; import styled from 'styled-components'; const MainHeader = styled.header` background-color:red; top: -1px; position: sticky; z-index: 1; padding:2em; `; const Title = styled.h1` `; const Header = (props) => ( <MainHeader> <span>{props.title}</span> </MainHeader> ); expor...
src/components/__tests__/truncated-test.js
vigetlabs/ars-arsenal
import React from 'react' import Truncated from '../truncated' import { mount } from 'enzyme' describe('Truncated', () => { test('handles undefined values', () => { let component = mount(<Truncated />) expect(component.text()).toBe('') }) test('handles numbers', () => { let component = mount(<Trunca...
ajax/libs/react/0.5.0/react.min.js
BinaryMuse/cdnjs
/** * React v0.5.0 * * Copyright 2013 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
app/containers/Sidebar_container.js
tmcinerney4/WA
'use strict' import React from 'react' import {connect, Provider} from 'react-redux' import axios from 'axios'; import Sidebar from '../components/Sidebar'; import receiveWine from '../reducers/sidebar_reducer'; const mapStateToProps = (state) => { //console.log('this is sidebar state', state) return { produc...
packages/material-ui-icons/src/LocalShipping.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5zm13.5-9l1.96 2....
node_modules/react-router/es6/RoutingContext.js
jkahrs595/website
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
src/components/topic/stories/StoryContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { push } from 'react-router-redux'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemIcon from '@material-ui/core/ListItemIcon'; import ListItemText from '@material-ui/core/L...
client/src/javascript/components/torrent-list/TorrentDetail.js
stephdewit/flood
import {FormattedDate, FormattedMessage, FormattedNumber} from 'react-intl'; import React from 'react'; import CalendarCreatedIcon from '../icons/CalendarCreatedIcon'; import CalendarIcon from '../icons/CalendarIcon'; import Checkmark from '../icons/Checkmark'; import ClockIcon from '../icons/ClockIcon'; import Commen...
ajax/libs/react-dropzone/4.2.9/index.js
extend1994/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["react","prop-types"],t):"object"==typeof exports?exports.Dropzone=t(require("react"),require("prop-types")):e.Dropzone=t(e.React,e.PropTypes)}(this,fun...
ajax/libs/onsen/2.0.0-rc.15/js/onsenui.min.js
dakshshah96/cdnjs
"undefined"==typeof WeakMap&&!function(){var defineProperty=Object.defineProperty,counter=Date.now()%1e9,WeakMap=function(){this.name="__st"+(1e9*Math.random()>>>0)+(counter++ +"__")};WeakMap.prototype={set:function(key,value){var entry=key[this.name];return entry&&entry[0]===key?entry[1]=value:defineProperty(key,this....
src/component/document-item/index.js
saidmattar/cloud-life-frontend
import React from 'react'; import {connect} from 'react-redux'; import DocForm from '../document-form'; import DescriptionIcon from 'material-ui/svg-icons/action/description'; import {docUpdateRequest, docDeleteRequest} from '../../action/document-actions'; import * as utils from '../../lib/utils'; import {GridTile} fr...
docs/src/sections/ButtonGroupSection.js
jesenko/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ButtonGroupSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
node_modules/react-icons/io/social-css3.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoSocialCss3 = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 26.5z m-15-24h30l-2.7 31.5-12.3 3.5-12.3-3.5z m22.7 26.2l1.8-19.7h-18.9l0.3 3.8h14.4l-0.3 4h-9.5l0.4 3.9h8.7l-0.4 5-4.2 1.2-4.1-1.2-0.4-3.1h-3.7l0.5 6.1 7.7 2....
ajax/libs/yasgui/1.0.5/yasgui.min.js
Dervisevic/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
ajax/libs/6to5/1.14.10/browser-polyfill.js
voronianski/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...
docs-ui/components/loadingIndicator.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; // import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import LoadingIndicator from 'app/components/loadingIndicator'; storiesOf('LoadingIndicator', module) .add( 'all', withInfo('Loading indi...
src/svg-icons/notification/mms.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMms = (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-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/> </SvgIcon> ); NotificationMms = ...
example/src/test_buttonpanel.js
flywingdevelopers/rn-naive
/** * <ButtonPanel> Test * Kevin Lee 09 Sept 2017 **/ import React from 'react' import { Alert } from 'react-native' import { Device, Screen, Block, Bar, CheckBox, Text, ButtonPanel } from 'rn-naive' export default class App extends React.Component { constructor(props) { super(props) this.state = { ...
src/components/HeaderBarRightMenu.js
vamcc/react-redux-demo
import React from 'react'; import IconMenu from 'material-ui/lib/menus/icon-menu'; import MenuItem from 'material-ui/lib/menus/menu-item'; import IconButton from 'material-ui/lib/icon-button'; import MoreVertIcon from 'material-ui/lib/svg-icons/navigation/more-vert'; const HeaderBarRightMenu = () => ( <IconMen...
assets/src/js/index.js
imperodesign/clever-users-admin
'use strict' import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { ReduxRouter } from 'redux-router' import Cookies from 'cookies-js' import { JWT_COOKIE_NAME } from './constants/settings.js' import configureStore from './store/configureStor...
frontend/components/NotFoundPage.js
heekzz/PowerHour
'use strict'; import React from 'react'; import { Link } from 'react-router'; /* * Component to display of the page doesn't exists */ export default class NotFoundPage extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> ...
ajax/libs/material-ui/4.9.6/test-utils/createRender.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=createRender;var _extends2=_interopRequireDefault(require("@babel/runtim...
storybook/stories/autosuggest_textarea.story.js
3846masa/mastodon
import React from 'react'; import { List } from 'immutable'; import { action, storiesOf } from '@kadira/storybook'; import AutosuggestTextarea from 'mastodon/components/autosuggest_textarea'; const props = { onChange: action('changed'), onPaste: action('pasted'), onSuggestionSelected: action('suggestionsSelected...
packages/mineral-ui-icons/src/IconLocalShipping.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 IconLocalShipping(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...icon...
ajax/libs/yui/3.9.0pr2/scrollview-base/scrollview-base.js
WebReflection/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie, NATIVE_TRA...
src/routes/home/Home.js
bigearth/www.clone.earth
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Home.css'; import Link from '../../components/Link'; import { Jumbotron, Grid, Row, Col, Image, Button, Glyphicon } from 'react-bootstrap'; class Home extends React.Componen...
ajax/libs/thorax/2.2.1/thorax-combined.min.js
LeaYeh/cdnjs
(function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ...
demo/Badge.js
jide/react-wrapchildren
import React from 'react'; export default class Badge extends React.Component { render() { return ( <div className={ this.props.className }> <strong>This is a test component, it has props :</strong> { Object.keys(this.props).map(i => <div key={ i }>{ `${i}: ${this.props[i]}` }</div>) } ...
src/components/ExpandingButton.js
Charlie9830/pounder
import React from 'react'; import { Button, Grow, Typography, withStyles } from '@material-ui/core'; import withMouseOver from './Hocs/withMouseOver'; let styles = theme => { let base = { flexShrink: 1, display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', al...
docs/app/Examples/collections/Message/Variations/MessageExampleSuccess.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' const MessageExampleSuccess = () => ( <Message success header='Your user registration was successful' content='You may now log-in with the username you have chosen' /> ) export default MessageExampleSuccess
src/svg-icons/maps/local-taxi.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
src/js/app.min.js
ilopezchamorro/pfc
!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...
MARVELous/client/src/js/components/characterSelect/index.js
nicksenger/StackAttack2017
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchCharacters } from '../../actions/index'; import CharacterScroller from '../characterScroller'; export class CharacterSelect extends Component { componentWillMount() { if (!th...
src/containers/Profile/index.js
quran/quran.com-frontend
import React, { Component } from 'react'; import * as customPropTypes from 'customPropTypes'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import Image from 'react-bootstrap/lib/Image'; import Tabs from 'react-bootstrap/lib/Tabs'; import Tab from 'react-...
packages/material-ui-icons/src/CheckBox.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" /></React.Fra...
packages/material-ui-icons/src/FastRewindTwoTone.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M9 14.14V9.86L5.97 12zm9 0V9.86L14.97 12z" opacity=".3" /><path d="M11 6l-8.5 6 8.5 6V6zm-2 8.14L5.97 12 9 9.86v4.28zM20 6l-8.5 6 8.5 6V6zm-2 8.14L14.97 12 18 9.86v4.28z" /></React.Fra...
client/containers/Root.js
andersem/react-redux-starter-kit
import React from 'react'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from 'routes'; import { DevTools, LogMonitor, DebugPanel } from 'redux-devtools/lib/react'; import createDevToolsWindow from 'utils'; export default class Root extends React.Component { static prop...
src/svg-icons/maps/local-movies.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMovies = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </Svg...
ajax/libs/react-data-grid/0.14.16/react-data-grid-with-addons.min.js
joeyparrish/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th...
node_modules/react-select/examples/src/components/BooleanSelect.js
maty21/statistisc
import React from 'react'; import Select from 'react-select'; var ValuesAsBooleansField = React.createClass({ displayName: 'ValuesAsBooleansField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: true, label: 'Yes' }, { value: false, label: 'No' } ]...
src/containers/businessRegistration.js
ilamarang/10Cents
import React from 'react' import PlacesAutocomplete , { geocodeByAddress, getLatLng } from 'react-places-autocomplete' import { connect } from "react-redux"; import { createBusiness,displayNotification,validateShop } from "../actions"; import { Link,withRouter } from "react-router-dom"; import ReactDOM from 'react-dom'...
tests/routes/Counter/components/Counter.spec.js
ligangwolai/blog
import React from 'react' import { bindActionCreators } from 'redux' import { Counter } from 'routes/Counter/components/Counter' import { shallow } from 'enzyme' describe('(Component) Counter', () => { let _props, _spies, _wrapper beforeEach(() => { _spies = {} _props = { counter : 5, ...bindA...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
lstNull/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
wp-content/plugins/buddypress/bp-forums/bbpress/bb-includes/js/jquery/jquery.js
alex11/Wordpress-Blog
/*! * jQuery JavaScript Library v1.4.2 * 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. ...
test/DropdownToggleSpec.js
zanjs/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownToggle from '../src/DropdownToggle'; describe('DropdownToggle', function() { const simpleToggle = <DropdownToggle open={false} title='herpa derpa' />; it('renders toggle button', function() { const instance = Reac...
__tests__/index.ios.js
pedroeusebio/draftReactNative
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
imports/ui/components/personalInfo/components/SpecialCharacteristics.js
AdmitHub/ScholarFisher
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Collapse from 'react-collapse'; import { selectSpecialCharac, selectSpecialClickedArray, } from '../../../../redux/actions/personalInfo'; class SpecialCharacteristics extends Component { constructor(props) { super(props)...
src/svg-icons/action/favorite.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavorite = (props) => ( <SvgIcon {...props}> <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6...
src/icons/Calendar.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Calendar extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M144,128c17.7,0,32-14.3,32-32V64c0-17.7-14.3-32-32-32s-32,14.3-32,32v32C112,113.7,126.3,128,144,128z"></path> <pat...
src/components/Profile/index.js
muniz95/muniz95.github.io
import React from 'react' import PropTypes from 'prop-types' import Avatar from '../Avatar' import * as S from './styled' import getThemeColor from '../../utils/getThemeColor' const Profile = ({ title, position, authorDescription, isMobileHeader }) => { return ( <S.ProfileContainer isMobileHeader={isMobileHead...
files/redux/3.5.1/redux.js
PeterDaveHello/jsdelivr
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Redux"] = factory(); else root["Redux"]...
src/index.js
TingSyuanWang/ReactSimpleBlog
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import reducers from './reducers'; import routes from './routes'; import promise from 'redux-promise'; const...
ajax/libs/react-bootstrap/0.28.4/react-bootstrap.min.js
iwdmb/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react"),require("react-dom")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(...
test/specs/elements/List/ListList-test.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ListList from 'src/elements/List/ListList' import * as common from 'test/specs/commonTests' describe('ListList', () => { common.isConformant(ListList) common.rendersChildren(ListList) describe('list', () => { it('omitted when rendered as `ol`', () => { shallow(<ListLi...
example/test/index.ios.js
tiero/react-native-360
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import { PanoramaView } from 'react-native-360' export default class test extends Component { render() { r...